@salesforce/lds-adapters-cdp-semantic-authoring 1.335.0 → 1.336.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +1180 -729
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/package.json +3 -3
- package/sfdc/index.js +1059 -597
- package/src/raml/api.raml +37 -0
- package/src/raml/luvio.raml +4 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a, typeCheckConfig as typeCheckConfig$g, StoreKeyMap, createResourceParams as createResourceParams$g } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate
|
|
95
|
+
const VERSION$w = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
+
function validate$$(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$Y(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$K = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$w,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -134,7 +134,7 @@ const select$G = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
134
134
|
]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
function equals$
|
|
137
|
+
function equals$w(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$t(existing, incoming) {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const VERSION$
|
|
168
|
-
function validate$
|
|
167
|
+
const VERSION$v = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
+
function validate$_(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$X(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$$(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$X(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$J = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$v,
|
|
198
198
|
private: [],
|
|
199
199
|
selections: [
|
|
200
200
|
{
|
|
@@ -211,7 +211,7 @@ const select$F = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
211
211
|
]
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
function equals$
|
|
214
|
+
function equals$v(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$s(existing, incoming) {
|
|
|
234
234
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
if (!(equals$
|
|
237
|
+
if (!(equals$w(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$u = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
|
+
function validate$Z(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 + '")');
|
|
@@ -271,10 +271,10 @@ function validate$W(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const select$
|
|
274
|
+
const select$I = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
277
|
+
version: VERSION$u,
|
|
278
278
|
private: [],
|
|
279
279
|
selections: [
|
|
280
280
|
{
|
|
@@ -295,7 +295,7 @@ const select$E = function SemanticFilterOutputRepresentationSelect() {
|
|
|
295
295
|
]
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
function equals$
|
|
298
|
+
function equals$u(existing, incoming) {
|
|
299
299
|
const existing_fieldName = existing.fieldName;
|
|
300
300
|
const incoming_fieldName = incoming.fieldName;
|
|
301
301
|
// if at least one of these optionals is defined
|
|
@@ -338,8 +338,8 @@ function equals$r(existing, incoming) {
|
|
|
338
338
|
return true;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
const VERSION$
|
|
342
|
-
function validate$
|
|
341
|
+
const VERSION$t = "a50848c632bb205d5e910bb726d9219e";
|
|
342
|
+
function validate$Y(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
343
343
|
const v_error = (() => {
|
|
344
344
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
345
345
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -347,7 +347,7 @@ function validate$V(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
347
347
|
if (obj.identifierDimensionReference !== undefined) {
|
|
348
348
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
349
349
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
350
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
350
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$_(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
351
351
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
352
352
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
353
353
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -357,7 +357,7 @@ function validate$V(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
357
357
|
if (obj.namingDimensionReference !== undefined) {
|
|
358
358
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
359
359
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
360
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
360
|
+
const referencepath_namingDimensionReferenceValidationError = validate$_(obj_namingDimensionReference, path_namingDimensionReference);
|
|
361
361
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
362
362
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
363
363
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -367,11 +367,11 @@ function validate$V(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
367
367
|
})();
|
|
368
368
|
return v_error === undefined ? null : v_error;
|
|
369
369
|
}
|
|
370
|
-
const select$
|
|
371
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
370
|
+
const select$H = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$t,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
{
|
|
@@ -389,7 +389,7 @@ const select$D = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
389
389
|
]
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
function equals$
|
|
392
|
+
function equals$t(existing, incoming) {
|
|
393
393
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
394
394
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
395
395
|
// if at least one of these optionals is defined
|
|
@@ -399,7 +399,7 @@ function equals$q(existing, incoming) {
|
|
|
399
399
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
400
400
|
return false;
|
|
401
401
|
}
|
|
402
|
-
if (!(equals$
|
|
402
|
+
if (!(equals$v(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -412,15 +412,15 @@ function equals$q(existing, incoming) {
|
|
|
412
412
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
413
413
|
return false;
|
|
414
414
|
}
|
|
415
|
-
if (!(equals$
|
|
415
|
+
if (!(equals$v(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
416
416
|
return false;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
return true;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
const VERSION$
|
|
423
|
-
function validate$
|
|
422
|
+
const VERSION$s = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
|
+
function validate$X(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
424
424
|
const v_error = (() => {
|
|
425
425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
426
426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -442,10 +442,10 @@ function validate$U(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$G = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$s,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -461,7 +461,7 @@ const select$C = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
461
461
|
]
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
|
-
function equals$
|
|
464
|
+
function equals$s(existing, incoming) {
|
|
465
465
|
const existing_enabled = existing.enabled;
|
|
466
466
|
const incoming_enabled = incoming.enabled;
|
|
467
467
|
// if at least one of these optionals is defined
|
|
@@ -491,8 +491,8 @@ function equals$p(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
495
|
-
function validate$
|
|
494
|
+
const VERSION$r = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
|
+
function validate$W(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
496
496
|
const v_error = (() => {
|
|
497
497
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
498
498
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -500,7 +500,7 @@ function validate$T(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
500
500
|
if (obj.identifyingDimension !== undefined) {
|
|
501
501
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
502
502
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
503
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
503
|
+
const referencepath_identifyingDimensionValidationError = validate$Y(obj_identifyingDimension, path_identifyingDimension);
|
|
504
504
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
505
505
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
506
506
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -516,7 +516,7 @@ function validate$T(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
516
516
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
517
517
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
518
518
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
519
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
519
|
+
const referencepath_insightTypes_itemValidationError = validate$X(obj_insightTypes_item, path_insightTypes_item);
|
|
520
520
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
521
521
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
522
522
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -533,7 +533,7 @@ function validate$T(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
533
533
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
534
534
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
535
535
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
536
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
536
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$_(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
537
537
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
538
538
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
539
539
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -565,13 +565,13 @@ function validate$T(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
565
565
|
})();
|
|
566
566
|
return v_error === undefined ? null : v_error;
|
|
567
567
|
}
|
|
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$
|
|
568
|
+
const select$F = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$H();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$G();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
574
|
+
version: VERSION$r,
|
|
575
575
|
private: [],
|
|
576
576
|
selections: [
|
|
577
577
|
{
|
|
@@ -612,7 +612,7 @@ const select$B = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
612
612
|
]
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
function equals$
|
|
615
|
+
function equals$r(existing, incoming) {
|
|
616
616
|
const existing_pluralNoun = existing.pluralNoun;
|
|
617
617
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
618
618
|
// if at least one of these optionals is defined
|
|
@@ -661,7 +661,7 @@ function equals$o(existing, incoming) {
|
|
|
661
661
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
|
-
if (!(equals$
|
|
664
|
+
if (!(equals$t(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
665
665
|
return false;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -675,7 +675,7 @@ function equals$o(existing, incoming) {
|
|
|
675
675
|
return false;
|
|
676
676
|
}
|
|
677
677
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
678
|
-
if (!(equals$
|
|
678
|
+
if (!(equals$s(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
679
679
|
return false;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
@@ -693,7 +693,7 @@ function equals$o(existing, incoming) {
|
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
695
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
696
|
-
if (!(equals$
|
|
696
|
+
if (!(equals$v(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
@@ -704,8 +704,8 @@ function equals$o(existing, incoming) {
|
|
|
704
704
|
return true;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
const VERSION$
|
|
708
|
-
function validate$
|
|
707
|
+
const VERSION$q = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
|
+
function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
709
709
|
const v_error = (() => {
|
|
710
710
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
711
711
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -719,7 +719,7 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
719
719
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
720
720
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
721
721
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
722
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
722
|
+
const referencepath_additionalDimensions_itemValidationError = validate$_(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
723
723
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
724
724
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
725
725
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -786,7 +786,7 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
786
786
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
787
787
|
const obj_filters_item = obj_filters[i];
|
|
788
788
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
789
|
-
const referencepath_filters_itemValidationError = validate$
|
|
789
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
790
790
|
if (referencepath_filters_itemValidationError !== null) {
|
|
791
791
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
792
792
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -802,7 +802,7 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
802
802
|
if (obj.insightsSettings !== undefined) {
|
|
803
803
|
const obj_insightsSettings = obj.insightsSettings;
|
|
804
804
|
const path_insightsSettings = path + '.insightsSettings';
|
|
805
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
805
|
+
const referencepath_insightsSettingsValidationError = validate$W(obj_insightsSettings, path_insightsSettings);
|
|
806
806
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
807
807
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
808
808
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -840,7 +840,7 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
840
840
|
if (obj.measurementReference !== undefined) {
|
|
841
841
|
const obj_measurementReference = obj.measurementReference;
|
|
842
842
|
const path_measurementReference = path + '.measurementReference';
|
|
843
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
843
|
+
const referencepath_measurementReferenceValidationError = validate$_(obj_measurementReference, path_measurementReference);
|
|
844
844
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
845
845
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
846
846
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -850,7 +850,7 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
850
850
|
if (obj.timeDimensionReference !== undefined) {
|
|
851
851
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
852
852
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
853
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
853
|
+
const referencepath_timeDimensionReferenceValidationError = validate$_(obj_timeDimensionReference, path_timeDimensionReference);
|
|
854
854
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
855
855
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
856
856
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -874,26 +874,26 @@ function validate$S(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
874
874
|
})();
|
|
875
875
|
return v_error === undefined ? null : v_error;
|
|
876
876
|
}
|
|
877
|
-
const RepresentationType$
|
|
878
|
-
function keyBuilder$
|
|
879
|
-
return keyPrefix + '::' + RepresentationType$
|
|
877
|
+
const RepresentationType$h = 'SemanticMetricOutputRepresentation';
|
|
878
|
+
function keyBuilder$x(luvio, config) {
|
|
879
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
880
880
|
}
|
|
881
881
|
function keyBuilderFromType$b(luvio, object) {
|
|
882
882
|
const keyParams = {
|
|
883
883
|
name: object.id
|
|
884
884
|
};
|
|
885
|
-
return keyBuilder$
|
|
885
|
+
return keyBuilder$x(luvio, keyParams);
|
|
886
886
|
}
|
|
887
|
-
function normalize$
|
|
887
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
888
888
|
return input;
|
|
889
889
|
}
|
|
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$
|
|
890
|
+
const select$E = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$F();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
896
|
+
version: VERSION$q,
|
|
897
897
|
private: [],
|
|
898
898
|
selections: [
|
|
899
899
|
{
|
|
@@ -998,7 +998,7 @@ const select$A = function SemanticMetricOutputRepresentationSelect() {
|
|
|
998
998
|
]
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
1001
|
-
function equals$
|
|
1001
|
+
function equals$q(existing, incoming) {
|
|
1002
1002
|
const existing_isCumulative = existing.isCumulative;
|
|
1003
1003
|
const incoming_isCumulative = incoming.isCumulative;
|
|
1004
1004
|
// if at least one of these optionals is defined
|
|
@@ -1146,7 +1146,7 @@ function equals$n(existing, incoming) {
|
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}
|
|
1148
1148
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
1149
|
-
if (!(equals$
|
|
1149
|
+
if (!(equals$v(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
1150
1150
|
return false;
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
@@ -1164,7 +1164,7 @@ function equals$n(existing, incoming) {
|
|
|
1164
1164
|
return false;
|
|
1165
1165
|
}
|
|
1166
1166
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1167
|
-
if (!(equals$
|
|
1167
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
1168
1168
|
return false;
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1181,7 +1181,7 @@ function equals$n(existing, incoming) {
|
|
|
1181
1181
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
1182
1182
|
return false;
|
|
1183
1183
|
}
|
|
1184
|
-
if (!(equals$
|
|
1184
|
+
if (!(equals$r(existing_insightsSettings, incoming_insightsSettings))) {
|
|
1185
1185
|
return false;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
@@ -1194,7 +1194,7 @@ function equals$n(existing, incoming) {
|
|
|
1194
1194
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
1195
1195
|
return false;
|
|
1196
1196
|
}
|
|
1197
|
-
if (!(equals$
|
|
1197
|
+
if (!(equals$v(existing_measurementReference, incoming_measurementReference))) {
|
|
1198
1198
|
return false;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1207,7 +1207,7 @@ function equals$n(existing, incoming) {
|
|
|
1207
1207
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
1208
1208
|
return false;
|
|
1209
1209
|
}
|
|
1210
|
-
if (!(equals$
|
|
1210
|
+
if (!(equals$v(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
1211
1211
|
return false;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
@@ -1231,30 +1231,30 @@ function equals$n(existing, incoming) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return true;
|
|
1233
1233
|
}
|
|
1234
|
-
const ingest$
|
|
1234
|
+
const ingest$h = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
-
const validateError = validate$
|
|
1236
|
+
const validateError = validate$V(input);
|
|
1237
1237
|
if (validateError !== null) {
|
|
1238
1238
|
throw validateError;
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
const key = keyBuilderFromType$b(luvio, input);
|
|
1242
1242
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1243
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$q, RepresentationType$h, equals$q);
|
|
1244
1244
|
return createLink(key);
|
|
1245
1245
|
};
|
|
1246
|
-
function getTypeCacheKeys$
|
|
1246
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
1247
1247
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1248
1248
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1249
1249
|
rootKeySet.set(rootKey, {
|
|
1250
1250
|
namespace: keyPrefix,
|
|
1251
|
-
representationName: RepresentationType$
|
|
1251
|
+
representationName: RepresentationType$h,
|
|
1252
1252
|
mergeable: false
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
const VERSION$
|
|
1257
|
-
function validate$
|
|
1256
|
+
const VERSION$p = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
|
+
function validate$U(obj, path = 'SemanticMetricCollectionOutputRepresentation') {
|
|
1258
1258
|
const v_error = (() => {
|
|
1259
1259
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1260
1260
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1276,15 +1276,15 @@ function validate$R(obj, path = 'SemanticMetricCollectionOutputRepresentation')
|
|
|
1276
1276
|
})();
|
|
1277
1277
|
return v_error === undefined ? null : v_error;
|
|
1278
1278
|
}
|
|
1279
|
-
const RepresentationType$
|
|
1280
|
-
function normalize$
|
|
1279
|
+
const RepresentationType$g = 'SemanticMetricCollectionOutputRepresentation';
|
|
1280
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1281
1281
|
const input_metrics = input.metrics;
|
|
1282
1282
|
const input_metrics_id = path.fullPath + '__metrics';
|
|
1283
1283
|
if (input_metrics !== undefined) {
|
|
1284
1284
|
for (let i = 0; i < input_metrics.length; i++) {
|
|
1285
1285
|
const input_metrics_item = input_metrics[i];
|
|
1286
1286
|
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
1287
|
-
input_metrics[i] = ingest$
|
|
1287
|
+
input_metrics[i] = ingest$h(input_metrics_item, {
|
|
1288
1288
|
fullPath: input_metrics_item_id,
|
|
1289
1289
|
propertyName: i,
|
|
1290
1290
|
parent: {
|
|
@@ -1298,10 +1298,10 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return input;
|
|
1300
1300
|
}
|
|
1301
|
-
const select$
|
|
1301
|
+
const select$D = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1304
|
+
version: VERSION$p,
|
|
1305
1305
|
private: [],
|
|
1306
1306
|
selections: [
|
|
1307
1307
|
{
|
|
@@ -1309,12 +1309,12 @@ const select$z = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$E()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
1316
1316
|
};
|
|
1317
|
-
function equals$
|
|
1317
|
+
function equals$p(existing, incoming) {
|
|
1318
1318
|
const existing_metrics = existing.metrics;
|
|
1319
1319
|
const incoming_metrics = incoming.metrics;
|
|
1320
1320
|
// if at least one of these optionals is defined
|
|
@@ -1335,50 +1335,50 @@ function equals$m(existing, incoming) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
return true;
|
|
1337
1337
|
}
|
|
1338
|
-
const ingest$
|
|
1338
|
+
const ingest$g = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
|
-
const validateError = validate$
|
|
1340
|
+
const validateError = validate$U(input);
|
|
1341
1341
|
if (validateError !== null) {
|
|
1342
1342
|
throw validateError;
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
const key = path.fullPath;
|
|
1346
1346
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$p, RepresentationType$g, equals$p);
|
|
1348
1348
|
return createLink(key);
|
|
1349
1349
|
};
|
|
1350
|
-
function getTypeCacheKeys$
|
|
1350
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
1351
1351
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1352
1352
|
const rootKey = fullPathFactory();
|
|
1353
1353
|
rootKeySet.set(rootKey, {
|
|
1354
1354
|
namespace: keyPrefix,
|
|
1355
|
-
representationName: RepresentationType$
|
|
1355
|
+
representationName: RepresentationType$g,
|
|
1356
1356
|
mergeable: false
|
|
1357
1357
|
});
|
|
1358
1358
|
if (input.metrics !== undefined) {
|
|
1359
1359
|
const input_metrics_length = input.metrics.length;
|
|
1360
1360
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
1361
|
-
getTypeCacheKeys$
|
|
1361
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.metrics[i]);
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$C(luvio, params) {
|
|
1367
|
+
return select$D();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1369
|
+
function keyBuilder$w(luvio, params) {
|
|
1370
1370
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1371
1371
|
}
|
|
1372
|
-
function getResponseCacheKeys$
|
|
1373
|
-
getTypeCacheKeys$
|
|
1372
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1378
|
-
luvio.storeIngest(key, ingest$
|
|
1377
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
1378
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$C(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1389,13 +1389,13 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1389
1389
|
deepFreeze(snapshot.data);
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
|
-
function ingestError$
|
|
1393
|
-
const key = keyBuilder$
|
|
1392
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
1393
|
+
const key = keyBuilder$w(luvio, params);
|
|
1394
1394
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1395
1395
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1396
1396
|
return errorSnapshot;
|
|
1397
1397
|
}
|
|
1398
|
-
function createResourceRequest$
|
|
1398
|
+
function createResourceRequest$f(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
1401
|
baseUri: '/services/data/v64.0',
|
|
@@ -1409,96 +1409,96 @@ function createResourceRequest$e(config) {
|
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
const adapterName$
|
|
1412
|
+
const adapterName$f = 'getSemanticMetricsByIds';
|
|
1413
1413
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
1414
1414
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1415
1415
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1416
1416
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1417
1417
|
];
|
|
1418
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1419
|
-
const createResourceParams$
|
|
1420
|
-
function keyBuilder$
|
|
1421
|
-
const resourceParams = createResourceParams$
|
|
1422
|
-
return keyBuilder$
|
|
1418
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1419
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1420
|
+
function keyBuilder$v(luvio, config) {
|
|
1421
|
+
const resourceParams = createResourceParams$f(config);
|
|
1422
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
1423
1423
|
}
|
|
1424
|
-
function typeCheckConfig$
|
|
1424
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
1425
1425
|
const config = {};
|
|
1426
|
-
typeCheckConfig$
|
|
1426
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1427
1427
|
return config;
|
|
1428
1428
|
}
|
|
1429
|
-
function validateAdapterConfig$
|
|
1429
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
1430
1430
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1431
1431
|
return null;
|
|
1432
1432
|
}
|
|
1433
1433
|
if (process.env.NODE_ENV !== 'production') {
|
|
1434
1434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1435
1435
|
}
|
|
1436
|
-
const config = typeCheckConfig$
|
|
1436
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
1437
1437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1438
1438
|
return null;
|
|
1439
1439
|
}
|
|
1440
1440
|
return config;
|
|
1441
1441
|
}
|
|
1442
|
-
function adapterFragment$
|
|
1443
|
-
createResourceParams$
|
|
1444
|
-
return select$
|
|
1442
|
+
function adapterFragment$9(luvio, config) {
|
|
1443
|
+
createResourceParams$f(config);
|
|
1444
|
+
return select$C();
|
|
1445
1445
|
}
|
|
1446
|
-
function onFetchResponseSuccess$
|
|
1447
|
-
const snapshot = ingestSuccess$
|
|
1446
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1447
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
1448
1448
|
config,
|
|
1449
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1450
1450
|
});
|
|
1451
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1452
1452
|
}
|
|
1453
|
-
function onFetchResponseError$
|
|
1454
|
-
const snapshot = ingestError$
|
|
1453
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
1454
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
1455
1455
|
config,
|
|
1456
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1457
1457
|
});
|
|
1458
1458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1459
1459
|
}
|
|
1460
|
-
function buildNetworkSnapshot$
|
|
1461
|
-
const resourceParams = createResourceParams$
|
|
1462
|
-
const request = createResourceRequest$
|
|
1460
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$f(config);
|
|
1462
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1463
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1464
1464
|
.then((response) => {
|
|
1465
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1465
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
1466
1466
|
const cache = new StoreKeyMap();
|
|
1467
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1468
1468
|
return cache;
|
|
1469
1469
|
});
|
|
1470
1470
|
}, (response) => {
|
|
1471
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1471
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1475
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1474
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
1476
1476
|
}
|
|
1477
|
-
function buildCachedSnapshotCachePolicy$
|
|
1477
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
1478
1478
|
const { luvio, config } = context;
|
|
1479
1479
|
const selector = {
|
|
1480
|
-
recordId: keyBuilder$
|
|
1481
|
-
node: adapterFragment$
|
|
1480
|
+
recordId: keyBuilder$v(luvio, config),
|
|
1481
|
+
node: adapterFragment$9(luvio, config),
|
|
1482
1482
|
variables: {},
|
|
1483
1483
|
};
|
|
1484
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1485
1485
|
config,
|
|
1486
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1487
1487
|
});
|
|
1488
1488
|
return cacheSnapshot;
|
|
1489
1489
|
}
|
|
1490
1490
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
1491
|
-
const config = validateAdapterConfig$
|
|
1491
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1492
1492
|
// Invalid or incomplete config
|
|
1493
1493
|
if (config === null) {
|
|
1494
1494
|
return null;
|
|
1495
1495
|
}
|
|
1496
1496
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1497
|
-
buildCachedSnapshotCachePolicy$
|
|
1497
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
|
-
const VERSION$
|
|
1501
|
-
function validate$
|
|
1500
|
+
const VERSION$o = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1501
|
+
function validate$T(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1502
1502
|
const v_error = (() => {
|
|
1503
1503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1504
1504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1518,10 +1518,10 @@ function validate$Q(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1518
1518
|
})();
|
|
1519
1519
|
return v_error === undefined ? null : v_error;
|
|
1520
1520
|
}
|
|
1521
|
-
const select$
|
|
1521
|
+
const select$B = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1522
|
return {
|
|
1523
1523
|
kind: 'Fragment',
|
|
1524
|
-
version: VERSION$
|
|
1524
|
+
version: VERSION$o,
|
|
1525
1525
|
private: [],
|
|
1526
1526
|
selections: [
|
|
1527
1527
|
{
|
|
@@ -1536,7 +1536,7 @@ const select$x = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1536
1536
|
]
|
|
1537
1537
|
};
|
|
1538
1538
|
};
|
|
1539
|
-
function equals$
|
|
1539
|
+
function equals$o(existing, incoming) {
|
|
1540
1540
|
const existing_apiName = existing.apiName;
|
|
1541
1541
|
const incoming_apiName = incoming.apiName;
|
|
1542
1542
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1558,8 +1558,8 @@ function equals$l(existing, incoming) {
|
|
|
1558
1558
|
return true;
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
const VERSION$
|
|
1562
|
-
function validate$
|
|
1561
|
+
const VERSION$n = "c9079354cd8127a37c0c13ea6686383c";
|
|
1562
|
+
function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1563
1563
|
const v_error = (() => {
|
|
1564
1564
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1565
1565
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1592,7 +1592,7 @@ function validate$P(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1592
1592
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
1593
1593
|
const obj_baseModels_item = obj_baseModels[i];
|
|
1594
1594
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
1595
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
1595
|
+
const referencepath_baseModels_itemValidationError = validate$T(obj_baseModels_item, path_baseModels_item);
|
|
1596
1596
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
1597
1597
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
1598
1598
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1763,11 +1763,11 @@ function validate$P(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1763
1763
|
})();
|
|
1764
1764
|
return v_error === undefined ? null : v_error;
|
|
1765
1765
|
}
|
|
1766
|
-
const select$
|
|
1767
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
1766
|
+
const select$A = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$n,
|
|
1771
1771
|
private: [],
|
|
1772
1772
|
selections: [
|
|
1773
1773
|
{
|
|
@@ -1891,7 +1891,7 @@ const select$w = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1891
1891
|
]
|
|
1892
1892
|
};
|
|
1893
1893
|
};
|
|
1894
|
-
function equals$
|
|
1894
|
+
function equals$n(existing, incoming) {
|
|
1895
1895
|
const existing_isLocked = existing.isLocked;
|
|
1896
1896
|
const incoming_isLocked = incoming.isLocked;
|
|
1897
1897
|
// if at least one of these optionals is defined
|
|
@@ -2135,7 +2135,7 @@ function equals$k(existing, incoming) {
|
|
|
2135
2135
|
return false;
|
|
2136
2136
|
}
|
|
2137
2137
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
2138
|
-
if (!(equals$
|
|
2138
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
2139
2139
|
return false;
|
|
2140
2140
|
}
|
|
2141
2141
|
});
|
|
@@ -2177,8 +2177,8 @@ function equals$k(existing, incoming) {
|
|
|
2177
2177
|
return true;
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
|
-
const VERSION$
|
|
2181
|
-
function validate$
|
|
2180
|
+
const VERSION$m = "198423ec58354256cc7ea6f4661ef669";
|
|
2181
|
+
function validate$R(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2182
2182
|
const v_error = (() => {
|
|
2183
2183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2184
2184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2225,7 +2225,7 @@ function validate$O(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
2225
2225
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2226
2226
|
const obj_items_item = obj_items[i];
|
|
2227
2227
|
const path_items_item = path_items + '[' + i + ']';
|
|
2228
|
-
const referencepath_items_itemValidationError = validate$
|
|
2228
|
+
const referencepath_items_itemValidationError = validate$S(obj_items_item, path_items_item);
|
|
2229
2229
|
if (referencepath_items_itemValidationError !== null) {
|
|
2230
2230
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
2231
2231
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2297,15 +2297,15 @@ function validate$O(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
2297
2297
|
})();
|
|
2298
2298
|
return v_error === undefined ? null : v_error;
|
|
2299
2299
|
}
|
|
2300
|
-
const RepresentationType$
|
|
2301
|
-
function normalize$
|
|
2300
|
+
const RepresentationType$f = 'SemanticModelCollectionOutputRepresentation';
|
|
2301
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2302
2302
|
return input;
|
|
2303
2303
|
}
|
|
2304
|
-
const select$
|
|
2305
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
2304
|
+
const select$z = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$A();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$m,
|
|
2309
2309
|
private: [],
|
|
2310
2310
|
selections: [
|
|
2311
2311
|
{
|
|
@@ -2341,7 +2341,7 @@ const select$v = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
2341
2341
|
]
|
|
2342
2342
|
};
|
|
2343
2343
|
};
|
|
2344
|
-
function equals$
|
|
2344
|
+
function equals$m(existing, incoming) {
|
|
2345
2345
|
const existing_count = existing.count;
|
|
2346
2346
|
const incoming_count = incoming.count;
|
|
2347
2347
|
if (!(existing_count === incoming_count)) {
|
|
@@ -2375,7 +2375,7 @@ function equals$j(existing, incoming) {
|
|
|
2375
2375
|
return false;
|
|
2376
2376
|
}
|
|
2377
2377
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
2378
|
-
if (!(equals$
|
|
2378
|
+
if (!(equals$n(existing_items_item, incoming_items_item))) {
|
|
2379
2379
|
return false;
|
|
2380
2380
|
}
|
|
2381
2381
|
});
|
|
@@ -2411,44 +2411,44 @@ function equals$j(existing, incoming) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
return true;
|
|
2413
2413
|
}
|
|
2414
|
-
const ingest$
|
|
2414
|
+
const ingest$f = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2415
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2416
|
-
const validateError = validate$
|
|
2416
|
+
const validateError = validate$R(input);
|
|
2417
2417
|
if (validateError !== null) {
|
|
2418
2418
|
throw validateError;
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
2421
|
const key = path.fullPath;
|
|
2422
2422
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2423
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$m, RepresentationType$f, equals$m);
|
|
2424
2424
|
return createLink(key);
|
|
2425
2425
|
};
|
|
2426
|
-
function getTypeCacheKeys$
|
|
2426
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
2427
2427
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2428
2428
|
const rootKey = fullPathFactory();
|
|
2429
2429
|
rootKeySet.set(rootKey, {
|
|
2430
2430
|
namespace: keyPrefix,
|
|
2431
|
-
representationName: RepresentationType$
|
|
2431
|
+
representationName: RepresentationType$f,
|
|
2432
2432
|
mergeable: false
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
|
-
function select$
|
|
2437
|
-
return select$
|
|
2436
|
+
function select$y(luvio, params) {
|
|
2437
|
+
return select$z();
|
|
2438
2438
|
}
|
|
2439
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$u(luvio, params) {
|
|
2440
2440
|
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 + ')';
|
|
2441
2441
|
}
|
|
2442
|
-
function getResponseCacheKeys$
|
|
2443
|
-
getTypeCacheKeys$
|
|
2442
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
2444
2444
|
}
|
|
2445
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
2446
2446
|
const { body } = response;
|
|
2447
|
-
const key = keyBuilder$
|
|
2448
|
-
luvio.storeIngest(key, ingest$
|
|
2447
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
2448
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
2449
2449
|
const snapshot = luvio.storeLookup({
|
|
2450
2450
|
recordId: key,
|
|
2451
|
-
node: select$
|
|
2451
|
+
node: select$y(),
|
|
2452
2452
|
variables: {},
|
|
2453
2453
|
}, snapshotRefresh);
|
|
2454
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2459,13 +2459,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2459
2459
|
deepFreeze(snapshot.data);
|
|
2460
2460
|
return snapshot;
|
|
2461
2461
|
}
|
|
2462
|
-
function ingestError$
|
|
2463
|
-
const key = keyBuilder$
|
|
2462
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
2463
|
+
const key = keyBuilder$u(luvio, params);
|
|
2464
2464
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2465
2465
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2466
2466
|
return errorSnapshot;
|
|
2467
2467
|
}
|
|
2468
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$e(config) {
|
|
2469
2469
|
const headers = {};
|
|
2470
2470
|
return {
|
|
2471
2471
|
baseUri: '/services/data/v64.0',
|
|
@@ -2479,7 +2479,7 @@ function createResourceRequest$d(config) {
|
|
|
2479
2479
|
};
|
|
2480
2480
|
}
|
|
2481
2481
|
|
|
2482
|
-
const adapterName$
|
|
2482
|
+
const adapterName$e = 'getSemanticModels';
|
|
2483
2483
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
2484
2484
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2485
2485
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2491,89 +2491,89 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
2491
2491
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2492
2492
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2493
2493
|
];
|
|
2494
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2495
|
-
const createResourceParams$
|
|
2496
|
-
function keyBuilder$
|
|
2497
|
-
const resourceParams = createResourceParams$
|
|
2498
|
-
return keyBuilder$
|
|
2494
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSemanticModels_ConfigPropertyMetadata);
|
|
2495
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(getSemanticModels_ConfigPropertyMetadata);
|
|
2496
|
+
function keyBuilder$t(luvio, config) {
|
|
2497
|
+
const resourceParams = createResourceParams$e(config);
|
|
2498
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
2499
2499
|
}
|
|
2500
|
-
function typeCheckConfig$
|
|
2500
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
2501
2501
|
const config = {};
|
|
2502
|
-
typeCheckConfig$
|
|
2502
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
2503
2503
|
return config;
|
|
2504
2504
|
}
|
|
2505
|
-
function validateAdapterConfig$
|
|
2505
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
2506
2506
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2507
2507
|
return null;
|
|
2508
2508
|
}
|
|
2509
2509
|
if (process.env.NODE_ENV !== 'production') {
|
|
2510
2510
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2511
2511
|
}
|
|
2512
|
-
const config = typeCheckConfig$
|
|
2512
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
2513
2513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2514
2514
|
return null;
|
|
2515
2515
|
}
|
|
2516
2516
|
return config;
|
|
2517
2517
|
}
|
|
2518
|
-
function adapterFragment$
|
|
2519
|
-
createResourceParams$
|
|
2520
|
-
return select$
|
|
2518
|
+
function adapterFragment$8(luvio, config) {
|
|
2519
|
+
createResourceParams$e(config);
|
|
2520
|
+
return select$y();
|
|
2521
2521
|
}
|
|
2522
|
-
function onFetchResponseSuccess$
|
|
2523
|
-
const snapshot = ingestSuccess$
|
|
2522
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
2523
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
2524
2524
|
config,
|
|
2525
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2526
2526
|
});
|
|
2527
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2528
2528
|
}
|
|
2529
|
-
function onFetchResponseError$
|
|
2530
|
-
const snapshot = ingestError$
|
|
2529
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
2530
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
2531
2531
|
config,
|
|
2532
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2533
2533
|
});
|
|
2534
2534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2535
2535
|
}
|
|
2536
|
-
function buildNetworkSnapshot$
|
|
2537
|
-
const resourceParams = createResourceParams$
|
|
2538
|
-
const request = createResourceRequest$
|
|
2536
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$e(config);
|
|
2538
|
+
const request = createResourceRequest$e(resourceParams);
|
|
2539
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2540
2540
|
.then((response) => {
|
|
2541
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2541
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
2542
2542
|
const cache = new StoreKeyMap();
|
|
2543
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
2544
2544
|
return cache;
|
|
2545
2545
|
});
|
|
2546
2546
|
}, (response) => {
|
|
2547
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2547
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2551
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2550
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
2552
2552
|
}
|
|
2553
|
-
function buildCachedSnapshotCachePolicy$
|
|
2553
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2554
2554
|
const { luvio, config } = context;
|
|
2555
2555
|
const selector = {
|
|
2556
|
-
recordId: keyBuilder$
|
|
2557
|
-
node: adapterFragment$
|
|
2556
|
+
recordId: keyBuilder$t(luvio, config),
|
|
2557
|
+
node: adapterFragment$8(luvio, config),
|
|
2558
2558
|
variables: {},
|
|
2559
2559
|
};
|
|
2560
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2561
2561
|
config,
|
|
2562
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2563
2563
|
});
|
|
2564
2564
|
return cacheSnapshot;
|
|
2565
2565
|
}
|
|
2566
2566
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
2567
|
-
const config = validateAdapterConfig$
|
|
2567
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2568
2568
|
// Invalid or incomplete config
|
|
2569
2569
|
if (config === null) {
|
|
2570
2570
|
return null;
|
|
2571
2571
|
}
|
|
2572
2572
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2573
|
-
buildCachedSnapshotCachePolicy$
|
|
2573
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
-
function validate$
|
|
2576
|
+
function validate$Q(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
2577
2577
|
const v_error = (() => {
|
|
2578
2578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2579
2579
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2589,7 +2589,7 @@ function validate$N(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
2589
2589
|
return v_error === undefined ? null : v_error;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
function validate$
|
|
2592
|
+
function validate$P(obj, path = 'SemanticFilterInputRepresentation') {
|
|
2593
2593
|
const v_error = (() => {
|
|
2594
2594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2595
2595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2619,7 +2619,7 @@ function validate$M(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
2619
2619
|
return v_error === undefined ? null : v_error;
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
function validate$
|
|
2622
|
+
function validate$O(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
2623
2623
|
const v_error = (() => {
|
|
2624
2624
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2625
2625
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2682,7 +2682,7 @@ function validate$L(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2682
2682
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2683
2683
|
const obj_filters_item = obj_filters[i];
|
|
2684
2684
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2685
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2685
|
+
const referencepath_filters_itemValidationError = validate$P(obj_filters_item, path_filters_item);
|
|
2686
2686
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2687
2687
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2688
2688
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2729,7 +2729,7 @@ function validate$L(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2729
2729
|
return v_error === undefined ? null : v_error;
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
-
function validate$
|
|
2732
|
+
function validate$N(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
2733
2733
|
const v_error = (() => {
|
|
2734
2734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2735
2735
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2806,7 +2806,7 @@ function validate$K(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2806
2806
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2807
2807
|
const obj_filters_item = obj_filters[i];
|
|
2808
2808
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2809
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2809
|
+
const referencepath_filters_itemValidationError = validate$P(obj_filters_item, path_filters_item);
|
|
2810
2810
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2811
2811
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2812
2812
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2874,7 +2874,7 @@ function validate$K(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2874
2874
|
return v_error === undefined ? null : v_error;
|
|
2875
2875
|
}
|
|
2876
2876
|
|
|
2877
|
-
function validate$
|
|
2877
|
+
function validate$M(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
2878
2878
|
const v_error = (() => {
|
|
2879
2879
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2880
2880
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2953,7 +2953,7 @@ function validate$J(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
2953
2953
|
return v_error === undefined ? null : v_error;
|
|
2954
2954
|
}
|
|
2955
2955
|
|
|
2956
|
-
function validate$
|
|
2956
|
+
function validate$L(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
2957
2957
|
const v_error = (() => {
|
|
2958
2958
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2959
2959
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3060,7 +3060,7 @@ function validate$I(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
3060
3060
|
return v_error === undefined ? null : v_error;
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
3063
|
-
function validate$
|
|
3063
|
+
function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
3064
3064
|
const v_error = (() => {
|
|
3065
3065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3066
3066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3109,7 +3109,7 @@ function validate$H(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3109
3109
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3110
3110
|
const obj_filters_item = obj_filters[i];
|
|
3111
3111
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3112
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3112
|
+
const referencepath_filters_itemValidationError = validate$P(obj_filters_item, path_filters_item);
|
|
3113
3113
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3114
3114
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3115
3115
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3140,7 +3140,7 @@ function validate$H(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3140
3140
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3141
3141
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3142
3142
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3143
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3143
|
+
const referencepath_semanticDimensions_itemValidationError = validate$M(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3144
3144
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3145
3145
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3146
3146
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3157,7 +3157,7 @@ function validate$H(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3157
3157
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3158
3158
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3159
3159
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3160
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3160
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$L(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3161
3161
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3162
3162
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3163
3163
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3176,7 +3176,7 @@ function validate$H(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3176
3176
|
return v_error === undefined ? null : v_error;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
3179
|
-
function validate$
|
|
3179
|
+
function validate$J(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
3180
3180
|
const v_error = (() => {
|
|
3181
3181
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3182
3182
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3188,7 +3188,7 @@ function validate$G(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
3188
3188
|
return v_error === undefined ? null : v_error;
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
function validate$
|
|
3191
|
+
function validate$I(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
3192
3192
|
const v_error = (() => {
|
|
3193
3193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3194
3194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3218,7 +3218,7 @@ function validate$F(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
3218
3218
|
return v_error === undefined ? null : v_error;
|
|
3219
3219
|
}
|
|
3220
3220
|
|
|
3221
|
-
function validate$
|
|
3221
|
+
function validate$H(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
3222
3222
|
const v_error = (() => {
|
|
3223
3223
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3224
3224
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3232,7 +3232,7 @@ function validate$E(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3232
3232
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3233
3233
|
const obj_groups_item = obj_groups[i];
|
|
3234
3234
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3235
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3235
|
+
const referencepath_groups_itemValidationError = validate$I(obj_groups_item, path_groups_item);
|
|
3236
3236
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3237
3237
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
3238
3238
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3251,7 +3251,7 @@ function validate$E(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3251
3251
|
return v_error === undefined ? null : v_error;
|
|
3252
3252
|
}
|
|
3253
3253
|
|
|
3254
|
-
function validate$
|
|
3254
|
+
function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
3255
3255
|
const v_error = (() => {
|
|
3256
3256
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3257
3257
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3259,7 +3259,7 @@ function validate$D(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3259
3259
|
if (obj.binDimension !== undefined) {
|
|
3260
3260
|
const obj_binDimension = obj.binDimension;
|
|
3261
3261
|
const path_binDimension = path + '.binDimension';
|
|
3262
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3262
|
+
const referencepath_binDimensionValidationError = validate$J(obj_binDimension, path_binDimension);
|
|
3263
3263
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3264
3264
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
3265
3265
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3269,7 +3269,7 @@ function validate$D(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3269
3269
|
if (obj.groupDimension !== undefined) {
|
|
3270
3270
|
const obj_groupDimension = obj.groupDimension;
|
|
3271
3271
|
const path_groupDimension = path + '.groupDimension';
|
|
3272
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3272
|
+
const referencepath_groupDimensionValidationError = validate$H(obj_groupDimension, path_groupDimension);
|
|
3273
3273
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3274
3274
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3275
3275
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3280,7 +3280,7 @@ function validate$D(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3280
3280
|
return v_error === undefined ? null : v_error;
|
|
3281
3281
|
}
|
|
3282
3282
|
|
|
3283
|
-
function validate$
|
|
3283
|
+
function validate$F(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
3284
3284
|
const v_error = (() => {
|
|
3285
3285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3286
3286
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3303,7 +3303,7 @@ function validate$C(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
3303
3303
|
return v_error === undefined ? null : v_error;
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
|
-
function validate$
|
|
3306
|
+
function validate$E(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
3307
3307
|
const v_error = (() => {
|
|
3308
3308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3309
3309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3318,7 +3318,7 @@ function validate$B(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3318
3318
|
if (obj.tableFieldReference !== undefined) {
|
|
3319
3319
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3320
3320
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3321
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3321
|
+
const referencepath_tableFieldReferenceValidationError = validate$F(obj_tableFieldReference, path_tableFieldReference);
|
|
3322
3322
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3323
3323
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3324
3324
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3329,7 +3329,7 @@ function validate$B(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3329
3329
|
return v_error === undefined ? null : v_error;
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
-
function validate$
|
|
3332
|
+
function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
3333
3333
|
const v_error = (() => {
|
|
3334
3334
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3335
3335
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3344,7 +3344,7 @@ function validate$A(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3344
3344
|
if (obj.configuration !== undefined) {
|
|
3345
3345
|
const obj_configuration = obj.configuration;
|
|
3346
3346
|
const path_configuration = path + '.configuration';
|
|
3347
|
-
const referencepath_configurationValidationError = validate$
|
|
3347
|
+
const referencepath_configurationValidationError = validate$G(obj_configuration, path_configuration);
|
|
3348
3348
|
if (referencepath_configurationValidationError !== null) {
|
|
3349
3349
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
3350
3350
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3361,7 +3361,7 @@ function validate$A(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3361
3361
|
if (obj.fieldReference !== undefined) {
|
|
3362
3362
|
const obj_fieldReference = obj.fieldReference;
|
|
3363
3363
|
const path_fieldReference = path + '.fieldReference';
|
|
3364
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
3364
|
+
const referencepath_fieldReferenceValidationError = validate$E(obj_fieldReference, path_fieldReference);
|
|
3365
3365
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
3366
3366
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
3367
3367
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3386,7 +3386,7 @@ function validate$A(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3386
3386
|
return v_error === undefined ? null : v_error;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
|
-
function validate$
|
|
3389
|
+
function validate$C(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
3390
3390
|
const v_error = (() => {
|
|
3391
3391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3392
3392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3430,7 +3430,7 @@ function validate$z(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
3430
3430
|
return v_error === undefined ? null : v_error;
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
|
-
function validate$
|
|
3433
|
+
function validate$B(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
3434
3434
|
const v_error = (() => {
|
|
3435
3435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3436
3436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3458,7 +3458,7 @@ function validate$y(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3458
3458
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
3459
3459
|
const obj_criteria_item = obj_criteria[i];
|
|
3460
3460
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
3461
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
3461
|
+
const referencepath_criteria_itemValidationError = validate$C(obj_criteria_item, path_criteria_item);
|
|
3462
3462
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
3463
3463
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
3464
3464
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3519,7 +3519,7 @@ function validate$y(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3519
3519
|
return v_error === undefined ? null : v_error;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
function validate$
|
|
3522
|
+
function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
3523
3523
|
const v_error = (() => {
|
|
3524
3524
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3525
3525
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3547,7 +3547,7 @@ function validate$x(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3547
3547
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
3548
3548
|
const obj_fields_item = obj_fields[i];
|
|
3549
3549
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
3550
|
-
const referencepath_fields_itemValidationError = validate$
|
|
3550
|
+
const referencepath_fields_itemValidationError = validate$F(obj_fields_item, path_fields_item);
|
|
3551
3551
|
if (referencepath_fields_itemValidationError !== null) {
|
|
3552
3552
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
3553
3553
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3572,7 +3572,7 @@ function validate$x(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3572
3572
|
if (obj.semanticDimension !== undefined) {
|
|
3573
3573
|
const obj_semanticDimension = obj.semanticDimension;
|
|
3574
3574
|
const path_semanticDimension = path + '.semanticDimension';
|
|
3575
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
3575
|
+
const referencepath_semanticDimensionValidationError = validate$M(obj_semanticDimension, path_semanticDimension);
|
|
3576
3576
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
3577
3577
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
3578
3578
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3582,7 +3582,7 @@ function validate$x(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3582
3582
|
if (obj.semanticMeasurement !== undefined) {
|
|
3583
3583
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
3584
3584
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
3585
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
3585
|
+
const referencepath_semanticMeasurementValidationError = validate$L(obj_semanticMeasurement, path_semanticMeasurement);
|
|
3586
3586
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
3587
3587
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
3588
3588
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3593,7 +3593,7 @@ function validate$x(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3593
3593
|
return v_error === undefined ? null : v_error;
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
function validate$
|
|
3596
|
+
function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
3597
3597
|
const v_error = (() => {
|
|
3598
3598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3599
3599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3628,7 +3628,7 @@ function validate$w(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3628
3628
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3629
3629
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3630
3630
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3631
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3631
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$K(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3632
3632
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3633
3633
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3634
3634
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3645,7 +3645,7 @@ function validate$w(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3645
3645
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
3646
3646
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
3647
3647
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
3648
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
3648
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$A(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
3649
3649
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
3650
3650
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
3651
3651
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3657,7 +3657,7 @@ function validate$w(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3657
3657
|
return v_error === undefined ? null : v_error;
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
-
function validate$
|
|
3660
|
+
function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
3661
3661
|
const v_error = (() => {
|
|
3662
3662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3663
3663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3699,7 +3699,7 @@ function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3699
3699
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3700
3700
|
const obj_filters_item = obj_filters[i];
|
|
3701
3701
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3702
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3702
|
+
const referencepath_filters_itemValidationError = validate$P(obj_filters_item, path_filters_item);
|
|
3703
3703
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3704
3704
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3705
3705
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3723,7 +3723,7 @@ function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3723
3723
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3724
3724
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3725
3725
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3726
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3726
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$K(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3727
3727
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3728
3728
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3729
3729
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3740,7 +3740,7 @@ function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3740
3740
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
3741
3741
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
3742
3742
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
3743
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
3743
|
+
const referencepath_semanticRelationships_itemValidationError = validate$B(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
3744
3744
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
3745
3745
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
3746
3746
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3757,7 +3757,7 @@ function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3757
3757
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
3758
3758
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
3759
3759
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
3760
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
3760
|
+
const referencepath_semanticUnions_itemValidationError = validate$z(obj_semanticUnions_item, path_semanticUnions_item);
|
|
3761
3761
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
3762
3762
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
3763
3763
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3769,7 +3769,7 @@ function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3769
3769
|
return v_error === undefined ? null : v_error;
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
|
-
function validate$
|
|
3772
|
+
function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
3773
3773
|
const v_error = (() => {
|
|
3774
3774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3775
3775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3777,7 +3777,7 @@ function validate$u(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3777
3777
|
if (obj.identifierDimensionReference !== undefined) {
|
|
3778
3778
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
3779
3779
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
3780
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
3780
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$E(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
3781
3781
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
3782
3782
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
3783
3783
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3787,7 +3787,7 @@ function validate$u(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3787
3787
|
if (obj.namingDimensionReference !== undefined) {
|
|
3788
3788
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
3789
3789
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
3790
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
3790
|
+
const referencepath_namingDimensionReferenceValidationError = validate$E(obj_namingDimensionReference, path_namingDimensionReference);
|
|
3791
3791
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
3792
3792
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
3793
3793
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3798,7 +3798,7 @@ function validate$u(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3798
3798
|
return v_error === undefined ? null : v_error;
|
|
3799
3799
|
}
|
|
3800
3800
|
|
|
3801
|
-
function validate$
|
|
3801
|
+
function validate$w(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
3802
3802
|
const v_error = (() => {
|
|
3803
3803
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3804
3804
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3821,7 +3821,7 @@ function validate$t(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
3821
3821
|
return v_error === undefined ? null : v_error;
|
|
3822
3822
|
}
|
|
3823
3823
|
|
|
3824
|
-
function validate$
|
|
3824
|
+
function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
3825
3825
|
const v_error = (() => {
|
|
3826
3826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3827
3827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3829,7 +3829,7 @@ function validate$s(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3829
3829
|
if (obj.identifyingDimension !== undefined) {
|
|
3830
3830
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
3831
3831
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
3832
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
3832
|
+
const referencepath_identifyingDimensionValidationError = validate$x(obj_identifyingDimension, path_identifyingDimension);
|
|
3833
3833
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
3834
3834
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
3835
3835
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3845,7 +3845,7 @@ function validate$s(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3845
3845
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
3846
3846
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
3847
3847
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
3848
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
3848
|
+
const referencepath_insightTypes_itemValidationError = validate$w(obj_insightTypes_item, path_insightTypes_item);
|
|
3849
3849
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
3850
3850
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
3851
3851
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3862,7 +3862,7 @@ function validate$s(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3862
3862
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
3863
3863
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
3864
3864
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
3865
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
3865
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$E(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
3866
3866
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
3867
3867
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
3868
3868
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3895,7 +3895,7 @@ function validate$s(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3895
3895
|
return v_error === undefined ? null : v_error;
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
|
-
function validate$
|
|
3898
|
+
function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
3899
3899
|
const v_error = (() => {
|
|
3900
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3901
3901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3909,7 +3909,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3909
3909
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
3910
3910
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
3911
3911
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
3912
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
3912
|
+
const referencepath_additionalDimensions_itemValidationError = validate$E(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
3913
3913
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
3914
3914
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
3915
3915
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3954,7 +3954,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3954
3954
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3955
3955
|
const obj_filters_item = obj_filters[i];
|
|
3956
3956
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3957
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3957
|
+
const referencepath_filters_itemValidationError = validate$P(obj_filters_item, path_filters_item);
|
|
3958
3958
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3959
3959
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3960
3960
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3965,7 +3965,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3965
3965
|
if (obj.insightsSettings !== undefined) {
|
|
3966
3966
|
const obj_insightsSettings = obj.insightsSettings;
|
|
3967
3967
|
const path_insightsSettings = path + '.insightsSettings';
|
|
3968
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
3968
|
+
const referencepath_insightsSettingsValidationError = validate$v(obj_insightsSettings, path_insightsSettings);
|
|
3969
3969
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
3970
3970
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
3971
3971
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3989,7 +3989,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3989
3989
|
if (obj.measurementReference !== undefined) {
|
|
3990
3990
|
const obj_measurementReference = obj.measurementReference;
|
|
3991
3991
|
const path_measurementReference = path + '.measurementReference';
|
|
3992
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
3992
|
+
const referencepath_measurementReferenceValidationError = validate$E(obj_measurementReference, path_measurementReference);
|
|
3993
3993
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
3994
3994
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
3995
3995
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3999,7 +3999,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3999
3999
|
if (obj.timeDimensionReference !== undefined) {
|
|
4000
4000
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
4001
4001
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
4002
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
4002
|
+
const referencepath_timeDimensionReferenceValidationError = validate$E(obj_timeDimensionReference, path_timeDimensionReference);
|
|
4003
4003
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
4004
4004
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
4005
4005
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4024,7 +4024,7 @@ function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4024
4024
|
return v_error === undefined ? null : v_error;
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
|
-
function validate$
|
|
4027
|
+
function validate$t(obj, path = 'SemanticParameterInputRepresentation') {
|
|
4028
4028
|
const v_error = (() => {
|
|
4029
4029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4030
4030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4110,8 +4110,8 @@ function validate$q(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4110
4110
|
return v_error === undefined ? null : v_error;
|
|
4111
4111
|
}
|
|
4112
4112
|
|
|
4113
|
-
const VERSION$
|
|
4114
|
-
function validate$
|
|
4113
|
+
const VERSION$l = "51514a172af5e420504a2143725b4528";
|
|
4114
|
+
function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4115
4115
|
const v_error = (() => {
|
|
4116
4116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4117
4117
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4196,7 +4196,7 @@ function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4196
4196
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4197
4197
|
const obj_filters_item = obj_filters[i];
|
|
4198
4198
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4199
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4199
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
4200
4200
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4201
4201
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4202
4202
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4261,24 +4261,24 @@ function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4261
4261
|
})();
|
|
4262
4262
|
return v_error === undefined ? null : v_error;
|
|
4263
4263
|
}
|
|
4264
|
-
const RepresentationType$
|
|
4265
|
-
function keyBuilder$
|
|
4266
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4264
|
+
const RepresentationType$e = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4265
|
+
function keyBuilder$s(luvio, config) {
|
|
4266
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4267
4267
|
}
|
|
4268
4268
|
function keyBuilderFromType$a(luvio, object) {
|
|
4269
4269
|
const keyParams = {
|
|
4270
4270
|
name: object.id
|
|
4271
4271
|
};
|
|
4272
|
-
return keyBuilder$
|
|
4272
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4273
4273
|
}
|
|
4274
|
-
function normalize$
|
|
4274
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4275
4275
|
return input;
|
|
4276
4276
|
}
|
|
4277
|
-
const select$
|
|
4278
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4277
|
+
const select$x = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4278
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4279
4279
|
return {
|
|
4280
4280
|
kind: 'Fragment',
|
|
4281
|
-
version: VERSION$
|
|
4281
|
+
version: VERSION$l,
|
|
4282
4282
|
private: [],
|
|
4283
4283
|
selections: [
|
|
4284
4284
|
{
|
|
@@ -4382,7 +4382,7 @@ const select$t = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4382
4382
|
]
|
|
4383
4383
|
};
|
|
4384
4384
|
};
|
|
4385
|
-
function equals$
|
|
4385
|
+
function equals$l(existing, incoming) {
|
|
4386
4386
|
const existing_isVisible = existing.isVisible;
|
|
4387
4387
|
const incoming_isVisible = incoming.isVisible;
|
|
4388
4388
|
// if at least one of these optionals is defined
|
|
@@ -4608,7 +4608,7 @@ function equals$i(existing, incoming) {
|
|
|
4608
4608
|
return false;
|
|
4609
4609
|
}
|
|
4610
4610
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4611
|
-
if (!(equals$
|
|
4611
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
4612
4612
|
return false;
|
|
4613
4613
|
}
|
|
4614
4614
|
});
|
|
@@ -4618,30 +4618,30 @@ function equals$i(existing, incoming) {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
return true;
|
|
4620
4620
|
}
|
|
4621
|
-
const ingest$
|
|
4621
|
+
const ingest$e = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4622
4622
|
if (process.env.NODE_ENV !== 'production') {
|
|
4623
|
-
const validateError = validate$
|
|
4623
|
+
const validateError = validate$s(input);
|
|
4624
4624
|
if (validateError !== null) {
|
|
4625
4625
|
throw validateError;
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
4628
|
const key = keyBuilderFromType$a(luvio, input);
|
|
4629
4629
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4630
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4630
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4631
4631
|
return createLink(key);
|
|
4632
4632
|
};
|
|
4633
|
-
function getTypeCacheKeys$
|
|
4633
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4634
4634
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4635
4635
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
4636
4636
|
rootKeySet.set(rootKey, {
|
|
4637
4637
|
namespace: keyPrefix,
|
|
4638
|
-
representationName: RepresentationType$
|
|
4638
|
+
representationName: RepresentationType$e,
|
|
4639
4639
|
mergeable: false
|
|
4640
4640
|
});
|
|
4641
4641
|
}
|
|
4642
4642
|
|
|
4643
|
-
const VERSION$
|
|
4644
|
-
function validate$
|
|
4643
|
+
const VERSION$k = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
4644
|
+
function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4645
4645
|
const v_error = (() => {
|
|
4646
4646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4647
4647
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4740,7 +4740,7 @@ function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4740
4740
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4741
4741
|
const obj_filters_item = obj_filters[i];
|
|
4742
4742
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4743
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4743
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
4744
4744
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4745
4745
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4746
4746
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4833,24 +4833,24 @@ function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4833
4833
|
})();
|
|
4834
4834
|
return v_error === undefined ? null : v_error;
|
|
4835
4835
|
}
|
|
4836
|
-
const RepresentationType$
|
|
4837
|
-
function keyBuilder$
|
|
4838
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4836
|
+
const RepresentationType$d = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4837
|
+
function keyBuilder$r(luvio, config) {
|
|
4838
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4839
4839
|
}
|
|
4840
4840
|
function keyBuilderFromType$9(luvio, object) {
|
|
4841
4841
|
const keyParams = {
|
|
4842
4842
|
name: object.id
|
|
4843
4843
|
};
|
|
4844
|
-
return keyBuilder$
|
|
4844
|
+
return keyBuilder$r(luvio, keyParams);
|
|
4845
4845
|
}
|
|
4846
|
-
function normalize$
|
|
4846
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4847
4847
|
return input;
|
|
4848
4848
|
}
|
|
4849
|
-
const select$
|
|
4850
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4849
|
+
const select$w = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4850
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4851
4851
|
return {
|
|
4852
4852
|
kind: 'Fragment',
|
|
4853
|
-
version: VERSION$
|
|
4853
|
+
version: VERSION$k,
|
|
4854
4854
|
private: [],
|
|
4855
4855
|
selections: [
|
|
4856
4856
|
{
|
|
@@ -4984,7 +4984,7 @@ const select$s = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
4984
4984
|
]
|
|
4985
4985
|
};
|
|
4986
4986
|
};
|
|
4987
|
-
function equals$
|
|
4987
|
+
function equals$k(existing, incoming) {
|
|
4988
4988
|
const existing_isAggregatable = existing.isAggregatable;
|
|
4989
4989
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
4990
4990
|
// if at least one of these optionals is defined
|
|
@@ -5288,7 +5288,7 @@ function equals$h(existing, incoming) {
|
|
|
5288
5288
|
return false;
|
|
5289
5289
|
}
|
|
5290
5290
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5291
|
-
if (!(equals$
|
|
5291
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
5292
5292
|
return false;
|
|
5293
5293
|
}
|
|
5294
5294
|
});
|
|
@@ -5298,29 +5298,29 @@ function equals$h(existing, incoming) {
|
|
|
5298
5298
|
}
|
|
5299
5299
|
return true;
|
|
5300
5300
|
}
|
|
5301
|
-
const ingest$
|
|
5301
|
+
const ingest$d = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5302
5302
|
if (process.env.NODE_ENV !== 'production') {
|
|
5303
|
-
const validateError = validate$
|
|
5303
|
+
const validateError = validate$r(input);
|
|
5304
5304
|
if (validateError !== null) {
|
|
5305
5305
|
throw validateError;
|
|
5306
5306
|
}
|
|
5307
5307
|
}
|
|
5308
5308
|
const key = keyBuilderFromType$9(luvio, input);
|
|
5309
5309
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5310
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5310
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$k, RepresentationType$d, equals$k);
|
|
5311
5311
|
return createLink(key);
|
|
5312
5312
|
};
|
|
5313
|
-
function getTypeCacheKeys$
|
|
5313
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5314
5314
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5315
5315
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
5316
5316
|
rootKeySet.set(rootKey, {
|
|
5317
5317
|
namespace: keyPrefix,
|
|
5318
|
-
representationName: RepresentationType$
|
|
5318
|
+
representationName: RepresentationType$d,
|
|
5319
5319
|
mergeable: false
|
|
5320
5320
|
});
|
|
5321
5321
|
}
|
|
5322
5322
|
|
|
5323
|
-
function validate$
|
|
5323
|
+
function validate$q(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
5324
5324
|
const v_error = (() => {
|
|
5325
5325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5326
5326
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5461,7 +5461,7 @@ function validate$n(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
5461
5461
|
return v_error === undefined ? null : v_error;
|
|
5462
5462
|
}
|
|
5463
5463
|
|
|
5464
|
-
function validate$
|
|
5464
|
+
function validate$p(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
5465
5465
|
const v_error = (() => {
|
|
5466
5466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5467
5467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5637,8 +5637,8 @@ function validate$m(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5637
5637
|
return v_error === undefined ? null : v_error;
|
|
5638
5638
|
}
|
|
5639
5639
|
|
|
5640
|
-
const VERSION$
|
|
5641
|
-
function validate$
|
|
5640
|
+
const VERSION$j = "4f111b93807b811179eb310384efdc35";
|
|
5641
|
+
function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5642
5642
|
const v_error = (() => {
|
|
5643
5643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5644
5644
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5709,7 +5709,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5709
5709
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5710
5710
|
const obj_filters_item = obj_filters[i];
|
|
5711
5711
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5712
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5712
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
5713
5713
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5714
5714
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5715
5715
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5759,7 +5759,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5759
5759
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
5760
5760
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
5761
5761
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
5762
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
5762
|
+
const referencepath_semanticDimensions_itemValidationError = validate$q(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
5763
5763
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
5764
5764
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
5765
5765
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5783,7 +5783,7 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5783
5783
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
5784
5784
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
5785
5785
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
5786
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
5786
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$p(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
5787
5787
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
5788
5788
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
5789
5789
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5808,57 +5808,57 @@ function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5808
5808
|
})();
|
|
5809
5809
|
return v_error === undefined ? null : v_error;
|
|
5810
5810
|
}
|
|
5811
|
-
const RepresentationType$
|
|
5812
|
-
function keyBuilder$
|
|
5813
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5811
|
+
const RepresentationType$c = 'SemanticDataObjectOutputRepresentation';
|
|
5812
|
+
function keyBuilder$q(luvio, config) {
|
|
5813
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5814
5814
|
}
|
|
5815
5815
|
function keyBuilderFromType$8(luvio, object) {
|
|
5816
5816
|
const keyParams = {
|
|
5817
5817
|
name: object.id
|
|
5818
5818
|
};
|
|
5819
|
-
return keyBuilder$
|
|
5819
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5820
5820
|
}
|
|
5821
|
-
function normalize$
|
|
5821
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5822
5822
|
return input;
|
|
5823
5823
|
}
|
|
5824
|
-
const select$
|
|
5824
|
+
const select$v = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5825
5825
|
return {
|
|
5826
5826
|
kind: 'Fragment',
|
|
5827
|
-
version: VERSION$
|
|
5827
|
+
version: VERSION$j,
|
|
5828
5828
|
private: [],
|
|
5829
5829
|
opaque: true
|
|
5830
5830
|
};
|
|
5831
5831
|
};
|
|
5832
|
-
function equals$
|
|
5832
|
+
function equals$j(existing, incoming) {
|
|
5833
5833
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5834
5834
|
return false;
|
|
5835
5835
|
}
|
|
5836
5836
|
return true;
|
|
5837
5837
|
}
|
|
5838
|
-
const ingest$
|
|
5838
|
+
const ingest$c = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5839
5839
|
if (process.env.NODE_ENV !== 'production') {
|
|
5840
|
-
const validateError = validate$
|
|
5840
|
+
const validateError = validate$o(input);
|
|
5841
5841
|
if (validateError !== null) {
|
|
5842
5842
|
throw validateError;
|
|
5843
5843
|
}
|
|
5844
5844
|
}
|
|
5845
5845
|
const key = keyBuilderFromType$8(luvio, input);
|
|
5846
5846
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5847
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5847
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$j, RepresentationType$c, equals$j);
|
|
5848
5848
|
return createLink(key);
|
|
5849
5849
|
};
|
|
5850
|
-
function getTypeCacheKeys$
|
|
5850
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5851
5851
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5852
5852
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
5853
5853
|
rootKeySet.set(rootKey, {
|
|
5854
5854
|
namespace: keyPrefix,
|
|
5855
|
-
representationName: RepresentationType$
|
|
5855
|
+
representationName: RepresentationType$c,
|
|
5856
5856
|
mergeable: false
|
|
5857
5857
|
});
|
|
5858
5858
|
}
|
|
5859
5859
|
|
|
5860
|
-
const VERSION$
|
|
5861
|
-
function validate$
|
|
5860
|
+
const VERSION$i = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5861
|
+
function validate$n(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5862
5862
|
const v_error = (() => {
|
|
5863
5863
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5864
5864
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5867,10 +5867,10 @@ function validate$k(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5867
5867
|
})();
|
|
5868
5868
|
return v_error === undefined ? null : v_error;
|
|
5869
5869
|
}
|
|
5870
|
-
const select$
|
|
5870
|
+
const select$u = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5871
5871
|
return {
|
|
5872
5872
|
kind: 'Fragment',
|
|
5873
|
-
version: VERSION$
|
|
5873
|
+
version: VERSION$i,
|
|
5874
5874
|
private: [],
|
|
5875
5875
|
selections: [
|
|
5876
5876
|
{
|
|
@@ -5880,7 +5880,7 @@ const select$q = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
5880
5880
|
]
|
|
5881
5881
|
};
|
|
5882
5882
|
};
|
|
5883
|
-
function equals$
|
|
5883
|
+
function equals$i(existing, incoming) {
|
|
5884
5884
|
const existing_constantBinSize = existing.constantBinSize;
|
|
5885
5885
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
5886
5886
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -5889,8 +5889,8 @@ function equals$f(existing, incoming) {
|
|
|
5889
5889
|
return true;
|
|
5890
5890
|
}
|
|
5891
5891
|
|
|
5892
|
-
const VERSION$
|
|
5893
|
-
function validate$
|
|
5892
|
+
const VERSION$h = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5893
|
+
function validate$m(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5894
5894
|
const v_error = (() => {
|
|
5895
5895
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5896
5896
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5917,10 +5917,10 @@ function validate$j(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5917
5917
|
})();
|
|
5918
5918
|
return v_error === undefined ? null : v_error;
|
|
5919
5919
|
}
|
|
5920
|
-
const select$
|
|
5920
|
+
const select$t = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5921
5921
|
return {
|
|
5922
5922
|
kind: 'Fragment',
|
|
5923
|
-
version: VERSION$
|
|
5923
|
+
version: VERSION$h,
|
|
5924
5924
|
private: [],
|
|
5925
5925
|
selections: [
|
|
5926
5926
|
{
|
|
@@ -5936,7 +5936,7 @@ const select$p = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
5936
5936
|
]
|
|
5937
5937
|
};
|
|
5938
5938
|
};
|
|
5939
|
-
function equals$
|
|
5939
|
+
function equals$h(existing, incoming) {
|
|
5940
5940
|
const existing_name = existing.name;
|
|
5941
5941
|
const incoming_name = incoming.name;
|
|
5942
5942
|
if (!(existing_name === incoming_name)) {
|
|
@@ -5963,8 +5963,8 @@ function equals$e(existing, incoming) {
|
|
|
5963
5963
|
return true;
|
|
5964
5964
|
}
|
|
5965
5965
|
|
|
5966
|
-
const VERSION$
|
|
5967
|
-
function validate$
|
|
5966
|
+
const VERSION$g = "55c60b6207985632192cb4e419822a86";
|
|
5967
|
+
function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
5968
5968
|
const v_error = (() => {
|
|
5969
5969
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5970
5970
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5978,7 +5978,7 @@ function validate$i(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5978
5978
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
5979
5979
|
const obj_groups_item = obj_groups[i];
|
|
5980
5980
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
5981
|
-
const referencepath_groups_itemValidationError = validate$
|
|
5981
|
+
const referencepath_groups_itemValidationError = validate$m(obj_groups_item, path_groups_item);
|
|
5982
5982
|
if (referencepath_groups_itemValidationError !== null) {
|
|
5983
5983
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
5984
5984
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5996,11 +5996,11 @@ function validate$i(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5996
5996
|
})();
|
|
5997
5997
|
return v_error === undefined ? null : v_error;
|
|
5998
5998
|
}
|
|
5999
|
-
const select$
|
|
6000
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
5999
|
+
const select$s = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6000
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$t();
|
|
6001
6001
|
return {
|
|
6002
6002
|
kind: 'Fragment',
|
|
6003
|
-
version: VERSION$
|
|
6003
|
+
version: VERSION$g,
|
|
6004
6004
|
private: [],
|
|
6005
6005
|
selections: [
|
|
6006
6006
|
{
|
|
@@ -6018,7 +6018,7 @@ const select$o = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6018
6018
|
]
|
|
6019
6019
|
};
|
|
6020
6020
|
};
|
|
6021
|
-
function equals$
|
|
6021
|
+
function equals$g(existing, incoming) {
|
|
6022
6022
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6023
6023
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6024
6024
|
// if at least one of these optionals is defined
|
|
@@ -6042,7 +6042,7 @@ function equals$d(existing, incoming) {
|
|
|
6042
6042
|
return false;
|
|
6043
6043
|
}
|
|
6044
6044
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6045
|
-
if (!(equals$
|
|
6045
|
+
if (!(equals$h(existing_groups_item, incoming_groups_item))) {
|
|
6046
6046
|
return false;
|
|
6047
6047
|
}
|
|
6048
6048
|
});
|
|
@@ -6053,8 +6053,8 @@ function equals$d(existing, incoming) {
|
|
|
6053
6053
|
return true;
|
|
6054
6054
|
}
|
|
6055
6055
|
|
|
6056
|
-
const VERSION$
|
|
6057
|
-
function validate$
|
|
6056
|
+
const VERSION$f = "50dc390b159159afb1945b9a811c9f80";
|
|
6057
|
+
function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6058
6058
|
const v_error = (() => {
|
|
6059
6059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6060
6060
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6062,7 +6062,7 @@ function validate$h(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6062
6062
|
if (obj.binDimension !== undefined) {
|
|
6063
6063
|
const obj_binDimension = obj.binDimension;
|
|
6064
6064
|
const path_binDimension = path + '.binDimension';
|
|
6065
|
-
const referencepath_binDimensionValidationError = validate$
|
|
6065
|
+
const referencepath_binDimensionValidationError = validate$n(obj_binDimension, path_binDimension);
|
|
6066
6066
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6067
6067
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6068
6068
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6072,7 +6072,7 @@ function validate$h(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6072
6072
|
if (obj.groupDimension !== undefined) {
|
|
6073
6073
|
const obj_groupDimension = obj.groupDimension;
|
|
6074
6074
|
const path_groupDimension = path + '.groupDimension';
|
|
6075
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
6075
|
+
const referencepath_groupDimensionValidationError = validate$l(obj_groupDimension, path_groupDimension);
|
|
6076
6076
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6077
6077
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6078
6078
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6082,12 +6082,12 @@ function validate$h(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6082
6082
|
})();
|
|
6083
6083
|
return v_error === undefined ? null : v_error;
|
|
6084
6084
|
}
|
|
6085
|
-
const select$
|
|
6086
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6087
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6085
|
+
const select$r = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6086
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$u();
|
|
6087
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$s();
|
|
6088
6088
|
return {
|
|
6089
6089
|
kind: 'Fragment',
|
|
6090
|
-
version: VERSION$
|
|
6090
|
+
version: VERSION$f,
|
|
6091
6091
|
private: [],
|
|
6092
6092
|
selections: [
|
|
6093
6093
|
{
|
|
@@ -6105,7 +6105,7 @@ const select$n = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6105
6105
|
]
|
|
6106
6106
|
};
|
|
6107
6107
|
};
|
|
6108
|
-
function equals$
|
|
6108
|
+
function equals$f(existing, incoming) {
|
|
6109
6109
|
const existing_binDimension = existing.binDimension;
|
|
6110
6110
|
const incoming_binDimension = incoming.binDimension;
|
|
6111
6111
|
// if at least one of these optionals is defined
|
|
@@ -6115,7 +6115,7 @@ function equals$c(existing, incoming) {
|
|
|
6115
6115
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6116
6116
|
return false;
|
|
6117
6117
|
}
|
|
6118
|
-
if (!(equals$
|
|
6118
|
+
if (!(equals$i(existing_binDimension, incoming_binDimension))) {
|
|
6119
6119
|
return false;
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
@@ -6128,15 +6128,15 @@ function equals$c(existing, incoming) {
|
|
|
6128
6128
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6129
6129
|
return false;
|
|
6130
6130
|
}
|
|
6131
|
-
if (!(equals$
|
|
6131
|
+
if (!(equals$g(existing_groupDimension, incoming_groupDimension))) {
|
|
6132
6132
|
return false;
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
6135
|
return true;
|
|
6136
6136
|
}
|
|
6137
6137
|
|
|
6138
|
-
const VERSION$
|
|
6139
|
-
function validate$
|
|
6138
|
+
const VERSION$e = "1daec40706bf767c719fa58831fad462";
|
|
6139
|
+
function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6140
6140
|
const v_error = (() => {
|
|
6141
6141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6142
6142
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6162,7 +6162,7 @@ function validate$g(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
const obj_configuration = obj.configuration;
|
|
6164
6164
|
const path_configuration = path + '.configuration';
|
|
6165
|
-
const referencepath_configurationValidationError = validate$
|
|
6165
|
+
const referencepath_configurationValidationError = validate$k(obj_configuration, path_configuration);
|
|
6166
6166
|
if (referencepath_configurationValidationError !== null) {
|
|
6167
6167
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6168
6168
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6187,7 +6187,7 @@ function validate$g(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6187
6187
|
}
|
|
6188
6188
|
const obj_fieldReference = obj.fieldReference;
|
|
6189
6189
|
const path_fieldReference = path + '.fieldReference';
|
|
6190
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
6190
|
+
const referencepath_fieldReferenceValidationError = validate$_(obj_fieldReference, path_fieldReference);
|
|
6191
6191
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6192
6192
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6193
6193
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6227,25 +6227,25 @@ function validate$g(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6227
6227
|
})();
|
|
6228
6228
|
return v_error === undefined ? null : v_error;
|
|
6229
6229
|
}
|
|
6230
|
-
const RepresentationType$
|
|
6231
|
-
function keyBuilder$
|
|
6232
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6230
|
+
const RepresentationType$b = 'SemanticGroupingOutputRepresentation';
|
|
6231
|
+
function keyBuilder$p(luvio, config) {
|
|
6232
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
6233
6233
|
}
|
|
6234
6234
|
function keyBuilderFromType$7(luvio, object) {
|
|
6235
6235
|
const keyParams = {
|
|
6236
6236
|
name: object.id
|
|
6237
6237
|
};
|
|
6238
|
-
return keyBuilder$
|
|
6238
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6239
6239
|
}
|
|
6240
|
-
function normalize$
|
|
6240
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
6241
6241
|
return input;
|
|
6242
6242
|
}
|
|
6243
|
-
const select$
|
|
6244
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6245
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6243
|
+
const select$q = function SemanticGroupingOutputRepresentationSelect() {
|
|
6244
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$r();
|
|
6245
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
6246
6246
|
return {
|
|
6247
6247
|
kind: 'Fragment',
|
|
6248
|
-
version: VERSION$
|
|
6248
|
+
version: VERSION$e,
|
|
6249
6249
|
private: [],
|
|
6250
6250
|
selections: [
|
|
6251
6251
|
{
|
|
@@ -6311,7 +6311,7 @@ const select$m = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
6311
6311
|
]
|
|
6312
6312
|
};
|
|
6313
6313
|
};
|
|
6314
|
-
function equals$
|
|
6314
|
+
function equals$e(existing, incoming) {
|
|
6315
6315
|
const existing_apiName = existing.apiName;
|
|
6316
6316
|
const incoming_apiName = incoming.apiName;
|
|
6317
6317
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6417,40 +6417,40 @@ function equals$b(existing, incoming) {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
const existing_configuration = existing.configuration;
|
|
6419
6419
|
const incoming_configuration = incoming.configuration;
|
|
6420
|
-
if (!(equals$
|
|
6420
|
+
if (!(equals$f(existing_configuration, incoming_configuration))) {
|
|
6421
6421
|
return false;
|
|
6422
6422
|
}
|
|
6423
6423
|
const existing_fieldReference = existing.fieldReference;
|
|
6424
6424
|
const incoming_fieldReference = incoming.fieldReference;
|
|
6425
|
-
if (!(equals$
|
|
6425
|
+
if (!(equals$v(existing_fieldReference, incoming_fieldReference))) {
|
|
6426
6426
|
return false;
|
|
6427
6427
|
}
|
|
6428
6428
|
return true;
|
|
6429
6429
|
}
|
|
6430
|
-
const ingest$
|
|
6430
|
+
const ingest$b = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6431
6431
|
if (process.env.NODE_ENV !== 'production') {
|
|
6432
|
-
const validateError = validate$
|
|
6432
|
+
const validateError = validate$j(input);
|
|
6433
6433
|
if (validateError !== null) {
|
|
6434
6434
|
throw validateError;
|
|
6435
6435
|
}
|
|
6436
6436
|
}
|
|
6437
6437
|
const key = keyBuilderFromType$7(luvio, input);
|
|
6438
6438
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6439
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6439
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$e, RepresentationType$b, equals$e);
|
|
6440
6440
|
return createLink(key);
|
|
6441
6441
|
};
|
|
6442
|
-
function getTypeCacheKeys$
|
|
6442
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
6443
6443
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6444
6444
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
6445
6445
|
rootKeySet.set(rootKey, {
|
|
6446
6446
|
namespace: keyPrefix,
|
|
6447
|
-
representationName: RepresentationType$
|
|
6447
|
+
representationName: RepresentationType$b,
|
|
6448
6448
|
mergeable: false
|
|
6449
6449
|
});
|
|
6450
6450
|
}
|
|
6451
6451
|
|
|
6452
|
-
const VERSION$
|
|
6453
|
-
function validate$
|
|
6452
|
+
const VERSION$d = "c5144c317ac72b60d580cab803514b8d";
|
|
6453
|
+
function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6454
6454
|
const v_error = (() => {
|
|
6455
6455
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6456
6456
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6493,10 +6493,10 @@ function validate$f(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6493
6493
|
})();
|
|
6494
6494
|
return v_error === undefined ? null : v_error;
|
|
6495
6495
|
}
|
|
6496
|
-
const select$
|
|
6496
|
+
const select$p = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6497
6497
|
return {
|
|
6498
6498
|
kind: 'Fragment',
|
|
6499
|
-
version: VERSION$
|
|
6499
|
+
version: VERSION$d,
|
|
6500
6500
|
private: [],
|
|
6501
6501
|
selections: [
|
|
6502
6502
|
{
|
|
@@ -6527,7 +6527,7 @@ const select$l = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
6527
6527
|
]
|
|
6528
6528
|
};
|
|
6529
6529
|
};
|
|
6530
|
-
function equals$
|
|
6530
|
+
function equals$d(existing, incoming) {
|
|
6531
6531
|
const existing_joinOperator = existing.joinOperator;
|
|
6532
6532
|
const incoming_joinOperator = incoming.joinOperator;
|
|
6533
6533
|
// if at least one of these optionals is defined
|
|
@@ -6596,8 +6596,8 @@ function equals$a(existing, incoming) {
|
|
|
6596
6596
|
return true;
|
|
6597
6597
|
}
|
|
6598
6598
|
|
|
6599
|
-
const VERSION$
|
|
6600
|
-
function validate$
|
|
6599
|
+
const VERSION$c = "b9778dace5726fcb57804d3afd529246";
|
|
6600
|
+
function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6601
6601
|
const v_error = (() => {
|
|
6602
6602
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6603
6603
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6647,7 +6647,7 @@ function validate$e(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6647
6647
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
6648
6648
|
const obj_criteria_item = obj_criteria[i];
|
|
6649
6649
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
6650
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
6650
|
+
const referencepath_criteria_itemValidationError = validate$i(obj_criteria_item, path_criteria_item);
|
|
6651
6651
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
6652
6652
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
6653
6653
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6726,24 +6726,24 @@ function validate$e(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6726
6726
|
})();
|
|
6727
6727
|
return v_error === undefined ? null : v_error;
|
|
6728
6728
|
}
|
|
6729
|
-
const RepresentationType$
|
|
6730
|
-
function keyBuilder$
|
|
6731
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6729
|
+
const RepresentationType$a = 'SemanticRelationshipOutputRepresentation';
|
|
6730
|
+
function keyBuilder$o(luvio, config) {
|
|
6731
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6732
6732
|
}
|
|
6733
6733
|
function keyBuilderFromType$6(luvio, object) {
|
|
6734
6734
|
const keyParams = {
|
|
6735
6735
|
name: object.id
|
|
6736
6736
|
};
|
|
6737
|
-
return keyBuilder$
|
|
6737
|
+
return keyBuilder$o(luvio, keyParams);
|
|
6738
6738
|
}
|
|
6739
|
-
function normalize$
|
|
6739
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6740
6740
|
return input;
|
|
6741
6741
|
}
|
|
6742
|
-
const select$
|
|
6743
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6742
|
+
const select$o = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6743
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$p();
|
|
6744
6744
|
return {
|
|
6745
6745
|
kind: 'Fragment',
|
|
6746
|
-
version: VERSION$
|
|
6746
|
+
version: VERSION$c,
|
|
6747
6747
|
private: [],
|
|
6748
6748
|
selections: [
|
|
6749
6749
|
{
|
|
@@ -6832,7 +6832,7 @@ const select$k = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
6832
6832
|
]
|
|
6833
6833
|
};
|
|
6834
6834
|
};
|
|
6835
|
-
function equals$
|
|
6835
|
+
function equals$c(existing, incoming) {
|
|
6836
6836
|
const existing_isEnabled = existing.isEnabled;
|
|
6837
6837
|
const incoming_isEnabled = incoming.isEnabled;
|
|
6838
6838
|
// if at least one of these optionals is defined
|
|
@@ -7019,7 +7019,7 @@ function equals$9(existing, incoming) {
|
|
|
7019
7019
|
return false;
|
|
7020
7020
|
}
|
|
7021
7021
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7022
|
-
if (!(equals$
|
|
7022
|
+
if (!(equals$d(existing_criteria_item, incoming_criteria_item))) {
|
|
7023
7023
|
return false;
|
|
7024
7024
|
}
|
|
7025
7025
|
});
|
|
@@ -7029,30 +7029,30 @@ function equals$9(existing, incoming) {
|
|
|
7029
7029
|
}
|
|
7030
7030
|
return true;
|
|
7031
7031
|
}
|
|
7032
|
-
const ingest$
|
|
7032
|
+
const ingest$a = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7033
7033
|
if (process.env.NODE_ENV !== 'production') {
|
|
7034
|
-
const validateError = validate$
|
|
7034
|
+
const validateError = validate$h(input);
|
|
7035
7035
|
if (validateError !== null) {
|
|
7036
7036
|
throw validateError;
|
|
7037
7037
|
}
|
|
7038
7038
|
}
|
|
7039
7039
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7040
7040
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7041
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7041
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$c, RepresentationType$a, equals$c);
|
|
7042
7042
|
return createLink(key);
|
|
7043
7043
|
};
|
|
7044
|
-
function getTypeCacheKeys$
|
|
7044
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
7045
7045
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7046
7046
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
7047
7047
|
rootKeySet.set(rootKey, {
|
|
7048
7048
|
namespace: keyPrefix,
|
|
7049
|
-
representationName: RepresentationType$
|
|
7049
|
+
representationName: RepresentationType$a,
|
|
7050
7050
|
mergeable: false
|
|
7051
7051
|
});
|
|
7052
7052
|
}
|
|
7053
7053
|
|
|
7054
|
-
const VERSION$
|
|
7055
|
-
function validate$
|
|
7054
|
+
const VERSION$b = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7055
|
+
function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7056
7056
|
const v_error = (() => {
|
|
7057
7057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7058
7058
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7102,7 +7102,7 @@ function validate$d(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7102
7102
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7103
7103
|
const obj_fields_item = obj_fields[i];
|
|
7104
7104
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7105
|
-
const referencepath_fields_itemValidationError = validate
|
|
7105
|
+
const referencepath_fields_itemValidationError = validate$$(obj_fields_item, path_fields_item);
|
|
7106
7106
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7107
7107
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7108
7108
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7146,7 +7146,7 @@ function validate$d(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7146
7146
|
if (obj.semanticDimension !== undefined) {
|
|
7147
7147
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7148
7148
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7149
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
7149
|
+
const referencepath_semanticDimensionValidationError = validate$q(obj_semanticDimension, path_semanticDimension);
|
|
7150
7150
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7151
7151
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7152
7152
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7156,7 +7156,7 @@ function validate$d(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7156
7156
|
if (obj.semanticMeasurement !== undefined) {
|
|
7157
7157
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7158
7158
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7159
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
7159
|
+
const referencepath_semanticMeasurementValidationError = validate$p(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7160
7160
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7161
7161
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7162
7162
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7166,57 +7166,57 @@ function validate$d(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7166
7166
|
})();
|
|
7167
7167
|
return v_error === undefined ? null : v_error;
|
|
7168
7168
|
}
|
|
7169
|
-
const RepresentationType$
|
|
7170
|
-
function keyBuilder$
|
|
7171
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7169
|
+
const RepresentationType$9 = 'SemanticMappedFieldOutputRepresentation';
|
|
7170
|
+
function keyBuilder$n(luvio, config) {
|
|
7171
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7172
7172
|
}
|
|
7173
7173
|
function keyBuilderFromType$5(luvio, object) {
|
|
7174
7174
|
const keyParams = {
|
|
7175
7175
|
name: object.id
|
|
7176
7176
|
};
|
|
7177
|
-
return keyBuilder$
|
|
7177
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7178
7178
|
}
|
|
7179
|
-
function normalize$
|
|
7179
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7180
7180
|
return input;
|
|
7181
7181
|
}
|
|
7182
|
-
const select$
|
|
7182
|
+
const select$n = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7183
7183
|
return {
|
|
7184
7184
|
kind: 'Fragment',
|
|
7185
|
-
version: VERSION$
|
|
7185
|
+
version: VERSION$b,
|
|
7186
7186
|
private: [],
|
|
7187
7187
|
opaque: true
|
|
7188
7188
|
};
|
|
7189
7189
|
};
|
|
7190
|
-
function equals$
|
|
7190
|
+
function equals$b(existing, incoming) {
|
|
7191
7191
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7192
7192
|
return false;
|
|
7193
7193
|
}
|
|
7194
7194
|
return true;
|
|
7195
7195
|
}
|
|
7196
|
-
const ingest$
|
|
7196
|
+
const ingest$9 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7197
7197
|
if (process.env.NODE_ENV !== 'production') {
|
|
7198
|
-
const validateError = validate$
|
|
7198
|
+
const validateError = validate$g(input);
|
|
7199
7199
|
if (validateError !== null) {
|
|
7200
7200
|
throw validateError;
|
|
7201
7201
|
}
|
|
7202
7202
|
}
|
|
7203
7203
|
const key = keyBuilderFromType$5(luvio, input);
|
|
7204
7204
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7205
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7205
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$b, RepresentationType$9, equals$b);
|
|
7206
7206
|
return createLink(key);
|
|
7207
7207
|
};
|
|
7208
|
-
function getTypeCacheKeys$
|
|
7208
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
7209
7209
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7210
7210
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
7211
7211
|
rootKeySet.set(rootKey, {
|
|
7212
7212
|
namespace: keyPrefix,
|
|
7213
|
-
representationName: RepresentationType$
|
|
7213
|
+
representationName: RepresentationType$9,
|
|
7214
7214
|
mergeable: false
|
|
7215
7215
|
});
|
|
7216
7216
|
}
|
|
7217
7217
|
|
|
7218
|
-
const VERSION$
|
|
7219
|
-
function validate$
|
|
7218
|
+
const VERSION$a = "69fe23112140e9fae50135dcb15c24c2";
|
|
7219
|
+
function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7220
7220
|
const v_error = (() => {
|
|
7221
7221
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7222
7222
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7342,24 +7342,24 @@ function validate$c(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7342
7342
|
})();
|
|
7343
7343
|
return v_error === undefined ? null : v_error;
|
|
7344
7344
|
}
|
|
7345
|
-
const RepresentationType$
|
|
7346
|
-
function keyBuilder$
|
|
7347
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7345
|
+
const RepresentationType$8 = 'SemanticUnionOutputRepresentation';
|
|
7346
|
+
function keyBuilder$m(luvio, config) {
|
|
7347
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7348
7348
|
}
|
|
7349
7349
|
function keyBuilderFromType$4(luvio, object) {
|
|
7350
7350
|
const keyParams = {
|
|
7351
7351
|
name: object.id
|
|
7352
7352
|
};
|
|
7353
|
-
return keyBuilder$
|
|
7353
|
+
return keyBuilder$m(luvio, keyParams);
|
|
7354
7354
|
}
|
|
7355
|
-
function normalize$
|
|
7355
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7356
7356
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7357
7357
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7358
7358
|
if (input_semanticDataObjects !== undefined) {
|
|
7359
7359
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7360
7360
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7361
7361
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7362
|
-
input_semanticDataObjects[i] = ingest$
|
|
7362
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7363
7363
|
fullPath: input_semanticDataObjects_item_id,
|
|
7364
7364
|
propertyName: i,
|
|
7365
7365
|
parent: {
|
|
@@ -7377,7 +7377,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7377
7377
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
7378
7378
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
7379
7379
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
7380
|
-
input_semanticMappedFields[i] = ingest$
|
|
7380
|
+
input_semanticMappedFields[i] = ingest$9(input_semanticMappedFields_item, {
|
|
7381
7381
|
fullPath: input_semanticMappedFields_item_id,
|
|
7382
7382
|
propertyName: i,
|
|
7383
7383
|
parent: {
|
|
@@ -7391,10 +7391,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7391
7391
|
}
|
|
7392
7392
|
return input;
|
|
7393
7393
|
}
|
|
7394
|
-
const select$
|
|
7394
|
+
const select$m = function SemanticUnionOutputRepresentationSelect() {
|
|
7395
7395
|
return {
|
|
7396
7396
|
kind: 'Fragment',
|
|
7397
|
-
version: VERSION$
|
|
7397
|
+
version: VERSION$a,
|
|
7398
7398
|
private: [],
|
|
7399
7399
|
selections: [
|
|
7400
7400
|
{
|
|
@@ -7453,19 +7453,19 @@ const select$i = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7453
7453
|
kind: 'Link',
|
|
7454
7454
|
plural: true,
|
|
7455
7455
|
required: false,
|
|
7456
|
-
fragment: select$
|
|
7456
|
+
fragment: select$v()
|
|
7457
7457
|
},
|
|
7458
7458
|
{
|
|
7459
7459
|
name: 'semanticMappedFields',
|
|
7460
7460
|
kind: 'Link',
|
|
7461
7461
|
plural: true,
|
|
7462
7462
|
required: false,
|
|
7463
|
-
fragment: select$
|
|
7463
|
+
fragment: select$n()
|
|
7464
7464
|
}
|
|
7465
7465
|
]
|
|
7466
7466
|
};
|
|
7467
7467
|
};
|
|
7468
|
-
function equals$
|
|
7468
|
+
function equals$a(existing, incoming) {
|
|
7469
7469
|
const existing_apiName = existing.apiName;
|
|
7470
7470
|
const incoming_apiName = incoming.apiName;
|
|
7471
7471
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7615,42 +7615,42 @@ function equals$7(existing, incoming) {
|
|
|
7615
7615
|
}
|
|
7616
7616
|
return true;
|
|
7617
7617
|
}
|
|
7618
|
-
const ingest$
|
|
7618
|
+
const ingest$8 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7619
7619
|
if (process.env.NODE_ENV !== 'production') {
|
|
7620
|
-
const validateError = validate$
|
|
7620
|
+
const validateError = validate$f(input);
|
|
7621
7621
|
if (validateError !== null) {
|
|
7622
7622
|
throw validateError;
|
|
7623
7623
|
}
|
|
7624
7624
|
}
|
|
7625
7625
|
const key = keyBuilderFromType$4(luvio, input);
|
|
7626
7626
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7627
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7627
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$a, RepresentationType$8, equals$a);
|
|
7628
7628
|
return createLink(key);
|
|
7629
7629
|
};
|
|
7630
|
-
function getTypeCacheKeys$
|
|
7630
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7631
7631
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7632
7632
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
7633
7633
|
rootKeySet.set(rootKey, {
|
|
7634
7634
|
namespace: keyPrefix,
|
|
7635
|
-
representationName: RepresentationType$
|
|
7635
|
+
representationName: RepresentationType$8,
|
|
7636
7636
|
mergeable: false
|
|
7637
7637
|
});
|
|
7638
7638
|
if (input.semanticDataObjects !== undefined) {
|
|
7639
7639
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
7640
7640
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
7641
|
-
getTypeCacheKeys$
|
|
7641
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
7644
|
if (input.semanticMappedFields !== undefined) {
|
|
7645
7645
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
7646
7646
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
7647
|
-
getTypeCacheKeys$
|
|
7647
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
7648
7648
|
}
|
|
7649
7649
|
}
|
|
7650
7650
|
}
|
|
7651
7651
|
|
|
7652
|
-
const VERSION$
|
|
7653
|
-
function validate$
|
|
7652
|
+
const VERSION$9 = "281e0163ea1fc7d956974394f5310216";
|
|
7653
|
+
function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7654
7654
|
const v_error = (() => {
|
|
7655
7655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7656
7656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7714,7 +7714,7 @@ function validate$b(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7714
7714
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
7715
7715
|
const obj_filters_item = obj_filters[i];
|
|
7716
7716
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
7717
|
-
const referencepath_filters_itemValidationError = validate$
|
|
7717
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
7718
7718
|
if (referencepath_filters_itemValidationError !== null) {
|
|
7719
7719
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
7720
7720
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7800,24 +7800,24 @@ function validate$b(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7800
7800
|
})();
|
|
7801
7801
|
return v_error === undefined ? null : v_error;
|
|
7802
7802
|
}
|
|
7803
|
-
const RepresentationType$
|
|
7804
|
-
function keyBuilder$
|
|
7805
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7803
|
+
const RepresentationType$7 = 'SemanticLogicalViewOutputRepresentation';
|
|
7804
|
+
function keyBuilder$l(luvio, config) {
|
|
7805
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7806
7806
|
}
|
|
7807
7807
|
function keyBuilderFromType$3(luvio, object) {
|
|
7808
7808
|
const keyParams = {
|
|
7809
7809
|
name: object.id
|
|
7810
7810
|
};
|
|
7811
|
-
return keyBuilder$
|
|
7811
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7812
7812
|
}
|
|
7813
|
-
function normalize$
|
|
7813
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7814
7814
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7815
7815
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7816
7816
|
if (input_semanticDataObjects !== undefined) {
|
|
7817
7817
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7818
7818
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7819
7819
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7820
|
-
input_semanticDataObjects[i] = ingest$
|
|
7820
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7821
7821
|
fullPath: input_semanticDataObjects_item_id,
|
|
7822
7822
|
propertyName: i,
|
|
7823
7823
|
parent: {
|
|
@@ -7835,7 +7835,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7835
7835
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7836
7836
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7837
7837
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7838
|
-
input_semanticRelationships[i] = ingest$
|
|
7838
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
7839
7839
|
fullPath: input_semanticRelationships_item_id,
|
|
7840
7840
|
propertyName: i,
|
|
7841
7841
|
parent: {
|
|
@@ -7853,7 +7853,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7853
7853
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
7854
7854
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
7855
7855
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
7856
|
-
input_semanticUnions[i] = ingest$
|
|
7856
|
+
input_semanticUnions[i] = ingest$8(input_semanticUnions_item, {
|
|
7857
7857
|
fullPath: input_semanticUnions_item_id,
|
|
7858
7858
|
propertyName: i,
|
|
7859
7859
|
parent: {
|
|
@@ -7867,11 +7867,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7867
7867
|
}
|
|
7868
7868
|
return input;
|
|
7869
7869
|
}
|
|
7870
|
-
const select$
|
|
7871
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7870
|
+
const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7871
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
7872
7872
|
return {
|
|
7873
7873
|
kind: 'Fragment',
|
|
7874
|
-
version: VERSION$
|
|
7874
|
+
version: VERSION$9,
|
|
7875
7875
|
private: [],
|
|
7876
7876
|
selections: [
|
|
7877
7877
|
{
|
|
@@ -7942,21 +7942,21 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7942
7942
|
kind: 'Link',
|
|
7943
7943
|
plural: true,
|
|
7944
7944
|
required: false,
|
|
7945
|
-
fragment: select$
|
|
7945
|
+
fragment: select$v()
|
|
7946
7946
|
},
|
|
7947
7947
|
{
|
|
7948
7948
|
name: 'semanticRelationships',
|
|
7949
7949
|
kind: 'Link',
|
|
7950
7950
|
plural: true,
|
|
7951
7951
|
required: false,
|
|
7952
|
-
fragment: select$
|
|
7952
|
+
fragment: select$o()
|
|
7953
7953
|
},
|
|
7954
7954
|
{
|
|
7955
7955
|
name: 'semanticUnions',
|
|
7956
7956
|
kind: 'Link',
|
|
7957
7957
|
plural: true,
|
|
7958
7958
|
required: false,
|
|
7959
|
-
fragment: select$
|
|
7959
|
+
fragment: select$m()
|
|
7960
7960
|
},
|
|
7961
7961
|
{
|
|
7962
7962
|
name: 'semanticViewTypeEnum',
|
|
@@ -7966,7 +7966,7 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7966
7966
|
]
|
|
7967
7967
|
};
|
|
7968
7968
|
};
|
|
7969
|
-
function equals$
|
|
7969
|
+
function equals$9(existing, incoming) {
|
|
7970
7970
|
const existing_apiName = existing.apiName;
|
|
7971
7971
|
const incoming_apiName = incoming.apiName;
|
|
7972
7972
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8114,7 +8114,7 @@ function equals$6(existing, incoming) {
|
|
|
8114
8114
|
return false;
|
|
8115
8115
|
}
|
|
8116
8116
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8117
|
-
if (!(equals$
|
|
8117
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
8118
8118
|
return false;
|
|
8119
8119
|
}
|
|
8120
8120
|
});
|
|
@@ -8178,48 +8178,48 @@ function equals$6(existing, incoming) {
|
|
|
8178
8178
|
}
|
|
8179
8179
|
return true;
|
|
8180
8180
|
}
|
|
8181
|
-
const ingest$
|
|
8181
|
+
const ingest$7 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8182
8182
|
if (process.env.NODE_ENV !== 'production') {
|
|
8183
|
-
const validateError = validate$
|
|
8183
|
+
const validateError = validate$e(input);
|
|
8184
8184
|
if (validateError !== null) {
|
|
8185
8185
|
throw validateError;
|
|
8186
8186
|
}
|
|
8187
8187
|
}
|
|
8188
8188
|
const key = keyBuilderFromType$3(luvio, input);
|
|
8189
8189
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8190
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8190
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$9, RepresentationType$7, equals$9);
|
|
8191
8191
|
return createLink(key);
|
|
8192
8192
|
};
|
|
8193
|
-
function getTypeCacheKeys$
|
|
8193
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8194
8194
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8195
8195
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
8196
8196
|
rootKeySet.set(rootKey, {
|
|
8197
8197
|
namespace: keyPrefix,
|
|
8198
|
-
representationName: RepresentationType$
|
|
8198
|
+
representationName: RepresentationType$7,
|
|
8199
8199
|
mergeable: false
|
|
8200
8200
|
});
|
|
8201
8201
|
if (input.semanticDataObjects !== undefined) {
|
|
8202
8202
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8203
8203
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8204
|
-
getTypeCacheKeys$
|
|
8204
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8205
8205
|
}
|
|
8206
8206
|
}
|
|
8207
8207
|
if (input.semanticRelationships !== undefined) {
|
|
8208
8208
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8209
8209
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8210
|
-
getTypeCacheKeys$
|
|
8210
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8211
8211
|
}
|
|
8212
8212
|
}
|
|
8213
8213
|
if (input.semanticUnions !== undefined) {
|
|
8214
8214
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
8215
8215
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
8216
|
-
getTypeCacheKeys$
|
|
8216
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticUnions[i]);
|
|
8217
8217
|
}
|
|
8218
8218
|
}
|
|
8219
8219
|
}
|
|
8220
8220
|
|
|
8221
|
-
const VERSION$
|
|
8222
|
-
function validate$
|
|
8221
|
+
const VERSION$8 = "562f9618d0de907973cf252f01ea567d";
|
|
8222
|
+
function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8223
8223
|
const v_error = (() => {
|
|
8224
8224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8225
8225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8345,23 +8345,23 @@ function validate$a(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8345
8345
|
})();
|
|
8346
8346
|
return v_error === undefined ? null : v_error;
|
|
8347
8347
|
}
|
|
8348
|
-
const RepresentationType$
|
|
8349
|
-
function keyBuilder$
|
|
8350
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8348
|
+
const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
|
|
8349
|
+
function keyBuilder$k(luvio, config) {
|
|
8350
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
8351
8351
|
}
|
|
8352
8352
|
function keyBuilderFromType$2(luvio, object) {
|
|
8353
8353
|
const keyParams = {
|
|
8354
8354
|
name: object.id
|
|
8355
8355
|
};
|
|
8356
|
-
return keyBuilder$
|
|
8356
|
+
return keyBuilder$k(luvio, keyParams);
|
|
8357
8357
|
}
|
|
8358
|
-
function normalize$
|
|
8358
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
8359
8359
|
return input;
|
|
8360
8360
|
}
|
|
8361
|
-
const select$
|
|
8361
|
+
const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
8362
8362
|
return {
|
|
8363
8363
|
kind: 'Fragment',
|
|
8364
|
-
version: VERSION$
|
|
8364
|
+
version: VERSION$8,
|
|
8365
8365
|
private: [],
|
|
8366
8366
|
selections: [
|
|
8367
8367
|
{
|
|
@@ -8449,7 +8449,7 @@ const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
|
8449
8449
|
]
|
|
8450
8450
|
};
|
|
8451
8451
|
};
|
|
8452
|
-
function equals$
|
|
8452
|
+
function equals$8(existing, incoming) {
|
|
8453
8453
|
const existing_apiName = existing.apiName;
|
|
8454
8454
|
const incoming_apiName = incoming.apiName;
|
|
8455
8455
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8646,30 +8646,30 @@ function equals$5(existing, incoming) {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
return true;
|
|
8648
8648
|
}
|
|
8649
|
-
const ingest$
|
|
8649
|
+
const ingest$6 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8650
8650
|
if (process.env.NODE_ENV !== 'production') {
|
|
8651
|
-
const validateError = validate$
|
|
8651
|
+
const validateError = validate$d(input);
|
|
8652
8652
|
if (validateError !== null) {
|
|
8653
8653
|
throw validateError;
|
|
8654
8654
|
}
|
|
8655
8655
|
}
|
|
8656
8656
|
const key = keyBuilderFromType$2(luvio, input);
|
|
8657
8657
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8658
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8658
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$8, RepresentationType$6, equals$8);
|
|
8659
8659
|
return createLink(key);
|
|
8660
8660
|
};
|
|
8661
|
-
function getTypeCacheKeys$
|
|
8661
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
8662
8662
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8663
8663
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
8664
8664
|
rootKeySet.set(rootKey, {
|
|
8665
8665
|
namespace: keyPrefix,
|
|
8666
|
-
representationName: RepresentationType$
|
|
8666
|
+
representationName: RepresentationType$6,
|
|
8667
8667
|
mergeable: false
|
|
8668
8668
|
});
|
|
8669
8669
|
}
|
|
8670
8670
|
|
|
8671
|
-
const VERSION$
|
|
8672
|
-
function validate$
|
|
8671
|
+
const VERSION$7 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8672
|
+
function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8673
8673
|
const v_error = (() => {
|
|
8674
8674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8675
8675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8702,7 +8702,7 @@ function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8702
8702
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8703
8703
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8704
8704
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8705
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
8705
|
+
const referencepath_baseModels_itemValidationError = validate$T(obj_baseModels_item, path_baseModels_item);
|
|
8706
8706
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8707
8707
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8708
8708
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8985,24 +8985,24 @@ function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8985
8985
|
})();
|
|
8986
8986
|
return v_error === undefined ? null : v_error;
|
|
8987
8987
|
}
|
|
8988
|
-
const RepresentationType$
|
|
8989
|
-
function keyBuilder$
|
|
8990
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8988
|
+
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
8989
|
+
function keyBuilder$j(luvio, config) {
|
|
8990
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8991
8991
|
}
|
|
8992
8992
|
function keyBuilderFromType$1(luvio, object) {
|
|
8993
8993
|
const keyParams = {
|
|
8994
8994
|
name: object.id
|
|
8995
8995
|
};
|
|
8996
|
-
return keyBuilder$
|
|
8996
|
+
return keyBuilder$j(luvio, keyParams);
|
|
8997
8997
|
}
|
|
8998
|
-
function normalize$
|
|
8998
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8999
8999
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
9000
9000
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
9001
9001
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
9002
9002
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
9003
9003
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
9004
9004
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
9005
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
9005
|
+
input_semanticCalculatedDimensions[i] = ingest$e(input_semanticCalculatedDimensions_item, {
|
|
9006
9006
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
9007
9007
|
propertyName: i,
|
|
9008
9008
|
parent: {
|
|
@@ -9020,7 +9020,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9020
9020
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
9021
9021
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
9022
9022
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
9023
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
9023
|
+
input_semanticCalculatedMeasurements[i] = ingest$d(input_semanticCalculatedMeasurements_item, {
|
|
9024
9024
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
9025
9025
|
propertyName: i,
|
|
9026
9026
|
parent: {
|
|
@@ -9038,7 +9038,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9038
9038
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
9039
9039
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
9040
9040
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
9041
|
-
input_semanticDataObjects[i] = ingest$
|
|
9041
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
9042
9042
|
fullPath: input_semanticDataObjects_item_id,
|
|
9043
9043
|
propertyName: i,
|
|
9044
9044
|
parent: {
|
|
@@ -9056,7 +9056,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9056
9056
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
9057
9057
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
9058
9058
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
9059
|
-
input_semanticGroupings[i] = ingest$
|
|
9059
|
+
input_semanticGroupings[i] = ingest$b(input_semanticGroupings_item, {
|
|
9060
9060
|
fullPath: input_semanticGroupings_item_id,
|
|
9061
9061
|
propertyName: i,
|
|
9062
9062
|
parent: {
|
|
@@ -9074,7 +9074,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9074
9074
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
9075
9075
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
9076
9076
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
9077
|
-
input_semanticLogicalViews[i] = ingest$
|
|
9077
|
+
input_semanticLogicalViews[i] = ingest$7(input_semanticLogicalViews_item, {
|
|
9078
9078
|
fullPath: input_semanticLogicalViews_item_id,
|
|
9079
9079
|
propertyName: i,
|
|
9080
9080
|
parent: {
|
|
@@ -9092,7 +9092,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9092
9092
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
9093
9093
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
9094
9094
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
9095
|
-
input_semanticMetrics[i] = ingest$
|
|
9095
|
+
input_semanticMetrics[i] = ingest$h(input_semanticMetrics_item, {
|
|
9096
9096
|
fullPath: input_semanticMetrics_item_id,
|
|
9097
9097
|
propertyName: i,
|
|
9098
9098
|
parent: {
|
|
@@ -9110,7 +9110,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9110
9110
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
9111
9111
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
9112
9112
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
9113
|
-
input_semanticParameters[i] = ingest$
|
|
9113
|
+
input_semanticParameters[i] = ingest$6(input_semanticParameters_item, {
|
|
9114
9114
|
fullPath: input_semanticParameters_item_id,
|
|
9115
9115
|
propertyName: i,
|
|
9116
9116
|
parent: {
|
|
@@ -9128,7 +9128,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9128
9128
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
9129
9129
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
9130
9130
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
9131
|
-
input_semanticRelationships[i] = ingest$
|
|
9131
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
9132
9132
|
fullPath: input_semanticRelationships_item_id,
|
|
9133
9133
|
propertyName: i,
|
|
9134
9134
|
parent: {
|
|
@@ -9142,11 +9142,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9142
9142
|
}
|
|
9143
9143
|
return input;
|
|
9144
9144
|
}
|
|
9145
|
-
const select$
|
|
9146
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9145
|
+
const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
9146
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
9147
9147
|
return {
|
|
9148
9148
|
kind: 'Fragment',
|
|
9149
|
-
version: VERSION$
|
|
9149
|
+
version: VERSION$7,
|
|
9150
9150
|
private: [],
|
|
9151
9151
|
selections: [
|
|
9152
9152
|
{
|
|
@@ -9232,7 +9232,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9232
9232
|
kind: 'Link',
|
|
9233
9233
|
plural: true,
|
|
9234
9234
|
required: false,
|
|
9235
|
-
fragment: select$
|
|
9235
|
+
fragment: select$x()
|
|
9236
9236
|
},
|
|
9237
9237
|
{
|
|
9238
9238
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9244,7 +9244,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9244
9244
|
kind: 'Link',
|
|
9245
9245
|
plural: true,
|
|
9246
9246
|
required: false,
|
|
9247
|
-
fragment: select$
|
|
9247
|
+
fragment: select$w()
|
|
9248
9248
|
},
|
|
9249
9249
|
{
|
|
9250
9250
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9256,7 +9256,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9256
9256
|
kind: 'Link',
|
|
9257
9257
|
plural: true,
|
|
9258
9258
|
required: false,
|
|
9259
|
-
fragment: select$
|
|
9259
|
+
fragment: select$v()
|
|
9260
9260
|
},
|
|
9261
9261
|
{
|
|
9262
9262
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9268,7 +9268,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9268
9268
|
kind: 'Link',
|
|
9269
9269
|
plural: true,
|
|
9270
9270
|
required: false,
|
|
9271
|
-
fragment: select$
|
|
9271
|
+
fragment: select$q()
|
|
9272
9272
|
},
|
|
9273
9273
|
{
|
|
9274
9274
|
name: 'semanticGroupingsUrl',
|
|
@@ -9280,21 +9280,21 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9280
9280
|
kind: 'Link',
|
|
9281
9281
|
plural: true,
|
|
9282
9282
|
required: false,
|
|
9283
|
-
fragment: select$
|
|
9283
|
+
fragment: select$l()
|
|
9284
9284
|
},
|
|
9285
9285
|
{
|
|
9286
9286
|
name: 'semanticMetrics',
|
|
9287
9287
|
kind: 'Link',
|
|
9288
9288
|
plural: true,
|
|
9289
9289
|
required: false,
|
|
9290
|
-
fragment: select$
|
|
9290
|
+
fragment: select$E()
|
|
9291
9291
|
},
|
|
9292
9292
|
{
|
|
9293
9293
|
name: 'semanticParameters',
|
|
9294
9294
|
kind: 'Link',
|
|
9295
9295
|
plural: true,
|
|
9296
9296
|
required: false,
|
|
9297
|
-
fragment: select$
|
|
9297
|
+
fragment: select$k()
|
|
9298
9298
|
},
|
|
9299
9299
|
{
|
|
9300
9300
|
name: 'semanticParametersUrl',
|
|
@@ -9306,7 +9306,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9306
9306
|
kind: 'Link',
|
|
9307
9307
|
plural: true,
|
|
9308
9308
|
required: false,
|
|
9309
|
-
fragment: select$
|
|
9309
|
+
fragment: select$o()
|
|
9310
9310
|
},
|
|
9311
9311
|
{
|
|
9312
9312
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9326,7 +9326,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9326
9326
|
]
|
|
9327
9327
|
};
|
|
9328
9328
|
};
|
|
9329
|
-
function equals$
|
|
9329
|
+
function equals$7(existing, incoming) {
|
|
9330
9330
|
const existing_isLocked = existing.isLocked;
|
|
9331
9331
|
const incoming_isLocked = incoming.isLocked;
|
|
9332
9332
|
// if at least one of these optionals is defined
|
|
@@ -9570,7 +9570,7 @@ function equals$4(existing, incoming) {
|
|
|
9570
9570
|
return false;
|
|
9571
9571
|
}
|
|
9572
9572
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9573
|
-
if (!(equals$
|
|
9573
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9574
9574
|
return false;
|
|
9575
9575
|
}
|
|
9576
9576
|
});
|
|
@@ -9755,89 +9755,89 @@ function equals$4(existing, incoming) {
|
|
|
9755
9755
|
}
|
|
9756
9756
|
return true;
|
|
9757
9757
|
}
|
|
9758
|
-
const ingest$
|
|
9758
|
+
const ingest$5 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9759
9759
|
if (process.env.NODE_ENV !== 'production') {
|
|
9760
|
-
const validateError = validate$
|
|
9760
|
+
const validateError = validate$c(input);
|
|
9761
9761
|
if (validateError !== null) {
|
|
9762
9762
|
throw validateError;
|
|
9763
9763
|
}
|
|
9764
9764
|
}
|
|
9765
9765
|
const key = keyBuilderFromType$1(luvio, input);
|
|
9766
9766
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9767
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9767
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$7, RepresentationType$5, equals$7);
|
|
9768
9768
|
return createLink(key);
|
|
9769
9769
|
};
|
|
9770
|
-
function getTypeCacheKeys$
|
|
9770
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9771
9771
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9772
9772
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
9773
9773
|
rootKeySet.set(rootKey, {
|
|
9774
9774
|
namespace: keyPrefix,
|
|
9775
|
-
representationName: RepresentationType$
|
|
9775
|
+
representationName: RepresentationType$5,
|
|
9776
9776
|
mergeable: false
|
|
9777
9777
|
});
|
|
9778
9778
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
9779
9779
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
9780
9780
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
9781
|
-
getTypeCacheKeys$
|
|
9781
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
9782
9782
|
}
|
|
9783
9783
|
}
|
|
9784
9784
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
9785
9785
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
9786
9786
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
9787
|
-
getTypeCacheKeys$
|
|
9787
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
9788
9788
|
}
|
|
9789
9789
|
}
|
|
9790
9790
|
if (input.semanticDataObjects !== undefined) {
|
|
9791
9791
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
9792
9792
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
9793
|
-
getTypeCacheKeys$
|
|
9793
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
9794
9794
|
}
|
|
9795
9795
|
}
|
|
9796
9796
|
if (input.semanticGroupings !== undefined) {
|
|
9797
9797
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
9798
9798
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
9799
|
-
getTypeCacheKeys$
|
|
9799
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
9800
9800
|
}
|
|
9801
9801
|
}
|
|
9802
9802
|
if (input.semanticLogicalViews !== undefined) {
|
|
9803
9803
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
9804
9804
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
9805
|
-
getTypeCacheKeys$
|
|
9805
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
9806
9806
|
}
|
|
9807
9807
|
}
|
|
9808
9808
|
if (input.semanticMetrics !== undefined) {
|
|
9809
9809
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
9810
9810
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
9811
|
-
getTypeCacheKeys$
|
|
9811
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
9812
9812
|
}
|
|
9813
9813
|
}
|
|
9814
9814
|
if (input.semanticParameters !== undefined) {
|
|
9815
9815
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
9816
9816
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
9817
|
-
getTypeCacheKeys$
|
|
9817
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.semanticParameters[i]);
|
|
9818
9818
|
}
|
|
9819
9819
|
}
|
|
9820
9820
|
if (input.semanticRelationships !== undefined) {
|
|
9821
9821
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
9822
9822
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
9823
|
-
getTypeCacheKeys$
|
|
9823
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
9824
9824
|
}
|
|
9825
9825
|
}
|
|
9826
9826
|
}
|
|
9827
9827
|
|
|
9828
|
-
function select$
|
|
9829
|
-
return select$
|
|
9828
|
+
function select$i(luvio, params) {
|
|
9829
|
+
return select$j();
|
|
9830
9830
|
}
|
|
9831
|
-
function getResponseCacheKeys$
|
|
9832
|
-
getTypeCacheKeys$
|
|
9831
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
9832
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9833
9833
|
}
|
|
9834
|
-
function ingestSuccess$
|
|
9834
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9835
9835
|
const { body } = response;
|
|
9836
9836
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9837
|
-
luvio.storeIngest(key, ingest$
|
|
9837
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9838
9838
|
const snapshot = luvio.storeLookup({
|
|
9839
9839
|
recordId: key,
|
|
9840
|
-
node: select$
|
|
9840
|
+
node: select$i(),
|
|
9841
9841
|
variables: {},
|
|
9842
9842
|
});
|
|
9843
9843
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9848,7 +9848,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
9848
9848
|
deepFreeze(snapshot.data);
|
|
9849
9849
|
return snapshot;
|
|
9850
9850
|
}
|
|
9851
|
-
function createResourceRequest$
|
|
9851
|
+
function createResourceRequest$d(config) {
|
|
9852
9852
|
const headers = {};
|
|
9853
9853
|
return {
|
|
9854
9854
|
baseUri: '/services/data/v64.0',
|
|
@@ -9862,7 +9862,7 @@ function createResourceRequest$c(config) {
|
|
|
9862
9862
|
};
|
|
9863
9863
|
}
|
|
9864
9864
|
|
|
9865
|
-
const adapterName$
|
|
9865
|
+
const adapterName$d = 'createSemanticModel';
|
|
9866
9866
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9867
9867
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9868
9868
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9883,17 +9883,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9883
9883
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9884
9884
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9885
9885
|
];
|
|
9886
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9887
|
-
const createResourceParams$
|
|
9888
|
-
function typeCheckConfig$
|
|
9886
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createSemanticModel_ConfigPropertyMetadata);
|
|
9887
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
9888
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9889
9889
|
const config = {};
|
|
9890
|
-
typeCheckConfig$
|
|
9890
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9891
9891
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9892
9892
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9893
9893
|
const untrustedConfig_baseModels_array = [];
|
|
9894
9894
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9895
9895
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9896
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
9896
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Q(untrustedConfig_baseModels_item);
|
|
9897
9897
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9898
9898
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9899
9899
|
}
|
|
@@ -9905,7 +9905,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9905
9905
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9906
9906
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9907
9907
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9908
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
9908
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$O(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9909
9909
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9910
9910
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9911
9911
|
}
|
|
@@ -9917,7 +9917,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9917
9917
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9918
9918
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9919
9919
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9920
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
9920
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$N(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9921
9921
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9922
9922
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9923
9923
|
}
|
|
@@ -9929,7 +9929,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9929
9929
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9930
9930
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9931
9931
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9932
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
9932
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$K(untrustedConfig_semanticDataObjects_item);
|
|
9933
9933
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9934
9934
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9935
9935
|
}
|
|
@@ -9941,7 +9941,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9941
9941
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9942
9942
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9943
9943
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9944
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
9944
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$D(untrustedConfig_semanticGroupings_item);
|
|
9945
9945
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9946
9946
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9947
9947
|
}
|
|
@@ -9953,7 +9953,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9953
9953
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
9954
9954
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
9955
9955
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
9956
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
9956
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$y(untrustedConfig_semanticLogicalViews_item);
|
|
9957
9957
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
9958
9958
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
9959
9959
|
}
|
|
@@ -9965,7 +9965,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9965
9965
|
const untrustedConfig_semanticMetrics_array = [];
|
|
9966
9966
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
9967
9967
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
9968
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
9968
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$u(untrustedConfig_semanticMetrics_item);
|
|
9969
9969
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
9970
9970
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
9971
9971
|
}
|
|
@@ -9977,7 +9977,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9977
9977
|
const untrustedConfig_semanticParameters_array = [];
|
|
9978
9978
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
9979
9979
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
9980
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
9980
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$t(untrustedConfig_semanticParameters_item);
|
|
9981
9981
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
9982
9982
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
9983
9983
|
}
|
|
@@ -9989,7 +9989,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9989
9989
|
const untrustedConfig_semanticRelationships_array = [];
|
|
9990
9990
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
9991
9991
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
9992
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
9992
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$B(untrustedConfig_semanticRelationships_item);
|
|
9993
9993
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
9994
9994
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
9995
9995
|
}
|
|
@@ -9998,30 +9998,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9998
9998
|
}
|
|
9999
9999
|
return config;
|
|
10000
10000
|
}
|
|
10001
|
-
function validateAdapterConfig$
|
|
10001
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10002
10002
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10003
10003
|
return null;
|
|
10004
10004
|
}
|
|
10005
10005
|
if (process.env.NODE_ENV !== 'production') {
|
|
10006
10006
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10007
10007
|
}
|
|
10008
|
-
const config = typeCheckConfig$
|
|
10008
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10009
10009
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10010
10010
|
return null;
|
|
10011
10011
|
}
|
|
10012
10012
|
return config;
|
|
10013
10013
|
}
|
|
10014
|
-
function buildNetworkSnapshot$
|
|
10015
|
-
const resourceParams = createResourceParams$
|
|
10016
|
-
const request = createResourceRequest$
|
|
10014
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10015
|
+
const resourceParams = createResourceParams$d(config);
|
|
10016
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10017
10017
|
return luvio.dispatchResourceRequest(request, options)
|
|
10018
10018
|
.then((response) => {
|
|
10019
10019
|
return luvio.handleSuccessResponse(() => {
|
|
10020
|
-
const snapshot = ingestSuccess$
|
|
10020
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
10021
10021
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10022
10022
|
}, () => {
|
|
10023
10023
|
const cache = new StoreKeyMap();
|
|
10024
|
-
getResponseCacheKeys$
|
|
10024
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10025
10025
|
return cache;
|
|
10026
10026
|
});
|
|
10027
10027
|
}, (response) => {
|
|
@@ -10031,33 +10031,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10031
10031
|
}
|
|
10032
10032
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10033
10033
|
return function createSemanticModel(untrustedConfig) {
|
|
10034
|
-
const config = validateAdapterConfig$
|
|
10034
|
+
const config = validateAdapterConfig$d(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10035
10035
|
// Invalid or incomplete config
|
|
10036
10036
|
if (config === null) {
|
|
10037
10037
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10038
10038
|
}
|
|
10039
|
-
return buildNetworkSnapshot$
|
|
10039
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
10040
10040
|
};
|
|
10041
10041
|
};
|
|
10042
10042
|
|
|
10043
|
-
function select$
|
|
10044
|
-
return select$
|
|
10043
|
+
function select$h(luvio, params) {
|
|
10044
|
+
return select$j();
|
|
10045
10045
|
}
|
|
10046
|
-
function keyBuilder$
|
|
10047
|
-
return keyBuilder$
|
|
10046
|
+
function keyBuilder$i(luvio, params) {
|
|
10047
|
+
return keyBuilder$j(luvio, {
|
|
10048
10048
|
name: params.urlParams.modelApiNameOrId
|
|
10049
10049
|
});
|
|
10050
10050
|
}
|
|
10051
|
-
function getResponseCacheKeys$
|
|
10052
|
-
getTypeCacheKeys$
|
|
10051
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10052
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10053
10053
|
}
|
|
10054
|
-
function ingestSuccess$
|
|
10054
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
10055
10055
|
const { body } = response;
|
|
10056
|
-
const key = keyBuilder$
|
|
10057
|
-
luvio.storeIngest(key, ingest$
|
|
10056
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
10057
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10058
10058
|
const snapshot = luvio.storeLookup({
|
|
10059
10059
|
recordId: key,
|
|
10060
|
-
node: select$
|
|
10060
|
+
node: select$h(),
|
|
10061
10061
|
variables: {},
|
|
10062
10062
|
}, snapshotRefresh);
|
|
10063
10063
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10068,13 +10068,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10068
10068
|
deepFreeze(snapshot.data);
|
|
10069
10069
|
return snapshot;
|
|
10070
10070
|
}
|
|
10071
|
-
function ingestError$
|
|
10072
|
-
const key = keyBuilder$
|
|
10071
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
10072
|
+
const key = keyBuilder$i(luvio, params);
|
|
10073
10073
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10074
10074
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10075
10075
|
return errorSnapshot;
|
|
10076
10076
|
}
|
|
10077
|
-
function createResourceRequest$
|
|
10077
|
+
function createResourceRequest$c(config) {
|
|
10078
10078
|
const headers = {};
|
|
10079
10079
|
return {
|
|
10080
10080
|
baseUri: '/services/data/v64.0',
|
|
@@ -10088,108 +10088,108 @@ function createResourceRequest$b(config) {
|
|
|
10088
10088
|
};
|
|
10089
10089
|
}
|
|
10090
10090
|
|
|
10091
|
-
const adapterName$
|
|
10091
|
+
const adapterName$c = 'getSemanticModel';
|
|
10092
10092
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10093
10093
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10094
10094
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10095
10095
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10096
10096
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10097
10097
|
];
|
|
10098
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10099
|
-
const createResourceParams$
|
|
10100
|
-
function keyBuilder$
|
|
10101
|
-
const resourceParams = createResourceParams$
|
|
10102
|
-
return keyBuilder$
|
|
10098
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticModel_ConfigPropertyMetadata);
|
|
10099
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10100
|
+
function keyBuilder$h(luvio, config) {
|
|
10101
|
+
const resourceParams = createResourceParams$c(config);
|
|
10102
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
10103
10103
|
}
|
|
10104
|
-
function typeCheckConfig$
|
|
10104
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10105
10105
|
const config = {};
|
|
10106
|
-
typeCheckConfig$
|
|
10106
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10107
10107
|
return config;
|
|
10108
10108
|
}
|
|
10109
|
-
function validateAdapterConfig$
|
|
10109
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10110
10110
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10111
10111
|
return null;
|
|
10112
10112
|
}
|
|
10113
10113
|
if (process.env.NODE_ENV !== 'production') {
|
|
10114
10114
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10115
10115
|
}
|
|
10116
|
-
const config = typeCheckConfig$
|
|
10116
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10117
10117
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10118
10118
|
return null;
|
|
10119
10119
|
}
|
|
10120
10120
|
return config;
|
|
10121
10121
|
}
|
|
10122
|
-
function adapterFragment$
|
|
10123
|
-
createResourceParams$
|
|
10124
|
-
return select$
|
|
10122
|
+
function adapterFragment$7(luvio, config) {
|
|
10123
|
+
createResourceParams$c(config);
|
|
10124
|
+
return select$h();
|
|
10125
10125
|
}
|
|
10126
|
-
function onFetchResponseSuccess$
|
|
10127
|
-
const snapshot = ingestSuccess$
|
|
10126
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
10127
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
10128
10128
|
config,
|
|
10129
|
-
resolve: () => buildNetworkSnapshot$
|
|
10129
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10130
10130
|
});
|
|
10131
10131
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10132
10132
|
}
|
|
10133
|
-
function onFetchResponseError$
|
|
10134
|
-
const snapshot = ingestError$
|
|
10133
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
10134
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
10135
10135
|
config,
|
|
10136
|
-
resolve: () => buildNetworkSnapshot$
|
|
10136
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10137
10137
|
});
|
|
10138
10138
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10139
10139
|
}
|
|
10140
|
-
function buildNetworkSnapshot$
|
|
10141
|
-
const resourceParams = createResourceParams$
|
|
10142
|
-
const request = createResourceRequest$
|
|
10140
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10141
|
+
const resourceParams = createResourceParams$c(config);
|
|
10142
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10143
10143
|
return luvio.dispatchResourceRequest(request, options)
|
|
10144
10144
|
.then((response) => {
|
|
10145
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
10145
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
10146
10146
|
const cache = new StoreKeyMap();
|
|
10147
|
-
getResponseCacheKeys$
|
|
10147
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10148
10148
|
return cache;
|
|
10149
10149
|
});
|
|
10150
10150
|
}, (response) => {
|
|
10151
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
10151
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
10152
10152
|
});
|
|
10153
10153
|
}
|
|
10154
|
-
function buildNetworkSnapshotCachePolicy$
|
|
10155
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10154
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
10155
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10156
10156
|
}
|
|
10157
|
-
function buildCachedSnapshotCachePolicy$
|
|
10157
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
10158
10158
|
const { luvio, config } = context;
|
|
10159
10159
|
const selector = {
|
|
10160
|
-
recordId: keyBuilder$
|
|
10161
|
-
node: adapterFragment$
|
|
10160
|
+
recordId: keyBuilder$h(luvio, config),
|
|
10161
|
+
node: adapterFragment$7(luvio, config),
|
|
10162
10162
|
variables: {},
|
|
10163
10163
|
};
|
|
10164
10164
|
const cacheSnapshot = storeLookup(selector, {
|
|
10165
10165
|
config,
|
|
10166
|
-
resolve: () => buildNetworkSnapshot$
|
|
10166
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10167
10167
|
});
|
|
10168
10168
|
return cacheSnapshot;
|
|
10169
10169
|
}
|
|
10170
10170
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10171
|
-
const config = validateAdapterConfig$
|
|
10171
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10172
10172
|
// Invalid or incomplete config
|
|
10173
10173
|
if (config === null) {
|
|
10174
10174
|
return null;
|
|
10175
10175
|
}
|
|
10176
10176
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10177
|
-
buildCachedSnapshotCachePolicy$
|
|
10177
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
10178
10178
|
};
|
|
10179
10179
|
|
|
10180
|
-
function select$
|
|
10181
|
-
return select$
|
|
10180
|
+
function select$g(luvio, params) {
|
|
10181
|
+
return select$j();
|
|
10182
10182
|
}
|
|
10183
|
-
function getResponseCacheKeys$
|
|
10184
|
-
getTypeCacheKeys$
|
|
10183
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10184
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10185
10185
|
}
|
|
10186
|
-
function ingestSuccess$
|
|
10186
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
10187
10187
|
const { body } = response;
|
|
10188
10188
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10189
|
-
luvio.storeIngest(key, ingest$
|
|
10189
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10190
10190
|
const snapshot = luvio.storeLookup({
|
|
10191
10191
|
recordId: key,
|
|
10192
|
-
node: select$
|
|
10192
|
+
node: select$g(),
|
|
10193
10193
|
variables: {},
|
|
10194
10194
|
});
|
|
10195
10195
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10200,7 +10200,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
10200
10200
|
deepFreeze(snapshot.data);
|
|
10201
10201
|
return snapshot;
|
|
10202
10202
|
}
|
|
10203
|
-
function createResourceRequest$
|
|
10203
|
+
function createResourceRequest$b(config) {
|
|
10204
10204
|
const headers = {};
|
|
10205
10205
|
return {
|
|
10206
10206
|
baseUri: '/services/data/v64.0',
|
|
@@ -10214,7 +10214,7 @@ function createResourceRequest$a(config) {
|
|
|
10214
10214
|
};
|
|
10215
10215
|
}
|
|
10216
10216
|
|
|
10217
|
-
const adapterName$
|
|
10217
|
+
const adapterName$b = 'patchSemanticModel';
|
|
10218
10218
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10219
10219
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10220
10220
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10236,17 +10236,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10236
10236
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10237
10237
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10238
10238
|
];
|
|
10239
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10240
|
-
const createResourceParams$
|
|
10241
|
-
function typeCheckConfig$
|
|
10239
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, patchSemanticModel_ConfigPropertyMetadata);
|
|
10240
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
10241
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10242
10242
|
const config = {};
|
|
10243
|
-
typeCheckConfig$
|
|
10243
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10244
10244
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10245
10245
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10246
10246
|
const untrustedConfig_baseModels_array = [];
|
|
10247
10247
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10248
10248
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10249
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10249
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Q(untrustedConfig_baseModels_item);
|
|
10250
10250
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10251
10251
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10252
10252
|
}
|
|
@@ -10258,7 +10258,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10258
10258
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10259
10259
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10260
10260
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10261
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10261
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$O(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10262
10262
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10263
10263
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10264
10264
|
}
|
|
@@ -10270,7 +10270,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10270
10270
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10271
10271
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10272
10272
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10273
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10273
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$N(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10274
10274
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10275
10275
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10276
10276
|
}
|
|
@@ -10282,7 +10282,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10282
10282
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10283
10283
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10284
10284
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10285
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10285
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$K(untrustedConfig_semanticDataObjects_item);
|
|
10286
10286
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10287
10287
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10288
10288
|
}
|
|
@@ -10294,7 +10294,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10294
10294
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10295
10295
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10296
10296
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10297
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10297
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$D(untrustedConfig_semanticGroupings_item);
|
|
10298
10298
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10299
10299
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10300
10300
|
}
|
|
@@ -10306,7 +10306,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10306
10306
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10307
10307
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10308
10308
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10309
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10309
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$y(untrustedConfig_semanticLogicalViews_item);
|
|
10310
10310
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10311
10311
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10312
10312
|
}
|
|
@@ -10318,7 +10318,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10318
10318
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10319
10319
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10320
10320
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10321
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10321
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$u(untrustedConfig_semanticMetrics_item);
|
|
10322
10322
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10323
10323
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10324
10324
|
}
|
|
@@ -10330,7 +10330,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10330
10330
|
const untrustedConfig_semanticParameters_array = [];
|
|
10331
10331
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10332
10332
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10333
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10333
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$t(untrustedConfig_semanticParameters_item);
|
|
10334
10334
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10335
10335
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10336
10336
|
}
|
|
@@ -10342,7 +10342,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10342
10342
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10343
10343
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10344
10344
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10345
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10345
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$B(untrustedConfig_semanticRelationships_item);
|
|
10346
10346
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10347
10347
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10348
10348
|
}
|
|
@@ -10351,30 +10351,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10351
10351
|
}
|
|
10352
10352
|
return config;
|
|
10353
10353
|
}
|
|
10354
|
-
function validateAdapterConfig$
|
|
10354
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10355
10355
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10356
10356
|
return null;
|
|
10357
10357
|
}
|
|
10358
10358
|
if (process.env.NODE_ENV !== 'production') {
|
|
10359
10359
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10360
10360
|
}
|
|
10361
|
-
const config = typeCheckConfig$
|
|
10361
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10362
10362
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10363
10363
|
return null;
|
|
10364
10364
|
}
|
|
10365
10365
|
return config;
|
|
10366
10366
|
}
|
|
10367
|
-
function buildNetworkSnapshot$
|
|
10368
|
-
const resourceParams = createResourceParams$
|
|
10369
|
-
const request = createResourceRequest$
|
|
10367
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10368
|
+
const resourceParams = createResourceParams$b(config);
|
|
10369
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10370
10370
|
return luvio.dispatchResourceRequest(request, options)
|
|
10371
10371
|
.then((response) => {
|
|
10372
10372
|
return luvio.handleSuccessResponse(() => {
|
|
10373
|
-
const snapshot = ingestSuccess$
|
|
10373
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
10374
10374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10375
10375
|
}, () => {
|
|
10376
10376
|
const cache = new StoreKeyMap();
|
|
10377
|
-
getResponseCacheKeys$
|
|
10377
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10378
10378
|
return cache;
|
|
10379
10379
|
});
|
|
10380
10380
|
}, (response) => {
|
|
@@ -10384,61 +10384,17 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10384
10384
|
}
|
|
10385
10385
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10386
10386
|
return function patchSemanticModel(untrustedConfig) {
|
|
10387
|
-
const config = validateAdapterConfig$
|
|
10387
|
+
const config = validateAdapterConfig$b(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10388
10388
|
// Invalid or incomplete config
|
|
10389
10389
|
if (config === null) {
|
|
10390
10390
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10391
10391
|
}
|
|
10392
|
-
return buildNetworkSnapshot$
|
|
10392
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
10393
10393
|
};
|
|
10394
10394
|
};
|
|
10395
10395
|
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10399
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10400
|
-
}
|
|
10401
|
-
const obj_forecasting = obj.forecasting;
|
|
10402
|
-
const path_forecasting = path + '.forecasting';
|
|
10403
|
-
if (typeof obj_forecasting !== 'boolean') {
|
|
10404
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10405
|
-
}
|
|
10406
|
-
})();
|
|
10407
|
-
return v_error === undefined ? null : v_error;
|
|
10408
|
-
}
|
|
10409
|
-
|
|
10410
|
-
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10411
|
-
const v_error = (() => {
|
|
10412
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10413
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10414
|
-
}
|
|
10415
|
-
if (obj.customEndDate !== undefined) {
|
|
10416
|
-
const obj_customEndDate = obj.customEndDate;
|
|
10417
|
-
const path_customEndDate = path + '.customEndDate';
|
|
10418
|
-
if (typeof obj_customEndDate !== 'string') {
|
|
10419
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customEndDate + '" (at "' + path_customEndDate + '")');
|
|
10420
|
-
}
|
|
10421
|
-
}
|
|
10422
|
-
if (obj.customStartDate !== undefined) {
|
|
10423
|
-
const obj_customStartDate = obj.customStartDate;
|
|
10424
|
-
const path_customStartDate = path + '.customStartDate';
|
|
10425
|
-
if (typeof obj_customStartDate !== 'string') {
|
|
10426
|
-
return new TypeError('Expected "string" but received "' + typeof obj_customStartDate + '" (at "' + path_customStartDate + '")');
|
|
10427
|
-
}
|
|
10428
|
-
}
|
|
10429
|
-
if (obj.timeRangeType !== undefined) {
|
|
10430
|
-
const obj_timeRangeType = obj.timeRangeType;
|
|
10431
|
-
const path_timeRangeType = path + '.timeRangeType';
|
|
10432
|
-
if (typeof obj_timeRangeType !== 'string') {
|
|
10433
|
-
return new TypeError('Expected "string" but received "' + typeof obj_timeRangeType + '" (at "' + path_timeRangeType + '")');
|
|
10434
|
-
}
|
|
10435
|
-
}
|
|
10436
|
-
})();
|
|
10437
|
-
return v_error === undefined ? null : v_error;
|
|
10438
|
-
}
|
|
10439
|
-
|
|
10440
|
-
const VERSION$3 = "34ece37408ddd80874097c87b829ae97";
|
|
10441
|
-
function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
10396
|
+
const VERSION$6 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
10397
|
+
function validate$b(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
10442
10398
|
const v_error = (() => {
|
|
10443
10399
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10444
10400
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10448,31 +10404,524 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10448
10404
|
if (typeof obj_apiName !== 'string') {
|
|
10449
10405
|
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10450
10406
|
}
|
|
10451
|
-
if (obj.
|
|
10452
|
-
const
|
|
10453
|
-
const
|
|
10454
|
-
if (typeof
|
|
10455
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10407
|
+
if (obj.definitionType !== undefined) {
|
|
10408
|
+
const obj_definitionType = obj.definitionType;
|
|
10409
|
+
const path_definitionType = path + '.definitionType';
|
|
10410
|
+
if (typeof obj_definitionType !== 'string') {
|
|
10411
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
10456
10412
|
}
|
|
10457
10413
|
}
|
|
10458
|
-
if (obj.
|
|
10459
|
-
const
|
|
10460
|
-
const
|
|
10461
|
-
if (typeof
|
|
10462
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10414
|
+
if (obj.label !== undefined) {
|
|
10415
|
+
const obj_label = obj.label;
|
|
10416
|
+
const path_label = path + '.label';
|
|
10417
|
+
if (typeof obj_label !== 'string') {
|
|
10418
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
10463
10419
|
}
|
|
10464
10420
|
}
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
const path_createdDate = path + '.createdDate';
|
|
10472
|
-
if (typeof obj_createdDate !== 'string') {
|
|
10473
|
-
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
10421
|
+
if (obj.modelApiName !== undefined) {
|
|
10422
|
+
const obj_modelApiName = obj.modelApiName;
|
|
10423
|
+
const path_modelApiName = path + '.modelApiName';
|
|
10424
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
10425
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
10426
|
+
}
|
|
10474
10427
|
}
|
|
10475
|
-
|
|
10428
|
+
})();
|
|
10429
|
+
return v_error === undefined ? null : v_error;
|
|
10430
|
+
}
|
|
10431
|
+
const select$f = function SemanticDependencyOutputRepresentationSelect() {
|
|
10432
|
+
return {
|
|
10433
|
+
kind: 'Fragment',
|
|
10434
|
+
version: VERSION$6,
|
|
10435
|
+
private: [],
|
|
10436
|
+
selections: [
|
|
10437
|
+
{
|
|
10438
|
+
name: 'apiName',
|
|
10439
|
+
kind: 'Scalar'
|
|
10440
|
+
},
|
|
10441
|
+
{
|
|
10442
|
+
name: 'definitionType',
|
|
10443
|
+
kind: 'Scalar',
|
|
10444
|
+
required: false
|
|
10445
|
+
},
|
|
10446
|
+
{
|
|
10447
|
+
name: 'label',
|
|
10448
|
+
kind: 'Scalar',
|
|
10449
|
+
required: false
|
|
10450
|
+
},
|
|
10451
|
+
{
|
|
10452
|
+
name: 'modelApiName',
|
|
10453
|
+
kind: 'Scalar',
|
|
10454
|
+
required: false
|
|
10455
|
+
}
|
|
10456
|
+
]
|
|
10457
|
+
};
|
|
10458
|
+
};
|
|
10459
|
+
function equals$6(existing, incoming) {
|
|
10460
|
+
const existing_apiName = existing.apiName;
|
|
10461
|
+
const incoming_apiName = incoming.apiName;
|
|
10462
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
10463
|
+
return false;
|
|
10464
|
+
}
|
|
10465
|
+
const existing_definitionType = existing.definitionType;
|
|
10466
|
+
const incoming_definitionType = incoming.definitionType;
|
|
10467
|
+
// if at least one of these optionals is defined
|
|
10468
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
10469
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10470
|
+
// not equal
|
|
10471
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
10472
|
+
return false;
|
|
10473
|
+
}
|
|
10474
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
10475
|
+
return false;
|
|
10476
|
+
}
|
|
10477
|
+
}
|
|
10478
|
+
const existing_label = existing.label;
|
|
10479
|
+
const incoming_label = incoming.label;
|
|
10480
|
+
// if at least one of these optionals is defined
|
|
10481
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
10482
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10483
|
+
// not equal
|
|
10484
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
10485
|
+
return false;
|
|
10486
|
+
}
|
|
10487
|
+
if (!(existing_label === incoming_label)) {
|
|
10488
|
+
return false;
|
|
10489
|
+
}
|
|
10490
|
+
}
|
|
10491
|
+
const existing_modelApiName = existing.modelApiName;
|
|
10492
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
10493
|
+
// if at least one of these optionals is defined
|
|
10494
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
10495
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10496
|
+
// not equal
|
|
10497
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
10498
|
+
return false;
|
|
10499
|
+
}
|
|
10500
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
10501
|
+
return false;
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10504
|
+
return true;
|
|
10505
|
+
}
|
|
10506
|
+
|
|
10507
|
+
const VERSION$5 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
10508
|
+
function validate$a(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
10509
|
+
const v_error = (() => {
|
|
10510
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10511
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10512
|
+
}
|
|
10513
|
+
if (obj.definitionApiName !== undefined) {
|
|
10514
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
10515
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
10516
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
10517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
10518
|
+
}
|
|
10519
|
+
}
|
|
10520
|
+
if (obj.dependencies !== undefined) {
|
|
10521
|
+
const obj_dependencies = obj.dependencies;
|
|
10522
|
+
const path_dependencies = path + '.dependencies';
|
|
10523
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
10524
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
10525
|
+
}
|
|
10526
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
10527
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
10528
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
10529
|
+
const referencepath_dependencies_itemValidationError = validate$b(obj_dependencies_item, path_dependencies_item);
|
|
10530
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
10531
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
10532
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10533
|
+
return new TypeError(message);
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
}
|
|
10537
|
+
if (obj.fieldApiName !== undefined) {
|
|
10538
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
10539
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
10540
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
10541
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
10542
|
+
}
|
|
10543
|
+
}
|
|
10544
|
+
})();
|
|
10545
|
+
return v_error === undefined ? null : v_error;
|
|
10546
|
+
}
|
|
10547
|
+
const select$e = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10548
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$f();
|
|
10549
|
+
return {
|
|
10550
|
+
kind: 'Fragment',
|
|
10551
|
+
version: VERSION$5,
|
|
10552
|
+
private: [],
|
|
10553
|
+
selections: [
|
|
10554
|
+
{
|
|
10555
|
+
name: 'definitionApiName',
|
|
10556
|
+
kind: 'Scalar',
|
|
10557
|
+
required: false
|
|
10558
|
+
},
|
|
10559
|
+
{
|
|
10560
|
+
name: 'dependencies',
|
|
10561
|
+
kind: 'Object',
|
|
10562
|
+
plural: true,
|
|
10563
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
10564
|
+
required: false
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
name: 'fieldApiName',
|
|
10568
|
+
kind: 'Scalar',
|
|
10569
|
+
required: false
|
|
10570
|
+
}
|
|
10571
|
+
]
|
|
10572
|
+
};
|
|
10573
|
+
};
|
|
10574
|
+
function equals$5(existing, incoming) {
|
|
10575
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
10576
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
10577
|
+
// if at least one of these optionals is defined
|
|
10578
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
10579
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10580
|
+
// not equal
|
|
10581
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
10582
|
+
return false;
|
|
10583
|
+
}
|
|
10584
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
10585
|
+
return false;
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
10589
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
10590
|
+
// if at least one of these optionals is defined
|
|
10591
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
10592
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10593
|
+
// not equal
|
|
10594
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
10595
|
+
return false;
|
|
10596
|
+
}
|
|
10597
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
10598
|
+
return false;
|
|
10599
|
+
}
|
|
10600
|
+
}
|
|
10601
|
+
const existing_dependencies = existing.dependencies;
|
|
10602
|
+
const incoming_dependencies = incoming.dependencies;
|
|
10603
|
+
// if at least one of these optionals is defined
|
|
10604
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
10605
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10606
|
+
// not equal
|
|
10607
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
10608
|
+
return false;
|
|
10609
|
+
}
|
|
10610
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
10611
|
+
if (!(equals$6(existing_dependencies_item, incoming_dependencies_item))) {
|
|
10612
|
+
return false;
|
|
10613
|
+
}
|
|
10614
|
+
});
|
|
10615
|
+
if (equals_dependencies_items === false) {
|
|
10616
|
+
return false;
|
|
10617
|
+
}
|
|
10618
|
+
}
|
|
10619
|
+
return true;
|
|
10620
|
+
}
|
|
10621
|
+
|
|
10622
|
+
const VERSION$4 = "e710141192798ab103ce7e9b469baad4";
|
|
10623
|
+
function validate$9(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
10624
|
+
const v_error = (() => {
|
|
10625
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10626
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10627
|
+
}
|
|
10628
|
+
if (obj.item !== undefined) {
|
|
10629
|
+
const obj_item = obj.item;
|
|
10630
|
+
const path_item = path + '.item';
|
|
10631
|
+
if (!ArrayIsArray(obj_item)) {
|
|
10632
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
10633
|
+
}
|
|
10634
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
10635
|
+
const obj_item_item = obj_item[i];
|
|
10636
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
10637
|
+
const referencepath_item_itemValidationError = validate$a(obj_item_item, path_item_item);
|
|
10638
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
10639
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
10640
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10641
|
+
return new TypeError(message);
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10644
|
+
}
|
|
10645
|
+
})();
|
|
10646
|
+
return v_error === undefined ? null : v_error;
|
|
10647
|
+
}
|
|
10648
|
+
const RepresentationType$4 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
10649
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
10650
|
+
return input;
|
|
10651
|
+
}
|
|
10652
|
+
const select$d = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10653
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$e();
|
|
10654
|
+
return {
|
|
10655
|
+
kind: 'Fragment',
|
|
10656
|
+
version: VERSION$4,
|
|
10657
|
+
private: [],
|
|
10658
|
+
selections: [
|
|
10659
|
+
{
|
|
10660
|
+
name: 'item',
|
|
10661
|
+
kind: 'Object',
|
|
10662
|
+
plural: true,
|
|
10663
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
10664
|
+
required: false
|
|
10665
|
+
}
|
|
10666
|
+
]
|
|
10667
|
+
};
|
|
10668
|
+
};
|
|
10669
|
+
function equals$4(existing, incoming) {
|
|
10670
|
+
const existing_item = existing.item;
|
|
10671
|
+
const incoming_item = incoming.item;
|
|
10672
|
+
// if at least one of these optionals is defined
|
|
10673
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
10674
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10675
|
+
// not equal
|
|
10676
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
10677
|
+
return false;
|
|
10678
|
+
}
|
|
10679
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
10680
|
+
if (!(equals$5(existing_item_item, incoming_item_item))) {
|
|
10681
|
+
return false;
|
|
10682
|
+
}
|
|
10683
|
+
});
|
|
10684
|
+
if (equals_item_items === false) {
|
|
10685
|
+
return false;
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
return true;
|
|
10689
|
+
}
|
|
10690
|
+
const ingest$4 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10691
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10692
|
+
const validateError = validate$9(input);
|
|
10693
|
+
if (validateError !== null) {
|
|
10694
|
+
throw validateError;
|
|
10695
|
+
}
|
|
10696
|
+
}
|
|
10697
|
+
const key = path.fullPath;
|
|
10698
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10699
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
|
|
10700
|
+
return createLink(key);
|
|
10701
|
+
};
|
|
10702
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
10703
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
10704
|
+
const rootKey = fullPathFactory();
|
|
10705
|
+
rootKeySet.set(rootKey, {
|
|
10706
|
+
namespace: keyPrefix,
|
|
10707
|
+
representationName: RepresentationType$4,
|
|
10708
|
+
mergeable: false
|
|
10709
|
+
});
|
|
10710
|
+
}
|
|
10711
|
+
|
|
10712
|
+
function select$c(luvio, params) {
|
|
10713
|
+
return select$d();
|
|
10714
|
+
}
|
|
10715
|
+
function keyBuilder$g(luvio, params) {
|
|
10716
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10717
|
+
}
|
|
10718
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10719
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
10720
|
+
}
|
|
10721
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
10722
|
+
const { body } = response;
|
|
10723
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10724
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
10725
|
+
const snapshot = luvio.storeLookup({
|
|
10726
|
+
recordId: key,
|
|
10727
|
+
node: select$c(),
|
|
10728
|
+
variables: {},
|
|
10729
|
+
}, snapshotRefresh);
|
|
10730
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10731
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
10732
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
deepFreeze(snapshot.data);
|
|
10736
|
+
return snapshot;
|
|
10737
|
+
}
|
|
10738
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10739
|
+
const key = keyBuilder$g(luvio, params);
|
|
10740
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10741
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
10742
|
+
return errorSnapshot;
|
|
10743
|
+
}
|
|
10744
|
+
function createResourceRequest$a(config) {
|
|
10745
|
+
const headers = {};
|
|
10746
|
+
return {
|
|
10747
|
+
baseUri: '/services/data/v64.0',
|
|
10748
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
10749
|
+
method: 'get',
|
|
10750
|
+
body: null,
|
|
10751
|
+
urlParams: config.urlParams,
|
|
10752
|
+
queryParams: config.queryParams,
|
|
10753
|
+
headers,
|
|
10754
|
+
priority: 'normal',
|
|
10755
|
+
};
|
|
10756
|
+
}
|
|
10757
|
+
|
|
10758
|
+
const adapterName$a = 'getLeafDependenciesByTypes';
|
|
10759
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10760
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10761
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10762
|
+
];
|
|
10763
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10764
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10765
|
+
function keyBuilder$f(luvio, config) {
|
|
10766
|
+
const resourceParams = createResourceParams$a(config);
|
|
10767
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10768
|
+
}
|
|
10769
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10770
|
+
const config = {};
|
|
10771
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10772
|
+
return config;
|
|
10773
|
+
}
|
|
10774
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10775
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
10776
|
+
return null;
|
|
10777
|
+
}
|
|
10778
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10779
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
10780
|
+
}
|
|
10781
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10782
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10783
|
+
return null;
|
|
10784
|
+
}
|
|
10785
|
+
return config;
|
|
10786
|
+
}
|
|
10787
|
+
function adapterFragment$6(luvio, config) {
|
|
10788
|
+
createResourceParams$a(config);
|
|
10789
|
+
return select$c();
|
|
10790
|
+
}
|
|
10791
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10792
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
10793
|
+
config,
|
|
10794
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10795
|
+
});
|
|
10796
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10797
|
+
}
|
|
10798
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10799
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10800
|
+
config,
|
|
10801
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10802
|
+
});
|
|
10803
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10804
|
+
}
|
|
10805
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10806
|
+
const resourceParams = createResourceParams$a(config);
|
|
10807
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10808
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
10809
|
+
.then((response) => {
|
|
10810
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10811
|
+
const cache = new StoreKeyMap();
|
|
10812
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10813
|
+
return cache;
|
|
10814
|
+
});
|
|
10815
|
+
}, (response) => {
|
|
10816
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
10817
|
+
});
|
|
10818
|
+
}
|
|
10819
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10820
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
10821
|
+
}
|
|
10822
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10823
|
+
const { luvio, config } = context;
|
|
10824
|
+
const selector = {
|
|
10825
|
+
recordId: keyBuilder$f(luvio, config),
|
|
10826
|
+
node: adapterFragment$6(luvio, config),
|
|
10827
|
+
variables: {},
|
|
10828
|
+
};
|
|
10829
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
10830
|
+
config,
|
|
10831
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10832
|
+
});
|
|
10833
|
+
return cacheSnapshot;
|
|
10834
|
+
}
|
|
10835
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
10836
|
+
const config = validateAdapterConfig$a(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
10837
|
+
// Invalid or incomplete config
|
|
10838
|
+
if (config === null) {
|
|
10839
|
+
return null;
|
|
10840
|
+
}
|
|
10841
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10842
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
10843
|
+
};
|
|
10844
|
+
|
|
10845
|
+
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10846
|
+
const v_error = (() => {
|
|
10847
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10848
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10849
|
+
}
|
|
10850
|
+
const obj_forecasting = obj.forecasting;
|
|
10851
|
+
const path_forecasting = path + '.forecasting';
|
|
10852
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
10853
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10854
|
+
}
|
|
10855
|
+
})();
|
|
10856
|
+
return v_error === undefined ? null : v_error;
|
|
10857
|
+
}
|
|
10858
|
+
|
|
10859
|
+
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10860
|
+
const v_error = (() => {
|
|
10861
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10862
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10863
|
+
}
|
|
10864
|
+
if (obj.customEndDate !== undefined) {
|
|
10865
|
+
const obj_customEndDate = obj.customEndDate;
|
|
10866
|
+
const path_customEndDate = path + '.customEndDate';
|
|
10867
|
+
if (typeof obj_customEndDate !== 'string') {
|
|
10868
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customEndDate + '" (at "' + path_customEndDate + '")');
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
if (obj.customStartDate !== undefined) {
|
|
10872
|
+
const obj_customStartDate = obj.customStartDate;
|
|
10873
|
+
const path_customStartDate = path + '.customStartDate';
|
|
10874
|
+
if (typeof obj_customStartDate !== 'string') {
|
|
10875
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customStartDate + '" (at "' + path_customStartDate + '")');
|
|
10876
|
+
}
|
|
10877
|
+
}
|
|
10878
|
+
if (obj.timeRangeType !== undefined) {
|
|
10879
|
+
const obj_timeRangeType = obj.timeRangeType;
|
|
10880
|
+
const path_timeRangeType = path + '.timeRangeType';
|
|
10881
|
+
if (typeof obj_timeRangeType !== 'string') {
|
|
10882
|
+
return new TypeError('Expected "string" but received "' + typeof obj_timeRangeType + '" (at "' + path_timeRangeType + '")');
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10885
|
+
})();
|
|
10886
|
+
return v_error === undefined ? null : v_error;
|
|
10887
|
+
}
|
|
10888
|
+
|
|
10889
|
+
const VERSION$3 = "34ece37408ddd80874097c87b829ae97";
|
|
10890
|
+
function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
10891
|
+
const v_error = (() => {
|
|
10892
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10893
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10894
|
+
}
|
|
10895
|
+
const obj_apiName = obj.apiName;
|
|
10896
|
+
const path_apiName = path + '.apiName';
|
|
10897
|
+
if (typeof obj_apiName !== 'string') {
|
|
10898
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10899
|
+
}
|
|
10900
|
+
if (obj.baseModelApiName !== undefined) {
|
|
10901
|
+
const obj_baseModelApiName = obj.baseModelApiName;
|
|
10902
|
+
const path_baseModelApiName = path + '.baseModelApiName';
|
|
10903
|
+
if (typeof obj_baseModelApiName !== 'string') {
|
|
10904
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseModelApiName + '" (at "' + path_baseModelApiName + '")');
|
|
10905
|
+
}
|
|
10906
|
+
}
|
|
10907
|
+
if (obj.cacheKey !== undefined) {
|
|
10908
|
+
const obj_cacheKey = obj.cacheKey;
|
|
10909
|
+
const path_cacheKey = path + '.cacheKey';
|
|
10910
|
+
if (typeof obj_cacheKey !== 'string') {
|
|
10911
|
+
return new TypeError('Expected "string" but received "' + typeof obj_cacheKey + '" (at "' + path_cacheKey + '")');
|
|
10912
|
+
}
|
|
10913
|
+
}
|
|
10914
|
+
const obj_createdBy = obj.createdBy;
|
|
10915
|
+
const path_createdBy = path + '.createdBy';
|
|
10916
|
+
if (typeof obj_createdBy !== 'string') {
|
|
10917
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdBy + '" (at "' + path_createdBy + '")');
|
|
10918
|
+
}
|
|
10919
|
+
const obj_createdDate = obj.createdDate;
|
|
10920
|
+
const path_createdDate = path + '.createdDate';
|
|
10921
|
+
if (typeof obj_createdDate !== 'string') {
|
|
10922
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
10923
|
+
}
|
|
10924
|
+
if (obj.description !== undefined) {
|
|
10476
10925
|
const obj_description = obj.description;
|
|
10477
10926
|
const path_description = path + '.description';
|
|
10478
10927
|
if (typeof obj_description !== 'string') {
|
|
@@ -10495,7 +10944,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10495
10944
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
10496
10945
|
const obj_filters_item = obj_filters[i];
|
|
10497
10946
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
10498
|
-
const referencepath_filters_itemValidationError = validate$
|
|
10947
|
+
const referencepath_filters_itemValidationError = validate$Z(obj_filters_item, path_filters_item);
|
|
10499
10948
|
if (referencepath_filters_itemValidationError !== null) {
|
|
10500
10949
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
10501
10950
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10549,7 +10998,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10549
10998
|
if (obj.semanticMetric !== undefined) {
|
|
10550
10999
|
const obj_semanticMetric = obj.semanticMetric;
|
|
10551
11000
|
const path_semanticMetric = path + '.semanticMetric';
|
|
10552
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
11001
|
+
const referencepath_semanticMetricValidationError = validate$V(obj_semanticMetric, path_semanticMetric);
|
|
10553
11002
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
10554
11003
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
10555
11004
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10915,14 +11364,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
10915
11364
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10916
11365
|
];
|
|
10917
11366
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10918
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
11367
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10919
11368
|
function keyBuilder$c(luvio, config) {
|
|
10920
11369
|
const resourceParams = createResourceParams$9(config);
|
|
10921
11370
|
return keyBuilder$d(luvio, resourceParams);
|
|
10922
11371
|
}
|
|
10923
11372
|
function typeCheckConfig$9(untrustedConfig) {
|
|
10924
11373
|
const config = {};
|
|
10925
|
-
typeCheckConfig$
|
|
11374
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10926
11375
|
return config;
|
|
10927
11376
|
}
|
|
10928
11377
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -10971,7 +11420,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
10971
11420
|
});
|
|
10972
11421
|
}
|
|
10973
11422
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10974
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11423
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
10975
11424
|
}
|
|
10976
11425
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10977
11426
|
const { luvio, config } = context;
|
|
@@ -10997,18 +11446,18 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
10997
11446
|
};
|
|
10998
11447
|
|
|
10999
11448
|
function select$7(luvio, params) {
|
|
11000
|
-
return select$
|
|
11449
|
+
return select$D();
|
|
11001
11450
|
}
|
|
11002
11451
|
function keyBuilder$b(luvio, params) {
|
|
11003
11452
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11004
11453
|
}
|
|
11005
11454
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11006
|
-
getTypeCacheKeys$
|
|
11455
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11007
11456
|
}
|
|
11008
11457
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11009
11458
|
const { body } = response;
|
|
11010
11459
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
11011
|
-
luvio.storeIngest(key, ingest$
|
|
11460
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
11012
11461
|
const snapshot = luvio.storeLookup({
|
|
11013
11462
|
recordId: key,
|
|
11014
11463
|
node: select$7(),
|
|
@@ -11047,14 +11496,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
11047
11496
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11048
11497
|
];
|
|
11049
11498
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11050
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
11499
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11051
11500
|
function keyBuilder$a(luvio, config) {
|
|
11052
11501
|
const resourceParams = createResourceParams$8(config);
|
|
11053
11502
|
return keyBuilder$b(luvio, resourceParams);
|
|
11054
11503
|
}
|
|
11055
11504
|
function typeCheckConfig$8(untrustedConfig) {
|
|
11056
11505
|
const config = {};
|
|
11057
|
-
typeCheckConfig$
|
|
11506
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11058
11507
|
return config;
|
|
11059
11508
|
}
|
|
11060
11509
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -11103,7 +11552,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
11103
11552
|
});
|
|
11104
11553
|
}
|
|
11105
11554
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11106
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11555
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11107
11556
|
}
|
|
11108
11557
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11109
11558
|
const { luvio, config } = context;
|
|
@@ -11129,20 +11578,20 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11129
11578
|
};
|
|
11130
11579
|
|
|
11131
11580
|
function select$6(luvio, params) {
|
|
11132
|
-
return select$
|
|
11581
|
+
return select$E();
|
|
11133
11582
|
}
|
|
11134
11583
|
function keyBuilder$9(luvio, params) {
|
|
11135
|
-
return keyBuilder$
|
|
11584
|
+
return keyBuilder$x(luvio, {
|
|
11136
11585
|
name: params.urlParams.metricNameOrId
|
|
11137
11586
|
});
|
|
11138
11587
|
}
|
|
11139
11588
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11140
|
-
getTypeCacheKeys$
|
|
11589
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
11141
11590
|
}
|
|
11142
11591
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11143
11592
|
const { body } = response;
|
|
11144
11593
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
11145
|
-
luvio.storeIngest(key, ingest$
|
|
11594
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
11146
11595
|
const snapshot = luvio.storeLookup({
|
|
11147
11596
|
recordId: key,
|
|
11148
11597
|
node: select$6(),
|
|
@@ -11182,14 +11631,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
11182
11631
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11183
11632
|
];
|
|
11184
11633
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11185
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11634
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
11186
11635
|
function keyBuilder$8(luvio, config) {
|
|
11187
11636
|
const resourceParams = createResourceParams$7(config);
|
|
11188
11637
|
return keyBuilder$9(luvio, resourceParams);
|
|
11189
11638
|
}
|
|
11190
11639
|
function typeCheckConfig$7(untrustedConfig) {
|
|
11191
11640
|
const config = {};
|
|
11192
|
-
typeCheckConfig$
|
|
11641
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11193
11642
|
return config;
|
|
11194
11643
|
}
|
|
11195
11644
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -11238,7 +11687,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11238
11687
|
});
|
|
11239
11688
|
}
|
|
11240
11689
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11241
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11690
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11242
11691
|
}
|
|
11243
11692
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11244
11693
|
const { luvio, config } = context;
|
|
@@ -11424,14 +11873,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11424
11873
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11425
11874
|
];
|
|
11426
11875
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11427
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11876
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11428
11877
|
function keyBuilder$6(luvio, config) {
|
|
11429
11878
|
const resourceParams = createResourceParams$6(config);
|
|
11430
11879
|
return keyBuilder$7(luvio, resourceParams);
|
|
11431
11880
|
}
|
|
11432
11881
|
function typeCheckConfig$6(untrustedConfig) {
|
|
11433
11882
|
const config = {};
|
|
11434
|
-
typeCheckConfig$
|
|
11883
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11435
11884
|
return config;
|
|
11436
11885
|
}
|
|
11437
11886
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11480,7 +11929,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11480
11929
|
});
|
|
11481
11930
|
}
|
|
11482
11931
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11483
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11932
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11484
11933
|
}
|
|
11485
11934
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11486
11935
|
const { luvio, config } = context;
|
|
@@ -11669,16 +12118,16 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11669
12118
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11670
12119
|
];
|
|
11671
12120
|
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11672
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
12121
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11673
12122
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11674
12123
|
const config = {};
|
|
11675
|
-
typeCheckConfig$
|
|
12124
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11676
12125
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11677
12126
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11678
12127
|
const untrustedConfig_filters_array = [];
|
|
11679
12128
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11680
12129
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11681
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
12130
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$P(untrustedConfig_filters_item);
|
|
11682
12131
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11683
12132
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11684
12133
|
}
|
|
@@ -11776,10 +12225,10 @@ const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11776
12225
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11777
12226
|
];
|
|
11778
12227
|
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11779
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
12228
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11780
12229
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11781
12230
|
const config = {};
|
|
11782
|
-
typeCheckConfig$
|
|
12231
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11783
12232
|
return config;
|
|
11784
12233
|
}
|
|
11785
12234
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11878,14 +12327,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11878
12327
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11879
12328
|
];
|
|
11880
12329
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11881
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12330
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11882
12331
|
function keyBuilder$3(luvio, config) {
|
|
11883
12332
|
const resourceParams = createResourceParams$3(config);
|
|
11884
12333
|
return keyBuilder$4(luvio, resourceParams);
|
|
11885
12334
|
}
|
|
11886
12335
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11887
12336
|
const config = {};
|
|
11888
|
-
typeCheckConfig$
|
|
12337
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11889
12338
|
return config;
|
|
11890
12339
|
}
|
|
11891
12340
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -11934,7 +12383,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11934
12383
|
});
|
|
11935
12384
|
}
|
|
11936
12385
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11937
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12386
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11938
12387
|
}
|
|
11939
12388
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11940
12389
|
const { luvio, config } = context;
|
|
@@ -11996,10 +12445,10 @@ const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
|
11996
12445
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11997
12446
|
];
|
|
11998
12447
|
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
11999
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12448
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12000
12449
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12001
12450
|
const config = {};
|
|
12002
|
-
typeCheckConfig$
|
|
12451
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12003
12452
|
return config;
|
|
12004
12453
|
}
|
|
12005
12454
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -12089,10 +12538,10 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
12089
12538
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12090
12539
|
];
|
|
12091
12540
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12092
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12541
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12093
12542
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12094
12543
|
const config = {};
|
|
12095
|
-
typeCheckConfig$
|
|
12544
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12096
12545
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12097
12546
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12098
12547
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -12153,7 +12602,7 @@ function select(luvio, params) {
|
|
|
12153
12602
|
return select$5();
|
|
12154
12603
|
}
|
|
12155
12604
|
function keyBuilder$1(luvio, params) {
|
|
12156
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12605
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12157
12606
|
}
|
|
12158
12607
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12159
12608
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -12189,7 +12638,7 @@ function createResourceRequest(config) {
|
|
|
12189
12638
|
method: 'get',
|
|
12190
12639
|
body: null,
|
|
12191
12640
|
urlParams: config.urlParams,
|
|
12192
|
-
queryParams:
|
|
12641
|
+
queryParams: config.queryParams,
|
|
12193
12642
|
headers,
|
|
12194
12643
|
priority: 'normal',
|
|
12195
12644
|
};
|
|
@@ -12198,16 +12647,18 @@ function createResourceRequest(config) {
|
|
|
12198
12647
|
const adapterName = 'getSemanticSubMetricsById';
|
|
12199
12648
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
12200
12649
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12650
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12651
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12201
12652
|
];
|
|
12202
12653
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12203
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12654
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12204
12655
|
function keyBuilder(luvio, config) {
|
|
12205
12656
|
const resourceParams = createResourceParams(config);
|
|
12206
12657
|
return keyBuilder$1(luvio, resourceParams);
|
|
12207
12658
|
}
|
|
12208
12659
|
function typeCheckConfig(untrustedConfig) {
|
|
12209
12660
|
const config = {};
|
|
12210
|
-
typeCheckConfig$
|
|
12661
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12211
12662
|
return config;
|
|
12212
12663
|
}
|
|
12213
12664
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12256,7 +12707,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
12256
12707
|
});
|
|
12257
12708
|
}
|
|
12258
12709
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12259
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12710
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
12260
12711
|
}
|
|
12261
12712
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12262
12713
|
const { luvio, config } = context;
|
|
@@ -12281,4 +12732,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12281
12732
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12282
12733
|
};
|
|
12283
12734
|
|
|
12284
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12735
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|