@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev6 → 1.332.0-dev8
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 +1245 -665
- 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/dist/es/es2018/types/src/generated/resources/postSsotSemanticModelsParametersByModelApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/putSsotSemanticModelsParametersByModelApiNameOrIdAndParameterApiNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/SemanticParameterInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SemanticParameterListValueInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SemanticParameterListValueOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SemanticParameterOutputRepresentation.d.ts +5 -1
- package/package.json +3 -3
- package/sfdc/index.js +1190 -599
- package/src/raml/api.raml +71 -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$x = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
+
function validate$11(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$Z(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$L = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$x,
|
|
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$x(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$w = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
+
function validate$10(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$Y(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$11(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$Y(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$K = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$L();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$w,
|
|
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$w(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$x(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$v = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
|
+
function validate$$(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$X(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const select$
|
|
274
|
+
const select$J = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
277
|
+
version: VERSION$v,
|
|
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$v(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$u = "a50848c632bb205d5e910bb726d9219e";
|
|
342
|
+
function validate$_(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$W(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$10(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$W(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$10(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$W(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$I = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$u,
|
|
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$u(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$w(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$w(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$t = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
|
+
function validate$Z(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$V(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$H = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$t,
|
|
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$t(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$s = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
|
+
function validate$Y(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$U(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$_(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$U(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$Z(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$U(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$10(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$U(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$G = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$I();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$H();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
574
|
+
version: VERSION$s,
|
|
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$s(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$u(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$t(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$w(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$r = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
|
+
function validate$X(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$T(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$10(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$T(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$$(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$T(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$Y(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$T(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$10(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$T(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$10(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$T(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$F = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$G();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
896
|
+
version: VERSION$r,
|
|
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$r(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$w(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$v(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$s(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$w(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$w(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$X(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$r, RepresentationType$h, equals$r);
|
|
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$q = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
|
+
function validate$W(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$S(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$E = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1304
|
+
version: VERSION$q,
|
|
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$F()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
1316
1316
|
};
|
|
1317
|
-
function equals$
|
|
1317
|
+
function equals$q(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$W(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$q, RepresentationType$g, equals$q);
|
|
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$D(luvio, params) {
|
|
1367
|
+
return select$E();
|
|
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$D(),
|
|
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/v63.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$D();
|
|
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$p = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1501
|
+
function validate$V(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$R(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1518
1518
|
})();
|
|
1519
1519
|
return v_error === undefined ? null : v_error;
|
|
1520
1520
|
}
|
|
1521
|
-
const select$
|
|
1521
|
+
const select$C = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1522
|
return {
|
|
1523
1523
|
kind: 'Fragment',
|
|
1524
|
-
version: VERSION$
|
|
1524
|
+
version: VERSION$p,
|
|
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$p(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$o = "c9079354cd8127a37c0c13ea6686383c";
|
|
1562
|
+
function validate$U(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$Q(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$V(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$Q(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$B = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$C();
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$o,
|
|
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$o(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$p(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$n = "198423ec58354256cc7ea6f4661ef669";
|
|
2181
|
+
function validate$T(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$P(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$U(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$P(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$A = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$B();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$n,
|
|
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$n(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$o(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$T(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$n, RepresentationType$f, equals$n);
|
|
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$z(luvio, params) {
|
|
2437
|
+
return select$A();
|
|
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$z(),
|
|
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/v63.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$z();
|
|
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$S(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$O(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
2589
2589
|
return v_error === undefined ? null : v_error;
|
|
2590
2590
|
}
|
|
2591
2591
|
|
|
2592
|
-
function validate$
|
|
2592
|
+
function validate$R(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$N(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
2619
2619
|
return v_error === undefined ? null : v_error;
|
|
2620
2620
|
}
|
|
2621
2621
|
|
|
2622
|
-
function validate$
|
|
2622
|
+
function validate$Q(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$M(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$R(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$M(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2729
2729
|
return v_error === undefined ? null : v_error;
|
|
2730
2730
|
}
|
|
2731
2731
|
|
|
2732
|
-
function validate$
|
|
2732
|
+
function validate$P(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$L(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$R(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$L(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2874
2874
|
return v_error === undefined ? null : v_error;
|
|
2875
2875
|
}
|
|
2876
2876
|
|
|
2877
|
-
function validate$
|
|
2877
|
+
function validate$O(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$K(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
2953
2953
|
return v_error === undefined ? null : v_error;
|
|
2954
2954
|
}
|
|
2955
2955
|
|
|
2956
|
-
function validate$
|
|
2956
|
+
function validate$N(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$J(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
3060
3060
|
return v_error === undefined ? null : v_error;
|
|
3061
3061
|
}
|
|
3062
3062
|
|
|
3063
|
-
function validate$
|
|
3063
|
+
function validate$M(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$I(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$R(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$I(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$O(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$I(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$N(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$I(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3176
3176
|
return v_error === undefined ? null : v_error;
|
|
3177
3177
|
}
|
|
3178
3178
|
|
|
3179
|
-
function validate$
|
|
3179
|
+
function validate$L(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$H(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
3188
3188
|
return v_error === undefined ? null : v_error;
|
|
3189
3189
|
}
|
|
3190
3190
|
|
|
3191
|
-
function validate$
|
|
3191
|
+
function validate$K(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$G(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
3218
3218
|
return v_error === undefined ? null : v_error;
|
|
3219
3219
|
}
|
|
3220
3220
|
|
|
3221
|
-
function validate$
|
|
3221
|
+
function validate$J(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$F(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$K(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$F(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3251
3251
|
return v_error === undefined ? null : v_error;
|
|
3252
3252
|
}
|
|
3253
3253
|
|
|
3254
|
-
function validate$
|
|
3254
|
+
function validate$I(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$E(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$L(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$E(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$J(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$E(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3280
3280
|
return v_error === undefined ? null : v_error;
|
|
3281
3281
|
}
|
|
3282
3282
|
|
|
3283
|
-
function validate$
|
|
3283
|
+
function validate$H(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$D(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
3303
3303
|
return v_error === undefined ? null : v_error;
|
|
3304
3304
|
}
|
|
3305
3305
|
|
|
3306
|
-
function validate$
|
|
3306
|
+
function validate$G(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$C(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$H(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$C(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3329
3329
|
return v_error === undefined ? null : v_error;
|
|
3330
3330
|
}
|
|
3331
3331
|
|
|
3332
|
-
function validate$
|
|
3332
|
+
function validate$F(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$B(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$I(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$B(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$G(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$B(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3386
3386
|
return v_error === undefined ? null : v_error;
|
|
3387
3387
|
}
|
|
3388
3388
|
|
|
3389
|
-
function validate$
|
|
3389
|
+
function validate$E(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$A(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
3430
3430
|
return v_error === undefined ? null : v_error;
|
|
3431
3431
|
}
|
|
3432
3432
|
|
|
3433
|
-
function validate$
|
|
3433
|
+
function validate$D(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$z(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$E(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$z(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3519
3519
|
return v_error === undefined ? null : v_error;
|
|
3520
3520
|
}
|
|
3521
3521
|
|
|
3522
|
-
function validate$
|
|
3522
|
+
function validate$C(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$y(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$H(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$y(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$O(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$y(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$N(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$y(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3593
3593
|
return v_error === undefined ? null : v_error;
|
|
3594
3594
|
}
|
|
3595
3595
|
|
|
3596
|
-
function validate$
|
|
3596
|
+
function validate$B(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$x(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$M(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$x(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$C(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$x(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3657
3657
|
return v_error === undefined ? null : v_error;
|
|
3658
3658
|
}
|
|
3659
3659
|
|
|
3660
|
-
function validate$
|
|
3660
|
+
function validate$A(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$w(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$R(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$w(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$M(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$w(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$D(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$w(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$B(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$w(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3769
3769
|
return v_error === undefined ? null : v_error;
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
|
-
function validate$
|
|
3772
|
+
function validate$z(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$v(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$G(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$v(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$G(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$v(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3798
3798
|
return v_error === undefined ? null : v_error;
|
|
3799
3799
|
}
|
|
3800
3800
|
|
|
3801
|
-
function validate$
|
|
3801
|
+
function validate$y(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$u(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
3821
3821
|
return v_error === undefined ? null : v_error;
|
|
3822
3822
|
}
|
|
3823
3823
|
|
|
3824
|
-
function validate$
|
|
3824
|
+
function validate$x(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$t(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$z(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$t(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$y(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$t(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$G(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$t(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3895
3895
|
return v_error === undefined ? null : v_error;
|
|
3896
3896
|
}
|
|
3897
3897
|
|
|
3898
|
-
function validate$
|
|
3898
|
+
function validate$w(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$s(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$G(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$s(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$R(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$s(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$x(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$s(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$G(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$s(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$G(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,11 +4024,25 @@ function validate$s(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4024
4024
|
return v_error === undefined ? null : v_error;
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
|
-
function validate$
|
|
4027
|
+
function validate$v(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 + '")');
|
|
4031
4031
|
}
|
|
4032
|
+
if (obj.allowedValues !== undefined) {
|
|
4033
|
+
const obj_allowedValues = obj.allowedValues;
|
|
4034
|
+
const path_allowedValues = path + '.allowedValues';
|
|
4035
|
+
if (!ArrayIsArray(obj_allowedValues)) {
|
|
4036
|
+
return new TypeError('Expected "array" but received "' + typeof obj_allowedValues + '" (at "' + path_allowedValues + '")');
|
|
4037
|
+
}
|
|
4038
|
+
for (let i = 0; i < obj_allowedValues.length; i++) {
|
|
4039
|
+
const obj_allowedValues_item = obj_allowedValues[i];
|
|
4040
|
+
const path_allowedValues_item = path_allowedValues + '[' + i + ']';
|
|
4041
|
+
if (typeof obj_allowedValues_item !== 'object' || ArrayIsArray(obj_allowedValues_item) || obj_allowedValues_item === null) {
|
|
4042
|
+
return new TypeError('Expected "object" but received "' + typeof obj_allowedValues_item + '" (at "' + path_allowedValues_item + '")');
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4032
4046
|
if (obj.apiName !== undefined) {
|
|
4033
4047
|
const obj_apiName = obj.apiName;
|
|
4034
4048
|
const path_apiName = path + '.apiName';
|
|
@@ -4110,8 +4124,8 @@ function validate$r(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4110
4124
|
return v_error === undefined ? null : v_error;
|
|
4111
4125
|
}
|
|
4112
4126
|
|
|
4113
|
-
const VERSION$
|
|
4114
|
-
function validate$
|
|
4127
|
+
const VERSION$m = "8137018d7bcc1592081ebddf74ddd42a";
|
|
4128
|
+
function validate$u(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4115
4129
|
const v_error = (() => {
|
|
4116
4130
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4117
4131
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4196,7 +4210,7 @@ function validate$q(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4196
4210
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4197
4211
|
const obj_filters_item = obj_filters[i];
|
|
4198
4212
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4199
|
-
const referencepath_filters_itemValidationError = validate
|
|
4213
|
+
const referencepath_filters_itemValidationError = validate$$(obj_filters_item, path_filters_item);
|
|
4200
4214
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4201
4215
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4202
4216
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4268,24 +4282,24 @@ function validate$q(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4268
4282
|
})();
|
|
4269
4283
|
return v_error === undefined ? null : v_error;
|
|
4270
4284
|
}
|
|
4271
|
-
const RepresentationType$
|
|
4272
|
-
function keyBuilder$
|
|
4273
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4285
|
+
const RepresentationType$e = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4286
|
+
function keyBuilder$s(luvio, config) {
|
|
4287
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4274
4288
|
}
|
|
4275
4289
|
function keyBuilderFromType$a(luvio, object) {
|
|
4276
4290
|
const keyParams = {
|
|
4277
4291
|
name: object.id
|
|
4278
4292
|
};
|
|
4279
|
-
return keyBuilder$
|
|
4293
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4280
4294
|
}
|
|
4281
|
-
function normalize$
|
|
4295
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4282
4296
|
return input;
|
|
4283
4297
|
}
|
|
4284
|
-
const select$
|
|
4285
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4298
|
+
const select$y = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4299
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
4286
4300
|
return {
|
|
4287
4301
|
kind: 'Fragment',
|
|
4288
|
-
version: VERSION$
|
|
4302
|
+
version: VERSION$m,
|
|
4289
4303
|
private: [],
|
|
4290
4304
|
selections: [
|
|
4291
4305
|
{
|
|
@@ -4394,7 +4408,7 @@ const select$t = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4394
4408
|
]
|
|
4395
4409
|
};
|
|
4396
4410
|
};
|
|
4397
|
-
function equals$
|
|
4411
|
+
function equals$m(existing, incoming) {
|
|
4398
4412
|
const existing_isVisible = existing.isVisible;
|
|
4399
4413
|
const incoming_isVisible = incoming.isVisible;
|
|
4400
4414
|
// if at least one of these optionals is defined
|
|
@@ -4633,7 +4647,7 @@ function equals$i(existing, incoming) {
|
|
|
4633
4647
|
return false;
|
|
4634
4648
|
}
|
|
4635
4649
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4636
|
-
if (!(equals$
|
|
4650
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
4637
4651
|
return false;
|
|
4638
4652
|
}
|
|
4639
4653
|
});
|
|
@@ -4643,30 +4657,30 @@ function equals$i(existing, incoming) {
|
|
|
4643
4657
|
}
|
|
4644
4658
|
return true;
|
|
4645
4659
|
}
|
|
4646
|
-
const ingest$
|
|
4660
|
+
const ingest$e = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4647
4661
|
if (process.env.NODE_ENV !== 'production') {
|
|
4648
|
-
const validateError = validate$
|
|
4662
|
+
const validateError = validate$u(input);
|
|
4649
4663
|
if (validateError !== null) {
|
|
4650
4664
|
throw validateError;
|
|
4651
4665
|
}
|
|
4652
4666
|
}
|
|
4653
4667
|
const key = keyBuilderFromType$a(luvio, input);
|
|
4654
4668
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4655
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4669
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$m, RepresentationType$e, equals$m);
|
|
4656
4670
|
return createLink(key);
|
|
4657
4671
|
};
|
|
4658
|
-
function getTypeCacheKeys$
|
|
4672
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4659
4673
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4660
4674
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
4661
4675
|
rootKeySet.set(rootKey, {
|
|
4662
4676
|
namespace: keyPrefix,
|
|
4663
|
-
representationName: RepresentationType$
|
|
4677
|
+
representationName: RepresentationType$e,
|
|
4664
4678
|
mergeable: false
|
|
4665
4679
|
});
|
|
4666
4680
|
}
|
|
4667
4681
|
|
|
4668
|
-
const VERSION$
|
|
4669
|
-
function validate$
|
|
4682
|
+
const VERSION$l = "4dc83d3583b0937db8808447abe03505";
|
|
4683
|
+
function validate$t(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4670
4684
|
const v_error = (() => {
|
|
4671
4685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4672
4686
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4765,7 +4779,7 @@ function validate$p(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4765
4779
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4766
4780
|
const obj_filters_item = obj_filters[i];
|
|
4767
4781
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4768
|
-
const referencepath_filters_itemValidationError = validate
|
|
4782
|
+
const referencepath_filters_itemValidationError = validate$$(obj_filters_item, path_filters_item);
|
|
4769
4783
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4770
4784
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4771
4785
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4865,24 +4879,24 @@ function validate$p(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4865
4879
|
})();
|
|
4866
4880
|
return v_error === undefined ? null : v_error;
|
|
4867
4881
|
}
|
|
4868
|
-
const RepresentationType$
|
|
4869
|
-
function keyBuilder$
|
|
4870
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4882
|
+
const RepresentationType$d = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4883
|
+
function keyBuilder$r(luvio, config) {
|
|
4884
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4871
4885
|
}
|
|
4872
4886
|
function keyBuilderFromType$9(luvio, object) {
|
|
4873
4887
|
const keyParams = {
|
|
4874
4888
|
name: object.id
|
|
4875
4889
|
};
|
|
4876
|
-
return keyBuilder$
|
|
4890
|
+
return keyBuilder$r(luvio, keyParams);
|
|
4877
4891
|
}
|
|
4878
|
-
function normalize$
|
|
4892
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4879
4893
|
return input;
|
|
4880
4894
|
}
|
|
4881
|
-
const select$
|
|
4882
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4895
|
+
const select$x = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4896
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
4883
4897
|
return {
|
|
4884
4898
|
kind: 'Fragment',
|
|
4885
|
-
version: VERSION$
|
|
4899
|
+
version: VERSION$l,
|
|
4886
4900
|
private: [],
|
|
4887
4901
|
selections: [
|
|
4888
4902
|
{
|
|
@@ -5021,7 +5035,7 @@ const select$s = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
5021
5035
|
]
|
|
5022
5036
|
};
|
|
5023
5037
|
};
|
|
5024
|
-
function equals$
|
|
5038
|
+
function equals$l(existing, incoming) {
|
|
5025
5039
|
const existing_isAggregatable = existing.isAggregatable;
|
|
5026
5040
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
5027
5041
|
// if at least one of these optionals is defined
|
|
@@ -5338,7 +5352,7 @@ function equals$h(existing, incoming) {
|
|
|
5338
5352
|
return false;
|
|
5339
5353
|
}
|
|
5340
5354
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5341
|
-
if (!(equals$
|
|
5355
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
5342
5356
|
return false;
|
|
5343
5357
|
}
|
|
5344
5358
|
});
|
|
@@ -5348,29 +5362,29 @@ function equals$h(existing, incoming) {
|
|
|
5348
5362
|
}
|
|
5349
5363
|
return true;
|
|
5350
5364
|
}
|
|
5351
|
-
const ingest$
|
|
5365
|
+
const ingest$d = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5352
5366
|
if (process.env.NODE_ENV !== 'production') {
|
|
5353
|
-
const validateError = validate$
|
|
5367
|
+
const validateError = validate$t(input);
|
|
5354
5368
|
if (validateError !== null) {
|
|
5355
5369
|
throw validateError;
|
|
5356
5370
|
}
|
|
5357
5371
|
}
|
|
5358
5372
|
const key = keyBuilderFromType$9(luvio, input);
|
|
5359
5373
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5360
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5374
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$l, RepresentationType$d, equals$l);
|
|
5361
5375
|
return createLink(key);
|
|
5362
5376
|
};
|
|
5363
|
-
function getTypeCacheKeys$
|
|
5377
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5364
5378
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5365
5379
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
5366
5380
|
rootKeySet.set(rootKey, {
|
|
5367
5381
|
namespace: keyPrefix,
|
|
5368
|
-
representationName: RepresentationType$
|
|
5382
|
+
representationName: RepresentationType$d,
|
|
5369
5383
|
mergeable: false
|
|
5370
5384
|
});
|
|
5371
5385
|
}
|
|
5372
5386
|
|
|
5373
|
-
function validate$
|
|
5387
|
+
function validate$s(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
5374
5388
|
const v_error = (() => {
|
|
5375
5389
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5376
5390
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5511,7 +5525,7 @@ function validate$o(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
5511
5525
|
return v_error === undefined ? null : v_error;
|
|
5512
5526
|
}
|
|
5513
5527
|
|
|
5514
|
-
function validate$
|
|
5528
|
+
function validate$r(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
5515
5529
|
const v_error = (() => {
|
|
5516
5530
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5517
5531
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5687,8 +5701,8 @@ function validate$n(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5687
5701
|
return v_error === undefined ? null : v_error;
|
|
5688
5702
|
}
|
|
5689
5703
|
|
|
5690
|
-
const VERSION$
|
|
5691
|
-
function validate$
|
|
5704
|
+
const VERSION$k = "4f111b93807b811179eb310384efdc35";
|
|
5705
|
+
function validate$q(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5692
5706
|
const v_error = (() => {
|
|
5693
5707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5694
5708
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5759,7 +5773,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5759
5773
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5760
5774
|
const obj_filters_item = obj_filters[i];
|
|
5761
5775
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5762
|
-
const referencepath_filters_itemValidationError = validate
|
|
5776
|
+
const referencepath_filters_itemValidationError = validate$$(obj_filters_item, path_filters_item);
|
|
5763
5777
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5764
5778
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5765
5779
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5809,7 +5823,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5809
5823
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
5810
5824
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
5811
5825
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
5812
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
5826
|
+
const referencepath_semanticDimensions_itemValidationError = validate$s(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
5813
5827
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
5814
5828
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
5815
5829
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5833,7 +5847,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5833
5847
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
5834
5848
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
5835
5849
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
5836
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
5850
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$r(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
5837
5851
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
5838
5852
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
5839
5853
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5858,57 +5872,57 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5858
5872
|
})();
|
|
5859
5873
|
return v_error === undefined ? null : v_error;
|
|
5860
5874
|
}
|
|
5861
|
-
const RepresentationType$
|
|
5862
|
-
function keyBuilder$
|
|
5863
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5875
|
+
const RepresentationType$c = 'SemanticDataObjectOutputRepresentation';
|
|
5876
|
+
function keyBuilder$q(luvio, config) {
|
|
5877
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5864
5878
|
}
|
|
5865
5879
|
function keyBuilderFromType$8(luvio, object) {
|
|
5866
5880
|
const keyParams = {
|
|
5867
5881
|
name: object.id
|
|
5868
5882
|
};
|
|
5869
|
-
return keyBuilder$
|
|
5883
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5870
5884
|
}
|
|
5871
|
-
function normalize$
|
|
5885
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5872
5886
|
return input;
|
|
5873
5887
|
}
|
|
5874
|
-
const select$
|
|
5888
|
+
const select$w = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5875
5889
|
return {
|
|
5876
5890
|
kind: 'Fragment',
|
|
5877
|
-
version: VERSION$
|
|
5891
|
+
version: VERSION$k,
|
|
5878
5892
|
private: [],
|
|
5879
5893
|
opaque: true
|
|
5880
5894
|
};
|
|
5881
5895
|
};
|
|
5882
|
-
function equals$
|
|
5896
|
+
function equals$k(existing, incoming) {
|
|
5883
5897
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5884
5898
|
return false;
|
|
5885
5899
|
}
|
|
5886
5900
|
return true;
|
|
5887
5901
|
}
|
|
5888
|
-
const ingest$
|
|
5902
|
+
const ingest$c = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5889
5903
|
if (process.env.NODE_ENV !== 'production') {
|
|
5890
|
-
const validateError = validate$
|
|
5904
|
+
const validateError = validate$q(input);
|
|
5891
5905
|
if (validateError !== null) {
|
|
5892
5906
|
throw validateError;
|
|
5893
5907
|
}
|
|
5894
5908
|
}
|
|
5895
5909
|
const key = keyBuilderFromType$8(luvio, input);
|
|
5896
5910
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5897
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5911
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$k, RepresentationType$c, equals$k);
|
|
5898
5912
|
return createLink(key);
|
|
5899
5913
|
};
|
|
5900
|
-
function getTypeCacheKeys$
|
|
5914
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5901
5915
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5902
5916
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
5903
5917
|
rootKeySet.set(rootKey, {
|
|
5904
5918
|
namespace: keyPrefix,
|
|
5905
|
-
representationName: RepresentationType$
|
|
5919
|
+
representationName: RepresentationType$c,
|
|
5906
5920
|
mergeable: false
|
|
5907
5921
|
});
|
|
5908
5922
|
}
|
|
5909
5923
|
|
|
5910
|
-
const VERSION$
|
|
5911
|
-
function validate$
|
|
5924
|
+
const VERSION$j = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5925
|
+
function validate$p(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5912
5926
|
const v_error = (() => {
|
|
5913
5927
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5914
5928
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5917,10 +5931,10 @@ function validate$l(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5917
5931
|
})();
|
|
5918
5932
|
return v_error === undefined ? null : v_error;
|
|
5919
5933
|
}
|
|
5920
|
-
const select$
|
|
5934
|
+
const select$v = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5921
5935
|
return {
|
|
5922
5936
|
kind: 'Fragment',
|
|
5923
|
-
version: VERSION$
|
|
5937
|
+
version: VERSION$j,
|
|
5924
5938
|
private: [],
|
|
5925
5939
|
selections: [
|
|
5926
5940
|
{
|
|
@@ -5930,7 +5944,7 @@ const select$q = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
5930
5944
|
]
|
|
5931
5945
|
};
|
|
5932
5946
|
};
|
|
5933
|
-
function equals$
|
|
5947
|
+
function equals$j(existing, incoming) {
|
|
5934
5948
|
const existing_constantBinSize = existing.constantBinSize;
|
|
5935
5949
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
5936
5950
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -5939,8 +5953,8 @@ function equals$f(existing, incoming) {
|
|
|
5939
5953
|
return true;
|
|
5940
5954
|
}
|
|
5941
5955
|
|
|
5942
|
-
const VERSION$
|
|
5943
|
-
function validate$
|
|
5956
|
+
const VERSION$i = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5957
|
+
function validate$o(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5944
5958
|
const v_error = (() => {
|
|
5945
5959
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5946
5960
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5967,10 +5981,10 @@ function validate$k(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5967
5981
|
})();
|
|
5968
5982
|
return v_error === undefined ? null : v_error;
|
|
5969
5983
|
}
|
|
5970
|
-
const select$
|
|
5984
|
+
const select$u = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5971
5985
|
return {
|
|
5972
5986
|
kind: 'Fragment',
|
|
5973
|
-
version: VERSION$
|
|
5987
|
+
version: VERSION$i,
|
|
5974
5988
|
private: [],
|
|
5975
5989
|
selections: [
|
|
5976
5990
|
{
|
|
@@ -5986,7 +6000,7 @@ const select$p = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
5986
6000
|
]
|
|
5987
6001
|
};
|
|
5988
6002
|
};
|
|
5989
|
-
function equals$
|
|
6003
|
+
function equals$i(existing, incoming) {
|
|
5990
6004
|
const existing_name = existing.name;
|
|
5991
6005
|
const incoming_name = incoming.name;
|
|
5992
6006
|
if (!(existing_name === incoming_name)) {
|
|
@@ -6013,8 +6027,8 @@ function equals$e(existing, incoming) {
|
|
|
6013
6027
|
return true;
|
|
6014
6028
|
}
|
|
6015
6029
|
|
|
6016
|
-
const VERSION$
|
|
6017
|
-
function validate$
|
|
6030
|
+
const VERSION$h = "55c60b6207985632192cb4e419822a86";
|
|
6031
|
+
function validate$n(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
6018
6032
|
const v_error = (() => {
|
|
6019
6033
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6020
6034
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6028,7 +6042,7 @@ function validate$j(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6028
6042
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
6029
6043
|
const obj_groups_item = obj_groups[i];
|
|
6030
6044
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
6031
|
-
const referencepath_groups_itemValidationError = validate$
|
|
6045
|
+
const referencepath_groups_itemValidationError = validate$o(obj_groups_item, path_groups_item);
|
|
6032
6046
|
if (referencepath_groups_itemValidationError !== null) {
|
|
6033
6047
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
6034
6048
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6046,11 +6060,11 @@ function validate$j(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6046
6060
|
})();
|
|
6047
6061
|
return v_error === undefined ? null : v_error;
|
|
6048
6062
|
}
|
|
6049
|
-
const select$
|
|
6050
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
6063
|
+
const select$t = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6064
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$u();
|
|
6051
6065
|
return {
|
|
6052
6066
|
kind: 'Fragment',
|
|
6053
|
-
version: VERSION$
|
|
6067
|
+
version: VERSION$h,
|
|
6054
6068
|
private: [],
|
|
6055
6069
|
selections: [
|
|
6056
6070
|
{
|
|
@@ -6068,7 +6082,7 @@ const select$o = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6068
6082
|
]
|
|
6069
6083
|
};
|
|
6070
6084
|
};
|
|
6071
|
-
function equals$
|
|
6085
|
+
function equals$h(existing, incoming) {
|
|
6072
6086
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6073
6087
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6074
6088
|
// if at least one of these optionals is defined
|
|
@@ -6092,7 +6106,7 @@ function equals$d(existing, incoming) {
|
|
|
6092
6106
|
return false;
|
|
6093
6107
|
}
|
|
6094
6108
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6095
|
-
if (!(equals$
|
|
6109
|
+
if (!(equals$i(existing_groups_item, incoming_groups_item))) {
|
|
6096
6110
|
return false;
|
|
6097
6111
|
}
|
|
6098
6112
|
});
|
|
@@ -6103,8 +6117,8 @@ function equals$d(existing, incoming) {
|
|
|
6103
6117
|
return true;
|
|
6104
6118
|
}
|
|
6105
6119
|
|
|
6106
|
-
const VERSION$
|
|
6107
|
-
function validate$
|
|
6120
|
+
const VERSION$g = "50dc390b159159afb1945b9a811c9f80";
|
|
6121
|
+
function validate$m(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6108
6122
|
const v_error = (() => {
|
|
6109
6123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6110
6124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6112,7 +6126,7 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6112
6126
|
if (obj.binDimension !== undefined) {
|
|
6113
6127
|
const obj_binDimension = obj.binDimension;
|
|
6114
6128
|
const path_binDimension = path + '.binDimension';
|
|
6115
|
-
const referencepath_binDimensionValidationError = validate$
|
|
6129
|
+
const referencepath_binDimensionValidationError = validate$p(obj_binDimension, path_binDimension);
|
|
6116
6130
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6117
6131
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6118
6132
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6122,7 +6136,7 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6122
6136
|
if (obj.groupDimension !== undefined) {
|
|
6123
6137
|
const obj_groupDimension = obj.groupDimension;
|
|
6124
6138
|
const path_groupDimension = path + '.groupDimension';
|
|
6125
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
6139
|
+
const referencepath_groupDimensionValidationError = validate$n(obj_groupDimension, path_groupDimension);
|
|
6126
6140
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6127
6141
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6128
6142
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6132,12 +6146,12 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6132
6146
|
})();
|
|
6133
6147
|
return v_error === undefined ? null : v_error;
|
|
6134
6148
|
}
|
|
6135
|
-
const select$
|
|
6136
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6137
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6149
|
+
const select$s = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6150
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$v();
|
|
6151
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$t();
|
|
6138
6152
|
return {
|
|
6139
6153
|
kind: 'Fragment',
|
|
6140
|
-
version: VERSION$
|
|
6154
|
+
version: VERSION$g,
|
|
6141
6155
|
private: [],
|
|
6142
6156
|
selections: [
|
|
6143
6157
|
{
|
|
@@ -6155,7 +6169,7 @@ const select$n = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6155
6169
|
]
|
|
6156
6170
|
};
|
|
6157
6171
|
};
|
|
6158
|
-
function equals$
|
|
6172
|
+
function equals$g(existing, incoming) {
|
|
6159
6173
|
const existing_binDimension = existing.binDimension;
|
|
6160
6174
|
const incoming_binDimension = incoming.binDimension;
|
|
6161
6175
|
// if at least one of these optionals is defined
|
|
@@ -6165,7 +6179,7 @@ function equals$c(existing, incoming) {
|
|
|
6165
6179
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6166
6180
|
return false;
|
|
6167
6181
|
}
|
|
6168
|
-
if (!(equals$
|
|
6182
|
+
if (!(equals$j(existing_binDimension, incoming_binDimension))) {
|
|
6169
6183
|
return false;
|
|
6170
6184
|
}
|
|
6171
6185
|
}
|
|
@@ -6178,15 +6192,15 @@ function equals$c(existing, incoming) {
|
|
|
6178
6192
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6179
6193
|
return false;
|
|
6180
6194
|
}
|
|
6181
|
-
if (!(equals$
|
|
6195
|
+
if (!(equals$h(existing_groupDimension, incoming_groupDimension))) {
|
|
6182
6196
|
return false;
|
|
6183
6197
|
}
|
|
6184
6198
|
}
|
|
6185
6199
|
return true;
|
|
6186
6200
|
}
|
|
6187
6201
|
|
|
6188
|
-
const VERSION$
|
|
6189
|
-
function validate$
|
|
6202
|
+
const VERSION$f = "1daec40706bf767c719fa58831fad462";
|
|
6203
|
+
function validate$l(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6190
6204
|
const v_error = (() => {
|
|
6191
6205
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6192
6206
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6212,7 +6226,7 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6212
6226
|
}
|
|
6213
6227
|
const obj_configuration = obj.configuration;
|
|
6214
6228
|
const path_configuration = path + '.configuration';
|
|
6215
|
-
const referencepath_configurationValidationError = validate$
|
|
6229
|
+
const referencepath_configurationValidationError = validate$m(obj_configuration, path_configuration);
|
|
6216
6230
|
if (referencepath_configurationValidationError !== null) {
|
|
6217
6231
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6218
6232
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6237,7 +6251,7 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6237
6251
|
}
|
|
6238
6252
|
const obj_fieldReference = obj.fieldReference;
|
|
6239
6253
|
const path_fieldReference = path + '.fieldReference';
|
|
6240
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
6254
|
+
const referencepath_fieldReferenceValidationError = validate$10(obj_fieldReference, path_fieldReference);
|
|
6241
6255
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6242
6256
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6243
6257
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6277,25 +6291,25 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6277
6291
|
})();
|
|
6278
6292
|
return v_error === undefined ? null : v_error;
|
|
6279
6293
|
}
|
|
6280
|
-
const RepresentationType$
|
|
6281
|
-
function keyBuilder$
|
|
6282
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6294
|
+
const RepresentationType$b = 'SemanticGroupingOutputRepresentation';
|
|
6295
|
+
function keyBuilder$p(luvio, config) {
|
|
6296
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
6283
6297
|
}
|
|
6284
6298
|
function keyBuilderFromType$7(luvio, object) {
|
|
6285
6299
|
const keyParams = {
|
|
6286
6300
|
name: object.id
|
|
6287
6301
|
};
|
|
6288
|
-
return keyBuilder$
|
|
6302
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6289
6303
|
}
|
|
6290
|
-
function normalize$
|
|
6304
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
6291
6305
|
return input;
|
|
6292
6306
|
}
|
|
6293
|
-
const select$
|
|
6294
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6295
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6307
|
+
const select$r = function SemanticGroupingOutputRepresentationSelect() {
|
|
6308
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$s();
|
|
6309
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
6296
6310
|
return {
|
|
6297
6311
|
kind: 'Fragment',
|
|
6298
|
-
version: VERSION$
|
|
6312
|
+
version: VERSION$f,
|
|
6299
6313
|
private: [],
|
|
6300
6314
|
selections: [
|
|
6301
6315
|
{
|
|
@@ -6361,7 +6375,7 @@ const select$m = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
6361
6375
|
]
|
|
6362
6376
|
};
|
|
6363
6377
|
};
|
|
6364
|
-
function equals$
|
|
6378
|
+
function equals$f(existing, incoming) {
|
|
6365
6379
|
const existing_apiName = existing.apiName;
|
|
6366
6380
|
const incoming_apiName = incoming.apiName;
|
|
6367
6381
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6467,40 +6481,40 @@ function equals$b(existing, incoming) {
|
|
|
6467
6481
|
}
|
|
6468
6482
|
const existing_configuration = existing.configuration;
|
|
6469
6483
|
const incoming_configuration = incoming.configuration;
|
|
6470
|
-
if (!(equals$
|
|
6484
|
+
if (!(equals$g(existing_configuration, incoming_configuration))) {
|
|
6471
6485
|
return false;
|
|
6472
6486
|
}
|
|
6473
6487
|
const existing_fieldReference = existing.fieldReference;
|
|
6474
6488
|
const incoming_fieldReference = incoming.fieldReference;
|
|
6475
|
-
if (!(equals$
|
|
6489
|
+
if (!(equals$w(existing_fieldReference, incoming_fieldReference))) {
|
|
6476
6490
|
return false;
|
|
6477
6491
|
}
|
|
6478
6492
|
return true;
|
|
6479
6493
|
}
|
|
6480
|
-
const ingest$
|
|
6494
|
+
const ingest$b = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6481
6495
|
if (process.env.NODE_ENV !== 'production') {
|
|
6482
|
-
const validateError = validate$
|
|
6496
|
+
const validateError = validate$l(input);
|
|
6483
6497
|
if (validateError !== null) {
|
|
6484
6498
|
throw validateError;
|
|
6485
6499
|
}
|
|
6486
6500
|
}
|
|
6487
6501
|
const key = keyBuilderFromType$7(luvio, input);
|
|
6488
6502
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6489
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6503
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$f, RepresentationType$b, equals$f);
|
|
6490
6504
|
return createLink(key);
|
|
6491
6505
|
};
|
|
6492
|
-
function getTypeCacheKeys$
|
|
6506
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
6493
6507
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6494
6508
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
6495
6509
|
rootKeySet.set(rootKey, {
|
|
6496
6510
|
namespace: keyPrefix,
|
|
6497
|
-
representationName: RepresentationType$
|
|
6511
|
+
representationName: RepresentationType$b,
|
|
6498
6512
|
mergeable: false
|
|
6499
6513
|
});
|
|
6500
6514
|
}
|
|
6501
6515
|
|
|
6502
|
-
const VERSION$
|
|
6503
|
-
function validate$
|
|
6516
|
+
const VERSION$e = "c5144c317ac72b60d580cab803514b8d";
|
|
6517
|
+
function validate$k(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6504
6518
|
const v_error = (() => {
|
|
6505
6519
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6506
6520
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6543,10 +6557,10 @@ function validate$g(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6543
6557
|
})();
|
|
6544
6558
|
return v_error === undefined ? null : v_error;
|
|
6545
6559
|
}
|
|
6546
|
-
const select$
|
|
6560
|
+
const select$q = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6547
6561
|
return {
|
|
6548
6562
|
kind: 'Fragment',
|
|
6549
|
-
version: VERSION$
|
|
6563
|
+
version: VERSION$e,
|
|
6550
6564
|
private: [],
|
|
6551
6565
|
selections: [
|
|
6552
6566
|
{
|
|
@@ -6577,7 +6591,7 @@ const select$l = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
6577
6591
|
]
|
|
6578
6592
|
};
|
|
6579
6593
|
};
|
|
6580
|
-
function equals$
|
|
6594
|
+
function equals$e(existing, incoming) {
|
|
6581
6595
|
const existing_joinOperator = existing.joinOperator;
|
|
6582
6596
|
const incoming_joinOperator = incoming.joinOperator;
|
|
6583
6597
|
// if at least one of these optionals is defined
|
|
@@ -6646,8 +6660,8 @@ function equals$a(existing, incoming) {
|
|
|
6646
6660
|
return true;
|
|
6647
6661
|
}
|
|
6648
6662
|
|
|
6649
|
-
const VERSION$
|
|
6650
|
-
function validate$
|
|
6663
|
+
const VERSION$d = "b9778dace5726fcb57804d3afd529246";
|
|
6664
|
+
function validate$j(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6651
6665
|
const v_error = (() => {
|
|
6652
6666
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6653
6667
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6697,7 +6711,7 @@ function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6697
6711
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
6698
6712
|
const obj_criteria_item = obj_criteria[i];
|
|
6699
6713
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
6700
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
6714
|
+
const referencepath_criteria_itemValidationError = validate$k(obj_criteria_item, path_criteria_item);
|
|
6701
6715
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
6702
6716
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
6703
6717
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6776,24 +6790,24 @@ function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6776
6790
|
})();
|
|
6777
6791
|
return v_error === undefined ? null : v_error;
|
|
6778
6792
|
}
|
|
6779
|
-
const RepresentationType$
|
|
6780
|
-
function keyBuilder$
|
|
6781
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6793
|
+
const RepresentationType$a = 'SemanticRelationshipOutputRepresentation';
|
|
6794
|
+
function keyBuilder$o(luvio, config) {
|
|
6795
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6782
6796
|
}
|
|
6783
6797
|
function keyBuilderFromType$6(luvio, object) {
|
|
6784
6798
|
const keyParams = {
|
|
6785
6799
|
name: object.id
|
|
6786
6800
|
};
|
|
6787
|
-
return keyBuilder$
|
|
6801
|
+
return keyBuilder$o(luvio, keyParams);
|
|
6788
6802
|
}
|
|
6789
|
-
function normalize$
|
|
6803
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6790
6804
|
return input;
|
|
6791
6805
|
}
|
|
6792
|
-
const select$
|
|
6793
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6806
|
+
const select$p = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6807
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$q();
|
|
6794
6808
|
return {
|
|
6795
6809
|
kind: 'Fragment',
|
|
6796
|
-
version: VERSION$
|
|
6810
|
+
version: VERSION$d,
|
|
6797
6811
|
private: [],
|
|
6798
6812
|
selections: [
|
|
6799
6813
|
{
|
|
@@ -6882,7 +6896,7 @@ const select$k = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
6882
6896
|
]
|
|
6883
6897
|
};
|
|
6884
6898
|
};
|
|
6885
|
-
function equals$
|
|
6899
|
+
function equals$d(existing, incoming) {
|
|
6886
6900
|
const existing_isEnabled = existing.isEnabled;
|
|
6887
6901
|
const incoming_isEnabled = incoming.isEnabled;
|
|
6888
6902
|
// if at least one of these optionals is defined
|
|
@@ -7069,7 +7083,7 @@ function equals$9(existing, incoming) {
|
|
|
7069
7083
|
return false;
|
|
7070
7084
|
}
|
|
7071
7085
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7072
|
-
if (!(equals$
|
|
7086
|
+
if (!(equals$e(existing_criteria_item, incoming_criteria_item))) {
|
|
7073
7087
|
return false;
|
|
7074
7088
|
}
|
|
7075
7089
|
});
|
|
@@ -7079,30 +7093,30 @@ function equals$9(existing, incoming) {
|
|
|
7079
7093
|
}
|
|
7080
7094
|
return true;
|
|
7081
7095
|
}
|
|
7082
|
-
const ingest$
|
|
7096
|
+
const ingest$a = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7083
7097
|
if (process.env.NODE_ENV !== 'production') {
|
|
7084
|
-
const validateError = validate$
|
|
7098
|
+
const validateError = validate$j(input);
|
|
7085
7099
|
if (validateError !== null) {
|
|
7086
7100
|
throw validateError;
|
|
7087
7101
|
}
|
|
7088
7102
|
}
|
|
7089
7103
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7090
7104
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7091
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7105
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$d, RepresentationType$a, equals$d);
|
|
7092
7106
|
return createLink(key);
|
|
7093
7107
|
};
|
|
7094
|
-
function getTypeCacheKeys$
|
|
7108
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
7095
7109
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7096
7110
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
7097
7111
|
rootKeySet.set(rootKey, {
|
|
7098
7112
|
namespace: keyPrefix,
|
|
7099
|
-
representationName: RepresentationType$
|
|
7113
|
+
representationName: RepresentationType$a,
|
|
7100
7114
|
mergeable: false
|
|
7101
7115
|
});
|
|
7102
7116
|
}
|
|
7103
7117
|
|
|
7104
|
-
const VERSION$
|
|
7105
|
-
function validate$
|
|
7118
|
+
const VERSION$c = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7119
|
+
function validate$i(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7106
7120
|
const v_error = (() => {
|
|
7107
7121
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7108
7122
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7152,7 +7166,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7152
7166
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7153
7167
|
const obj_fields_item = obj_fields[i];
|
|
7154
7168
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7155
|
-
const referencepath_fields_itemValidationError = validate$
|
|
7169
|
+
const referencepath_fields_itemValidationError = validate$11(obj_fields_item, path_fields_item);
|
|
7156
7170
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7157
7171
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7158
7172
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7196,7 +7210,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7196
7210
|
if (obj.semanticDimension !== undefined) {
|
|
7197
7211
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7198
7212
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7199
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
7213
|
+
const referencepath_semanticDimensionValidationError = validate$s(obj_semanticDimension, path_semanticDimension);
|
|
7200
7214
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7201
7215
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7202
7216
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7206,7 +7220,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7206
7220
|
if (obj.semanticMeasurement !== undefined) {
|
|
7207
7221
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7208
7222
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7209
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
7223
|
+
const referencepath_semanticMeasurementValidationError = validate$r(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7210
7224
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7211
7225
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7212
7226
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7216,57 +7230,57 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7216
7230
|
})();
|
|
7217
7231
|
return v_error === undefined ? null : v_error;
|
|
7218
7232
|
}
|
|
7219
|
-
const RepresentationType$
|
|
7220
|
-
function keyBuilder$
|
|
7221
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7222
|
-
}
|
|
7233
|
+
const RepresentationType$9 = 'SemanticMappedFieldOutputRepresentation';
|
|
7234
|
+
function keyBuilder$n(luvio, config) {
|
|
7235
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7236
|
+
}
|
|
7223
7237
|
function keyBuilderFromType$5(luvio, object) {
|
|
7224
7238
|
const keyParams = {
|
|
7225
7239
|
name: object.id
|
|
7226
7240
|
};
|
|
7227
|
-
return keyBuilder$
|
|
7241
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7228
7242
|
}
|
|
7229
|
-
function normalize$
|
|
7243
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7230
7244
|
return input;
|
|
7231
7245
|
}
|
|
7232
|
-
const select$
|
|
7246
|
+
const select$o = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7233
7247
|
return {
|
|
7234
7248
|
kind: 'Fragment',
|
|
7235
|
-
version: VERSION$
|
|
7249
|
+
version: VERSION$c,
|
|
7236
7250
|
private: [],
|
|
7237
7251
|
opaque: true
|
|
7238
7252
|
};
|
|
7239
7253
|
};
|
|
7240
|
-
function equals$
|
|
7254
|
+
function equals$c(existing, incoming) {
|
|
7241
7255
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7242
7256
|
return false;
|
|
7243
7257
|
}
|
|
7244
7258
|
return true;
|
|
7245
7259
|
}
|
|
7246
|
-
const ingest$
|
|
7260
|
+
const ingest$9 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7247
7261
|
if (process.env.NODE_ENV !== 'production') {
|
|
7248
|
-
const validateError = validate$
|
|
7262
|
+
const validateError = validate$i(input);
|
|
7249
7263
|
if (validateError !== null) {
|
|
7250
7264
|
throw validateError;
|
|
7251
7265
|
}
|
|
7252
7266
|
}
|
|
7253
7267
|
const key = keyBuilderFromType$5(luvio, input);
|
|
7254
7268
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7255
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7269
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
|
|
7256
7270
|
return createLink(key);
|
|
7257
7271
|
};
|
|
7258
|
-
function getTypeCacheKeys$
|
|
7272
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
7259
7273
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7260
7274
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
7261
7275
|
rootKeySet.set(rootKey, {
|
|
7262
7276
|
namespace: keyPrefix,
|
|
7263
|
-
representationName: RepresentationType$
|
|
7277
|
+
representationName: RepresentationType$9,
|
|
7264
7278
|
mergeable: false
|
|
7265
7279
|
});
|
|
7266
7280
|
}
|
|
7267
7281
|
|
|
7268
|
-
const VERSION$
|
|
7269
|
-
function validate$
|
|
7282
|
+
const VERSION$b = "69fe23112140e9fae50135dcb15c24c2";
|
|
7283
|
+
function validate$h(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7270
7284
|
const v_error = (() => {
|
|
7271
7285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7272
7286
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7392,24 +7406,24 @@ function validate$d(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7392
7406
|
})();
|
|
7393
7407
|
return v_error === undefined ? null : v_error;
|
|
7394
7408
|
}
|
|
7395
|
-
const RepresentationType$
|
|
7396
|
-
function keyBuilder$
|
|
7397
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7409
|
+
const RepresentationType$8 = 'SemanticUnionOutputRepresentation';
|
|
7410
|
+
function keyBuilder$m(luvio, config) {
|
|
7411
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7398
7412
|
}
|
|
7399
7413
|
function keyBuilderFromType$4(luvio, object) {
|
|
7400
7414
|
const keyParams = {
|
|
7401
7415
|
name: object.id
|
|
7402
7416
|
};
|
|
7403
|
-
return keyBuilder$
|
|
7417
|
+
return keyBuilder$m(luvio, keyParams);
|
|
7404
7418
|
}
|
|
7405
|
-
function normalize$
|
|
7419
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7406
7420
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7407
7421
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7408
7422
|
if (input_semanticDataObjects !== undefined) {
|
|
7409
7423
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7410
7424
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7411
7425
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7412
|
-
input_semanticDataObjects[i] = ingest$
|
|
7426
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7413
7427
|
fullPath: input_semanticDataObjects_item_id,
|
|
7414
7428
|
propertyName: i,
|
|
7415
7429
|
parent: {
|
|
@@ -7427,7 +7441,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7427
7441
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
7428
7442
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
7429
7443
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
7430
|
-
input_semanticMappedFields[i] = ingest$
|
|
7444
|
+
input_semanticMappedFields[i] = ingest$9(input_semanticMappedFields_item, {
|
|
7431
7445
|
fullPath: input_semanticMappedFields_item_id,
|
|
7432
7446
|
propertyName: i,
|
|
7433
7447
|
parent: {
|
|
@@ -7441,10 +7455,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7441
7455
|
}
|
|
7442
7456
|
return input;
|
|
7443
7457
|
}
|
|
7444
|
-
const select$
|
|
7458
|
+
const select$n = function SemanticUnionOutputRepresentationSelect() {
|
|
7445
7459
|
return {
|
|
7446
7460
|
kind: 'Fragment',
|
|
7447
|
-
version: VERSION$
|
|
7461
|
+
version: VERSION$b,
|
|
7448
7462
|
private: [],
|
|
7449
7463
|
selections: [
|
|
7450
7464
|
{
|
|
@@ -7503,19 +7517,19 @@ const select$i = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7503
7517
|
kind: 'Link',
|
|
7504
7518
|
plural: true,
|
|
7505
7519
|
required: false,
|
|
7506
|
-
fragment: select$
|
|
7520
|
+
fragment: select$w()
|
|
7507
7521
|
},
|
|
7508
7522
|
{
|
|
7509
7523
|
name: 'semanticMappedFields',
|
|
7510
7524
|
kind: 'Link',
|
|
7511
7525
|
plural: true,
|
|
7512
7526
|
required: false,
|
|
7513
|
-
fragment: select$
|
|
7527
|
+
fragment: select$o()
|
|
7514
7528
|
}
|
|
7515
7529
|
]
|
|
7516
7530
|
};
|
|
7517
7531
|
};
|
|
7518
|
-
function equals$
|
|
7532
|
+
function equals$b(existing, incoming) {
|
|
7519
7533
|
const existing_apiName = existing.apiName;
|
|
7520
7534
|
const incoming_apiName = incoming.apiName;
|
|
7521
7535
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7665,42 +7679,42 @@ function equals$7(existing, incoming) {
|
|
|
7665
7679
|
}
|
|
7666
7680
|
return true;
|
|
7667
7681
|
}
|
|
7668
|
-
const ingest$
|
|
7682
|
+
const ingest$8 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7669
7683
|
if (process.env.NODE_ENV !== 'production') {
|
|
7670
|
-
const validateError = validate$
|
|
7684
|
+
const validateError = validate$h(input);
|
|
7671
7685
|
if (validateError !== null) {
|
|
7672
7686
|
throw validateError;
|
|
7673
7687
|
}
|
|
7674
7688
|
}
|
|
7675
7689
|
const key = keyBuilderFromType$4(luvio, input);
|
|
7676
7690
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7677
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7691
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
|
|
7678
7692
|
return createLink(key);
|
|
7679
7693
|
};
|
|
7680
|
-
function getTypeCacheKeys$
|
|
7694
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7681
7695
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7682
7696
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
7683
7697
|
rootKeySet.set(rootKey, {
|
|
7684
7698
|
namespace: keyPrefix,
|
|
7685
|
-
representationName: RepresentationType$
|
|
7699
|
+
representationName: RepresentationType$8,
|
|
7686
7700
|
mergeable: false
|
|
7687
7701
|
});
|
|
7688
7702
|
if (input.semanticDataObjects !== undefined) {
|
|
7689
7703
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
7690
7704
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
7691
|
-
getTypeCacheKeys$
|
|
7705
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
7692
7706
|
}
|
|
7693
7707
|
}
|
|
7694
7708
|
if (input.semanticMappedFields !== undefined) {
|
|
7695
7709
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
7696
7710
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
7697
|
-
getTypeCacheKeys$
|
|
7711
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
7698
7712
|
}
|
|
7699
7713
|
}
|
|
7700
7714
|
}
|
|
7701
7715
|
|
|
7702
|
-
const VERSION$
|
|
7703
|
-
function validate$
|
|
7716
|
+
const VERSION$a = "f186bf0514421e7f42e284136d60ea6c";
|
|
7717
|
+
function validate$g(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7704
7718
|
const v_error = (() => {
|
|
7705
7719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7706
7720
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7764,7 +7778,7 @@ function validate$c(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7764
7778
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
7765
7779
|
const obj_filters_item = obj_filters[i];
|
|
7766
7780
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
7767
|
-
const referencepath_filters_itemValidationError = validate
|
|
7781
|
+
const referencepath_filters_itemValidationError = validate$$(obj_filters_item, path_filters_item);
|
|
7768
7782
|
if (referencepath_filters_itemValidationError !== null) {
|
|
7769
7783
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
7770
7784
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7850,24 +7864,24 @@ function validate$c(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7850
7864
|
})();
|
|
7851
7865
|
return v_error === undefined ? null : v_error;
|
|
7852
7866
|
}
|
|
7853
|
-
const RepresentationType$
|
|
7854
|
-
function keyBuilder$
|
|
7855
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7867
|
+
const RepresentationType$7 = 'SemanticLogicalViewOutputRepresentation';
|
|
7868
|
+
function keyBuilder$l(luvio, config) {
|
|
7869
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7856
7870
|
}
|
|
7857
7871
|
function keyBuilderFromType$3(luvio, object) {
|
|
7858
7872
|
const keyParams = {
|
|
7859
7873
|
name: object.id
|
|
7860
7874
|
};
|
|
7861
|
-
return keyBuilder$
|
|
7875
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7862
7876
|
}
|
|
7863
|
-
function normalize$
|
|
7877
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7864
7878
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7865
7879
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7866
7880
|
if (input_semanticDataObjects !== undefined) {
|
|
7867
7881
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7868
7882
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7869
7883
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7870
|
-
input_semanticDataObjects[i] = ingest$
|
|
7884
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7871
7885
|
fullPath: input_semanticDataObjects_item_id,
|
|
7872
7886
|
propertyName: i,
|
|
7873
7887
|
parent: {
|
|
@@ -7885,7 +7899,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7885
7899
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7886
7900
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7887
7901
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7888
|
-
input_semanticRelationships[i] = ingest$
|
|
7902
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
7889
7903
|
fullPath: input_semanticRelationships_item_id,
|
|
7890
7904
|
propertyName: i,
|
|
7891
7905
|
parent: {
|
|
@@ -7903,7 +7917,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7903
7917
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
7904
7918
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
7905
7919
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
7906
|
-
input_semanticUnions[i] = ingest$
|
|
7920
|
+
input_semanticUnions[i] = ingest$8(input_semanticUnions_item, {
|
|
7907
7921
|
fullPath: input_semanticUnions_item_id,
|
|
7908
7922
|
propertyName: i,
|
|
7909
7923
|
parent: {
|
|
@@ -7917,11 +7931,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7917
7931
|
}
|
|
7918
7932
|
return input;
|
|
7919
7933
|
}
|
|
7920
|
-
const select$
|
|
7921
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7934
|
+
const select$m = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7935
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
7922
7936
|
return {
|
|
7923
7937
|
kind: 'Fragment',
|
|
7924
|
-
version: VERSION$
|
|
7938
|
+
version: VERSION$a,
|
|
7925
7939
|
private: [],
|
|
7926
7940
|
selections: [
|
|
7927
7941
|
{
|
|
@@ -7992,21 +8006,21 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7992
8006
|
kind: 'Link',
|
|
7993
8007
|
plural: true,
|
|
7994
8008
|
required: false,
|
|
7995
|
-
fragment: select$
|
|
8009
|
+
fragment: select$w()
|
|
7996
8010
|
},
|
|
7997
8011
|
{
|
|
7998
8012
|
name: 'semanticRelationships',
|
|
7999
8013
|
kind: 'Link',
|
|
8000
8014
|
plural: true,
|
|
8001
8015
|
required: false,
|
|
8002
|
-
fragment: select$
|
|
8016
|
+
fragment: select$p()
|
|
8003
8017
|
},
|
|
8004
8018
|
{
|
|
8005
8019
|
name: 'semanticUnions',
|
|
8006
8020
|
kind: 'Link',
|
|
8007
8021
|
plural: true,
|
|
8008
8022
|
required: false,
|
|
8009
|
-
fragment: select$
|
|
8023
|
+
fragment: select$n()
|
|
8010
8024
|
},
|
|
8011
8025
|
{
|
|
8012
8026
|
name: 'semanticViewTypeEnum',
|
|
@@ -8016,7 +8030,7 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8016
8030
|
]
|
|
8017
8031
|
};
|
|
8018
8032
|
};
|
|
8019
|
-
function equals$
|
|
8033
|
+
function equals$a(existing, incoming) {
|
|
8020
8034
|
const existing_apiName = existing.apiName;
|
|
8021
8035
|
const incoming_apiName = incoming.apiName;
|
|
8022
8036
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8164,7 +8178,7 @@ function equals$6(existing, incoming) {
|
|
|
8164
8178
|
return false;
|
|
8165
8179
|
}
|
|
8166
8180
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8167
|
-
if (!(equals$
|
|
8181
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
8168
8182
|
return false;
|
|
8169
8183
|
}
|
|
8170
8184
|
});
|
|
@@ -8228,52 +8242,141 @@ function equals$6(existing, incoming) {
|
|
|
8228
8242
|
}
|
|
8229
8243
|
return true;
|
|
8230
8244
|
}
|
|
8231
|
-
const ingest$
|
|
8245
|
+
const ingest$7 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8232
8246
|
if (process.env.NODE_ENV !== 'production') {
|
|
8233
|
-
const validateError = validate$
|
|
8247
|
+
const validateError = validate$g(input);
|
|
8234
8248
|
if (validateError !== null) {
|
|
8235
8249
|
throw validateError;
|
|
8236
8250
|
}
|
|
8237
8251
|
}
|
|
8238
8252
|
const key = keyBuilderFromType$3(luvio, input);
|
|
8239
8253
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8240
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8254
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$a, RepresentationType$7, equals$a);
|
|
8241
8255
|
return createLink(key);
|
|
8242
8256
|
};
|
|
8243
|
-
function getTypeCacheKeys$
|
|
8257
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8244
8258
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8245
8259
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
8246
8260
|
rootKeySet.set(rootKey, {
|
|
8247
8261
|
namespace: keyPrefix,
|
|
8248
|
-
representationName: RepresentationType$
|
|
8262
|
+
representationName: RepresentationType$7,
|
|
8249
8263
|
mergeable: false
|
|
8250
8264
|
});
|
|
8251
8265
|
if (input.semanticDataObjects !== undefined) {
|
|
8252
8266
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8253
8267
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8254
|
-
getTypeCacheKeys$
|
|
8268
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8255
8269
|
}
|
|
8256
8270
|
}
|
|
8257
8271
|
if (input.semanticRelationships !== undefined) {
|
|
8258
8272
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8259
8273
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8260
|
-
getTypeCacheKeys$
|
|
8274
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8261
8275
|
}
|
|
8262
8276
|
}
|
|
8263
8277
|
if (input.semanticUnions !== undefined) {
|
|
8264
8278
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
8265
8279
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
8266
|
-
getTypeCacheKeys$
|
|
8280
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticUnions[i]);
|
|
8281
|
+
}
|
|
8282
|
+
}
|
|
8283
|
+
}
|
|
8284
|
+
|
|
8285
|
+
const VERSION$9 = "158d115be773406f841e4351d481d398";
|
|
8286
|
+
function validate$f(obj, path = 'SemanticParameterListValueOutputRepresentation') {
|
|
8287
|
+
const v_error = (() => {
|
|
8288
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8289
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8290
|
+
}
|
|
8291
|
+
if (obj.displayName !== undefined) {
|
|
8292
|
+
const obj_displayName = obj.displayName;
|
|
8293
|
+
const path_displayName = path + '.displayName';
|
|
8294
|
+
if (typeof obj_displayName !== 'string') {
|
|
8295
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
if (obj.value !== undefined) {
|
|
8299
|
+
const obj_value = obj.value;
|
|
8300
|
+
const path_value = path + '.value';
|
|
8301
|
+
if (typeof obj_value !== 'string') {
|
|
8302
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
8303
|
+
}
|
|
8304
|
+
}
|
|
8305
|
+
})();
|
|
8306
|
+
return v_error === undefined ? null : v_error;
|
|
8307
|
+
}
|
|
8308
|
+
const select$l = function SemanticParameterListValueOutputRepresentationSelect() {
|
|
8309
|
+
return {
|
|
8310
|
+
kind: 'Fragment',
|
|
8311
|
+
version: VERSION$9,
|
|
8312
|
+
private: [],
|
|
8313
|
+
selections: [
|
|
8314
|
+
{
|
|
8315
|
+
name: 'displayName',
|
|
8316
|
+
kind: 'Scalar',
|
|
8317
|
+
required: false
|
|
8318
|
+
},
|
|
8319
|
+
{
|
|
8320
|
+
name: 'value',
|
|
8321
|
+
kind: 'Scalar',
|
|
8322
|
+
required: false
|
|
8323
|
+
}
|
|
8324
|
+
]
|
|
8325
|
+
};
|
|
8326
|
+
};
|
|
8327
|
+
function equals$9(existing, incoming) {
|
|
8328
|
+
const existing_displayName = existing.displayName;
|
|
8329
|
+
const incoming_displayName = incoming.displayName;
|
|
8330
|
+
// if at least one of these optionals is defined
|
|
8331
|
+
if (existing_displayName !== undefined || incoming_displayName !== undefined) {
|
|
8332
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8333
|
+
// not equal
|
|
8334
|
+
if (existing_displayName === undefined || incoming_displayName === undefined) {
|
|
8335
|
+
return false;
|
|
8336
|
+
}
|
|
8337
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
8338
|
+
return false;
|
|
8339
|
+
}
|
|
8340
|
+
}
|
|
8341
|
+
const existing_value = existing.value;
|
|
8342
|
+
const incoming_value = incoming.value;
|
|
8343
|
+
// if at least one of these optionals is defined
|
|
8344
|
+
if (existing_value !== undefined || incoming_value !== undefined) {
|
|
8345
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8346
|
+
// not equal
|
|
8347
|
+
if (existing_value === undefined || incoming_value === undefined) {
|
|
8348
|
+
return false;
|
|
8349
|
+
}
|
|
8350
|
+
if (!(existing_value === incoming_value)) {
|
|
8351
|
+
return false;
|
|
8267
8352
|
}
|
|
8268
8353
|
}
|
|
8354
|
+
return true;
|
|
8269
8355
|
}
|
|
8270
8356
|
|
|
8271
|
-
const VERSION$
|
|
8272
|
-
function validate$
|
|
8357
|
+
const VERSION$8 = "6ed89c4ce77235d13ce6bb395ae49d8e";
|
|
8358
|
+
function validate$e(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8273
8359
|
const v_error = (() => {
|
|
8274
8360
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8275
8361
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8276
8362
|
}
|
|
8363
|
+
if (obj.allowedValues !== undefined) {
|
|
8364
|
+
const obj_allowedValues = obj.allowedValues;
|
|
8365
|
+
const path_allowedValues = path + '.allowedValues';
|
|
8366
|
+
if (!ArrayIsArray(obj_allowedValues)) {
|
|
8367
|
+
return new TypeError('Expected "array" but received "' + typeof obj_allowedValues + '" (at "' + path_allowedValues + '")');
|
|
8368
|
+
}
|
|
8369
|
+
for (let i = 0; i < obj_allowedValues.length; i++) {
|
|
8370
|
+
const obj_allowedValues_item = obj_allowedValues[i];
|
|
8371
|
+
const path_allowedValues_item = path_allowedValues + '[' + i + ']';
|
|
8372
|
+
const referencepath_allowedValues_itemValidationError = validate$f(obj_allowedValues_item, path_allowedValues_item);
|
|
8373
|
+
if (referencepath_allowedValues_itemValidationError !== null) {
|
|
8374
|
+
let message = 'Object doesn\'t match SemanticParameterListValueOutputRepresentation (at "' + path_allowedValues_item + '")\n';
|
|
8375
|
+
message += referencepath_allowedValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8376
|
+
return new TypeError(message);
|
|
8377
|
+
}
|
|
8378
|
+
}
|
|
8379
|
+
}
|
|
8277
8380
|
const obj_apiName = obj.apiName;
|
|
8278
8381
|
const path_apiName = path + '.apiName';
|
|
8279
8382
|
if (typeof obj_apiName !== 'string') {
|
|
@@ -8395,25 +8498,33 @@ function validate$b(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8395
8498
|
})();
|
|
8396
8499
|
return v_error === undefined ? null : v_error;
|
|
8397
8500
|
}
|
|
8398
|
-
const RepresentationType$
|
|
8399
|
-
function keyBuilder$
|
|
8400
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8501
|
+
const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
|
|
8502
|
+
function keyBuilder$k(luvio, config) {
|
|
8503
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
8401
8504
|
}
|
|
8402
8505
|
function keyBuilderFromType$2(luvio, object) {
|
|
8403
8506
|
const keyParams = {
|
|
8404
8507
|
name: object.id
|
|
8405
8508
|
};
|
|
8406
|
-
return keyBuilder$
|
|
8509
|
+
return keyBuilder$k(luvio, keyParams);
|
|
8407
8510
|
}
|
|
8408
|
-
function normalize$
|
|
8511
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
8409
8512
|
return input;
|
|
8410
8513
|
}
|
|
8411
|
-
const select$
|
|
8514
|
+
const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
8515
|
+
const { selections: SemanticParameterListValueOutputRepresentation__selections, opaque: SemanticParameterListValueOutputRepresentation__opaque, } = select$l();
|
|
8412
8516
|
return {
|
|
8413
8517
|
kind: 'Fragment',
|
|
8414
|
-
version: VERSION$
|
|
8518
|
+
version: VERSION$8,
|
|
8415
8519
|
private: [],
|
|
8416
8520
|
selections: [
|
|
8521
|
+
{
|
|
8522
|
+
name: 'allowedValues',
|
|
8523
|
+
kind: 'Object',
|
|
8524
|
+
plural: true,
|
|
8525
|
+
selections: SemanticParameterListValueOutputRepresentation__selections,
|
|
8526
|
+
required: false
|
|
8527
|
+
},
|
|
8417
8528
|
{
|
|
8418
8529
|
name: 'apiName',
|
|
8419
8530
|
kind: 'Scalar'
|
|
@@ -8499,7 +8610,7 @@ const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
|
8499
8610
|
]
|
|
8500
8611
|
};
|
|
8501
8612
|
};
|
|
8502
|
-
function equals$
|
|
8613
|
+
function equals$8(existing, incoming) {
|
|
8503
8614
|
const existing_apiName = existing.apiName;
|
|
8504
8615
|
const incoming_apiName = incoming.apiName;
|
|
8505
8616
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8676,6 +8787,24 @@ function equals$5(existing, incoming) {
|
|
|
8676
8787
|
return false;
|
|
8677
8788
|
}
|
|
8678
8789
|
}
|
|
8790
|
+
const existing_allowedValues = existing.allowedValues;
|
|
8791
|
+
const incoming_allowedValues = incoming.allowedValues;
|
|
8792
|
+
// if at least one of these optionals is defined
|
|
8793
|
+
if (existing_allowedValues !== undefined || incoming_allowedValues !== undefined) {
|
|
8794
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
8795
|
+
// not equal
|
|
8796
|
+
if (existing_allowedValues === undefined || incoming_allowedValues === undefined) {
|
|
8797
|
+
return false;
|
|
8798
|
+
}
|
|
8799
|
+
const equals_allowedValues_items = equalsArray(existing_allowedValues, incoming_allowedValues, (existing_allowedValues_item, incoming_allowedValues_item) => {
|
|
8800
|
+
if (!(equals$9(existing_allowedValues_item, incoming_allowedValues_item))) {
|
|
8801
|
+
return false;
|
|
8802
|
+
}
|
|
8803
|
+
});
|
|
8804
|
+
if (equals_allowedValues_items === false) {
|
|
8805
|
+
return false;
|
|
8806
|
+
}
|
|
8807
|
+
}
|
|
8679
8808
|
const existing_values = existing.values;
|
|
8680
8809
|
const incoming_values = incoming.values;
|
|
8681
8810
|
// if at least one of these optionals is defined
|
|
@@ -8696,30 +8825,30 @@ function equals$5(existing, incoming) {
|
|
|
8696
8825
|
}
|
|
8697
8826
|
return true;
|
|
8698
8827
|
}
|
|
8699
|
-
const ingest$
|
|
8828
|
+
const ingest$6 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8700
8829
|
if (process.env.NODE_ENV !== 'production') {
|
|
8701
|
-
const validateError = validate$
|
|
8830
|
+
const validateError = validate$e(input);
|
|
8702
8831
|
if (validateError !== null) {
|
|
8703
8832
|
throw validateError;
|
|
8704
8833
|
}
|
|
8705
8834
|
}
|
|
8706
8835
|
const key = keyBuilderFromType$2(luvio, input);
|
|
8707
8836
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8708
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8837
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$8, RepresentationType$6, equals$8);
|
|
8709
8838
|
return createLink(key);
|
|
8710
8839
|
};
|
|
8711
|
-
function getTypeCacheKeys$
|
|
8840
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
8712
8841
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8713
8842
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
8714
8843
|
rootKeySet.set(rootKey, {
|
|
8715
8844
|
namespace: keyPrefix,
|
|
8716
|
-
representationName: RepresentationType$
|
|
8845
|
+
representationName: RepresentationType$6,
|
|
8717
8846
|
mergeable: false
|
|
8718
8847
|
});
|
|
8719
8848
|
}
|
|
8720
8849
|
|
|
8721
|
-
const VERSION$
|
|
8722
|
-
function validate$
|
|
8850
|
+
const VERSION$7 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8851
|
+
function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8723
8852
|
const v_error = (() => {
|
|
8724
8853
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8725
8854
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8752,7 +8881,7 @@ function validate$a(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8752
8881
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8753
8882
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8754
8883
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8755
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
8884
|
+
const referencepath_baseModels_itemValidationError = validate$V(obj_baseModels_item, path_baseModels_item);
|
|
8756
8885
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8757
8886
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8758
8887
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9035,24 +9164,24 @@ function validate$a(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9035
9164
|
})();
|
|
9036
9165
|
return v_error === undefined ? null : v_error;
|
|
9037
9166
|
}
|
|
9038
|
-
const RepresentationType$
|
|
9039
|
-
function keyBuilder$
|
|
9040
|
-
return keyPrefix + '::' + RepresentationType$
|
|
9167
|
+
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
9168
|
+
function keyBuilder$j(luvio, config) {
|
|
9169
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
9041
9170
|
}
|
|
9042
9171
|
function keyBuilderFromType$1(luvio, object) {
|
|
9043
9172
|
const keyParams = {
|
|
9044
9173
|
name: object.id
|
|
9045
9174
|
};
|
|
9046
|
-
return keyBuilder$
|
|
9175
|
+
return keyBuilder$j(luvio, keyParams);
|
|
9047
9176
|
}
|
|
9048
|
-
function normalize$
|
|
9177
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9049
9178
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
9050
9179
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
9051
9180
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
9052
9181
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
9053
9182
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
9054
9183
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
9055
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
9184
|
+
input_semanticCalculatedDimensions[i] = ingest$e(input_semanticCalculatedDimensions_item, {
|
|
9056
9185
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
9057
9186
|
propertyName: i,
|
|
9058
9187
|
parent: {
|
|
@@ -9070,7 +9199,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9070
9199
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
9071
9200
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
9072
9201
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
9073
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
9202
|
+
input_semanticCalculatedMeasurements[i] = ingest$d(input_semanticCalculatedMeasurements_item, {
|
|
9074
9203
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
9075
9204
|
propertyName: i,
|
|
9076
9205
|
parent: {
|
|
@@ -9088,7 +9217,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9088
9217
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
9089
9218
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
9090
9219
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
9091
|
-
input_semanticDataObjects[i] = ingest$
|
|
9220
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
9092
9221
|
fullPath: input_semanticDataObjects_item_id,
|
|
9093
9222
|
propertyName: i,
|
|
9094
9223
|
parent: {
|
|
@@ -9106,7 +9235,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9106
9235
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
9107
9236
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
9108
9237
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
9109
|
-
input_semanticGroupings[i] = ingest$
|
|
9238
|
+
input_semanticGroupings[i] = ingest$b(input_semanticGroupings_item, {
|
|
9110
9239
|
fullPath: input_semanticGroupings_item_id,
|
|
9111
9240
|
propertyName: i,
|
|
9112
9241
|
parent: {
|
|
@@ -9124,7 +9253,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9124
9253
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
9125
9254
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
9126
9255
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
9127
|
-
input_semanticLogicalViews[i] = ingest$
|
|
9256
|
+
input_semanticLogicalViews[i] = ingest$7(input_semanticLogicalViews_item, {
|
|
9128
9257
|
fullPath: input_semanticLogicalViews_item_id,
|
|
9129
9258
|
propertyName: i,
|
|
9130
9259
|
parent: {
|
|
@@ -9142,7 +9271,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9142
9271
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
9143
9272
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
9144
9273
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
9145
|
-
input_semanticMetrics[i] = ingest$
|
|
9274
|
+
input_semanticMetrics[i] = ingest$h(input_semanticMetrics_item, {
|
|
9146
9275
|
fullPath: input_semanticMetrics_item_id,
|
|
9147
9276
|
propertyName: i,
|
|
9148
9277
|
parent: {
|
|
@@ -9160,7 +9289,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9160
9289
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
9161
9290
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
9162
9291
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
9163
|
-
input_semanticParameters[i] = ingest$
|
|
9292
|
+
input_semanticParameters[i] = ingest$6(input_semanticParameters_item, {
|
|
9164
9293
|
fullPath: input_semanticParameters_item_id,
|
|
9165
9294
|
propertyName: i,
|
|
9166
9295
|
parent: {
|
|
@@ -9178,7 +9307,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9178
9307
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
9179
9308
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
9180
9309
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
9181
|
-
input_semanticRelationships[i] = ingest$
|
|
9310
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
9182
9311
|
fullPath: input_semanticRelationships_item_id,
|
|
9183
9312
|
propertyName: i,
|
|
9184
9313
|
parent: {
|
|
@@ -9192,11 +9321,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9192
9321
|
}
|
|
9193
9322
|
return input;
|
|
9194
9323
|
}
|
|
9195
|
-
const select$
|
|
9196
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9324
|
+
const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
9325
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$C();
|
|
9197
9326
|
return {
|
|
9198
9327
|
kind: 'Fragment',
|
|
9199
|
-
version: VERSION$
|
|
9328
|
+
version: VERSION$7,
|
|
9200
9329
|
private: [],
|
|
9201
9330
|
selections: [
|
|
9202
9331
|
{
|
|
@@ -9282,7 +9411,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9282
9411
|
kind: 'Link',
|
|
9283
9412
|
plural: true,
|
|
9284
9413
|
required: false,
|
|
9285
|
-
fragment: select$
|
|
9414
|
+
fragment: select$y()
|
|
9286
9415
|
},
|
|
9287
9416
|
{
|
|
9288
9417
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9294,7 +9423,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9294
9423
|
kind: 'Link',
|
|
9295
9424
|
plural: true,
|
|
9296
9425
|
required: false,
|
|
9297
|
-
fragment: select$
|
|
9426
|
+
fragment: select$x()
|
|
9298
9427
|
},
|
|
9299
9428
|
{
|
|
9300
9429
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9306,7 +9435,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9306
9435
|
kind: 'Link',
|
|
9307
9436
|
plural: true,
|
|
9308
9437
|
required: false,
|
|
9309
|
-
fragment: select$
|
|
9438
|
+
fragment: select$w()
|
|
9310
9439
|
},
|
|
9311
9440
|
{
|
|
9312
9441
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9318,7 +9447,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9318
9447
|
kind: 'Link',
|
|
9319
9448
|
plural: true,
|
|
9320
9449
|
required: false,
|
|
9321
|
-
fragment: select$
|
|
9450
|
+
fragment: select$r()
|
|
9322
9451
|
},
|
|
9323
9452
|
{
|
|
9324
9453
|
name: 'semanticGroupingsUrl',
|
|
@@ -9330,21 +9459,21 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9330
9459
|
kind: 'Link',
|
|
9331
9460
|
plural: true,
|
|
9332
9461
|
required: false,
|
|
9333
|
-
fragment: select$
|
|
9462
|
+
fragment: select$m()
|
|
9334
9463
|
},
|
|
9335
9464
|
{
|
|
9336
9465
|
name: 'semanticMetrics',
|
|
9337
9466
|
kind: 'Link',
|
|
9338
9467
|
plural: true,
|
|
9339
9468
|
required: false,
|
|
9340
|
-
fragment: select$
|
|
9469
|
+
fragment: select$F()
|
|
9341
9470
|
},
|
|
9342
9471
|
{
|
|
9343
9472
|
name: 'semanticParameters',
|
|
9344
9473
|
kind: 'Link',
|
|
9345
9474
|
plural: true,
|
|
9346
9475
|
required: false,
|
|
9347
|
-
fragment: select$
|
|
9476
|
+
fragment: select$k()
|
|
9348
9477
|
},
|
|
9349
9478
|
{
|
|
9350
9479
|
name: 'semanticParametersUrl',
|
|
@@ -9356,7 +9485,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9356
9485
|
kind: 'Link',
|
|
9357
9486
|
plural: true,
|
|
9358
9487
|
required: false,
|
|
9359
|
-
fragment: select$
|
|
9488
|
+
fragment: select$p()
|
|
9360
9489
|
},
|
|
9361
9490
|
{
|
|
9362
9491
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9376,7 +9505,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9376
9505
|
]
|
|
9377
9506
|
};
|
|
9378
9507
|
};
|
|
9379
|
-
function equals$
|
|
9508
|
+
function equals$7(existing, incoming) {
|
|
9380
9509
|
const existing_isLocked = existing.isLocked;
|
|
9381
9510
|
const incoming_isLocked = incoming.isLocked;
|
|
9382
9511
|
// if at least one of these optionals is defined
|
|
@@ -9620,7 +9749,7 @@ function equals$4(existing, incoming) {
|
|
|
9620
9749
|
return false;
|
|
9621
9750
|
}
|
|
9622
9751
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9623
|
-
if (!(equals$
|
|
9752
|
+
if (!(equals$p(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9624
9753
|
return false;
|
|
9625
9754
|
}
|
|
9626
9755
|
});
|
|
@@ -9805,89 +9934,89 @@ function equals$4(existing, incoming) {
|
|
|
9805
9934
|
}
|
|
9806
9935
|
return true;
|
|
9807
9936
|
}
|
|
9808
|
-
const ingest$
|
|
9937
|
+
const ingest$5 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9809
9938
|
if (process.env.NODE_ENV !== 'production') {
|
|
9810
|
-
const validateError = validate$
|
|
9939
|
+
const validateError = validate$d(input);
|
|
9811
9940
|
if (validateError !== null) {
|
|
9812
9941
|
throw validateError;
|
|
9813
9942
|
}
|
|
9814
9943
|
}
|
|
9815
9944
|
const key = keyBuilderFromType$1(luvio, input);
|
|
9816
9945
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9817
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9946
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$7, RepresentationType$5, equals$7);
|
|
9818
9947
|
return createLink(key);
|
|
9819
9948
|
};
|
|
9820
|
-
function getTypeCacheKeys$
|
|
9949
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9821
9950
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9822
9951
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
9823
9952
|
rootKeySet.set(rootKey, {
|
|
9824
9953
|
namespace: keyPrefix,
|
|
9825
|
-
representationName: RepresentationType$
|
|
9954
|
+
representationName: RepresentationType$5,
|
|
9826
9955
|
mergeable: false
|
|
9827
9956
|
});
|
|
9828
9957
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
9829
9958
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
9830
9959
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
9831
|
-
getTypeCacheKeys$
|
|
9960
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
9832
9961
|
}
|
|
9833
9962
|
}
|
|
9834
9963
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
9835
9964
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
9836
9965
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
9837
|
-
getTypeCacheKeys$
|
|
9966
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
9838
9967
|
}
|
|
9839
9968
|
}
|
|
9840
9969
|
if (input.semanticDataObjects !== undefined) {
|
|
9841
9970
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
9842
9971
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
9843
|
-
getTypeCacheKeys$
|
|
9972
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
9844
9973
|
}
|
|
9845
9974
|
}
|
|
9846
9975
|
if (input.semanticGroupings !== undefined) {
|
|
9847
9976
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
9848
9977
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
9849
|
-
getTypeCacheKeys$
|
|
9978
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
9850
9979
|
}
|
|
9851
9980
|
}
|
|
9852
9981
|
if (input.semanticLogicalViews !== undefined) {
|
|
9853
9982
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
9854
9983
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
9855
|
-
getTypeCacheKeys$
|
|
9984
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
9856
9985
|
}
|
|
9857
9986
|
}
|
|
9858
9987
|
if (input.semanticMetrics !== undefined) {
|
|
9859
9988
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
9860
9989
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
9861
|
-
getTypeCacheKeys$
|
|
9990
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
9862
9991
|
}
|
|
9863
9992
|
}
|
|
9864
9993
|
if (input.semanticParameters !== undefined) {
|
|
9865
9994
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
9866
9995
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
9867
|
-
getTypeCacheKeys$
|
|
9996
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.semanticParameters[i]);
|
|
9868
9997
|
}
|
|
9869
9998
|
}
|
|
9870
9999
|
if (input.semanticRelationships !== undefined) {
|
|
9871
10000
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
9872
10001
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
9873
|
-
getTypeCacheKeys$
|
|
10002
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
9874
10003
|
}
|
|
9875
10004
|
}
|
|
9876
10005
|
}
|
|
9877
10006
|
|
|
9878
|
-
function select$
|
|
9879
|
-
return select$
|
|
10007
|
+
function select$i(luvio, params) {
|
|
10008
|
+
return select$j();
|
|
9880
10009
|
}
|
|
9881
|
-
function getResponseCacheKeys$
|
|
9882
|
-
getTypeCacheKeys$
|
|
10010
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
10011
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9883
10012
|
}
|
|
9884
|
-
function ingestSuccess$
|
|
10013
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9885
10014
|
const { body } = response;
|
|
9886
10015
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9887
|
-
luvio.storeIngest(key, ingest$
|
|
10016
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9888
10017
|
const snapshot = luvio.storeLookup({
|
|
9889
10018
|
recordId: key,
|
|
9890
|
-
node: select$
|
|
10019
|
+
node: select$i(),
|
|
9891
10020
|
variables: {},
|
|
9892
10021
|
});
|
|
9893
10022
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9898,7 +10027,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
9898
10027
|
deepFreeze(snapshot.data);
|
|
9899
10028
|
return snapshot;
|
|
9900
10029
|
}
|
|
9901
|
-
function createResourceRequest$
|
|
10030
|
+
function createResourceRequest$d(config) {
|
|
9902
10031
|
const headers = {};
|
|
9903
10032
|
return {
|
|
9904
10033
|
baseUri: '/services/data/v63.0',
|
|
@@ -9912,7 +10041,7 @@ function createResourceRequest$c(config) {
|
|
|
9912
10041
|
};
|
|
9913
10042
|
}
|
|
9914
10043
|
|
|
9915
|
-
const adapterName$
|
|
10044
|
+
const adapterName$d = 'createSemanticModel';
|
|
9916
10045
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9917
10046
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9918
10047
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9933,17 +10062,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9933
10062
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9934
10063
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9935
10064
|
];
|
|
9936
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9937
|
-
const createResourceParams$
|
|
9938
|
-
function typeCheckConfig$
|
|
10065
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createSemanticModel_ConfigPropertyMetadata);
|
|
10066
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
10067
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9939
10068
|
const config = {};
|
|
9940
|
-
typeCheckConfig$
|
|
10069
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9941
10070
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9942
10071
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9943
10072
|
const untrustedConfig_baseModels_array = [];
|
|
9944
10073
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9945
10074
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9946
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10075
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$S(untrustedConfig_baseModels_item);
|
|
9947
10076
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9948
10077
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9949
10078
|
}
|
|
@@ -9955,7 +10084,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9955
10084
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9956
10085
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9957
10086
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9958
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10087
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$Q(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9959
10088
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9960
10089
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9961
10090
|
}
|
|
@@ -9967,7 +10096,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9967
10096
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9968
10097
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9969
10098
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9970
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10099
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$P(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9971
10100
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9972
10101
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9973
10102
|
}
|
|
@@ -9979,7 +10108,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9979
10108
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9980
10109
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9981
10110
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9982
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10111
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$M(untrustedConfig_semanticDataObjects_item);
|
|
9983
10112
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9984
10113
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9985
10114
|
}
|
|
@@ -9991,7 +10120,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9991
10120
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9992
10121
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9993
10122
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9994
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10123
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$F(untrustedConfig_semanticGroupings_item);
|
|
9995
10124
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9996
10125
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9997
10126
|
}
|
|
@@ -10003,7 +10132,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10003
10132
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10004
10133
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10005
10134
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10006
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10135
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$A(untrustedConfig_semanticLogicalViews_item);
|
|
10007
10136
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10008
10137
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10009
10138
|
}
|
|
@@ -10015,7 +10144,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10015
10144
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10016
10145
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10017
10146
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10018
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10147
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$w(untrustedConfig_semanticMetrics_item);
|
|
10019
10148
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10020
10149
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10021
10150
|
}
|
|
@@ -10027,7 +10156,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10027
10156
|
const untrustedConfig_semanticParameters_array = [];
|
|
10028
10157
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10029
10158
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10030
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10159
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$v(untrustedConfig_semanticParameters_item);
|
|
10031
10160
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10032
10161
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10033
10162
|
}
|
|
@@ -10039,7 +10168,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10039
10168
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10040
10169
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10041
10170
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10042
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10171
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$D(untrustedConfig_semanticRelationships_item);
|
|
10043
10172
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10044
10173
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10045
10174
|
}
|
|
@@ -10048,30 +10177,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10048
10177
|
}
|
|
10049
10178
|
return config;
|
|
10050
10179
|
}
|
|
10051
|
-
function validateAdapterConfig$
|
|
10180
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10052
10181
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10053
10182
|
return null;
|
|
10054
10183
|
}
|
|
10055
10184
|
if (process.env.NODE_ENV !== 'production') {
|
|
10056
10185
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10057
10186
|
}
|
|
10058
|
-
const config = typeCheckConfig$
|
|
10187
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10059
10188
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10060
10189
|
return null;
|
|
10061
10190
|
}
|
|
10062
10191
|
return config;
|
|
10063
10192
|
}
|
|
10064
|
-
function buildNetworkSnapshot$
|
|
10065
|
-
const resourceParams = createResourceParams$
|
|
10066
|
-
const request = createResourceRequest$
|
|
10193
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10194
|
+
const resourceParams = createResourceParams$d(config);
|
|
10195
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10067
10196
|
return luvio.dispatchResourceRequest(request, options)
|
|
10068
10197
|
.then((response) => {
|
|
10069
10198
|
return luvio.handleSuccessResponse(() => {
|
|
10070
|
-
const snapshot = ingestSuccess$
|
|
10199
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
10071
10200
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10072
10201
|
}, () => {
|
|
10073
10202
|
const cache = new StoreKeyMap();
|
|
10074
|
-
getResponseCacheKeys$
|
|
10203
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10075
10204
|
return cache;
|
|
10076
10205
|
});
|
|
10077
10206
|
}, (response) => {
|
|
@@ -10081,33 +10210,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10081
10210
|
}
|
|
10082
10211
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10083
10212
|
return function createSemanticModel(untrustedConfig) {
|
|
10084
|
-
const config = validateAdapterConfig$
|
|
10213
|
+
const config = validateAdapterConfig$d(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10085
10214
|
// Invalid or incomplete config
|
|
10086
10215
|
if (config === null) {
|
|
10087
10216
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10088
10217
|
}
|
|
10089
|
-
return buildNetworkSnapshot$
|
|
10218
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
10090
10219
|
};
|
|
10091
10220
|
};
|
|
10092
10221
|
|
|
10093
|
-
function select$
|
|
10094
|
-
return select$
|
|
10222
|
+
function select$h(luvio, params) {
|
|
10223
|
+
return select$j();
|
|
10095
10224
|
}
|
|
10096
|
-
function keyBuilder$
|
|
10097
|
-
return keyBuilder$
|
|
10225
|
+
function keyBuilder$i(luvio, params) {
|
|
10226
|
+
return keyBuilder$j(luvio, {
|
|
10098
10227
|
name: params.urlParams.modelApiNameOrId
|
|
10099
10228
|
});
|
|
10100
10229
|
}
|
|
10101
|
-
function getResponseCacheKeys$
|
|
10102
|
-
getTypeCacheKeys$
|
|
10230
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10231
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10103
10232
|
}
|
|
10104
|
-
function ingestSuccess$
|
|
10233
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
10105
10234
|
const { body } = response;
|
|
10106
|
-
const key = keyBuilder$
|
|
10107
|
-
luvio.storeIngest(key, ingest$
|
|
10235
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
10236
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10108
10237
|
const snapshot = luvio.storeLookup({
|
|
10109
10238
|
recordId: key,
|
|
10110
|
-
node: select$
|
|
10239
|
+
node: select$h(),
|
|
10111
10240
|
variables: {},
|
|
10112
10241
|
}, snapshotRefresh);
|
|
10113
10242
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10118,13 +10247,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10118
10247
|
deepFreeze(snapshot.data);
|
|
10119
10248
|
return snapshot;
|
|
10120
10249
|
}
|
|
10121
|
-
function ingestError$
|
|
10122
|
-
const key = keyBuilder$
|
|
10250
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
10251
|
+
const key = keyBuilder$i(luvio, params);
|
|
10123
10252
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10124
10253
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10125
10254
|
return errorSnapshot;
|
|
10126
10255
|
}
|
|
10127
|
-
function createResourceRequest$
|
|
10256
|
+
function createResourceRequest$c(config) {
|
|
10128
10257
|
const headers = {};
|
|
10129
10258
|
return {
|
|
10130
10259
|
baseUri: '/services/data/v63.0',
|
|
@@ -10138,108 +10267,108 @@ function createResourceRequest$b(config) {
|
|
|
10138
10267
|
};
|
|
10139
10268
|
}
|
|
10140
10269
|
|
|
10141
|
-
const adapterName$
|
|
10270
|
+
const adapterName$c = 'getSemanticModel';
|
|
10142
10271
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10143
10272
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10144
10273
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10145
10274
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10146
10275
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10147
10276
|
];
|
|
10148
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10149
|
-
const createResourceParams$
|
|
10150
|
-
function keyBuilder$
|
|
10151
|
-
const resourceParams = createResourceParams$
|
|
10152
|
-
return keyBuilder$
|
|
10277
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticModel_ConfigPropertyMetadata);
|
|
10278
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10279
|
+
function keyBuilder$h(luvio, config) {
|
|
10280
|
+
const resourceParams = createResourceParams$c(config);
|
|
10281
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
10153
10282
|
}
|
|
10154
|
-
function typeCheckConfig$
|
|
10283
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10155
10284
|
const config = {};
|
|
10156
|
-
typeCheckConfig$
|
|
10285
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10157
10286
|
return config;
|
|
10158
10287
|
}
|
|
10159
|
-
function validateAdapterConfig$
|
|
10288
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10160
10289
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10161
10290
|
return null;
|
|
10162
10291
|
}
|
|
10163
10292
|
if (process.env.NODE_ENV !== 'production') {
|
|
10164
10293
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10165
10294
|
}
|
|
10166
|
-
const config = typeCheckConfig$
|
|
10295
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10167
10296
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10168
10297
|
return null;
|
|
10169
10298
|
}
|
|
10170
10299
|
return config;
|
|
10171
10300
|
}
|
|
10172
|
-
function adapterFragment$
|
|
10173
|
-
createResourceParams$
|
|
10174
|
-
return select$
|
|
10301
|
+
function adapterFragment$7(luvio, config) {
|
|
10302
|
+
createResourceParams$c(config);
|
|
10303
|
+
return select$h();
|
|
10175
10304
|
}
|
|
10176
|
-
function onFetchResponseSuccess$
|
|
10177
|
-
const snapshot = ingestSuccess$
|
|
10305
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
10306
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
10178
10307
|
config,
|
|
10179
|
-
resolve: () => buildNetworkSnapshot$
|
|
10308
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10180
10309
|
});
|
|
10181
10310
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10182
10311
|
}
|
|
10183
|
-
function onFetchResponseError$
|
|
10184
|
-
const snapshot = ingestError$
|
|
10312
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
10313
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
10185
10314
|
config,
|
|
10186
|
-
resolve: () => buildNetworkSnapshot$
|
|
10315
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10187
10316
|
});
|
|
10188
10317
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10189
10318
|
}
|
|
10190
|
-
function buildNetworkSnapshot$
|
|
10191
|
-
const resourceParams = createResourceParams$
|
|
10192
|
-
const request = createResourceRequest$
|
|
10319
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10320
|
+
const resourceParams = createResourceParams$c(config);
|
|
10321
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10193
10322
|
return luvio.dispatchResourceRequest(request, options)
|
|
10194
10323
|
.then((response) => {
|
|
10195
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
10324
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
10196
10325
|
const cache = new StoreKeyMap();
|
|
10197
|
-
getResponseCacheKeys$
|
|
10326
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10198
10327
|
return cache;
|
|
10199
10328
|
});
|
|
10200
10329
|
}, (response) => {
|
|
10201
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
10330
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
10202
10331
|
});
|
|
10203
10332
|
}
|
|
10204
|
-
function buildNetworkSnapshotCachePolicy$
|
|
10205
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10333
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
10334
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10206
10335
|
}
|
|
10207
|
-
function buildCachedSnapshotCachePolicy$
|
|
10336
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
10208
10337
|
const { luvio, config } = context;
|
|
10209
10338
|
const selector = {
|
|
10210
|
-
recordId: keyBuilder$
|
|
10211
|
-
node: adapterFragment$
|
|
10339
|
+
recordId: keyBuilder$h(luvio, config),
|
|
10340
|
+
node: adapterFragment$7(luvio, config),
|
|
10212
10341
|
variables: {},
|
|
10213
10342
|
};
|
|
10214
10343
|
const cacheSnapshot = storeLookup(selector, {
|
|
10215
10344
|
config,
|
|
10216
|
-
resolve: () => buildNetworkSnapshot$
|
|
10345
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10217
10346
|
});
|
|
10218
10347
|
return cacheSnapshot;
|
|
10219
10348
|
}
|
|
10220
10349
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10221
|
-
const config = validateAdapterConfig$
|
|
10350
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10222
10351
|
// Invalid or incomplete config
|
|
10223
10352
|
if (config === null) {
|
|
10224
10353
|
return null;
|
|
10225
10354
|
}
|
|
10226
10355
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10227
|
-
buildCachedSnapshotCachePolicy$
|
|
10356
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
10228
10357
|
};
|
|
10229
10358
|
|
|
10230
|
-
function select$
|
|
10231
|
-
return select$
|
|
10359
|
+
function select$g(luvio, params) {
|
|
10360
|
+
return select$j();
|
|
10232
10361
|
}
|
|
10233
|
-
function getResponseCacheKeys$
|
|
10234
|
-
getTypeCacheKeys$
|
|
10362
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10363
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10235
10364
|
}
|
|
10236
|
-
function ingestSuccess$
|
|
10365
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
10237
10366
|
const { body } = response;
|
|
10238
10367
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10239
|
-
luvio.storeIngest(key, ingest$
|
|
10368
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10240
10369
|
const snapshot = luvio.storeLookup({
|
|
10241
10370
|
recordId: key,
|
|
10242
|
-
node: select$
|
|
10371
|
+
node: select$g(),
|
|
10243
10372
|
variables: {},
|
|
10244
10373
|
});
|
|
10245
10374
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10250,7 +10379,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
10250
10379
|
deepFreeze(snapshot.data);
|
|
10251
10380
|
return snapshot;
|
|
10252
10381
|
}
|
|
10253
|
-
function createResourceRequest$
|
|
10382
|
+
function createResourceRequest$b(config) {
|
|
10254
10383
|
const headers = {};
|
|
10255
10384
|
return {
|
|
10256
10385
|
baseUri: '/services/data/v63.0',
|
|
@@ -10264,7 +10393,7 @@ function createResourceRequest$a(config) {
|
|
|
10264
10393
|
};
|
|
10265
10394
|
}
|
|
10266
10395
|
|
|
10267
|
-
const adapterName$
|
|
10396
|
+
const adapterName$b = 'patchSemanticModel';
|
|
10268
10397
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10269
10398
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10270
10399
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10286,17 +10415,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10286
10415
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10287
10416
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10288
10417
|
];
|
|
10289
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10290
|
-
const createResourceParams$
|
|
10291
|
-
function typeCheckConfig$
|
|
10418
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, patchSemanticModel_ConfigPropertyMetadata);
|
|
10419
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
10420
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10292
10421
|
const config = {};
|
|
10293
|
-
typeCheckConfig$
|
|
10422
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10294
10423
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10295
10424
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10296
10425
|
const untrustedConfig_baseModels_array = [];
|
|
10297
10426
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10298
10427
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10299
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10428
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$S(untrustedConfig_baseModels_item);
|
|
10300
10429
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10301
10430
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10302
10431
|
}
|
|
@@ -10308,7 +10437,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10308
10437
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10309
10438
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10310
10439
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10311
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10440
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$Q(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10312
10441
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10313
10442
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10314
10443
|
}
|
|
@@ -10320,7 +10449,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10320
10449
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10321
10450
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10322
10451
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10323
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10452
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$P(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10324
10453
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10325
10454
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10326
10455
|
}
|
|
@@ -10332,7 +10461,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10332
10461
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10333
10462
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10334
10463
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10335
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10464
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$M(untrustedConfig_semanticDataObjects_item);
|
|
10336
10465
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10337
10466
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10338
10467
|
}
|
|
@@ -10344,7 +10473,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10344
10473
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10345
10474
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10346
10475
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10347
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10476
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$F(untrustedConfig_semanticGroupings_item);
|
|
10348
10477
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10349
10478
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10350
10479
|
}
|
|
@@ -10356,7 +10485,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10356
10485
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10357
10486
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10358
10487
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10359
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10488
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$A(untrustedConfig_semanticLogicalViews_item);
|
|
10360
10489
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10361
10490
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10362
10491
|
}
|
|
@@ -10368,7 +10497,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10368
10497
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10369
10498
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10370
10499
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10371
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10500
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$w(untrustedConfig_semanticMetrics_item);
|
|
10372
10501
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10373
10502
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10374
10503
|
}
|
|
@@ -10380,7 +10509,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10380
10509
|
const untrustedConfig_semanticParameters_array = [];
|
|
10381
10510
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10382
10511
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10383
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10512
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$v(untrustedConfig_semanticParameters_item);
|
|
10384
10513
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10385
10514
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10386
10515
|
}
|
|
@@ -10392,7 +10521,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10392
10521
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10393
10522
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10394
10523
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10395
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10524
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$D(untrustedConfig_semanticRelationships_item);
|
|
10396
10525
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10397
10526
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10398
10527
|
}
|
|
@@ -10401,30 +10530,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10401
10530
|
}
|
|
10402
10531
|
return config;
|
|
10403
10532
|
}
|
|
10404
|
-
function validateAdapterConfig$
|
|
10533
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10405
10534
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10406
10535
|
return null;
|
|
10407
10536
|
}
|
|
10408
10537
|
if (process.env.NODE_ENV !== 'production') {
|
|
10409
10538
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10410
10539
|
}
|
|
10411
|
-
const config = typeCheckConfig$
|
|
10540
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10412
10541
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10413
10542
|
return null;
|
|
10414
10543
|
}
|
|
10415
10544
|
return config;
|
|
10416
10545
|
}
|
|
10417
|
-
function buildNetworkSnapshot$
|
|
10418
|
-
const resourceParams = createResourceParams$
|
|
10419
|
-
const request = createResourceRequest$
|
|
10420
|
-
return luvio.dispatchResourceRequest(request, options)
|
|
10546
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10547
|
+
const resourceParams = createResourceParams$b(config);
|
|
10548
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10549
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
10421
10550
|
.then((response) => {
|
|
10422
10551
|
return luvio.handleSuccessResponse(() => {
|
|
10423
|
-
const snapshot = ingestSuccess$
|
|
10552
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
10424
10553
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10425
10554
|
}, () => {
|
|
10426
10555
|
const cache = new StoreKeyMap();
|
|
10427
|
-
getResponseCacheKeys$
|
|
10556
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10428
10557
|
return cache;
|
|
10429
10558
|
});
|
|
10430
10559
|
}, (response) => {
|
|
@@ -10434,15 +10563,464 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10434
10563
|
}
|
|
10435
10564
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10436
10565
|
return function patchSemanticModel(untrustedConfig) {
|
|
10437
|
-
const config = validateAdapterConfig$
|
|
10566
|
+
const config = validateAdapterConfig$b(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10438
10567
|
// Invalid or incomplete config
|
|
10439
10568
|
if (config === null) {
|
|
10440
10569
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10441
10570
|
}
|
|
10442
|
-
return buildNetworkSnapshot$
|
|
10571
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
10443
10572
|
};
|
|
10444
10573
|
};
|
|
10445
10574
|
|
|
10575
|
+
const VERSION$6 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
10576
|
+
function validate$c(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
10577
|
+
const v_error = (() => {
|
|
10578
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10579
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10580
|
+
}
|
|
10581
|
+
const obj_apiName = obj.apiName;
|
|
10582
|
+
const path_apiName = path + '.apiName';
|
|
10583
|
+
if (typeof obj_apiName !== 'string') {
|
|
10584
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10585
|
+
}
|
|
10586
|
+
if (obj.definitionType !== undefined) {
|
|
10587
|
+
const obj_definitionType = obj.definitionType;
|
|
10588
|
+
const path_definitionType = path + '.definitionType';
|
|
10589
|
+
if (typeof obj_definitionType !== 'string') {
|
|
10590
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
10591
|
+
}
|
|
10592
|
+
}
|
|
10593
|
+
if (obj.label !== undefined) {
|
|
10594
|
+
const obj_label = obj.label;
|
|
10595
|
+
const path_label = path + '.label';
|
|
10596
|
+
if (typeof obj_label !== 'string') {
|
|
10597
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
10598
|
+
}
|
|
10599
|
+
}
|
|
10600
|
+
if (obj.modelApiName !== undefined) {
|
|
10601
|
+
const obj_modelApiName = obj.modelApiName;
|
|
10602
|
+
const path_modelApiName = path + '.modelApiName';
|
|
10603
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
10604
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
10605
|
+
}
|
|
10606
|
+
}
|
|
10607
|
+
})();
|
|
10608
|
+
return v_error === undefined ? null : v_error;
|
|
10609
|
+
}
|
|
10610
|
+
const select$f = function SemanticDependencyOutputRepresentationSelect() {
|
|
10611
|
+
return {
|
|
10612
|
+
kind: 'Fragment',
|
|
10613
|
+
version: VERSION$6,
|
|
10614
|
+
private: [],
|
|
10615
|
+
selections: [
|
|
10616
|
+
{
|
|
10617
|
+
name: 'apiName',
|
|
10618
|
+
kind: 'Scalar'
|
|
10619
|
+
},
|
|
10620
|
+
{
|
|
10621
|
+
name: 'definitionType',
|
|
10622
|
+
kind: 'Scalar',
|
|
10623
|
+
required: false
|
|
10624
|
+
},
|
|
10625
|
+
{
|
|
10626
|
+
name: 'label',
|
|
10627
|
+
kind: 'Scalar',
|
|
10628
|
+
required: false
|
|
10629
|
+
},
|
|
10630
|
+
{
|
|
10631
|
+
name: 'modelApiName',
|
|
10632
|
+
kind: 'Scalar',
|
|
10633
|
+
required: false
|
|
10634
|
+
}
|
|
10635
|
+
]
|
|
10636
|
+
};
|
|
10637
|
+
};
|
|
10638
|
+
function equals$6(existing, incoming) {
|
|
10639
|
+
const existing_apiName = existing.apiName;
|
|
10640
|
+
const incoming_apiName = incoming.apiName;
|
|
10641
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
10642
|
+
return false;
|
|
10643
|
+
}
|
|
10644
|
+
const existing_definitionType = existing.definitionType;
|
|
10645
|
+
const incoming_definitionType = incoming.definitionType;
|
|
10646
|
+
// if at least one of these optionals is defined
|
|
10647
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
10648
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10649
|
+
// not equal
|
|
10650
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
10651
|
+
return false;
|
|
10652
|
+
}
|
|
10653
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
10654
|
+
return false;
|
|
10655
|
+
}
|
|
10656
|
+
}
|
|
10657
|
+
const existing_label = existing.label;
|
|
10658
|
+
const incoming_label = incoming.label;
|
|
10659
|
+
// if at least one of these optionals is defined
|
|
10660
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
10661
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10662
|
+
// not equal
|
|
10663
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
10664
|
+
return false;
|
|
10665
|
+
}
|
|
10666
|
+
if (!(existing_label === incoming_label)) {
|
|
10667
|
+
return false;
|
|
10668
|
+
}
|
|
10669
|
+
}
|
|
10670
|
+
const existing_modelApiName = existing.modelApiName;
|
|
10671
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
10672
|
+
// if at least one of these optionals is defined
|
|
10673
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
10674
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10675
|
+
// not equal
|
|
10676
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
10677
|
+
return false;
|
|
10678
|
+
}
|
|
10679
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
10680
|
+
return false;
|
|
10681
|
+
}
|
|
10682
|
+
}
|
|
10683
|
+
return true;
|
|
10684
|
+
}
|
|
10685
|
+
|
|
10686
|
+
const VERSION$5 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
10687
|
+
function validate$b(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
10688
|
+
const v_error = (() => {
|
|
10689
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10690
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10691
|
+
}
|
|
10692
|
+
if (obj.definitionApiName !== undefined) {
|
|
10693
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
10694
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
10695
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
10696
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
10697
|
+
}
|
|
10698
|
+
}
|
|
10699
|
+
if (obj.dependencies !== undefined) {
|
|
10700
|
+
const obj_dependencies = obj.dependencies;
|
|
10701
|
+
const path_dependencies = path + '.dependencies';
|
|
10702
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
10703
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
10704
|
+
}
|
|
10705
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
10706
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
10707
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
10708
|
+
const referencepath_dependencies_itemValidationError = validate$c(obj_dependencies_item, path_dependencies_item);
|
|
10709
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
10710
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
10711
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10712
|
+
return new TypeError(message);
|
|
10713
|
+
}
|
|
10714
|
+
}
|
|
10715
|
+
}
|
|
10716
|
+
if (obj.fieldApiName !== undefined) {
|
|
10717
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
10718
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
10719
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
10720
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
10721
|
+
}
|
|
10722
|
+
}
|
|
10723
|
+
})();
|
|
10724
|
+
return v_error === undefined ? null : v_error;
|
|
10725
|
+
}
|
|
10726
|
+
const select$e = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10727
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$f();
|
|
10728
|
+
return {
|
|
10729
|
+
kind: 'Fragment',
|
|
10730
|
+
version: VERSION$5,
|
|
10731
|
+
private: [],
|
|
10732
|
+
selections: [
|
|
10733
|
+
{
|
|
10734
|
+
name: 'definitionApiName',
|
|
10735
|
+
kind: 'Scalar',
|
|
10736
|
+
required: false
|
|
10737
|
+
},
|
|
10738
|
+
{
|
|
10739
|
+
name: 'dependencies',
|
|
10740
|
+
kind: 'Object',
|
|
10741
|
+
plural: true,
|
|
10742
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
10743
|
+
required: false
|
|
10744
|
+
},
|
|
10745
|
+
{
|
|
10746
|
+
name: 'fieldApiName',
|
|
10747
|
+
kind: 'Scalar',
|
|
10748
|
+
required: false
|
|
10749
|
+
}
|
|
10750
|
+
]
|
|
10751
|
+
};
|
|
10752
|
+
};
|
|
10753
|
+
function equals$5(existing, incoming) {
|
|
10754
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
10755
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
10756
|
+
// if at least one of these optionals is defined
|
|
10757
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
10758
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10759
|
+
// not equal
|
|
10760
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
10761
|
+
return false;
|
|
10762
|
+
}
|
|
10763
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
10764
|
+
return false;
|
|
10765
|
+
}
|
|
10766
|
+
}
|
|
10767
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
10768
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
10769
|
+
// if at least one of these optionals is defined
|
|
10770
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
10771
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10772
|
+
// not equal
|
|
10773
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
10774
|
+
return false;
|
|
10775
|
+
}
|
|
10776
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
10777
|
+
return false;
|
|
10778
|
+
}
|
|
10779
|
+
}
|
|
10780
|
+
const existing_dependencies = existing.dependencies;
|
|
10781
|
+
const incoming_dependencies = incoming.dependencies;
|
|
10782
|
+
// if at least one of these optionals is defined
|
|
10783
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
10784
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10785
|
+
// not equal
|
|
10786
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
10787
|
+
return false;
|
|
10788
|
+
}
|
|
10789
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
10790
|
+
if (!(equals$6(existing_dependencies_item, incoming_dependencies_item))) {
|
|
10791
|
+
return false;
|
|
10792
|
+
}
|
|
10793
|
+
});
|
|
10794
|
+
if (equals_dependencies_items === false) {
|
|
10795
|
+
return false;
|
|
10796
|
+
}
|
|
10797
|
+
}
|
|
10798
|
+
return true;
|
|
10799
|
+
}
|
|
10800
|
+
|
|
10801
|
+
const VERSION$4 = "e710141192798ab103ce7e9b469baad4";
|
|
10802
|
+
function validate$a(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
10803
|
+
const v_error = (() => {
|
|
10804
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10805
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10806
|
+
}
|
|
10807
|
+
if (obj.item !== undefined) {
|
|
10808
|
+
const obj_item = obj.item;
|
|
10809
|
+
const path_item = path + '.item';
|
|
10810
|
+
if (!ArrayIsArray(obj_item)) {
|
|
10811
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
10812
|
+
}
|
|
10813
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
10814
|
+
const obj_item_item = obj_item[i];
|
|
10815
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
10816
|
+
const referencepath_item_itemValidationError = validate$b(obj_item_item, path_item_item);
|
|
10817
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
10818
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
10819
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10820
|
+
return new TypeError(message);
|
|
10821
|
+
}
|
|
10822
|
+
}
|
|
10823
|
+
}
|
|
10824
|
+
})();
|
|
10825
|
+
return v_error === undefined ? null : v_error;
|
|
10826
|
+
}
|
|
10827
|
+
const RepresentationType$4 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
10828
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
10829
|
+
return input;
|
|
10830
|
+
}
|
|
10831
|
+
const select$d = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10832
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$e();
|
|
10833
|
+
return {
|
|
10834
|
+
kind: 'Fragment',
|
|
10835
|
+
version: VERSION$4,
|
|
10836
|
+
private: [],
|
|
10837
|
+
selections: [
|
|
10838
|
+
{
|
|
10839
|
+
name: 'item',
|
|
10840
|
+
kind: 'Object',
|
|
10841
|
+
plural: true,
|
|
10842
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
10843
|
+
required: false
|
|
10844
|
+
}
|
|
10845
|
+
]
|
|
10846
|
+
};
|
|
10847
|
+
};
|
|
10848
|
+
function equals$4(existing, incoming) {
|
|
10849
|
+
const existing_item = existing.item;
|
|
10850
|
+
const incoming_item = incoming.item;
|
|
10851
|
+
// if at least one of these optionals is defined
|
|
10852
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
10853
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10854
|
+
// not equal
|
|
10855
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
10856
|
+
return false;
|
|
10857
|
+
}
|
|
10858
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
10859
|
+
if (!(equals$5(existing_item_item, incoming_item_item))) {
|
|
10860
|
+
return false;
|
|
10861
|
+
}
|
|
10862
|
+
});
|
|
10863
|
+
if (equals_item_items === false) {
|
|
10864
|
+
return false;
|
|
10865
|
+
}
|
|
10866
|
+
}
|
|
10867
|
+
return true;
|
|
10868
|
+
}
|
|
10869
|
+
const ingest$4 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10870
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10871
|
+
const validateError = validate$a(input);
|
|
10872
|
+
if (validateError !== null) {
|
|
10873
|
+
throw validateError;
|
|
10874
|
+
}
|
|
10875
|
+
}
|
|
10876
|
+
const key = path.fullPath;
|
|
10877
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10878
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
|
|
10879
|
+
return createLink(key);
|
|
10880
|
+
};
|
|
10881
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
10882
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
10883
|
+
const rootKey = fullPathFactory();
|
|
10884
|
+
rootKeySet.set(rootKey, {
|
|
10885
|
+
namespace: keyPrefix,
|
|
10886
|
+
representationName: RepresentationType$4,
|
|
10887
|
+
mergeable: false
|
|
10888
|
+
});
|
|
10889
|
+
}
|
|
10890
|
+
|
|
10891
|
+
function select$c(luvio, params) {
|
|
10892
|
+
return select$d();
|
|
10893
|
+
}
|
|
10894
|
+
function keyBuilder$g(luvio, params) {
|
|
10895
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10896
|
+
}
|
|
10897
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10898
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
10899
|
+
}
|
|
10900
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
10901
|
+
const { body } = response;
|
|
10902
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10903
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
10904
|
+
const snapshot = luvio.storeLookup({
|
|
10905
|
+
recordId: key,
|
|
10906
|
+
node: select$c(),
|
|
10907
|
+
variables: {},
|
|
10908
|
+
}, snapshotRefresh);
|
|
10909
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10910
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
10911
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
10912
|
+
}
|
|
10913
|
+
}
|
|
10914
|
+
deepFreeze(snapshot.data);
|
|
10915
|
+
return snapshot;
|
|
10916
|
+
}
|
|
10917
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10918
|
+
const key = keyBuilder$g(luvio, params);
|
|
10919
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10920
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
10921
|
+
return errorSnapshot;
|
|
10922
|
+
}
|
|
10923
|
+
function createResourceRequest$a(config) {
|
|
10924
|
+
const headers = {};
|
|
10925
|
+
return {
|
|
10926
|
+
baseUri: '/services/data/v63.0',
|
|
10927
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
10928
|
+
method: 'get',
|
|
10929
|
+
body: null,
|
|
10930
|
+
urlParams: config.urlParams,
|
|
10931
|
+
queryParams: config.queryParams,
|
|
10932
|
+
headers,
|
|
10933
|
+
priority: 'normal',
|
|
10934
|
+
};
|
|
10935
|
+
}
|
|
10936
|
+
|
|
10937
|
+
const adapterName$a = 'getLeafDependenciesByTypes';
|
|
10938
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10939
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10940
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10941
|
+
];
|
|
10942
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10943
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10944
|
+
function keyBuilder$f(luvio, config) {
|
|
10945
|
+
const resourceParams = createResourceParams$a(config);
|
|
10946
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10947
|
+
}
|
|
10948
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10949
|
+
const config = {};
|
|
10950
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10951
|
+
return config;
|
|
10952
|
+
}
|
|
10953
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10954
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
10955
|
+
return null;
|
|
10956
|
+
}
|
|
10957
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10958
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
10959
|
+
}
|
|
10960
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10961
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10962
|
+
return null;
|
|
10963
|
+
}
|
|
10964
|
+
return config;
|
|
10965
|
+
}
|
|
10966
|
+
function adapterFragment$6(luvio, config) {
|
|
10967
|
+
createResourceParams$a(config);
|
|
10968
|
+
return select$c();
|
|
10969
|
+
}
|
|
10970
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10971
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
10972
|
+
config,
|
|
10973
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10974
|
+
});
|
|
10975
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10976
|
+
}
|
|
10977
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10978
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10979
|
+
config,
|
|
10980
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10981
|
+
});
|
|
10982
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10983
|
+
}
|
|
10984
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10985
|
+
const resourceParams = createResourceParams$a(config);
|
|
10986
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10987
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
10988
|
+
.then((response) => {
|
|
10989
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10990
|
+
const cache = new StoreKeyMap();
|
|
10991
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10992
|
+
return cache;
|
|
10993
|
+
});
|
|
10994
|
+
}, (response) => {
|
|
10995
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
10996
|
+
});
|
|
10997
|
+
}
|
|
10998
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10999
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
11000
|
+
}
|
|
11001
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
11002
|
+
const { luvio, config } = context;
|
|
11003
|
+
const selector = {
|
|
11004
|
+
recordId: keyBuilder$f(luvio, config),
|
|
11005
|
+
node: adapterFragment$6(luvio, config),
|
|
11006
|
+
variables: {},
|
|
11007
|
+
};
|
|
11008
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
11009
|
+
config,
|
|
11010
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
11011
|
+
});
|
|
11012
|
+
return cacheSnapshot;
|
|
11013
|
+
}
|
|
11014
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
11015
|
+
const config = validateAdapterConfig$a(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
11016
|
+
// Invalid or incomplete config
|
|
11017
|
+
if (config === null) {
|
|
11018
|
+
return null;
|
|
11019
|
+
}
|
|
11020
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
11021
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
11022
|
+
};
|
|
11023
|
+
|
|
10446
11024
|
function validate$9(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
10447
11025
|
const v_error = (() => {
|
|
10448
11026
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10601,7 +11179,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10601
11179
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
10602
11180
|
const obj_filters_item = obj_filters[i];
|
|
10603
11181
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
10604
|
-
const referencepath_filters_itemValidationError = validate
|
|
11182
|
+
const referencepath_filters_itemValidationError = validate$$(obj_filters_item, path_filters_item);
|
|
10605
11183
|
if (referencepath_filters_itemValidationError !== null) {
|
|
10606
11184
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
10607
11185
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10655,7 +11233,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10655
11233
|
if (obj.semanticMetric !== undefined) {
|
|
10656
11234
|
const obj_semanticMetric = obj.semanticMetric;
|
|
10657
11235
|
const path_semanticMetric = path + '.semanticMetric';
|
|
10658
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
11236
|
+
const referencepath_semanticMetricValidationError = validate$X(obj_semanticMetric, path_semanticMetric);
|
|
10659
11237
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
10660
11238
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
10661
11239
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11021,14 +11599,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
11021
11599
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11022
11600
|
];
|
|
11023
11601
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11024
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
11602
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11025
11603
|
function keyBuilder$c(luvio, config) {
|
|
11026
11604
|
const resourceParams = createResourceParams$9(config);
|
|
11027
11605
|
return keyBuilder$d(luvio, resourceParams);
|
|
11028
11606
|
}
|
|
11029
11607
|
function typeCheckConfig$9(untrustedConfig) {
|
|
11030
11608
|
const config = {};
|
|
11031
|
-
typeCheckConfig$
|
|
11609
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11032
11610
|
return config;
|
|
11033
11611
|
}
|
|
11034
11612
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -11077,7 +11655,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
11077
11655
|
});
|
|
11078
11656
|
}
|
|
11079
11657
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11080
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11658
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11081
11659
|
}
|
|
11082
11660
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11083
11661
|
const { luvio, config } = context;
|
|
@@ -11103,18 +11681,18 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11103
11681
|
};
|
|
11104
11682
|
|
|
11105
11683
|
function select$7(luvio, params) {
|
|
11106
|
-
return select$
|
|
11684
|
+
return select$E();
|
|
11107
11685
|
}
|
|
11108
11686
|
function keyBuilder$b(luvio, params) {
|
|
11109
11687
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11110
11688
|
}
|
|
11111
11689
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11112
|
-
getTypeCacheKeys$
|
|
11690
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11113
11691
|
}
|
|
11114
11692
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11115
11693
|
const { body } = response;
|
|
11116
11694
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
11117
|
-
luvio.storeIngest(key, ingest$
|
|
11695
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
11118
11696
|
const snapshot = luvio.storeLookup({
|
|
11119
11697
|
recordId: key,
|
|
11120
11698
|
node: select$7(),
|
|
@@ -11153,14 +11731,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
11153
11731
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11154
11732
|
];
|
|
11155
11733
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11156
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
11734
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11157
11735
|
function keyBuilder$a(luvio, config) {
|
|
11158
11736
|
const resourceParams = createResourceParams$8(config);
|
|
11159
11737
|
return keyBuilder$b(luvio, resourceParams);
|
|
11160
11738
|
}
|
|
11161
11739
|
function typeCheckConfig$8(untrustedConfig) {
|
|
11162
11740
|
const config = {};
|
|
11163
|
-
typeCheckConfig$
|
|
11741
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11164
11742
|
return config;
|
|
11165
11743
|
}
|
|
11166
11744
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -11209,7 +11787,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
11209
11787
|
});
|
|
11210
11788
|
}
|
|
11211
11789
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11212
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11790
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11213
11791
|
}
|
|
11214
11792
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11215
11793
|
const { luvio, config } = context;
|
|
@@ -11235,20 +11813,20 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11235
11813
|
};
|
|
11236
11814
|
|
|
11237
11815
|
function select$6(luvio, params) {
|
|
11238
|
-
return select$
|
|
11816
|
+
return select$F();
|
|
11239
11817
|
}
|
|
11240
11818
|
function keyBuilder$9(luvio, params) {
|
|
11241
|
-
return keyBuilder$
|
|
11819
|
+
return keyBuilder$x(luvio, {
|
|
11242
11820
|
name: params.urlParams.metricNameOrId
|
|
11243
11821
|
});
|
|
11244
11822
|
}
|
|
11245
11823
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11246
|
-
getTypeCacheKeys$
|
|
11824
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
11247
11825
|
}
|
|
11248
11826
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11249
11827
|
const { body } = response;
|
|
11250
11828
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
11251
|
-
luvio.storeIngest(key, ingest$
|
|
11829
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
11252
11830
|
const snapshot = luvio.storeLookup({
|
|
11253
11831
|
recordId: key,
|
|
11254
11832
|
node: select$6(),
|
|
@@ -11288,14 +11866,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
11288
11866
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11289
11867
|
];
|
|
11290
11868
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11291
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11869
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
11292
11870
|
function keyBuilder$8(luvio, config) {
|
|
11293
11871
|
const resourceParams = createResourceParams$7(config);
|
|
11294
11872
|
return keyBuilder$9(luvio, resourceParams);
|
|
11295
11873
|
}
|
|
11296
11874
|
function typeCheckConfig$7(untrustedConfig) {
|
|
11297
11875
|
const config = {};
|
|
11298
|
-
typeCheckConfig$
|
|
11876
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11299
11877
|
return config;
|
|
11300
11878
|
}
|
|
11301
11879
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -11344,7 +11922,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11344
11922
|
});
|
|
11345
11923
|
}
|
|
11346
11924
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11347
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11925
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11348
11926
|
}
|
|
11349
11927
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11350
11928
|
const { luvio, config } = context;
|
|
@@ -11531,14 +12109,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11531
12109
|
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11532
12110
|
];
|
|
11533
12111
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11534
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
12112
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11535
12113
|
function keyBuilder$6(luvio, config) {
|
|
11536
12114
|
const resourceParams = createResourceParams$6(config);
|
|
11537
12115
|
return keyBuilder$7(luvio, resourceParams);
|
|
11538
12116
|
}
|
|
11539
12117
|
function typeCheckConfig$6(untrustedConfig) {
|
|
11540
12118
|
const config = {};
|
|
11541
|
-
typeCheckConfig$
|
|
12119
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11542
12120
|
return config;
|
|
11543
12121
|
}
|
|
11544
12122
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11587,7 +12165,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11587
12165
|
});
|
|
11588
12166
|
}
|
|
11589
12167
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11590
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12168
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11591
12169
|
}
|
|
11592
12170
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11593
12171
|
const { luvio, config } = context;
|
|
@@ -11776,16 +12354,16 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11776
12354
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11777
12355
|
];
|
|
11778
12356
|
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11779
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
12357
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11780
12358
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11781
12359
|
const config = {};
|
|
11782
|
-
typeCheckConfig$
|
|
12360
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11783
12361
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11784
12362
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11785
12363
|
const untrustedConfig_filters_array = [];
|
|
11786
12364
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11787
12365
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11788
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
12366
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$R(untrustedConfig_filters_item);
|
|
11789
12367
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11790
12368
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11791
12369
|
}
|
|
@@ -11883,10 +12461,10 @@ const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11883
12461
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11884
12462
|
];
|
|
11885
12463
|
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11886
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
12464
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11887
12465
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11888
12466
|
const config = {};
|
|
11889
|
-
typeCheckConfig$
|
|
12467
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11890
12468
|
return config;
|
|
11891
12469
|
}
|
|
11892
12470
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11985,14 +12563,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11985
12563
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11986
12564
|
];
|
|
11987
12565
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11988
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12566
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11989
12567
|
function keyBuilder$3(luvio, config) {
|
|
11990
12568
|
const resourceParams = createResourceParams$3(config);
|
|
11991
12569
|
return keyBuilder$4(luvio, resourceParams);
|
|
11992
12570
|
}
|
|
11993
12571
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11994
12572
|
const config = {};
|
|
11995
|
-
typeCheckConfig$
|
|
12573
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11996
12574
|
return config;
|
|
11997
12575
|
}
|
|
11998
12576
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -12041,7 +12619,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
12041
12619
|
});
|
|
12042
12620
|
}
|
|
12043
12621
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
12044
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12622
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
12045
12623
|
}
|
|
12046
12624
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
12047
12625
|
const { luvio, config } = context;
|
|
@@ -12103,10 +12681,10 @@ const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
|
12103
12681
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12104
12682
|
];
|
|
12105
12683
|
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12106
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12684
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12107
12685
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12108
12686
|
const config = {};
|
|
12109
|
-
typeCheckConfig$
|
|
12687
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12110
12688
|
return config;
|
|
12111
12689
|
}
|
|
12112
12690
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -12196,10 +12774,10 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
12196
12774
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12197
12775
|
];
|
|
12198
12776
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12199
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12777
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12200
12778
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12201
12779
|
const config = {};
|
|
12202
|
-
typeCheckConfig$
|
|
12780
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12203
12781
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12204
12782
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12205
12783
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -12260,7 +12838,7 @@ function select(luvio, params) {
|
|
|
12260
12838
|
return select$5();
|
|
12261
12839
|
}
|
|
12262
12840
|
function keyBuilder$1(luvio, params) {
|
|
12263
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12841
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12264
12842
|
}
|
|
12265
12843
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12266
12844
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -12296,7 +12874,7 @@ function createResourceRequest(config) {
|
|
|
12296
12874
|
method: 'get',
|
|
12297
12875
|
body: null,
|
|
12298
12876
|
urlParams: config.urlParams,
|
|
12299
|
-
queryParams:
|
|
12877
|
+
queryParams: config.queryParams,
|
|
12300
12878
|
headers,
|
|
12301
12879
|
priority: 'normal',
|
|
12302
12880
|
};
|
|
@@ -12305,16 +12883,18 @@ function createResourceRequest(config) {
|
|
|
12305
12883
|
const adapterName = 'getSemanticSubMetricsById';
|
|
12306
12884
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
12307
12885
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12886
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12887
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12308
12888
|
];
|
|
12309
12889
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12310
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12890
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12311
12891
|
function keyBuilder(luvio, config) {
|
|
12312
12892
|
const resourceParams = createResourceParams(config);
|
|
12313
12893
|
return keyBuilder$1(luvio, resourceParams);
|
|
12314
12894
|
}
|
|
12315
12895
|
function typeCheckConfig(untrustedConfig) {
|
|
12316
12896
|
const config = {};
|
|
12317
|
-
typeCheckConfig$
|
|
12897
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12318
12898
|
return config;
|
|
12319
12899
|
}
|
|
12320
12900
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12363,7 +12943,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
12363
12943
|
});
|
|
12364
12944
|
}
|
|
12365
12945
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12366
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12946
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
12367
12947
|
}
|
|
12368
12948
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12369
12949
|
const { luvio, config } = context;
|
|
@@ -12388,4 +12968,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12388
12968
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12389
12969
|
};
|
|
12390
12970
|
|
|
12391
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12971
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|