@salesforce/lds-adapters-cdp-semantic-authoring 1.354.0-dev2 → 1.354.0-dev20
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-semantic-authoring.js +949 -601
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsDataObjectsByModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsLogicalViewsByModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsDataObjectsByDataObjectNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsLogicalViewsByLogicalViewApiNameOrIdAndModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SemanticCalculatedDimensionOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticCalculatedMeasurementOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticDataObjectInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticDataObjectOutputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/SemanticDependencyCollectionOutputRepresentation.d.ts +5 -4
- package/dist/es/es2018/types/src/generated/types/SemanticDependencyInnerCollectionOutputRepresentation.d.ts +12 -3
- package/dist/es/es2018/types/src/generated/types/SemanticDependencyOutputRepresentation.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/types/SemanticDimensionOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticFilterInputRepresentation.d.ts +5 -2
- package/dist/es/es2018/types/src/generated/types/SemanticFilterOutputRepresentation.d.ts +5 -2
- package/dist/es/es2018/types/src/generated/types/SemanticGroupingOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticLogicalViewOutputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/SemanticMappedFieldOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticMeasurementOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticMetricOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticModelPartialInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticModelPartialOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticParameterOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/SemanticRelationshipOutputRepresentation.d.ts +7 -1
- package/package.json +3 -3
- package/sfdc/index.js +963 -614
- package/src/raml/api.raml +158 -2
- package/src/raml/luvio.raml +6 -0
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate$
|
|
95
|
+
const VERSION$z = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
+
function validate$19(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
97
97
|
const v_error = (() => {
|
|
98
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
99
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -115,10 +115,10 @@ function validate$1a(obj, path = 'SemanticTableFieldReferenceOutputRepresentatio
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$Q = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$z,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -134,7 +134,7 @@ const select$S = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
134
134
|
]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
function equals$
|
|
137
|
+
function equals$z(existing, incoming) {
|
|
138
138
|
const existing_fieldApiName = existing.fieldApiName;
|
|
139
139
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
140
140
|
// if at least one of these optionals is defined
|
|
@@ -164,8 +164,8 @@ function equals$B(existing, incoming) {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const VERSION$
|
|
168
|
-
function validate$
|
|
167
|
+
const VERSION$y = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
+
function validate$18(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
171
171
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -180,7 +180,7 @@ function validate$19(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
180
180
|
if (obj.tableFieldReference !== undefined) {
|
|
181
181
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
182
182
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
183
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
183
|
+
const referencepath_tableFieldReferenceValidationError = validate$19(obj_tableFieldReference, path_tableFieldReference);
|
|
184
184
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
185
185
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
186
186
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -190,11 +190,11 @@ function validate$19(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
190
190
|
})();
|
|
191
191
|
return v_error === undefined ? null : v_error;
|
|
192
192
|
}
|
|
193
|
-
const select$
|
|
194
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
193
|
+
const select$P = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$Q();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$y,
|
|
198
198
|
private: [],
|
|
199
199
|
selections: [
|
|
200
200
|
{
|
|
@@ -211,7 +211,7 @@ const select$R = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
211
211
|
]
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
function equals$
|
|
214
|
+
function equals$y(existing, incoming) {
|
|
215
215
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
216
216
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
217
217
|
// if at least one of these optionals is defined
|
|
@@ -234,15 +234,15 @@ function equals$A(existing, incoming) {
|
|
|
234
234
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
if (!(equals$
|
|
237
|
+
if (!(equals$z(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
238
238
|
return false;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
const VERSION$
|
|
245
|
-
function validate$
|
|
244
|
+
const VERSION$x = "358bb714d100a35ad75fc928fa462760";
|
|
245
|
+
function validate$17(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
246
246
|
const v_error = (() => {
|
|
247
247
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
248
248
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -268,13 +268,27 @@ function validate$18(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
268
268
|
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
+
if (obj.values !== undefined) {
|
|
272
|
+
const obj_values = obj.values;
|
|
273
|
+
const path_values = path + '.values';
|
|
274
|
+
if (!ArrayIsArray(obj_values)) {
|
|
275
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
276
|
+
}
|
|
277
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
278
|
+
const obj_values_item = obj_values[i];
|
|
279
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
280
|
+
if (typeof obj_values_item !== 'string') {
|
|
281
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
271
285
|
})();
|
|
272
286
|
return v_error === undefined ? null : v_error;
|
|
273
287
|
}
|
|
274
|
-
const select$
|
|
288
|
+
const select$O = function SemanticFilterOutputRepresentationSelect() {
|
|
275
289
|
return {
|
|
276
290
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
291
|
+
version: VERSION$x,
|
|
278
292
|
private: [],
|
|
279
293
|
selections: [
|
|
280
294
|
{
|
|
@@ -291,11 +305,17 @@ const select$Q = function SemanticFilterOutputRepresentationSelect() {
|
|
|
291
305
|
name: 'value',
|
|
292
306
|
kind: 'Scalar',
|
|
293
307
|
required: false
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: 'values',
|
|
311
|
+
kind: 'Scalar',
|
|
312
|
+
plural: true,
|
|
313
|
+
required: false
|
|
294
314
|
}
|
|
295
315
|
]
|
|
296
316
|
};
|
|
297
317
|
};
|
|
298
|
-
function equals$
|
|
318
|
+
function equals$x(existing, incoming) {
|
|
299
319
|
const existing_fieldName = existing.fieldName;
|
|
300
320
|
const incoming_fieldName = incoming.fieldName;
|
|
301
321
|
// if at least one of these optionals is defined
|
|
@@ -335,11 +355,29 @@ function equals$z(existing, incoming) {
|
|
|
335
355
|
return false;
|
|
336
356
|
}
|
|
337
357
|
}
|
|
358
|
+
const existing_values = existing.values;
|
|
359
|
+
const incoming_values = incoming.values;
|
|
360
|
+
// if at least one of these optionals is defined
|
|
361
|
+
if (existing_values !== undefined || incoming_values !== undefined) {
|
|
362
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
363
|
+
// not equal
|
|
364
|
+
if (existing_values === undefined || incoming_values === undefined) {
|
|
365
|
+
return false;
|
|
366
|
+
}
|
|
367
|
+
const equals_values_items = equalsArray(existing_values, incoming_values, (existing_values_item, incoming_values_item) => {
|
|
368
|
+
if (!(existing_values_item === incoming_values_item)) {
|
|
369
|
+
return false;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
if (equals_values_items === false) {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
338
376
|
return true;
|
|
339
377
|
}
|
|
340
378
|
|
|
341
|
-
const VERSION$
|
|
342
|
-
function validate$
|
|
379
|
+
const VERSION$w = "a50848c632bb205d5e910bb726d9219e";
|
|
380
|
+
function validate$16(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
343
381
|
const v_error = (() => {
|
|
344
382
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
345
383
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -347,7 +385,7 @@ function validate$17(obj, path = 'SemanticIdentifyingDimensionOutputRepresentati
|
|
|
347
385
|
if (obj.identifierDimensionReference !== undefined) {
|
|
348
386
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
349
387
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
350
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
388
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$18(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
351
389
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
352
390
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
353
391
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -357,7 +395,7 @@ function validate$17(obj, path = 'SemanticIdentifyingDimensionOutputRepresentati
|
|
|
357
395
|
if (obj.namingDimensionReference !== undefined) {
|
|
358
396
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
359
397
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
360
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
398
|
+
const referencepath_namingDimensionReferenceValidationError = validate$18(obj_namingDimensionReference, path_namingDimensionReference);
|
|
361
399
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
362
400
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
363
401
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,11 +405,11 @@ function validate$17(obj, path = 'SemanticIdentifyingDimensionOutputRepresentati
|
|
|
367
405
|
})();
|
|
368
406
|
return v_error === undefined ? null : v_error;
|
|
369
407
|
}
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
408
|
+
const select$N = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
409
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$P();
|
|
372
410
|
return {
|
|
373
411
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
412
|
+
version: VERSION$w,
|
|
375
413
|
private: [],
|
|
376
414
|
selections: [
|
|
377
415
|
{
|
|
@@ -389,7 +427,7 @@ const select$P = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
389
427
|
]
|
|
390
428
|
};
|
|
391
429
|
};
|
|
392
|
-
function equals$
|
|
430
|
+
function equals$w(existing, incoming) {
|
|
393
431
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
394
432
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
395
433
|
// if at least one of these optionals is defined
|
|
@@ -399,7 +437,7 @@ function equals$y(existing, incoming) {
|
|
|
399
437
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
400
438
|
return false;
|
|
401
439
|
}
|
|
402
|
-
if (!(equals$
|
|
440
|
+
if (!(equals$y(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
403
441
|
return false;
|
|
404
442
|
}
|
|
405
443
|
}
|
|
@@ -412,15 +450,15 @@ function equals$y(existing, incoming) {
|
|
|
412
450
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
413
451
|
return false;
|
|
414
452
|
}
|
|
415
|
-
if (!(equals$
|
|
453
|
+
if (!(equals$y(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
416
454
|
return false;
|
|
417
455
|
}
|
|
418
456
|
}
|
|
419
457
|
return true;
|
|
420
458
|
}
|
|
421
459
|
|
|
422
|
-
const VERSION$
|
|
423
|
-
function validate$
|
|
460
|
+
const VERSION$v = "1b8cf2283d5d5c480459506274f0604c";
|
|
461
|
+
function validate$15(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
424
462
|
const v_error = (() => {
|
|
425
463
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
426
464
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -442,10 +480,10 @@ function validate$16(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
480
|
})();
|
|
443
481
|
return v_error === undefined ? null : v_error;
|
|
444
482
|
}
|
|
445
|
-
const select$
|
|
483
|
+
const select$M = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
484
|
return {
|
|
447
485
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
486
|
+
version: VERSION$v,
|
|
449
487
|
private: [],
|
|
450
488
|
selections: [
|
|
451
489
|
{
|
|
@@ -461,7 +499,7 @@ const select$O = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
461
499
|
]
|
|
462
500
|
};
|
|
463
501
|
};
|
|
464
|
-
function equals$
|
|
502
|
+
function equals$v(existing, incoming) {
|
|
465
503
|
const existing_enabled = existing.enabled;
|
|
466
504
|
const incoming_enabled = incoming.enabled;
|
|
467
505
|
// if at least one of these optionals is defined
|
|
@@ -491,8 +529,8 @@ function equals$x(existing, incoming) {
|
|
|
491
529
|
return true;
|
|
492
530
|
}
|
|
493
531
|
|
|
494
|
-
const VERSION$
|
|
495
|
-
function validate$
|
|
532
|
+
const VERSION$u = "a3f5972287be7bcf9ca205af56046a58";
|
|
533
|
+
function validate$14(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
496
534
|
const v_error = (() => {
|
|
497
535
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
536
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -500,7 +538,7 @@ function validate$15(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
500
538
|
if (obj.identifyingDimension !== undefined) {
|
|
501
539
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
502
540
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
503
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
541
|
+
const referencepath_identifyingDimensionValidationError = validate$16(obj_identifyingDimension, path_identifyingDimension);
|
|
504
542
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
505
543
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
506
544
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -516,7 +554,7 @@ function validate$15(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
516
554
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
517
555
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
518
556
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
519
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
557
|
+
const referencepath_insightTypes_itemValidationError = validate$15(obj_insightTypes_item, path_insightTypes_item);
|
|
520
558
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
521
559
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
522
560
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -533,7 +571,7 @@ function validate$15(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
533
571
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
534
572
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
535
573
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
536
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
574
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$18(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
537
575
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
538
576
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
539
577
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -565,13 +603,13 @@ function validate$15(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
565
603
|
})();
|
|
566
604
|
return v_error === undefined ? null : v_error;
|
|
567
605
|
}
|
|
568
|
-
const select$
|
|
569
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
570
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
571
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
606
|
+
const select$L = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
607
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$N();
|
|
608
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$M();
|
|
609
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$P();
|
|
572
610
|
return {
|
|
573
611
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
612
|
+
version: VERSION$u,
|
|
575
613
|
private: [],
|
|
576
614
|
selections: [
|
|
577
615
|
{
|
|
@@ -612,7 +650,7 @@ const select$N = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
612
650
|
]
|
|
613
651
|
};
|
|
614
652
|
};
|
|
615
|
-
function equals$
|
|
653
|
+
function equals$u(existing, incoming) {
|
|
616
654
|
const existing_pluralNoun = existing.pluralNoun;
|
|
617
655
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
618
656
|
// if at least one of these optionals is defined
|
|
@@ -661,7 +699,7 @@ function equals$w(existing, incoming) {
|
|
|
661
699
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
662
700
|
return false;
|
|
663
701
|
}
|
|
664
|
-
if (!(equals$
|
|
702
|
+
if (!(equals$w(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
665
703
|
return false;
|
|
666
704
|
}
|
|
667
705
|
}
|
|
@@ -675,7 +713,7 @@ function equals$w(existing, incoming) {
|
|
|
675
713
|
return false;
|
|
676
714
|
}
|
|
677
715
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
678
|
-
if (!(equals$
|
|
716
|
+
if (!(equals$v(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
679
717
|
return false;
|
|
680
718
|
}
|
|
681
719
|
});
|
|
@@ -693,7 +731,7 @@ function equals$w(existing, incoming) {
|
|
|
693
731
|
return false;
|
|
694
732
|
}
|
|
695
733
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
696
|
-
if (!(equals$
|
|
734
|
+
if (!(equals$y(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
697
735
|
return false;
|
|
698
736
|
}
|
|
699
737
|
});
|
|
@@ -704,8 +742,8 @@ function equals$w(existing, incoming) {
|
|
|
704
742
|
return true;
|
|
705
743
|
}
|
|
706
744
|
|
|
707
|
-
const VERSION$
|
|
708
|
-
function validate$
|
|
745
|
+
const VERSION$t = "a9c4c21f041ebd0ad373f8e53e345e6a";
|
|
746
|
+
function validate$13(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
709
747
|
const v_error = (() => {
|
|
710
748
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
711
749
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -719,7 +757,7 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
719
757
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
720
758
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
721
759
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
722
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
760
|
+
const referencepath_additionalDimensions_itemValidationError = validate$18(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
723
761
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
724
762
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
725
763
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +824,7 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
786
824
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
787
825
|
const obj_filters_item = obj_filters[i];
|
|
788
826
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
789
|
-
const referencepath_filters_itemValidationError = validate$
|
|
827
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
790
828
|
if (referencepath_filters_itemValidationError !== null) {
|
|
791
829
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
792
830
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -802,7 +840,7 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
802
840
|
if (obj.insightsSettings !== undefined) {
|
|
803
841
|
const obj_insightsSettings = obj.insightsSettings;
|
|
804
842
|
const path_insightsSettings = path + '.insightsSettings';
|
|
805
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
843
|
+
const referencepath_insightsSettingsValidationError = validate$14(obj_insightsSettings, path_insightsSettings);
|
|
806
844
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
807
845
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
808
846
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -816,6 +854,13 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
816
854
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isCumulative + '" (at "' + path_isCumulative + '")');
|
|
817
855
|
}
|
|
818
856
|
}
|
|
857
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
858
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
859
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
860
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
861
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
862
|
+
}
|
|
863
|
+
}
|
|
819
864
|
if (obj.label !== undefined) {
|
|
820
865
|
const obj_label = obj.label;
|
|
821
866
|
const path_label = path + '.label';
|
|
@@ -840,7 +885,7 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
840
885
|
if (obj.measurementReference !== undefined) {
|
|
841
886
|
const obj_measurementReference = obj.measurementReference;
|
|
842
887
|
const path_measurementReference = path + '.measurementReference';
|
|
843
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
888
|
+
const referencepath_measurementReferenceValidationError = validate$18(obj_measurementReference, path_measurementReference);
|
|
844
889
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
845
890
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
846
891
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -850,7 +895,7 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
850
895
|
if (obj.timeDimensionReference !== undefined) {
|
|
851
896
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
852
897
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
853
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
898
|
+
const referencepath_timeDimensionReferenceValidationError = validate$18(obj_timeDimensionReference, path_timeDimensionReference);
|
|
854
899
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
855
900
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
856
901
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -871,6 +916,13 @@ function validate$14(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
871
916
|
}
|
|
872
917
|
}
|
|
873
918
|
}
|
|
919
|
+
if (obj.unmapped !== undefined) {
|
|
920
|
+
const obj_unmapped = obj.unmapped;
|
|
921
|
+
const path_unmapped = path + '.unmapped';
|
|
922
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
923
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
924
|
+
}
|
|
925
|
+
}
|
|
874
926
|
})();
|
|
875
927
|
return v_error === undefined ? null : v_error;
|
|
876
928
|
}
|
|
@@ -887,13 +939,13 @@ function keyBuilderFromType$c(luvio, object) {
|
|
|
887
939
|
function normalize$i(input, existing, path, luvio, store, timestamp) {
|
|
888
940
|
return input;
|
|
889
941
|
}
|
|
890
|
-
const select$
|
|
891
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
892
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
893
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
942
|
+
const select$K = function SemanticMetricOutputRepresentationSelect() {
|
|
943
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$P();
|
|
944
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$O();
|
|
945
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$L();
|
|
894
946
|
return {
|
|
895
947
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
948
|
+
version: VERSION$t,
|
|
897
949
|
private: [],
|
|
898
950
|
selections: [
|
|
899
951
|
{
|
|
@@ -962,6 +1014,11 @@ const select$M = function SemanticMetricOutputRepresentationSelect() {
|
|
|
962
1014
|
kind: 'Scalar',
|
|
963
1015
|
required: false
|
|
964
1016
|
},
|
|
1017
|
+
{
|
|
1018
|
+
name: 'isSystemDefinition',
|
|
1019
|
+
kind: 'Scalar',
|
|
1020
|
+
required: false
|
|
1021
|
+
},
|
|
965
1022
|
{
|
|
966
1023
|
name: 'label',
|
|
967
1024
|
kind: 'Scalar',
|
|
@@ -994,11 +1051,16 @@ const select$M = function SemanticMetricOutputRepresentationSelect() {
|
|
|
994
1051
|
kind: 'Scalar',
|
|
995
1052
|
plural: true,
|
|
996
1053
|
required: false
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
name: 'unmapped',
|
|
1057
|
+
kind: 'Scalar',
|
|
1058
|
+
required: false
|
|
997
1059
|
}
|
|
998
1060
|
]
|
|
999
1061
|
};
|
|
1000
1062
|
};
|
|
1001
|
-
function equals$
|
|
1063
|
+
function equals$t(existing, incoming) {
|
|
1002
1064
|
const existing_isCumulative = existing.isCumulative;
|
|
1003
1065
|
const incoming_isCumulative = incoming.isCumulative;
|
|
1004
1066
|
// if at least one of these optionals is defined
|
|
@@ -1012,6 +1074,32 @@ function equals$v(existing, incoming) {
|
|
|
1012
1074
|
return false;
|
|
1013
1075
|
}
|
|
1014
1076
|
}
|
|
1077
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
1078
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
1079
|
+
// if at least one of these optionals is defined
|
|
1080
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
1081
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1082
|
+
// not equal
|
|
1083
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
1084
|
+
return false;
|
|
1085
|
+
}
|
|
1086
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
1087
|
+
return false;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
const existing_unmapped = existing.unmapped;
|
|
1091
|
+
const incoming_unmapped = incoming.unmapped;
|
|
1092
|
+
// if at least one of these optionals is defined
|
|
1093
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
1094
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1095
|
+
// not equal
|
|
1096
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
1097
|
+
return false;
|
|
1098
|
+
}
|
|
1099
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
1100
|
+
return false;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1015
1103
|
const existing_aggregationType = existing.aggregationType;
|
|
1016
1104
|
const incoming_aggregationType = incoming.aggregationType;
|
|
1017
1105
|
// if at least one of these optionals is defined
|
|
@@ -1146,7 +1234,7 @@ function equals$v(existing, incoming) {
|
|
|
1146
1234
|
return false;
|
|
1147
1235
|
}
|
|
1148
1236
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
1149
|
-
if (!(equals$
|
|
1237
|
+
if (!(equals$y(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
1150
1238
|
return false;
|
|
1151
1239
|
}
|
|
1152
1240
|
});
|
|
@@ -1164,7 +1252,7 @@ function equals$v(existing, incoming) {
|
|
|
1164
1252
|
return false;
|
|
1165
1253
|
}
|
|
1166
1254
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1167
|
-
if (!(equals$
|
|
1255
|
+
if (!(equals$x(existing_filters_item, incoming_filters_item))) {
|
|
1168
1256
|
return false;
|
|
1169
1257
|
}
|
|
1170
1258
|
});
|
|
@@ -1181,7 +1269,7 @@ function equals$v(existing, incoming) {
|
|
|
1181
1269
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
1182
1270
|
return false;
|
|
1183
1271
|
}
|
|
1184
|
-
if (!(equals$
|
|
1272
|
+
if (!(equals$u(existing_insightsSettings, incoming_insightsSettings))) {
|
|
1185
1273
|
return false;
|
|
1186
1274
|
}
|
|
1187
1275
|
}
|
|
@@ -1194,7 +1282,7 @@ function equals$v(existing, incoming) {
|
|
|
1194
1282
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
1195
1283
|
return false;
|
|
1196
1284
|
}
|
|
1197
|
-
if (!(equals$
|
|
1285
|
+
if (!(equals$y(existing_measurementReference, incoming_measurementReference))) {
|
|
1198
1286
|
return false;
|
|
1199
1287
|
}
|
|
1200
1288
|
}
|
|
@@ -1207,7 +1295,7 @@ function equals$v(existing, incoming) {
|
|
|
1207
1295
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
1208
1296
|
return false;
|
|
1209
1297
|
}
|
|
1210
|
-
if (!(equals$
|
|
1298
|
+
if (!(equals$y(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
1211
1299
|
return false;
|
|
1212
1300
|
}
|
|
1213
1301
|
}
|
|
@@ -1233,14 +1321,14 @@ function equals$v(existing, incoming) {
|
|
|
1233
1321
|
}
|
|
1234
1322
|
const ingest$i = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1323
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
-
const validateError = validate$
|
|
1324
|
+
const validateError = validate$13(input);
|
|
1237
1325
|
if (validateError !== null) {
|
|
1238
1326
|
throw validateError;
|
|
1239
1327
|
}
|
|
1240
1328
|
}
|
|
1241
1329
|
const key = keyBuilderFromType$c(luvio, input);
|
|
1242
1330
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SemanticAuthoring", VERSION$
|
|
1331
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$i, "SemanticAuthoring", VERSION$t, RepresentationType$i, equals$t);
|
|
1244
1332
|
return createLink(key);
|
|
1245
1333
|
};
|
|
1246
1334
|
function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1253,8 +1341,8 @@ function getTypeCacheKeys$i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1253
1341
|
});
|
|
1254
1342
|
}
|
|
1255
1343
|
|
|
1256
|
-
const VERSION$
|
|
1257
|
-
function validate$
|
|
1344
|
+
const VERSION$s = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1345
|
+
function validate$12(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
1258
1346
|
const v_error = (() => {
|
|
1259
1347
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1260
1348
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1298,10 +1386,10 @@ function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1386
|
}
|
|
1299
1387
|
return input;
|
|
1300
1388
|
}
|
|
1301
|
-
const select$
|
|
1389
|
+
const select$J = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1390
|
return {
|
|
1303
1391
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1392
|
+
version: VERSION$s,
|
|
1305
1393
|
private: [],
|
|
1306
1394
|
selections: [
|
|
1307
1395
|
{
|
|
@@ -1309,12 +1397,12 @@ const select$L = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1397
|
kind: 'Link',
|
|
1310
1398
|
plural: true,
|
|
1311
1399
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1400
|
+
fragment: select$K()
|
|
1313
1401
|
}
|
|
1314
1402
|
]
|
|
1315
1403
|
};
|
|
1316
1404
|
};
|
|
1317
|
-
function equals$
|
|
1405
|
+
function equals$s(existing, incoming) {
|
|
1318
1406
|
const existing_metrics = existing.metrics;
|
|
1319
1407
|
const incoming_metrics = incoming.metrics;
|
|
1320
1408
|
// if at least one of these optionals is defined
|
|
@@ -1337,14 +1425,14 @@ function equals$u(existing, incoming) {
|
|
|
1337
1425
|
}
|
|
1338
1426
|
const ingest$h = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1427
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
|
-
const validateError = validate$
|
|
1428
|
+
const validateError = validate$12(input);
|
|
1341
1429
|
if (validateError !== null) {
|
|
1342
1430
|
throw validateError;
|
|
1343
1431
|
}
|
|
1344
1432
|
}
|
|
1345
1433
|
const key = path.fullPath;
|
|
1346
1434
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$
|
|
1435
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$s, RepresentationType$h, equals$s);
|
|
1348
1436
|
return createLink(key);
|
|
1349
1437
|
};
|
|
1350
1438
|
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1363,8 +1451,8 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1363
1451
|
}
|
|
1364
1452
|
}
|
|
1365
1453
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1454
|
+
function select$I(luvio, params) {
|
|
1455
|
+
return select$J();
|
|
1368
1456
|
}
|
|
1369
1457
|
function keyBuilder$A(luvio, params) {
|
|
1370
1458
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
@@ -1378,7 +1466,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1378
1466
|
luvio.storeIngest(key, ingest$h, body);
|
|
1379
1467
|
const snapshot = luvio.storeLookup({
|
|
1380
1468
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1469
|
+
node: select$I(),
|
|
1382
1470
|
variables: {},
|
|
1383
1471
|
}, snapshotRefresh);
|
|
1384
1472
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1441,7 +1529,7 @@ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
|
1441
1529
|
}
|
|
1442
1530
|
function adapterFragment$a(luvio, config) {
|
|
1443
1531
|
createResourceParams$j(config);
|
|
1444
|
-
return select$
|
|
1532
|
+
return select$I();
|
|
1445
1533
|
}
|
|
1446
1534
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
1447
1535
|
const snapshot = ingestSuccess$g(luvio, resourceParams, response, {
|
|
@@ -1497,8 +1585,8 @@ const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthor
|
|
|
1497
1585
|
buildCachedSnapshotCachePolicy$a, buildNetworkSnapshotCachePolicy$a);
|
|
1498
1586
|
};
|
|
1499
1587
|
|
|
1500
|
-
const VERSION$
|
|
1501
|
-
function validate$
|
|
1588
|
+
const VERSION$r = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1589
|
+
function validate$11(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1502
1590
|
const v_error = (() => {
|
|
1503
1591
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1504
1592
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1518,10 +1606,10 @@ function validate$12(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1518
1606
|
})();
|
|
1519
1607
|
return v_error === undefined ? null : v_error;
|
|
1520
1608
|
}
|
|
1521
|
-
const select$
|
|
1609
|
+
const select$H = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1610
|
return {
|
|
1523
1611
|
kind: 'Fragment',
|
|
1524
|
-
version: VERSION$
|
|
1612
|
+
version: VERSION$r,
|
|
1525
1613
|
private: [],
|
|
1526
1614
|
selections: [
|
|
1527
1615
|
{
|
|
@@ -1536,7 +1624,7 @@ const select$J = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1536
1624
|
]
|
|
1537
1625
|
};
|
|
1538
1626
|
};
|
|
1539
|
-
function equals$
|
|
1627
|
+
function equals$r(existing, incoming) {
|
|
1540
1628
|
const existing_apiName = existing.apiName;
|
|
1541
1629
|
const incoming_apiName = incoming.apiName;
|
|
1542
1630
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1558,12 +1646,19 @@ function equals$t(existing, incoming) {
|
|
|
1558
1646
|
return true;
|
|
1559
1647
|
}
|
|
1560
1648
|
|
|
1561
|
-
const VERSION$
|
|
1562
|
-
function validate$
|
|
1649
|
+
const VERSION$q = "1014ce27a42cdfd4801e0ee44a71ca8d";
|
|
1650
|
+
function validate$10(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1563
1651
|
const v_error = (() => {
|
|
1564
1652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1565
1653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1566
1654
|
}
|
|
1655
|
+
if (obj.agentEnabled !== undefined) {
|
|
1656
|
+
const obj_agentEnabled = obj.agentEnabled;
|
|
1657
|
+
const path_agentEnabled = path + '.agentEnabled';
|
|
1658
|
+
if (typeof obj_agentEnabled !== 'boolean') {
|
|
1659
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_agentEnabled + '" (at "' + path_agentEnabled + '")');
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1567
1662
|
const obj_apiName = obj.apiName;
|
|
1568
1663
|
const path_apiName = path + '.apiName';
|
|
1569
1664
|
if (typeof obj_apiName !== 'string') {
|
|
@@ -1592,7 +1687,7 @@ function validate$11(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1592
1687
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
1593
1688
|
const obj_baseModels_item = obj_baseModels[i];
|
|
1594
1689
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
1595
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
1690
|
+
const referencepath_baseModels_itemValidationError = validate$11(obj_baseModels_item, path_baseModels_item);
|
|
1596
1691
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
1597
1692
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
1598
1693
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1600,6 +1695,13 @@ function validate$11(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1600
1695
|
}
|
|
1601
1696
|
}
|
|
1602
1697
|
}
|
|
1698
|
+
if (obj.businessPreferences !== undefined) {
|
|
1699
|
+
const obj_businessPreferences = obj.businessPreferences;
|
|
1700
|
+
const path_businessPreferences = path + '.businessPreferences';
|
|
1701
|
+
if (typeof obj_businessPreferences !== 'string') {
|
|
1702
|
+
return new TypeError('Expected "string" but received "' + typeof obj_businessPreferences + '" (at "' + path_businessPreferences + '")');
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1603
1705
|
if (obj.cacheKey !== undefined) {
|
|
1604
1706
|
const obj_cacheKey = obj.cacheKey;
|
|
1605
1707
|
const path_cacheKey = path + '.cacheKey';
|
|
@@ -1763,13 +1865,18 @@ function validate$11(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1763
1865
|
})();
|
|
1764
1866
|
return v_error === undefined ? null : v_error;
|
|
1765
1867
|
}
|
|
1766
|
-
const select$
|
|
1767
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
1868
|
+
const select$G = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1869
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$H();
|
|
1768
1870
|
return {
|
|
1769
1871
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1872
|
+
version: VERSION$q,
|
|
1771
1873
|
private: [],
|
|
1772
1874
|
selections: [
|
|
1875
|
+
{
|
|
1876
|
+
name: 'agentEnabled',
|
|
1877
|
+
kind: 'Scalar',
|
|
1878
|
+
required: false
|
|
1879
|
+
},
|
|
1773
1880
|
{
|
|
1774
1881
|
name: 'apiName',
|
|
1775
1882
|
kind: 'Scalar'
|
|
@@ -1791,6 +1898,11 @@ const select$I = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1791
1898
|
selections: SemanticBaseModelOutputRepresentation__selections,
|
|
1792
1899
|
required: false
|
|
1793
1900
|
},
|
|
1901
|
+
{
|
|
1902
|
+
name: 'businessPreferences',
|
|
1903
|
+
kind: 'Scalar',
|
|
1904
|
+
required: false
|
|
1905
|
+
},
|
|
1794
1906
|
{
|
|
1795
1907
|
name: 'cacheKey',
|
|
1796
1908
|
kind: 'Scalar',
|
|
@@ -1891,7 +2003,20 @@ const select$I = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1891
2003
|
]
|
|
1892
2004
|
};
|
|
1893
2005
|
};
|
|
1894
|
-
function equals$
|
|
2006
|
+
function equals$q(existing, incoming) {
|
|
2007
|
+
const existing_agentEnabled = existing.agentEnabled;
|
|
2008
|
+
const incoming_agentEnabled = incoming.agentEnabled;
|
|
2009
|
+
// if at least one of these optionals is defined
|
|
2010
|
+
if (existing_agentEnabled !== undefined || incoming_agentEnabled !== undefined) {
|
|
2011
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2012
|
+
// not equal
|
|
2013
|
+
if (existing_agentEnabled === undefined || incoming_agentEnabled === undefined) {
|
|
2014
|
+
return false;
|
|
2015
|
+
}
|
|
2016
|
+
if (!(existing_agentEnabled === incoming_agentEnabled)) {
|
|
2017
|
+
return false;
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
1895
2020
|
const existing_isLocked = existing.isLocked;
|
|
1896
2021
|
const incoming_isLocked = incoming.isLocked;
|
|
1897
2022
|
// if at least one of these optionals is defined
|
|
@@ -1936,6 +2061,19 @@ function equals$s(existing, incoming) {
|
|
|
1936
2061
|
return false;
|
|
1937
2062
|
}
|
|
1938
2063
|
}
|
|
2064
|
+
const existing_businessPreferences = existing.businessPreferences;
|
|
2065
|
+
const incoming_businessPreferences = incoming.businessPreferences;
|
|
2066
|
+
// if at least one of these optionals is defined
|
|
2067
|
+
if (existing_businessPreferences !== undefined || incoming_businessPreferences !== undefined) {
|
|
2068
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2069
|
+
// not equal
|
|
2070
|
+
if (existing_businessPreferences === undefined || incoming_businessPreferences === undefined) {
|
|
2071
|
+
return false;
|
|
2072
|
+
}
|
|
2073
|
+
if (!(existing_businessPreferences === incoming_businessPreferences)) {
|
|
2074
|
+
return false;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
1939
2077
|
const existing_cacheKey = existing.cacheKey;
|
|
1940
2078
|
const incoming_cacheKey = incoming.cacheKey;
|
|
1941
2079
|
// if at least one of these optionals is defined
|
|
@@ -2135,7 +2273,7 @@ function equals$s(existing, incoming) {
|
|
|
2135
2273
|
return false;
|
|
2136
2274
|
}
|
|
2137
2275
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
2138
|
-
if (!(equals$
|
|
2276
|
+
if (!(equals$r(existing_baseModels_item, incoming_baseModels_item))) {
|
|
2139
2277
|
return false;
|
|
2140
2278
|
}
|
|
2141
2279
|
});
|
|
@@ -2177,8 +2315,8 @@ function equals$s(existing, incoming) {
|
|
|
2177
2315
|
return true;
|
|
2178
2316
|
}
|
|
2179
2317
|
|
|
2180
|
-
const VERSION$
|
|
2181
|
-
function validate
|
|
2318
|
+
const VERSION$p = "198423ec58354256cc7ea6f4661ef669";
|
|
2319
|
+
function validate$$(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2182
2320
|
const v_error = (() => {
|
|
2183
2321
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2184
2322
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2225,7 +2363,7 @@ function validate$10(obj, path = 'SemanticModelCollectionOutputRepresentation')
|
|
|
2225
2363
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2226
2364
|
const obj_items_item = obj_items[i];
|
|
2227
2365
|
const path_items_item = path_items + '[' + i + ']';
|
|
2228
|
-
const referencepath_items_itemValidationError = validate$
|
|
2366
|
+
const referencepath_items_itemValidationError = validate$10(obj_items_item, path_items_item);
|
|
2229
2367
|
if (referencepath_items_itemValidationError !== null) {
|
|
2230
2368
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
2231
2369
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2301,11 +2439,11 @@ const RepresentationType$g = 'SemanticModelCollectionOutputRepresentation';
|
|
|
2301
2439
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2302
2440
|
return input;
|
|
2303
2441
|
}
|
|
2304
|
-
const select$
|
|
2305
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
2442
|
+
const select$F = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2443
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$G();
|
|
2306
2444
|
return {
|
|
2307
2445
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2446
|
+
version: VERSION$p,
|
|
2309
2447
|
private: [],
|
|
2310
2448
|
selections: [
|
|
2311
2449
|
{
|
|
@@ -2341,7 +2479,7 @@ const select$H = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
2341
2479
|
]
|
|
2342
2480
|
};
|
|
2343
2481
|
};
|
|
2344
|
-
function equals$
|
|
2482
|
+
function equals$p(existing, incoming) {
|
|
2345
2483
|
const existing_count = existing.count;
|
|
2346
2484
|
const incoming_count = incoming.count;
|
|
2347
2485
|
if (!(existing_count === incoming_count)) {
|
|
@@ -2375,7 +2513,7 @@ function equals$r(existing, incoming) {
|
|
|
2375
2513
|
return false;
|
|
2376
2514
|
}
|
|
2377
2515
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
2378
|
-
if (!(equals$
|
|
2516
|
+
if (!(equals$q(existing_items_item, incoming_items_item))) {
|
|
2379
2517
|
return false;
|
|
2380
2518
|
}
|
|
2381
2519
|
});
|
|
@@ -2413,14 +2551,14 @@ function equals$r(existing, incoming) {
|
|
|
2413
2551
|
}
|
|
2414
2552
|
const ingest$g = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2415
2553
|
if (process.env.NODE_ENV !== 'production') {
|
|
2416
|
-
const validateError = validate
|
|
2554
|
+
const validateError = validate$$(input);
|
|
2417
2555
|
if (validateError !== null) {
|
|
2418
2556
|
throw validateError;
|
|
2419
2557
|
}
|
|
2420
2558
|
}
|
|
2421
2559
|
const key = path.fullPath;
|
|
2422
2560
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2423
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$
|
|
2561
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$p, RepresentationType$g, equals$p);
|
|
2424
2562
|
return createLink(key);
|
|
2425
2563
|
};
|
|
2426
2564
|
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2433,8 +2571,8 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2433
2571
|
});
|
|
2434
2572
|
}
|
|
2435
2573
|
|
|
2436
|
-
function select$
|
|
2437
|
-
return select$
|
|
2574
|
+
function select$E(luvio, params) {
|
|
2575
|
+
return select$F();
|
|
2438
2576
|
}
|
|
2439
2577
|
function keyBuilder$y(luvio, params) {
|
|
2440
2578
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
@@ -2448,7 +2586,7 @@ function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2448
2586
|
luvio.storeIngest(key, ingest$g, body);
|
|
2449
2587
|
const snapshot = luvio.storeLookup({
|
|
2450
2588
|
recordId: key,
|
|
2451
|
-
node: select$
|
|
2589
|
+
node: select$E(),
|
|
2452
2590
|
variables: {},
|
|
2453
2591
|
}, snapshotRefresh);
|
|
2454
2592
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2517,7 +2655,7 @@ function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
|
2517
2655
|
}
|
|
2518
2656
|
function adapterFragment$9(luvio, config) {
|
|
2519
2657
|
createResourceParams$i(config);
|
|
2520
|
-
return select$
|
|
2658
|
+
return select$E();
|
|
2521
2659
|
}
|
|
2522
2660
|
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
2523
2661
|
const snapshot = ingestSuccess$f(luvio, resourceParams, response, {
|
|
@@ -2573,7 +2711,7 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
2573
2711
|
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
2574
2712
|
};
|
|
2575
2713
|
|
|
2576
|
-
function validate
|
|
2714
|
+
function validate$_(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
2577
2715
|
const v_error = (() => {
|
|
2578
2716
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2579
2717
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2589,7 +2727,7 @@ function validate$$(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
2589
2727
|
return v_error === undefined ? null : v_error;
|
|
2590
2728
|
}
|
|
2591
2729
|
|
|
2592
|
-
function validate$
|
|
2730
|
+
function validate$Z(obj, path = 'SemanticModelExternalConnectionTableauPublishedDataSourceInputRepresentation') {
|
|
2593
2731
|
const v_error = (() => {
|
|
2594
2732
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2595
2733
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2618,7 +2756,7 @@ function validate$_(obj, path = 'SemanticModelExternalConnectionTableauPublished
|
|
|
2618
2756
|
return v_error === undefined ? null : v_error;
|
|
2619
2757
|
}
|
|
2620
2758
|
|
|
2621
|
-
function validate$
|
|
2759
|
+
function validate$Y(obj, path = 'SemanticModelExternalConnectionInputRepresentation') {
|
|
2622
2760
|
const v_error = (() => {
|
|
2623
2761
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2624
2762
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2638,7 +2776,7 @@ function validate$Z(obj, path = 'SemanticModelExternalConnectionInputRepresentat
|
|
|
2638
2776
|
if (obj.tableauPublishedDataSource !== undefined) {
|
|
2639
2777
|
const obj_tableauPublishedDataSource = obj.tableauPublishedDataSource;
|
|
2640
2778
|
const path_tableauPublishedDataSource = path + '.tableauPublishedDataSource';
|
|
2641
|
-
const referencepath_tableauPublishedDataSourceValidationError = validate$
|
|
2779
|
+
const referencepath_tableauPublishedDataSourceValidationError = validate$Z(obj_tableauPublishedDataSource, path_tableauPublishedDataSource);
|
|
2642
2780
|
if (referencepath_tableauPublishedDataSourceValidationError !== null) {
|
|
2643
2781
|
let message = 'Object doesn\'t match SemanticModelExternalConnectionTableauPublishedDataSourceInputRepresentation (at "' + path_tableauPublishedDataSource + '")\n';
|
|
2644
2782
|
message += referencepath_tableauPublishedDataSourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2654,7 +2792,7 @@ function validate$Z(obj, path = 'SemanticModelExternalConnectionInputRepresentat
|
|
|
2654
2792
|
return v_error === undefined ? null : v_error;
|
|
2655
2793
|
}
|
|
2656
2794
|
|
|
2657
|
-
function validate$
|
|
2795
|
+
function validate$X(obj, path = 'SemanticOverrideInputRepresentation') {
|
|
2658
2796
|
const v_error = (() => {
|
|
2659
2797
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2660
2798
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2684,7 +2822,7 @@ function validate$Y(obj, path = 'SemanticOverrideInputRepresentation') {
|
|
|
2684
2822
|
return v_error === undefined ? null : v_error;
|
|
2685
2823
|
}
|
|
2686
2824
|
|
|
2687
|
-
function validate$
|
|
2825
|
+
function validate$W(obj, path = 'SemanticFilterInputRepresentation') {
|
|
2688
2826
|
const v_error = (() => {
|
|
2689
2827
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2690
2828
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2710,11 +2848,25 @@ function validate$X(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
2710
2848
|
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
2711
2849
|
}
|
|
2712
2850
|
}
|
|
2851
|
+
if (obj.values !== undefined) {
|
|
2852
|
+
const obj_values = obj.values;
|
|
2853
|
+
const path_values = path + '.values';
|
|
2854
|
+
if (!ArrayIsArray(obj_values)) {
|
|
2855
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
2856
|
+
}
|
|
2857
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
2858
|
+
const obj_values_item = obj_values[i];
|
|
2859
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
2860
|
+
if (typeof obj_values_item !== 'string') {
|
|
2861
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2713
2865
|
})();
|
|
2714
2866
|
return v_error === undefined ? null : v_error;
|
|
2715
2867
|
}
|
|
2716
2868
|
|
|
2717
|
-
function validate$
|
|
2869
|
+
function validate$V(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
2718
2870
|
const v_error = (() => {
|
|
2719
2871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2720
2872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2777,7 +2929,7 @@ function validate$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2777
2929
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2778
2930
|
const obj_filters_item = obj_filters[i];
|
|
2779
2931
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2780
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2932
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
2781
2933
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2782
2934
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2783
2935
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2831,7 +2983,7 @@ function validate$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2831
2983
|
return v_error === undefined ? null : v_error;
|
|
2832
2984
|
}
|
|
2833
2985
|
|
|
2834
|
-
function validate$
|
|
2986
|
+
function validate$U(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
2835
2987
|
const v_error = (() => {
|
|
2836
2988
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2837
2989
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2908,7 +3060,7 @@ function validate$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2908
3060
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2909
3061
|
const obj_filters_item = obj_filters[i];
|
|
2910
3062
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2911
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3063
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
2912
3064
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2913
3065
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2914
3066
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2983,7 +3135,7 @@ function validate$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2983
3135
|
return v_error === undefined ? null : v_error;
|
|
2984
3136
|
}
|
|
2985
3137
|
|
|
2986
|
-
function validate$
|
|
3138
|
+
function validate$T(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
2987
3139
|
const v_error = (() => {
|
|
2988
3140
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2989
3141
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3062,7 +3214,7 @@ function validate$U(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
3062
3214
|
return v_error === undefined ? null : v_error;
|
|
3063
3215
|
}
|
|
3064
3216
|
|
|
3065
|
-
function validate$
|
|
3217
|
+
function validate$S(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
3066
3218
|
const v_error = (() => {
|
|
3067
3219
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3068
3220
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3169,7 +3321,7 @@ function validate$T(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
3169
3321
|
return v_error === undefined ? null : v_error;
|
|
3170
3322
|
}
|
|
3171
3323
|
|
|
3172
|
-
function validate$
|
|
3324
|
+
function validate$R(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
3173
3325
|
const v_error = (() => {
|
|
3174
3326
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3175
3327
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3218,7 +3370,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3218
3370
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3219
3371
|
const obj_filters_item = obj_filters[i];
|
|
3220
3372
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3221
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3373
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
3222
3374
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3223
3375
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3224
3376
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3240,6 +3392,13 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3240
3392
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
3241
3393
|
}
|
|
3242
3394
|
}
|
|
3395
|
+
if (obj.primaryNameField !== undefined) {
|
|
3396
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
3397
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
3398
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
3399
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3243
3402
|
if (obj.semanticDimensions !== undefined) {
|
|
3244
3403
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
3245
3404
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -3249,7 +3408,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3249
3408
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3250
3409
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3251
3410
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3252
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3411
|
+
const referencepath_semanticDimensions_itemValidationError = validate$T(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3253
3412
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3254
3413
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3255
3414
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3266,7 +3425,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3266
3425
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3267
3426
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3268
3427
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3269
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3428
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$S(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3270
3429
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3271
3430
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3272
3431
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3292,7 +3451,7 @@ function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3292
3451
|
return v_error === undefined ? null : v_error;
|
|
3293
3452
|
}
|
|
3294
3453
|
|
|
3295
|
-
function validate$
|
|
3454
|
+
function validate$Q(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
3296
3455
|
const v_error = (() => {
|
|
3297
3456
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3298
3457
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3304,7 +3463,7 @@ function validate$R(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
3304
3463
|
return v_error === undefined ? null : v_error;
|
|
3305
3464
|
}
|
|
3306
3465
|
|
|
3307
|
-
function validate$
|
|
3466
|
+
function validate$P(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
3308
3467
|
const v_error = (() => {
|
|
3309
3468
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3310
3469
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3334,7 +3493,7 @@ function validate$Q(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
3334
3493
|
return v_error === undefined ? null : v_error;
|
|
3335
3494
|
}
|
|
3336
3495
|
|
|
3337
|
-
function validate$
|
|
3496
|
+
function validate$O(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
3338
3497
|
const v_error = (() => {
|
|
3339
3498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3340
3499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3348,7 +3507,7 @@ function validate$P(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3348
3507
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3349
3508
|
const obj_groups_item = obj_groups[i];
|
|
3350
3509
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3351
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3510
|
+
const referencepath_groups_itemValidationError = validate$P(obj_groups_item, path_groups_item);
|
|
3352
3511
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3353
3512
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
3354
3513
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3367,7 +3526,7 @@ function validate$P(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3367
3526
|
return v_error === undefined ? null : v_error;
|
|
3368
3527
|
}
|
|
3369
3528
|
|
|
3370
|
-
function validate$
|
|
3529
|
+
function validate$N(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
3371
3530
|
const v_error = (() => {
|
|
3372
3531
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3373
3532
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3375,7 +3534,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3375
3534
|
if (obj.binDimension !== undefined) {
|
|
3376
3535
|
const obj_binDimension = obj.binDimension;
|
|
3377
3536
|
const path_binDimension = path + '.binDimension';
|
|
3378
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3537
|
+
const referencepath_binDimensionValidationError = validate$Q(obj_binDimension, path_binDimension);
|
|
3379
3538
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3380
3539
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
3381
3540
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3385,7 +3544,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3385
3544
|
if (obj.groupDimension !== undefined) {
|
|
3386
3545
|
const obj_groupDimension = obj.groupDimension;
|
|
3387
3546
|
const path_groupDimension = path + '.groupDimension';
|
|
3388
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3547
|
+
const referencepath_groupDimensionValidationError = validate$O(obj_groupDimension, path_groupDimension);
|
|
3389
3548
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3390
3549
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3391
3550
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3396,7 +3555,7 @@ function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3396
3555
|
return v_error === undefined ? null : v_error;
|
|
3397
3556
|
}
|
|
3398
3557
|
|
|
3399
|
-
function validate$
|
|
3558
|
+
function validate$M(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
3400
3559
|
const v_error = (() => {
|
|
3401
3560
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3402
3561
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3419,7 +3578,7 @@ function validate$N(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
3419
3578
|
return v_error === undefined ? null : v_error;
|
|
3420
3579
|
}
|
|
3421
3580
|
|
|
3422
|
-
function validate$
|
|
3581
|
+
function validate$L(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
3423
3582
|
const v_error = (() => {
|
|
3424
3583
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3425
3584
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3434,7 +3593,7 @@ function validate$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3434
3593
|
if (obj.tableFieldReference !== undefined) {
|
|
3435
3594
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3436
3595
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3437
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3596
|
+
const referencepath_tableFieldReferenceValidationError = validate$M(obj_tableFieldReference, path_tableFieldReference);
|
|
3438
3597
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3439
3598
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3440
3599
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3445,7 +3604,7 @@ function validate$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3445
3604
|
return v_error === undefined ? null : v_error;
|
|
3446
3605
|
}
|
|
3447
3606
|
|
|
3448
|
-
function validate$
|
|
3607
|
+
function validate$K(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
3449
3608
|
const v_error = (() => {
|
|
3450
3609
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3451
3610
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3460,7 +3619,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3460
3619
|
if (obj.configuration !== undefined) {
|
|
3461
3620
|
const obj_configuration = obj.configuration;
|
|
3462
3621
|
const path_configuration = path + '.configuration';
|
|
3463
|
-
const referencepath_configurationValidationError = validate$
|
|
3622
|
+
const referencepath_configurationValidationError = validate$N(obj_configuration, path_configuration);
|
|
3464
3623
|
if (referencepath_configurationValidationError !== null) {
|
|
3465
3624
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
3466
3625
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3477,7 +3636,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3477
3636
|
if (obj.fieldReference !== undefined) {
|
|
3478
3637
|
const obj_fieldReference = obj.fieldReference;
|
|
3479
3638
|
const path_fieldReference = path + '.fieldReference';
|
|
3480
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
3639
|
+
const referencepath_fieldReferenceValidationError = validate$L(obj_fieldReference, path_fieldReference);
|
|
3481
3640
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
3482
3641
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
3483
3642
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3502,7 +3661,7 @@ function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3502
3661
|
return v_error === undefined ? null : v_error;
|
|
3503
3662
|
}
|
|
3504
3663
|
|
|
3505
|
-
function validate$
|
|
3664
|
+
function validate$J(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
3506
3665
|
const v_error = (() => {
|
|
3507
3666
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3508
3667
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3546,7 +3705,7 @@ function validate$K(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
3546
3705
|
return v_error === undefined ? null : v_error;
|
|
3547
3706
|
}
|
|
3548
3707
|
|
|
3549
|
-
function validate$
|
|
3708
|
+
function validate$I(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
3550
3709
|
const v_error = (() => {
|
|
3551
3710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3552
3711
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3574,7 +3733,7 @@ function validate$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3574
3733
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
3575
3734
|
const obj_criteria_item = obj_criteria[i];
|
|
3576
3735
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
3577
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
3736
|
+
const referencepath_criteria_itemValidationError = validate$J(obj_criteria_item, path_criteria_item);
|
|
3578
3737
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
3579
3738
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
3580
3739
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3635,7 +3794,7 @@ function validate$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3635
3794
|
return v_error === undefined ? null : v_error;
|
|
3636
3795
|
}
|
|
3637
3796
|
|
|
3638
|
-
function validate$
|
|
3797
|
+
function validate$H(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
3639
3798
|
const v_error = (() => {
|
|
3640
3799
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3641
3800
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3663,7 +3822,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3663
3822
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
3664
3823
|
const obj_fields_item = obj_fields[i];
|
|
3665
3824
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
3666
|
-
const referencepath_fields_itemValidationError = validate$
|
|
3825
|
+
const referencepath_fields_itemValidationError = validate$M(obj_fields_item, path_fields_item);
|
|
3667
3826
|
if (referencepath_fields_itemValidationError !== null) {
|
|
3668
3827
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
3669
3828
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3688,7 +3847,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3688
3847
|
if (obj.semanticDimension !== undefined) {
|
|
3689
3848
|
const obj_semanticDimension = obj.semanticDimension;
|
|
3690
3849
|
const path_semanticDimension = path + '.semanticDimension';
|
|
3691
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
3850
|
+
const referencepath_semanticDimensionValidationError = validate$T(obj_semanticDimension, path_semanticDimension);
|
|
3692
3851
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
3693
3852
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
3694
3853
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3698,7 +3857,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3698
3857
|
if (obj.semanticMeasurement !== undefined) {
|
|
3699
3858
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
3700
3859
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
3701
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
3860
|
+
const referencepath_semanticMeasurementValidationError = validate$S(obj_semanticMeasurement, path_semanticMeasurement);
|
|
3702
3861
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
3703
3862
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
3704
3863
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3709,7 +3868,7 @@ function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3709
3868
|
return v_error === undefined ? null : v_error;
|
|
3710
3869
|
}
|
|
3711
3870
|
|
|
3712
|
-
function validate$
|
|
3871
|
+
function validate$G(obj, path = 'SemanticUnionInputRepresentation') {
|
|
3713
3872
|
const v_error = (() => {
|
|
3714
3873
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3715
3874
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3744,7 +3903,7 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3744
3903
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3745
3904
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3746
3905
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3747
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3906
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$R(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3748
3907
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3749
3908
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3750
3909
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3761,7 +3920,7 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3761
3920
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
3762
3921
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
3763
3922
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
3764
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
3923
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$H(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
3765
3924
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
3766
3925
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
3767
3926
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3773,7 +3932,7 @@ function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3773
3932
|
return v_error === undefined ? null : v_error;
|
|
3774
3933
|
}
|
|
3775
3934
|
|
|
3776
|
-
function validate$
|
|
3935
|
+
function validate$F(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
3777
3936
|
const v_error = (() => {
|
|
3778
3937
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3779
3938
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3815,7 +3974,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3815
3974
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3816
3975
|
const obj_filters_item = obj_filters[i];
|
|
3817
3976
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3818
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3977
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
3819
3978
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3820
3979
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3821
3980
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3830,6 +3989,13 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3830
3989
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3831
3990
|
}
|
|
3832
3991
|
}
|
|
3992
|
+
if (obj.primaryNameField !== undefined) {
|
|
3993
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
3994
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
3995
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
3996
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3833
3999
|
if (obj.semanticDataObjects !== undefined) {
|
|
3834
4000
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
3835
4001
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -3839,7 +4005,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3839
4005
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3840
4006
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3841
4007
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3842
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
4008
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$R(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3843
4009
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3844
4010
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3845
4011
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3856,7 +4022,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3856
4022
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
3857
4023
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
3858
4024
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
3859
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
4025
|
+
const referencepath_semanticRelationships_itemValidationError = validate$I(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
3860
4026
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
3861
4027
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
3862
4028
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3873,7 +4039,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3873
4039
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
3874
4040
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
3875
4041
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
3876
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
4042
|
+
const referencepath_semanticUnions_itemValidationError = validate$G(obj_semanticUnions_item, path_semanticUnions_item);
|
|
3877
4043
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
3878
4044
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
3879
4045
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3892,7 +4058,7 @@ function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3892
4058
|
return v_error === undefined ? null : v_error;
|
|
3893
4059
|
}
|
|
3894
4060
|
|
|
3895
|
-
function validate$
|
|
4061
|
+
function validate$E(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
3896
4062
|
const v_error = (() => {
|
|
3897
4063
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3898
4064
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3900,7 +4066,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3900
4066
|
if (obj.identifierDimensionReference !== undefined) {
|
|
3901
4067
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
3902
4068
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
3903
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
4069
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$L(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
3904
4070
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
3905
4071
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
3906
4072
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3910,7 +4076,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3910
4076
|
if (obj.namingDimensionReference !== undefined) {
|
|
3911
4077
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
3912
4078
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
3913
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
4079
|
+
const referencepath_namingDimensionReferenceValidationError = validate$L(obj_namingDimensionReference, path_namingDimensionReference);
|
|
3914
4080
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
3915
4081
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
3916
4082
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3921,7 +4087,7 @@ function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3921
4087
|
return v_error === undefined ? null : v_error;
|
|
3922
4088
|
}
|
|
3923
4089
|
|
|
3924
|
-
function validate$
|
|
4090
|
+
function validate$D(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
3925
4091
|
const v_error = (() => {
|
|
3926
4092
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3927
4093
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3944,7 +4110,7 @@ function validate$E(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
3944
4110
|
return v_error === undefined ? null : v_error;
|
|
3945
4111
|
}
|
|
3946
4112
|
|
|
3947
|
-
function validate$
|
|
4113
|
+
function validate$C(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
3948
4114
|
const v_error = (() => {
|
|
3949
4115
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3950
4116
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3952,7 +4118,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3952
4118
|
if (obj.identifyingDimension !== undefined) {
|
|
3953
4119
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
3954
4120
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
3955
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
4121
|
+
const referencepath_identifyingDimensionValidationError = validate$E(obj_identifyingDimension, path_identifyingDimension);
|
|
3956
4122
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
3957
4123
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
3958
4124
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3968,7 +4134,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3968
4134
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
3969
4135
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
3970
4136
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
3971
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
4137
|
+
const referencepath_insightTypes_itemValidationError = validate$D(obj_insightTypes_item, path_insightTypes_item);
|
|
3972
4138
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
3973
4139
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
3974
4140
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3985,7 +4151,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3985
4151
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
3986
4152
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
3987
4153
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
3988
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
4154
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$L(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
3989
4155
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
3990
4156
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
3991
4157
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4018,7 +4184,7 @@ function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
4018
4184
|
return v_error === undefined ? null : v_error;
|
|
4019
4185
|
}
|
|
4020
4186
|
|
|
4021
|
-
function validate$
|
|
4187
|
+
function validate$B(obj, path = 'SemanticMetricInputRepresentation') {
|
|
4022
4188
|
const v_error = (() => {
|
|
4023
4189
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4024
4190
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4032,7 +4198,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4032
4198
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
4033
4199
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
4034
4200
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
4035
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
4201
|
+
const referencepath_additionalDimensions_itemValidationError = validate$L(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
4036
4202
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
4037
4203
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
4038
4204
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4077,7 +4243,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4077
4243
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4078
4244
|
const obj_filters_item = obj_filters[i];
|
|
4079
4245
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4080
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4246
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
4081
4247
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4082
4248
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
4083
4249
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4088,7 +4254,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4088
4254
|
if (obj.insightsSettings !== undefined) {
|
|
4089
4255
|
const obj_insightsSettings = obj.insightsSettings;
|
|
4090
4256
|
const path_insightsSettings = path + '.insightsSettings';
|
|
4091
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
4257
|
+
const referencepath_insightsSettingsValidationError = validate$C(obj_insightsSettings, path_insightsSettings);
|
|
4092
4258
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
4093
4259
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
4094
4260
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4112,7 +4278,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4112
4278
|
if (obj.measurementReference !== undefined) {
|
|
4113
4279
|
const obj_measurementReference = obj.measurementReference;
|
|
4114
4280
|
const path_measurementReference = path + '.measurementReference';
|
|
4115
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
4281
|
+
const referencepath_measurementReferenceValidationError = validate$L(obj_measurementReference, path_measurementReference);
|
|
4116
4282
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
4117
4283
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
4118
4284
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4122,7 +4288,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4122
4288
|
if (obj.timeDimensionReference !== undefined) {
|
|
4123
4289
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
4124
4290
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
4125
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
4291
|
+
const referencepath_timeDimensionReferenceValidationError = validate$L(obj_timeDimensionReference, path_timeDimensionReference);
|
|
4126
4292
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
4127
4293
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
4128
4294
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4147,7 +4313,7 @@ function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4147
4313
|
return v_error === undefined ? null : v_error;
|
|
4148
4314
|
}
|
|
4149
4315
|
|
|
4150
|
-
function validate$
|
|
4316
|
+
function validate$A(obj, path = 'SemanticParameterInputRepresentation') {
|
|
4151
4317
|
const v_error = (() => {
|
|
4152
4318
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4153
4319
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4247,8 +4413,8 @@ function validate$B(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4247
4413
|
return v_error === undefined ? null : v_error;
|
|
4248
4414
|
}
|
|
4249
4415
|
|
|
4250
|
-
const VERSION$
|
|
4251
|
-
function validate$
|
|
4416
|
+
const VERSION$o = "221b0931360d7fcb0a1402b0b82071bd";
|
|
4417
|
+
function validate$z(obj, path = 'SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation') {
|
|
4252
4418
|
const v_error = (() => {
|
|
4253
4419
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4254
4420
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4276,10 +4442,10 @@ function validate$A(obj, path = 'SemanticModelExternalConnectionTableauPublished
|
|
|
4276
4442
|
})();
|
|
4277
4443
|
return v_error === undefined ? null : v_error;
|
|
4278
4444
|
}
|
|
4279
|
-
const select$
|
|
4445
|
+
const select$D = function SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentationSelect() {
|
|
4280
4446
|
return {
|
|
4281
4447
|
kind: 'Fragment',
|
|
4282
|
-
version: VERSION$
|
|
4448
|
+
version: VERSION$o,
|
|
4283
4449
|
private: [],
|
|
4284
4450
|
selections: [
|
|
4285
4451
|
{
|
|
@@ -4301,7 +4467,7 @@ const select$F = function SemanticModelExternalConnectionTableauPublishedDataSou
|
|
|
4301
4467
|
]
|
|
4302
4468
|
};
|
|
4303
4469
|
};
|
|
4304
|
-
function equals$
|
|
4470
|
+
function equals$o(existing, incoming) {
|
|
4305
4471
|
const existing_dataSourceId = existing.dataSourceId;
|
|
4306
4472
|
const incoming_dataSourceId = incoming.dataSourceId;
|
|
4307
4473
|
if (!(existing_dataSourceId === incoming_dataSourceId)) {
|
|
@@ -4325,8 +4491,8 @@ function equals$q(existing, incoming) {
|
|
|
4325
4491
|
return true;
|
|
4326
4492
|
}
|
|
4327
4493
|
|
|
4328
|
-
const VERSION$
|
|
4329
|
-
function validate$
|
|
4494
|
+
const VERSION$n = "e760a2becca995f7bd15e714d50c088c";
|
|
4495
|
+
function validate$y(obj, path = 'SemanticModelExternalConnectionOutputRepresentation') {
|
|
4330
4496
|
const v_error = (() => {
|
|
4331
4497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4332
4498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4358,7 +4524,7 @@ function validate$z(obj, path = 'SemanticModelExternalConnectionOutputRepresenta
|
|
|
4358
4524
|
if (obj.tableauPublishedDataSource !== undefined) {
|
|
4359
4525
|
const obj_tableauPublishedDataSource = obj.tableauPublishedDataSource;
|
|
4360
4526
|
const path_tableauPublishedDataSource = path + '.tableauPublishedDataSource';
|
|
4361
|
-
const referencepath_tableauPublishedDataSourceValidationError = validate$
|
|
4527
|
+
const referencepath_tableauPublishedDataSourceValidationError = validate$z(obj_tableauPublishedDataSource, path_tableauPublishedDataSource);
|
|
4362
4528
|
if (referencepath_tableauPublishedDataSourceValidationError !== null) {
|
|
4363
4529
|
let message = 'Object doesn\'t match SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation (at "' + path_tableauPublishedDataSource + '")\n';
|
|
4364
4530
|
message += referencepath_tableauPublishedDataSourceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4373,11 +4539,11 @@ function validate$z(obj, path = 'SemanticModelExternalConnectionOutputRepresenta
|
|
|
4373
4539
|
})();
|
|
4374
4540
|
return v_error === undefined ? null : v_error;
|
|
4375
4541
|
}
|
|
4376
|
-
const select$
|
|
4377
|
-
const { selections: SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation__selections, opaque: SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation__opaque, } = select$
|
|
4542
|
+
const select$C = function SemanticModelExternalConnectionOutputRepresentationSelect() {
|
|
4543
|
+
const { selections: SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation__selections, opaque: SemanticModelExternalConnectionTableauPublishedDataSourceOutputRepresentation__opaque, } = select$D();
|
|
4378
4544
|
return {
|
|
4379
4545
|
kind: 'Fragment',
|
|
4380
|
-
version: VERSION$
|
|
4546
|
+
version: VERSION$n,
|
|
4381
4547
|
private: [],
|
|
4382
4548
|
selections: [
|
|
4383
4549
|
{
|
|
@@ -4411,7 +4577,7 @@ const select$E = function SemanticModelExternalConnectionOutputRepresentationSel
|
|
|
4411
4577
|
]
|
|
4412
4578
|
};
|
|
4413
4579
|
};
|
|
4414
|
-
function equals$
|
|
4580
|
+
function equals$n(existing, incoming) {
|
|
4415
4581
|
const existing_apiName = existing.apiName;
|
|
4416
4582
|
const incoming_apiName = incoming.apiName;
|
|
4417
4583
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4462,15 +4628,15 @@ function equals$p(existing, incoming) {
|
|
|
4462
4628
|
if (existing_tableauPublishedDataSource === undefined || incoming_tableauPublishedDataSource === undefined) {
|
|
4463
4629
|
return false;
|
|
4464
4630
|
}
|
|
4465
|
-
if (!(equals$
|
|
4631
|
+
if (!(equals$o(existing_tableauPublishedDataSource, incoming_tableauPublishedDataSource))) {
|
|
4466
4632
|
return false;
|
|
4467
4633
|
}
|
|
4468
4634
|
}
|
|
4469
4635
|
return true;
|
|
4470
4636
|
}
|
|
4471
4637
|
|
|
4472
|
-
const VERSION$
|
|
4473
|
-
function validate$
|
|
4638
|
+
const VERSION$m = "6f06bef394bf9744da80affc7b8109c6";
|
|
4639
|
+
function validate$x(obj, path = 'SemanticOverrideOutputRepresentation') {
|
|
4474
4640
|
const v_error = (() => {
|
|
4475
4641
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4476
4642
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4510,10 +4676,10 @@ function validate$y(obj, path = 'SemanticOverrideOutputRepresentation') {
|
|
|
4510
4676
|
})();
|
|
4511
4677
|
return v_error === undefined ? null : v_error;
|
|
4512
4678
|
}
|
|
4513
|
-
const select$
|
|
4679
|
+
const select$B = function SemanticOverrideOutputRepresentationSelect() {
|
|
4514
4680
|
return {
|
|
4515
4681
|
kind: 'Fragment',
|
|
4516
|
-
version: VERSION$
|
|
4682
|
+
version: VERSION$m,
|
|
4517
4683
|
private: [],
|
|
4518
4684
|
selections: [
|
|
4519
4685
|
{
|
|
@@ -4544,7 +4710,7 @@ const select$D = function SemanticOverrideOutputRepresentationSelect() {
|
|
|
4544
4710
|
]
|
|
4545
4711
|
};
|
|
4546
4712
|
};
|
|
4547
|
-
function equals$
|
|
4713
|
+
function equals$m(existing, incoming) {
|
|
4548
4714
|
const existing_entityFqn = existing.entityFqn;
|
|
4549
4715
|
const incoming_entityFqn = incoming.entityFqn;
|
|
4550
4716
|
if (!(existing_entityFqn === incoming_entityFqn)) {
|
|
@@ -4586,8 +4752,8 @@ function equals$o(existing, incoming) {
|
|
|
4586
4752
|
return true;
|
|
4587
4753
|
}
|
|
4588
4754
|
|
|
4589
|
-
const VERSION$
|
|
4590
|
-
function validate$
|
|
4755
|
+
const VERSION$l = "2ad1227d8439240d2dfe130b651f8a81";
|
|
4756
|
+
function validate$w(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4591
4757
|
const v_error = (() => {
|
|
4592
4758
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4593
4759
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4686,7 +4852,7 @@ function validate$x(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4686
4852
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4687
4853
|
const obj_filters_item = obj_filters[i];
|
|
4688
4854
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4689
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4855
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
4690
4856
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4691
4857
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4692
4858
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4706,6 +4872,13 @@ function validate$x(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4706
4872
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOverrideBase + '" (at "' + path_isOverrideBase + '")');
|
|
4707
4873
|
}
|
|
4708
4874
|
}
|
|
4875
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
4876
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
4877
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
4878
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
4879
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4709
4882
|
if (obj.isVisible !== undefined) {
|
|
4710
4883
|
const obj_isVisible = obj.isVisible;
|
|
4711
4884
|
const path_isVisible = path + '.isVisible';
|
|
@@ -4762,6 +4935,13 @@ function validate$x(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4762
4935
|
return new TypeError('Expected "string" but received "' + typeof obj_syntax + '" (at "' + path_syntax + '")');
|
|
4763
4936
|
}
|
|
4764
4937
|
}
|
|
4938
|
+
if (obj.unmapped !== undefined) {
|
|
4939
|
+
const obj_unmapped = obj.unmapped;
|
|
4940
|
+
const path_unmapped = path + '.unmapped';
|
|
4941
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
4942
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
4943
|
+
}
|
|
4944
|
+
}
|
|
4765
4945
|
})();
|
|
4766
4946
|
return v_error === undefined ? null : v_error;
|
|
4767
4947
|
}
|
|
@@ -4778,11 +4958,11 @@ function keyBuilderFromType$b(luvio, object) {
|
|
|
4778
4958
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
4779
4959
|
return input;
|
|
4780
4960
|
}
|
|
4781
|
-
const select$
|
|
4782
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4961
|
+
const select$A = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4962
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$O();
|
|
4783
4963
|
return {
|
|
4784
4964
|
kind: 'Fragment',
|
|
4785
|
-
version: VERSION$
|
|
4965
|
+
version: VERSION$l,
|
|
4786
4966
|
private: [],
|
|
4787
4967
|
selections: [
|
|
4788
4968
|
{
|
|
@@ -4863,6 +5043,11 @@ const select$C = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4863
5043
|
kind: 'Scalar',
|
|
4864
5044
|
required: false
|
|
4865
5045
|
},
|
|
5046
|
+
{
|
|
5047
|
+
name: 'isSystemDefinition',
|
|
5048
|
+
kind: 'Scalar',
|
|
5049
|
+
required: false
|
|
5050
|
+
},
|
|
4866
5051
|
{
|
|
4867
5052
|
name: 'isVisible',
|
|
4868
5053
|
kind: 'Scalar',
|
|
@@ -4902,11 +5087,16 @@ const select$C = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4902
5087
|
name: 'syntax',
|
|
4903
5088
|
kind: 'Scalar',
|
|
4904
5089
|
required: false
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
name: 'unmapped',
|
|
5093
|
+
kind: 'Scalar',
|
|
5094
|
+
required: false
|
|
4905
5095
|
}
|
|
4906
5096
|
]
|
|
4907
5097
|
};
|
|
4908
5098
|
};
|
|
4909
|
-
function equals$
|
|
5099
|
+
function equals$l(existing, incoming) {
|
|
4910
5100
|
const existing_isOverrideBase = existing.isOverrideBase;
|
|
4911
5101
|
const incoming_isOverrideBase = incoming.isOverrideBase;
|
|
4912
5102
|
// if at least one of these optionals is defined
|
|
@@ -4920,6 +5110,19 @@ function equals$n(existing, incoming) {
|
|
|
4920
5110
|
return false;
|
|
4921
5111
|
}
|
|
4922
5112
|
}
|
|
5113
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
5114
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
5115
|
+
// if at least one of these optionals is defined
|
|
5116
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
5117
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5118
|
+
// not equal
|
|
5119
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
5120
|
+
return false;
|
|
5121
|
+
}
|
|
5122
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
5123
|
+
return false;
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
4923
5126
|
const existing_isVisible = existing.isVisible;
|
|
4924
5127
|
const incoming_isVisible = incoming.isVisible;
|
|
4925
5128
|
// if at least one of these optionals is defined
|
|
@@ -4933,6 +5136,19 @@ function equals$n(existing, incoming) {
|
|
|
4933
5136
|
return false;
|
|
4934
5137
|
}
|
|
4935
5138
|
}
|
|
5139
|
+
const existing_unmapped = existing.unmapped;
|
|
5140
|
+
const incoming_unmapped = incoming.unmapped;
|
|
5141
|
+
// if at least one of these optionals is defined
|
|
5142
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
5143
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5144
|
+
// not equal
|
|
5145
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
5146
|
+
return false;
|
|
5147
|
+
}
|
|
5148
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
5149
|
+
return false;
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
4936
5152
|
const existing_decimalPlace = existing.decimalPlace;
|
|
4937
5153
|
const incoming_decimalPlace = incoming.decimalPlace;
|
|
4938
5154
|
// if at least one of these optionals is defined
|
|
@@ -5184,7 +5400,7 @@ function equals$n(existing, incoming) {
|
|
|
5184
5400
|
return false;
|
|
5185
5401
|
}
|
|
5186
5402
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5187
|
-
if (!(equals$
|
|
5403
|
+
if (!(equals$x(existing_filters_item, incoming_filters_item))) {
|
|
5188
5404
|
return false;
|
|
5189
5405
|
}
|
|
5190
5406
|
});
|
|
@@ -5196,14 +5412,14 @@ function equals$n(existing, incoming) {
|
|
|
5196
5412
|
}
|
|
5197
5413
|
const ingest$f = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5198
5414
|
if (process.env.NODE_ENV !== 'production') {
|
|
5199
|
-
const validateError = validate$
|
|
5415
|
+
const validateError = validate$w(input);
|
|
5200
5416
|
if (validateError !== null) {
|
|
5201
5417
|
throw validateError;
|
|
5202
5418
|
}
|
|
5203
5419
|
}
|
|
5204
5420
|
const key = keyBuilderFromType$b(luvio, input);
|
|
5205
5421
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5206
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$
|
|
5422
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$l, RepresentationType$f, equals$l);
|
|
5207
5423
|
return createLink(key);
|
|
5208
5424
|
};
|
|
5209
5425
|
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5216,8 +5432,8 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5216
5432
|
});
|
|
5217
5433
|
}
|
|
5218
5434
|
|
|
5219
|
-
const VERSION$
|
|
5220
|
-
function validate$
|
|
5435
|
+
const VERSION$k = "f905fd3431f6d5d1f883c03af48eb1b3";
|
|
5436
|
+
function validate$v(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
5221
5437
|
const v_error = (() => {
|
|
5222
5438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5223
5439
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5330,7 +5546,7 @@ function validate$w(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
5330
5546
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5331
5547
|
const obj_filters_item = obj_filters[i];
|
|
5332
5548
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5333
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5549
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
5334
5550
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5335
5551
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5336
5552
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5357,6 +5573,13 @@ function validate$w(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
5357
5573
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isOverrideBase + '" (at "' + path_isOverrideBase + '")');
|
|
5358
5574
|
}
|
|
5359
5575
|
}
|
|
5576
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
5577
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
5578
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
5579
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
5580
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
5581
|
+
}
|
|
5582
|
+
}
|
|
5360
5583
|
if (obj.isVisible !== undefined) {
|
|
5361
5584
|
const obj_isVisible = obj.isVisible;
|
|
5362
5585
|
const path_isVisible = path + '.isVisible';
|
|
@@ -5434,6 +5657,13 @@ function validate$w(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
5434
5657
|
return new TypeError('Expected "string" but received "' + typeof obj_totalAggregationType + '" (at "' + path_totalAggregationType + '")');
|
|
5435
5658
|
}
|
|
5436
5659
|
}
|
|
5660
|
+
if (obj.unmapped !== undefined) {
|
|
5661
|
+
const obj_unmapped = obj.unmapped;
|
|
5662
|
+
const path_unmapped = path + '.unmapped';
|
|
5663
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
5664
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
5665
|
+
}
|
|
5666
|
+
}
|
|
5437
5667
|
})();
|
|
5438
5668
|
return v_error === undefined ? null : v_error;
|
|
5439
5669
|
}
|
|
@@ -5450,11 +5680,11 @@ function keyBuilderFromType$a(luvio, object) {
|
|
|
5450
5680
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
5451
5681
|
return input;
|
|
5452
5682
|
}
|
|
5453
|
-
const select$
|
|
5454
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5683
|
+
const select$z = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
5684
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$O();
|
|
5455
5685
|
return {
|
|
5456
5686
|
kind: 'Fragment',
|
|
5457
|
-
version: VERSION$
|
|
5687
|
+
version: VERSION$k,
|
|
5458
5688
|
private: [],
|
|
5459
5689
|
selections: [
|
|
5460
5690
|
{
|
|
@@ -5550,6 +5780,11 @@ const select$B = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
5550
5780
|
kind: 'Scalar',
|
|
5551
5781
|
required: false
|
|
5552
5782
|
},
|
|
5783
|
+
{
|
|
5784
|
+
name: 'isSystemDefinition',
|
|
5785
|
+
kind: 'Scalar',
|
|
5786
|
+
required: false
|
|
5787
|
+
},
|
|
5553
5788
|
{
|
|
5554
5789
|
name: 'isVisible',
|
|
5555
5790
|
kind: 'Scalar',
|
|
@@ -5604,11 +5839,16 @@ const select$B = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
5604
5839
|
name: 'totalAggregationType',
|
|
5605
5840
|
kind: 'Scalar',
|
|
5606
5841
|
required: false
|
|
5842
|
+
},
|
|
5843
|
+
{
|
|
5844
|
+
name: 'unmapped',
|
|
5845
|
+
kind: 'Scalar',
|
|
5846
|
+
required: false
|
|
5607
5847
|
}
|
|
5608
5848
|
]
|
|
5609
5849
|
};
|
|
5610
5850
|
};
|
|
5611
|
-
function equals$
|
|
5851
|
+
function equals$k(existing, incoming) {
|
|
5612
5852
|
const existing_isAggregatable = existing.isAggregatable;
|
|
5613
5853
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
5614
5854
|
// if at least one of these optionals is defined
|
|
@@ -5635,6 +5875,19 @@ function equals$m(existing, incoming) {
|
|
|
5635
5875
|
return false;
|
|
5636
5876
|
}
|
|
5637
5877
|
}
|
|
5878
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
5879
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
5880
|
+
// if at least one of these optionals is defined
|
|
5881
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
5882
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5883
|
+
// not equal
|
|
5884
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
5885
|
+
return false;
|
|
5886
|
+
}
|
|
5887
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
5888
|
+
return false;
|
|
5889
|
+
}
|
|
5890
|
+
}
|
|
5638
5891
|
const existing_isVisible = existing.isVisible;
|
|
5639
5892
|
const incoming_isVisible = incoming.isVisible;
|
|
5640
5893
|
// if at least one of these optionals is defined
|
|
@@ -5661,6 +5914,19 @@ function equals$m(existing, incoming) {
|
|
|
5661
5914
|
return false;
|
|
5662
5915
|
}
|
|
5663
5916
|
}
|
|
5917
|
+
const existing_unmapped = existing.unmapped;
|
|
5918
|
+
const incoming_unmapped = incoming.unmapped;
|
|
5919
|
+
// if at least one of these optionals is defined
|
|
5920
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
5921
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5922
|
+
// not equal
|
|
5923
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
5924
|
+
return false;
|
|
5925
|
+
}
|
|
5926
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
5927
|
+
return false;
|
|
5928
|
+
}
|
|
5929
|
+
}
|
|
5664
5930
|
const existing_decimalPlace = existing.decimalPlace;
|
|
5665
5931
|
const incoming_decimalPlace = incoming.decimalPlace;
|
|
5666
5932
|
// if at least one of these optionals is defined
|
|
@@ -5964,7 +6230,7 @@ function equals$m(existing, incoming) {
|
|
|
5964
6230
|
return false;
|
|
5965
6231
|
}
|
|
5966
6232
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5967
|
-
if (!(equals$
|
|
6233
|
+
if (!(equals$x(existing_filters_item, incoming_filters_item))) {
|
|
5968
6234
|
return false;
|
|
5969
6235
|
}
|
|
5970
6236
|
});
|
|
@@ -5976,14 +6242,14 @@ function equals$m(existing, incoming) {
|
|
|
5976
6242
|
}
|
|
5977
6243
|
const ingest$e = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5978
6244
|
if (process.env.NODE_ENV !== 'production') {
|
|
5979
|
-
const validateError = validate$
|
|
6245
|
+
const validateError = validate$v(input);
|
|
5980
6246
|
if (validateError !== null) {
|
|
5981
6247
|
throw validateError;
|
|
5982
6248
|
}
|
|
5983
6249
|
}
|
|
5984
6250
|
const key = keyBuilderFromType$a(luvio, input);
|
|
5985
6251
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5986
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$
|
|
6252
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$k, RepresentationType$e, equals$k);
|
|
5987
6253
|
return createLink(key);
|
|
5988
6254
|
};
|
|
5989
6255
|
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5996,7 +6262,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5996
6262
|
});
|
|
5997
6263
|
}
|
|
5998
6264
|
|
|
5999
|
-
function validate$
|
|
6265
|
+
function validate$u(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
6000
6266
|
const v_error = (() => {
|
|
6001
6267
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6002
6268
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6091,6 +6357,13 @@ function validate$v(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
6091
6357
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryKey + '" (at "' + path_isPrimaryKey + '")');
|
|
6092
6358
|
}
|
|
6093
6359
|
}
|
|
6360
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
6361
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
6362
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
6363
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
6364
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
6365
|
+
}
|
|
6366
|
+
}
|
|
6094
6367
|
if (obj.isVisible !== undefined) {
|
|
6095
6368
|
const obj_isVisible = obj.isVisible;
|
|
6096
6369
|
const path_isVisible = path + '.isVisible';
|
|
@@ -6147,11 +6420,18 @@ function validate$v(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
6147
6420
|
return new TypeError('Expected "string" but received "' + typeof obj_storageDataType + '" (at "' + path_storageDataType + '")');
|
|
6148
6421
|
}
|
|
6149
6422
|
}
|
|
6423
|
+
if (obj.unmapped !== undefined) {
|
|
6424
|
+
const obj_unmapped = obj.unmapped;
|
|
6425
|
+
const path_unmapped = path + '.unmapped';
|
|
6426
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
6427
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
6428
|
+
}
|
|
6429
|
+
}
|
|
6150
6430
|
})();
|
|
6151
6431
|
return v_error === undefined ? null : v_error;
|
|
6152
6432
|
}
|
|
6153
6433
|
|
|
6154
|
-
function validate$
|
|
6434
|
+
function validate$t(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
6155
6435
|
const v_error = (() => {
|
|
6156
6436
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6157
6437
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6267,6 +6547,13 @@ function validate$u(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
6267
6547
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryKey + '" (at "' + path_isPrimaryKey + '")');
|
|
6268
6548
|
}
|
|
6269
6549
|
}
|
|
6550
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
6551
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
6552
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
6553
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
6554
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
6555
|
+
}
|
|
6556
|
+
}
|
|
6270
6557
|
if (obj.isVisible !== undefined) {
|
|
6271
6558
|
const obj_isVisible = obj.isVisible;
|
|
6272
6559
|
const path_isVisible = path + '.isVisible';
|
|
@@ -6337,12 +6624,19 @@ function validate$u(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
6337
6624
|
return new TypeError('Expected "string" but received "' + typeof obj_storageDataType + '" (at "' + path_storageDataType + '")');
|
|
6338
6625
|
}
|
|
6339
6626
|
}
|
|
6627
|
+
if (obj.unmapped !== undefined) {
|
|
6628
|
+
const obj_unmapped = obj.unmapped;
|
|
6629
|
+
const path_unmapped = path + '.unmapped';
|
|
6630
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
6631
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6340
6634
|
})();
|
|
6341
6635
|
return v_error === undefined ? null : v_error;
|
|
6342
6636
|
}
|
|
6343
6637
|
|
|
6344
|
-
const VERSION$
|
|
6345
|
-
function validate$
|
|
6638
|
+
const VERSION$j = "9792f3ddcf625ff2ab200ce7b653e1f4";
|
|
6639
|
+
function validate$s(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
6346
6640
|
const v_error = (() => {
|
|
6347
6641
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6348
6642
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6420,7 +6714,7 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6420
6714
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
6421
6715
|
const obj_filters_item = obj_filters[i];
|
|
6422
6716
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
6423
|
-
const referencepath_filters_itemValidationError = validate$
|
|
6717
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
6424
6718
|
if (referencepath_filters_itemValidationError !== null) {
|
|
6425
6719
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
6426
6720
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6433,6 +6727,13 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6433
6727
|
if (typeof obj_id !== 'string') {
|
|
6434
6728
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6435
6729
|
}
|
|
6730
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
6731
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
6732
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
6733
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
6734
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6436
6737
|
if (obj.label !== undefined) {
|
|
6437
6738
|
const obj_label = obj.label;
|
|
6438
6739
|
const path_label = path + '.label';
|
|
@@ -6461,6 +6762,13 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6461
6762
|
return new TypeError('Expected "string" but received "' + typeof obj_logicalViewId + '" (at "' + path_logicalViewId + '")');
|
|
6462
6763
|
}
|
|
6463
6764
|
}
|
|
6765
|
+
if (obj.primaryNameField !== undefined) {
|
|
6766
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
6767
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
6768
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
6769
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
6770
|
+
}
|
|
6771
|
+
}
|
|
6464
6772
|
if (obj.semanticDimensions !== undefined) {
|
|
6465
6773
|
const obj_semanticDimensions = obj.semanticDimensions;
|
|
6466
6774
|
const path_semanticDimensions = path + '.semanticDimensions';
|
|
@@ -6470,7 +6778,7 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6470
6778
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
6471
6779
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
6472
6780
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
6473
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
6781
|
+
const referencepath_semanticDimensions_itemValidationError = validate$u(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
6474
6782
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
6475
6783
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
6476
6784
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6494,7 +6802,7 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6494
6802
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
6495
6803
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
6496
6804
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
6497
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
6805
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$t(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
6498
6806
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
6499
6807
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
6500
6808
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6523,6 +6831,13 @@ function validate$t(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
6523
6831
|
return new TypeError('Expected "string" but received "' + typeof obj_tableType + '" (at "' + path_tableType + '")');
|
|
6524
6832
|
}
|
|
6525
6833
|
}
|
|
6834
|
+
if (obj.unmapped !== undefined) {
|
|
6835
|
+
const obj_unmapped = obj.unmapped;
|
|
6836
|
+
const path_unmapped = path + '.unmapped';
|
|
6837
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
6838
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
6839
|
+
}
|
|
6840
|
+
}
|
|
6526
6841
|
})();
|
|
6527
6842
|
return v_error === undefined ? null : v_error;
|
|
6528
6843
|
}
|
|
@@ -6539,15 +6854,15 @@ function keyBuilderFromType$9(luvio, object) {
|
|
|
6539
6854
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
6540
6855
|
return input;
|
|
6541
6856
|
}
|
|
6542
|
-
const select$
|
|
6857
|
+
const select$y = function SemanticDataObjectOutputRepresentationSelect() {
|
|
6543
6858
|
return {
|
|
6544
6859
|
kind: 'Fragment',
|
|
6545
|
-
version: VERSION$
|
|
6860
|
+
version: VERSION$j,
|
|
6546
6861
|
private: [],
|
|
6547
6862
|
opaque: true
|
|
6548
6863
|
};
|
|
6549
6864
|
};
|
|
6550
|
-
function equals$
|
|
6865
|
+
function equals$j(existing, incoming) {
|
|
6551
6866
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6552
6867
|
return false;
|
|
6553
6868
|
}
|
|
@@ -6555,14 +6870,14 @@ function equals$l(existing, incoming) {
|
|
|
6555
6870
|
}
|
|
6556
6871
|
const ingest$d = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6557
6872
|
if (process.env.NODE_ENV !== 'production') {
|
|
6558
|
-
const validateError = validate$
|
|
6873
|
+
const validateError = validate$s(input);
|
|
6559
6874
|
if (validateError !== null) {
|
|
6560
6875
|
throw validateError;
|
|
6561
6876
|
}
|
|
6562
6877
|
}
|
|
6563
6878
|
const key = keyBuilderFromType$9(luvio, input);
|
|
6564
6879
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6565
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$
|
|
6880
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$j, RepresentationType$d, equals$j);
|
|
6566
6881
|
return createLink(key);
|
|
6567
6882
|
};
|
|
6568
6883
|
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6575,8 +6890,8 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6575
6890
|
});
|
|
6576
6891
|
}
|
|
6577
6892
|
|
|
6578
|
-
const VERSION$
|
|
6579
|
-
function validate$
|
|
6893
|
+
const VERSION$i = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
6894
|
+
function validate$r(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
6580
6895
|
const v_error = (() => {
|
|
6581
6896
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6582
6897
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6585,10 +6900,10 @@ function validate$s(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
6585
6900
|
})();
|
|
6586
6901
|
return v_error === undefined ? null : v_error;
|
|
6587
6902
|
}
|
|
6588
|
-
const select$
|
|
6903
|
+
const select$x = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
6589
6904
|
return {
|
|
6590
6905
|
kind: 'Fragment',
|
|
6591
|
-
version: VERSION$
|
|
6906
|
+
version: VERSION$i,
|
|
6592
6907
|
private: [],
|
|
6593
6908
|
selections: [
|
|
6594
6909
|
{
|
|
@@ -6598,7 +6913,7 @@ const select$z = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
6598
6913
|
]
|
|
6599
6914
|
};
|
|
6600
6915
|
};
|
|
6601
|
-
function equals$
|
|
6916
|
+
function equals$i(existing, incoming) {
|
|
6602
6917
|
const existing_constantBinSize = existing.constantBinSize;
|
|
6603
6918
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
6604
6919
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -6607,8 +6922,8 @@ function equals$k(existing, incoming) {
|
|
|
6607
6922
|
return true;
|
|
6608
6923
|
}
|
|
6609
6924
|
|
|
6610
|
-
const VERSION$
|
|
6611
|
-
function validate$
|
|
6925
|
+
const VERSION$h = "2cdadcd630abb7b981b2d131880a68c0";
|
|
6926
|
+
function validate$q(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
6612
6927
|
const v_error = (() => {
|
|
6613
6928
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6614
6929
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6635,10 +6950,10 @@ function validate$r(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
6635
6950
|
})();
|
|
6636
6951
|
return v_error === undefined ? null : v_error;
|
|
6637
6952
|
}
|
|
6638
|
-
const select$
|
|
6953
|
+
const select$w = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
6639
6954
|
return {
|
|
6640
6955
|
kind: 'Fragment',
|
|
6641
|
-
version: VERSION$
|
|
6956
|
+
version: VERSION$h,
|
|
6642
6957
|
private: [],
|
|
6643
6958
|
selections: [
|
|
6644
6959
|
{
|
|
@@ -6654,7 +6969,7 @@ const select$y = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
6654
6969
|
]
|
|
6655
6970
|
};
|
|
6656
6971
|
};
|
|
6657
|
-
function equals$
|
|
6972
|
+
function equals$h(existing, incoming) {
|
|
6658
6973
|
const existing_name = existing.name;
|
|
6659
6974
|
const incoming_name = incoming.name;
|
|
6660
6975
|
if (!(existing_name === incoming_name)) {
|
|
@@ -6681,8 +6996,8 @@ function equals$j(existing, incoming) {
|
|
|
6681
6996
|
return true;
|
|
6682
6997
|
}
|
|
6683
6998
|
|
|
6684
|
-
const VERSION$
|
|
6685
|
-
function validate$
|
|
6999
|
+
const VERSION$g = "55c60b6207985632192cb4e419822a86";
|
|
7000
|
+
function validate$p(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
6686
7001
|
const v_error = (() => {
|
|
6687
7002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6688
7003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6696,7 +7011,7 @@ function validate$q(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6696
7011
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
6697
7012
|
const obj_groups_item = obj_groups[i];
|
|
6698
7013
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
6699
|
-
const referencepath_groups_itemValidationError = validate$
|
|
7014
|
+
const referencepath_groups_itemValidationError = validate$q(obj_groups_item, path_groups_item);
|
|
6700
7015
|
if (referencepath_groups_itemValidationError !== null) {
|
|
6701
7016
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
6702
7017
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6714,11 +7029,11 @@ function validate$q(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6714
7029
|
})();
|
|
6715
7030
|
return v_error === undefined ? null : v_error;
|
|
6716
7031
|
}
|
|
6717
|
-
const select$
|
|
6718
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
7032
|
+
const select$v = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
7033
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$w();
|
|
6719
7034
|
return {
|
|
6720
7035
|
kind: 'Fragment',
|
|
6721
|
-
version: VERSION$
|
|
7036
|
+
version: VERSION$g,
|
|
6722
7037
|
private: [],
|
|
6723
7038
|
selections: [
|
|
6724
7039
|
{
|
|
@@ -6736,7 +7051,7 @@ const select$x = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6736
7051
|
]
|
|
6737
7052
|
};
|
|
6738
7053
|
};
|
|
6739
|
-
function equals$
|
|
7054
|
+
function equals$g(existing, incoming) {
|
|
6740
7055
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6741
7056
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6742
7057
|
// if at least one of these optionals is defined
|
|
@@ -6760,7 +7075,7 @@ function equals$i(existing, incoming) {
|
|
|
6760
7075
|
return false;
|
|
6761
7076
|
}
|
|
6762
7077
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6763
|
-
if (!(equals$
|
|
7078
|
+
if (!(equals$h(existing_groups_item, incoming_groups_item))) {
|
|
6764
7079
|
return false;
|
|
6765
7080
|
}
|
|
6766
7081
|
});
|
|
@@ -6771,8 +7086,8 @@ function equals$i(existing, incoming) {
|
|
|
6771
7086
|
return true;
|
|
6772
7087
|
}
|
|
6773
7088
|
|
|
6774
|
-
const VERSION$
|
|
6775
|
-
function validate$
|
|
7089
|
+
const VERSION$f = "50dc390b159159afb1945b9a811c9f80";
|
|
7090
|
+
function validate$o(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6776
7091
|
const v_error = (() => {
|
|
6777
7092
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6778
7093
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6780,7 +7095,7 @@ function validate$p(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6780
7095
|
if (obj.binDimension !== undefined) {
|
|
6781
7096
|
const obj_binDimension = obj.binDimension;
|
|
6782
7097
|
const path_binDimension = path + '.binDimension';
|
|
6783
|
-
const referencepath_binDimensionValidationError = validate$
|
|
7098
|
+
const referencepath_binDimensionValidationError = validate$r(obj_binDimension, path_binDimension);
|
|
6784
7099
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6785
7100
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6786
7101
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6790,7 +7105,7 @@ function validate$p(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6790
7105
|
if (obj.groupDimension !== undefined) {
|
|
6791
7106
|
const obj_groupDimension = obj.groupDimension;
|
|
6792
7107
|
const path_groupDimension = path + '.groupDimension';
|
|
6793
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
7108
|
+
const referencepath_groupDimensionValidationError = validate$p(obj_groupDimension, path_groupDimension);
|
|
6794
7109
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6795
7110
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6796
7111
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6800,12 +7115,12 @@ function validate$p(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6800
7115
|
})();
|
|
6801
7116
|
return v_error === undefined ? null : v_error;
|
|
6802
7117
|
}
|
|
6803
|
-
const select$
|
|
6804
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6805
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
7118
|
+
const select$u = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
7119
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$x();
|
|
7120
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$v();
|
|
6806
7121
|
return {
|
|
6807
7122
|
kind: 'Fragment',
|
|
6808
|
-
version: VERSION$
|
|
7123
|
+
version: VERSION$f,
|
|
6809
7124
|
private: [],
|
|
6810
7125
|
selections: [
|
|
6811
7126
|
{
|
|
@@ -6823,7 +7138,7 @@ const select$w = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6823
7138
|
]
|
|
6824
7139
|
};
|
|
6825
7140
|
};
|
|
6826
|
-
function equals$
|
|
7141
|
+
function equals$f(existing, incoming) {
|
|
6827
7142
|
const existing_binDimension = existing.binDimension;
|
|
6828
7143
|
const incoming_binDimension = incoming.binDimension;
|
|
6829
7144
|
// if at least one of these optionals is defined
|
|
@@ -6833,7 +7148,7 @@ function equals$h(existing, incoming) {
|
|
|
6833
7148
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6834
7149
|
return false;
|
|
6835
7150
|
}
|
|
6836
|
-
if (!(equals$
|
|
7151
|
+
if (!(equals$i(existing_binDimension, incoming_binDimension))) {
|
|
6837
7152
|
return false;
|
|
6838
7153
|
}
|
|
6839
7154
|
}
|
|
@@ -6846,15 +7161,15 @@ function equals$h(existing, incoming) {
|
|
|
6846
7161
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6847
7162
|
return false;
|
|
6848
7163
|
}
|
|
6849
|
-
if (!(equals$
|
|
7164
|
+
if (!(equals$g(existing_groupDimension, incoming_groupDimension))) {
|
|
6850
7165
|
return false;
|
|
6851
7166
|
}
|
|
6852
7167
|
}
|
|
6853
7168
|
return true;
|
|
6854
7169
|
}
|
|
6855
7170
|
|
|
6856
|
-
const VERSION$
|
|
6857
|
-
function validate$
|
|
7171
|
+
const VERSION$e = "5ea5deda92fee8aa624509290ef6cf1c";
|
|
7172
|
+
function validate$n(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6858
7173
|
const v_error = (() => {
|
|
6859
7174
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6860
7175
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6880,7 +7195,7 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6880
7195
|
}
|
|
6881
7196
|
const obj_configuration = obj.configuration;
|
|
6882
7197
|
const path_configuration = path + '.configuration';
|
|
6883
|
-
const referencepath_configurationValidationError = validate$
|
|
7198
|
+
const referencepath_configurationValidationError = validate$o(obj_configuration, path_configuration);
|
|
6884
7199
|
if (referencepath_configurationValidationError !== null) {
|
|
6885
7200
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6886
7201
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6905,7 +7220,7 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6905
7220
|
}
|
|
6906
7221
|
const obj_fieldReference = obj.fieldReference;
|
|
6907
7222
|
const path_fieldReference = path + '.fieldReference';
|
|
6908
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
7223
|
+
const referencepath_fieldReferenceValidationError = validate$18(obj_fieldReference, path_fieldReference);
|
|
6909
7224
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6910
7225
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6911
7226
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6916,6 +7231,13 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6916
7231
|
if (typeof obj_id !== 'string') {
|
|
6917
7232
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6918
7233
|
}
|
|
7234
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
7235
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
7236
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
7237
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
7238
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
7239
|
+
}
|
|
7240
|
+
}
|
|
6919
7241
|
if (obj.label !== undefined) {
|
|
6920
7242
|
const obj_label = obj.label;
|
|
6921
7243
|
const path_label = path + '.label';
|
|
@@ -6942,6 +7264,13 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6942
7264
|
if (typeof obj_type !== 'string') {
|
|
6943
7265
|
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
6944
7266
|
}
|
|
7267
|
+
if (obj.unmapped !== undefined) {
|
|
7268
|
+
const obj_unmapped = obj.unmapped;
|
|
7269
|
+
const path_unmapped = path + '.unmapped';
|
|
7270
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
7271
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
7272
|
+
}
|
|
7273
|
+
}
|
|
6945
7274
|
})();
|
|
6946
7275
|
return v_error === undefined ? null : v_error;
|
|
6947
7276
|
}
|
|
@@ -6958,12 +7287,12 @@ function keyBuilderFromType$8(luvio, object) {
|
|
|
6958
7287
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
6959
7288
|
return input;
|
|
6960
7289
|
}
|
|
6961
|
-
const select$
|
|
6962
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6963
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
7290
|
+
const select$t = function SemanticGroupingOutputRepresentationSelect() {
|
|
7291
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$u();
|
|
7292
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$P();
|
|
6964
7293
|
return {
|
|
6965
7294
|
kind: 'Fragment',
|
|
6966
|
-
version: VERSION$
|
|
7295
|
+
version: VERSION$e,
|
|
6967
7296
|
private: [],
|
|
6968
7297
|
selections: [
|
|
6969
7298
|
{
|
|
@@ -7007,6 +7336,11 @@ const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
7007
7336
|
name: 'id',
|
|
7008
7337
|
kind: 'Scalar'
|
|
7009
7338
|
},
|
|
7339
|
+
{
|
|
7340
|
+
name: 'isSystemDefinition',
|
|
7341
|
+
kind: 'Scalar',
|
|
7342
|
+
required: false
|
|
7343
|
+
},
|
|
7010
7344
|
{
|
|
7011
7345
|
name: 'label',
|
|
7012
7346
|
kind: 'Scalar',
|
|
@@ -7025,11 +7359,42 @@ const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
7025
7359
|
{
|
|
7026
7360
|
name: 'type',
|
|
7027
7361
|
kind: 'Scalar'
|
|
7362
|
+
},
|
|
7363
|
+
{
|
|
7364
|
+
name: 'unmapped',
|
|
7365
|
+
kind: 'Scalar',
|
|
7366
|
+
required: false
|
|
7028
7367
|
}
|
|
7029
7368
|
]
|
|
7030
7369
|
};
|
|
7031
7370
|
};
|
|
7032
|
-
function equals$
|
|
7371
|
+
function equals$e(existing, incoming) {
|
|
7372
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
7373
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
7374
|
+
// if at least one of these optionals is defined
|
|
7375
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
7376
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7377
|
+
// not equal
|
|
7378
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
7379
|
+
return false;
|
|
7380
|
+
}
|
|
7381
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
7382
|
+
return false;
|
|
7383
|
+
}
|
|
7384
|
+
}
|
|
7385
|
+
const existing_unmapped = existing.unmapped;
|
|
7386
|
+
const incoming_unmapped = incoming.unmapped;
|
|
7387
|
+
// if at least one of these optionals is defined
|
|
7388
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
7389
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7390
|
+
// not equal
|
|
7391
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
7392
|
+
return false;
|
|
7393
|
+
}
|
|
7394
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
7395
|
+
return false;
|
|
7396
|
+
}
|
|
7397
|
+
}
|
|
7033
7398
|
const existing_apiName = existing.apiName;
|
|
7034
7399
|
const incoming_apiName = incoming.apiName;
|
|
7035
7400
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7135,26 +7500,26 @@ function equals$g(existing, incoming) {
|
|
|
7135
7500
|
}
|
|
7136
7501
|
const existing_configuration = existing.configuration;
|
|
7137
7502
|
const incoming_configuration = incoming.configuration;
|
|
7138
|
-
if (!(equals$
|
|
7503
|
+
if (!(equals$f(existing_configuration, incoming_configuration))) {
|
|
7139
7504
|
return false;
|
|
7140
7505
|
}
|
|
7141
7506
|
const existing_fieldReference = existing.fieldReference;
|
|
7142
7507
|
const incoming_fieldReference = incoming.fieldReference;
|
|
7143
|
-
if (!(equals$
|
|
7508
|
+
if (!(equals$y(existing_fieldReference, incoming_fieldReference))) {
|
|
7144
7509
|
return false;
|
|
7145
7510
|
}
|
|
7146
7511
|
return true;
|
|
7147
7512
|
}
|
|
7148
7513
|
const ingest$c = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7149
7514
|
if (process.env.NODE_ENV !== 'production') {
|
|
7150
|
-
const validateError = validate$
|
|
7515
|
+
const validateError = validate$n(input);
|
|
7151
7516
|
if (validateError !== null) {
|
|
7152
7517
|
throw validateError;
|
|
7153
7518
|
}
|
|
7154
7519
|
}
|
|
7155
7520
|
const key = keyBuilderFromType$8(luvio, input);
|
|
7156
7521
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7157
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$
|
|
7522
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$e, RepresentationType$c, equals$e);
|
|
7158
7523
|
return createLink(key);
|
|
7159
7524
|
};
|
|
7160
7525
|
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7167,8 +7532,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7167
7532
|
});
|
|
7168
7533
|
}
|
|
7169
7534
|
|
|
7170
|
-
const VERSION$
|
|
7171
|
-
function validate$
|
|
7535
|
+
const VERSION$d = "c5144c317ac72b60d580cab803514b8d";
|
|
7536
|
+
function validate$m(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
7172
7537
|
const v_error = (() => {
|
|
7173
7538
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7174
7539
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7211,10 +7576,10 @@ function validate$n(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
7211
7576
|
})();
|
|
7212
7577
|
return v_error === undefined ? null : v_error;
|
|
7213
7578
|
}
|
|
7214
|
-
const select$
|
|
7579
|
+
const select$s = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
7215
7580
|
return {
|
|
7216
7581
|
kind: 'Fragment',
|
|
7217
|
-
version: VERSION$
|
|
7582
|
+
version: VERSION$d,
|
|
7218
7583
|
private: [],
|
|
7219
7584
|
selections: [
|
|
7220
7585
|
{
|
|
@@ -7245,7 +7610,7 @@ const select$u = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
7245
7610
|
]
|
|
7246
7611
|
};
|
|
7247
7612
|
};
|
|
7248
|
-
function equals$
|
|
7613
|
+
function equals$d(existing, incoming) {
|
|
7249
7614
|
const existing_joinOperator = existing.joinOperator;
|
|
7250
7615
|
const incoming_joinOperator = incoming.joinOperator;
|
|
7251
7616
|
// if at least one of these optionals is defined
|
|
@@ -7314,8 +7679,8 @@ function equals$f(existing, incoming) {
|
|
|
7314
7679
|
return true;
|
|
7315
7680
|
}
|
|
7316
7681
|
|
|
7317
|
-
const VERSION$
|
|
7318
|
-
function validate$
|
|
7682
|
+
const VERSION$c = "8c02af844319b9d5bd1c08e30e3ca8dd";
|
|
7683
|
+
function validate$l(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
7319
7684
|
const v_error = (() => {
|
|
7320
7685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7321
7686
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7365,7 +7730,7 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
7365
7730
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
7366
7731
|
const obj_criteria_item = obj_criteria[i];
|
|
7367
7732
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
7368
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
7733
|
+
const referencepath_criteria_itemValidationError = validate$m(obj_criteria_item, path_criteria_item);
|
|
7369
7734
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
7370
7735
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
7371
7736
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7392,6 +7757,13 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
7392
7757
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isEnabled + '" (at "' + path_isEnabled + '")');
|
|
7393
7758
|
}
|
|
7394
7759
|
}
|
|
7760
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
7761
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
7762
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
7763
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
7764
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
7765
|
+
}
|
|
7766
|
+
}
|
|
7395
7767
|
if (obj.joinType !== undefined) {
|
|
7396
7768
|
const obj_joinType = obj.joinType;
|
|
7397
7769
|
const path_joinType = path + '.joinType';
|
|
@@ -7441,6 +7813,13 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
7441
7813
|
return new TypeError('Expected "string" but received "' + typeof obj_rightSemanticDefinitionApiName + '" (at "' + path_rightSemanticDefinitionApiName + '")');
|
|
7442
7814
|
}
|
|
7443
7815
|
}
|
|
7816
|
+
if (obj.unmapped !== undefined) {
|
|
7817
|
+
const obj_unmapped = obj.unmapped;
|
|
7818
|
+
const path_unmapped = path + '.unmapped';
|
|
7819
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
7820
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
7821
|
+
}
|
|
7822
|
+
}
|
|
7444
7823
|
})();
|
|
7445
7824
|
return v_error === undefined ? null : v_error;
|
|
7446
7825
|
}
|
|
@@ -7457,11 +7836,11 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
7457
7836
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
7458
7837
|
return input;
|
|
7459
7838
|
}
|
|
7460
|
-
const select$
|
|
7461
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
7839
|
+
const select$r = function SemanticRelationshipOutputRepresentationSelect() {
|
|
7840
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$s();
|
|
7462
7841
|
return {
|
|
7463
7842
|
kind: 'Fragment',
|
|
7464
|
-
version: VERSION$
|
|
7843
|
+
version: VERSION$c,
|
|
7465
7844
|
private: [],
|
|
7466
7845
|
selections: [
|
|
7467
7846
|
{
|
|
@@ -7512,6 +7891,11 @@ const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
7512
7891
|
kind: 'Scalar',
|
|
7513
7892
|
required: false
|
|
7514
7893
|
},
|
|
7894
|
+
{
|
|
7895
|
+
name: 'isSystemDefinition',
|
|
7896
|
+
kind: 'Scalar',
|
|
7897
|
+
required: false
|
|
7898
|
+
},
|
|
7515
7899
|
{
|
|
7516
7900
|
name: 'joinType',
|
|
7517
7901
|
kind: 'Scalar',
|
|
@@ -7546,11 +7930,16 @@ const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
7546
7930
|
name: 'rightSemanticDefinitionApiName',
|
|
7547
7931
|
kind: 'Scalar',
|
|
7548
7932
|
required: false
|
|
7933
|
+
},
|
|
7934
|
+
{
|
|
7935
|
+
name: 'unmapped',
|
|
7936
|
+
kind: 'Scalar',
|
|
7937
|
+
required: false
|
|
7549
7938
|
}
|
|
7550
7939
|
]
|
|
7551
7940
|
};
|
|
7552
7941
|
};
|
|
7553
|
-
function equals$
|
|
7942
|
+
function equals$c(existing, incoming) {
|
|
7554
7943
|
const existing_isEnabled = existing.isEnabled;
|
|
7555
7944
|
const incoming_isEnabled = incoming.isEnabled;
|
|
7556
7945
|
// if at least one of these optionals is defined
|
|
@@ -7564,6 +7953,32 @@ function equals$e(existing, incoming) {
|
|
|
7564
7953
|
return false;
|
|
7565
7954
|
}
|
|
7566
7955
|
}
|
|
7956
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
7957
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
7958
|
+
// if at least one of these optionals is defined
|
|
7959
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
7960
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7961
|
+
// not equal
|
|
7962
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
7963
|
+
return false;
|
|
7964
|
+
}
|
|
7965
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
7966
|
+
return false;
|
|
7967
|
+
}
|
|
7968
|
+
}
|
|
7969
|
+
const existing_unmapped = existing.unmapped;
|
|
7970
|
+
const incoming_unmapped = incoming.unmapped;
|
|
7971
|
+
// if at least one of these optionals is defined
|
|
7972
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
7973
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7974
|
+
// not equal
|
|
7975
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
7976
|
+
return false;
|
|
7977
|
+
}
|
|
7978
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
7979
|
+
return false;
|
|
7980
|
+
}
|
|
7981
|
+
}
|
|
7567
7982
|
const existing_apiName = existing.apiName;
|
|
7568
7983
|
const incoming_apiName = incoming.apiName;
|
|
7569
7984
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7737,7 +8152,7 @@ function equals$e(existing, incoming) {
|
|
|
7737
8152
|
return false;
|
|
7738
8153
|
}
|
|
7739
8154
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7740
|
-
if (!(equals$
|
|
8155
|
+
if (!(equals$d(existing_criteria_item, incoming_criteria_item))) {
|
|
7741
8156
|
return false;
|
|
7742
8157
|
}
|
|
7743
8158
|
});
|
|
@@ -7749,14 +8164,14 @@ function equals$e(existing, incoming) {
|
|
|
7749
8164
|
}
|
|
7750
8165
|
const ingest$b = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7751
8166
|
if (process.env.NODE_ENV !== 'production') {
|
|
7752
|
-
const validateError = validate$
|
|
8167
|
+
const validateError = validate$l(input);
|
|
7753
8168
|
if (validateError !== null) {
|
|
7754
8169
|
throw validateError;
|
|
7755
8170
|
}
|
|
7756
8171
|
}
|
|
7757
8172
|
const key = keyBuilderFromType$7(luvio, input);
|
|
7758
8173
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7759
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$
|
|
8174
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$c, RepresentationType$b, equals$c);
|
|
7760
8175
|
return createLink(key);
|
|
7761
8176
|
};
|
|
7762
8177
|
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7769,8 +8184,8 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7769
8184
|
});
|
|
7770
8185
|
}
|
|
7771
8186
|
|
|
7772
|
-
const VERSION$
|
|
7773
|
-
function validate$
|
|
8187
|
+
const VERSION$b = "fddfb9284fc64c70f7d0debf4af30c95";
|
|
8188
|
+
function validate$k(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7774
8189
|
const v_error = (() => {
|
|
7775
8190
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7776
8191
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7820,7 +8235,7 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7820
8235
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7821
8236
|
const obj_fields_item = obj_fields[i];
|
|
7822
8237
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7823
|
-
const referencepath_fields_itemValidationError = validate$
|
|
8238
|
+
const referencepath_fields_itemValidationError = validate$19(obj_fields_item, path_fields_item);
|
|
7824
8239
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7825
8240
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7826
8241
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7833,6 +8248,13 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7833
8248
|
if (typeof obj_id !== 'string') {
|
|
7834
8249
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
7835
8250
|
}
|
|
8251
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
8252
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
8253
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
8254
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
8255
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
8256
|
+
}
|
|
8257
|
+
}
|
|
7836
8258
|
if (obj.label !== undefined) {
|
|
7837
8259
|
const obj_label = obj.label;
|
|
7838
8260
|
const path_label = path + '.label';
|
|
@@ -7864,7 +8286,7 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7864
8286
|
if (obj.semanticDimension !== undefined) {
|
|
7865
8287
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7866
8288
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7867
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
8289
|
+
const referencepath_semanticDimensionValidationError = validate$u(obj_semanticDimension, path_semanticDimension);
|
|
7868
8290
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7869
8291
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7870
8292
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7874,13 +8296,20 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7874
8296
|
if (obj.semanticMeasurement !== undefined) {
|
|
7875
8297
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7876
8298
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7877
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
8299
|
+
const referencepath_semanticMeasurementValidationError = validate$t(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7878
8300
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7879
8301
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7880
8302
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7881
8303
|
return new TypeError(message);
|
|
7882
8304
|
}
|
|
7883
8305
|
}
|
|
8306
|
+
if (obj.unmapped !== undefined) {
|
|
8307
|
+
const obj_unmapped = obj.unmapped;
|
|
8308
|
+
const path_unmapped = path + '.unmapped';
|
|
8309
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
8310
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
8311
|
+
}
|
|
8312
|
+
}
|
|
7884
8313
|
})();
|
|
7885
8314
|
return v_error === undefined ? null : v_error;
|
|
7886
8315
|
}
|
|
@@ -7897,15 +8326,15 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
7897
8326
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
7898
8327
|
return input;
|
|
7899
8328
|
}
|
|
7900
|
-
const select$
|
|
8329
|
+
const select$q = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7901
8330
|
return {
|
|
7902
8331
|
kind: 'Fragment',
|
|
7903
|
-
version: VERSION$
|
|
8332
|
+
version: VERSION$b,
|
|
7904
8333
|
private: [],
|
|
7905
8334
|
opaque: true
|
|
7906
8335
|
};
|
|
7907
8336
|
};
|
|
7908
|
-
function equals$
|
|
8337
|
+
function equals$b(existing, incoming) {
|
|
7909
8338
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7910
8339
|
return false;
|
|
7911
8340
|
}
|
|
@@ -7913,14 +8342,14 @@ function equals$d(existing, incoming) {
|
|
|
7913
8342
|
}
|
|
7914
8343
|
const ingest$a = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7915
8344
|
if (process.env.NODE_ENV !== 'production') {
|
|
7916
|
-
const validateError = validate$
|
|
8345
|
+
const validateError = validate$k(input);
|
|
7917
8346
|
if (validateError !== null) {
|
|
7918
8347
|
throw validateError;
|
|
7919
8348
|
}
|
|
7920
8349
|
}
|
|
7921
8350
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7922
8351
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7923
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$
|
|
8352
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$b, RepresentationType$a, equals$b);
|
|
7924
8353
|
return createLink(key);
|
|
7925
8354
|
};
|
|
7926
8355
|
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7933,8 +8362,8 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7933
8362
|
});
|
|
7934
8363
|
}
|
|
7935
8364
|
|
|
7936
|
-
const VERSION$
|
|
7937
|
-
function validate$
|
|
8365
|
+
const VERSION$a = "69fe23112140e9fae50135dcb15c24c2";
|
|
8366
|
+
function validate$j(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7938
8367
|
const v_error = (() => {
|
|
7939
8368
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7940
8369
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8109,10 +8538,10 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
8109
8538
|
}
|
|
8110
8539
|
return input;
|
|
8111
8540
|
}
|
|
8112
|
-
const select$
|
|
8541
|
+
const select$p = function SemanticUnionOutputRepresentationSelect() {
|
|
8113
8542
|
return {
|
|
8114
8543
|
kind: 'Fragment',
|
|
8115
|
-
version: VERSION$
|
|
8544
|
+
version: VERSION$a,
|
|
8116
8545
|
private: [],
|
|
8117
8546
|
selections: [
|
|
8118
8547
|
{
|
|
@@ -8171,19 +8600,19 @@ const select$r = function SemanticUnionOutputRepresentationSelect() {
|
|
|
8171
8600
|
kind: 'Link',
|
|
8172
8601
|
plural: true,
|
|
8173
8602
|
required: false,
|
|
8174
|
-
fragment: select$
|
|
8603
|
+
fragment: select$y()
|
|
8175
8604
|
},
|
|
8176
8605
|
{
|
|
8177
8606
|
name: 'semanticMappedFields',
|
|
8178
8607
|
kind: 'Link',
|
|
8179
8608
|
plural: true,
|
|
8180
8609
|
required: false,
|
|
8181
|
-
fragment: select$
|
|
8610
|
+
fragment: select$q()
|
|
8182
8611
|
}
|
|
8183
8612
|
]
|
|
8184
8613
|
};
|
|
8185
8614
|
};
|
|
8186
|
-
function equals$
|
|
8615
|
+
function equals$a(existing, incoming) {
|
|
8187
8616
|
const existing_apiName = existing.apiName;
|
|
8188
8617
|
const incoming_apiName = incoming.apiName;
|
|
8189
8618
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8335,14 +8764,14 @@ function equals$c(existing, incoming) {
|
|
|
8335
8764
|
}
|
|
8336
8765
|
const ingest$9 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8337
8766
|
if (process.env.NODE_ENV !== 'production') {
|
|
8338
|
-
const validateError = validate$
|
|
8767
|
+
const validateError = validate$j(input);
|
|
8339
8768
|
if (validateError !== null) {
|
|
8340
8769
|
throw validateError;
|
|
8341
8770
|
}
|
|
8342
8771
|
}
|
|
8343
8772
|
const key = keyBuilderFromType$5(luvio, input);
|
|
8344
8773
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8345
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$
|
|
8774
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$a, RepresentationType$9, equals$a);
|
|
8346
8775
|
return createLink(key);
|
|
8347
8776
|
};
|
|
8348
8777
|
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -8367,8 +8796,8 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8367
8796
|
}
|
|
8368
8797
|
}
|
|
8369
8798
|
|
|
8370
|
-
const VERSION$
|
|
8371
|
-
function validate$
|
|
8799
|
+
const VERSION$9 = "666dcffd7f5590243626d818d9fa8c18";
|
|
8800
|
+
function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
8372
8801
|
const v_error = (() => {
|
|
8373
8802
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8374
8803
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8432,7 +8861,7 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8432
8861
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
8433
8862
|
const obj_filters_item = obj_filters[i];
|
|
8434
8863
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
8435
|
-
const referencepath_filters_itemValidationError = validate$
|
|
8864
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
8436
8865
|
if (referencepath_filters_itemValidationError !== null) {
|
|
8437
8866
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
8438
8867
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8445,6 +8874,13 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8445
8874
|
if (typeof obj_id !== 'string') {
|
|
8446
8875
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
8447
8876
|
}
|
|
8877
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
8878
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
8879
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
8880
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
8881
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
8882
|
+
}
|
|
8883
|
+
}
|
|
8448
8884
|
if (obj.label !== undefined) {
|
|
8449
8885
|
const obj_label = obj.label;
|
|
8450
8886
|
const path_label = path + '.label';
|
|
@@ -8466,6 +8902,13 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8466
8902
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
8467
8903
|
}
|
|
8468
8904
|
}
|
|
8905
|
+
if (obj.primaryNameField !== undefined) {
|
|
8906
|
+
const obj_primaryNameField = obj.primaryNameField;
|
|
8907
|
+
const path_primaryNameField = path + '.primaryNameField';
|
|
8908
|
+
if (typeof obj_primaryNameField !== 'string') {
|
|
8909
|
+
return new TypeError('Expected "string" but received "' + typeof obj_primaryNameField + '" (at "' + path_primaryNameField + '")');
|
|
8910
|
+
}
|
|
8911
|
+
}
|
|
8469
8912
|
if (obj.semanticDataObjects !== undefined) {
|
|
8470
8913
|
const obj_semanticDataObjects = obj.semanticDataObjects;
|
|
8471
8914
|
const path_semanticDataObjects = path + '.semanticDataObjects';
|
|
@@ -8522,6 +8965,13 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
8522
8965
|
return new TypeError('Expected "string" but received "' + typeof obj_tableType + '" (at "' + path_tableType + '")');
|
|
8523
8966
|
}
|
|
8524
8967
|
}
|
|
8968
|
+
if (obj.unmapped !== undefined) {
|
|
8969
|
+
const obj_unmapped = obj.unmapped;
|
|
8970
|
+
const path_unmapped = path + '.unmapped';
|
|
8971
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
8972
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
8973
|
+
}
|
|
8974
|
+
}
|
|
8525
8975
|
})();
|
|
8526
8976
|
return v_error === undefined ? null : v_error;
|
|
8527
8977
|
}
|
|
@@ -8592,11 +9042,11 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
|
8592
9042
|
}
|
|
8593
9043
|
return input;
|
|
8594
9044
|
}
|
|
8595
|
-
const select$
|
|
8596
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
9045
|
+
const select$o = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
9046
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$O();
|
|
8597
9047
|
return {
|
|
8598
9048
|
kind: 'Fragment',
|
|
8599
|
-
version: VERSION$
|
|
9049
|
+
version: VERSION$9,
|
|
8600
9050
|
private: [],
|
|
8601
9051
|
selections: [
|
|
8602
9052
|
{
|
|
@@ -8647,6 +9097,11 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8647
9097
|
name: 'id',
|
|
8648
9098
|
kind: 'Scalar'
|
|
8649
9099
|
},
|
|
9100
|
+
{
|
|
9101
|
+
name: 'isSystemDefinition',
|
|
9102
|
+
kind: 'Scalar',
|
|
9103
|
+
required: false
|
|
9104
|
+
},
|
|
8650
9105
|
{
|
|
8651
9106
|
name: 'label',
|
|
8652
9107
|
kind: 'Scalar',
|
|
@@ -8662,26 +9117,31 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8662
9117
|
kind: 'Scalar',
|
|
8663
9118
|
required: false
|
|
8664
9119
|
},
|
|
9120
|
+
{
|
|
9121
|
+
name: 'primaryNameField',
|
|
9122
|
+
kind: 'Scalar',
|
|
9123
|
+
required: false
|
|
9124
|
+
},
|
|
8665
9125
|
{
|
|
8666
9126
|
name: 'semanticDataObjects',
|
|
8667
9127
|
kind: 'Link',
|
|
8668
9128
|
plural: true,
|
|
8669
9129
|
required: false,
|
|
8670
|
-
fragment: select$
|
|
9130
|
+
fragment: select$y()
|
|
8671
9131
|
},
|
|
8672
9132
|
{
|
|
8673
9133
|
name: 'semanticRelationships',
|
|
8674
9134
|
kind: 'Link',
|
|
8675
9135
|
plural: true,
|
|
8676
9136
|
required: false,
|
|
8677
|
-
fragment: select$
|
|
9137
|
+
fragment: select$r()
|
|
8678
9138
|
},
|
|
8679
9139
|
{
|
|
8680
9140
|
name: 'semanticUnions',
|
|
8681
9141
|
kind: 'Link',
|
|
8682
9142
|
plural: true,
|
|
8683
9143
|
required: false,
|
|
8684
|
-
fragment: select$
|
|
9144
|
+
fragment: select$p()
|
|
8685
9145
|
},
|
|
8686
9146
|
{
|
|
8687
9147
|
name: 'semanticViewTypeEnum',
|
|
@@ -8692,11 +9152,42 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8692
9152
|
name: 'tableType',
|
|
8693
9153
|
kind: 'Scalar',
|
|
8694
9154
|
required: false
|
|
9155
|
+
},
|
|
9156
|
+
{
|
|
9157
|
+
name: 'unmapped',
|
|
9158
|
+
kind: 'Scalar',
|
|
9159
|
+
required: false
|
|
8695
9160
|
}
|
|
8696
9161
|
]
|
|
8697
9162
|
};
|
|
8698
9163
|
};
|
|
8699
|
-
function equals$
|
|
9164
|
+
function equals$9(existing, incoming) {
|
|
9165
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
9166
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
9167
|
+
// if at least one of these optionals is defined
|
|
9168
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
9169
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9170
|
+
// not equal
|
|
9171
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
9172
|
+
return false;
|
|
9173
|
+
}
|
|
9174
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
9175
|
+
return false;
|
|
9176
|
+
}
|
|
9177
|
+
}
|
|
9178
|
+
const existing_unmapped = existing.unmapped;
|
|
9179
|
+
const incoming_unmapped = incoming.unmapped;
|
|
9180
|
+
// if at least one of these optionals is defined
|
|
9181
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
9182
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9183
|
+
// not equal
|
|
9184
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
9185
|
+
return false;
|
|
9186
|
+
}
|
|
9187
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
9188
|
+
return false;
|
|
9189
|
+
}
|
|
9190
|
+
}
|
|
8700
9191
|
const existing_apiName = existing.apiName;
|
|
8701
9192
|
const incoming_apiName = incoming.apiName;
|
|
8702
9193
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8821,6 +9312,19 @@ function equals$b(existing, incoming) {
|
|
|
8821
9312
|
return false;
|
|
8822
9313
|
}
|
|
8823
9314
|
}
|
|
9315
|
+
const existing_primaryNameField = existing.primaryNameField;
|
|
9316
|
+
const incoming_primaryNameField = incoming.primaryNameField;
|
|
9317
|
+
// if at least one of these optionals is defined
|
|
9318
|
+
if (existing_primaryNameField !== undefined || incoming_primaryNameField !== undefined) {
|
|
9319
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9320
|
+
// not equal
|
|
9321
|
+
if (existing_primaryNameField === undefined || incoming_primaryNameField === undefined) {
|
|
9322
|
+
return false;
|
|
9323
|
+
}
|
|
9324
|
+
if (!(existing_primaryNameField === incoming_primaryNameField)) {
|
|
9325
|
+
return false;
|
|
9326
|
+
}
|
|
9327
|
+
}
|
|
8824
9328
|
const existing_semanticViewTypeEnum = existing.semanticViewTypeEnum;
|
|
8825
9329
|
const incoming_semanticViewTypeEnum = incoming.semanticViewTypeEnum;
|
|
8826
9330
|
// if at least one of these optionals is defined
|
|
@@ -8857,7 +9361,7 @@ function equals$b(existing, incoming) {
|
|
|
8857
9361
|
return false;
|
|
8858
9362
|
}
|
|
8859
9363
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8860
|
-
if (!(equals$
|
|
9364
|
+
if (!(equals$x(existing_filters_item, incoming_filters_item))) {
|
|
8861
9365
|
return false;
|
|
8862
9366
|
}
|
|
8863
9367
|
});
|
|
@@ -8923,14 +9427,14 @@ function equals$b(existing, incoming) {
|
|
|
8923
9427
|
}
|
|
8924
9428
|
const ingest$8 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8925
9429
|
if (process.env.NODE_ENV !== 'production') {
|
|
8926
|
-
const validateError = validate$
|
|
9430
|
+
const validateError = validate$i(input);
|
|
8927
9431
|
if (validateError !== null) {
|
|
8928
9432
|
throw validateError;
|
|
8929
9433
|
}
|
|
8930
9434
|
}
|
|
8931
9435
|
const key = keyBuilderFromType$4(luvio, input);
|
|
8932
9436
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8933
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$
|
|
9437
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$9, RepresentationType$8, equals$9);
|
|
8934
9438
|
return createLink(key);
|
|
8935
9439
|
};
|
|
8936
9440
|
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -8961,8 +9465,8 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8961
9465
|
}
|
|
8962
9466
|
}
|
|
8963
9467
|
|
|
8964
|
-
const VERSION$
|
|
8965
|
-
function validate$
|
|
9468
|
+
const VERSION$8 = "158d115be773406f841e4351d481d398";
|
|
9469
|
+
function validate$h(obj, path = 'SemanticParameterListValueOutputRepresentation') {
|
|
8966
9470
|
const v_error = (() => {
|
|
8967
9471
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8968
9472
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8984,10 +9488,10 @@ function validate$i(obj, path = 'SemanticParameterListValueOutputRepresentation'
|
|
|
8984
9488
|
})();
|
|
8985
9489
|
return v_error === undefined ? null : v_error;
|
|
8986
9490
|
}
|
|
8987
|
-
const select$
|
|
9491
|
+
const select$n = function SemanticParameterListValueOutputRepresentationSelect() {
|
|
8988
9492
|
return {
|
|
8989
9493
|
kind: 'Fragment',
|
|
8990
|
-
version: VERSION$
|
|
9494
|
+
version: VERSION$8,
|
|
8991
9495
|
private: [],
|
|
8992
9496
|
selections: [
|
|
8993
9497
|
{
|
|
@@ -9003,7 +9507,7 @@ const select$p = function SemanticParameterListValueOutputRepresentationSelect()
|
|
|
9003
9507
|
]
|
|
9004
9508
|
};
|
|
9005
9509
|
};
|
|
9006
|
-
function equals$
|
|
9510
|
+
function equals$8(existing, incoming) {
|
|
9007
9511
|
const existing_displayName = existing.displayName;
|
|
9008
9512
|
const incoming_displayName = incoming.displayName;
|
|
9009
9513
|
// if at least one of these optionals is defined
|
|
@@ -9033,8 +9537,8 @@ function equals$a(existing, incoming) {
|
|
|
9033
9537
|
return true;
|
|
9034
9538
|
}
|
|
9035
9539
|
|
|
9036
|
-
const VERSION$
|
|
9037
|
-
function validate$
|
|
9540
|
+
const VERSION$7 = "1463471c69296e6727623faee2cbfe0c";
|
|
9541
|
+
function validate$g(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
9038
9542
|
const v_error = (() => {
|
|
9039
9543
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9040
9544
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9048,7 +9552,7 @@ function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
9048
9552
|
for (let i = 0; i < obj_allowedValues.length; i++) {
|
|
9049
9553
|
const obj_allowedValues_item = obj_allowedValues[i];
|
|
9050
9554
|
const path_allowedValues_item = path_allowedValues + '[' + i + ']';
|
|
9051
|
-
const referencepath_allowedValues_itemValidationError = validate$
|
|
9555
|
+
const referencepath_allowedValues_itemValidationError = validate$h(obj_allowedValues_item, path_allowedValues_item);
|
|
9052
9556
|
if (referencepath_allowedValues_itemValidationError !== null) {
|
|
9053
9557
|
let message = 'Object doesn\'t match SemanticParameterListValueOutputRepresentation (at "' + path_allowedValues_item + '")\n';
|
|
9054
9558
|
message += referencepath_allowedValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9111,6 +9615,13 @@ function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
9111
9615
|
if (typeof obj_id !== 'string') {
|
|
9112
9616
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
9113
9617
|
}
|
|
9618
|
+
if (obj.isSystemDefinition !== undefined) {
|
|
9619
|
+
const obj_isSystemDefinition = obj.isSystemDefinition;
|
|
9620
|
+
const path_isSystemDefinition = path + '.isSystemDefinition';
|
|
9621
|
+
if (typeof obj_isSystemDefinition !== 'boolean') {
|
|
9622
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSystemDefinition + '" (at "' + path_isSystemDefinition + '")');
|
|
9623
|
+
}
|
|
9624
|
+
}
|
|
9114
9625
|
if (obj.label !== undefined) {
|
|
9115
9626
|
const obj_label = obj.label;
|
|
9116
9627
|
const path_label = path + '.label';
|
|
@@ -9160,6 +9671,13 @@ function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
9160
9671
|
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
9161
9672
|
}
|
|
9162
9673
|
}
|
|
9674
|
+
if (obj.unmapped !== undefined) {
|
|
9675
|
+
const obj_unmapped = obj.unmapped;
|
|
9676
|
+
const path_unmapped = path + '.unmapped';
|
|
9677
|
+
if (typeof obj_unmapped !== 'boolean') {
|
|
9678
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_unmapped + '" (at "' + path_unmapped + '")');
|
|
9679
|
+
}
|
|
9680
|
+
}
|
|
9163
9681
|
if (obj.values !== undefined) {
|
|
9164
9682
|
const obj_values = obj.values;
|
|
9165
9683
|
const path_values = path + '.values';
|
|
@@ -9190,11 +9708,11 @@ function keyBuilderFromType$3(luvio, object) {
|
|
|
9190
9708
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
9191
9709
|
return input;
|
|
9192
9710
|
}
|
|
9193
|
-
const select$
|
|
9194
|
-
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$
|
|
9711
|
+
const select$m = function SemanticParameterOutputRepresentationSelect() {
|
|
9712
|
+
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$n();
|
|
9195
9713
|
return {
|
|
9196
9714
|
kind: 'Fragment',
|
|
9197
|
-
version: VERSION$
|
|
9715
|
+
version: VERSION$7,
|
|
9198
9716
|
private: [],
|
|
9199
9717
|
selections: [
|
|
9200
9718
|
{
|
|
@@ -9245,6 +9763,11 @@ const select$o = function SemanticParameterOutputRepresentationSelect() {
|
|
|
9245
9763
|
name: 'id',
|
|
9246
9764
|
kind: 'Scalar'
|
|
9247
9765
|
},
|
|
9766
|
+
{
|
|
9767
|
+
name: 'isSystemDefinition',
|
|
9768
|
+
kind: 'Scalar',
|
|
9769
|
+
required: false
|
|
9770
|
+
},
|
|
9248
9771
|
{
|
|
9249
9772
|
name: 'label',
|
|
9250
9773
|
kind: 'Scalar',
|
|
@@ -9280,6 +9803,11 @@ const select$o = function SemanticParameterOutputRepresentationSelect() {
|
|
|
9280
9803
|
kind: 'Scalar',
|
|
9281
9804
|
required: false
|
|
9282
9805
|
},
|
|
9806
|
+
{
|
|
9807
|
+
name: 'unmapped',
|
|
9808
|
+
kind: 'Scalar',
|
|
9809
|
+
required: false
|
|
9810
|
+
},
|
|
9283
9811
|
{
|
|
9284
9812
|
name: 'values',
|
|
9285
9813
|
kind: 'Scalar',
|
|
@@ -9289,7 +9817,33 @@ const select$o = function SemanticParameterOutputRepresentationSelect() {
|
|
|
9289
9817
|
]
|
|
9290
9818
|
};
|
|
9291
9819
|
};
|
|
9292
|
-
function equals$
|
|
9820
|
+
function equals$7(existing, incoming) {
|
|
9821
|
+
const existing_isSystemDefinition = existing.isSystemDefinition;
|
|
9822
|
+
const incoming_isSystemDefinition = incoming.isSystemDefinition;
|
|
9823
|
+
// if at least one of these optionals is defined
|
|
9824
|
+
if (existing_isSystemDefinition !== undefined || incoming_isSystemDefinition !== undefined) {
|
|
9825
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9826
|
+
// not equal
|
|
9827
|
+
if (existing_isSystemDefinition === undefined || incoming_isSystemDefinition === undefined) {
|
|
9828
|
+
return false;
|
|
9829
|
+
}
|
|
9830
|
+
if (!(existing_isSystemDefinition === incoming_isSystemDefinition)) {
|
|
9831
|
+
return false;
|
|
9832
|
+
}
|
|
9833
|
+
}
|
|
9834
|
+
const existing_unmapped = existing.unmapped;
|
|
9835
|
+
const incoming_unmapped = incoming.unmapped;
|
|
9836
|
+
// if at least one of these optionals is defined
|
|
9837
|
+
if (existing_unmapped !== undefined || incoming_unmapped !== undefined) {
|
|
9838
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9839
|
+
// not equal
|
|
9840
|
+
if (existing_unmapped === undefined || incoming_unmapped === undefined) {
|
|
9841
|
+
return false;
|
|
9842
|
+
}
|
|
9843
|
+
if (!(existing_unmapped === incoming_unmapped)) {
|
|
9844
|
+
return false;
|
|
9845
|
+
}
|
|
9846
|
+
}
|
|
9293
9847
|
const existing_apiName = existing.apiName;
|
|
9294
9848
|
const incoming_apiName = incoming.apiName;
|
|
9295
9849
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -9476,7 +10030,7 @@ function equals$9(existing, incoming) {
|
|
|
9476
10030
|
return false;
|
|
9477
10031
|
}
|
|
9478
10032
|
const equals_allowedValues_items = equalsArray(existing_allowedValues, incoming_allowedValues, (existing_allowedValues_item, incoming_allowedValues_item) => {
|
|
9479
|
-
if (!(equals$
|
|
10033
|
+
if (!(equals$8(existing_allowedValues_item, incoming_allowedValues_item))) {
|
|
9480
10034
|
return false;
|
|
9481
10035
|
}
|
|
9482
10036
|
});
|
|
@@ -9506,14 +10060,14 @@ function equals$9(existing, incoming) {
|
|
|
9506
10060
|
}
|
|
9507
10061
|
const ingest$7 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9508
10062
|
if (process.env.NODE_ENV !== 'production') {
|
|
9509
|
-
const validateError = validate$
|
|
10063
|
+
const validateError = validate$g(input);
|
|
9510
10064
|
if (validateError !== null) {
|
|
9511
10065
|
throw validateError;
|
|
9512
10066
|
}
|
|
9513
10067
|
}
|
|
9514
10068
|
const key = keyBuilderFromType$3(luvio, input);
|
|
9515
10069
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9516
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$
|
|
10070
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$7, RepresentationType$7, equals$7);
|
|
9517
10071
|
return createLink(key);
|
|
9518
10072
|
};
|
|
9519
10073
|
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -9526,8 +10080,8 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9526
10080
|
});
|
|
9527
10081
|
}
|
|
9528
10082
|
|
|
9529
|
-
const VERSION$
|
|
9530
|
-
function validate$
|
|
10083
|
+
const VERSION$6 = "384950eda90c1492434fc4519368df85";
|
|
10084
|
+
function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
9531
10085
|
const v_error = (() => {
|
|
9532
10086
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9533
10087
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9560,7 +10114,7 @@ function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9560
10114
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
9561
10115
|
const obj_baseModels_item = obj_baseModels[i];
|
|
9562
10116
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
9563
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
10117
|
+
const referencepath_baseModels_itemValidationError = validate$11(obj_baseModels_item, path_baseModels_item);
|
|
9564
10118
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
9565
10119
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
9566
10120
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9620,7 +10174,7 @@ function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9620
10174
|
for (let i = 0; i < obj_externalConnections.length; i++) {
|
|
9621
10175
|
const obj_externalConnections_item = obj_externalConnections[i];
|
|
9622
10176
|
const path_externalConnections_item = path_externalConnections + '[' + i + ']';
|
|
9623
|
-
const referencepath_externalConnections_itemValidationError = validate$
|
|
10177
|
+
const referencepath_externalConnections_itemValidationError = validate$y(obj_externalConnections_item, path_externalConnections_item);
|
|
9624
10178
|
if (referencepath_externalConnections_itemValidationError !== null) {
|
|
9625
10179
|
let message = 'Object doesn\'t match SemanticModelExternalConnectionOutputRepresentation (at "' + path_externalConnections_item + '")\n';
|
|
9626
10180
|
message += referencepath_externalConnections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9637,7 +10191,7 @@ function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9637
10191
|
for (let i = 0; i < obj_fieldsOverrides.length; i++) {
|
|
9638
10192
|
const obj_fieldsOverrides_item = obj_fieldsOverrides[i];
|
|
9639
10193
|
const path_fieldsOverrides_item = path_fieldsOverrides + '[' + i + ']';
|
|
9640
|
-
const referencepath_fieldsOverrides_itemValidationError = validate$
|
|
10194
|
+
const referencepath_fieldsOverrides_itemValidationError = validate$x(obj_fieldsOverrides_item, path_fieldsOverrides_item);
|
|
9641
10195
|
if (referencepath_fieldsOverrides_itemValidationError !== null) {
|
|
9642
10196
|
let message = 'Object doesn\'t match SemanticOverrideOutputRepresentation (at "' + path_fieldsOverrides_item + '")\n';
|
|
9643
10197
|
message += referencepath_fieldsOverrides_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10034,13 +10588,13 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
10034
10588
|
}
|
|
10035
10589
|
return input;
|
|
10036
10590
|
}
|
|
10037
|
-
const select$
|
|
10038
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
10039
|
-
const { selections: SemanticModelExternalConnectionOutputRepresentation__selections, opaque: SemanticModelExternalConnectionOutputRepresentation__opaque, } = select$
|
|
10040
|
-
const { selections: SemanticOverrideOutputRepresentation__selections, opaque: SemanticOverrideOutputRepresentation__opaque, } = select$
|
|
10591
|
+
const select$l = function SemanticModelOutputRepresentationSelect() {
|
|
10592
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$H();
|
|
10593
|
+
const { selections: SemanticModelExternalConnectionOutputRepresentation__selections, opaque: SemanticModelExternalConnectionOutputRepresentation__opaque, } = select$C();
|
|
10594
|
+
const { selections: SemanticOverrideOutputRepresentation__selections, opaque: SemanticOverrideOutputRepresentation__opaque, } = select$B();
|
|
10041
10595
|
return {
|
|
10042
10596
|
kind: 'Fragment',
|
|
10043
|
-
version: VERSION$
|
|
10597
|
+
version: VERSION$6,
|
|
10044
10598
|
private: [],
|
|
10045
10599
|
selections: [
|
|
10046
10600
|
{
|
|
@@ -10140,7 +10694,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10140
10694
|
kind: 'Link',
|
|
10141
10695
|
plural: true,
|
|
10142
10696
|
required: false,
|
|
10143
|
-
fragment: select$
|
|
10697
|
+
fragment: select$A()
|
|
10144
10698
|
},
|
|
10145
10699
|
{
|
|
10146
10700
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -10152,7 +10706,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10152
10706
|
kind: 'Link',
|
|
10153
10707
|
plural: true,
|
|
10154
10708
|
required: false,
|
|
10155
|
-
fragment: select$
|
|
10709
|
+
fragment: select$z()
|
|
10156
10710
|
},
|
|
10157
10711
|
{
|
|
10158
10712
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -10164,7 +10718,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10164
10718
|
kind: 'Link',
|
|
10165
10719
|
plural: true,
|
|
10166
10720
|
required: false,
|
|
10167
|
-
fragment: select$
|
|
10721
|
+
fragment: select$y()
|
|
10168
10722
|
},
|
|
10169
10723
|
{
|
|
10170
10724
|
name: 'semanticDataObjectsUrl',
|
|
@@ -10176,7 +10730,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10176
10730
|
kind: 'Link',
|
|
10177
10731
|
plural: true,
|
|
10178
10732
|
required: false,
|
|
10179
|
-
fragment: select$
|
|
10733
|
+
fragment: select$t()
|
|
10180
10734
|
},
|
|
10181
10735
|
{
|
|
10182
10736
|
name: 'semanticGroupingsUrl',
|
|
@@ -10188,21 +10742,21 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10188
10742
|
kind: 'Link',
|
|
10189
10743
|
plural: true,
|
|
10190
10744
|
required: false,
|
|
10191
|
-
fragment: select$
|
|
10745
|
+
fragment: select$o()
|
|
10192
10746
|
},
|
|
10193
10747
|
{
|
|
10194
10748
|
name: 'semanticMetrics',
|
|
10195
10749
|
kind: 'Link',
|
|
10196
10750
|
plural: true,
|
|
10197
10751
|
required: false,
|
|
10198
|
-
fragment: select$
|
|
10752
|
+
fragment: select$K()
|
|
10199
10753
|
},
|
|
10200
10754
|
{
|
|
10201
10755
|
name: 'semanticParameters',
|
|
10202
10756
|
kind: 'Link',
|
|
10203
10757
|
plural: true,
|
|
10204
10758
|
required: false,
|
|
10205
|
-
fragment: select$
|
|
10759
|
+
fragment: select$m()
|
|
10206
10760
|
},
|
|
10207
10761
|
{
|
|
10208
10762
|
name: 'semanticParametersUrl',
|
|
@@ -10214,7 +10768,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10214
10768
|
kind: 'Link',
|
|
10215
10769
|
plural: true,
|
|
10216
10770
|
required: false,
|
|
10217
|
-
fragment: select$
|
|
10771
|
+
fragment: select$r()
|
|
10218
10772
|
},
|
|
10219
10773
|
{
|
|
10220
10774
|
name: 'semanticRelationshipsUrl',
|
|
@@ -10234,7 +10788,7 @@ const select$n = function SemanticModelOutputRepresentationSelect() {
|
|
|
10234
10788
|
]
|
|
10235
10789
|
};
|
|
10236
10790
|
};
|
|
10237
|
-
function equals$
|
|
10791
|
+
function equals$6(existing, incoming) {
|
|
10238
10792
|
const existing_isLocked = existing.isLocked;
|
|
10239
10793
|
const incoming_isLocked = incoming.isLocked;
|
|
10240
10794
|
// if at least one of these optionals is defined
|
|
@@ -10478,7 +11032,7 @@ function equals$8(existing, incoming) {
|
|
|
10478
11032
|
return false;
|
|
10479
11033
|
}
|
|
10480
11034
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
10481
|
-
if (!(equals$
|
|
11035
|
+
if (!(equals$r(existing_baseModels_item, incoming_baseModels_item))) {
|
|
10482
11036
|
return false;
|
|
10483
11037
|
}
|
|
10484
11038
|
});
|
|
@@ -10514,7 +11068,7 @@ function equals$8(existing, incoming) {
|
|
|
10514
11068
|
return false;
|
|
10515
11069
|
}
|
|
10516
11070
|
const equals_externalConnections_items = equalsArray(existing_externalConnections, incoming_externalConnections, (existing_externalConnections_item, incoming_externalConnections_item) => {
|
|
10517
|
-
if (!(equals$
|
|
11071
|
+
if (!(equals$n(existing_externalConnections_item, incoming_externalConnections_item))) {
|
|
10518
11072
|
return false;
|
|
10519
11073
|
}
|
|
10520
11074
|
});
|
|
@@ -10532,7 +11086,7 @@ function equals$8(existing, incoming) {
|
|
|
10532
11086
|
return false;
|
|
10533
11087
|
}
|
|
10534
11088
|
const equals_fieldsOverrides_items = equalsArray(existing_fieldsOverrides, incoming_fieldsOverrides, (existing_fieldsOverrides_item, incoming_fieldsOverrides_item) => {
|
|
10535
|
-
if (!(equals$
|
|
11089
|
+
if (!(equals$m(existing_fieldsOverrides_item, incoming_fieldsOverrides_item))) {
|
|
10536
11090
|
return false;
|
|
10537
11091
|
}
|
|
10538
11092
|
});
|
|
@@ -10701,14 +11255,14 @@ function equals$8(existing, incoming) {
|
|
|
10701
11255
|
}
|
|
10702
11256
|
const ingest$6 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10703
11257
|
if (process.env.NODE_ENV !== 'production') {
|
|
10704
|
-
const validateError = validate$
|
|
11258
|
+
const validateError = validate$f(input);
|
|
10705
11259
|
if (validateError !== null) {
|
|
10706
11260
|
throw validateError;
|
|
10707
11261
|
}
|
|
10708
11262
|
}
|
|
10709
11263
|
const key = keyBuilderFromType$2(luvio, input);
|
|
10710
11264
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10711
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$
|
|
11265
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$6, RepresentationType$6, equals$6);
|
|
10712
11266
|
return createLink(key);
|
|
10713
11267
|
};
|
|
10714
11268
|
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10769,8 +11323,8 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10769
11323
|
}
|
|
10770
11324
|
}
|
|
10771
11325
|
|
|
10772
|
-
function select$
|
|
10773
|
-
return select$
|
|
11326
|
+
function select$k(luvio, params) {
|
|
11327
|
+
return select$l();
|
|
10774
11328
|
}
|
|
10775
11329
|
function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
|
|
10776
11330
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -10781,7 +11335,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
10781
11335
|
luvio.storeIngest(key, ingest$6, body);
|
|
10782
11336
|
const snapshot = luvio.storeLookup({
|
|
10783
11337
|
recordId: key,
|
|
10784
|
-
node: select$
|
|
11338
|
+
node: select$k(),
|
|
10785
11339
|
variables: {},
|
|
10786
11340
|
});
|
|
10787
11341
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10839,7 +11393,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10839
11393
|
const untrustedConfig_baseModels_array = [];
|
|
10840
11394
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10841
11395
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10842
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate
|
|
11396
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$_(untrustedConfig_baseModels_item);
|
|
10843
11397
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10844
11398
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10845
11399
|
}
|
|
@@ -10851,7 +11405,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10851
11405
|
const untrustedConfig_externalConnections_array = [];
|
|
10852
11406
|
for (let i = 0, arrayLength = untrustedConfig_externalConnections.length; i < arrayLength; i++) {
|
|
10853
11407
|
const untrustedConfig_externalConnections_item = untrustedConfig_externalConnections[i];
|
|
10854
|
-
const referenceSemanticModelExternalConnectionInputRepresentationValidationError = validate$
|
|
11408
|
+
const referenceSemanticModelExternalConnectionInputRepresentationValidationError = validate$Y(untrustedConfig_externalConnections_item);
|
|
10855
11409
|
if (referenceSemanticModelExternalConnectionInputRepresentationValidationError === null) {
|
|
10856
11410
|
untrustedConfig_externalConnections_array.push(untrustedConfig_externalConnections_item);
|
|
10857
11411
|
}
|
|
@@ -10863,7 +11417,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10863
11417
|
const untrustedConfig_fieldsOverrides_array = [];
|
|
10864
11418
|
for (let i = 0, arrayLength = untrustedConfig_fieldsOverrides.length; i < arrayLength; i++) {
|
|
10865
11419
|
const untrustedConfig_fieldsOverrides_item = untrustedConfig_fieldsOverrides[i];
|
|
10866
|
-
const referenceSemanticOverrideInputRepresentationValidationError = validate$
|
|
11420
|
+
const referenceSemanticOverrideInputRepresentationValidationError = validate$X(untrustedConfig_fieldsOverrides_item);
|
|
10867
11421
|
if (referenceSemanticOverrideInputRepresentationValidationError === null) {
|
|
10868
11422
|
untrustedConfig_fieldsOverrides_array.push(untrustedConfig_fieldsOverrides_item);
|
|
10869
11423
|
}
|
|
@@ -10875,7 +11429,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10875
11429
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10876
11430
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10877
11431
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10878
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
11432
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$V(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10879
11433
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10880
11434
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10881
11435
|
}
|
|
@@ -10887,7 +11441,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10887
11441
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10888
11442
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10889
11443
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10890
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
11444
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$U(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10891
11445
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10892
11446
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10893
11447
|
}
|
|
@@ -10899,7 +11453,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10899
11453
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10900
11454
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10901
11455
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10902
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
11456
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$R(untrustedConfig_semanticDataObjects_item);
|
|
10903
11457
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10904
11458
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10905
11459
|
}
|
|
@@ -10911,7 +11465,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10911
11465
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10912
11466
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10913
11467
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10914
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
11468
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$K(untrustedConfig_semanticGroupings_item);
|
|
10915
11469
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10916
11470
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10917
11471
|
}
|
|
@@ -10923,7 +11477,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10923
11477
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10924
11478
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10925
11479
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10926
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
11480
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$F(untrustedConfig_semanticLogicalViews_item);
|
|
10927
11481
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10928
11482
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10929
11483
|
}
|
|
@@ -10935,7 +11489,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10935
11489
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10936
11490
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10937
11491
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10938
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
11492
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$B(untrustedConfig_semanticMetrics_item);
|
|
10939
11493
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10940
11494
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10941
11495
|
}
|
|
@@ -10947,7 +11501,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10947
11501
|
const untrustedConfig_semanticParameters_array = [];
|
|
10948
11502
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10949
11503
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10950
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
11504
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$A(untrustedConfig_semanticParameters_item);
|
|
10951
11505
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10952
11506
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10953
11507
|
}
|
|
@@ -10959,7 +11513,7 @@ function typeCheckConfig$h(untrustedConfig) {
|
|
|
10959
11513
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10960
11514
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10961
11515
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10962
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
11516
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$I(untrustedConfig_semanticRelationships_item);
|
|
10963
11517
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10964
11518
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10965
11519
|
}
|
|
@@ -11010,8 +11564,8 @@ const createSemanticModelAdapterFactory = (luvio) => {
|
|
|
11010
11564
|
};
|
|
11011
11565
|
};
|
|
11012
11566
|
|
|
11013
|
-
function select$
|
|
11014
|
-
return select$
|
|
11567
|
+
function select$j(luvio, params) {
|
|
11568
|
+
return select$l();
|
|
11015
11569
|
}
|
|
11016
11570
|
function keyBuilder$m(luvio, params) {
|
|
11017
11571
|
return keyBuilder$n(luvio, {
|
|
@@ -11027,7 +11581,7 @@ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11027
11581
|
luvio.storeIngest(key, ingest$6, body);
|
|
11028
11582
|
const snapshot = luvio.storeLookup({
|
|
11029
11583
|
recordId: key,
|
|
11030
|
-
node: select$
|
|
11584
|
+
node: select$j(),
|
|
11031
11585
|
variables: {},
|
|
11032
11586
|
}, snapshotRefresh);
|
|
11033
11587
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11091,7 +11645,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
11091
11645
|
}
|
|
11092
11646
|
function adapterFragment$8(luvio, config) {
|
|
11093
11647
|
createResourceParams$g(config);
|
|
11094
|
-
return select$
|
|
11648
|
+
return select$j();
|
|
11095
11649
|
}
|
|
11096
11650
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
11097
11651
|
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
@@ -11147,8 +11701,8 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
11147
11701
|
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
11148
11702
|
};
|
|
11149
11703
|
|
|
11150
|
-
function select$
|
|
11151
|
-
return select$
|
|
11704
|
+
function select$i(luvio, params) {
|
|
11705
|
+
return select$l();
|
|
11152
11706
|
}
|
|
11153
11707
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
11154
11708
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -11159,7 +11713,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
11159
11713
|
luvio.storeIngest(key, ingest$6, body);
|
|
11160
11714
|
const snapshot = luvio.storeLookup({
|
|
11161
11715
|
recordId: key,
|
|
11162
|
-
node: select$
|
|
11716
|
+
node: select$i(),
|
|
11163
11717
|
variables: {},
|
|
11164
11718
|
});
|
|
11165
11719
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11218,7 +11772,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11218
11772
|
const untrustedConfig_baseModels_array = [];
|
|
11219
11773
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
11220
11774
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
11221
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate
|
|
11775
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$_(untrustedConfig_baseModels_item);
|
|
11222
11776
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
11223
11777
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
11224
11778
|
}
|
|
@@ -11230,7 +11784,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11230
11784
|
const untrustedConfig_externalConnections_array = [];
|
|
11231
11785
|
for (let i = 0, arrayLength = untrustedConfig_externalConnections.length; i < arrayLength; i++) {
|
|
11232
11786
|
const untrustedConfig_externalConnections_item = untrustedConfig_externalConnections[i];
|
|
11233
|
-
const referenceSemanticModelExternalConnectionInputRepresentationValidationError = validate$
|
|
11787
|
+
const referenceSemanticModelExternalConnectionInputRepresentationValidationError = validate$Y(untrustedConfig_externalConnections_item);
|
|
11234
11788
|
if (referenceSemanticModelExternalConnectionInputRepresentationValidationError === null) {
|
|
11235
11789
|
untrustedConfig_externalConnections_array.push(untrustedConfig_externalConnections_item);
|
|
11236
11790
|
}
|
|
@@ -11242,7 +11796,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11242
11796
|
const untrustedConfig_fieldsOverrides_array = [];
|
|
11243
11797
|
for (let i = 0, arrayLength = untrustedConfig_fieldsOverrides.length; i < arrayLength; i++) {
|
|
11244
11798
|
const untrustedConfig_fieldsOverrides_item = untrustedConfig_fieldsOverrides[i];
|
|
11245
|
-
const referenceSemanticOverrideInputRepresentationValidationError = validate$
|
|
11799
|
+
const referenceSemanticOverrideInputRepresentationValidationError = validate$X(untrustedConfig_fieldsOverrides_item);
|
|
11246
11800
|
if (referenceSemanticOverrideInputRepresentationValidationError === null) {
|
|
11247
11801
|
untrustedConfig_fieldsOverrides_array.push(untrustedConfig_fieldsOverrides_item);
|
|
11248
11802
|
}
|
|
@@ -11254,7 +11808,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11254
11808
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
11255
11809
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
11256
11810
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
11257
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
11811
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$V(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11258
11812
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
11259
11813
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
11260
11814
|
}
|
|
@@ -11266,7 +11820,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11266
11820
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
11267
11821
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
11268
11822
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
11269
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
11823
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$U(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11270
11824
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
11271
11825
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
11272
11826
|
}
|
|
@@ -11278,7 +11832,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11278
11832
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
11279
11833
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
11280
11834
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
11281
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
11835
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$R(untrustedConfig_semanticDataObjects_item);
|
|
11282
11836
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
11283
11837
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
11284
11838
|
}
|
|
@@ -11290,7 +11844,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11290
11844
|
const untrustedConfig_semanticGroupings_array = [];
|
|
11291
11845
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
11292
11846
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
11293
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
11847
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$K(untrustedConfig_semanticGroupings_item);
|
|
11294
11848
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
11295
11849
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
11296
11850
|
}
|
|
@@ -11302,7 +11856,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11302
11856
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
11303
11857
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
11304
11858
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
11305
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
11859
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$F(untrustedConfig_semanticLogicalViews_item);
|
|
11306
11860
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
11307
11861
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
11308
11862
|
}
|
|
@@ -11314,7 +11868,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11314
11868
|
const untrustedConfig_semanticMetrics_array = [];
|
|
11315
11869
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
11316
11870
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
11317
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
11871
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$B(untrustedConfig_semanticMetrics_item);
|
|
11318
11872
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
11319
11873
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
11320
11874
|
}
|
|
@@ -11326,7 +11880,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11326
11880
|
const untrustedConfig_semanticParameters_array = [];
|
|
11327
11881
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
11328
11882
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
11329
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
11883
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$A(untrustedConfig_semanticParameters_item);
|
|
11330
11884
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
11331
11885
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
11332
11886
|
}
|
|
@@ -11338,7 +11892,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
11338
11892
|
const untrustedConfig_semanticRelationships_array = [];
|
|
11339
11893
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
11340
11894
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
11341
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
11895
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$I(untrustedConfig_semanticRelationships_item);
|
|
11342
11896
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
11343
11897
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
11344
11898
|
}
|
|
@@ -11389,118 +11943,6 @@ const patchSemanticModelAdapterFactory = (luvio) => {
|
|
|
11389
11943
|
};
|
|
11390
11944
|
};
|
|
11391
11945
|
|
|
11392
|
-
const VERSION$7 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
11393
|
-
function validate$f(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
11394
|
-
const v_error = (() => {
|
|
11395
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11396
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11397
|
-
}
|
|
11398
|
-
const obj_apiName = obj.apiName;
|
|
11399
|
-
const path_apiName = path + '.apiName';
|
|
11400
|
-
if (typeof obj_apiName !== 'string') {
|
|
11401
|
-
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
11402
|
-
}
|
|
11403
|
-
if (obj.definitionType !== undefined) {
|
|
11404
|
-
const obj_definitionType = obj.definitionType;
|
|
11405
|
-
const path_definitionType = path + '.definitionType';
|
|
11406
|
-
if (typeof obj_definitionType !== 'string') {
|
|
11407
|
-
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
11408
|
-
}
|
|
11409
|
-
}
|
|
11410
|
-
if (obj.label !== undefined) {
|
|
11411
|
-
const obj_label = obj.label;
|
|
11412
|
-
const path_label = path + '.label';
|
|
11413
|
-
if (typeof obj_label !== 'string') {
|
|
11414
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
11415
|
-
}
|
|
11416
|
-
}
|
|
11417
|
-
if (obj.modelApiName !== undefined) {
|
|
11418
|
-
const obj_modelApiName = obj.modelApiName;
|
|
11419
|
-
const path_modelApiName = path + '.modelApiName';
|
|
11420
|
-
if (typeof obj_modelApiName !== 'string') {
|
|
11421
|
-
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
11422
|
-
}
|
|
11423
|
-
}
|
|
11424
|
-
})();
|
|
11425
|
-
return v_error === undefined ? null : v_error;
|
|
11426
|
-
}
|
|
11427
|
-
const select$j = function SemanticDependencyOutputRepresentationSelect() {
|
|
11428
|
-
return {
|
|
11429
|
-
kind: 'Fragment',
|
|
11430
|
-
version: VERSION$7,
|
|
11431
|
-
private: [],
|
|
11432
|
-
selections: [
|
|
11433
|
-
{
|
|
11434
|
-
name: 'apiName',
|
|
11435
|
-
kind: 'Scalar'
|
|
11436
|
-
},
|
|
11437
|
-
{
|
|
11438
|
-
name: 'definitionType',
|
|
11439
|
-
kind: 'Scalar',
|
|
11440
|
-
required: false
|
|
11441
|
-
},
|
|
11442
|
-
{
|
|
11443
|
-
name: 'label',
|
|
11444
|
-
kind: 'Scalar',
|
|
11445
|
-
required: false
|
|
11446
|
-
},
|
|
11447
|
-
{
|
|
11448
|
-
name: 'modelApiName',
|
|
11449
|
-
kind: 'Scalar',
|
|
11450
|
-
required: false
|
|
11451
|
-
}
|
|
11452
|
-
]
|
|
11453
|
-
};
|
|
11454
|
-
};
|
|
11455
|
-
function equals$7(existing, incoming) {
|
|
11456
|
-
const existing_apiName = existing.apiName;
|
|
11457
|
-
const incoming_apiName = incoming.apiName;
|
|
11458
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
11459
|
-
return false;
|
|
11460
|
-
}
|
|
11461
|
-
const existing_definitionType = existing.definitionType;
|
|
11462
|
-
const incoming_definitionType = incoming.definitionType;
|
|
11463
|
-
// if at least one of these optionals is defined
|
|
11464
|
-
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
11465
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11466
|
-
// not equal
|
|
11467
|
-
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
11468
|
-
return false;
|
|
11469
|
-
}
|
|
11470
|
-
if (!(existing_definitionType === incoming_definitionType)) {
|
|
11471
|
-
return false;
|
|
11472
|
-
}
|
|
11473
|
-
}
|
|
11474
|
-
const existing_label = existing.label;
|
|
11475
|
-
const incoming_label = incoming.label;
|
|
11476
|
-
// if at least one of these optionals is defined
|
|
11477
|
-
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
11478
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11479
|
-
// not equal
|
|
11480
|
-
if (existing_label === undefined || incoming_label === undefined) {
|
|
11481
|
-
return false;
|
|
11482
|
-
}
|
|
11483
|
-
if (!(existing_label === incoming_label)) {
|
|
11484
|
-
return false;
|
|
11485
|
-
}
|
|
11486
|
-
}
|
|
11487
|
-
const existing_modelApiName = existing.modelApiName;
|
|
11488
|
-
const incoming_modelApiName = incoming.modelApiName;
|
|
11489
|
-
// if at least one of these optionals is defined
|
|
11490
|
-
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
11491
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11492
|
-
// not equal
|
|
11493
|
-
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
11494
|
-
return false;
|
|
11495
|
-
}
|
|
11496
|
-
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
11497
|
-
return false;
|
|
11498
|
-
}
|
|
11499
|
-
}
|
|
11500
|
-
return true;
|
|
11501
|
-
}
|
|
11502
|
-
|
|
11503
|
-
const VERSION$6 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
11504
11946
|
function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
11505
11947
|
const v_error = (() => {
|
|
11506
11948
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -11522,11 +11964,8 @@ function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
11522
11964
|
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
11523
11965
|
const obj_dependencies_item = obj_dependencies[i];
|
|
11524
11966
|
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
11528
|
-
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11529
|
-
return new TypeError(message);
|
|
11967
|
+
if (typeof obj_dependencies_item !== 'object') {
|
|
11968
|
+
return new TypeError('Expected "object" but received "' + typeof obj_dependencies_item + '" (at "' + path_dependencies_item + '")');
|
|
11530
11969
|
}
|
|
11531
11970
|
}
|
|
11532
11971
|
}
|
|
@@ -11540,82 +11979,9 @@ function validate$e(obj, path = 'SemanticDependencyInnerCollectionOutputRepresen
|
|
|
11540
11979
|
})();
|
|
11541
11980
|
return v_error === undefined ? null : v_error;
|
|
11542
11981
|
}
|
|
11543
|
-
const select$i = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
11544
|
-
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$j();
|
|
11545
|
-
return {
|
|
11546
|
-
kind: 'Fragment',
|
|
11547
|
-
version: VERSION$6,
|
|
11548
|
-
private: [],
|
|
11549
|
-
selections: [
|
|
11550
|
-
{
|
|
11551
|
-
name: 'definitionApiName',
|
|
11552
|
-
kind: 'Scalar',
|
|
11553
|
-
required: false
|
|
11554
|
-
},
|
|
11555
|
-
{
|
|
11556
|
-
name: 'dependencies',
|
|
11557
|
-
kind: 'Object',
|
|
11558
|
-
plural: true,
|
|
11559
|
-
selections: SemanticDependencyOutputRepresentation__selections,
|
|
11560
|
-
required: false
|
|
11561
|
-
},
|
|
11562
|
-
{
|
|
11563
|
-
name: 'fieldApiName',
|
|
11564
|
-
kind: 'Scalar',
|
|
11565
|
-
required: false
|
|
11566
|
-
}
|
|
11567
|
-
]
|
|
11568
|
-
};
|
|
11569
|
-
};
|
|
11570
|
-
function equals$6(existing, incoming) {
|
|
11571
|
-
const existing_definitionApiName = existing.definitionApiName;
|
|
11572
|
-
const incoming_definitionApiName = incoming.definitionApiName;
|
|
11573
|
-
// if at least one of these optionals is defined
|
|
11574
|
-
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
11575
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11576
|
-
// not equal
|
|
11577
|
-
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
11578
|
-
return false;
|
|
11579
|
-
}
|
|
11580
|
-
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
11581
|
-
return false;
|
|
11582
|
-
}
|
|
11583
|
-
}
|
|
11584
|
-
const existing_fieldApiName = existing.fieldApiName;
|
|
11585
|
-
const incoming_fieldApiName = incoming.fieldApiName;
|
|
11586
|
-
// if at least one of these optionals is defined
|
|
11587
|
-
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
11588
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11589
|
-
// not equal
|
|
11590
|
-
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
11591
|
-
return false;
|
|
11592
|
-
}
|
|
11593
|
-
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
11594
|
-
return false;
|
|
11595
|
-
}
|
|
11596
|
-
}
|
|
11597
|
-
const existing_dependencies = existing.dependencies;
|
|
11598
|
-
const incoming_dependencies = incoming.dependencies;
|
|
11599
|
-
// if at least one of these optionals is defined
|
|
11600
|
-
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
11601
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11602
|
-
// not equal
|
|
11603
|
-
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
11604
|
-
return false;
|
|
11605
|
-
}
|
|
11606
|
-
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
11607
|
-
if (!(equals$7(existing_dependencies_item, incoming_dependencies_item))) {
|
|
11608
|
-
return false;
|
|
11609
|
-
}
|
|
11610
|
-
});
|
|
11611
|
-
if (equals_dependencies_items === false) {
|
|
11612
|
-
return false;
|
|
11613
|
-
}
|
|
11614
|
-
}
|
|
11615
|
-
return true;
|
|
11616
|
-
}
|
|
11617
11982
|
|
|
11618
|
-
const
|
|
11983
|
+
const TTL = 100;
|
|
11984
|
+
const VERSION$5 = "9d47b2b8e7223a9d5ff7a0fea7e030e6";
|
|
11619
11985
|
function validate$d(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
11620
11986
|
const v_error = (() => {
|
|
11621
11987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -11646,40 +12012,16 @@ function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
|
11646
12012
|
return input;
|
|
11647
12013
|
}
|
|
11648
12014
|
const select$h = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
11649
|
-
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$i();
|
|
11650
12015
|
return {
|
|
11651
12016
|
kind: 'Fragment',
|
|
11652
12017
|
version: VERSION$5,
|
|
11653
12018
|
private: [],
|
|
11654
|
-
|
|
11655
|
-
{
|
|
11656
|
-
name: 'item',
|
|
11657
|
-
kind: 'Object',
|
|
11658
|
-
plural: true,
|
|
11659
|
-
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
11660
|
-
required: false
|
|
11661
|
-
}
|
|
11662
|
-
]
|
|
12019
|
+
opaque: true
|
|
11663
12020
|
};
|
|
11664
12021
|
};
|
|
11665
12022
|
function equals$5(existing, incoming) {
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
// if at least one of these optionals is defined
|
|
11669
|
-
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
11670
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
11671
|
-
// not equal
|
|
11672
|
-
if (existing_item === undefined || incoming_item === undefined) {
|
|
11673
|
-
return false;
|
|
11674
|
-
}
|
|
11675
|
-
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
11676
|
-
if (!(equals$6(existing_item_item, incoming_item_item))) {
|
|
11677
|
-
return false;
|
|
11678
|
-
}
|
|
11679
|
-
});
|
|
11680
|
-
if (equals_item_items === false) {
|
|
11681
|
-
return false;
|
|
11682
|
-
}
|
|
12023
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
12024
|
+
return false;
|
|
11683
12025
|
}
|
|
11684
12026
|
return true;
|
|
11685
12027
|
}
|
|
@@ -11691,7 +12033,7 @@ const ingest$5 = function SemanticDependencyCollectionOutputRepresentationIngest
|
|
|
11691
12033
|
}
|
|
11692
12034
|
}
|
|
11693
12035
|
const key = path.fullPath;
|
|
11694
|
-
const ttlToUse =
|
|
12036
|
+
const ttlToUse = TTL;
|
|
11695
12037
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$5, RepresentationType$5, equals$5);
|
|
11696
12038
|
return createLink(key);
|
|
11697
12039
|
};
|
|
@@ -11734,7 +12076,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11734
12076
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
11735
12077
|
const key = keyBuilder$k(luvio, params);
|
|
11736
12078
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11737
|
-
|
|
12079
|
+
const storeMetadataParams = {
|
|
12080
|
+
ttl: TTL,
|
|
12081
|
+
namespace: keyPrefix,
|
|
12082
|
+
version: VERSION$5,
|
|
12083
|
+
representationName: RepresentationType$5
|
|
12084
|
+
};
|
|
12085
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
11738
12086
|
return errorSnapshot;
|
|
11739
12087
|
}
|
|
11740
12088
|
function createResourceRequest$e(config) {
|
|
@@ -12703,7 +13051,7 @@ function validate$5(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
12703
13051
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
12704
13052
|
const obj_filters_item = obj_filters[i];
|
|
12705
13053
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
12706
|
-
const referencepath_filters_itemValidationError = validate$
|
|
13054
|
+
const referencepath_filters_itemValidationError = validate$17(obj_filters_item, path_filters_item);
|
|
12707
13055
|
if (referencepath_filters_itemValidationError !== null) {
|
|
12708
13056
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
12709
13057
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -12757,7 +13105,7 @@ function validate$5(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
12757
13105
|
if (obj.semanticMetric !== undefined) {
|
|
12758
13106
|
const obj_semanticMetric = obj.semanticMetric;
|
|
12759
13107
|
const path_semanticMetric = path + '.semanticMetric';
|
|
12760
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
13108
|
+
const referencepath_semanticMetricValidationError = validate$13(obj_semanticMetric, path_semanticMetric);
|
|
12761
13109
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
12762
13110
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
12763
13111
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -13205,7 +13553,7 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
13205
13553
|
};
|
|
13206
13554
|
|
|
13207
13555
|
function select$7(luvio, params) {
|
|
13208
|
-
return select$
|
|
13556
|
+
return select$J();
|
|
13209
13557
|
}
|
|
13210
13558
|
function keyBuilder$b(luvio, params) {
|
|
13211
13559
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
@@ -13337,7 +13685,7 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
13337
13685
|
};
|
|
13338
13686
|
|
|
13339
13687
|
function select$6(luvio, params) {
|
|
13340
|
-
return select$
|
|
13688
|
+
return select$K();
|
|
13341
13689
|
}
|
|
13342
13690
|
function keyBuilder$9(luvio, params) {
|
|
13343
13691
|
return keyBuilder$B(luvio, {
|
|
@@ -13835,7 +14183,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
13835
14183
|
const untrustedConfig_filters_array = [];
|
|
13836
14184
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
13837
14185
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
13838
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
14186
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$W(untrustedConfig_filters_item);
|
|
13839
14187
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
13840
14188
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
13841
14189
|
}
|