@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev6 → 1.332.0-dev7
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 +1176 -725
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/package.json +3 -3
- package/sfdc/index.js +1061 -599
- package/src/raml/api.raml +37 -0
- package/src/raml/luvio.raml +4 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a, typeCheckConfig as typeCheckConfig$g, StoreKeyMap, createResourceParams as createResourceParams$g } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,8 +92,8 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
const VERSION$
|
|
96
|
-
function validate$
|
|
95
|
+
const VERSION$w = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
+
function validate$10(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$K = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
|
-
version: VERSION$
|
|
121
|
+
version: VERSION$w,
|
|
122
122
|
private: [],
|
|
123
123
|
selections: [
|
|
124
124
|
{
|
|
@@ -134,7 +134,7 @@ const select$G = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
134
134
|
]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
function equals$
|
|
137
|
+
function equals$w(existing, incoming) {
|
|
138
138
|
const existing_fieldApiName = existing.fieldApiName;
|
|
139
139
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
140
140
|
// if at least one of these optionals is defined
|
|
@@ -164,8 +164,8 @@ function equals$t(existing, incoming) {
|
|
|
164
164
|
return true;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
const VERSION$
|
|
168
|
-
function validate
|
|
167
|
+
const VERSION$v = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
+
function validate$$(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
169
169
|
const v_error = (() => {
|
|
170
170
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
171
171
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -180,7 +180,7 @@ function validate$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$10(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$J = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$K();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
|
-
version: VERSION$
|
|
197
|
+
version: VERSION$v,
|
|
198
198
|
private: [],
|
|
199
199
|
selections: [
|
|
200
200
|
{
|
|
@@ -211,7 +211,7 @@ const select$F = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
211
211
|
]
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
function equals$
|
|
214
|
+
function equals$v(existing, incoming) {
|
|
215
215
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
216
216
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
217
217
|
// if at least one of these optionals is defined
|
|
@@ -234,15 +234,15 @@ function equals$s(existing, incoming) {
|
|
|
234
234
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
235
235
|
return false;
|
|
236
236
|
}
|
|
237
|
-
if (!(equals$
|
|
237
|
+
if (!(equals$w(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
238
238
|
return false;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
return true;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
const VERSION$
|
|
245
|
-
function validate$
|
|
244
|
+
const VERSION$u = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
|
+
function validate$_(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$I = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
|
-
version: VERSION$
|
|
277
|
+
version: VERSION$u,
|
|
278
278
|
private: [],
|
|
279
279
|
selections: [
|
|
280
280
|
{
|
|
@@ -295,7 +295,7 @@ const select$E = function SemanticFilterOutputRepresentationSelect() {
|
|
|
295
295
|
]
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
function equals$
|
|
298
|
+
function equals$u(existing, incoming) {
|
|
299
299
|
const existing_fieldName = existing.fieldName;
|
|
300
300
|
const incoming_fieldName = incoming.fieldName;
|
|
301
301
|
// if at least one of these optionals is defined
|
|
@@ -338,8 +338,8 @@ function equals$r(existing, incoming) {
|
|
|
338
338
|
return true;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
const VERSION$
|
|
342
|
-
function validate$
|
|
341
|
+
const VERSION$t = "a50848c632bb205d5e910bb726d9219e";
|
|
342
|
+
function validate$Z(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$$(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$$(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$H = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
|
-
version: VERSION$
|
|
374
|
+
version: VERSION$t,
|
|
375
375
|
private: [],
|
|
376
376
|
selections: [
|
|
377
377
|
{
|
|
@@ -389,7 +389,7 @@ const select$D = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
389
389
|
]
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
function equals$
|
|
392
|
+
function equals$t(existing, incoming) {
|
|
393
393
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
394
394
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
395
395
|
// if at least one of these optionals is defined
|
|
@@ -399,7 +399,7 @@ function equals$q(existing, incoming) {
|
|
|
399
399
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
400
400
|
return false;
|
|
401
401
|
}
|
|
402
|
-
if (!(equals$
|
|
402
|
+
if (!(equals$v(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -412,15 +412,15 @@ function equals$q(existing, incoming) {
|
|
|
412
412
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
413
413
|
return false;
|
|
414
414
|
}
|
|
415
|
-
if (!(equals$
|
|
415
|
+
if (!(equals$v(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
416
416
|
return false;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
return true;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
const VERSION$
|
|
423
|
-
function validate$
|
|
422
|
+
const VERSION$s = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
|
+
function validate$Y(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$G = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
|
-
version: VERSION$
|
|
448
|
+
version: VERSION$s,
|
|
449
449
|
private: [],
|
|
450
450
|
selections: [
|
|
451
451
|
{
|
|
@@ -461,7 +461,7 @@ const select$C = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
461
461
|
]
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
|
-
function equals$
|
|
464
|
+
function equals$s(existing, incoming) {
|
|
465
465
|
const existing_enabled = existing.enabled;
|
|
466
466
|
const incoming_enabled = incoming.enabled;
|
|
467
467
|
// if at least one of these optionals is defined
|
|
@@ -491,8 +491,8 @@ function equals$p(existing, incoming) {
|
|
|
491
491
|
return true;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
const VERSION$
|
|
495
|
-
function validate$
|
|
494
|
+
const VERSION$r = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
|
+
function validate$X(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$Z(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$Y(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$$(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$F = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$H();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$G();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
|
-
version: VERSION$
|
|
574
|
+
version: VERSION$r,
|
|
575
575
|
private: [],
|
|
576
576
|
selections: [
|
|
577
577
|
{
|
|
@@ -612,7 +612,7 @@ const select$B = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
612
612
|
]
|
|
613
613
|
};
|
|
614
614
|
};
|
|
615
|
-
function equals$
|
|
615
|
+
function equals$r(existing, incoming) {
|
|
616
616
|
const existing_pluralNoun = existing.pluralNoun;
|
|
617
617
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
618
618
|
// if at least one of these optionals is defined
|
|
@@ -661,7 +661,7 @@ function equals$o(existing, incoming) {
|
|
|
661
661
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
662
662
|
return false;
|
|
663
663
|
}
|
|
664
|
-
if (!(equals$
|
|
664
|
+
if (!(equals$t(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
665
665
|
return false;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
@@ -675,7 +675,7 @@ function equals$o(existing, incoming) {
|
|
|
675
675
|
return false;
|
|
676
676
|
}
|
|
677
677
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
678
|
-
if (!(equals$
|
|
678
|
+
if (!(equals$s(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
679
679
|
return false;
|
|
680
680
|
}
|
|
681
681
|
});
|
|
@@ -693,7 +693,7 @@ function equals$o(existing, incoming) {
|
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
695
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
696
|
-
if (!(equals$
|
|
696
|
+
if (!(equals$v(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
@@ -704,8 +704,8 @@ function equals$o(existing, incoming) {
|
|
|
704
704
|
return true;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
|
-
const VERSION$
|
|
708
|
-
function validate$
|
|
707
|
+
const VERSION$q = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
|
+
function validate$W(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$$(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$X(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$$(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$$(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$E = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$F();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
|
-
version: VERSION$
|
|
896
|
+
version: VERSION$q,
|
|
897
897
|
private: [],
|
|
898
898
|
selections: [
|
|
899
899
|
{
|
|
@@ -998,7 +998,7 @@ const select$A = function SemanticMetricOutputRepresentationSelect() {
|
|
|
998
998
|
]
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
1001
|
-
function equals$
|
|
1001
|
+
function equals$q(existing, incoming) {
|
|
1002
1002
|
const existing_isCumulative = existing.isCumulative;
|
|
1003
1003
|
const incoming_isCumulative = incoming.isCumulative;
|
|
1004
1004
|
// if at least one of these optionals is defined
|
|
@@ -1146,7 +1146,7 @@ function equals$n(existing, incoming) {
|
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}
|
|
1148
1148
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
1149
|
-
if (!(equals$
|
|
1149
|
+
if (!(equals$v(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
1150
1150
|
return false;
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
@@ -1164,7 +1164,7 @@ function equals$n(existing, incoming) {
|
|
|
1164
1164
|
return false;
|
|
1165
1165
|
}
|
|
1166
1166
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
1167
|
-
if (!(equals$
|
|
1167
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
1168
1168
|
return false;
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1181,7 +1181,7 @@ function equals$n(existing, incoming) {
|
|
|
1181
1181
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
1182
1182
|
return false;
|
|
1183
1183
|
}
|
|
1184
|
-
if (!(equals$
|
|
1184
|
+
if (!(equals$r(existing_insightsSettings, incoming_insightsSettings))) {
|
|
1185
1185
|
return false;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
@@ -1194,7 +1194,7 @@ function equals$n(existing, incoming) {
|
|
|
1194
1194
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
1195
1195
|
return false;
|
|
1196
1196
|
}
|
|
1197
|
-
if (!(equals$
|
|
1197
|
+
if (!(equals$v(existing_measurementReference, incoming_measurementReference))) {
|
|
1198
1198
|
return false;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
@@ -1207,7 +1207,7 @@ function equals$n(existing, incoming) {
|
|
|
1207
1207
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
1208
1208
|
return false;
|
|
1209
1209
|
}
|
|
1210
|
-
if (!(equals$
|
|
1210
|
+
if (!(equals$v(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
1211
1211
|
return false;
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
@@ -1231,30 +1231,30 @@ function equals$n(existing, incoming) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return true;
|
|
1233
1233
|
}
|
|
1234
|
-
const ingest$
|
|
1234
|
+
const ingest$h = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
-
const validateError = validate$
|
|
1236
|
+
const validateError = validate$W(input);
|
|
1237
1237
|
if (validateError !== null) {
|
|
1238
1238
|
throw validateError;
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
const key = keyBuilderFromType$b(luvio, input);
|
|
1242
1242
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1243
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1243
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$q, RepresentationType$h, equals$q);
|
|
1244
1244
|
return createLink(key);
|
|
1245
1245
|
};
|
|
1246
|
-
function getTypeCacheKeys$
|
|
1246
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
1247
1247
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1248
1248
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
1249
1249
|
rootKeySet.set(rootKey, {
|
|
1250
1250
|
namespace: keyPrefix,
|
|
1251
|
-
representationName: RepresentationType$
|
|
1251
|
+
representationName: RepresentationType$h,
|
|
1252
1252
|
mergeable: false
|
|
1253
1253
|
});
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
-
const VERSION$
|
|
1257
|
-
function validate$
|
|
1256
|
+
const VERSION$p = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
|
+
function validate$V(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$D = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
|
-
version: VERSION$
|
|
1304
|
+
version: VERSION$p,
|
|
1305
1305
|
private: [],
|
|
1306
1306
|
selections: [
|
|
1307
1307
|
{
|
|
@@ -1309,12 +1309,12 @@ const select$z = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$E()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
1316
1316
|
};
|
|
1317
|
-
function equals$
|
|
1317
|
+
function equals$p(existing, incoming) {
|
|
1318
1318
|
const existing_metrics = existing.metrics;
|
|
1319
1319
|
const incoming_metrics = incoming.metrics;
|
|
1320
1320
|
// if at least one of these optionals is defined
|
|
@@ -1335,50 +1335,50 @@ function equals$m(existing, incoming) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
return true;
|
|
1337
1337
|
}
|
|
1338
|
-
const ingest$
|
|
1338
|
+
const ingest$g = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
|
-
const validateError = validate$
|
|
1340
|
+
const validateError = validate$V(input);
|
|
1341
1341
|
if (validateError !== null) {
|
|
1342
1342
|
throw validateError;
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
const key = path.fullPath;
|
|
1346
1346
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
1347
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1347
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$p, RepresentationType$g, equals$p);
|
|
1348
1348
|
return createLink(key);
|
|
1349
1349
|
};
|
|
1350
|
-
function getTypeCacheKeys$
|
|
1350
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
1351
1351
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1352
1352
|
const rootKey = fullPathFactory();
|
|
1353
1353
|
rootKeySet.set(rootKey, {
|
|
1354
1354
|
namespace: keyPrefix,
|
|
1355
|
-
representationName: RepresentationType$
|
|
1355
|
+
representationName: RepresentationType$g,
|
|
1356
1356
|
mergeable: false
|
|
1357
1357
|
});
|
|
1358
1358
|
if (input.metrics !== undefined) {
|
|
1359
1359
|
const input_metrics_length = input.metrics.length;
|
|
1360
1360
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
1361
|
-
getTypeCacheKeys$
|
|
1361
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.metrics[i]);
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$C(luvio, params) {
|
|
1367
|
+
return select$D();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1369
|
+
function keyBuilder$w(luvio, params) {
|
|
1370
1370
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1371
1371
|
}
|
|
1372
|
-
function getResponseCacheKeys$
|
|
1373
|
-
getTypeCacheKeys$
|
|
1372
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1378
|
-
luvio.storeIngest(key, ingest$
|
|
1377
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
1378
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$C(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1389,13 +1389,13 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1389
1389
|
deepFreeze(snapshot.data);
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
|
-
function ingestError$
|
|
1393
|
-
const key = keyBuilder$
|
|
1392
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
1393
|
+
const key = keyBuilder$w(luvio, params);
|
|
1394
1394
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1395
1395
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1396
1396
|
return errorSnapshot;
|
|
1397
1397
|
}
|
|
1398
|
-
function createResourceRequest$
|
|
1398
|
+
function createResourceRequest$f(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
1401
|
baseUri: '/services/data/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$C();
|
|
1445
1445
|
}
|
|
1446
|
-
function onFetchResponseSuccess$
|
|
1447
|
-
const snapshot = ingestSuccess$
|
|
1446
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
1447
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
1448
1448
|
config,
|
|
1449
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1450
1450
|
});
|
|
1451
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1452
1452
|
}
|
|
1453
|
-
function onFetchResponseError$
|
|
1454
|
-
const snapshot = ingestError$
|
|
1453
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
1454
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
1455
1455
|
config,
|
|
1456
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1457
1457
|
});
|
|
1458
1458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1459
1459
|
}
|
|
1460
|
-
function buildNetworkSnapshot$
|
|
1461
|
-
const resourceParams = createResourceParams$
|
|
1462
|
-
const request = createResourceRequest$
|
|
1460
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$f(config);
|
|
1462
|
+
const request = createResourceRequest$f(resourceParams);
|
|
1463
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1464
1464
|
.then((response) => {
|
|
1465
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1465
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
1466
1466
|
const cache = new StoreKeyMap();
|
|
1467
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
1468
1468
|
return cache;
|
|
1469
1469
|
});
|
|
1470
1470
|
}, (response) => {
|
|
1471
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1471
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1475
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1474
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$f, undefined, false);
|
|
1476
1476
|
}
|
|
1477
|
-
function buildCachedSnapshotCachePolicy$
|
|
1477
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
1478
1478
|
const { luvio, config } = context;
|
|
1479
1479
|
const selector = {
|
|
1480
|
-
recordId: keyBuilder$
|
|
1481
|
-
node: adapterFragment$
|
|
1480
|
+
recordId: keyBuilder$v(luvio, config),
|
|
1481
|
+
node: adapterFragment$9(luvio, config),
|
|
1482
1482
|
variables: {},
|
|
1483
1483
|
};
|
|
1484
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1485
1485
|
config,
|
|
1486
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$f(luvio, config, snapshotRefreshOptions)
|
|
1487
1487
|
});
|
|
1488
1488
|
return cacheSnapshot;
|
|
1489
1489
|
}
|
|
1490
1490
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
1491
|
-
const config = validateAdapterConfig$
|
|
1491
|
+
const config = validateAdapterConfig$f(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1492
1492
|
// Invalid or incomplete config
|
|
1493
1493
|
if (config === null) {
|
|
1494
1494
|
return null;
|
|
1495
1495
|
}
|
|
1496
1496
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1497
|
-
buildCachedSnapshotCachePolicy$
|
|
1497
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
1498
1498
|
};
|
|
1499
1499
|
|
|
1500
|
-
const VERSION$
|
|
1501
|
-
function validate$
|
|
1500
|
+
const VERSION$o = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1501
|
+
function validate$U(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$B = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1522
1522
|
return {
|
|
1523
1523
|
kind: 'Fragment',
|
|
1524
|
-
version: VERSION$
|
|
1524
|
+
version: VERSION$o,
|
|
1525
1525
|
private: [],
|
|
1526
1526
|
selections: [
|
|
1527
1527
|
{
|
|
@@ -1536,7 +1536,7 @@ const select$x = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1536
1536
|
]
|
|
1537
1537
|
};
|
|
1538
1538
|
};
|
|
1539
|
-
function equals$
|
|
1539
|
+
function equals$o(existing, incoming) {
|
|
1540
1540
|
const existing_apiName = existing.apiName;
|
|
1541
1541
|
const incoming_apiName = incoming.apiName;
|
|
1542
1542
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1558,8 +1558,8 @@ function equals$l(existing, incoming) {
|
|
|
1558
1558
|
return true;
|
|
1559
1559
|
}
|
|
1560
1560
|
|
|
1561
|
-
const VERSION$
|
|
1562
|
-
function validate$
|
|
1561
|
+
const VERSION$n = "c9079354cd8127a37c0c13ea6686383c";
|
|
1562
|
+
function validate$T(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$U(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$A = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
1768
1768
|
return {
|
|
1769
1769
|
kind: 'Fragment',
|
|
1770
|
-
version: VERSION$
|
|
1770
|
+
version: VERSION$n,
|
|
1771
1771
|
private: [],
|
|
1772
1772
|
selections: [
|
|
1773
1773
|
{
|
|
@@ -1891,7 +1891,7 @@ const select$w = function SemanticModelPartialOutputRepresentationSelect() {
|
|
|
1891
1891
|
]
|
|
1892
1892
|
};
|
|
1893
1893
|
};
|
|
1894
|
-
function equals$
|
|
1894
|
+
function equals$n(existing, incoming) {
|
|
1895
1895
|
const existing_isLocked = existing.isLocked;
|
|
1896
1896
|
const incoming_isLocked = incoming.isLocked;
|
|
1897
1897
|
// if at least one of these optionals is defined
|
|
@@ -2135,7 +2135,7 @@ function equals$k(existing, incoming) {
|
|
|
2135
2135
|
return false;
|
|
2136
2136
|
}
|
|
2137
2137
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
2138
|
-
if (!(equals$
|
|
2138
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
2139
2139
|
return false;
|
|
2140
2140
|
}
|
|
2141
2141
|
});
|
|
@@ -2177,8 +2177,8 @@ function equals$k(existing, incoming) {
|
|
|
2177
2177
|
return true;
|
|
2178
2178
|
}
|
|
2179
2179
|
|
|
2180
|
-
const VERSION$
|
|
2181
|
-
function validate$
|
|
2180
|
+
const VERSION$m = "198423ec58354256cc7ea6f4661ef669";
|
|
2181
|
+
function validate$S(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$T(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$z = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$A();
|
|
2306
2306
|
return {
|
|
2307
2307
|
kind: 'Fragment',
|
|
2308
|
-
version: VERSION$
|
|
2308
|
+
version: VERSION$m,
|
|
2309
2309
|
private: [],
|
|
2310
2310
|
selections: [
|
|
2311
2311
|
{
|
|
@@ -2341,7 +2341,7 @@ const select$v = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
|
2341
2341
|
]
|
|
2342
2342
|
};
|
|
2343
2343
|
};
|
|
2344
|
-
function equals$
|
|
2344
|
+
function equals$m(existing, incoming) {
|
|
2345
2345
|
const existing_count = existing.count;
|
|
2346
2346
|
const incoming_count = incoming.count;
|
|
2347
2347
|
if (!(existing_count === incoming_count)) {
|
|
@@ -2375,7 +2375,7 @@ function equals$j(existing, incoming) {
|
|
|
2375
2375
|
return false;
|
|
2376
2376
|
}
|
|
2377
2377
|
const equals_items_items = equalsArray(existing_items, incoming_items, (existing_items_item, incoming_items_item) => {
|
|
2378
|
-
if (!(equals$
|
|
2378
|
+
if (!(equals$n(existing_items_item, incoming_items_item))) {
|
|
2379
2379
|
return false;
|
|
2380
2380
|
}
|
|
2381
2381
|
});
|
|
@@ -2411,44 +2411,44 @@ function equals$j(existing, incoming) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
return true;
|
|
2413
2413
|
}
|
|
2414
|
-
const ingest$
|
|
2414
|
+
const ingest$f = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2415
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2416
|
-
const validateError = validate$
|
|
2416
|
+
const validateError = validate$S(input);
|
|
2417
2417
|
if (validateError !== null) {
|
|
2418
2418
|
throw validateError;
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
2421
|
const key = path.fullPath;
|
|
2422
2422
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2423
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2423
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$m, RepresentationType$f, equals$m);
|
|
2424
2424
|
return createLink(key);
|
|
2425
2425
|
};
|
|
2426
|
-
function getTypeCacheKeys$
|
|
2426
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
2427
2427
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2428
2428
|
const rootKey = fullPathFactory();
|
|
2429
2429
|
rootKeySet.set(rootKey, {
|
|
2430
2430
|
namespace: keyPrefix,
|
|
2431
|
-
representationName: RepresentationType$
|
|
2431
|
+
representationName: RepresentationType$f,
|
|
2432
2432
|
mergeable: false
|
|
2433
2433
|
});
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
|
-
function select$
|
|
2437
|
-
return select$
|
|
2436
|
+
function select$y(luvio, params) {
|
|
2437
|
+
return select$z();
|
|
2438
2438
|
}
|
|
2439
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$u(luvio, params) {
|
|
2440
2440
|
return keyPrefix + '::SemanticModelCollectionOutputRepresentation:(' + 'app:' + params.queryParams.app + ',' + 'category:' + params.queryParams.category + ',' + 'dataspace:' + params.queryParams.dataspace + ',' + 'label:' + params.queryParams.label + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'orderBy:' + params.queryParams.orderBy + ',' + 'sourceCreation:' + params.queryParams.sourceCreation + ',' + 'sourceCreationName:' + params.queryParams.sourceCreationName + ')';
|
|
2441
2441
|
}
|
|
2442
|
-
function getResponseCacheKeys$
|
|
2443
|
-
getTypeCacheKeys$
|
|
2442
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
2444
2444
|
}
|
|
2445
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
2446
2446
|
const { body } = response;
|
|
2447
|
-
const key = keyBuilder$
|
|
2448
|
-
luvio.storeIngest(key, ingest$
|
|
2447
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
2448
|
+
luvio.storeIngest(key, ingest$f, body);
|
|
2449
2449
|
const snapshot = luvio.storeLookup({
|
|
2450
2450
|
recordId: key,
|
|
2451
|
-
node: select$
|
|
2451
|
+
node: select$y(),
|
|
2452
2452
|
variables: {},
|
|
2453
2453
|
}, snapshotRefresh);
|
|
2454
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2459,13 +2459,13 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2459
2459
|
deepFreeze(snapshot.data);
|
|
2460
2460
|
return snapshot;
|
|
2461
2461
|
}
|
|
2462
|
-
function ingestError$
|
|
2463
|
-
const key = keyBuilder$
|
|
2462
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
2463
|
+
const key = keyBuilder$u(luvio, params);
|
|
2464
2464
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2465
2465
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2466
2466
|
return errorSnapshot;
|
|
2467
2467
|
}
|
|
2468
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$e(config) {
|
|
2469
2469
|
const headers = {};
|
|
2470
2470
|
return {
|
|
2471
2471
|
baseUri: '/services/data/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$y();
|
|
2521
2521
|
}
|
|
2522
|
-
function onFetchResponseSuccess$
|
|
2523
|
-
const snapshot = ingestSuccess$
|
|
2522
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
2523
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
2524
2524
|
config,
|
|
2525
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2526
2526
|
});
|
|
2527
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2528
2528
|
}
|
|
2529
|
-
function onFetchResponseError$
|
|
2530
|
-
const snapshot = ingestError$
|
|
2529
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
2530
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
2531
2531
|
config,
|
|
2532
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2533
2533
|
});
|
|
2534
2534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2535
2535
|
}
|
|
2536
|
-
function buildNetworkSnapshot$
|
|
2537
|
-
const resourceParams = createResourceParams$
|
|
2538
|
-
const request = createResourceRequest$
|
|
2536
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$e(config);
|
|
2538
|
+
const request = createResourceRequest$e(resourceParams);
|
|
2539
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2540
2540
|
.then((response) => {
|
|
2541
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2541
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
2542
2542
|
const cache = new StoreKeyMap();
|
|
2543
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
2544
2544
|
return cache;
|
|
2545
2545
|
});
|
|
2546
2546
|
}, (response) => {
|
|
2547
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2547
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
2550
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2551
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2550
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
2552
2552
|
}
|
|
2553
|
-
function buildCachedSnapshotCachePolicy$
|
|
2553
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
2554
2554
|
const { luvio, config } = context;
|
|
2555
2555
|
const selector = {
|
|
2556
|
-
recordId: keyBuilder$
|
|
2557
|
-
node: adapterFragment$
|
|
2556
|
+
recordId: keyBuilder$t(luvio, config),
|
|
2557
|
+
node: adapterFragment$8(luvio, config),
|
|
2558
2558
|
variables: {},
|
|
2559
2559
|
};
|
|
2560
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2561
2561
|
config,
|
|
2562
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
2563
2563
|
});
|
|
2564
2564
|
return cacheSnapshot;
|
|
2565
2565
|
}
|
|
2566
2566
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
2567
|
-
const config = validateAdapterConfig$
|
|
2567
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2568
2568
|
// Invalid or incomplete config
|
|
2569
2569
|
if (config === null) {
|
|
2570
2570
|
return null;
|
|
2571
2571
|
}
|
|
2572
2572
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2573
|
-
buildCachedSnapshotCachePolicy$
|
|
2573
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
-
function validate$
|
|
2576
|
+
function validate$R(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$Q(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$P(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$Q(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$O(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$Q(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$N(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$M(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$L(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$Q(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$N(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$M(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$K(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$J(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$I(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$J(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$H(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$K(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$I(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$G(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$F(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$G(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$E(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$H(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$F(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$D(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$C(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$D(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$B(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$G(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$N(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$M(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$A(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$L(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$B(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$z(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$Q(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$L(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$C(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$A(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$y(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$F(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$F(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$x(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$w(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$y(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$x(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$F(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$v(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$F(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$Q(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$w(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$F(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$F(obj_timeDimensionReference, path_timeDimensionReference);
|
|
4003
4003
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
4004
4004
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
4005
4005
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4024,7 +4024,7 @@ function validate$s(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4024
4024
|
return v_error === undefined ? null : v_error;
|
|
4025
4025
|
}
|
|
4026
4026
|
|
|
4027
|
-
function validate$
|
|
4027
|
+
function validate$u(obj, path = 'SemanticParameterInputRepresentation') {
|
|
4028
4028
|
const v_error = (() => {
|
|
4029
4029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4030
4030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4110,8 +4110,8 @@ function validate$r(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4110
4110
|
return v_error === undefined ? null : v_error;
|
|
4111
4111
|
}
|
|
4112
4112
|
|
|
4113
|
-
const VERSION$
|
|
4114
|
-
function validate$
|
|
4113
|
+
const VERSION$l = "8137018d7bcc1592081ebddf74ddd42a";
|
|
4114
|
+
function validate$t(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4115
4115
|
const v_error = (() => {
|
|
4116
4116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4117
4117
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4196,7 +4196,7 @@ function validate$q(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4196
4196
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4197
4197
|
const obj_filters_item = obj_filters[i];
|
|
4198
4198
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4199
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4199
|
+
const referencepath_filters_itemValidationError = validate$_(obj_filters_item, path_filters_item);
|
|
4200
4200
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4201
4201
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4202
4202
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4268,24 +4268,24 @@ function validate$q(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4268
4268
|
})();
|
|
4269
4269
|
return v_error === undefined ? null : v_error;
|
|
4270
4270
|
}
|
|
4271
|
-
const RepresentationType$
|
|
4272
|
-
function keyBuilder$
|
|
4273
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4271
|
+
const RepresentationType$e = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4272
|
+
function keyBuilder$s(luvio, config) {
|
|
4273
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4274
4274
|
}
|
|
4275
4275
|
function keyBuilderFromType$a(luvio, object) {
|
|
4276
4276
|
const keyParams = {
|
|
4277
4277
|
name: object.id
|
|
4278
4278
|
};
|
|
4279
|
-
return keyBuilder$
|
|
4279
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4280
4280
|
}
|
|
4281
|
-
function normalize$
|
|
4281
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4282
4282
|
return input;
|
|
4283
4283
|
}
|
|
4284
|
-
const select$
|
|
4285
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4284
|
+
const select$x = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4285
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4286
4286
|
return {
|
|
4287
4287
|
kind: 'Fragment',
|
|
4288
|
-
version: VERSION$
|
|
4288
|
+
version: VERSION$l,
|
|
4289
4289
|
private: [],
|
|
4290
4290
|
selections: [
|
|
4291
4291
|
{
|
|
@@ -4394,7 +4394,7 @@ const select$t = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
4394
4394
|
]
|
|
4395
4395
|
};
|
|
4396
4396
|
};
|
|
4397
|
-
function equals$
|
|
4397
|
+
function equals$l(existing, incoming) {
|
|
4398
4398
|
const existing_isVisible = existing.isVisible;
|
|
4399
4399
|
const incoming_isVisible = incoming.isVisible;
|
|
4400
4400
|
// if at least one of these optionals is defined
|
|
@@ -4633,7 +4633,7 @@ function equals$i(existing, incoming) {
|
|
|
4633
4633
|
return false;
|
|
4634
4634
|
}
|
|
4635
4635
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
4636
|
-
if (!(equals$
|
|
4636
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
4637
4637
|
return false;
|
|
4638
4638
|
}
|
|
4639
4639
|
});
|
|
@@ -4643,30 +4643,30 @@ function equals$i(existing, incoming) {
|
|
|
4643
4643
|
}
|
|
4644
4644
|
return true;
|
|
4645
4645
|
}
|
|
4646
|
-
const ingest$
|
|
4646
|
+
const ingest$e = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4647
4647
|
if (process.env.NODE_ENV !== 'production') {
|
|
4648
|
-
const validateError = validate$
|
|
4648
|
+
const validateError = validate$t(input);
|
|
4649
4649
|
if (validateError !== null) {
|
|
4650
4650
|
throw validateError;
|
|
4651
4651
|
}
|
|
4652
4652
|
}
|
|
4653
4653
|
const key = keyBuilderFromType$a(luvio, input);
|
|
4654
4654
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4655
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4655
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4656
4656
|
return createLink(key);
|
|
4657
4657
|
};
|
|
4658
|
-
function getTypeCacheKeys$
|
|
4658
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4659
4659
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4660
4660
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
4661
4661
|
rootKeySet.set(rootKey, {
|
|
4662
4662
|
namespace: keyPrefix,
|
|
4663
|
-
representationName: RepresentationType$
|
|
4663
|
+
representationName: RepresentationType$e,
|
|
4664
4664
|
mergeable: false
|
|
4665
4665
|
});
|
|
4666
4666
|
}
|
|
4667
4667
|
|
|
4668
|
-
const VERSION$
|
|
4669
|
-
function validate$
|
|
4668
|
+
const VERSION$k = "4dc83d3583b0937db8808447abe03505";
|
|
4669
|
+
function validate$s(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4670
4670
|
const v_error = (() => {
|
|
4671
4671
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4672
4672
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4765,7 +4765,7 @@ function validate$p(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4765
4765
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4766
4766
|
const obj_filters_item = obj_filters[i];
|
|
4767
4767
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4768
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4768
|
+
const referencepath_filters_itemValidationError = validate$_(obj_filters_item, path_filters_item);
|
|
4769
4769
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4770
4770
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4771
4771
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4865,24 +4865,24 @@ function validate$p(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4865
4865
|
})();
|
|
4866
4866
|
return v_error === undefined ? null : v_error;
|
|
4867
4867
|
}
|
|
4868
|
-
const RepresentationType$
|
|
4869
|
-
function keyBuilder$
|
|
4870
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4868
|
+
const RepresentationType$d = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4869
|
+
function keyBuilder$r(luvio, config) {
|
|
4870
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4871
4871
|
}
|
|
4872
4872
|
function keyBuilderFromType$9(luvio, object) {
|
|
4873
4873
|
const keyParams = {
|
|
4874
4874
|
name: object.id
|
|
4875
4875
|
};
|
|
4876
|
-
return keyBuilder$
|
|
4876
|
+
return keyBuilder$r(luvio, keyParams);
|
|
4877
4877
|
}
|
|
4878
|
-
function normalize$
|
|
4878
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4879
4879
|
return input;
|
|
4880
4880
|
}
|
|
4881
|
-
const select$
|
|
4882
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4881
|
+
const select$w = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4882
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
4883
4883
|
return {
|
|
4884
4884
|
kind: 'Fragment',
|
|
4885
|
-
version: VERSION$
|
|
4885
|
+
version: VERSION$k,
|
|
4886
4886
|
private: [],
|
|
4887
4887
|
selections: [
|
|
4888
4888
|
{
|
|
@@ -5021,7 +5021,7 @@ const select$s = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
5021
5021
|
]
|
|
5022
5022
|
};
|
|
5023
5023
|
};
|
|
5024
|
-
function equals$
|
|
5024
|
+
function equals$k(existing, incoming) {
|
|
5025
5025
|
const existing_isAggregatable = existing.isAggregatable;
|
|
5026
5026
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
5027
5027
|
// if at least one of these optionals is defined
|
|
@@ -5338,7 +5338,7 @@ function equals$h(existing, incoming) {
|
|
|
5338
5338
|
return false;
|
|
5339
5339
|
}
|
|
5340
5340
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5341
|
-
if (!(equals$
|
|
5341
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
5342
5342
|
return false;
|
|
5343
5343
|
}
|
|
5344
5344
|
});
|
|
@@ -5348,29 +5348,29 @@ function equals$h(existing, incoming) {
|
|
|
5348
5348
|
}
|
|
5349
5349
|
return true;
|
|
5350
5350
|
}
|
|
5351
|
-
const ingest$
|
|
5351
|
+
const ingest$d = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5352
5352
|
if (process.env.NODE_ENV !== 'production') {
|
|
5353
|
-
const validateError = validate$
|
|
5353
|
+
const validateError = validate$s(input);
|
|
5354
5354
|
if (validateError !== null) {
|
|
5355
5355
|
throw validateError;
|
|
5356
5356
|
}
|
|
5357
5357
|
}
|
|
5358
5358
|
const key = keyBuilderFromType$9(luvio, input);
|
|
5359
5359
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5360
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5360
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$k, RepresentationType$d, equals$k);
|
|
5361
5361
|
return createLink(key);
|
|
5362
5362
|
};
|
|
5363
|
-
function getTypeCacheKeys$
|
|
5363
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
5364
5364
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5365
5365
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
5366
5366
|
rootKeySet.set(rootKey, {
|
|
5367
5367
|
namespace: keyPrefix,
|
|
5368
|
-
representationName: RepresentationType$
|
|
5368
|
+
representationName: RepresentationType$d,
|
|
5369
5369
|
mergeable: false
|
|
5370
5370
|
});
|
|
5371
5371
|
}
|
|
5372
5372
|
|
|
5373
|
-
function validate$
|
|
5373
|
+
function validate$r(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
5374
5374
|
const v_error = (() => {
|
|
5375
5375
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5376
5376
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5511,7 +5511,7 @@ function validate$o(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
5511
5511
|
return v_error === undefined ? null : v_error;
|
|
5512
5512
|
}
|
|
5513
5513
|
|
|
5514
|
-
function validate$
|
|
5514
|
+
function validate$q(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
5515
5515
|
const v_error = (() => {
|
|
5516
5516
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5517
5517
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5687,8 +5687,8 @@ function validate$n(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5687
5687
|
return v_error === undefined ? null : v_error;
|
|
5688
5688
|
}
|
|
5689
5689
|
|
|
5690
|
-
const VERSION$
|
|
5691
|
-
function validate$
|
|
5690
|
+
const VERSION$j = "4f111b93807b811179eb310384efdc35";
|
|
5691
|
+
function validate$p(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5692
5692
|
const v_error = (() => {
|
|
5693
5693
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5694
5694
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5759,7 +5759,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5759
5759
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5760
5760
|
const obj_filters_item = obj_filters[i];
|
|
5761
5761
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5762
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5762
|
+
const referencepath_filters_itemValidationError = validate$_(obj_filters_item, path_filters_item);
|
|
5763
5763
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5764
5764
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5765
5765
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5809,7 +5809,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5809
5809
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
5810
5810
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
5811
5811
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
5812
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
5812
|
+
const referencepath_semanticDimensions_itemValidationError = validate$r(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
5813
5813
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
5814
5814
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
5815
5815
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5833,7 +5833,7 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5833
5833
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
5834
5834
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
5835
5835
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
5836
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
5836
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$q(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
5837
5837
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
5838
5838
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
5839
5839
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5858,57 +5858,57 @@ function validate$m(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5858
5858
|
})();
|
|
5859
5859
|
return v_error === undefined ? null : v_error;
|
|
5860
5860
|
}
|
|
5861
|
-
const RepresentationType$
|
|
5862
|
-
function keyBuilder$
|
|
5863
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5861
|
+
const RepresentationType$c = 'SemanticDataObjectOutputRepresentation';
|
|
5862
|
+
function keyBuilder$q(luvio, config) {
|
|
5863
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5864
5864
|
}
|
|
5865
5865
|
function keyBuilderFromType$8(luvio, object) {
|
|
5866
5866
|
const keyParams = {
|
|
5867
5867
|
name: object.id
|
|
5868
5868
|
};
|
|
5869
|
-
return keyBuilder$
|
|
5869
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5870
5870
|
}
|
|
5871
|
-
function normalize$
|
|
5871
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5872
5872
|
return input;
|
|
5873
5873
|
}
|
|
5874
|
-
const select$
|
|
5874
|
+
const select$v = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5875
5875
|
return {
|
|
5876
5876
|
kind: 'Fragment',
|
|
5877
|
-
version: VERSION$
|
|
5877
|
+
version: VERSION$j,
|
|
5878
5878
|
private: [],
|
|
5879
5879
|
opaque: true
|
|
5880
5880
|
};
|
|
5881
5881
|
};
|
|
5882
|
-
function equals$
|
|
5882
|
+
function equals$j(existing, incoming) {
|
|
5883
5883
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5884
5884
|
return false;
|
|
5885
5885
|
}
|
|
5886
5886
|
return true;
|
|
5887
5887
|
}
|
|
5888
|
-
const ingest$
|
|
5888
|
+
const ingest$c = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5889
5889
|
if (process.env.NODE_ENV !== 'production') {
|
|
5890
|
-
const validateError = validate$
|
|
5890
|
+
const validateError = validate$p(input);
|
|
5891
5891
|
if (validateError !== null) {
|
|
5892
5892
|
throw validateError;
|
|
5893
5893
|
}
|
|
5894
5894
|
}
|
|
5895
5895
|
const key = keyBuilderFromType$8(luvio, input);
|
|
5896
5896
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5897
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5897
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$j, RepresentationType$c, equals$j);
|
|
5898
5898
|
return createLink(key);
|
|
5899
5899
|
};
|
|
5900
|
-
function getTypeCacheKeys$
|
|
5900
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5901
5901
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5902
5902
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
5903
5903
|
rootKeySet.set(rootKey, {
|
|
5904
5904
|
namespace: keyPrefix,
|
|
5905
|
-
representationName: RepresentationType$
|
|
5905
|
+
representationName: RepresentationType$c,
|
|
5906
5906
|
mergeable: false
|
|
5907
5907
|
});
|
|
5908
5908
|
}
|
|
5909
5909
|
|
|
5910
|
-
const VERSION$
|
|
5911
|
-
function validate$
|
|
5910
|
+
const VERSION$i = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5911
|
+
function validate$o(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5912
5912
|
const v_error = (() => {
|
|
5913
5913
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5914
5914
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5917,10 +5917,10 @@ function validate$l(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5917
5917
|
})();
|
|
5918
5918
|
return v_error === undefined ? null : v_error;
|
|
5919
5919
|
}
|
|
5920
|
-
const select$
|
|
5920
|
+
const select$u = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5921
5921
|
return {
|
|
5922
5922
|
kind: 'Fragment',
|
|
5923
|
-
version: VERSION$
|
|
5923
|
+
version: VERSION$i,
|
|
5924
5924
|
private: [],
|
|
5925
5925
|
selections: [
|
|
5926
5926
|
{
|
|
@@ -5930,7 +5930,7 @@ const select$q = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
5930
5930
|
]
|
|
5931
5931
|
};
|
|
5932
5932
|
};
|
|
5933
|
-
function equals$
|
|
5933
|
+
function equals$i(existing, incoming) {
|
|
5934
5934
|
const existing_constantBinSize = existing.constantBinSize;
|
|
5935
5935
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
5936
5936
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -5939,8 +5939,8 @@ function equals$f(existing, incoming) {
|
|
|
5939
5939
|
return true;
|
|
5940
5940
|
}
|
|
5941
5941
|
|
|
5942
|
-
const VERSION$
|
|
5943
|
-
function validate$
|
|
5942
|
+
const VERSION$h = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5943
|
+
function validate$n(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5944
5944
|
const v_error = (() => {
|
|
5945
5945
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5946
5946
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5967,10 +5967,10 @@ function validate$k(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5967
5967
|
})();
|
|
5968
5968
|
return v_error === undefined ? null : v_error;
|
|
5969
5969
|
}
|
|
5970
|
-
const select$
|
|
5970
|
+
const select$t = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5971
5971
|
return {
|
|
5972
5972
|
kind: 'Fragment',
|
|
5973
|
-
version: VERSION$
|
|
5973
|
+
version: VERSION$h,
|
|
5974
5974
|
private: [],
|
|
5975
5975
|
selections: [
|
|
5976
5976
|
{
|
|
@@ -5986,7 +5986,7 @@ const select$p = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
5986
5986
|
]
|
|
5987
5987
|
};
|
|
5988
5988
|
};
|
|
5989
|
-
function equals$
|
|
5989
|
+
function equals$h(existing, incoming) {
|
|
5990
5990
|
const existing_name = existing.name;
|
|
5991
5991
|
const incoming_name = incoming.name;
|
|
5992
5992
|
if (!(existing_name === incoming_name)) {
|
|
@@ -6013,8 +6013,8 @@ function equals$e(existing, incoming) {
|
|
|
6013
6013
|
return true;
|
|
6014
6014
|
}
|
|
6015
6015
|
|
|
6016
|
-
const VERSION$
|
|
6017
|
-
function validate$
|
|
6016
|
+
const VERSION$g = "55c60b6207985632192cb4e419822a86";
|
|
6017
|
+
function validate$m(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
6018
6018
|
const v_error = (() => {
|
|
6019
6019
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6020
6020
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6028,7 +6028,7 @@ function validate$j(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6028
6028
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
6029
6029
|
const obj_groups_item = obj_groups[i];
|
|
6030
6030
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
6031
|
-
const referencepath_groups_itemValidationError = validate$
|
|
6031
|
+
const referencepath_groups_itemValidationError = validate$n(obj_groups_item, path_groups_item);
|
|
6032
6032
|
if (referencepath_groups_itemValidationError !== null) {
|
|
6033
6033
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
6034
6034
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6046,11 +6046,11 @@ function validate$j(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
6046
6046
|
})();
|
|
6047
6047
|
return v_error === undefined ? null : v_error;
|
|
6048
6048
|
}
|
|
6049
|
-
const select$
|
|
6050
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
6049
|
+
const select$s = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6050
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$t();
|
|
6051
6051
|
return {
|
|
6052
6052
|
kind: 'Fragment',
|
|
6053
|
-
version: VERSION$
|
|
6053
|
+
version: VERSION$g,
|
|
6054
6054
|
private: [],
|
|
6055
6055
|
selections: [
|
|
6056
6056
|
{
|
|
@@ -6068,7 +6068,7 @@ const select$o = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
6068
6068
|
]
|
|
6069
6069
|
};
|
|
6070
6070
|
};
|
|
6071
|
-
function equals$
|
|
6071
|
+
function equals$g(existing, incoming) {
|
|
6072
6072
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
6073
6073
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
6074
6074
|
// if at least one of these optionals is defined
|
|
@@ -6092,7 +6092,7 @@ function equals$d(existing, incoming) {
|
|
|
6092
6092
|
return false;
|
|
6093
6093
|
}
|
|
6094
6094
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
6095
|
-
if (!(equals$
|
|
6095
|
+
if (!(equals$h(existing_groups_item, incoming_groups_item))) {
|
|
6096
6096
|
return false;
|
|
6097
6097
|
}
|
|
6098
6098
|
});
|
|
@@ -6103,8 +6103,8 @@ function equals$d(existing, incoming) {
|
|
|
6103
6103
|
return true;
|
|
6104
6104
|
}
|
|
6105
6105
|
|
|
6106
|
-
const VERSION$
|
|
6107
|
-
function validate$
|
|
6106
|
+
const VERSION$f = "50dc390b159159afb1945b9a811c9f80";
|
|
6107
|
+
function validate$l(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6108
6108
|
const v_error = (() => {
|
|
6109
6109
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6110
6110
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6112,7 +6112,7 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6112
6112
|
if (obj.binDimension !== undefined) {
|
|
6113
6113
|
const obj_binDimension = obj.binDimension;
|
|
6114
6114
|
const path_binDimension = path + '.binDimension';
|
|
6115
|
-
const referencepath_binDimensionValidationError = validate$
|
|
6115
|
+
const referencepath_binDimensionValidationError = validate$o(obj_binDimension, path_binDimension);
|
|
6116
6116
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6117
6117
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6118
6118
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6122,7 +6122,7 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6122
6122
|
if (obj.groupDimension !== undefined) {
|
|
6123
6123
|
const obj_groupDimension = obj.groupDimension;
|
|
6124
6124
|
const path_groupDimension = path + '.groupDimension';
|
|
6125
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
6125
|
+
const referencepath_groupDimensionValidationError = validate$m(obj_groupDimension, path_groupDimension);
|
|
6126
6126
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6127
6127
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6128
6128
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6132,12 +6132,12 @@ function validate$i(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6132
6132
|
})();
|
|
6133
6133
|
return v_error === undefined ? null : v_error;
|
|
6134
6134
|
}
|
|
6135
|
-
const select$
|
|
6136
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6137
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6135
|
+
const select$r = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6136
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$u();
|
|
6137
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$s();
|
|
6138
6138
|
return {
|
|
6139
6139
|
kind: 'Fragment',
|
|
6140
|
-
version: VERSION$
|
|
6140
|
+
version: VERSION$f,
|
|
6141
6141
|
private: [],
|
|
6142
6142
|
selections: [
|
|
6143
6143
|
{
|
|
@@ -6155,7 +6155,7 @@ const select$n = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
6155
6155
|
]
|
|
6156
6156
|
};
|
|
6157
6157
|
};
|
|
6158
|
-
function equals$
|
|
6158
|
+
function equals$f(existing, incoming) {
|
|
6159
6159
|
const existing_binDimension = existing.binDimension;
|
|
6160
6160
|
const incoming_binDimension = incoming.binDimension;
|
|
6161
6161
|
// if at least one of these optionals is defined
|
|
@@ -6165,7 +6165,7 @@ function equals$c(existing, incoming) {
|
|
|
6165
6165
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
6166
6166
|
return false;
|
|
6167
6167
|
}
|
|
6168
|
-
if (!(equals$
|
|
6168
|
+
if (!(equals$i(existing_binDimension, incoming_binDimension))) {
|
|
6169
6169
|
return false;
|
|
6170
6170
|
}
|
|
6171
6171
|
}
|
|
@@ -6178,15 +6178,15 @@ function equals$c(existing, incoming) {
|
|
|
6178
6178
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
6179
6179
|
return false;
|
|
6180
6180
|
}
|
|
6181
|
-
if (!(equals$
|
|
6181
|
+
if (!(equals$g(existing_groupDimension, incoming_groupDimension))) {
|
|
6182
6182
|
return false;
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
6185
|
return true;
|
|
6186
6186
|
}
|
|
6187
6187
|
|
|
6188
|
-
const VERSION$
|
|
6189
|
-
function validate$
|
|
6188
|
+
const VERSION$e = "1daec40706bf767c719fa58831fad462";
|
|
6189
|
+
function validate$k(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6190
6190
|
const v_error = (() => {
|
|
6191
6191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6192
6192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6212,7 +6212,7 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6212
6212
|
}
|
|
6213
6213
|
const obj_configuration = obj.configuration;
|
|
6214
6214
|
const path_configuration = path + '.configuration';
|
|
6215
|
-
const referencepath_configurationValidationError = validate$
|
|
6215
|
+
const referencepath_configurationValidationError = validate$l(obj_configuration, path_configuration);
|
|
6216
6216
|
if (referencepath_configurationValidationError !== null) {
|
|
6217
6217
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6218
6218
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6237,7 +6237,7 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6237
6237
|
}
|
|
6238
6238
|
const obj_fieldReference = obj.fieldReference;
|
|
6239
6239
|
const path_fieldReference = path + '.fieldReference';
|
|
6240
|
-
const referencepath_fieldReferenceValidationError = validate
|
|
6240
|
+
const referencepath_fieldReferenceValidationError = validate$$(obj_fieldReference, path_fieldReference);
|
|
6241
6241
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6242
6242
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6243
6243
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6277,25 +6277,25 @@ function validate$h(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6277
6277
|
})();
|
|
6278
6278
|
return v_error === undefined ? null : v_error;
|
|
6279
6279
|
}
|
|
6280
|
-
const RepresentationType$
|
|
6281
|
-
function keyBuilder$
|
|
6282
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6280
|
+
const RepresentationType$b = 'SemanticGroupingOutputRepresentation';
|
|
6281
|
+
function keyBuilder$p(luvio, config) {
|
|
6282
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
6283
6283
|
}
|
|
6284
6284
|
function keyBuilderFromType$7(luvio, object) {
|
|
6285
6285
|
const keyParams = {
|
|
6286
6286
|
name: object.id
|
|
6287
6287
|
};
|
|
6288
|
-
return keyBuilder$
|
|
6288
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6289
6289
|
}
|
|
6290
|
-
function normalize$
|
|
6290
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
6291
6291
|
return input;
|
|
6292
6292
|
}
|
|
6293
|
-
const select$
|
|
6294
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6295
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6293
|
+
const select$q = function SemanticGroupingOutputRepresentationSelect() {
|
|
6294
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$r();
|
|
6295
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$J();
|
|
6296
6296
|
return {
|
|
6297
6297
|
kind: 'Fragment',
|
|
6298
|
-
version: VERSION$
|
|
6298
|
+
version: VERSION$e,
|
|
6299
6299
|
private: [],
|
|
6300
6300
|
selections: [
|
|
6301
6301
|
{
|
|
@@ -6361,7 +6361,7 @@ const select$m = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
6361
6361
|
]
|
|
6362
6362
|
};
|
|
6363
6363
|
};
|
|
6364
|
-
function equals$
|
|
6364
|
+
function equals$e(existing, incoming) {
|
|
6365
6365
|
const existing_apiName = existing.apiName;
|
|
6366
6366
|
const incoming_apiName = incoming.apiName;
|
|
6367
6367
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6467,40 +6467,40 @@ function equals$b(existing, incoming) {
|
|
|
6467
6467
|
}
|
|
6468
6468
|
const existing_configuration = existing.configuration;
|
|
6469
6469
|
const incoming_configuration = incoming.configuration;
|
|
6470
|
-
if (!(equals$
|
|
6470
|
+
if (!(equals$f(existing_configuration, incoming_configuration))) {
|
|
6471
6471
|
return false;
|
|
6472
6472
|
}
|
|
6473
6473
|
const existing_fieldReference = existing.fieldReference;
|
|
6474
6474
|
const incoming_fieldReference = incoming.fieldReference;
|
|
6475
|
-
if (!(equals$
|
|
6475
|
+
if (!(equals$v(existing_fieldReference, incoming_fieldReference))) {
|
|
6476
6476
|
return false;
|
|
6477
6477
|
}
|
|
6478
6478
|
return true;
|
|
6479
6479
|
}
|
|
6480
|
-
const ingest$
|
|
6480
|
+
const ingest$b = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6481
6481
|
if (process.env.NODE_ENV !== 'production') {
|
|
6482
|
-
const validateError = validate$
|
|
6482
|
+
const validateError = validate$k(input);
|
|
6483
6483
|
if (validateError !== null) {
|
|
6484
6484
|
throw validateError;
|
|
6485
6485
|
}
|
|
6486
6486
|
}
|
|
6487
6487
|
const key = keyBuilderFromType$7(luvio, input);
|
|
6488
6488
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6489
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6489
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$e, RepresentationType$b, equals$e);
|
|
6490
6490
|
return createLink(key);
|
|
6491
6491
|
};
|
|
6492
|
-
function getTypeCacheKeys$
|
|
6492
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
6493
6493
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6494
6494
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
6495
6495
|
rootKeySet.set(rootKey, {
|
|
6496
6496
|
namespace: keyPrefix,
|
|
6497
|
-
representationName: RepresentationType$
|
|
6497
|
+
representationName: RepresentationType$b,
|
|
6498
6498
|
mergeable: false
|
|
6499
6499
|
});
|
|
6500
6500
|
}
|
|
6501
6501
|
|
|
6502
|
-
const VERSION$
|
|
6503
|
-
function validate$
|
|
6502
|
+
const VERSION$d = "c5144c317ac72b60d580cab803514b8d";
|
|
6503
|
+
function validate$j(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6504
6504
|
const v_error = (() => {
|
|
6505
6505
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6506
6506
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6543,10 +6543,10 @@ function validate$g(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6543
6543
|
})();
|
|
6544
6544
|
return v_error === undefined ? null : v_error;
|
|
6545
6545
|
}
|
|
6546
|
-
const select$
|
|
6546
|
+
const select$p = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6547
6547
|
return {
|
|
6548
6548
|
kind: 'Fragment',
|
|
6549
|
-
version: VERSION$
|
|
6549
|
+
version: VERSION$d,
|
|
6550
6550
|
private: [],
|
|
6551
6551
|
selections: [
|
|
6552
6552
|
{
|
|
@@ -6577,7 +6577,7 @@ const select$l = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
6577
6577
|
]
|
|
6578
6578
|
};
|
|
6579
6579
|
};
|
|
6580
|
-
function equals$
|
|
6580
|
+
function equals$d(existing, incoming) {
|
|
6581
6581
|
const existing_joinOperator = existing.joinOperator;
|
|
6582
6582
|
const incoming_joinOperator = incoming.joinOperator;
|
|
6583
6583
|
// if at least one of these optionals is defined
|
|
@@ -6646,8 +6646,8 @@ function equals$a(existing, incoming) {
|
|
|
6646
6646
|
return true;
|
|
6647
6647
|
}
|
|
6648
6648
|
|
|
6649
|
-
const VERSION$
|
|
6650
|
-
function validate$
|
|
6649
|
+
const VERSION$c = "b9778dace5726fcb57804d3afd529246";
|
|
6650
|
+
function validate$i(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6651
6651
|
const v_error = (() => {
|
|
6652
6652
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6653
6653
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6697,7 +6697,7 @@ function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6697
6697
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
6698
6698
|
const obj_criteria_item = obj_criteria[i];
|
|
6699
6699
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
6700
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
6700
|
+
const referencepath_criteria_itemValidationError = validate$j(obj_criteria_item, path_criteria_item);
|
|
6701
6701
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
6702
6702
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
6703
6703
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6776,24 +6776,24 @@ function validate$f(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6776
6776
|
})();
|
|
6777
6777
|
return v_error === undefined ? null : v_error;
|
|
6778
6778
|
}
|
|
6779
|
-
const RepresentationType$
|
|
6780
|
-
function keyBuilder$
|
|
6781
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6779
|
+
const RepresentationType$a = 'SemanticRelationshipOutputRepresentation';
|
|
6780
|
+
function keyBuilder$o(luvio, config) {
|
|
6781
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6782
6782
|
}
|
|
6783
6783
|
function keyBuilderFromType$6(luvio, object) {
|
|
6784
6784
|
const keyParams = {
|
|
6785
6785
|
name: object.id
|
|
6786
6786
|
};
|
|
6787
|
-
return keyBuilder$
|
|
6787
|
+
return keyBuilder$o(luvio, keyParams);
|
|
6788
6788
|
}
|
|
6789
|
-
function normalize$
|
|
6789
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6790
6790
|
return input;
|
|
6791
6791
|
}
|
|
6792
|
-
const select$
|
|
6793
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6792
|
+
const select$o = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6793
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$p();
|
|
6794
6794
|
return {
|
|
6795
6795
|
kind: 'Fragment',
|
|
6796
|
-
version: VERSION$
|
|
6796
|
+
version: VERSION$c,
|
|
6797
6797
|
private: [],
|
|
6798
6798
|
selections: [
|
|
6799
6799
|
{
|
|
@@ -6882,7 +6882,7 @@ const select$k = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
6882
6882
|
]
|
|
6883
6883
|
};
|
|
6884
6884
|
};
|
|
6885
|
-
function equals$
|
|
6885
|
+
function equals$c(existing, incoming) {
|
|
6886
6886
|
const existing_isEnabled = existing.isEnabled;
|
|
6887
6887
|
const incoming_isEnabled = incoming.isEnabled;
|
|
6888
6888
|
// if at least one of these optionals is defined
|
|
@@ -7069,7 +7069,7 @@ function equals$9(existing, incoming) {
|
|
|
7069
7069
|
return false;
|
|
7070
7070
|
}
|
|
7071
7071
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
7072
|
-
if (!(equals$
|
|
7072
|
+
if (!(equals$d(existing_criteria_item, incoming_criteria_item))) {
|
|
7073
7073
|
return false;
|
|
7074
7074
|
}
|
|
7075
7075
|
});
|
|
@@ -7079,30 +7079,30 @@ function equals$9(existing, incoming) {
|
|
|
7079
7079
|
}
|
|
7080
7080
|
return true;
|
|
7081
7081
|
}
|
|
7082
|
-
const ingest$
|
|
7082
|
+
const ingest$a = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7083
7083
|
if (process.env.NODE_ENV !== 'production') {
|
|
7084
|
-
const validateError = validate$
|
|
7084
|
+
const validateError = validate$i(input);
|
|
7085
7085
|
if (validateError !== null) {
|
|
7086
7086
|
throw validateError;
|
|
7087
7087
|
}
|
|
7088
7088
|
}
|
|
7089
7089
|
const key = keyBuilderFromType$6(luvio, input);
|
|
7090
7090
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7091
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7091
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$c, RepresentationType$a, equals$c);
|
|
7092
7092
|
return createLink(key);
|
|
7093
7093
|
};
|
|
7094
|
-
function getTypeCacheKeys$
|
|
7094
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
7095
7095
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7096
7096
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
7097
7097
|
rootKeySet.set(rootKey, {
|
|
7098
7098
|
namespace: keyPrefix,
|
|
7099
|
-
representationName: RepresentationType$
|
|
7099
|
+
representationName: RepresentationType$a,
|
|
7100
7100
|
mergeable: false
|
|
7101
7101
|
});
|
|
7102
7102
|
}
|
|
7103
7103
|
|
|
7104
|
-
const VERSION$
|
|
7105
|
-
function validate$
|
|
7104
|
+
const VERSION$b = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7105
|
+
function validate$h(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7106
7106
|
const v_error = (() => {
|
|
7107
7107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7108
7108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7152,7 +7152,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7152
7152
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7153
7153
|
const obj_fields_item = obj_fields[i];
|
|
7154
7154
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7155
|
-
const referencepath_fields_itemValidationError = validate$
|
|
7155
|
+
const referencepath_fields_itemValidationError = validate$10(obj_fields_item, path_fields_item);
|
|
7156
7156
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7157
7157
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7158
7158
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7196,7 +7196,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7196
7196
|
if (obj.semanticDimension !== undefined) {
|
|
7197
7197
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7198
7198
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7199
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
7199
|
+
const referencepath_semanticDimensionValidationError = validate$r(obj_semanticDimension, path_semanticDimension);
|
|
7200
7200
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7201
7201
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7202
7202
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7206,7 +7206,7 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7206
7206
|
if (obj.semanticMeasurement !== undefined) {
|
|
7207
7207
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7208
7208
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7209
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
7209
|
+
const referencepath_semanticMeasurementValidationError = validate$q(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7210
7210
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7211
7211
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7212
7212
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7216,57 +7216,57 @@ function validate$e(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7216
7216
|
})();
|
|
7217
7217
|
return v_error === undefined ? null : v_error;
|
|
7218
7218
|
}
|
|
7219
|
-
const RepresentationType$
|
|
7220
|
-
function keyBuilder$
|
|
7221
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7219
|
+
const RepresentationType$9 = 'SemanticMappedFieldOutputRepresentation';
|
|
7220
|
+
function keyBuilder$n(luvio, config) {
|
|
7221
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
7222
7222
|
}
|
|
7223
7223
|
function keyBuilderFromType$5(luvio, object) {
|
|
7224
7224
|
const keyParams = {
|
|
7225
7225
|
name: object.id
|
|
7226
7226
|
};
|
|
7227
|
-
return keyBuilder$
|
|
7227
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7228
7228
|
}
|
|
7229
|
-
function normalize$
|
|
7229
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
7230
7230
|
return input;
|
|
7231
7231
|
}
|
|
7232
|
-
const select$
|
|
7232
|
+
const select$n = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7233
7233
|
return {
|
|
7234
7234
|
kind: 'Fragment',
|
|
7235
|
-
version: VERSION$
|
|
7235
|
+
version: VERSION$b,
|
|
7236
7236
|
private: [],
|
|
7237
7237
|
opaque: true
|
|
7238
7238
|
};
|
|
7239
7239
|
};
|
|
7240
|
-
function equals$
|
|
7240
|
+
function equals$b(existing, incoming) {
|
|
7241
7241
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7242
7242
|
return false;
|
|
7243
7243
|
}
|
|
7244
7244
|
return true;
|
|
7245
7245
|
}
|
|
7246
|
-
const ingest$
|
|
7246
|
+
const ingest$9 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7247
7247
|
if (process.env.NODE_ENV !== 'production') {
|
|
7248
|
-
const validateError = validate$
|
|
7248
|
+
const validateError = validate$h(input);
|
|
7249
7249
|
if (validateError !== null) {
|
|
7250
7250
|
throw validateError;
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
7253
|
const key = keyBuilderFromType$5(luvio, input);
|
|
7254
7254
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7255
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7255
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$b, RepresentationType$9, equals$b);
|
|
7256
7256
|
return createLink(key);
|
|
7257
7257
|
};
|
|
7258
|
-
function getTypeCacheKeys$
|
|
7258
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
7259
7259
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7260
7260
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
7261
7261
|
rootKeySet.set(rootKey, {
|
|
7262
7262
|
namespace: keyPrefix,
|
|
7263
|
-
representationName: RepresentationType$
|
|
7263
|
+
representationName: RepresentationType$9,
|
|
7264
7264
|
mergeable: false
|
|
7265
7265
|
});
|
|
7266
7266
|
}
|
|
7267
7267
|
|
|
7268
|
-
const VERSION$
|
|
7269
|
-
function validate$
|
|
7268
|
+
const VERSION$a = "69fe23112140e9fae50135dcb15c24c2";
|
|
7269
|
+
function validate$g(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7270
7270
|
const v_error = (() => {
|
|
7271
7271
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7272
7272
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7392,24 +7392,24 @@ function validate$d(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7392
7392
|
})();
|
|
7393
7393
|
return v_error === undefined ? null : v_error;
|
|
7394
7394
|
}
|
|
7395
|
-
const RepresentationType$
|
|
7396
|
-
function keyBuilder$
|
|
7397
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7395
|
+
const RepresentationType$8 = 'SemanticUnionOutputRepresentation';
|
|
7396
|
+
function keyBuilder$m(luvio, config) {
|
|
7397
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7398
7398
|
}
|
|
7399
7399
|
function keyBuilderFromType$4(luvio, object) {
|
|
7400
7400
|
const keyParams = {
|
|
7401
7401
|
name: object.id
|
|
7402
7402
|
};
|
|
7403
|
-
return keyBuilder$
|
|
7403
|
+
return keyBuilder$m(luvio, keyParams);
|
|
7404
7404
|
}
|
|
7405
|
-
function normalize$
|
|
7405
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7406
7406
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7407
7407
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7408
7408
|
if (input_semanticDataObjects !== undefined) {
|
|
7409
7409
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7410
7410
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7411
7411
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7412
|
-
input_semanticDataObjects[i] = ingest$
|
|
7412
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7413
7413
|
fullPath: input_semanticDataObjects_item_id,
|
|
7414
7414
|
propertyName: i,
|
|
7415
7415
|
parent: {
|
|
@@ -7427,7 +7427,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7427
7427
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
7428
7428
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
7429
7429
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
7430
|
-
input_semanticMappedFields[i] = ingest$
|
|
7430
|
+
input_semanticMappedFields[i] = ingest$9(input_semanticMappedFields_item, {
|
|
7431
7431
|
fullPath: input_semanticMappedFields_item_id,
|
|
7432
7432
|
propertyName: i,
|
|
7433
7433
|
parent: {
|
|
@@ -7441,10 +7441,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7441
7441
|
}
|
|
7442
7442
|
return input;
|
|
7443
7443
|
}
|
|
7444
|
-
const select$
|
|
7444
|
+
const select$m = function SemanticUnionOutputRepresentationSelect() {
|
|
7445
7445
|
return {
|
|
7446
7446
|
kind: 'Fragment',
|
|
7447
|
-
version: VERSION$
|
|
7447
|
+
version: VERSION$a,
|
|
7448
7448
|
private: [],
|
|
7449
7449
|
selections: [
|
|
7450
7450
|
{
|
|
@@ -7503,19 +7503,19 @@ const select$i = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7503
7503
|
kind: 'Link',
|
|
7504
7504
|
plural: true,
|
|
7505
7505
|
required: false,
|
|
7506
|
-
fragment: select$
|
|
7506
|
+
fragment: select$v()
|
|
7507
7507
|
},
|
|
7508
7508
|
{
|
|
7509
7509
|
name: 'semanticMappedFields',
|
|
7510
7510
|
kind: 'Link',
|
|
7511
7511
|
plural: true,
|
|
7512
7512
|
required: false,
|
|
7513
|
-
fragment: select$
|
|
7513
|
+
fragment: select$n()
|
|
7514
7514
|
}
|
|
7515
7515
|
]
|
|
7516
7516
|
};
|
|
7517
7517
|
};
|
|
7518
|
-
function equals$
|
|
7518
|
+
function equals$a(existing, incoming) {
|
|
7519
7519
|
const existing_apiName = existing.apiName;
|
|
7520
7520
|
const incoming_apiName = incoming.apiName;
|
|
7521
7521
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7665,42 +7665,42 @@ function equals$7(existing, incoming) {
|
|
|
7665
7665
|
}
|
|
7666
7666
|
return true;
|
|
7667
7667
|
}
|
|
7668
|
-
const ingest$
|
|
7668
|
+
const ingest$8 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7669
7669
|
if (process.env.NODE_ENV !== 'production') {
|
|
7670
|
-
const validateError = validate$
|
|
7670
|
+
const validateError = validate$g(input);
|
|
7671
7671
|
if (validateError !== null) {
|
|
7672
7672
|
throw validateError;
|
|
7673
7673
|
}
|
|
7674
7674
|
}
|
|
7675
7675
|
const key = keyBuilderFromType$4(luvio, input);
|
|
7676
7676
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7677
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7677
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$a, RepresentationType$8, equals$a);
|
|
7678
7678
|
return createLink(key);
|
|
7679
7679
|
};
|
|
7680
|
-
function getTypeCacheKeys$
|
|
7680
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7681
7681
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7682
7682
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
7683
7683
|
rootKeySet.set(rootKey, {
|
|
7684
7684
|
namespace: keyPrefix,
|
|
7685
|
-
representationName: RepresentationType$
|
|
7685
|
+
representationName: RepresentationType$8,
|
|
7686
7686
|
mergeable: false
|
|
7687
7687
|
});
|
|
7688
7688
|
if (input.semanticDataObjects !== undefined) {
|
|
7689
7689
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
7690
7690
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
7691
|
-
getTypeCacheKeys$
|
|
7691
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
7692
7692
|
}
|
|
7693
7693
|
}
|
|
7694
7694
|
if (input.semanticMappedFields !== undefined) {
|
|
7695
7695
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
7696
7696
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
7697
|
-
getTypeCacheKeys$
|
|
7697
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
7698
7698
|
}
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
7701
7701
|
|
|
7702
|
-
const VERSION$
|
|
7703
|
-
function validate$
|
|
7702
|
+
const VERSION$9 = "f186bf0514421e7f42e284136d60ea6c";
|
|
7703
|
+
function validate$f(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7704
7704
|
const v_error = (() => {
|
|
7705
7705
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7706
7706
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7764,7 +7764,7 @@ function validate$c(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7764
7764
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
7765
7765
|
const obj_filters_item = obj_filters[i];
|
|
7766
7766
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
7767
|
-
const referencepath_filters_itemValidationError = validate$
|
|
7767
|
+
const referencepath_filters_itemValidationError = validate$_(obj_filters_item, path_filters_item);
|
|
7768
7768
|
if (referencepath_filters_itemValidationError !== null) {
|
|
7769
7769
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
7770
7770
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7850,24 +7850,24 @@ function validate$c(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7850
7850
|
})();
|
|
7851
7851
|
return v_error === undefined ? null : v_error;
|
|
7852
7852
|
}
|
|
7853
|
-
const RepresentationType$
|
|
7854
|
-
function keyBuilder$
|
|
7855
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7853
|
+
const RepresentationType$7 = 'SemanticLogicalViewOutputRepresentation';
|
|
7854
|
+
function keyBuilder$l(luvio, config) {
|
|
7855
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7856
7856
|
}
|
|
7857
7857
|
function keyBuilderFromType$3(luvio, object) {
|
|
7858
7858
|
const keyParams = {
|
|
7859
7859
|
name: object.id
|
|
7860
7860
|
};
|
|
7861
|
-
return keyBuilder$
|
|
7861
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7862
7862
|
}
|
|
7863
|
-
function normalize$
|
|
7863
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7864
7864
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
7865
7865
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
7866
7866
|
if (input_semanticDataObjects !== undefined) {
|
|
7867
7867
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7868
7868
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7869
7869
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7870
|
-
input_semanticDataObjects[i] = ingest$
|
|
7870
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
7871
7871
|
fullPath: input_semanticDataObjects_item_id,
|
|
7872
7872
|
propertyName: i,
|
|
7873
7873
|
parent: {
|
|
@@ -7885,7 +7885,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7885
7885
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7886
7886
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7887
7887
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7888
|
-
input_semanticRelationships[i] = ingest$
|
|
7888
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
7889
7889
|
fullPath: input_semanticRelationships_item_id,
|
|
7890
7890
|
propertyName: i,
|
|
7891
7891
|
parent: {
|
|
@@ -7903,7 +7903,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7903
7903
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
7904
7904
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
7905
7905
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
7906
|
-
input_semanticUnions[i] = ingest$
|
|
7906
|
+
input_semanticUnions[i] = ingest$8(input_semanticUnions_item, {
|
|
7907
7907
|
fullPath: input_semanticUnions_item_id,
|
|
7908
7908
|
propertyName: i,
|
|
7909
7909
|
parent: {
|
|
@@ -7917,11 +7917,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
return input;
|
|
7919
7919
|
}
|
|
7920
|
-
const select$
|
|
7921
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7920
|
+
const select$l = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7921
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$I();
|
|
7922
7922
|
return {
|
|
7923
7923
|
kind: 'Fragment',
|
|
7924
|
-
version: VERSION$
|
|
7924
|
+
version: VERSION$9,
|
|
7925
7925
|
private: [],
|
|
7926
7926
|
selections: [
|
|
7927
7927
|
{
|
|
@@ -7992,21 +7992,21 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7992
7992
|
kind: 'Link',
|
|
7993
7993
|
plural: true,
|
|
7994
7994
|
required: false,
|
|
7995
|
-
fragment: select$
|
|
7995
|
+
fragment: select$v()
|
|
7996
7996
|
},
|
|
7997
7997
|
{
|
|
7998
7998
|
name: 'semanticRelationships',
|
|
7999
7999
|
kind: 'Link',
|
|
8000
8000
|
plural: true,
|
|
8001
8001
|
required: false,
|
|
8002
|
-
fragment: select$
|
|
8002
|
+
fragment: select$o()
|
|
8003
8003
|
},
|
|
8004
8004
|
{
|
|
8005
8005
|
name: 'semanticUnions',
|
|
8006
8006
|
kind: 'Link',
|
|
8007
8007
|
plural: true,
|
|
8008
8008
|
required: false,
|
|
8009
|
-
fragment: select$
|
|
8009
|
+
fragment: select$m()
|
|
8010
8010
|
},
|
|
8011
8011
|
{
|
|
8012
8012
|
name: 'semanticViewTypeEnum',
|
|
@@ -8016,7 +8016,7 @@ const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
8016
8016
|
]
|
|
8017
8017
|
};
|
|
8018
8018
|
};
|
|
8019
|
-
function equals$
|
|
8019
|
+
function equals$9(existing, incoming) {
|
|
8020
8020
|
const existing_apiName = existing.apiName;
|
|
8021
8021
|
const incoming_apiName = incoming.apiName;
|
|
8022
8022
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8164,7 +8164,7 @@ function equals$6(existing, incoming) {
|
|
|
8164
8164
|
return false;
|
|
8165
8165
|
}
|
|
8166
8166
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
8167
|
-
if (!(equals$
|
|
8167
|
+
if (!(equals$u(existing_filters_item, incoming_filters_item))) {
|
|
8168
8168
|
return false;
|
|
8169
8169
|
}
|
|
8170
8170
|
});
|
|
@@ -8228,48 +8228,48 @@ function equals$6(existing, incoming) {
|
|
|
8228
8228
|
}
|
|
8229
8229
|
return true;
|
|
8230
8230
|
}
|
|
8231
|
-
const ingest$
|
|
8231
|
+
const ingest$7 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8232
8232
|
if (process.env.NODE_ENV !== 'production') {
|
|
8233
|
-
const validateError = validate$
|
|
8233
|
+
const validateError = validate$f(input);
|
|
8234
8234
|
if (validateError !== null) {
|
|
8235
8235
|
throw validateError;
|
|
8236
8236
|
}
|
|
8237
8237
|
}
|
|
8238
8238
|
const key = keyBuilderFromType$3(luvio, input);
|
|
8239
8239
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8240
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8240
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$9, RepresentationType$7, equals$9);
|
|
8241
8241
|
return createLink(key);
|
|
8242
8242
|
};
|
|
8243
|
-
function getTypeCacheKeys$
|
|
8243
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8244
8244
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8245
8245
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
8246
8246
|
rootKeySet.set(rootKey, {
|
|
8247
8247
|
namespace: keyPrefix,
|
|
8248
|
-
representationName: RepresentationType$
|
|
8248
|
+
representationName: RepresentationType$7,
|
|
8249
8249
|
mergeable: false
|
|
8250
8250
|
});
|
|
8251
8251
|
if (input.semanticDataObjects !== undefined) {
|
|
8252
8252
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8253
8253
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8254
|
-
getTypeCacheKeys$
|
|
8254
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8255
8255
|
}
|
|
8256
8256
|
}
|
|
8257
8257
|
if (input.semanticRelationships !== undefined) {
|
|
8258
8258
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8259
8259
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8260
|
-
getTypeCacheKeys$
|
|
8260
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8261
8261
|
}
|
|
8262
8262
|
}
|
|
8263
8263
|
if (input.semanticUnions !== undefined) {
|
|
8264
8264
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
8265
8265
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
8266
|
-
getTypeCacheKeys$
|
|
8266
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticUnions[i]);
|
|
8267
8267
|
}
|
|
8268
8268
|
}
|
|
8269
8269
|
}
|
|
8270
8270
|
|
|
8271
|
-
const VERSION$
|
|
8272
|
-
function validate$
|
|
8271
|
+
const VERSION$8 = "562f9618d0de907973cf252f01ea567d";
|
|
8272
|
+
function validate$e(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8273
8273
|
const v_error = (() => {
|
|
8274
8274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8275
8275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8395,23 +8395,23 @@ function validate$b(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8395
8395
|
})();
|
|
8396
8396
|
return v_error === undefined ? null : v_error;
|
|
8397
8397
|
}
|
|
8398
|
-
const RepresentationType$
|
|
8399
|
-
function keyBuilder$
|
|
8400
|
-
return keyPrefix + '::' + RepresentationType$
|
|
8398
|
+
const RepresentationType$6 = 'SemanticParameterOutputRepresentation';
|
|
8399
|
+
function keyBuilder$k(luvio, config) {
|
|
8400
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
8401
8401
|
}
|
|
8402
8402
|
function keyBuilderFromType$2(luvio, object) {
|
|
8403
8403
|
const keyParams = {
|
|
8404
8404
|
name: object.id
|
|
8405
8405
|
};
|
|
8406
|
-
return keyBuilder$
|
|
8406
|
+
return keyBuilder$k(luvio, keyParams);
|
|
8407
8407
|
}
|
|
8408
|
-
function normalize$
|
|
8408
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
8409
8409
|
return input;
|
|
8410
8410
|
}
|
|
8411
|
-
const select$
|
|
8411
|
+
const select$k = function SemanticParameterOutputRepresentationSelect() {
|
|
8412
8412
|
return {
|
|
8413
8413
|
kind: 'Fragment',
|
|
8414
|
-
version: VERSION$
|
|
8414
|
+
version: VERSION$8,
|
|
8415
8415
|
private: [],
|
|
8416
8416
|
selections: [
|
|
8417
8417
|
{
|
|
@@ -8499,7 +8499,7 @@ const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
|
8499
8499
|
]
|
|
8500
8500
|
};
|
|
8501
8501
|
};
|
|
8502
|
-
function equals$
|
|
8502
|
+
function equals$8(existing, incoming) {
|
|
8503
8503
|
const existing_apiName = existing.apiName;
|
|
8504
8504
|
const incoming_apiName = incoming.apiName;
|
|
8505
8505
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -8696,30 +8696,30 @@ function equals$5(existing, incoming) {
|
|
|
8696
8696
|
}
|
|
8697
8697
|
return true;
|
|
8698
8698
|
}
|
|
8699
|
-
const ingest$
|
|
8699
|
+
const ingest$6 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8700
8700
|
if (process.env.NODE_ENV !== 'production') {
|
|
8701
|
-
const validateError = validate$
|
|
8701
|
+
const validateError = validate$e(input);
|
|
8702
8702
|
if (validateError !== null) {
|
|
8703
8703
|
throw validateError;
|
|
8704
8704
|
}
|
|
8705
8705
|
}
|
|
8706
8706
|
const key = keyBuilderFromType$2(luvio, input);
|
|
8707
8707
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8708
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8708
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$8, RepresentationType$6, equals$8);
|
|
8709
8709
|
return createLink(key);
|
|
8710
8710
|
};
|
|
8711
|
-
function getTypeCacheKeys$
|
|
8711
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
8712
8712
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8713
8713
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
8714
8714
|
rootKeySet.set(rootKey, {
|
|
8715
8715
|
namespace: keyPrefix,
|
|
8716
|
-
representationName: RepresentationType$
|
|
8716
|
+
representationName: RepresentationType$6,
|
|
8717
8717
|
mergeable: false
|
|
8718
8718
|
});
|
|
8719
8719
|
}
|
|
8720
8720
|
|
|
8721
|
-
const VERSION$
|
|
8722
|
-
function validate$
|
|
8721
|
+
const VERSION$7 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8722
|
+
function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8723
8723
|
const v_error = (() => {
|
|
8724
8724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8725
8725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8752,7 +8752,7 @@ function validate$a(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8752
8752
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8753
8753
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8754
8754
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8755
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
8755
|
+
const referencepath_baseModels_itemValidationError = validate$U(obj_baseModels_item, path_baseModels_item);
|
|
8756
8756
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8757
8757
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8758
8758
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9035,24 +9035,24 @@ function validate$a(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
9035
9035
|
})();
|
|
9036
9036
|
return v_error === undefined ? null : v_error;
|
|
9037
9037
|
}
|
|
9038
|
-
const RepresentationType$
|
|
9039
|
-
function keyBuilder$
|
|
9040
|
-
return keyPrefix + '::' + RepresentationType$
|
|
9038
|
+
const RepresentationType$5 = 'SemanticModelOutputRepresentation';
|
|
9039
|
+
function keyBuilder$j(luvio, config) {
|
|
9040
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
9041
9041
|
}
|
|
9042
9042
|
function keyBuilderFromType$1(luvio, object) {
|
|
9043
9043
|
const keyParams = {
|
|
9044
9044
|
name: object.id
|
|
9045
9045
|
};
|
|
9046
|
-
return keyBuilder$
|
|
9046
|
+
return keyBuilder$j(luvio, keyParams);
|
|
9047
9047
|
}
|
|
9048
|
-
function normalize$
|
|
9048
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9049
9049
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
9050
9050
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
9051
9051
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
9052
9052
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
9053
9053
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
9054
9054
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
9055
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
9055
|
+
input_semanticCalculatedDimensions[i] = ingest$e(input_semanticCalculatedDimensions_item, {
|
|
9056
9056
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
9057
9057
|
propertyName: i,
|
|
9058
9058
|
parent: {
|
|
@@ -9070,7 +9070,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9070
9070
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
9071
9071
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
9072
9072
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
9073
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
9073
|
+
input_semanticCalculatedMeasurements[i] = ingest$d(input_semanticCalculatedMeasurements_item, {
|
|
9074
9074
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
9075
9075
|
propertyName: i,
|
|
9076
9076
|
parent: {
|
|
@@ -9088,7 +9088,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9088
9088
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
9089
9089
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
9090
9090
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
9091
|
-
input_semanticDataObjects[i] = ingest$
|
|
9091
|
+
input_semanticDataObjects[i] = ingest$c(input_semanticDataObjects_item, {
|
|
9092
9092
|
fullPath: input_semanticDataObjects_item_id,
|
|
9093
9093
|
propertyName: i,
|
|
9094
9094
|
parent: {
|
|
@@ -9106,7 +9106,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9106
9106
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
9107
9107
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
9108
9108
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
9109
|
-
input_semanticGroupings[i] = ingest$
|
|
9109
|
+
input_semanticGroupings[i] = ingest$b(input_semanticGroupings_item, {
|
|
9110
9110
|
fullPath: input_semanticGroupings_item_id,
|
|
9111
9111
|
propertyName: i,
|
|
9112
9112
|
parent: {
|
|
@@ -9124,7 +9124,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9124
9124
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
9125
9125
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
9126
9126
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
9127
|
-
input_semanticLogicalViews[i] = ingest$
|
|
9127
|
+
input_semanticLogicalViews[i] = ingest$7(input_semanticLogicalViews_item, {
|
|
9128
9128
|
fullPath: input_semanticLogicalViews_item_id,
|
|
9129
9129
|
propertyName: i,
|
|
9130
9130
|
parent: {
|
|
@@ -9142,7 +9142,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9142
9142
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
9143
9143
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
9144
9144
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
9145
|
-
input_semanticMetrics[i] = ingest$
|
|
9145
|
+
input_semanticMetrics[i] = ingest$h(input_semanticMetrics_item, {
|
|
9146
9146
|
fullPath: input_semanticMetrics_item_id,
|
|
9147
9147
|
propertyName: i,
|
|
9148
9148
|
parent: {
|
|
@@ -9160,7 +9160,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9160
9160
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
9161
9161
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
9162
9162
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
9163
|
-
input_semanticParameters[i] = ingest$
|
|
9163
|
+
input_semanticParameters[i] = ingest$6(input_semanticParameters_item, {
|
|
9164
9164
|
fullPath: input_semanticParameters_item_id,
|
|
9165
9165
|
propertyName: i,
|
|
9166
9166
|
parent: {
|
|
@@ -9178,7 +9178,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9178
9178
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
9179
9179
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
9180
9180
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
9181
|
-
input_semanticRelationships[i] = ingest$
|
|
9181
|
+
input_semanticRelationships[i] = ingest$a(input_semanticRelationships_item, {
|
|
9182
9182
|
fullPath: input_semanticRelationships_item_id,
|
|
9183
9183
|
propertyName: i,
|
|
9184
9184
|
parent: {
|
|
@@ -9192,11 +9192,11 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9192
9192
|
}
|
|
9193
9193
|
return input;
|
|
9194
9194
|
}
|
|
9195
|
-
const select$
|
|
9196
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9195
|
+
const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
9196
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$B();
|
|
9197
9197
|
return {
|
|
9198
9198
|
kind: 'Fragment',
|
|
9199
|
-
version: VERSION$
|
|
9199
|
+
version: VERSION$7,
|
|
9200
9200
|
private: [],
|
|
9201
9201
|
selections: [
|
|
9202
9202
|
{
|
|
@@ -9282,7 +9282,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9282
9282
|
kind: 'Link',
|
|
9283
9283
|
plural: true,
|
|
9284
9284
|
required: false,
|
|
9285
|
-
fragment: select$
|
|
9285
|
+
fragment: select$x()
|
|
9286
9286
|
},
|
|
9287
9287
|
{
|
|
9288
9288
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9294,7 +9294,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9294
9294
|
kind: 'Link',
|
|
9295
9295
|
plural: true,
|
|
9296
9296
|
required: false,
|
|
9297
|
-
fragment: select$
|
|
9297
|
+
fragment: select$w()
|
|
9298
9298
|
},
|
|
9299
9299
|
{
|
|
9300
9300
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9306,7 +9306,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9306
9306
|
kind: 'Link',
|
|
9307
9307
|
plural: true,
|
|
9308
9308
|
required: false,
|
|
9309
|
-
fragment: select$
|
|
9309
|
+
fragment: select$v()
|
|
9310
9310
|
},
|
|
9311
9311
|
{
|
|
9312
9312
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9318,7 +9318,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9318
9318
|
kind: 'Link',
|
|
9319
9319
|
plural: true,
|
|
9320
9320
|
required: false,
|
|
9321
|
-
fragment: select$
|
|
9321
|
+
fragment: select$q()
|
|
9322
9322
|
},
|
|
9323
9323
|
{
|
|
9324
9324
|
name: 'semanticGroupingsUrl',
|
|
@@ -9330,21 +9330,21 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9330
9330
|
kind: 'Link',
|
|
9331
9331
|
plural: true,
|
|
9332
9332
|
required: false,
|
|
9333
|
-
fragment: select$
|
|
9333
|
+
fragment: select$l()
|
|
9334
9334
|
},
|
|
9335
9335
|
{
|
|
9336
9336
|
name: 'semanticMetrics',
|
|
9337
9337
|
kind: 'Link',
|
|
9338
9338
|
plural: true,
|
|
9339
9339
|
required: false,
|
|
9340
|
-
fragment: select$
|
|
9340
|
+
fragment: select$E()
|
|
9341
9341
|
},
|
|
9342
9342
|
{
|
|
9343
9343
|
name: 'semanticParameters',
|
|
9344
9344
|
kind: 'Link',
|
|
9345
9345
|
plural: true,
|
|
9346
9346
|
required: false,
|
|
9347
|
-
fragment: select$
|
|
9347
|
+
fragment: select$k()
|
|
9348
9348
|
},
|
|
9349
9349
|
{
|
|
9350
9350
|
name: 'semanticParametersUrl',
|
|
@@ -9356,7 +9356,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9356
9356
|
kind: 'Link',
|
|
9357
9357
|
plural: true,
|
|
9358
9358
|
required: false,
|
|
9359
|
-
fragment: select$
|
|
9359
|
+
fragment: select$o()
|
|
9360
9360
|
},
|
|
9361
9361
|
{
|
|
9362
9362
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9376,7 +9376,7 @@ const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
|
9376
9376
|
]
|
|
9377
9377
|
};
|
|
9378
9378
|
};
|
|
9379
|
-
function equals$
|
|
9379
|
+
function equals$7(existing, incoming) {
|
|
9380
9380
|
const existing_isLocked = existing.isLocked;
|
|
9381
9381
|
const incoming_isLocked = incoming.isLocked;
|
|
9382
9382
|
// if at least one of these optionals is defined
|
|
@@ -9620,7 +9620,7 @@ function equals$4(existing, incoming) {
|
|
|
9620
9620
|
return false;
|
|
9621
9621
|
}
|
|
9622
9622
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
9623
|
-
if (!(equals$
|
|
9623
|
+
if (!(equals$o(existing_baseModels_item, incoming_baseModels_item))) {
|
|
9624
9624
|
return false;
|
|
9625
9625
|
}
|
|
9626
9626
|
});
|
|
@@ -9805,89 +9805,89 @@ function equals$4(existing, incoming) {
|
|
|
9805
9805
|
}
|
|
9806
9806
|
return true;
|
|
9807
9807
|
}
|
|
9808
|
-
const ingest$
|
|
9808
|
+
const ingest$5 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9809
9809
|
if (process.env.NODE_ENV !== 'production') {
|
|
9810
|
-
const validateError = validate$
|
|
9810
|
+
const validateError = validate$d(input);
|
|
9811
9811
|
if (validateError !== null) {
|
|
9812
9812
|
throw validateError;
|
|
9813
9813
|
}
|
|
9814
9814
|
}
|
|
9815
9815
|
const key = keyBuilderFromType$1(luvio, input);
|
|
9816
9816
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9817
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9817
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$7, RepresentationType$5, equals$7);
|
|
9818
9818
|
return createLink(key);
|
|
9819
9819
|
};
|
|
9820
|
-
function getTypeCacheKeys$
|
|
9820
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9821
9821
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9822
9822
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
9823
9823
|
rootKeySet.set(rootKey, {
|
|
9824
9824
|
namespace: keyPrefix,
|
|
9825
|
-
representationName: RepresentationType$
|
|
9825
|
+
representationName: RepresentationType$5,
|
|
9826
9826
|
mergeable: false
|
|
9827
9827
|
});
|
|
9828
9828
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
9829
9829
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
9830
9830
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
9831
|
-
getTypeCacheKeys$
|
|
9831
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
9832
9832
|
}
|
|
9833
9833
|
}
|
|
9834
9834
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
9835
9835
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
9836
9836
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
9837
|
-
getTypeCacheKeys$
|
|
9837
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
9838
9838
|
}
|
|
9839
9839
|
}
|
|
9840
9840
|
if (input.semanticDataObjects !== undefined) {
|
|
9841
9841
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
9842
9842
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
9843
|
-
getTypeCacheKeys$
|
|
9843
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
9844
9844
|
}
|
|
9845
9845
|
}
|
|
9846
9846
|
if (input.semanticGroupings !== undefined) {
|
|
9847
9847
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
9848
9848
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
9849
|
-
getTypeCacheKeys$
|
|
9849
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
9850
9850
|
}
|
|
9851
9851
|
}
|
|
9852
9852
|
if (input.semanticLogicalViews !== undefined) {
|
|
9853
9853
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
9854
9854
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
9855
|
-
getTypeCacheKeys$
|
|
9855
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
9856
9856
|
}
|
|
9857
9857
|
}
|
|
9858
9858
|
if (input.semanticMetrics !== undefined) {
|
|
9859
9859
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
9860
9860
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
9861
|
-
getTypeCacheKeys$
|
|
9861
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
9864
9864
|
if (input.semanticParameters !== undefined) {
|
|
9865
9865
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
9866
9866
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
9867
|
-
getTypeCacheKeys$
|
|
9867
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.semanticParameters[i]);
|
|
9868
9868
|
}
|
|
9869
9869
|
}
|
|
9870
9870
|
if (input.semanticRelationships !== undefined) {
|
|
9871
9871
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
9872
9872
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
9873
|
-
getTypeCacheKeys$
|
|
9873
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
9874
9874
|
}
|
|
9875
9875
|
}
|
|
9876
9876
|
}
|
|
9877
9877
|
|
|
9878
|
-
function select$
|
|
9879
|
-
return select$
|
|
9878
|
+
function select$i(luvio, params) {
|
|
9879
|
+
return select$j();
|
|
9880
9880
|
}
|
|
9881
|
-
function getResponseCacheKeys$
|
|
9882
|
-
getTypeCacheKeys$
|
|
9881
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
9882
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9883
9883
|
}
|
|
9884
|
-
function ingestSuccess$
|
|
9884
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9885
9885
|
const { body } = response;
|
|
9886
9886
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9887
|
-
luvio.storeIngest(key, ingest$
|
|
9887
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9888
9888
|
const snapshot = luvio.storeLookup({
|
|
9889
9889
|
recordId: key,
|
|
9890
|
-
node: select$
|
|
9890
|
+
node: select$i(),
|
|
9891
9891
|
variables: {},
|
|
9892
9892
|
});
|
|
9893
9893
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9898,7 +9898,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
9898
9898
|
deepFreeze(snapshot.data);
|
|
9899
9899
|
return snapshot;
|
|
9900
9900
|
}
|
|
9901
|
-
function createResourceRequest$
|
|
9901
|
+
function createResourceRequest$d(config) {
|
|
9902
9902
|
const headers = {};
|
|
9903
9903
|
return {
|
|
9904
9904
|
baseUri: '/services/data/v63.0',
|
|
@@ -9912,7 +9912,7 @@ function createResourceRequest$c(config) {
|
|
|
9912
9912
|
};
|
|
9913
9913
|
}
|
|
9914
9914
|
|
|
9915
|
-
const adapterName$
|
|
9915
|
+
const adapterName$d = 'createSemanticModel';
|
|
9916
9916
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9917
9917
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9918
9918
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9933,17 +9933,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9933
9933
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9934
9934
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9935
9935
|
];
|
|
9936
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9937
|
-
const createResourceParams$
|
|
9938
|
-
function typeCheckConfig$
|
|
9936
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createSemanticModel_ConfigPropertyMetadata);
|
|
9937
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
9938
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9939
9939
|
const config = {};
|
|
9940
|
-
typeCheckConfig$
|
|
9940
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9941
9941
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9942
9942
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9943
9943
|
const untrustedConfig_baseModels_array = [];
|
|
9944
9944
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9945
9945
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9946
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
9946
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$R(untrustedConfig_baseModels_item);
|
|
9947
9947
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9948
9948
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9949
9949
|
}
|
|
@@ -9955,7 +9955,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9955
9955
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9956
9956
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9957
9957
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9958
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
9958
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$P(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9959
9959
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9960
9960
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9961
9961
|
}
|
|
@@ -9967,7 +9967,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9967
9967
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9968
9968
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9969
9969
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9970
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
9970
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$O(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9971
9971
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9972
9972
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9973
9973
|
}
|
|
@@ -9979,7 +9979,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9979
9979
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9980
9980
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9981
9981
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9982
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
9982
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$L(untrustedConfig_semanticDataObjects_item);
|
|
9983
9983
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9984
9984
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9985
9985
|
}
|
|
@@ -9991,7 +9991,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
9991
9991
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9992
9992
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9993
9993
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9994
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
9994
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$E(untrustedConfig_semanticGroupings_item);
|
|
9995
9995
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9996
9996
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9997
9997
|
}
|
|
@@ -10003,7 +10003,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10003
10003
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10004
10004
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10005
10005
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10006
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10006
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$z(untrustedConfig_semanticLogicalViews_item);
|
|
10007
10007
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10008
10008
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10009
10009
|
}
|
|
@@ -10015,7 +10015,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10015
10015
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10016
10016
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10017
10017
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10018
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10018
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$v(untrustedConfig_semanticMetrics_item);
|
|
10019
10019
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10020
10020
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10021
10021
|
}
|
|
@@ -10027,7 +10027,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10027
10027
|
const untrustedConfig_semanticParameters_array = [];
|
|
10028
10028
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10029
10029
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10030
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10030
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$u(untrustedConfig_semanticParameters_item);
|
|
10031
10031
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10032
10032
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10033
10033
|
}
|
|
@@ -10039,7 +10039,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10039
10039
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10040
10040
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10041
10041
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10042
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10042
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$C(untrustedConfig_semanticRelationships_item);
|
|
10043
10043
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10044
10044
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10045
10045
|
}
|
|
@@ -10048,30 +10048,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
10048
10048
|
}
|
|
10049
10049
|
return config;
|
|
10050
10050
|
}
|
|
10051
|
-
function validateAdapterConfig$
|
|
10051
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
10052
10052
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10053
10053
|
return null;
|
|
10054
10054
|
}
|
|
10055
10055
|
if (process.env.NODE_ENV !== 'production') {
|
|
10056
10056
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10057
10057
|
}
|
|
10058
|
-
const config = typeCheckConfig$
|
|
10058
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
10059
10059
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10060
10060
|
return null;
|
|
10061
10061
|
}
|
|
10062
10062
|
return config;
|
|
10063
10063
|
}
|
|
10064
|
-
function buildNetworkSnapshot$
|
|
10065
|
-
const resourceParams = createResourceParams$
|
|
10066
|
-
const request = createResourceRequest$
|
|
10064
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
10065
|
+
const resourceParams = createResourceParams$d(config);
|
|
10066
|
+
const request = createResourceRequest$d(resourceParams);
|
|
10067
10067
|
return luvio.dispatchResourceRequest(request, options)
|
|
10068
10068
|
.then((response) => {
|
|
10069
10069
|
return luvio.handleSuccessResponse(() => {
|
|
10070
|
-
const snapshot = ingestSuccess$
|
|
10070
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
10071
10071
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10072
10072
|
}, () => {
|
|
10073
10073
|
const cache = new StoreKeyMap();
|
|
10074
|
-
getResponseCacheKeys$
|
|
10074
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
10075
10075
|
return cache;
|
|
10076
10076
|
});
|
|
10077
10077
|
}, (response) => {
|
|
@@ -10081,33 +10081,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
10081
10081
|
}
|
|
10082
10082
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10083
10083
|
return function createSemanticModel(untrustedConfig) {
|
|
10084
|
-
const config = validateAdapterConfig$
|
|
10084
|
+
const config = validateAdapterConfig$d(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10085
10085
|
// Invalid or incomplete config
|
|
10086
10086
|
if (config === null) {
|
|
10087
10087
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10088
10088
|
}
|
|
10089
|
-
return buildNetworkSnapshot$
|
|
10089
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
10090
10090
|
};
|
|
10091
10091
|
};
|
|
10092
10092
|
|
|
10093
|
-
function select$
|
|
10094
|
-
return select$
|
|
10093
|
+
function select$h(luvio, params) {
|
|
10094
|
+
return select$j();
|
|
10095
10095
|
}
|
|
10096
|
-
function keyBuilder$
|
|
10097
|
-
return keyBuilder$
|
|
10096
|
+
function keyBuilder$i(luvio, params) {
|
|
10097
|
+
return keyBuilder$j(luvio, {
|
|
10098
10098
|
name: params.urlParams.modelApiNameOrId
|
|
10099
10099
|
});
|
|
10100
10100
|
}
|
|
10101
|
-
function getResponseCacheKeys$
|
|
10102
|
-
getTypeCacheKeys$
|
|
10101
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
10102
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10103
10103
|
}
|
|
10104
|
-
function ingestSuccess$
|
|
10104
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
10105
10105
|
const { body } = response;
|
|
10106
|
-
const key = keyBuilder$
|
|
10107
|
-
luvio.storeIngest(key, ingest$
|
|
10106
|
+
const key = keyBuilder$i(luvio, resourceParams);
|
|
10107
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10108
10108
|
const snapshot = luvio.storeLookup({
|
|
10109
10109
|
recordId: key,
|
|
10110
|
-
node: select$
|
|
10110
|
+
node: select$h(),
|
|
10111
10111
|
variables: {},
|
|
10112
10112
|
}, snapshotRefresh);
|
|
10113
10113
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10118,13 +10118,13 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10118
10118
|
deepFreeze(snapshot.data);
|
|
10119
10119
|
return snapshot;
|
|
10120
10120
|
}
|
|
10121
|
-
function ingestError$
|
|
10122
|
-
const key = keyBuilder$
|
|
10121
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
10122
|
+
const key = keyBuilder$i(luvio, params);
|
|
10123
10123
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10124
10124
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10125
10125
|
return errorSnapshot;
|
|
10126
10126
|
}
|
|
10127
|
-
function createResourceRequest$
|
|
10127
|
+
function createResourceRequest$c(config) {
|
|
10128
10128
|
const headers = {};
|
|
10129
10129
|
return {
|
|
10130
10130
|
baseUri: '/services/data/v63.0',
|
|
@@ -10138,108 +10138,108 @@ function createResourceRequest$b(config) {
|
|
|
10138
10138
|
};
|
|
10139
10139
|
}
|
|
10140
10140
|
|
|
10141
|
-
const adapterName$
|
|
10141
|
+
const adapterName$c = 'getSemanticModel';
|
|
10142
10142
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10143
10143
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10144
10144
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10145
10145
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10146
10146
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10147
10147
|
];
|
|
10148
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10149
|
-
const createResourceParams$
|
|
10150
|
-
function keyBuilder$
|
|
10151
|
-
const resourceParams = createResourceParams$
|
|
10152
|
-
return keyBuilder$
|
|
10148
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSemanticModel_ConfigPropertyMetadata);
|
|
10149
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10150
|
+
function keyBuilder$h(luvio, config) {
|
|
10151
|
+
const resourceParams = createResourceParams$c(config);
|
|
10152
|
+
return keyBuilder$i(luvio, resourceParams);
|
|
10153
10153
|
}
|
|
10154
|
-
function typeCheckConfig$
|
|
10154
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
10155
10155
|
const config = {};
|
|
10156
|
-
typeCheckConfig$
|
|
10156
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10157
10157
|
return config;
|
|
10158
10158
|
}
|
|
10159
|
-
function validateAdapterConfig$
|
|
10159
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10160
10160
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10161
10161
|
return null;
|
|
10162
10162
|
}
|
|
10163
10163
|
if (process.env.NODE_ENV !== 'production') {
|
|
10164
10164
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10165
10165
|
}
|
|
10166
|
-
const config = typeCheckConfig$
|
|
10166
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10167
10167
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10168
10168
|
return null;
|
|
10169
10169
|
}
|
|
10170
10170
|
return config;
|
|
10171
10171
|
}
|
|
10172
|
-
function adapterFragment$
|
|
10173
|
-
createResourceParams$
|
|
10174
|
-
return select$
|
|
10172
|
+
function adapterFragment$7(luvio, config) {
|
|
10173
|
+
createResourceParams$c(config);
|
|
10174
|
+
return select$h();
|
|
10175
10175
|
}
|
|
10176
|
-
function onFetchResponseSuccess$
|
|
10177
|
-
const snapshot = ingestSuccess$
|
|
10176
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
10177
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
10178
10178
|
config,
|
|
10179
|
-
resolve: () => buildNetworkSnapshot$
|
|
10179
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10180
10180
|
});
|
|
10181
10181
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10182
10182
|
}
|
|
10183
|
-
function onFetchResponseError$
|
|
10184
|
-
const snapshot = ingestError$
|
|
10183
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
10184
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
10185
10185
|
config,
|
|
10186
|
-
resolve: () => buildNetworkSnapshot$
|
|
10186
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10187
10187
|
});
|
|
10188
10188
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10189
10189
|
}
|
|
10190
|
-
function buildNetworkSnapshot$
|
|
10191
|
-
const resourceParams = createResourceParams$
|
|
10192
|
-
const request = createResourceRequest$
|
|
10190
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10191
|
+
const resourceParams = createResourceParams$c(config);
|
|
10192
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10193
10193
|
return luvio.dispatchResourceRequest(request, options)
|
|
10194
10194
|
.then((response) => {
|
|
10195
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
10195
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
10196
10196
|
const cache = new StoreKeyMap();
|
|
10197
|
-
getResponseCacheKeys$
|
|
10197
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10198
10198
|
return cache;
|
|
10199
10199
|
});
|
|
10200
10200
|
}, (response) => {
|
|
10201
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
10201
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
10202
10202
|
});
|
|
10203
10203
|
}
|
|
10204
|
-
function buildNetworkSnapshotCachePolicy$
|
|
10205
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10204
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
10205
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
|
|
10206
10206
|
}
|
|
10207
|
-
function buildCachedSnapshotCachePolicy$
|
|
10207
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
10208
10208
|
const { luvio, config } = context;
|
|
10209
10209
|
const selector = {
|
|
10210
|
-
recordId: keyBuilder$
|
|
10211
|
-
node: adapterFragment$
|
|
10210
|
+
recordId: keyBuilder$h(luvio, config),
|
|
10211
|
+
node: adapterFragment$7(luvio, config),
|
|
10212
10212
|
variables: {},
|
|
10213
10213
|
};
|
|
10214
10214
|
const cacheSnapshot = storeLookup(selector, {
|
|
10215
10215
|
config,
|
|
10216
|
-
resolve: () => buildNetworkSnapshot$
|
|
10216
|
+
resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
|
|
10217
10217
|
});
|
|
10218
10218
|
return cacheSnapshot;
|
|
10219
10219
|
}
|
|
10220
10220
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10221
|
-
const config = validateAdapterConfig$
|
|
10221
|
+
const config = validateAdapterConfig$c(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10222
10222
|
// Invalid or incomplete config
|
|
10223
10223
|
if (config === null) {
|
|
10224
10224
|
return null;
|
|
10225
10225
|
}
|
|
10226
10226
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10227
|
-
buildCachedSnapshotCachePolicy$
|
|
10227
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
10228
10228
|
};
|
|
10229
10229
|
|
|
10230
|
-
function select$
|
|
10231
|
-
return select$
|
|
10230
|
+
function select$g(luvio, params) {
|
|
10231
|
+
return select$j();
|
|
10232
10232
|
}
|
|
10233
|
-
function getResponseCacheKeys$
|
|
10234
|
-
getTypeCacheKeys$
|
|
10233
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10234
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
10235
10235
|
}
|
|
10236
|
-
function ingestSuccess$
|
|
10236
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
10237
10237
|
const { body } = response;
|
|
10238
10238
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10239
|
-
luvio.storeIngest(key, ingest$
|
|
10239
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
10240
10240
|
const snapshot = luvio.storeLookup({
|
|
10241
10241
|
recordId: key,
|
|
10242
|
-
node: select$
|
|
10242
|
+
node: select$g(),
|
|
10243
10243
|
variables: {},
|
|
10244
10244
|
});
|
|
10245
10245
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10250,7 +10250,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
10250
10250
|
deepFreeze(snapshot.data);
|
|
10251
10251
|
return snapshot;
|
|
10252
10252
|
}
|
|
10253
|
-
function createResourceRequest$
|
|
10253
|
+
function createResourceRequest$b(config) {
|
|
10254
10254
|
const headers = {};
|
|
10255
10255
|
return {
|
|
10256
10256
|
baseUri: '/services/data/v63.0',
|
|
@@ -10264,7 +10264,7 @@ function createResourceRequest$a(config) {
|
|
|
10264
10264
|
};
|
|
10265
10265
|
}
|
|
10266
10266
|
|
|
10267
|
-
const adapterName$
|
|
10267
|
+
const adapterName$b = 'patchSemanticModel';
|
|
10268
10268
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10269
10269
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10270
10270
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10286,17 +10286,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10286
10286
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10287
10287
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10288
10288
|
];
|
|
10289
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10290
|
-
const createResourceParams$
|
|
10291
|
-
function typeCheckConfig$
|
|
10289
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, patchSemanticModel_ConfigPropertyMetadata);
|
|
10290
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
10291
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10292
10292
|
const config = {};
|
|
10293
|
-
typeCheckConfig$
|
|
10293
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10294
10294
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10295
10295
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10296
10296
|
const untrustedConfig_baseModels_array = [];
|
|
10297
10297
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10298
10298
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10299
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10299
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$R(untrustedConfig_baseModels_item);
|
|
10300
10300
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10301
10301
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10302
10302
|
}
|
|
@@ -10308,7 +10308,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10308
10308
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10309
10309
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10310
10310
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10311
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10311
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$P(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10312
10312
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10313
10313
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10314
10314
|
}
|
|
@@ -10320,7 +10320,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10320
10320
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10321
10321
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10322
10322
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10323
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10323
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$O(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10324
10324
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10325
10325
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10326
10326
|
}
|
|
@@ -10332,7 +10332,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10332
10332
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10333
10333
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10334
10334
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10335
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10335
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$L(untrustedConfig_semanticDataObjects_item);
|
|
10336
10336
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10337
10337
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10338
10338
|
}
|
|
@@ -10344,7 +10344,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10344
10344
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10345
10345
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10346
10346
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10347
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10347
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$E(untrustedConfig_semanticGroupings_item);
|
|
10348
10348
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10349
10349
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10350
10350
|
}
|
|
@@ -10356,7 +10356,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10356
10356
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10357
10357
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10358
10358
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10359
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10359
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$z(untrustedConfig_semanticLogicalViews_item);
|
|
10360
10360
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10361
10361
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10362
10362
|
}
|
|
@@ -10368,7 +10368,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10368
10368
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10369
10369
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10370
10370
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10371
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10371
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$v(untrustedConfig_semanticMetrics_item);
|
|
10372
10372
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10373
10373
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10374
10374
|
}
|
|
@@ -10380,7 +10380,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10380
10380
|
const untrustedConfig_semanticParameters_array = [];
|
|
10381
10381
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10382
10382
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10383
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10383
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$u(untrustedConfig_semanticParameters_item);
|
|
10384
10384
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10385
10385
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10386
10386
|
}
|
|
@@ -10392,7 +10392,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10392
10392
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10393
10393
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10394
10394
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10395
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10395
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$C(untrustedConfig_semanticRelationships_item);
|
|
10396
10396
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10397
10397
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10398
10398
|
}
|
|
@@ -10401,30 +10401,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
10401
10401
|
}
|
|
10402
10402
|
return config;
|
|
10403
10403
|
}
|
|
10404
|
-
function validateAdapterConfig$
|
|
10404
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10405
10405
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10406
10406
|
return null;
|
|
10407
10407
|
}
|
|
10408
10408
|
if (process.env.NODE_ENV !== 'production') {
|
|
10409
10409
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10410
10410
|
}
|
|
10411
|
-
const config = typeCheckConfig$
|
|
10411
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10412
10412
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10413
10413
|
return null;
|
|
10414
10414
|
}
|
|
10415
10415
|
return config;
|
|
10416
10416
|
}
|
|
10417
|
-
function buildNetworkSnapshot$
|
|
10418
|
-
const resourceParams = createResourceParams$
|
|
10419
|
-
const request = createResourceRequest$
|
|
10417
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10418
|
+
const resourceParams = createResourceParams$b(config);
|
|
10419
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10420
10420
|
return luvio.dispatchResourceRequest(request, options)
|
|
10421
10421
|
.then((response) => {
|
|
10422
10422
|
return luvio.handleSuccessResponse(() => {
|
|
10423
|
-
const snapshot = ingestSuccess$
|
|
10423
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
10424
10424
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10425
10425
|
}, () => {
|
|
10426
10426
|
const cache = new StoreKeyMap();
|
|
10427
|
-
getResponseCacheKeys$
|
|
10427
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10428
10428
|
return cache;
|
|
10429
10429
|
});
|
|
10430
10430
|
}, (response) => {
|
|
@@ -10434,90 +10434,539 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10434
10434
|
}
|
|
10435
10435
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10436
10436
|
return function patchSemanticModel(untrustedConfig) {
|
|
10437
|
-
const config = validateAdapterConfig$
|
|
10437
|
+
const config = validateAdapterConfig$b(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10438
10438
|
// Invalid or incomplete config
|
|
10439
10439
|
if (config === null) {
|
|
10440
10440
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10441
10441
|
}
|
|
10442
|
-
return buildNetworkSnapshot$
|
|
10442
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
10443
10443
|
};
|
|
10444
10444
|
};
|
|
10445
10445
|
|
|
10446
|
-
|
|
10446
|
+
const VERSION$6 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
10447
|
+
function validate$c(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
10447
10448
|
const v_error = (() => {
|
|
10448
10449
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10449
10450
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10450
10451
|
}
|
|
10451
|
-
const
|
|
10452
|
-
const
|
|
10453
|
-
if (typeof
|
|
10454
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10452
|
+
const obj_apiName = obj.apiName;
|
|
10453
|
+
const path_apiName = path + '.apiName';
|
|
10454
|
+
if (typeof obj_apiName !== 'string') {
|
|
10455
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
10455
10456
|
}
|
|
10456
|
-
if (obj.
|
|
10457
|
-
const
|
|
10458
|
-
const
|
|
10459
|
-
if (typeof
|
|
10460
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
10457
|
+
if (obj.definitionType !== undefined) {
|
|
10458
|
+
const obj_definitionType = obj.definitionType;
|
|
10459
|
+
const path_definitionType = path + '.definitionType';
|
|
10460
|
+
if (typeof obj_definitionType !== 'string') {
|
|
10461
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
10461
10462
|
}
|
|
10462
10463
|
}
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
const path_primary = path + '.primary';
|
|
10470
|
-
if (typeof obj_primary !== 'boolean') {
|
|
10471
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
10472
|
-
}
|
|
10473
|
-
const obj_statusName = obj.statusName;
|
|
10474
|
-
const path_statusName = path + '.statusName';
|
|
10475
|
-
if (typeof obj_statusName !== 'string') {
|
|
10476
|
-
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
10477
|
-
}
|
|
10478
|
-
const obj_value = obj.value;
|
|
10479
|
-
const path_value = path + '.value';
|
|
10480
|
-
if (typeof obj_value !== 'string') {
|
|
10481
|
-
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
10482
|
-
}
|
|
10483
|
-
})();
|
|
10484
|
-
return v_error === undefined ? null : v_error;
|
|
10485
|
-
}
|
|
10486
|
-
|
|
10487
|
-
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10488
|
-
const v_error = (() => {
|
|
10489
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10490
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10491
|
-
}
|
|
10492
|
-
const obj_forecasting = obj.forecasting;
|
|
10493
|
-
const path_forecasting = path + '.forecasting';
|
|
10494
|
-
if (typeof obj_forecasting !== 'boolean') {
|
|
10495
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10496
|
-
}
|
|
10497
|
-
const obj_statusConditions = obj.statusConditions;
|
|
10498
|
-
const path_statusConditions = path + '.statusConditions';
|
|
10499
|
-
if (!ArrayIsArray(obj_statusConditions)) {
|
|
10500
|
-
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
10464
|
+
if (obj.label !== undefined) {
|
|
10465
|
+
const obj_label = obj.label;
|
|
10466
|
+
const path_label = path + '.label';
|
|
10467
|
+
if (typeof obj_label !== 'string') {
|
|
10468
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
10469
|
+
}
|
|
10501
10470
|
}
|
|
10502
|
-
|
|
10503
|
-
const
|
|
10504
|
-
const
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
10508
|
-
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10509
|
-
return new TypeError(message);
|
|
10471
|
+
if (obj.modelApiName !== undefined) {
|
|
10472
|
+
const obj_modelApiName = obj.modelApiName;
|
|
10473
|
+
const path_modelApiName = path + '.modelApiName';
|
|
10474
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
10475
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
10510
10476
|
}
|
|
10511
10477
|
}
|
|
10512
10478
|
})();
|
|
10513
10479
|
return v_error === undefined ? null : v_error;
|
|
10514
10480
|
}
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10481
|
+
const select$f = function SemanticDependencyOutputRepresentationSelect() {
|
|
10482
|
+
return {
|
|
10483
|
+
kind: 'Fragment',
|
|
10484
|
+
version: VERSION$6,
|
|
10485
|
+
private: [],
|
|
10486
|
+
selections: [
|
|
10487
|
+
{
|
|
10488
|
+
name: 'apiName',
|
|
10489
|
+
kind: 'Scalar'
|
|
10490
|
+
},
|
|
10491
|
+
{
|
|
10492
|
+
name: 'definitionType',
|
|
10493
|
+
kind: 'Scalar',
|
|
10494
|
+
required: false
|
|
10495
|
+
},
|
|
10496
|
+
{
|
|
10497
|
+
name: 'label',
|
|
10498
|
+
kind: 'Scalar',
|
|
10499
|
+
required: false
|
|
10500
|
+
},
|
|
10501
|
+
{
|
|
10502
|
+
name: 'modelApiName',
|
|
10503
|
+
kind: 'Scalar',
|
|
10504
|
+
required: false
|
|
10505
|
+
}
|
|
10506
|
+
]
|
|
10507
|
+
};
|
|
10508
|
+
};
|
|
10509
|
+
function equals$6(existing, incoming) {
|
|
10510
|
+
const existing_apiName = existing.apiName;
|
|
10511
|
+
const incoming_apiName = incoming.apiName;
|
|
10512
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
10513
|
+
return false;
|
|
10514
|
+
}
|
|
10515
|
+
const existing_definitionType = existing.definitionType;
|
|
10516
|
+
const incoming_definitionType = incoming.definitionType;
|
|
10517
|
+
// if at least one of these optionals is defined
|
|
10518
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
10519
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10520
|
+
// not equal
|
|
10521
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
10522
|
+
return false;
|
|
10523
|
+
}
|
|
10524
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
10525
|
+
return false;
|
|
10526
|
+
}
|
|
10527
|
+
}
|
|
10528
|
+
const existing_label = existing.label;
|
|
10529
|
+
const incoming_label = incoming.label;
|
|
10530
|
+
// if at least one of these optionals is defined
|
|
10531
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
10532
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10533
|
+
// not equal
|
|
10534
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
10535
|
+
return false;
|
|
10536
|
+
}
|
|
10537
|
+
if (!(existing_label === incoming_label)) {
|
|
10538
|
+
return false;
|
|
10539
|
+
}
|
|
10540
|
+
}
|
|
10541
|
+
const existing_modelApiName = existing.modelApiName;
|
|
10542
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
10543
|
+
// if at least one of these optionals is defined
|
|
10544
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
10545
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10546
|
+
// not equal
|
|
10547
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
10548
|
+
return false;
|
|
10549
|
+
}
|
|
10550
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
10551
|
+
return false;
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10554
|
+
return true;
|
|
10555
|
+
}
|
|
10556
|
+
|
|
10557
|
+
const VERSION$5 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
10558
|
+
function validate$b(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
10559
|
+
const v_error = (() => {
|
|
10560
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10561
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10562
|
+
}
|
|
10563
|
+
if (obj.definitionApiName !== undefined) {
|
|
10564
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
10565
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
10566
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
10567
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
10568
|
+
}
|
|
10569
|
+
}
|
|
10570
|
+
if (obj.dependencies !== undefined) {
|
|
10571
|
+
const obj_dependencies = obj.dependencies;
|
|
10572
|
+
const path_dependencies = path + '.dependencies';
|
|
10573
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
10574
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
10575
|
+
}
|
|
10576
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
10577
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
10578
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
10579
|
+
const referencepath_dependencies_itemValidationError = validate$c(obj_dependencies_item, path_dependencies_item);
|
|
10580
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
10581
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
10582
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10583
|
+
return new TypeError(message);
|
|
10584
|
+
}
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10587
|
+
if (obj.fieldApiName !== undefined) {
|
|
10588
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
10589
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
10590
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
10591
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
10592
|
+
}
|
|
10593
|
+
}
|
|
10594
|
+
})();
|
|
10595
|
+
return v_error === undefined ? null : v_error;
|
|
10596
|
+
}
|
|
10597
|
+
const select$e = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
10598
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$f();
|
|
10599
|
+
return {
|
|
10600
|
+
kind: 'Fragment',
|
|
10601
|
+
version: VERSION$5,
|
|
10602
|
+
private: [],
|
|
10603
|
+
selections: [
|
|
10604
|
+
{
|
|
10605
|
+
name: 'definitionApiName',
|
|
10606
|
+
kind: 'Scalar',
|
|
10607
|
+
required: false
|
|
10608
|
+
},
|
|
10609
|
+
{
|
|
10610
|
+
name: 'dependencies',
|
|
10611
|
+
kind: 'Object',
|
|
10612
|
+
plural: true,
|
|
10613
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
10614
|
+
required: false
|
|
10615
|
+
},
|
|
10616
|
+
{
|
|
10617
|
+
name: 'fieldApiName',
|
|
10618
|
+
kind: 'Scalar',
|
|
10619
|
+
required: false
|
|
10620
|
+
}
|
|
10621
|
+
]
|
|
10622
|
+
};
|
|
10623
|
+
};
|
|
10624
|
+
function equals$5(existing, incoming) {
|
|
10625
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
10626
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
10627
|
+
// if at least one of these optionals is defined
|
|
10628
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
10629
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10630
|
+
// not equal
|
|
10631
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
10632
|
+
return false;
|
|
10633
|
+
}
|
|
10634
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
10635
|
+
return false;
|
|
10636
|
+
}
|
|
10637
|
+
}
|
|
10638
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
10639
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
10640
|
+
// if at least one of these optionals is defined
|
|
10641
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
10642
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10643
|
+
// not equal
|
|
10644
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
10645
|
+
return false;
|
|
10646
|
+
}
|
|
10647
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
10648
|
+
return false;
|
|
10649
|
+
}
|
|
10650
|
+
}
|
|
10651
|
+
const existing_dependencies = existing.dependencies;
|
|
10652
|
+
const incoming_dependencies = incoming.dependencies;
|
|
10653
|
+
// if at least one of these optionals is defined
|
|
10654
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
10655
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10656
|
+
// not equal
|
|
10657
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
10658
|
+
return false;
|
|
10659
|
+
}
|
|
10660
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
10661
|
+
if (!(equals$6(existing_dependencies_item, incoming_dependencies_item))) {
|
|
10662
|
+
return false;
|
|
10663
|
+
}
|
|
10664
|
+
});
|
|
10665
|
+
if (equals_dependencies_items === false) {
|
|
10666
|
+
return false;
|
|
10667
|
+
}
|
|
10668
|
+
}
|
|
10669
|
+
return true;
|
|
10670
|
+
}
|
|
10671
|
+
|
|
10672
|
+
const VERSION$4 = "e710141192798ab103ce7e9b469baad4";
|
|
10673
|
+
function validate$a(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
10674
|
+
const v_error = (() => {
|
|
10675
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10676
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10677
|
+
}
|
|
10678
|
+
if (obj.item !== undefined) {
|
|
10679
|
+
const obj_item = obj.item;
|
|
10680
|
+
const path_item = path + '.item';
|
|
10681
|
+
if (!ArrayIsArray(obj_item)) {
|
|
10682
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
10683
|
+
}
|
|
10684
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
10685
|
+
const obj_item_item = obj_item[i];
|
|
10686
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
10687
|
+
const referencepath_item_itemValidationError = validate$b(obj_item_item, path_item_item);
|
|
10688
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
10689
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
10690
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10691
|
+
return new TypeError(message);
|
|
10692
|
+
}
|
|
10693
|
+
}
|
|
10694
|
+
}
|
|
10695
|
+
})();
|
|
10696
|
+
return v_error === undefined ? null : v_error;
|
|
10697
|
+
}
|
|
10698
|
+
const RepresentationType$4 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
10699
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
10700
|
+
return input;
|
|
10701
|
+
}
|
|
10702
|
+
const select$d = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
10703
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$e();
|
|
10704
|
+
return {
|
|
10705
|
+
kind: 'Fragment',
|
|
10706
|
+
version: VERSION$4,
|
|
10707
|
+
private: [],
|
|
10708
|
+
selections: [
|
|
10709
|
+
{
|
|
10710
|
+
name: 'item',
|
|
10711
|
+
kind: 'Object',
|
|
10712
|
+
plural: true,
|
|
10713
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
10714
|
+
required: false
|
|
10715
|
+
}
|
|
10716
|
+
]
|
|
10717
|
+
};
|
|
10718
|
+
};
|
|
10719
|
+
function equals$4(existing, incoming) {
|
|
10720
|
+
const existing_item = existing.item;
|
|
10721
|
+
const incoming_item = incoming.item;
|
|
10722
|
+
// if at least one of these optionals is defined
|
|
10723
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
10724
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10725
|
+
// not equal
|
|
10726
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
10727
|
+
return false;
|
|
10728
|
+
}
|
|
10729
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
10730
|
+
if (!(equals$5(existing_item_item, incoming_item_item))) {
|
|
10731
|
+
return false;
|
|
10732
|
+
}
|
|
10733
|
+
});
|
|
10734
|
+
if (equals_item_items === false) {
|
|
10735
|
+
return false;
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
return true;
|
|
10739
|
+
}
|
|
10740
|
+
const ingest$4 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10741
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10742
|
+
const validateError = validate$a(input);
|
|
10743
|
+
if (validateError !== null) {
|
|
10744
|
+
throw validateError;
|
|
10745
|
+
}
|
|
10746
|
+
}
|
|
10747
|
+
const key = path.fullPath;
|
|
10748
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
10749
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "SemanticAuthoring", VERSION$4, RepresentationType$4, equals$4);
|
|
10750
|
+
return createLink(key);
|
|
10751
|
+
};
|
|
10752
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
10753
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
10754
|
+
const rootKey = fullPathFactory();
|
|
10755
|
+
rootKeySet.set(rootKey, {
|
|
10756
|
+
namespace: keyPrefix,
|
|
10757
|
+
representationName: RepresentationType$4,
|
|
10758
|
+
mergeable: false
|
|
10759
|
+
});
|
|
10760
|
+
}
|
|
10761
|
+
|
|
10762
|
+
function select$c(luvio, params) {
|
|
10763
|
+
return select$d();
|
|
10764
|
+
}
|
|
10765
|
+
function keyBuilder$g(luvio, params) {
|
|
10766
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10767
|
+
}
|
|
10768
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10769
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
10770
|
+
}
|
|
10771
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
10772
|
+
const { body } = response;
|
|
10773
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10774
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
10775
|
+
const snapshot = luvio.storeLookup({
|
|
10776
|
+
recordId: key,
|
|
10777
|
+
node: select$c(),
|
|
10778
|
+
variables: {},
|
|
10779
|
+
}, snapshotRefresh);
|
|
10780
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10781
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
10782
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
10783
|
+
}
|
|
10784
|
+
}
|
|
10785
|
+
deepFreeze(snapshot.data);
|
|
10786
|
+
return snapshot;
|
|
10787
|
+
}
|
|
10788
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10789
|
+
const key = keyBuilder$g(luvio, params);
|
|
10790
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10791
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
10792
|
+
return errorSnapshot;
|
|
10793
|
+
}
|
|
10794
|
+
function createResourceRequest$a(config) {
|
|
10795
|
+
const headers = {};
|
|
10796
|
+
return {
|
|
10797
|
+
baseUri: '/services/data/v63.0',
|
|
10798
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
10799
|
+
method: 'get',
|
|
10800
|
+
body: null,
|
|
10801
|
+
urlParams: config.urlParams,
|
|
10802
|
+
queryParams: config.queryParams,
|
|
10803
|
+
headers,
|
|
10804
|
+
priority: 'normal',
|
|
10805
|
+
};
|
|
10806
|
+
}
|
|
10807
|
+
|
|
10808
|
+
const adapterName$a = 'getLeafDependenciesByTypes';
|
|
10809
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
10810
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10811
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10812
|
+
];
|
|
10813
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10814
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10815
|
+
function keyBuilder$f(luvio, config) {
|
|
10816
|
+
const resourceParams = createResourceParams$a(config);
|
|
10817
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10818
|
+
}
|
|
10819
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10820
|
+
const config = {};
|
|
10821
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
10822
|
+
return config;
|
|
10823
|
+
}
|
|
10824
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10825
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
10826
|
+
return null;
|
|
10827
|
+
}
|
|
10828
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10829
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
10830
|
+
}
|
|
10831
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10832
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10833
|
+
return null;
|
|
10834
|
+
}
|
|
10835
|
+
return config;
|
|
10836
|
+
}
|
|
10837
|
+
function adapterFragment$6(luvio, config) {
|
|
10838
|
+
createResourceParams$a(config);
|
|
10839
|
+
return select$c();
|
|
10840
|
+
}
|
|
10841
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10842
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
10843
|
+
config,
|
|
10844
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10845
|
+
});
|
|
10846
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10847
|
+
}
|
|
10848
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10849
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10850
|
+
config,
|
|
10851
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10852
|
+
});
|
|
10853
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
10854
|
+
}
|
|
10855
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10856
|
+
const resourceParams = createResourceParams$a(config);
|
|
10857
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10858
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
10859
|
+
.then((response) => {
|
|
10860
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10861
|
+
const cache = new StoreKeyMap();
|
|
10862
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10863
|
+
return cache;
|
|
10864
|
+
});
|
|
10865
|
+
}, (response) => {
|
|
10866
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
10867
|
+
});
|
|
10868
|
+
}
|
|
10869
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10870
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
10871
|
+
}
|
|
10872
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10873
|
+
const { luvio, config } = context;
|
|
10874
|
+
const selector = {
|
|
10875
|
+
recordId: keyBuilder$f(luvio, config),
|
|
10876
|
+
node: adapterFragment$6(luvio, config),
|
|
10877
|
+
variables: {},
|
|
10878
|
+
};
|
|
10879
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
10880
|
+
config,
|
|
10881
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
10882
|
+
});
|
|
10883
|
+
return cacheSnapshot;
|
|
10884
|
+
}
|
|
10885
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
10886
|
+
const config = validateAdapterConfig$a(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
10887
|
+
// Invalid or incomplete config
|
|
10888
|
+
if (config === null) {
|
|
10889
|
+
return null;
|
|
10890
|
+
}
|
|
10891
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
10892
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
10893
|
+
};
|
|
10894
|
+
|
|
10895
|
+
function validate$9(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
10896
|
+
const v_error = (() => {
|
|
10897
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10898
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10899
|
+
}
|
|
10900
|
+
const obj_color = obj.color;
|
|
10901
|
+
const path_color = path + '.color';
|
|
10902
|
+
if (typeof obj_color !== 'string') {
|
|
10903
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
10904
|
+
}
|
|
10905
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
10906
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
10907
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
10908
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
10909
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
10910
|
+
}
|
|
10911
|
+
}
|
|
10912
|
+
const obj_operator = obj.operator;
|
|
10913
|
+
const path_operator = path + '.operator';
|
|
10914
|
+
if (typeof obj_operator !== 'string') {
|
|
10915
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
10916
|
+
}
|
|
10917
|
+
const obj_primary = obj.primary;
|
|
10918
|
+
const path_primary = path + '.primary';
|
|
10919
|
+
if (typeof obj_primary !== 'boolean') {
|
|
10920
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
10921
|
+
}
|
|
10922
|
+
const obj_statusName = obj.statusName;
|
|
10923
|
+
const path_statusName = path + '.statusName';
|
|
10924
|
+
if (typeof obj_statusName !== 'string') {
|
|
10925
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
10926
|
+
}
|
|
10927
|
+
const obj_value = obj.value;
|
|
10928
|
+
const path_value = path + '.value';
|
|
10929
|
+
if (typeof obj_value !== 'string') {
|
|
10930
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
10931
|
+
}
|
|
10932
|
+
})();
|
|
10933
|
+
return v_error === undefined ? null : v_error;
|
|
10934
|
+
}
|
|
10935
|
+
|
|
10936
|
+
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10937
|
+
const v_error = (() => {
|
|
10938
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10939
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10940
|
+
}
|
|
10941
|
+
const obj_forecasting = obj.forecasting;
|
|
10942
|
+
const path_forecasting = path + '.forecasting';
|
|
10943
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
10944
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10945
|
+
}
|
|
10946
|
+
const obj_statusConditions = obj.statusConditions;
|
|
10947
|
+
const path_statusConditions = path + '.statusConditions';
|
|
10948
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
10949
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
10950
|
+
}
|
|
10951
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
10952
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
10953
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
10954
|
+
const referencepath_statusConditions_itemValidationError = validate$9(obj_statusConditions_item, path_statusConditions_item);
|
|
10955
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
10956
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
10957
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10958
|
+
return new TypeError(message);
|
|
10959
|
+
}
|
|
10960
|
+
}
|
|
10961
|
+
})();
|
|
10962
|
+
return v_error === undefined ? null : v_error;
|
|
10963
|
+
}
|
|
10964
|
+
|
|
10965
|
+
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10966
|
+
const v_error = (() => {
|
|
10967
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10968
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10969
|
+
}
|
|
10521
10970
|
if (obj.customEndDate !== undefined) {
|
|
10522
10971
|
const obj_customEndDate = obj.customEndDate;
|
|
10523
10972
|
const path_customEndDate = path + '.customEndDate';
|
|
@@ -10601,7 +11050,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10601
11050
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
10602
11051
|
const obj_filters_item = obj_filters[i];
|
|
10603
11052
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
10604
|
-
const referencepath_filters_itemValidationError = validate$
|
|
11053
|
+
const referencepath_filters_itemValidationError = validate$_(obj_filters_item, path_filters_item);
|
|
10605
11054
|
if (referencepath_filters_itemValidationError !== null) {
|
|
10606
11055
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
10607
11056
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10655,7 +11104,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10655
11104
|
if (obj.semanticMetric !== undefined) {
|
|
10656
11105
|
const obj_semanticMetric = obj.semanticMetric;
|
|
10657
11106
|
const path_semanticMetric = path + '.semanticMetric';
|
|
10658
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
11107
|
+
const referencepath_semanticMetricValidationError = validate$W(obj_semanticMetric, path_semanticMetric);
|
|
10659
11108
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
10660
11109
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
10661
11110
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11021,14 +11470,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
11021
11470
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11022
11471
|
];
|
|
11023
11472
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11024
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
11473
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11025
11474
|
function keyBuilder$c(luvio, config) {
|
|
11026
11475
|
const resourceParams = createResourceParams$9(config);
|
|
11027
11476
|
return keyBuilder$d(luvio, resourceParams);
|
|
11028
11477
|
}
|
|
11029
11478
|
function typeCheckConfig$9(untrustedConfig) {
|
|
11030
11479
|
const config = {};
|
|
11031
|
-
typeCheckConfig$
|
|
11480
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
11032
11481
|
return config;
|
|
11033
11482
|
}
|
|
11034
11483
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -11077,7 +11526,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
11077
11526
|
});
|
|
11078
11527
|
}
|
|
11079
11528
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11080
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11529
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11081
11530
|
}
|
|
11082
11531
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11083
11532
|
const { luvio, config } = context;
|
|
@@ -11103,18 +11552,18 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11103
11552
|
};
|
|
11104
11553
|
|
|
11105
11554
|
function select$7(luvio, params) {
|
|
11106
|
-
return select$
|
|
11555
|
+
return select$D();
|
|
11107
11556
|
}
|
|
11108
11557
|
function keyBuilder$b(luvio, params) {
|
|
11109
11558
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11110
11559
|
}
|
|
11111
11560
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11112
|
-
getTypeCacheKeys$
|
|
11561
|
+
getTypeCacheKeys$g(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11113
11562
|
}
|
|
11114
11563
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11115
11564
|
const { body } = response;
|
|
11116
11565
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
11117
|
-
luvio.storeIngest(key, ingest$
|
|
11566
|
+
luvio.storeIngest(key, ingest$g, body);
|
|
11118
11567
|
const snapshot = luvio.storeLookup({
|
|
11119
11568
|
recordId: key,
|
|
11120
11569
|
node: select$7(),
|
|
@@ -11153,14 +11602,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
11153
11602
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11154
11603
|
];
|
|
11155
11604
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11156
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
11605
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11157
11606
|
function keyBuilder$a(luvio, config) {
|
|
11158
11607
|
const resourceParams = createResourceParams$8(config);
|
|
11159
11608
|
return keyBuilder$b(luvio, resourceParams);
|
|
11160
11609
|
}
|
|
11161
11610
|
function typeCheckConfig$8(untrustedConfig) {
|
|
11162
11611
|
const config = {};
|
|
11163
|
-
typeCheckConfig$
|
|
11612
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11164
11613
|
return config;
|
|
11165
11614
|
}
|
|
11166
11615
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -11209,7 +11658,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
11209
11658
|
});
|
|
11210
11659
|
}
|
|
11211
11660
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11212
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11661
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11213
11662
|
}
|
|
11214
11663
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11215
11664
|
const { luvio, config } = context;
|
|
@@ -11235,20 +11684,20 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11235
11684
|
};
|
|
11236
11685
|
|
|
11237
11686
|
function select$6(luvio, params) {
|
|
11238
|
-
return select$
|
|
11687
|
+
return select$E();
|
|
11239
11688
|
}
|
|
11240
11689
|
function keyBuilder$9(luvio, params) {
|
|
11241
|
-
return keyBuilder$
|
|
11690
|
+
return keyBuilder$x(luvio, {
|
|
11242
11691
|
name: params.urlParams.metricNameOrId
|
|
11243
11692
|
});
|
|
11244
11693
|
}
|
|
11245
11694
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11246
|
-
getTypeCacheKeys$
|
|
11695
|
+
getTypeCacheKeys$h(storeKeyMap, luvio, response);
|
|
11247
11696
|
}
|
|
11248
11697
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11249
11698
|
const { body } = response;
|
|
11250
11699
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
11251
|
-
luvio.storeIngest(key, ingest$
|
|
11700
|
+
luvio.storeIngest(key, ingest$h, body);
|
|
11252
11701
|
const snapshot = luvio.storeLookup({
|
|
11253
11702
|
recordId: key,
|
|
11254
11703
|
node: select$6(),
|
|
@@ -11288,14 +11737,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
11288
11737
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11289
11738
|
];
|
|
11290
11739
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11291
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
11740
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
11292
11741
|
function keyBuilder$8(luvio, config) {
|
|
11293
11742
|
const resourceParams = createResourceParams$7(config);
|
|
11294
11743
|
return keyBuilder$9(luvio, resourceParams);
|
|
11295
11744
|
}
|
|
11296
11745
|
function typeCheckConfig$7(untrustedConfig) {
|
|
11297
11746
|
const config = {};
|
|
11298
|
-
typeCheckConfig$
|
|
11747
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11299
11748
|
return config;
|
|
11300
11749
|
}
|
|
11301
11750
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -11344,7 +11793,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11344
11793
|
});
|
|
11345
11794
|
}
|
|
11346
11795
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11347
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11796
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11348
11797
|
}
|
|
11349
11798
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11350
11799
|
const { luvio, config } = context;
|
|
@@ -11531,14 +11980,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11531
11980
|
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11532
11981
|
];
|
|
11533
11982
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11534
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
11983
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11535
11984
|
function keyBuilder$6(luvio, config) {
|
|
11536
11985
|
const resourceParams = createResourceParams$6(config);
|
|
11537
11986
|
return keyBuilder$7(luvio, resourceParams);
|
|
11538
11987
|
}
|
|
11539
11988
|
function typeCheckConfig$6(untrustedConfig) {
|
|
11540
11989
|
const config = {};
|
|
11541
|
-
typeCheckConfig$
|
|
11990
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11542
11991
|
return config;
|
|
11543
11992
|
}
|
|
11544
11993
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -11587,7 +12036,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11587
12036
|
});
|
|
11588
12037
|
}
|
|
11589
12038
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11590
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12039
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11591
12040
|
}
|
|
11592
12041
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11593
12042
|
const { luvio, config } = context;
|
|
@@ -11776,16 +12225,16 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11776
12225
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11777
12226
|
];
|
|
11778
12227
|
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11779
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
12228
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11780
12229
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11781
12230
|
const config = {};
|
|
11782
|
-
typeCheckConfig$
|
|
12231
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11783
12232
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11784
12233
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11785
12234
|
const untrustedConfig_filters_array = [];
|
|
11786
12235
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11787
12236
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11788
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
12237
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$Q(untrustedConfig_filters_item);
|
|
11789
12238
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11790
12239
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11791
12240
|
}
|
|
@@ -11883,10 +12332,10 @@ const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11883
12332
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11884
12333
|
];
|
|
11885
12334
|
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11886
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
12335
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11887
12336
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11888
12337
|
const config = {};
|
|
11889
|
-
typeCheckConfig$
|
|
12338
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11890
12339
|
return config;
|
|
11891
12340
|
}
|
|
11892
12341
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11985,14 +12434,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11985
12434
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11986
12435
|
];
|
|
11987
12436
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11988
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12437
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11989
12438
|
function keyBuilder$3(luvio, config) {
|
|
11990
12439
|
const resourceParams = createResourceParams$3(config);
|
|
11991
12440
|
return keyBuilder$4(luvio, resourceParams);
|
|
11992
12441
|
}
|
|
11993
12442
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11994
12443
|
const config = {};
|
|
11995
|
-
typeCheckConfig$
|
|
12444
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11996
12445
|
return config;
|
|
11997
12446
|
}
|
|
11998
12447
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -12041,7 +12490,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
12041
12490
|
});
|
|
12042
12491
|
}
|
|
12043
12492
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
12044
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12493
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
12045
12494
|
}
|
|
12046
12495
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
12047
12496
|
const { luvio, config } = context;
|
|
@@ -12103,10 +12552,10 @@ const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
|
12103
12552
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12104
12553
|
];
|
|
12105
12554
|
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12106
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12555
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12107
12556
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12108
12557
|
const config = {};
|
|
12109
|
-
typeCheckConfig$
|
|
12558
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12110
12559
|
return config;
|
|
12111
12560
|
}
|
|
12112
12561
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -12196,10 +12645,10 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
12196
12645
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12197
12646
|
];
|
|
12198
12647
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12199
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12648
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12200
12649
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12201
12650
|
const config = {};
|
|
12202
|
-
typeCheckConfig$
|
|
12651
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12203
12652
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12204
12653
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12205
12654
|
const untrustedConfig_statusConditions_array = [];
|
|
@@ -12260,7 +12709,7 @@ function select(luvio, params) {
|
|
|
12260
12709
|
return select$5();
|
|
12261
12710
|
}
|
|
12262
12711
|
function keyBuilder$1(luvio, params) {
|
|
12263
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12712
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12264
12713
|
}
|
|
12265
12714
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12266
12715
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -12296,7 +12745,7 @@ function createResourceRequest(config) {
|
|
|
12296
12745
|
method: 'get',
|
|
12297
12746
|
body: null,
|
|
12298
12747
|
urlParams: config.urlParams,
|
|
12299
|
-
queryParams:
|
|
12748
|
+
queryParams: config.queryParams,
|
|
12300
12749
|
headers,
|
|
12301
12750
|
priority: 'normal',
|
|
12302
12751
|
};
|
|
@@ -12305,16 +12754,18 @@ function createResourceRequest(config) {
|
|
|
12305
12754
|
const adapterName = 'getSemanticSubMetricsById';
|
|
12306
12755
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
12307
12756
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12757
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12758
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12308
12759
|
];
|
|
12309
12760
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12310
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12761
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12311
12762
|
function keyBuilder(luvio, config) {
|
|
12312
12763
|
const resourceParams = createResourceParams(config);
|
|
12313
12764
|
return keyBuilder$1(luvio, resourceParams);
|
|
12314
12765
|
}
|
|
12315
12766
|
function typeCheckConfig(untrustedConfig) {
|
|
12316
12767
|
const config = {};
|
|
12317
|
-
typeCheckConfig$
|
|
12768
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12318
12769
|
return config;
|
|
12319
12770
|
}
|
|
12320
12771
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12363,7 +12814,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
12363
12814
|
});
|
|
12364
12815
|
}
|
|
12365
12816
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12366
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12817
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
12367
12818
|
}
|
|
12368
12819
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12369
12820
|
const { luvio, config } = context;
|
|
@@ -12388,4 +12839,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12388
12839
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12389
12840
|
};
|
|
12390
12841
|
|
|
12391
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12842
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getLeafDependenciesByTypesAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|