@salesforce/lds-adapters-cdp-semantic-authoring 1.333.0 → 1.335.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +870 -716
- package/dist/es/es2018/types/src/generated/adapters/deleteGoalFromSubMetric.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticMetricsByIds.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/adapters/patchSemanticMetricGoal.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/deleteSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticMetricsByMetricIds.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/patchSsotSemanticModelsSubMetricsGoalByModelApiNameOrIdAndSubMetricNameOrId.d.ts +3 -5
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalStatusConditionOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalInputRepresentation.d.ts +8 -12
- package/dist/es/es2018/types/src/generated/types/SemanticMetricGoalOutputRepresentation.d.ts +4 -12
- package/package.json +3 -3
- package/sfdc/index.js +818 -658
- package/src/raml/api.raml +74 -60
- package/src/raml/luvio.raml +9 -0
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeInputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalDateRangeOutputRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/SemanticGoalValueOutputRepresentation.d.ts +0 -28
|
@@ -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$9, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$f, StoreKeyMap, createResourceParams as createResourceParams$f } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const VERSION$t = "a2976cd68e629a917463a3b690cf2527";
|
|
96
|
-
function validate
|
|
96
|
+
function validate$Y(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,7 +115,7 @@ function validate$$(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
115
115
|
})();
|
|
116
116
|
return v_error === undefined ? null : v_error;
|
|
117
117
|
}
|
|
118
|
-
const select$
|
|
118
|
+
const select$G = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
119
119
|
return {
|
|
120
120
|
kind: 'Fragment',
|
|
121
121
|
version: VERSION$t,
|
|
@@ -165,7 +165,7 @@ function equals$t(existing, incoming) {
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
const VERSION$s = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
168
|
-
function validate$
|
|
168
|
+
function validate$X(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$_(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$Y(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,8 +190,8 @@ function validate$_(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$F = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
194
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$G();
|
|
195
195
|
return {
|
|
196
196
|
kind: 'Fragment',
|
|
197
197
|
version: VERSION$s,
|
|
@@ -242,7 +242,7 @@ function equals$s(existing, incoming) {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
const VERSION$r = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
245
|
-
function validate$
|
|
245
|
+
function validate$W(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,7 +271,7 @@ function validate$Z(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
271
271
|
})();
|
|
272
272
|
return v_error === undefined ? null : v_error;
|
|
273
273
|
}
|
|
274
|
-
const select$
|
|
274
|
+
const select$E = function SemanticFilterOutputRepresentationSelect() {
|
|
275
275
|
return {
|
|
276
276
|
kind: 'Fragment',
|
|
277
277
|
version: VERSION$r,
|
|
@@ -339,7 +339,7 @@ function equals$r(existing, incoming) {
|
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
const VERSION$q = "a50848c632bb205d5e910bb726d9219e";
|
|
342
|
-
function validate$
|
|
342
|
+
function validate$V(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$Y(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$X(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$Y(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$X(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,8 +367,8 @@ function validate$Y(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$D = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
371
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
372
372
|
return {
|
|
373
373
|
kind: 'Fragment',
|
|
374
374
|
version: VERSION$q,
|
|
@@ -420,7 +420,7 @@ function equals$q(existing, incoming) {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
const VERSION$p = "1b8cf2283d5d5c480459506274f0604c";
|
|
423
|
-
function validate$
|
|
423
|
+
function validate$U(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,7 +442,7 @@ function validate$X(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
442
442
|
})();
|
|
443
443
|
return v_error === undefined ? null : v_error;
|
|
444
444
|
}
|
|
445
|
-
const select$
|
|
445
|
+
const select$C = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
446
446
|
return {
|
|
447
447
|
kind: 'Fragment',
|
|
448
448
|
version: VERSION$p,
|
|
@@ -492,7 +492,7 @@ function equals$p(existing, incoming) {
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
const VERSION$o = "a3f5972287be7bcf9ca205af56046a58";
|
|
495
|
-
function validate$
|
|
495
|
+
function validate$T(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$W(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$V(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$W(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$U(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$W(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$X(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,10 +565,10 @@ function validate$W(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$B = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
569
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$D();
|
|
570
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$C();
|
|
571
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
572
572
|
return {
|
|
573
573
|
kind: 'Fragment',
|
|
574
574
|
version: VERSION$o,
|
|
@@ -705,7 +705,7 @@ function equals$o(existing, incoming) {
|
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
const VERSION$n = "0873ccd85b32d14c753931243d20ac8b";
|
|
708
|
-
function validate$
|
|
708
|
+
function validate$S(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$V(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$X(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$V(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$W(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$V(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$T(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$V(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$X(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$V(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$X(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');
|
|
@@ -875,22 +875,22 @@ function validate$V(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
875
875
|
return v_error === undefined ? null : v_error;
|
|
876
876
|
}
|
|
877
877
|
const RepresentationType$g = 'SemanticMetricOutputRepresentation';
|
|
878
|
-
function keyBuilder$
|
|
878
|
+
function keyBuilder$v(luvio, config) {
|
|
879
879
|
return keyPrefix + '::' + RepresentationType$g + ':' + 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$v(luvio, keyParams);
|
|
886
886
|
}
|
|
887
887
|
function normalize$g(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$A = function SemanticMetricOutputRepresentationSelect() {
|
|
891
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
892
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
893
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$B();
|
|
894
894
|
return {
|
|
895
895
|
kind: 'Fragment',
|
|
896
896
|
version: VERSION$n,
|
|
@@ -1233,7 +1233,7 @@ function equals$n(existing, incoming) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
const ingest$g = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1235
1235
|
if (process.env.NODE_ENV !== 'production') {
|
|
1236
|
-
const validateError = validate$
|
|
1236
|
+
const validateError = validate$S(input);
|
|
1237
1237
|
if (validateError !== null) {
|
|
1238
1238
|
throw validateError;
|
|
1239
1239
|
}
|
|
@@ -1254,7 +1254,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
const VERSION$m = "a6709a9f16e02d0d8e3d8423ebc79c2b";
|
|
1257
|
-
function validate$
|
|
1257
|
+
function validate$R(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 + '")');
|
|
@@ -1298,7 +1298,7 @@ function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
return input;
|
|
1300
1300
|
}
|
|
1301
|
-
const select$
|
|
1301
|
+
const select$z = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
1302
1302
|
return {
|
|
1303
1303
|
kind: 'Fragment',
|
|
1304
1304
|
version: VERSION$m,
|
|
@@ -1309,7 +1309,7 @@ const select$y = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
1309
1309
|
kind: 'Link',
|
|
1310
1310
|
plural: true,
|
|
1311
1311
|
required: false,
|
|
1312
|
-
fragment: select$
|
|
1312
|
+
fragment: select$A()
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
1315
|
};
|
|
@@ -1337,7 +1337,7 @@ function equals$m(existing, incoming) {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
const ingest$f = function SemanticMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1339
1339
|
if (process.env.NODE_ENV !== 'production') {
|
|
1340
|
-
const validateError = validate$
|
|
1340
|
+
const validateError = validate$R(input);
|
|
1341
1341
|
if (validateError !== null) {
|
|
1342
1342
|
throw validateError;
|
|
1343
1343
|
}
|
|
@@ -1363,22 +1363,22 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
-
function select$
|
|
1367
|
-
return select$
|
|
1366
|
+
function select$y(luvio, params) {
|
|
1367
|
+
return select$z();
|
|
1368
1368
|
}
|
|
1369
|
-
function keyBuilder$
|
|
1370
|
-
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1369
|
+
function keyBuilder$u(luvio, params) {
|
|
1370
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
1371
1371
|
}
|
|
1372
|
-
function getResponseCacheKeys$
|
|
1373
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1372
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1373
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$u(luvio, resourceParams));
|
|
1374
1374
|
}
|
|
1375
|
-
function ingestSuccess$
|
|
1375
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
1376
1376
|
const { body } = response;
|
|
1377
|
-
const key = keyBuilder$
|
|
1377
|
+
const key = keyBuilder$u(luvio, resourceParams);
|
|
1378
1378
|
luvio.storeIngest(key, ingest$f, body);
|
|
1379
1379
|
const snapshot = luvio.storeLookup({
|
|
1380
1380
|
recordId: key,
|
|
1381
|
-
node: select$
|
|
1381
|
+
node: select$y(),
|
|
1382
1382
|
variables: {},
|
|
1383
1383
|
}, snapshotRefresh);
|
|
1384
1384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1390,79 +1390,81 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1390
1390
|
return snapshot;
|
|
1391
1391
|
}
|
|
1392
1392
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
1393
|
-
const key = keyBuilder$
|
|
1393
|
+
const key = keyBuilder$u(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$e(config) {
|
|
1399
1399
|
const headers = {};
|
|
1400
1400
|
return {
|
|
1401
|
-
baseUri: '/services/data/
|
|
1401
|
+
baseUri: '/services/data/v64.0',
|
|
1402
1402
|
basePath: '/ssot/semantic/metrics/' + config.urlParams.metricIds + '',
|
|
1403
1403
|
method: 'get',
|
|
1404
1404
|
body: null,
|
|
1405
1405
|
urlParams: config.urlParams,
|
|
1406
|
-
queryParams:
|
|
1406
|
+
queryParams: config.queryParams,
|
|
1407
1407
|
headers,
|
|
1408
1408
|
priority: 'normal',
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
1411
1411
|
|
|
1412
|
-
const adapterName$
|
|
1412
|
+
const adapterName$e = 'getSemanticMetricsByIds';
|
|
1413
1413
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
1414
1414
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1415
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1416
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1415
1417
|
];
|
|
1416
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1417
|
-
const createResourceParams$
|
|
1418
|
-
function keyBuilder$
|
|
1419
|
-
const resourceParams = createResourceParams$
|
|
1420
|
-
return keyBuilder$
|
|
1418
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1419
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1420
|
+
function keyBuilder$t(luvio, config) {
|
|
1421
|
+
const resourceParams = createResourceParams$e(config);
|
|
1422
|
+
return keyBuilder$u(luvio, resourceParams);
|
|
1421
1423
|
}
|
|
1422
|
-
function typeCheckConfig$
|
|
1424
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
1423
1425
|
const config = {};
|
|
1424
|
-
typeCheckConfig$
|
|
1426
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
1425
1427
|
return config;
|
|
1426
1428
|
}
|
|
1427
|
-
function validateAdapterConfig$
|
|
1429
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
1428
1430
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1429
1431
|
return null;
|
|
1430
1432
|
}
|
|
1431
1433
|
if (process.env.NODE_ENV !== 'production') {
|
|
1432
1434
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1433
1435
|
}
|
|
1434
|
-
const config = typeCheckConfig$
|
|
1436
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
1435
1437
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1436
1438
|
return null;
|
|
1437
1439
|
}
|
|
1438
1440
|
return config;
|
|
1439
1441
|
}
|
|
1440
1442
|
function adapterFragment$8(luvio, config) {
|
|
1441
|
-
createResourceParams$
|
|
1442
|
-
return select$
|
|
1443
|
+
createResourceParams$e(config);
|
|
1444
|
+
return select$y();
|
|
1443
1445
|
}
|
|
1444
1446
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
1445
|
-
const snapshot = ingestSuccess$
|
|
1447
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
1446
1448
|
config,
|
|
1447
|
-
resolve: () => buildNetworkSnapshot$
|
|
1449
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1448
1450
|
});
|
|
1449
1451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1450
1452
|
}
|
|
1451
1453
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
1452
1454
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
1453
1455
|
config,
|
|
1454
|
-
resolve: () => buildNetworkSnapshot$
|
|
1456
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1455
1457
|
});
|
|
1456
1458
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1457
1459
|
}
|
|
1458
|
-
function buildNetworkSnapshot$
|
|
1459
|
-
const resourceParams = createResourceParams$
|
|
1460
|
-
const request = createResourceRequest$
|
|
1460
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
1461
|
+
const resourceParams = createResourceParams$e(config);
|
|
1462
|
+
const request = createResourceRequest$e(resourceParams);
|
|
1461
1463
|
return luvio.dispatchResourceRequest(request, options)
|
|
1462
1464
|
.then((response) => {
|
|
1463
1465
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
1464
1466
|
const cache = new StoreKeyMap();
|
|
1465
|
-
getResponseCacheKeys$
|
|
1467
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
1466
1468
|
return cache;
|
|
1467
1469
|
});
|
|
1468
1470
|
}, (response) => {
|
|
@@ -1470,23 +1472,23 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
1470
1472
|
});
|
|
1471
1473
|
}
|
|
1472
1474
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
1473
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1475
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
1474
1476
|
}
|
|
1475
1477
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
1476
1478
|
const { luvio, config } = context;
|
|
1477
1479
|
const selector = {
|
|
1478
|
-
recordId: keyBuilder$
|
|
1480
|
+
recordId: keyBuilder$t(luvio, config),
|
|
1479
1481
|
node: adapterFragment$8(luvio, config),
|
|
1480
1482
|
variables: {},
|
|
1481
1483
|
};
|
|
1482
1484
|
const cacheSnapshot = storeLookup(selector, {
|
|
1483
1485
|
config,
|
|
1484
|
-
resolve: () => buildNetworkSnapshot$
|
|
1486
|
+
resolve: () => buildNetworkSnapshot$e(luvio, config, snapshotRefreshOptions)
|
|
1485
1487
|
});
|
|
1486
1488
|
return cacheSnapshot;
|
|
1487
1489
|
}
|
|
1488
1490
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
1489
|
-
const config = validateAdapterConfig$
|
|
1491
|
+
const config = validateAdapterConfig$e(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
1490
1492
|
// Invalid or incomplete config
|
|
1491
1493
|
if (config === null) {
|
|
1492
1494
|
return null;
|
|
@@ -1496,7 +1498,7 @@ const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthor
|
|
|
1496
1498
|
};
|
|
1497
1499
|
|
|
1498
1500
|
const VERSION$l = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1499
|
-
function validate$
|
|
1501
|
+
function validate$Q(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1500
1502
|
const v_error = (() => {
|
|
1501
1503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1502
1504
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1516,7 +1518,7 @@ function validate$T(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1516
1518
|
})();
|
|
1517
1519
|
return v_error === undefined ? null : v_error;
|
|
1518
1520
|
}
|
|
1519
|
-
const select$
|
|
1521
|
+
const select$x = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1520
1522
|
return {
|
|
1521
1523
|
kind: 'Fragment',
|
|
1522
1524
|
version: VERSION$l,
|
|
@@ -1557,7 +1559,7 @@ function equals$l(existing, incoming) {
|
|
|
1557
1559
|
}
|
|
1558
1560
|
|
|
1559
1561
|
const VERSION$k = "c9079354cd8127a37c0c13ea6686383c";
|
|
1560
|
-
function validate$
|
|
1562
|
+
function validate$P(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
1561
1563
|
const v_error = (() => {
|
|
1562
1564
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1563
1565
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1590,7 +1592,7 @@ function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1590
1592
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
1591
1593
|
const obj_baseModels_item = obj_baseModels[i];
|
|
1592
1594
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
1593
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
1595
|
+
const referencepath_baseModels_itemValidationError = validate$Q(obj_baseModels_item, path_baseModels_item);
|
|
1594
1596
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
1595
1597
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
1596
1598
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1761,8 +1763,8 @@ function validate$S(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
1761
1763
|
})();
|
|
1762
1764
|
return v_error === undefined ? null : v_error;
|
|
1763
1765
|
}
|
|
1764
|
-
const select$
|
|
1765
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
1766
|
+
const select$w = function SemanticModelPartialOutputRepresentationSelect() {
|
|
1767
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$x();
|
|
1766
1768
|
return {
|
|
1767
1769
|
kind: 'Fragment',
|
|
1768
1770
|
version: VERSION$k,
|
|
@@ -2176,7 +2178,7 @@ function equals$k(existing, incoming) {
|
|
|
2176
2178
|
}
|
|
2177
2179
|
|
|
2178
2180
|
const VERSION$j = "198423ec58354256cc7ea6f4661ef669";
|
|
2179
|
-
function validate$
|
|
2181
|
+
function validate$O(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
2180
2182
|
const v_error = (() => {
|
|
2181
2183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2182
2184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2223,7 +2225,7 @@ function validate$R(obj, path = 'SemanticModelCollectionOutputRepresentation') {
|
|
|
2223
2225
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2224
2226
|
const obj_items_item = obj_items[i];
|
|
2225
2227
|
const path_items_item = path_items + '[' + i + ']';
|
|
2226
|
-
const referencepath_items_itemValidationError = validate$
|
|
2228
|
+
const referencepath_items_itemValidationError = validate$P(obj_items_item, path_items_item);
|
|
2227
2229
|
if (referencepath_items_itemValidationError !== null) {
|
|
2228
2230
|
let message = 'Object doesn\'t match SemanticModelPartialOutputRepresentation (at "' + path_items_item + '")\n';
|
|
2229
2231
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2299,8 +2301,8 @@ const RepresentationType$e = 'SemanticModelCollectionOutputRepresentation';
|
|
|
2299
2301
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
2300
2302
|
return input;
|
|
2301
2303
|
}
|
|
2302
|
-
const select$
|
|
2303
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
2304
|
+
const select$v = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
2305
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$w();
|
|
2304
2306
|
return {
|
|
2305
2307
|
kind: 'Fragment',
|
|
2306
2308
|
version: VERSION$j,
|
|
@@ -2411,7 +2413,7 @@ function equals$j(existing, incoming) {
|
|
|
2411
2413
|
}
|
|
2412
2414
|
const ingest$e = function SemanticModelCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2413
2415
|
if (process.env.NODE_ENV !== 'production') {
|
|
2414
|
-
const validateError = validate$
|
|
2416
|
+
const validateError = validate$O(input);
|
|
2415
2417
|
if (validateError !== null) {
|
|
2416
2418
|
throw validateError;
|
|
2417
2419
|
}
|
|
@@ -2431,22 +2433,22 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2431
2433
|
});
|
|
2432
2434
|
}
|
|
2433
2435
|
|
|
2434
|
-
function select$
|
|
2435
|
-
return select$
|
|
2436
|
+
function select$u(luvio, params) {
|
|
2437
|
+
return select$v();
|
|
2436
2438
|
}
|
|
2437
|
-
function keyBuilder$
|
|
2439
|
+
function keyBuilder$s(luvio, params) {
|
|
2438
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 + ')';
|
|
2439
2441
|
}
|
|
2440
|
-
function getResponseCacheKeys$
|
|
2441
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$
|
|
2442
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
2443
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$s(luvio, resourceParams));
|
|
2442
2444
|
}
|
|
2443
|
-
function ingestSuccess$
|
|
2445
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
2444
2446
|
const { body } = response;
|
|
2445
|
-
const key = keyBuilder$
|
|
2447
|
+
const key = keyBuilder$s(luvio, resourceParams);
|
|
2446
2448
|
luvio.storeIngest(key, ingest$e, body);
|
|
2447
2449
|
const snapshot = luvio.storeLookup({
|
|
2448
2450
|
recordId: key,
|
|
2449
|
-
node: select$
|
|
2451
|
+
node: select$u(),
|
|
2450
2452
|
variables: {},
|
|
2451
2453
|
}, snapshotRefresh);
|
|
2452
2454
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2458,15 +2460,15 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2458
2460
|
return snapshot;
|
|
2459
2461
|
}
|
|
2460
2462
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
2461
|
-
const key = keyBuilder$
|
|
2463
|
+
const key = keyBuilder$s(luvio, params);
|
|
2462
2464
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2463
2465
|
luvio.storeIngestError(key, errorSnapshot);
|
|
2464
2466
|
return errorSnapshot;
|
|
2465
2467
|
}
|
|
2466
|
-
function createResourceRequest$
|
|
2468
|
+
function createResourceRequest$d(config) {
|
|
2467
2469
|
const headers = {};
|
|
2468
2470
|
return {
|
|
2469
|
-
baseUri: '/services/data/
|
|
2471
|
+
baseUri: '/services/data/v64.0',
|
|
2470
2472
|
basePath: '/ssot/semantic/models',
|
|
2471
2473
|
method: 'get',
|
|
2472
2474
|
body: null,
|
|
@@ -2477,7 +2479,7 @@ function createResourceRequest$b(config) {
|
|
|
2477
2479
|
};
|
|
2478
2480
|
}
|
|
2479
2481
|
|
|
2480
|
-
const adapterName$
|
|
2482
|
+
const adapterName$d = 'getSemanticModels';
|
|
2481
2483
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
2482
2484
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2483
2485
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -2489,56 +2491,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
2489
2491
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2490
2492
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2491
2493
|
];
|
|
2492
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2493
|
-
const createResourceParams$
|
|
2494
|
-
function keyBuilder$
|
|
2495
|
-
const resourceParams = createResourceParams$
|
|
2496
|
-
return keyBuilder$
|
|
2494
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSemanticModels_ConfigPropertyMetadata);
|
|
2495
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(getSemanticModels_ConfigPropertyMetadata);
|
|
2496
|
+
function keyBuilder$r(luvio, config) {
|
|
2497
|
+
const resourceParams = createResourceParams$d(config);
|
|
2498
|
+
return keyBuilder$s(luvio, resourceParams);
|
|
2497
2499
|
}
|
|
2498
|
-
function typeCheckConfig$
|
|
2500
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
2499
2501
|
const config = {};
|
|
2500
|
-
typeCheckConfig$
|
|
2502
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
2501
2503
|
return config;
|
|
2502
2504
|
}
|
|
2503
|
-
function validateAdapterConfig$
|
|
2505
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
2504
2506
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2505
2507
|
return null;
|
|
2506
2508
|
}
|
|
2507
2509
|
if (process.env.NODE_ENV !== 'production') {
|
|
2508
2510
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2509
2511
|
}
|
|
2510
|
-
const config = typeCheckConfig$
|
|
2512
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
2511
2513
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2512
2514
|
return null;
|
|
2513
2515
|
}
|
|
2514
2516
|
return config;
|
|
2515
2517
|
}
|
|
2516
2518
|
function adapterFragment$7(luvio, config) {
|
|
2517
|
-
createResourceParams$
|
|
2518
|
-
return select$
|
|
2519
|
+
createResourceParams$d(config);
|
|
2520
|
+
return select$u();
|
|
2519
2521
|
}
|
|
2520
2522
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
2521
|
-
const snapshot = ingestSuccess$
|
|
2523
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
2522
2524
|
config,
|
|
2523
|
-
resolve: () => buildNetworkSnapshot$
|
|
2525
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2524
2526
|
});
|
|
2525
2527
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2526
2528
|
}
|
|
2527
2529
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
2528
2530
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
2529
2531
|
config,
|
|
2530
|
-
resolve: () => buildNetworkSnapshot$
|
|
2532
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2531
2533
|
});
|
|
2532
2534
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2533
2535
|
}
|
|
2534
|
-
function buildNetworkSnapshot$
|
|
2535
|
-
const resourceParams = createResourceParams$
|
|
2536
|
-
const request = createResourceRequest$
|
|
2536
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
2537
|
+
const resourceParams = createResourceParams$d(config);
|
|
2538
|
+
const request = createResourceRequest$d(resourceParams);
|
|
2537
2539
|
return luvio.dispatchResourceRequest(request, options)
|
|
2538
2540
|
.then((response) => {
|
|
2539
2541
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
2540
2542
|
const cache = new StoreKeyMap();
|
|
2541
|
-
getResponseCacheKeys$
|
|
2543
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
2542
2544
|
return cache;
|
|
2543
2545
|
});
|
|
2544
2546
|
}, (response) => {
|
|
@@ -2546,23 +2548,23 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
2546
2548
|
});
|
|
2547
2549
|
}
|
|
2548
2550
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
2549
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
2551
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
2550
2552
|
}
|
|
2551
2553
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
2552
2554
|
const { luvio, config } = context;
|
|
2553
2555
|
const selector = {
|
|
2554
|
-
recordId: keyBuilder$
|
|
2556
|
+
recordId: keyBuilder$r(luvio, config),
|
|
2555
2557
|
node: adapterFragment$7(luvio, config),
|
|
2556
2558
|
variables: {},
|
|
2557
2559
|
};
|
|
2558
2560
|
const cacheSnapshot = storeLookup(selector, {
|
|
2559
2561
|
config,
|
|
2560
|
-
resolve: () => buildNetworkSnapshot$
|
|
2562
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
2561
2563
|
});
|
|
2562
2564
|
return cacheSnapshot;
|
|
2563
2565
|
}
|
|
2564
2566
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
2565
|
-
const config = validateAdapterConfig$
|
|
2567
|
+
const config = validateAdapterConfig$d(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
2566
2568
|
// Invalid or incomplete config
|
|
2567
2569
|
if (config === null) {
|
|
2568
2570
|
return null;
|
|
@@ -2571,7 +2573,7 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
2571
2573
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
2572
2574
|
};
|
|
2573
2575
|
|
|
2574
|
-
function validate$
|
|
2576
|
+
function validate$N(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
2575
2577
|
const v_error = (() => {
|
|
2576
2578
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2577
2579
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2587,7 +2589,7 @@ function validate$Q(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
2587
2589
|
return v_error === undefined ? null : v_error;
|
|
2588
2590
|
}
|
|
2589
2591
|
|
|
2590
|
-
function validate$
|
|
2592
|
+
function validate$M(obj, path = 'SemanticFilterInputRepresentation') {
|
|
2591
2593
|
const v_error = (() => {
|
|
2592
2594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2593
2595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2617,7 +2619,7 @@ function validate$P(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
2617
2619
|
return v_error === undefined ? null : v_error;
|
|
2618
2620
|
}
|
|
2619
2621
|
|
|
2620
|
-
function validate$
|
|
2622
|
+
function validate$L(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
2621
2623
|
const v_error = (() => {
|
|
2622
2624
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2623
2625
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2680,7 +2682,7 @@ function validate$O(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2680
2682
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2681
2683
|
const obj_filters_item = obj_filters[i];
|
|
2682
2684
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2683
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2685
|
+
const referencepath_filters_itemValidationError = validate$M(obj_filters_item, path_filters_item);
|
|
2684
2686
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2685
2687
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2686
2688
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2727,7 +2729,7 @@ function validate$O(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
2727
2729
|
return v_error === undefined ? null : v_error;
|
|
2728
2730
|
}
|
|
2729
2731
|
|
|
2730
|
-
function validate$
|
|
2732
|
+
function validate$K(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
2731
2733
|
const v_error = (() => {
|
|
2732
2734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2733
2735
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2804,7 +2806,7 @@ function validate$N(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2804
2806
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2805
2807
|
const obj_filters_item = obj_filters[i];
|
|
2806
2808
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2807
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2809
|
+
const referencepath_filters_itemValidationError = validate$M(obj_filters_item, path_filters_item);
|
|
2808
2810
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2809
2811
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
2810
2812
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2872,7 +2874,7 @@ function validate$N(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
2872
2874
|
return v_error === undefined ? null : v_error;
|
|
2873
2875
|
}
|
|
2874
2876
|
|
|
2875
|
-
function validate$
|
|
2877
|
+
function validate$J(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
2876
2878
|
const v_error = (() => {
|
|
2877
2879
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2878
2880
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2951,7 +2953,7 @@ function validate$M(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
2951
2953
|
return v_error === undefined ? null : v_error;
|
|
2952
2954
|
}
|
|
2953
2955
|
|
|
2954
|
-
function validate$
|
|
2956
|
+
function validate$I(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
2955
2957
|
const v_error = (() => {
|
|
2956
2958
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2957
2959
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3058,7 +3060,7 @@ function validate$L(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
3058
3060
|
return v_error === undefined ? null : v_error;
|
|
3059
3061
|
}
|
|
3060
3062
|
|
|
3061
|
-
function validate$
|
|
3063
|
+
function validate$H(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
3062
3064
|
const v_error = (() => {
|
|
3063
3065
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3064
3066
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3107,7 +3109,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3107
3109
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3108
3110
|
const obj_filters_item = obj_filters[i];
|
|
3109
3111
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3110
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3112
|
+
const referencepath_filters_itemValidationError = validate$M(obj_filters_item, path_filters_item);
|
|
3111
3113
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3112
3114
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3113
3115
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3138,7 +3140,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3138
3140
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3139
3141
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3140
3142
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3141
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3143
|
+
const referencepath_semanticDimensions_itemValidationError = validate$J(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3142
3144
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3143
3145
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3144
3146
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3155,7 +3157,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3155
3157
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3156
3158
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3157
3159
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3158
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3160
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$I(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3159
3161
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3160
3162
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3161
3163
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3174,7 +3176,7 @@ function validate$K(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
3174
3176
|
return v_error === undefined ? null : v_error;
|
|
3175
3177
|
}
|
|
3176
3178
|
|
|
3177
|
-
function validate$
|
|
3179
|
+
function validate$G(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
3178
3180
|
const v_error = (() => {
|
|
3179
3181
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3180
3182
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3186,7 +3188,7 @@ function validate$J(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
3186
3188
|
return v_error === undefined ? null : v_error;
|
|
3187
3189
|
}
|
|
3188
3190
|
|
|
3189
|
-
function validate$
|
|
3191
|
+
function validate$F(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
3190
3192
|
const v_error = (() => {
|
|
3191
3193
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3192
3194
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3216,7 +3218,7 @@ function validate$I(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
3216
3218
|
return v_error === undefined ? null : v_error;
|
|
3217
3219
|
}
|
|
3218
3220
|
|
|
3219
|
-
function validate$
|
|
3221
|
+
function validate$E(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
3220
3222
|
const v_error = (() => {
|
|
3221
3223
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3222
3224
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3230,7 +3232,7 @@ function validate$H(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3230
3232
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3231
3233
|
const obj_groups_item = obj_groups[i];
|
|
3232
3234
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3233
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3235
|
+
const referencepath_groups_itemValidationError = validate$F(obj_groups_item, path_groups_item);
|
|
3234
3236
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3235
3237
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
3236
3238
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3249,7 +3251,7 @@ function validate$H(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
3249
3251
|
return v_error === undefined ? null : v_error;
|
|
3250
3252
|
}
|
|
3251
3253
|
|
|
3252
|
-
function validate$
|
|
3254
|
+
function validate$D(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
3253
3255
|
const v_error = (() => {
|
|
3254
3256
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3255
3257
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3257,7 +3259,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3257
3259
|
if (obj.binDimension !== undefined) {
|
|
3258
3260
|
const obj_binDimension = obj.binDimension;
|
|
3259
3261
|
const path_binDimension = path + '.binDimension';
|
|
3260
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3262
|
+
const referencepath_binDimensionValidationError = validate$G(obj_binDimension, path_binDimension);
|
|
3261
3263
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3262
3264
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
3263
3265
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3267,7 +3269,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3267
3269
|
if (obj.groupDimension !== undefined) {
|
|
3268
3270
|
const obj_groupDimension = obj.groupDimension;
|
|
3269
3271
|
const path_groupDimension = path + '.groupDimension';
|
|
3270
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3272
|
+
const referencepath_groupDimensionValidationError = validate$E(obj_groupDimension, path_groupDimension);
|
|
3271
3273
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3272
3274
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3273
3275
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3278,7 +3280,7 @@ function validate$G(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
3278
3280
|
return v_error === undefined ? null : v_error;
|
|
3279
3281
|
}
|
|
3280
3282
|
|
|
3281
|
-
function validate$
|
|
3283
|
+
function validate$C(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
3282
3284
|
const v_error = (() => {
|
|
3283
3285
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3284
3286
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3301,7 +3303,7 @@ function validate$F(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
3301
3303
|
return v_error === undefined ? null : v_error;
|
|
3302
3304
|
}
|
|
3303
3305
|
|
|
3304
|
-
function validate$
|
|
3306
|
+
function validate$B(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
3305
3307
|
const v_error = (() => {
|
|
3306
3308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3307
3309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3316,7 +3318,7 @@ function validate$E(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3316
3318
|
if (obj.tableFieldReference !== undefined) {
|
|
3317
3319
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3318
3320
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3319
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3321
|
+
const referencepath_tableFieldReferenceValidationError = validate$C(obj_tableFieldReference, path_tableFieldReference);
|
|
3320
3322
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3321
3323
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3322
3324
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3327,7 +3329,7 @@ function validate$E(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
3327
3329
|
return v_error === undefined ? null : v_error;
|
|
3328
3330
|
}
|
|
3329
3331
|
|
|
3330
|
-
function validate$
|
|
3332
|
+
function validate$A(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
3331
3333
|
const v_error = (() => {
|
|
3332
3334
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3333
3335
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3342,7 +3344,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3342
3344
|
if (obj.configuration !== undefined) {
|
|
3343
3345
|
const obj_configuration = obj.configuration;
|
|
3344
3346
|
const path_configuration = path + '.configuration';
|
|
3345
|
-
const referencepath_configurationValidationError = validate$
|
|
3347
|
+
const referencepath_configurationValidationError = validate$D(obj_configuration, path_configuration);
|
|
3346
3348
|
if (referencepath_configurationValidationError !== null) {
|
|
3347
3349
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
3348
3350
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3359,7 +3361,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3359
3361
|
if (obj.fieldReference !== undefined) {
|
|
3360
3362
|
const obj_fieldReference = obj.fieldReference;
|
|
3361
3363
|
const path_fieldReference = path + '.fieldReference';
|
|
3362
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
3364
|
+
const referencepath_fieldReferenceValidationError = validate$B(obj_fieldReference, path_fieldReference);
|
|
3363
3365
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
3364
3366
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
3365
3367
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3384,7 +3386,7 @@ function validate$D(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
3384
3386
|
return v_error === undefined ? null : v_error;
|
|
3385
3387
|
}
|
|
3386
3388
|
|
|
3387
|
-
function validate$
|
|
3389
|
+
function validate$z(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
3388
3390
|
const v_error = (() => {
|
|
3389
3391
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3390
3392
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3428,7 +3430,7 @@ function validate$C(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
3428
3430
|
return v_error === undefined ? null : v_error;
|
|
3429
3431
|
}
|
|
3430
3432
|
|
|
3431
|
-
function validate$
|
|
3433
|
+
function validate$y(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
3432
3434
|
const v_error = (() => {
|
|
3433
3435
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3434
3436
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3456,7 +3458,7 @@ function validate$B(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3456
3458
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
3457
3459
|
const obj_criteria_item = obj_criteria[i];
|
|
3458
3460
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
3459
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
3461
|
+
const referencepath_criteria_itemValidationError = validate$z(obj_criteria_item, path_criteria_item);
|
|
3460
3462
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
3461
3463
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
3462
3464
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3517,7 +3519,7 @@ function validate$B(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
3517
3519
|
return v_error === undefined ? null : v_error;
|
|
3518
3520
|
}
|
|
3519
3521
|
|
|
3520
|
-
function validate$
|
|
3522
|
+
function validate$x(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
3521
3523
|
const v_error = (() => {
|
|
3522
3524
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3523
3525
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3545,7 +3547,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3545
3547
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
3546
3548
|
const obj_fields_item = obj_fields[i];
|
|
3547
3549
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
3548
|
-
const referencepath_fields_itemValidationError = validate$
|
|
3550
|
+
const referencepath_fields_itemValidationError = validate$C(obj_fields_item, path_fields_item);
|
|
3549
3551
|
if (referencepath_fields_itemValidationError !== null) {
|
|
3550
3552
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
3551
3553
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3570,7 +3572,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3570
3572
|
if (obj.semanticDimension !== undefined) {
|
|
3571
3573
|
const obj_semanticDimension = obj.semanticDimension;
|
|
3572
3574
|
const path_semanticDimension = path + '.semanticDimension';
|
|
3573
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
3575
|
+
const referencepath_semanticDimensionValidationError = validate$J(obj_semanticDimension, path_semanticDimension);
|
|
3574
3576
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
3575
3577
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
3576
3578
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3580,7 +3582,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3580
3582
|
if (obj.semanticMeasurement !== undefined) {
|
|
3581
3583
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
3582
3584
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
3583
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
3585
|
+
const referencepath_semanticMeasurementValidationError = validate$I(obj_semanticMeasurement, path_semanticMeasurement);
|
|
3584
3586
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
3585
3587
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
3586
3588
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3591,7 +3593,7 @@ function validate$A(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
3591
3593
|
return v_error === undefined ? null : v_error;
|
|
3592
3594
|
}
|
|
3593
3595
|
|
|
3594
|
-
function validate$
|
|
3596
|
+
function validate$w(obj, path = 'SemanticUnionInputRepresentation') {
|
|
3595
3597
|
const v_error = (() => {
|
|
3596
3598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3597
3599
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3626,7 +3628,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3626
3628
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3627
3629
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3628
3630
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3629
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3631
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$H(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3630
3632
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3631
3633
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3632
3634
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3643,7 +3645,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3643
3645
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
3644
3646
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
3645
3647
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
3646
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
3648
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$x(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
3647
3649
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
3648
3650
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
3649
3651
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3655,7 +3657,7 @@ function validate$z(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
3655
3657
|
return v_error === undefined ? null : v_error;
|
|
3656
3658
|
}
|
|
3657
3659
|
|
|
3658
|
-
function validate$
|
|
3660
|
+
function validate$v(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
3659
3661
|
const v_error = (() => {
|
|
3660
3662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3661
3663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3697,7 +3699,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3697
3699
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3698
3700
|
const obj_filters_item = obj_filters[i];
|
|
3699
3701
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3700
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3702
|
+
const referencepath_filters_itemValidationError = validate$M(obj_filters_item, path_filters_item);
|
|
3701
3703
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3702
3704
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3703
3705
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3721,7 +3723,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3721
3723
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
3722
3724
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
3723
3725
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
3724
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
3726
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$H(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
3725
3727
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
3726
3728
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
3727
3729
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3738,7 +3740,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3738
3740
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
3739
3741
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
3740
3742
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
3741
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
3743
|
+
const referencepath_semanticRelationships_itemValidationError = validate$y(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
3742
3744
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
3743
3745
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
3744
3746
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3755,7 +3757,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3755
3757
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
3756
3758
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
3757
3759
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
3758
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
3760
|
+
const referencepath_semanticUnions_itemValidationError = validate$w(obj_semanticUnions_item, path_semanticUnions_item);
|
|
3759
3761
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
3760
3762
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
3761
3763
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3767,7 +3769,7 @@ function validate$y(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
3767
3769
|
return v_error === undefined ? null : v_error;
|
|
3768
3770
|
}
|
|
3769
3771
|
|
|
3770
|
-
function validate$
|
|
3772
|
+
function validate$u(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
3771
3773
|
const v_error = (() => {
|
|
3772
3774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3773
3775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3775,7 +3777,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3775
3777
|
if (obj.identifierDimensionReference !== undefined) {
|
|
3776
3778
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
3777
3779
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
3778
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
3780
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$B(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
3779
3781
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
3780
3782
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
3781
3783
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3785,7 +3787,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3785
3787
|
if (obj.namingDimensionReference !== undefined) {
|
|
3786
3788
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
3787
3789
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
3788
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
3790
|
+
const referencepath_namingDimensionReferenceValidationError = validate$B(obj_namingDimensionReference, path_namingDimensionReference);
|
|
3789
3791
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
3790
3792
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
3791
3793
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3796,7 +3798,7 @@ function validate$x(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
3796
3798
|
return v_error === undefined ? null : v_error;
|
|
3797
3799
|
}
|
|
3798
3800
|
|
|
3799
|
-
function validate$
|
|
3801
|
+
function validate$t(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
3800
3802
|
const v_error = (() => {
|
|
3801
3803
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3802
3804
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3819,7 +3821,7 @@ function validate$w(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
3819
3821
|
return v_error === undefined ? null : v_error;
|
|
3820
3822
|
}
|
|
3821
3823
|
|
|
3822
|
-
function validate$
|
|
3824
|
+
function validate$s(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
3823
3825
|
const v_error = (() => {
|
|
3824
3826
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3825
3827
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3827,7 +3829,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3827
3829
|
if (obj.identifyingDimension !== undefined) {
|
|
3828
3830
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
3829
3831
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
3830
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
3832
|
+
const referencepath_identifyingDimensionValidationError = validate$u(obj_identifyingDimension, path_identifyingDimension);
|
|
3831
3833
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
3832
3834
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
3833
3835
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3843,7 +3845,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3843
3845
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
3844
3846
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
3845
3847
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
3846
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
3848
|
+
const referencepath_insightTypes_itemValidationError = validate$t(obj_insightTypes_item, path_insightTypes_item);
|
|
3847
3849
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
3848
3850
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
3849
3851
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3860,7 +3862,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3860
3862
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
3861
3863
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
3862
3864
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
3863
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
3865
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$B(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
3864
3866
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
3865
3867
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
3866
3868
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3893,7 +3895,7 @@ function validate$v(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
3893
3895
|
return v_error === undefined ? null : v_error;
|
|
3894
3896
|
}
|
|
3895
3897
|
|
|
3896
|
-
function validate$
|
|
3898
|
+
function validate$r(obj, path = 'SemanticMetricInputRepresentation') {
|
|
3897
3899
|
const v_error = (() => {
|
|
3898
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3899
3901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3907,7 +3909,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3907
3909
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
3908
3910
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
3909
3911
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
3910
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
3912
|
+
const referencepath_additionalDimensions_itemValidationError = validate$B(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
3911
3913
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
3912
3914
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
3913
3915
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3952,7 +3954,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3952
3954
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3953
3955
|
const obj_filters_item = obj_filters[i];
|
|
3954
3956
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3955
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3957
|
+
const referencepath_filters_itemValidationError = validate$M(obj_filters_item, path_filters_item);
|
|
3956
3958
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3957
3959
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
3958
3960
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3963,7 +3965,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3963
3965
|
if (obj.insightsSettings !== undefined) {
|
|
3964
3966
|
const obj_insightsSettings = obj.insightsSettings;
|
|
3965
3967
|
const path_insightsSettings = path + '.insightsSettings';
|
|
3966
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
3968
|
+
const referencepath_insightsSettingsValidationError = validate$s(obj_insightsSettings, path_insightsSettings);
|
|
3967
3969
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
3968
3970
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
3969
3971
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3987,7 +3989,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3987
3989
|
if (obj.measurementReference !== undefined) {
|
|
3988
3990
|
const obj_measurementReference = obj.measurementReference;
|
|
3989
3991
|
const path_measurementReference = path + '.measurementReference';
|
|
3990
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
3992
|
+
const referencepath_measurementReferenceValidationError = validate$B(obj_measurementReference, path_measurementReference);
|
|
3991
3993
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
3992
3994
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
3993
3995
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3997,7 +3999,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
3997
3999
|
if (obj.timeDimensionReference !== undefined) {
|
|
3998
4000
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
3999
4001
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
4000
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
4002
|
+
const referencepath_timeDimensionReferenceValidationError = validate$B(obj_timeDimensionReference, path_timeDimensionReference);
|
|
4001
4003
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
4002
4004
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
4003
4005
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4022,7 +4024,7 @@ function validate$u(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
4022
4024
|
return v_error === undefined ? null : v_error;
|
|
4023
4025
|
}
|
|
4024
4026
|
|
|
4025
|
-
function validate$
|
|
4027
|
+
function validate$q(obj, path = 'SemanticParameterInputRepresentation') {
|
|
4026
4028
|
const v_error = (() => {
|
|
4027
4029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4028
4030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4109,7 +4111,7 @@ function validate$t(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
4109
4111
|
}
|
|
4110
4112
|
|
|
4111
4113
|
const VERSION$i = "51514a172af5e420504a2143725b4528";
|
|
4112
|
-
function validate$
|
|
4114
|
+
function validate$p(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
4113
4115
|
const v_error = (() => {
|
|
4114
4116
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4115
4117
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4194,7 +4196,7 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4194
4196
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4195
4197
|
const obj_filters_item = obj_filters[i];
|
|
4196
4198
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4197
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4199
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
4198
4200
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4199
4201
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4200
4202
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4260,20 +4262,20 @@ function validate$s(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
4260
4262
|
return v_error === undefined ? null : v_error;
|
|
4261
4263
|
}
|
|
4262
4264
|
const RepresentationType$d = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
4263
|
-
function keyBuilder$
|
|
4265
|
+
function keyBuilder$q(luvio, config) {
|
|
4264
4266
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4265
4267
|
}
|
|
4266
4268
|
function keyBuilderFromType$a(luvio, object) {
|
|
4267
4269
|
const keyParams = {
|
|
4268
4270
|
name: object.id
|
|
4269
4271
|
};
|
|
4270
|
-
return keyBuilder$
|
|
4272
|
+
return keyBuilder$q(luvio, keyParams);
|
|
4271
4273
|
}
|
|
4272
4274
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4273
4275
|
return input;
|
|
4274
4276
|
}
|
|
4275
|
-
const select$
|
|
4276
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4277
|
+
const select$t = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
4278
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
4277
4279
|
return {
|
|
4278
4280
|
kind: 'Fragment',
|
|
4279
4281
|
version: VERSION$i,
|
|
@@ -4618,7 +4620,7 @@ function equals$i(existing, incoming) {
|
|
|
4618
4620
|
}
|
|
4619
4621
|
const ingest$d = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4620
4622
|
if (process.env.NODE_ENV !== 'production') {
|
|
4621
|
-
const validateError = validate$
|
|
4623
|
+
const validateError = validate$p(input);
|
|
4622
4624
|
if (validateError !== null) {
|
|
4623
4625
|
throw validateError;
|
|
4624
4626
|
}
|
|
@@ -4639,7 +4641,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4639
4641
|
}
|
|
4640
4642
|
|
|
4641
4643
|
const VERSION$h = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
4642
|
-
function validate$
|
|
4644
|
+
function validate$o(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
4643
4645
|
const v_error = (() => {
|
|
4644
4646
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4645
4647
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4738,7 +4740,7 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4738
4740
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
4739
4741
|
const obj_filters_item = obj_filters[i];
|
|
4740
4742
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
4741
|
-
const referencepath_filters_itemValidationError = validate$
|
|
4743
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
4742
4744
|
if (referencepath_filters_itemValidationError !== null) {
|
|
4743
4745
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
4744
4746
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4832,20 +4834,20 @@ function validate$r(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
4832
4834
|
return v_error === undefined ? null : v_error;
|
|
4833
4835
|
}
|
|
4834
4836
|
const RepresentationType$c = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
4835
|
-
function keyBuilder$
|
|
4837
|
+
function keyBuilder$p(luvio, config) {
|
|
4836
4838
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
4837
4839
|
}
|
|
4838
4840
|
function keyBuilderFromType$9(luvio, object) {
|
|
4839
4841
|
const keyParams = {
|
|
4840
4842
|
name: object.id
|
|
4841
4843
|
};
|
|
4842
|
-
return keyBuilder$
|
|
4844
|
+
return keyBuilder$p(luvio, keyParams);
|
|
4843
4845
|
}
|
|
4844
4846
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4845
4847
|
return input;
|
|
4846
4848
|
}
|
|
4847
|
-
const select$
|
|
4848
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
4849
|
+
const select$s = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
4850
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
4849
4851
|
return {
|
|
4850
4852
|
kind: 'Fragment',
|
|
4851
4853
|
version: VERSION$h,
|
|
@@ -5298,7 +5300,7 @@ function equals$h(existing, incoming) {
|
|
|
5298
5300
|
}
|
|
5299
5301
|
const ingest$c = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5300
5302
|
if (process.env.NODE_ENV !== 'production') {
|
|
5301
|
-
const validateError = validate$
|
|
5303
|
+
const validateError = validate$o(input);
|
|
5302
5304
|
if (validateError !== null) {
|
|
5303
5305
|
throw validateError;
|
|
5304
5306
|
}
|
|
@@ -5318,7 +5320,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5318
5320
|
});
|
|
5319
5321
|
}
|
|
5320
5322
|
|
|
5321
|
-
function validate$
|
|
5323
|
+
function validate$n(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
5322
5324
|
const v_error = (() => {
|
|
5323
5325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5324
5326
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5459,7 +5461,7 @@ function validate$q(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
5459
5461
|
return v_error === undefined ? null : v_error;
|
|
5460
5462
|
}
|
|
5461
5463
|
|
|
5462
|
-
function validate$
|
|
5464
|
+
function validate$m(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
5463
5465
|
const v_error = (() => {
|
|
5464
5466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5465
5467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5636,7 +5638,7 @@ function validate$p(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
5636
5638
|
}
|
|
5637
5639
|
|
|
5638
5640
|
const VERSION$g = "4f111b93807b811179eb310384efdc35";
|
|
5639
|
-
function validate$
|
|
5641
|
+
function validate$l(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
5640
5642
|
const v_error = (() => {
|
|
5641
5643
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5642
5644
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5707,7 +5709,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5707
5709
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5708
5710
|
const obj_filters_item = obj_filters[i];
|
|
5709
5711
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5710
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5712
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
5711
5713
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5712
5714
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5713
5715
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5757,7 +5759,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5757
5759
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
5758
5760
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
5759
5761
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
5760
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
5762
|
+
const referencepath_semanticDimensions_itemValidationError = validate$n(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
5761
5763
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
5762
5764
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
5763
5765
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5781,7 +5783,7 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5781
5783
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
5782
5784
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
5783
5785
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
5784
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
5786
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$m(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
5785
5787
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
5786
5788
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
5787
5789
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5807,19 +5809,19 @@ function validate$o(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
5807
5809
|
return v_error === undefined ? null : v_error;
|
|
5808
5810
|
}
|
|
5809
5811
|
const RepresentationType$b = 'SemanticDataObjectOutputRepresentation';
|
|
5810
|
-
function keyBuilder$
|
|
5812
|
+
function keyBuilder$o(luvio, config) {
|
|
5811
5813
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5812
5814
|
}
|
|
5813
5815
|
function keyBuilderFromType$8(luvio, object) {
|
|
5814
5816
|
const keyParams = {
|
|
5815
5817
|
name: object.id
|
|
5816
5818
|
};
|
|
5817
|
-
return keyBuilder$
|
|
5819
|
+
return keyBuilder$o(luvio, keyParams);
|
|
5818
5820
|
}
|
|
5819
5821
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5820
5822
|
return input;
|
|
5821
5823
|
}
|
|
5822
|
-
const select$
|
|
5824
|
+
const select$r = function SemanticDataObjectOutputRepresentationSelect() {
|
|
5823
5825
|
return {
|
|
5824
5826
|
kind: 'Fragment',
|
|
5825
5827
|
version: VERSION$g,
|
|
@@ -5835,7 +5837,7 @@ function equals$g(existing, incoming) {
|
|
|
5835
5837
|
}
|
|
5836
5838
|
const ingest$b = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5837
5839
|
if (process.env.NODE_ENV !== 'production') {
|
|
5838
|
-
const validateError = validate$
|
|
5840
|
+
const validateError = validate$l(input);
|
|
5839
5841
|
if (validateError !== null) {
|
|
5840
5842
|
throw validateError;
|
|
5841
5843
|
}
|
|
@@ -5856,7 +5858,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5856
5858
|
}
|
|
5857
5859
|
|
|
5858
5860
|
const VERSION$f = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
5859
|
-
function validate$
|
|
5861
|
+
function validate$k(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
5860
5862
|
const v_error = (() => {
|
|
5861
5863
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5862
5864
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5865,7 +5867,7 @@ function validate$n(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
5865
5867
|
})();
|
|
5866
5868
|
return v_error === undefined ? null : v_error;
|
|
5867
5869
|
}
|
|
5868
|
-
const select$
|
|
5870
|
+
const select$q = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
5869
5871
|
return {
|
|
5870
5872
|
kind: 'Fragment',
|
|
5871
5873
|
version: VERSION$f,
|
|
@@ -5888,7 +5890,7 @@ function equals$f(existing, incoming) {
|
|
|
5888
5890
|
}
|
|
5889
5891
|
|
|
5890
5892
|
const VERSION$e = "2cdadcd630abb7b981b2d131880a68c0";
|
|
5891
|
-
function validate$
|
|
5893
|
+
function validate$j(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
5892
5894
|
const v_error = (() => {
|
|
5893
5895
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5894
5896
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5915,7 +5917,7 @@ function validate$m(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
5915
5917
|
})();
|
|
5916
5918
|
return v_error === undefined ? null : v_error;
|
|
5917
5919
|
}
|
|
5918
|
-
const select$
|
|
5920
|
+
const select$p = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
5919
5921
|
return {
|
|
5920
5922
|
kind: 'Fragment',
|
|
5921
5923
|
version: VERSION$e,
|
|
@@ -5962,7 +5964,7 @@ function equals$e(existing, incoming) {
|
|
|
5962
5964
|
}
|
|
5963
5965
|
|
|
5964
5966
|
const VERSION$d = "55c60b6207985632192cb4e419822a86";
|
|
5965
|
-
function validate$
|
|
5967
|
+
function validate$i(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
5966
5968
|
const v_error = (() => {
|
|
5967
5969
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5968
5970
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5976,7 +5978,7 @@ function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5976
5978
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
5977
5979
|
const obj_groups_item = obj_groups[i];
|
|
5978
5980
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
5979
|
-
const referencepath_groups_itemValidationError = validate$
|
|
5981
|
+
const referencepath_groups_itemValidationError = validate$j(obj_groups_item, path_groups_item);
|
|
5980
5982
|
if (referencepath_groups_itemValidationError !== null) {
|
|
5981
5983
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
5982
5984
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5994,8 +5996,8 @@ function validate$l(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
5994
5996
|
})();
|
|
5995
5997
|
return v_error === undefined ? null : v_error;
|
|
5996
5998
|
}
|
|
5997
|
-
const select$
|
|
5998
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
5999
|
+
const select$o = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
6000
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$p();
|
|
5999
6001
|
return {
|
|
6000
6002
|
kind: 'Fragment',
|
|
6001
6003
|
version: VERSION$d,
|
|
@@ -6052,7 +6054,7 @@ function equals$d(existing, incoming) {
|
|
|
6052
6054
|
}
|
|
6053
6055
|
|
|
6054
6056
|
const VERSION$c = "50dc390b159159afb1945b9a811c9f80";
|
|
6055
|
-
function validate$
|
|
6057
|
+
function validate$h(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
6056
6058
|
const v_error = (() => {
|
|
6057
6059
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6058
6060
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6060,7 +6062,7 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6060
6062
|
if (obj.binDimension !== undefined) {
|
|
6061
6063
|
const obj_binDimension = obj.binDimension;
|
|
6062
6064
|
const path_binDimension = path + '.binDimension';
|
|
6063
|
-
const referencepath_binDimensionValidationError = validate$
|
|
6065
|
+
const referencepath_binDimensionValidationError = validate$k(obj_binDimension, path_binDimension);
|
|
6064
6066
|
if (referencepath_binDimensionValidationError !== null) {
|
|
6065
6067
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
6066
6068
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6070,7 +6072,7 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6070
6072
|
if (obj.groupDimension !== undefined) {
|
|
6071
6073
|
const obj_groupDimension = obj.groupDimension;
|
|
6072
6074
|
const path_groupDimension = path + '.groupDimension';
|
|
6073
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
6075
|
+
const referencepath_groupDimensionValidationError = validate$i(obj_groupDimension, path_groupDimension);
|
|
6074
6076
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
6075
6077
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
6076
6078
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6080,9 +6082,9 @@ function validate$k(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
6080
6082
|
})();
|
|
6081
6083
|
return v_error === undefined ? null : v_error;
|
|
6082
6084
|
}
|
|
6083
|
-
const select$
|
|
6084
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6085
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
6085
|
+
const select$n = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
6086
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$q();
|
|
6087
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$o();
|
|
6086
6088
|
return {
|
|
6087
6089
|
kind: 'Fragment',
|
|
6088
6090
|
version: VERSION$c,
|
|
@@ -6134,7 +6136,7 @@ function equals$c(existing, incoming) {
|
|
|
6134
6136
|
}
|
|
6135
6137
|
|
|
6136
6138
|
const VERSION$b = "1daec40706bf767c719fa58831fad462";
|
|
6137
|
-
function validate$
|
|
6139
|
+
function validate$g(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
6138
6140
|
const v_error = (() => {
|
|
6139
6141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6140
6142
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6160,7 +6162,7 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6160
6162
|
}
|
|
6161
6163
|
const obj_configuration = obj.configuration;
|
|
6162
6164
|
const path_configuration = path + '.configuration';
|
|
6163
|
-
const referencepath_configurationValidationError = validate$
|
|
6165
|
+
const referencepath_configurationValidationError = validate$h(obj_configuration, path_configuration);
|
|
6164
6166
|
if (referencepath_configurationValidationError !== null) {
|
|
6165
6167
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
6166
6168
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6185,7 +6187,7 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6185
6187
|
}
|
|
6186
6188
|
const obj_fieldReference = obj.fieldReference;
|
|
6187
6189
|
const path_fieldReference = path + '.fieldReference';
|
|
6188
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
6190
|
+
const referencepath_fieldReferenceValidationError = validate$X(obj_fieldReference, path_fieldReference);
|
|
6189
6191
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
6190
6192
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
6191
6193
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6226,21 +6228,21 @@ function validate$j(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
6226
6228
|
return v_error === undefined ? null : v_error;
|
|
6227
6229
|
}
|
|
6228
6230
|
const RepresentationType$a = 'SemanticGroupingOutputRepresentation';
|
|
6229
|
-
function keyBuilder$
|
|
6231
|
+
function keyBuilder$n(luvio, config) {
|
|
6230
6232
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
6231
6233
|
}
|
|
6232
6234
|
function keyBuilderFromType$7(luvio, object) {
|
|
6233
6235
|
const keyParams = {
|
|
6234
6236
|
name: object.id
|
|
6235
6237
|
};
|
|
6236
|
-
return keyBuilder$
|
|
6238
|
+
return keyBuilder$n(luvio, keyParams);
|
|
6237
6239
|
}
|
|
6238
6240
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
6239
6241
|
return input;
|
|
6240
6242
|
}
|
|
6241
|
-
const select$
|
|
6242
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
6243
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6243
|
+
const select$m = function SemanticGroupingOutputRepresentationSelect() {
|
|
6244
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$n();
|
|
6245
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$F();
|
|
6244
6246
|
return {
|
|
6245
6247
|
kind: 'Fragment',
|
|
6246
6248
|
version: VERSION$b,
|
|
@@ -6427,7 +6429,7 @@ function equals$b(existing, incoming) {
|
|
|
6427
6429
|
}
|
|
6428
6430
|
const ingest$a = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6429
6431
|
if (process.env.NODE_ENV !== 'production') {
|
|
6430
|
-
const validateError = validate$
|
|
6432
|
+
const validateError = validate$g(input);
|
|
6431
6433
|
if (validateError !== null) {
|
|
6432
6434
|
throw validateError;
|
|
6433
6435
|
}
|
|
@@ -6448,7 +6450,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6448
6450
|
}
|
|
6449
6451
|
|
|
6450
6452
|
const VERSION$a = "c5144c317ac72b60d580cab803514b8d";
|
|
6451
|
-
function validate$
|
|
6453
|
+
function validate$f(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
6452
6454
|
const v_error = (() => {
|
|
6453
6455
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6454
6456
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6491,7 +6493,7 @@ function validate$i(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
6491
6493
|
})();
|
|
6492
6494
|
return v_error === undefined ? null : v_error;
|
|
6493
6495
|
}
|
|
6494
|
-
const select$
|
|
6496
|
+
const select$l = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
6495
6497
|
return {
|
|
6496
6498
|
kind: 'Fragment',
|
|
6497
6499
|
version: VERSION$a,
|
|
@@ -6595,7 +6597,7 @@ function equals$a(existing, incoming) {
|
|
|
6595
6597
|
}
|
|
6596
6598
|
|
|
6597
6599
|
const VERSION$9 = "b9778dace5726fcb57804d3afd529246";
|
|
6598
|
-
function validate$
|
|
6600
|
+
function validate$e(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
6599
6601
|
const v_error = (() => {
|
|
6600
6602
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6601
6603
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6645,7 +6647,7 @@ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6645
6647
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
6646
6648
|
const obj_criteria_item = obj_criteria[i];
|
|
6647
6649
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
6648
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
6650
|
+
const referencepath_criteria_itemValidationError = validate$f(obj_criteria_item, path_criteria_item);
|
|
6649
6651
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
6650
6652
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
6651
6653
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6725,20 +6727,20 @@ function validate$h(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
6725
6727
|
return v_error === undefined ? null : v_error;
|
|
6726
6728
|
}
|
|
6727
6729
|
const RepresentationType$9 = 'SemanticRelationshipOutputRepresentation';
|
|
6728
|
-
function keyBuilder$
|
|
6730
|
+
function keyBuilder$m(luvio, config) {
|
|
6729
6731
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
6730
6732
|
}
|
|
6731
6733
|
function keyBuilderFromType$6(luvio, object) {
|
|
6732
6734
|
const keyParams = {
|
|
6733
6735
|
name: object.id
|
|
6734
6736
|
};
|
|
6735
|
-
return keyBuilder$
|
|
6737
|
+
return keyBuilder$m(luvio, keyParams);
|
|
6736
6738
|
}
|
|
6737
6739
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6738
6740
|
return input;
|
|
6739
6741
|
}
|
|
6740
|
-
const select$
|
|
6741
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
6742
|
+
const select$k = function SemanticRelationshipOutputRepresentationSelect() {
|
|
6743
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$l();
|
|
6742
6744
|
return {
|
|
6743
6745
|
kind: 'Fragment',
|
|
6744
6746
|
version: VERSION$9,
|
|
@@ -7029,7 +7031,7 @@ function equals$9(existing, incoming) {
|
|
|
7029
7031
|
}
|
|
7030
7032
|
const ingest$9 = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7031
7033
|
if (process.env.NODE_ENV !== 'production') {
|
|
7032
|
-
const validateError = validate$
|
|
7034
|
+
const validateError = validate$e(input);
|
|
7033
7035
|
if (validateError !== null) {
|
|
7034
7036
|
throw validateError;
|
|
7035
7037
|
}
|
|
@@ -7050,7 +7052,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7050
7052
|
}
|
|
7051
7053
|
|
|
7052
7054
|
const VERSION$8 = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
7053
|
-
function validate$
|
|
7055
|
+
function validate$d(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
7054
7056
|
const v_error = (() => {
|
|
7055
7057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7056
7058
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7100,7 +7102,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7100
7102
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
7101
7103
|
const obj_fields_item = obj_fields[i];
|
|
7102
7104
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
7103
|
-
const referencepath_fields_itemValidationError = validate
|
|
7105
|
+
const referencepath_fields_itemValidationError = validate$Y(obj_fields_item, path_fields_item);
|
|
7104
7106
|
if (referencepath_fields_itemValidationError !== null) {
|
|
7105
7107
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
7106
7108
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7144,7 +7146,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7144
7146
|
if (obj.semanticDimension !== undefined) {
|
|
7145
7147
|
const obj_semanticDimension = obj.semanticDimension;
|
|
7146
7148
|
const path_semanticDimension = path + '.semanticDimension';
|
|
7147
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
7149
|
+
const referencepath_semanticDimensionValidationError = validate$n(obj_semanticDimension, path_semanticDimension);
|
|
7148
7150
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
7149
7151
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
7150
7152
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7154,7 +7156,7 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7154
7156
|
if (obj.semanticMeasurement !== undefined) {
|
|
7155
7157
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
7156
7158
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
7157
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
7159
|
+
const referencepath_semanticMeasurementValidationError = validate$m(obj_semanticMeasurement, path_semanticMeasurement);
|
|
7158
7160
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
7159
7161
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
7160
7162
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7165,19 +7167,19 @@ function validate$g(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
7165
7167
|
return v_error === undefined ? null : v_error;
|
|
7166
7168
|
}
|
|
7167
7169
|
const RepresentationType$8 = 'SemanticMappedFieldOutputRepresentation';
|
|
7168
|
-
function keyBuilder$
|
|
7170
|
+
function keyBuilder$l(luvio, config) {
|
|
7169
7171
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7170
7172
|
}
|
|
7171
7173
|
function keyBuilderFromType$5(luvio, object) {
|
|
7172
7174
|
const keyParams = {
|
|
7173
7175
|
name: object.id
|
|
7174
7176
|
};
|
|
7175
|
-
return keyBuilder$
|
|
7177
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7176
7178
|
}
|
|
7177
7179
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7178
7180
|
return input;
|
|
7179
7181
|
}
|
|
7180
|
-
const select$
|
|
7182
|
+
const select$j = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
7181
7183
|
return {
|
|
7182
7184
|
kind: 'Fragment',
|
|
7183
7185
|
version: VERSION$8,
|
|
@@ -7193,7 +7195,7 @@ function equals$8(existing, incoming) {
|
|
|
7193
7195
|
}
|
|
7194
7196
|
const ingest$8 = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7195
7197
|
if (process.env.NODE_ENV !== 'production') {
|
|
7196
|
-
const validateError = validate$
|
|
7198
|
+
const validateError = validate$d(input);
|
|
7197
7199
|
if (validateError !== null) {
|
|
7198
7200
|
throw validateError;
|
|
7199
7201
|
}
|
|
@@ -7214,7 +7216,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7214
7216
|
}
|
|
7215
7217
|
|
|
7216
7218
|
const VERSION$7 = "69fe23112140e9fae50135dcb15c24c2";
|
|
7217
|
-
function validate$
|
|
7219
|
+
function validate$c(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
7218
7220
|
const v_error = (() => {
|
|
7219
7221
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7220
7222
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7341,14 +7343,14 @@ function validate$f(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
7341
7343
|
return v_error === undefined ? null : v_error;
|
|
7342
7344
|
}
|
|
7343
7345
|
const RepresentationType$7 = 'SemanticUnionOutputRepresentation';
|
|
7344
|
-
function keyBuilder$
|
|
7346
|
+
function keyBuilder$k(luvio, config) {
|
|
7345
7347
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7346
7348
|
}
|
|
7347
7349
|
function keyBuilderFromType$4(luvio, object) {
|
|
7348
7350
|
const keyParams = {
|
|
7349
7351
|
name: object.id
|
|
7350
7352
|
};
|
|
7351
|
-
return keyBuilder$
|
|
7353
|
+
return keyBuilder$k(luvio, keyParams);
|
|
7352
7354
|
}
|
|
7353
7355
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7354
7356
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7389,7 +7391,7 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
|
7389
7391
|
}
|
|
7390
7392
|
return input;
|
|
7391
7393
|
}
|
|
7392
|
-
const select$
|
|
7394
|
+
const select$i = function SemanticUnionOutputRepresentationSelect() {
|
|
7393
7395
|
return {
|
|
7394
7396
|
kind: 'Fragment',
|
|
7395
7397
|
version: VERSION$7,
|
|
@@ -7451,14 +7453,14 @@ const select$h = function SemanticUnionOutputRepresentationSelect() {
|
|
|
7451
7453
|
kind: 'Link',
|
|
7452
7454
|
plural: true,
|
|
7453
7455
|
required: false,
|
|
7454
|
-
fragment: select$
|
|
7456
|
+
fragment: select$r()
|
|
7455
7457
|
},
|
|
7456
7458
|
{
|
|
7457
7459
|
name: 'semanticMappedFields',
|
|
7458
7460
|
kind: 'Link',
|
|
7459
7461
|
plural: true,
|
|
7460
7462
|
required: false,
|
|
7461
|
-
fragment: select$
|
|
7463
|
+
fragment: select$j()
|
|
7462
7464
|
}
|
|
7463
7465
|
]
|
|
7464
7466
|
};
|
|
@@ -7615,7 +7617,7 @@ function equals$7(existing, incoming) {
|
|
|
7615
7617
|
}
|
|
7616
7618
|
const ingest$7 = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7617
7619
|
if (process.env.NODE_ENV !== 'production') {
|
|
7618
|
-
const validateError = validate$
|
|
7620
|
+
const validateError = validate$c(input);
|
|
7619
7621
|
if (validateError !== null) {
|
|
7620
7622
|
throw validateError;
|
|
7621
7623
|
}
|
|
@@ -7648,7 +7650,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7648
7650
|
}
|
|
7649
7651
|
|
|
7650
7652
|
const VERSION$6 = "281e0163ea1fc7d956974394f5310216";
|
|
7651
|
-
function validate$
|
|
7653
|
+
function validate$b(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
7652
7654
|
const v_error = (() => {
|
|
7653
7655
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7654
7656
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7712,7 +7714,7 @@ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7712
7714
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
7713
7715
|
const obj_filters_item = obj_filters[i];
|
|
7714
7716
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
7715
|
-
const referencepath_filters_itemValidationError = validate$
|
|
7717
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
7716
7718
|
if (referencepath_filters_itemValidationError !== null) {
|
|
7717
7719
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
7718
7720
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7799,14 +7801,14 @@ function validate$e(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
7799
7801
|
return v_error === undefined ? null : v_error;
|
|
7800
7802
|
}
|
|
7801
7803
|
const RepresentationType$6 = 'SemanticLogicalViewOutputRepresentation';
|
|
7802
|
-
function keyBuilder$
|
|
7804
|
+
function keyBuilder$j(luvio, config) {
|
|
7803
7805
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
7804
7806
|
}
|
|
7805
7807
|
function keyBuilderFromType$3(luvio, object) {
|
|
7806
7808
|
const keyParams = {
|
|
7807
7809
|
name: object.id
|
|
7808
7810
|
};
|
|
7809
|
-
return keyBuilder$
|
|
7811
|
+
return keyBuilder$j(luvio, keyParams);
|
|
7810
7812
|
}
|
|
7811
7813
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7812
7814
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -7865,8 +7867,8 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7865
7867
|
}
|
|
7866
7868
|
return input;
|
|
7867
7869
|
}
|
|
7868
|
-
const select$
|
|
7869
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
7870
|
+
const select$h = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
7871
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$E();
|
|
7870
7872
|
return {
|
|
7871
7873
|
kind: 'Fragment',
|
|
7872
7874
|
version: VERSION$6,
|
|
@@ -7940,21 +7942,21 @@ const select$g = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
7940
7942
|
kind: 'Link',
|
|
7941
7943
|
plural: true,
|
|
7942
7944
|
required: false,
|
|
7943
|
-
fragment: select$
|
|
7945
|
+
fragment: select$r()
|
|
7944
7946
|
},
|
|
7945
7947
|
{
|
|
7946
7948
|
name: 'semanticRelationships',
|
|
7947
7949
|
kind: 'Link',
|
|
7948
7950
|
plural: true,
|
|
7949
7951
|
required: false,
|
|
7950
|
-
fragment: select$
|
|
7952
|
+
fragment: select$k()
|
|
7951
7953
|
},
|
|
7952
7954
|
{
|
|
7953
7955
|
name: 'semanticUnions',
|
|
7954
7956
|
kind: 'Link',
|
|
7955
7957
|
plural: true,
|
|
7956
7958
|
required: false,
|
|
7957
|
-
fragment: select$
|
|
7959
|
+
fragment: select$i()
|
|
7958
7960
|
},
|
|
7959
7961
|
{
|
|
7960
7962
|
name: 'semanticViewTypeEnum',
|
|
@@ -8178,7 +8180,7 @@ function equals$6(existing, incoming) {
|
|
|
8178
8180
|
}
|
|
8179
8181
|
const ingest$6 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8180
8182
|
if (process.env.NODE_ENV !== 'production') {
|
|
8181
|
-
const validateError = validate$
|
|
8183
|
+
const validateError = validate$b(input);
|
|
8182
8184
|
if (validateError !== null) {
|
|
8183
8185
|
throw validateError;
|
|
8184
8186
|
}
|
|
@@ -8217,7 +8219,7 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8217
8219
|
}
|
|
8218
8220
|
|
|
8219
8221
|
const VERSION$5 = "562f9618d0de907973cf252f01ea567d";
|
|
8220
|
-
function validate$
|
|
8222
|
+
function validate$a(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
8221
8223
|
const v_error = (() => {
|
|
8222
8224
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8223
8225
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8344,19 +8346,19 @@ function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
8344
8346
|
return v_error === undefined ? null : v_error;
|
|
8345
8347
|
}
|
|
8346
8348
|
const RepresentationType$5 = 'SemanticParameterOutputRepresentation';
|
|
8347
|
-
function keyBuilder$
|
|
8349
|
+
function keyBuilder$i(luvio, config) {
|
|
8348
8350
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
8349
8351
|
}
|
|
8350
8352
|
function keyBuilderFromType$2(luvio, object) {
|
|
8351
8353
|
const keyParams = {
|
|
8352
8354
|
name: object.id
|
|
8353
8355
|
};
|
|
8354
|
-
return keyBuilder$
|
|
8356
|
+
return keyBuilder$i(luvio, keyParams);
|
|
8355
8357
|
}
|
|
8356
8358
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
8357
8359
|
return input;
|
|
8358
8360
|
}
|
|
8359
|
-
const select$
|
|
8361
|
+
const select$g = function SemanticParameterOutputRepresentationSelect() {
|
|
8360
8362
|
return {
|
|
8361
8363
|
kind: 'Fragment',
|
|
8362
8364
|
version: VERSION$5,
|
|
@@ -8646,7 +8648,7 @@ function equals$5(existing, incoming) {
|
|
|
8646
8648
|
}
|
|
8647
8649
|
const ingest$5 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8648
8650
|
if (process.env.NODE_ENV !== 'production') {
|
|
8649
|
-
const validateError = validate$
|
|
8651
|
+
const validateError = validate$a(input);
|
|
8650
8652
|
if (validateError !== null) {
|
|
8651
8653
|
throw validateError;
|
|
8652
8654
|
}
|
|
@@ -8667,7 +8669,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8667
8669
|
}
|
|
8668
8670
|
|
|
8669
8671
|
const VERSION$4 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
8670
|
-
function validate$
|
|
8672
|
+
function validate$9(obj, path = 'SemanticModelOutputRepresentation') {
|
|
8671
8673
|
const v_error = (() => {
|
|
8672
8674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8673
8675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8700,7 +8702,7 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8700
8702
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
8701
8703
|
const obj_baseModels_item = obj_baseModels[i];
|
|
8702
8704
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
8703
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
8705
|
+
const referencepath_baseModels_itemValidationError = validate$Q(obj_baseModels_item, path_baseModels_item);
|
|
8704
8706
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
8705
8707
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
8706
8708
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8984,14 +8986,14 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
8984
8986
|
return v_error === undefined ? null : v_error;
|
|
8985
8987
|
}
|
|
8986
8988
|
const RepresentationType$4 = 'SemanticModelOutputRepresentation';
|
|
8987
|
-
function keyBuilder$
|
|
8989
|
+
function keyBuilder$h(luvio, config) {
|
|
8988
8990
|
return keyPrefix + '::' + RepresentationType$4 + ':' + config.name;
|
|
8989
8991
|
}
|
|
8990
8992
|
function keyBuilderFromType$1(luvio, object) {
|
|
8991
8993
|
const keyParams = {
|
|
8992
8994
|
name: object.id
|
|
8993
8995
|
};
|
|
8994
|
-
return keyBuilder$
|
|
8996
|
+
return keyBuilder$h(luvio, keyParams);
|
|
8995
8997
|
}
|
|
8996
8998
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
8997
8999
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -9140,8 +9142,8 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9140
9142
|
}
|
|
9141
9143
|
return input;
|
|
9142
9144
|
}
|
|
9143
|
-
const select$
|
|
9144
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
9145
|
+
const select$f = function SemanticModelOutputRepresentationSelect() {
|
|
9146
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$x();
|
|
9145
9147
|
return {
|
|
9146
9148
|
kind: 'Fragment',
|
|
9147
9149
|
version: VERSION$4,
|
|
@@ -9230,7 +9232,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9230
9232
|
kind: 'Link',
|
|
9231
9233
|
plural: true,
|
|
9232
9234
|
required: false,
|
|
9233
|
-
fragment: select$
|
|
9235
|
+
fragment: select$t()
|
|
9234
9236
|
},
|
|
9235
9237
|
{
|
|
9236
9238
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -9242,7 +9244,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9242
9244
|
kind: 'Link',
|
|
9243
9245
|
plural: true,
|
|
9244
9246
|
required: false,
|
|
9245
|
-
fragment: select$
|
|
9247
|
+
fragment: select$s()
|
|
9246
9248
|
},
|
|
9247
9249
|
{
|
|
9248
9250
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -9254,7 +9256,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9254
9256
|
kind: 'Link',
|
|
9255
9257
|
plural: true,
|
|
9256
9258
|
required: false,
|
|
9257
|
-
fragment: select$
|
|
9259
|
+
fragment: select$r()
|
|
9258
9260
|
},
|
|
9259
9261
|
{
|
|
9260
9262
|
name: 'semanticDataObjectsUrl',
|
|
@@ -9266,7 +9268,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9266
9268
|
kind: 'Link',
|
|
9267
9269
|
plural: true,
|
|
9268
9270
|
required: false,
|
|
9269
|
-
fragment: select$
|
|
9271
|
+
fragment: select$m()
|
|
9270
9272
|
},
|
|
9271
9273
|
{
|
|
9272
9274
|
name: 'semanticGroupingsUrl',
|
|
@@ -9278,21 +9280,21 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9278
9280
|
kind: 'Link',
|
|
9279
9281
|
plural: true,
|
|
9280
9282
|
required: false,
|
|
9281
|
-
fragment: select$
|
|
9283
|
+
fragment: select$h()
|
|
9282
9284
|
},
|
|
9283
9285
|
{
|
|
9284
9286
|
name: 'semanticMetrics',
|
|
9285
9287
|
kind: 'Link',
|
|
9286
9288
|
plural: true,
|
|
9287
9289
|
required: false,
|
|
9288
|
-
fragment: select$
|
|
9290
|
+
fragment: select$A()
|
|
9289
9291
|
},
|
|
9290
9292
|
{
|
|
9291
9293
|
name: 'semanticParameters',
|
|
9292
9294
|
kind: 'Link',
|
|
9293
9295
|
plural: true,
|
|
9294
9296
|
required: false,
|
|
9295
|
-
fragment: select$
|
|
9297
|
+
fragment: select$g()
|
|
9296
9298
|
},
|
|
9297
9299
|
{
|
|
9298
9300
|
name: 'semanticParametersUrl',
|
|
@@ -9304,7 +9306,7 @@ const select$e = function SemanticModelOutputRepresentationSelect() {
|
|
|
9304
9306
|
kind: 'Link',
|
|
9305
9307
|
plural: true,
|
|
9306
9308
|
required: false,
|
|
9307
|
-
fragment: select$
|
|
9309
|
+
fragment: select$k()
|
|
9308
9310
|
},
|
|
9309
9311
|
{
|
|
9310
9312
|
name: 'semanticRelationshipsUrl',
|
|
@@ -9755,7 +9757,7 @@ function equals$4(existing, incoming) {
|
|
|
9755
9757
|
}
|
|
9756
9758
|
const ingest$4 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9757
9759
|
if (process.env.NODE_ENV !== 'production') {
|
|
9758
|
-
const validateError = validate$
|
|
9760
|
+
const validateError = validate$9(input);
|
|
9759
9761
|
if (validateError !== null) {
|
|
9760
9762
|
throw validateError;
|
|
9761
9763
|
}
|
|
@@ -9823,19 +9825,19 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9823
9825
|
}
|
|
9824
9826
|
}
|
|
9825
9827
|
|
|
9826
|
-
function select$
|
|
9827
|
-
return select$
|
|
9828
|
+
function select$e(luvio, params) {
|
|
9829
|
+
return select$f();
|
|
9828
9830
|
}
|
|
9829
|
-
function getResponseCacheKeys$
|
|
9831
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
9830
9832
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
9831
9833
|
}
|
|
9832
|
-
function ingestSuccess$
|
|
9834
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
9833
9835
|
const { body } = response;
|
|
9834
9836
|
const key = keyBuilderFromType$1(luvio, body);
|
|
9835
9837
|
luvio.storeIngest(key, ingest$4, body);
|
|
9836
9838
|
const snapshot = luvio.storeLookup({
|
|
9837
9839
|
recordId: key,
|
|
9838
|
-
node: select$
|
|
9840
|
+
node: select$e(),
|
|
9839
9841
|
variables: {},
|
|
9840
9842
|
});
|
|
9841
9843
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9846,10 +9848,10 @@ function ingestSuccess$9(luvio, resourceParams, response) {
|
|
|
9846
9848
|
deepFreeze(snapshot.data);
|
|
9847
9849
|
return snapshot;
|
|
9848
9850
|
}
|
|
9849
|
-
function createResourceRequest$
|
|
9851
|
+
function createResourceRequest$c(config) {
|
|
9850
9852
|
const headers = {};
|
|
9851
9853
|
return {
|
|
9852
|
-
baseUri: '/services/data/
|
|
9854
|
+
baseUri: '/services/data/v64.0',
|
|
9853
9855
|
basePath: '/ssot/semantic/models',
|
|
9854
9856
|
method: 'post',
|
|
9855
9857
|
body: config.body,
|
|
@@ -9860,7 +9862,7 @@ function createResourceRequest$a(config) {
|
|
|
9860
9862
|
};
|
|
9861
9863
|
}
|
|
9862
9864
|
|
|
9863
|
-
const adapterName$
|
|
9865
|
+
const adapterName$c = 'createSemanticModel';
|
|
9864
9866
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
9865
9867
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
9866
9868
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9881,17 +9883,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
9881
9883
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9882
9884
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9883
9885
|
];
|
|
9884
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9885
|
-
const createResourceParams$
|
|
9886
|
-
function typeCheckConfig$
|
|
9886
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createSemanticModel_ConfigPropertyMetadata);
|
|
9887
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(createSemanticModel_ConfigPropertyMetadata);
|
|
9888
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9887
9889
|
const config = {};
|
|
9888
|
-
typeCheckConfig$
|
|
9890
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
9889
9891
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
9890
9892
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
9891
9893
|
const untrustedConfig_baseModels_array = [];
|
|
9892
9894
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
9893
9895
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
9894
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
9896
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$N(untrustedConfig_baseModels_item);
|
|
9895
9897
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
9896
9898
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
9897
9899
|
}
|
|
@@ -9903,7 +9905,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9903
9905
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
9904
9906
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
9905
9907
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
9906
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
9908
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$L(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9907
9909
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
9908
9910
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
9909
9911
|
}
|
|
@@ -9915,7 +9917,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9915
9917
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
9916
9918
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
9917
9919
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
9918
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
9920
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$K(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9919
9921
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
9920
9922
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
9921
9923
|
}
|
|
@@ -9927,7 +9929,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9927
9929
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
9928
9930
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
9929
9931
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
9930
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
9932
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$H(untrustedConfig_semanticDataObjects_item);
|
|
9931
9933
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
9932
9934
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
9933
9935
|
}
|
|
@@ -9939,7 +9941,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9939
9941
|
const untrustedConfig_semanticGroupings_array = [];
|
|
9940
9942
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
9941
9943
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
9942
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
9944
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$A(untrustedConfig_semanticGroupings_item);
|
|
9943
9945
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
9944
9946
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
9945
9947
|
}
|
|
@@ -9951,7 +9953,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9951
9953
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
9952
9954
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
9953
9955
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
9954
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
9956
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$v(untrustedConfig_semanticLogicalViews_item);
|
|
9955
9957
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
9956
9958
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
9957
9959
|
}
|
|
@@ -9963,7 +9965,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9963
9965
|
const untrustedConfig_semanticMetrics_array = [];
|
|
9964
9966
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
9965
9967
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
9966
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
9968
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$r(untrustedConfig_semanticMetrics_item);
|
|
9967
9969
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
9968
9970
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
9969
9971
|
}
|
|
@@ -9975,7 +9977,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9975
9977
|
const untrustedConfig_semanticParameters_array = [];
|
|
9976
9978
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
9977
9979
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
9978
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
9980
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$q(untrustedConfig_semanticParameters_item);
|
|
9979
9981
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
9980
9982
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
9981
9983
|
}
|
|
@@ -9987,7 +9989,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9987
9989
|
const untrustedConfig_semanticRelationships_array = [];
|
|
9988
9990
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
9989
9991
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
9990
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
9992
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$y(untrustedConfig_semanticRelationships_item);
|
|
9991
9993
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
9992
9994
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
9993
9995
|
}
|
|
@@ -9996,30 +9998,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
9996
9998
|
}
|
|
9997
9999
|
return config;
|
|
9998
10000
|
}
|
|
9999
|
-
function validateAdapterConfig$
|
|
10001
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
10000
10002
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10001
10003
|
return null;
|
|
10002
10004
|
}
|
|
10003
10005
|
if (process.env.NODE_ENV !== 'production') {
|
|
10004
10006
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10005
10007
|
}
|
|
10006
|
-
const config = typeCheckConfig$
|
|
10008
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
10007
10009
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10008
10010
|
return null;
|
|
10009
10011
|
}
|
|
10010
10012
|
return config;
|
|
10011
10013
|
}
|
|
10012
|
-
function buildNetworkSnapshot$
|
|
10013
|
-
const resourceParams = createResourceParams$
|
|
10014
|
-
const request = createResourceRequest$
|
|
10014
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
10015
|
+
const resourceParams = createResourceParams$c(config);
|
|
10016
|
+
const request = createResourceRequest$c(resourceParams);
|
|
10015
10017
|
return luvio.dispatchResourceRequest(request, options)
|
|
10016
10018
|
.then((response) => {
|
|
10017
10019
|
return luvio.handleSuccessResponse(() => {
|
|
10018
|
-
const snapshot = ingestSuccess$
|
|
10020
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
10019
10021
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10020
10022
|
}, () => {
|
|
10021
10023
|
const cache = new StoreKeyMap();
|
|
10022
|
-
getResponseCacheKeys$
|
|
10024
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
10023
10025
|
return cache;
|
|
10024
10026
|
});
|
|
10025
10027
|
}, (response) => {
|
|
@@ -10029,33 +10031,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
10029
10031
|
}
|
|
10030
10032
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
10031
10033
|
return function createSemanticModel(untrustedConfig) {
|
|
10032
|
-
const config = validateAdapterConfig$
|
|
10034
|
+
const config = validateAdapterConfig$c(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
10033
10035
|
// Invalid or incomplete config
|
|
10034
10036
|
if (config === null) {
|
|
10035
10037
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
10036
10038
|
}
|
|
10037
|
-
return buildNetworkSnapshot$
|
|
10039
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
10038
10040
|
};
|
|
10039
10041
|
};
|
|
10040
10042
|
|
|
10041
|
-
function select$
|
|
10042
|
-
return select$
|
|
10043
|
+
function select$d(luvio, params) {
|
|
10044
|
+
return select$f();
|
|
10043
10045
|
}
|
|
10044
|
-
function keyBuilder$
|
|
10045
|
-
return keyBuilder$
|
|
10046
|
+
function keyBuilder$g(luvio, params) {
|
|
10047
|
+
return keyBuilder$h(luvio, {
|
|
10046
10048
|
name: params.urlParams.modelApiNameOrId
|
|
10047
10049
|
});
|
|
10048
10050
|
}
|
|
10049
|
-
function getResponseCacheKeys$
|
|
10051
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
10050
10052
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
10051
10053
|
}
|
|
10052
|
-
function ingestSuccess$
|
|
10054
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
10053
10055
|
const { body } = response;
|
|
10054
|
-
const key = keyBuilder$
|
|
10056
|
+
const key = keyBuilder$g(luvio, resourceParams);
|
|
10055
10057
|
luvio.storeIngest(key, ingest$4, body);
|
|
10056
10058
|
const snapshot = luvio.storeLookup({
|
|
10057
10059
|
recordId: key,
|
|
10058
|
-
node: select$
|
|
10060
|
+
node: select$d(),
|
|
10059
10061
|
variables: {},
|
|
10060
10062
|
}, snapshotRefresh);
|
|
10061
10063
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10067,15 +10069,15 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10067
10069
|
return snapshot;
|
|
10068
10070
|
}
|
|
10069
10071
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
10070
|
-
const key = keyBuilder$
|
|
10072
|
+
const key = keyBuilder$g(luvio, params);
|
|
10071
10073
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10072
10074
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10073
10075
|
return errorSnapshot;
|
|
10074
10076
|
}
|
|
10075
|
-
function createResourceRequest$
|
|
10077
|
+
function createResourceRequest$b(config) {
|
|
10076
10078
|
const headers = {};
|
|
10077
10079
|
return {
|
|
10078
|
-
baseUri: '/services/data/
|
|
10080
|
+
baseUri: '/services/data/v64.0',
|
|
10079
10081
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10080
10082
|
method: 'get',
|
|
10081
10083
|
body: null,
|
|
@@ -10086,63 +10088,63 @@ function createResourceRequest$9(config) {
|
|
|
10086
10088
|
};
|
|
10087
10089
|
}
|
|
10088
10090
|
|
|
10089
|
-
const adapterName$
|
|
10091
|
+
const adapterName$b = 'getSemanticModel';
|
|
10090
10092
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10091
10093
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10092
10094
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10093
10095
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10094
10096
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10095
10097
|
];
|
|
10096
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10097
|
-
const createResourceParams$
|
|
10098
|
-
function keyBuilder$
|
|
10099
|
-
const resourceParams = createResourceParams$
|
|
10100
|
-
return keyBuilder$
|
|
10098
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSemanticModel_ConfigPropertyMetadata);
|
|
10099
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(getSemanticModel_ConfigPropertyMetadata);
|
|
10100
|
+
function keyBuilder$f(luvio, config) {
|
|
10101
|
+
const resourceParams = createResourceParams$b(config);
|
|
10102
|
+
return keyBuilder$g(luvio, resourceParams);
|
|
10101
10103
|
}
|
|
10102
|
-
function typeCheckConfig$
|
|
10104
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
10103
10105
|
const config = {};
|
|
10104
|
-
typeCheckConfig$
|
|
10106
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10105
10107
|
return config;
|
|
10106
10108
|
}
|
|
10107
|
-
function validateAdapterConfig$
|
|
10109
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
10108
10110
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10109
10111
|
return null;
|
|
10110
10112
|
}
|
|
10111
10113
|
if (process.env.NODE_ENV !== 'production') {
|
|
10112
10114
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10113
10115
|
}
|
|
10114
|
-
const config = typeCheckConfig$
|
|
10116
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
10115
10117
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10116
10118
|
return null;
|
|
10117
10119
|
}
|
|
10118
10120
|
return config;
|
|
10119
10121
|
}
|
|
10120
10122
|
function adapterFragment$6(luvio, config) {
|
|
10121
|
-
createResourceParams$
|
|
10122
|
-
return select$
|
|
10123
|
+
createResourceParams$b(config);
|
|
10124
|
+
return select$d();
|
|
10123
10125
|
}
|
|
10124
10126
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
10125
|
-
const snapshot = ingestSuccess$
|
|
10127
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
10126
10128
|
config,
|
|
10127
|
-
resolve: () => buildNetworkSnapshot$
|
|
10129
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10128
10130
|
});
|
|
10129
10131
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10130
10132
|
}
|
|
10131
10133
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
10132
10134
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
10133
10135
|
config,
|
|
10134
|
-
resolve: () => buildNetworkSnapshot$
|
|
10136
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10135
10137
|
});
|
|
10136
10138
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10137
10139
|
}
|
|
10138
|
-
function buildNetworkSnapshot$
|
|
10139
|
-
const resourceParams = createResourceParams$
|
|
10140
|
-
const request = createResourceRequest$
|
|
10140
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
10141
|
+
const resourceParams = createResourceParams$b(config);
|
|
10142
|
+
const request = createResourceRequest$b(resourceParams);
|
|
10141
10143
|
return luvio.dispatchResourceRequest(request, options)
|
|
10142
10144
|
.then((response) => {
|
|
10143
10145
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
10144
10146
|
const cache = new StoreKeyMap();
|
|
10145
|
-
getResponseCacheKeys$
|
|
10147
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
10146
10148
|
return cache;
|
|
10147
10149
|
});
|
|
10148
10150
|
}, (response) => {
|
|
@@ -10150,23 +10152,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
10150
10152
|
});
|
|
10151
10153
|
}
|
|
10152
10154
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10153
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10155
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
10154
10156
|
}
|
|
10155
10157
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10156
10158
|
const { luvio, config } = context;
|
|
10157
10159
|
const selector = {
|
|
10158
|
-
recordId: keyBuilder$
|
|
10160
|
+
recordId: keyBuilder$f(luvio, config),
|
|
10159
10161
|
node: adapterFragment$6(luvio, config),
|
|
10160
10162
|
variables: {},
|
|
10161
10163
|
};
|
|
10162
10164
|
const cacheSnapshot = storeLookup(selector, {
|
|
10163
10165
|
config,
|
|
10164
|
-
resolve: () => buildNetworkSnapshot$
|
|
10166
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
10165
10167
|
});
|
|
10166
10168
|
return cacheSnapshot;
|
|
10167
10169
|
}
|
|
10168
10170
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10169
|
-
const config = validateAdapterConfig$
|
|
10171
|
+
const config = validateAdapterConfig$b(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10170
10172
|
// Invalid or incomplete config
|
|
10171
10173
|
if (config === null) {
|
|
10172
10174
|
return null;
|
|
@@ -10175,19 +10177,19 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10175
10177
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
10176
10178
|
};
|
|
10177
10179
|
|
|
10178
|
-
function select$
|
|
10179
|
-
return select$
|
|
10180
|
+
function select$c(luvio, params) {
|
|
10181
|
+
return select$f();
|
|
10180
10182
|
}
|
|
10181
|
-
function getResponseCacheKeys$
|
|
10183
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
10182
10184
|
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
10183
10185
|
}
|
|
10184
|
-
function ingestSuccess$
|
|
10186
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
10185
10187
|
const { body } = response;
|
|
10186
10188
|
const key = keyBuilderFromType$1(luvio, body);
|
|
10187
10189
|
luvio.storeIngest(key, ingest$4, body);
|
|
10188
10190
|
const snapshot = luvio.storeLookup({
|
|
10189
10191
|
recordId: key,
|
|
10190
|
-
node: select$
|
|
10192
|
+
node: select$c(),
|
|
10191
10193
|
variables: {},
|
|
10192
10194
|
});
|
|
10193
10195
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10198,10 +10200,10 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
10198
10200
|
deepFreeze(snapshot.data);
|
|
10199
10201
|
return snapshot;
|
|
10200
10202
|
}
|
|
10201
|
-
function createResourceRequest$
|
|
10203
|
+
function createResourceRequest$a(config) {
|
|
10202
10204
|
const headers = {};
|
|
10203
10205
|
return {
|
|
10204
|
-
baseUri: '/services/data/
|
|
10206
|
+
baseUri: '/services/data/v64.0',
|
|
10205
10207
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10206
10208
|
method: 'patch',
|
|
10207
10209
|
body: config.body,
|
|
@@ -10212,7 +10214,7 @@ function createResourceRequest$8(config) {
|
|
|
10212
10214
|
};
|
|
10213
10215
|
}
|
|
10214
10216
|
|
|
10215
|
-
const adapterName$
|
|
10217
|
+
const adapterName$a = 'patchSemanticModel';
|
|
10216
10218
|
const patchSemanticModel_ConfigPropertyMetadata = [
|
|
10217
10219
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10218
10220
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -10234,17 +10236,17 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
10234
10236
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10235
10237
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10236
10238
|
];
|
|
10237
|
-
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10238
|
-
const createResourceParams$
|
|
10239
|
-
function typeCheckConfig$
|
|
10239
|
+
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, patchSemanticModel_ConfigPropertyMetadata);
|
|
10240
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(patchSemanticModel_ConfigPropertyMetadata);
|
|
10241
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
10240
10242
|
const config = {};
|
|
10241
|
-
typeCheckConfig$
|
|
10243
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
10242
10244
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
10243
10245
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
10244
10246
|
const untrustedConfig_baseModels_array = [];
|
|
10245
10247
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
10246
10248
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
10247
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
10249
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$N(untrustedConfig_baseModels_item);
|
|
10248
10250
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
10249
10251
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
10250
10252
|
}
|
|
@@ -10256,7 +10258,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10256
10258
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
10257
10259
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
10258
10260
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
10259
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
10261
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$L(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10260
10262
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
10261
10263
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
10262
10264
|
}
|
|
@@ -10268,7 +10270,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10268
10270
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
10269
10271
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
10270
10272
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
10271
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
10273
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$K(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10272
10274
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
10273
10275
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
10274
10276
|
}
|
|
@@ -10280,7 +10282,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10280
10282
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
10281
10283
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
10282
10284
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
10283
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
10285
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$H(untrustedConfig_semanticDataObjects_item);
|
|
10284
10286
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
10285
10287
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
10286
10288
|
}
|
|
@@ -10292,7 +10294,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10292
10294
|
const untrustedConfig_semanticGroupings_array = [];
|
|
10293
10295
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
10294
10296
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
10295
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
10297
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$A(untrustedConfig_semanticGroupings_item);
|
|
10296
10298
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
10297
10299
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
10298
10300
|
}
|
|
@@ -10304,7 +10306,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10304
10306
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
10305
10307
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
10306
10308
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
10307
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
10309
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$v(untrustedConfig_semanticLogicalViews_item);
|
|
10308
10310
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
10309
10311
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
10310
10312
|
}
|
|
@@ -10316,7 +10318,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10316
10318
|
const untrustedConfig_semanticMetrics_array = [];
|
|
10317
10319
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
10318
10320
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
10319
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
10321
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$r(untrustedConfig_semanticMetrics_item);
|
|
10320
10322
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
10321
10323
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
10322
10324
|
}
|
|
@@ -10328,7 +10330,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10328
10330
|
const untrustedConfig_semanticParameters_array = [];
|
|
10329
10331
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
10330
10332
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
10331
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
10333
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$q(untrustedConfig_semanticParameters_item);
|
|
10332
10334
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
10333
10335
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
10334
10336
|
}
|
|
@@ -10340,7 +10342,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10340
10342
|
const untrustedConfig_semanticRelationships_array = [];
|
|
10341
10343
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
10342
10344
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
10343
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
10345
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$y(untrustedConfig_semanticRelationships_item);
|
|
10344
10346
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
10345
10347
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
10346
10348
|
}
|
|
@@ -10349,30 +10351,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
10349
10351
|
}
|
|
10350
10352
|
return config;
|
|
10351
10353
|
}
|
|
10352
|
-
function validateAdapterConfig$
|
|
10354
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
10353
10355
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10354
10356
|
return null;
|
|
10355
10357
|
}
|
|
10356
10358
|
if (process.env.NODE_ENV !== 'production') {
|
|
10357
10359
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10358
10360
|
}
|
|
10359
|
-
const config = typeCheckConfig$
|
|
10361
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
10360
10362
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10361
10363
|
return null;
|
|
10362
10364
|
}
|
|
10363
10365
|
return config;
|
|
10364
10366
|
}
|
|
10365
|
-
function buildNetworkSnapshot$
|
|
10366
|
-
const resourceParams = createResourceParams$
|
|
10367
|
-
const request = createResourceRequest$
|
|
10367
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
10368
|
+
const resourceParams = createResourceParams$a(config);
|
|
10369
|
+
const request = createResourceRequest$a(resourceParams);
|
|
10368
10370
|
return luvio.dispatchResourceRequest(request, options)
|
|
10369
10371
|
.then((response) => {
|
|
10370
10372
|
return luvio.handleSuccessResponse(() => {
|
|
10371
|
-
const snapshot = ingestSuccess$
|
|
10373
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
10372
10374
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10373
10375
|
}, () => {
|
|
10374
10376
|
const cache = new StoreKeyMap();
|
|
10375
|
-
getResponseCacheKeys$
|
|
10377
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
10376
10378
|
return cache;
|
|
10377
10379
|
});
|
|
10378
10380
|
}, (response) => {
|
|
@@ -10382,81 +10384,30 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
10382
10384
|
}
|
|
10383
10385
|
const patchSemanticModelAdapterFactory = (luvio) => {
|
|
10384
10386
|
return function patchSemanticModel(untrustedConfig) {
|
|
10385
|
-
const config = validateAdapterConfig$
|
|
10387
|
+
const config = validateAdapterConfig$a(untrustedConfig, patchSemanticModel_ConfigPropertyNames);
|
|
10386
10388
|
// Invalid or incomplete config
|
|
10387
10389
|
if (config === null) {
|
|
10388
10390
|
throw new Error('Invalid config for "patchSemanticModel"');
|
|
10389
10391
|
}
|
|
10390
|
-
return buildNetworkSnapshot$
|
|
10392
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
10391
10393
|
};
|
|
10392
10394
|
};
|
|
10393
10395
|
|
|
10394
|
-
function validate$
|
|
10395
|
-
const v_error = (() => {
|
|
10396
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10397
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10398
|
-
}
|
|
10399
|
-
if (obj.endDate !== undefined) {
|
|
10400
|
-
const obj_endDate = obj.endDate;
|
|
10401
|
-
const path_endDate = path + '.endDate';
|
|
10402
|
-
if (typeof obj_endDate !== 'string') {
|
|
10403
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
10404
|
-
}
|
|
10405
|
-
}
|
|
10406
|
-
if (obj.startDate !== undefined) {
|
|
10407
|
-
const obj_startDate = obj.startDate;
|
|
10408
|
-
const path_startDate = path + '.startDate';
|
|
10409
|
-
if (typeof obj_startDate !== 'string') {
|
|
10410
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
10411
|
-
}
|
|
10412
|
-
}
|
|
10413
|
-
})();
|
|
10414
|
-
return v_error === undefined ? null : v_error;
|
|
10415
|
-
}
|
|
10416
|
-
|
|
10417
|
-
function validate$a(obj, path = 'SemanticGoalValueOutputRepresentation') {
|
|
10418
|
-
const v_error = (() => {
|
|
10419
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10420
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10421
|
-
}
|
|
10422
|
-
if (obj.staticValue !== undefined) {
|
|
10423
|
-
obj.staticValue;
|
|
10424
|
-
}
|
|
10425
|
-
})();
|
|
10426
|
-
return v_error === undefined ? null : v_error;
|
|
10427
|
-
}
|
|
10428
|
-
|
|
10429
|
-
function validate$9(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10396
|
+
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
10430
10397
|
const v_error = (() => {
|
|
10431
10398
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10432
10399
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10433
10400
|
}
|
|
10434
|
-
const
|
|
10435
|
-
const
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
let message = 'Object doesn\'t match SemanticGoalDateRangeOutputRepresentation (at "' + path_date + '")\n';
|
|
10439
|
-
message += referencepath_dateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10440
|
-
return new TypeError(message);
|
|
10441
|
-
}
|
|
10442
|
-
const obj_goalType = obj.goalType;
|
|
10443
|
-
const path_goalType = path + '.goalType';
|
|
10444
|
-
if (typeof obj_goalType !== 'string') {
|
|
10445
|
-
return new TypeError('Expected "string" but received "' + typeof obj_goalType + '" (at "' + path_goalType + '")');
|
|
10446
|
-
}
|
|
10447
|
-
const obj_value = obj.value;
|
|
10448
|
-
const path_value = path + '.value';
|
|
10449
|
-
const referencepath_valueValidationError = validate$a(obj_value, path_value);
|
|
10450
|
-
if (referencepath_valueValidationError !== null) {
|
|
10451
|
-
let message = 'Object doesn\'t match SemanticGoalValueOutputRepresentation (at "' + path_value + '")\n';
|
|
10452
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10453
|
-
return new TypeError(message);
|
|
10401
|
+
const obj_forecasting = obj.forecasting;
|
|
10402
|
+
const path_forecasting = path + '.forecasting';
|
|
10403
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
10404
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
10454
10405
|
}
|
|
10455
10406
|
})();
|
|
10456
10407
|
return v_error === undefined ? null : v_error;
|
|
10457
10408
|
}
|
|
10458
10409
|
|
|
10459
|
-
function validate$
|
|
10410
|
+
function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
10460
10411
|
const v_error = (() => {
|
|
10461
10412
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10462
10413
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10487,7 +10438,7 @@ function validate$8(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
|
10487
10438
|
}
|
|
10488
10439
|
|
|
10489
10440
|
const VERSION$3 = "34ece37408ddd80874097c87b829ae97";
|
|
10490
|
-
function validate$
|
|
10441
|
+
function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
10491
10442
|
const v_error = (() => {
|
|
10492
10443
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10493
10444
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10544,7 +10495,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10544
10495
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
10545
10496
|
const obj_filters_item = obj_filters[i];
|
|
10546
10497
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
10547
|
-
const referencepath_filters_itemValidationError = validate$
|
|
10498
|
+
const referencepath_filters_itemValidationError = validate$W(obj_filters_item, path_filters_item);
|
|
10548
10499
|
if (referencepath_filters_itemValidationError !== null) {
|
|
10549
10500
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
10550
10501
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10555,7 +10506,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10555
10506
|
if (obj.goal !== undefined) {
|
|
10556
10507
|
const obj_goal = obj.goal;
|
|
10557
10508
|
const path_goal = path + '.goal';
|
|
10558
|
-
const referencepath_goalValidationError = validate$
|
|
10509
|
+
const referencepath_goalValidationError = validate$8(obj_goal, path_goal);
|
|
10559
10510
|
if (referencepath_goalValidationError !== null) {
|
|
10560
10511
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
10561
10512
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10598,7 +10549,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10598
10549
|
if (obj.semanticMetric !== undefined) {
|
|
10599
10550
|
const obj_semanticMetric = obj.semanticMetric;
|
|
10600
10551
|
const path_semanticMetric = path + '.semanticMetric';
|
|
10601
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
10552
|
+
const referencepath_semanticMetricValidationError = validate$S(obj_semanticMetric, path_semanticMetric);
|
|
10602
10553
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
10603
10554
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
10604
10555
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10608,7 +10559,7 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10608
10559
|
if (obj.timeRange !== undefined) {
|
|
10609
10560
|
const obj_timeRange = obj.timeRange;
|
|
10610
10561
|
const path_timeRange = path + '.timeRange';
|
|
10611
|
-
const referencepath_timeRangeValidationError = validate$
|
|
10562
|
+
const referencepath_timeRangeValidationError = validate$7(obj_timeRange, path_timeRange);
|
|
10612
10563
|
if (referencepath_timeRangeValidationError !== null) {
|
|
10613
10564
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
10614
10565
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10619,19 +10570,19 @@ function validate$7(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
10619
10570
|
return v_error === undefined ? null : v_error;
|
|
10620
10571
|
}
|
|
10621
10572
|
const RepresentationType$3 = 'SemanticSubMetricOutputRepresentation';
|
|
10622
|
-
function keyBuilder$
|
|
10573
|
+
function keyBuilder$e(luvio, config) {
|
|
10623
10574
|
return keyPrefix + '::' + RepresentationType$3 + ':' + config.name;
|
|
10624
10575
|
}
|
|
10625
10576
|
function keyBuilderFromType(luvio, object) {
|
|
10626
10577
|
const keyParams = {
|
|
10627
10578
|
name: object.id
|
|
10628
10579
|
};
|
|
10629
|
-
return keyBuilder$
|
|
10580
|
+
return keyBuilder$e(luvio, keyParams);
|
|
10630
10581
|
}
|
|
10631
10582
|
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
10632
10583
|
return input;
|
|
10633
10584
|
}
|
|
10634
|
-
const select$
|
|
10585
|
+
const select$b = function SemanticSubMetricOutputRepresentationSelect() {
|
|
10635
10586
|
return {
|
|
10636
10587
|
kind: 'Fragment',
|
|
10637
10588
|
version: VERSION$3,
|
|
@@ -10647,7 +10598,7 @@ function equals$3(existing, incoming) {
|
|
|
10647
10598
|
}
|
|
10648
10599
|
const ingest$3 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10649
10600
|
if (process.env.NODE_ENV !== 'production') {
|
|
10650
|
-
const validateError = validate$
|
|
10601
|
+
const validateError = validate$6(input);
|
|
10651
10602
|
if (validateError !== null) {
|
|
10652
10603
|
throw validateError;
|
|
10653
10604
|
}
|
|
@@ -10668,7 +10619,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10668
10619
|
}
|
|
10669
10620
|
|
|
10670
10621
|
const VERSION$2 = "2980e56b9b4f8b3773f2554f67834745";
|
|
10671
|
-
function validate$
|
|
10622
|
+
function validate$5(obj, path = 'SemanticSubMetricsByMetricOutputRepresentation') {
|
|
10672
10623
|
const v_error = (() => {
|
|
10673
10624
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10674
10625
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10719,7 +10670,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10719
10670
|
}
|
|
10720
10671
|
return input;
|
|
10721
10672
|
}
|
|
10722
|
-
const select$
|
|
10673
|
+
const select$a = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
10723
10674
|
return {
|
|
10724
10675
|
kind: 'Fragment',
|
|
10725
10676
|
version: VERSION$2,
|
|
@@ -10735,7 +10686,7 @@ const select$9 = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10735
10686
|
kind: 'Link',
|
|
10736
10687
|
plural: true,
|
|
10737
10688
|
required: false,
|
|
10738
|
-
fragment: select$
|
|
10689
|
+
fragment: select$b()
|
|
10739
10690
|
}
|
|
10740
10691
|
]
|
|
10741
10692
|
};
|
|
@@ -10776,7 +10727,7 @@ function equals$2(existing, incoming) {
|
|
|
10776
10727
|
}
|
|
10777
10728
|
const ingest$2 = function SemanticSubMetricsByMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10778
10729
|
if (process.env.NODE_ENV !== 'production') {
|
|
10779
|
-
const validateError = validate$
|
|
10730
|
+
const validateError = validate$5(input);
|
|
10780
10731
|
if (validateError !== null) {
|
|
10781
10732
|
throw validateError;
|
|
10782
10733
|
}
|
|
@@ -10803,7 +10754,7 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10803
10754
|
}
|
|
10804
10755
|
|
|
10805
10756
|
const VERSION$1 = "6fbd75e1a154b08c14ba6560c06488db";
|
|
10806
|
-
function validate$
|
|
10757
|
+
function validate$4(obj, path = 'SemanticSubMetricsByMetricCollectionOutputRepresentation') {
|
|
10807
10758
|
const v_error = (() => {
|
|
10808
10759
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10809
10760
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10847,7 +10798,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
10847
10798
|
}
|
|
10848
10799
|
return input;
|
|
10849
10800
|
}
|
|
10850
|
-
const select$
|
|
10801
|
+
const select$9 = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10851
10802
|
return {
|
|
10852
10803
|
kind: 'Fragment',
|
|
10853
10804
|
version: VERSION$1,
|
|
@@ -10858,7 +10809,7 @@ const select$8 = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10858
10809
|
kind: 'Link',
|
|
10859
10810
|
plural: true,
|
|
10860
10811
|
required: false,
|
|
10861
|
-
fragment: select$
|
|
10812
|
+
fragment: select$a()
|
|
10862
10813
|
}
|
|
10863
10814
|
]
|
|
10864
10815
|
};
|
|
@@ -10886,7 +10837,7 @@ function equals$1(existing, incoming) {
|
|
|
10886
10837
|
}
|
|
10887
10838
|
const ingest$1 = function SemanticSubMetricsByMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10888
10839
|
if (process.env.NODE_ENV !== 'production') {
|
|
10889
|
-
const validateError = validate$
|
|
10840
|
+
const validateError = validate$4(input);
|
|
10890
10841
|
if (validateError !== null) {
|
|
10891
10842
|
throw validateError;
|
|
10892
10843
|
}
|
|
@@ -10912,22 +10863,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10912
10863
|
}
|
|
10913
10864
|
}
|
|
10914
10865
|
|
|
10915
|
-
function select$
|
|
10916
|
-
return select$
|
|
10866
|
+
function select$8(luvio, params) {
|
|
10867
|
+
return select$9();
|
|
10917
10868
|
}
|
|
10918
|
-
function keyBuilder$
|
|
10869
|
+
function keyBuilder$d(luvio, params) {
|
|
10919
10870
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10920
10871
|
}
|
|
10921
|
-
function getResponseCacheKeys$
|
|
10922
|
-
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
10872
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
10873
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
10923
10874
|
}
|
|
10924
|
-
function ingestSuccess$
|
|
10875
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10925
10876
|
const { body } = response;
|
|
10926
|
-
const key = keyBuilder$
|
|
10877
|
+
const key = keyBuilder$d(luvio, resourceParams);
|
|
10927
10878
|
luvio.storeIngest(key, ingest$1, body);
|
|
10928
10879
|
const snapshot = luvio.storeLookup({
|
|
10929
10880
|
recordId: key,
|
|
10930
|
-
node: select$
|
|
10881
|
+
node: select$8(),
|
|
10931
10882
|
variables: {},
|
|
10932
10883
|
}, snapshotRefresh);
|
|
10933
10884
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10939,15 +10890,15 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10939
10890
|
return snapshot;
|
|
10940
10891
|
}
|
|
10941
10892
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
10942
|
-
const key = keyBuilder$
|
|
10893
|
+
const key = keyBuilder$d(luvio, params);
|
|
10943
10894
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10944
10895
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10945
10896
|
return errorSnapshot;
|
|
10946
10897
|
}
|
|
10947
|
-
function createResourceRequest$
|
|
10898
|
+
function createResourceRequest$9(config) {
|
|
10948
10899
|
const headers = {};
|
|
10949
10900
|
return {
|
|
10950
|
-
baseUri: '/services/data/
|
|
10901
|
+
baseUri: '/services/data/v64.0',
|
|
10951
10902
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
|
|
10952
10903
|
method: 'get',
|
|
10953
10904
|
body: null,
|
|
@@ -10958,61 +10909,61 @@ function createResourceRequest$7(config) {
|
|
|
10958
10909
|
};
|
|
10959
10910
|
}
|
|
10960
10911
|
|
|
10961
|
-
const adapterName$
|
|
10912
|
+
const adapterName$9 = 'getSemanticMetricsToSubMetrics';
|
|
10962
10913
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10963
10914
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10964
10915
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10965
10916
|
];
|
|
10966
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10967
|
-
const createResourceParams$
|
|
10968
|
-
function keyBuilder$
|
|
10969
|
-
const resourceParams = createResourceParams$
|
|
10970
|
-
return keyBuilder$
|
|
10917
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10918
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10919
|
+
function keyBuilder$c(luvio, config) {
|
|
10920
|
+
const resourceParams = createResourceParams$9(config);
|
|
10921
|
+
return keyBuilder$d(luvio, resourceParams);
|
|
10971
10922
|
}
|
|
10972
|
-
function typeCheckConfig$
|
|
10923
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
10973
10924
|
const config = {};
|
|
10974
|
-
typeCheckConfig$
|
|
10925
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10975
10926
|
return config;
|
|
10976
10927
|
}
|
|
10977
|
-
function validateAdapterConfig$
|
|
10928
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
10978
10929
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10979
10930
|
return null;
|
|
10980
10931
|
}
|
|
10981
10932
|
if (process.env.NODE_ENV !== 'production') {
|
|
10982
10933
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10983
10934
|
}
|
|
10984
|
-
const config = typeCheckConfig$
|
|
10935
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
10985
10936
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10986
10937
|
return null;
|
|
10987
10938
|
}
|
|
10988
10939
|
return config;
|
|
10989
10940
|
}
|
|
10990
10941
|
function adapterFragment$5(luvio, config) {
|
|
10991
|
-
createResourceParams$
|
|
10992
|
-
return select$
|
|
10942
|
+
createResourceParams$9(config);
|
|
10943
|
+
return select$8();
|
|
10993
10944
|
}
|
|
10994
10945
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10995
|
-
const snapshot = ingestSuccess$
|
|
10946
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10996
10947
|
config,
|
|
10997
|
-
resolve: () => buildNetworkSnapshot$
|
|
10948
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
10998
10949
|
});
|
|
10999
10950
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11000
10951
|
}
|
|
11001
10952
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
11002
10953
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
11003
10954
|
config,
|
|
11004
|
-
resolve: () => buildNetworkSnapshot$
|
|
10955
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11005
10956
|
});
|
|
11006
10957
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11007
10958
|
}
|
|
11008
|
-
function buildNetworkSnapshot$
|
|
11009
|
-
const resourceParams = createResourceParams$
|
|
11010
|
-
const request = createResourceRequest$
|
|
10959
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
10960
|
+
const resourceParams = createResourceParams$9(config);
|
|
10961
|
+
const request = createResourceRequest$9(resourceParams);
|
|
11011
10962
|
return luvio.dispatchResourceRequest(request, options)
|
|
11012
10963
|
.then((response) => {
|
|
11013
10964
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
11014
10965
|
const cache = new StoreKeyMap();
|
|
11015
|
-
getResponseCacheKeys$
|
|
10966
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
11016
10967
|
return cache;
|
|
11017
10968
|
});
|
|
11018
10969
|
}, (response) => {
|
|
@@ -11020,23 +10971,23 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
11020
10971
|
});
|
|
11021
10972
|
}
|
|
11022
10973
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
11023
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10974
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
11024
10975
|
}
|
|
11025
10976
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
11026
10977
|
const { luvio, config } = context;
|
|
11027
10978
|
const selector = {
|
|
11028
|
-
recordId: keyBuilder$
|
|
10979
|
+
recordId: keyBuilder$c(luvio, config),
|
|
11029
10980
|
node: adapterFragment$5(luvio, config),
|
|
11030
10981
|
variables: {},
|
|
11031
10982
|
};
|
|
11032
10983
|
const cacheSnapshot = storeLookup(selector, {
|
|
11033
10984
|
config,
|
|
11034
|
-
resolve: () => buildNetworkSnapshot$
|
|
10985
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
11035
10986
|
});
|
|
11036
10987
|
return cacheSnapshot;
|
|
11037
10988
|
}
|
|
11038
10989
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
11039
|
-
const config = validateAdapterConfig$
|
|
10990
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
11040
10991
|
// Invalid or incomplete config
|
|
11041
10992
|
if (config === null) {
|
|
11042
10993
|
return null;
|
|
@@ -11045,22 +10996,22 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
11045
10996
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
11046
10997
|
};
|
|
11047
10998
|
|
|
11048
|
-
function select$
|
|
11049
|
-
return select$
|
|
10999
|
+
function select$7(luvio, params) {
|
|
11000
|
+
return select$z();
|
|
11050
11001
|
}
|
|
11051
|
-
function keyBuilder$
|
|
11002
|
+
function keyBuilder$b(luvio, params) {
|
|
11052
11003
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11053
11004
|
}
|
|
11054
|
-
function getResponseCacheKeys$
|
|
11055
|
-
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11005
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
11006
|
+
getTypeCacheKeys$f(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
11056
11007
|
}
|
|
11057
|
-
function ingestSuccess$
|
|
11008
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
11058
11009
|
const { body } = response;
|
|
11059
|
-
const key = keyBuilder$
|
|
11010
|
+
const key = keyBuilder$b(luvio, resourceParams);
|
|
11060
11011
|
luvio.storeIngest(key, ingest$f, body);
|
|
11061
11012
|
const snapshot = luvio.storeLookup({
|
|
11062
11013
|
recordId: key,
|
|
11063
|
-
node: select$
|
|
11014
|
+
node: select$7(),
|
|
11064
11015
|
variables: {},
|
|
11065
11016
|
}, snapshotRefresh);
|
|
11066
11017
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11072,15 +11023,15 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11072
11023
|
return snapshot;
|
|
11073
11024
|
}
|
|
11074
11025
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
11075
|
-
const key = keyBuilder$
|
|
11026
|
+
const key = keyBuilder$b(luvio, params);
|
|
11076
11027
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11077
11028
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11078
11029
|
return errorSnapshot;
|
|
11079
11030
|
}
|
|
11080
|
-
function createResourceRequest$
|
|
11031
|
+
function createResourceRequest$8(config) {
|
|
11081
11032
|
const headers = {};
|
|
11082
11033
|
return {
|
|
11083
|
-
baseUri: '/services/data/
|
|
11034
|
+
baseUri: '/services/data/v64.0',
|
|
11084
11035
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
11085
11036
|
method: 'get',
|
|
11086
11037
|
body: null,
|
|
@@ -11091,60 +11042,60 @@ function createResourceRequest$6(config) {
|
|
|
11091
11042
|
};
|
|
11092
11043
|
}
|
|
11093
11044
|
|
|
11094
|
-
const adapterName$
|
|
11045
|
+
const adapterName$8 = 'getSemanticMetrics';
|
|
11095
11046
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
11096
11047
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11097
11048
|
];
|
|
11098
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11099
|
-
const createResourceParams$
|
|
11100
|
-
function keyBuilder$
|
|
11101
|
-
const resourceParams = createResourceParams$
|
|
11102
|
-
return keyBuilder$
|
|
11049
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11050
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getSemanticMetrics_ConfigPropertyMetadata);
|
|
11051
|
+
function keyBuilder$a(luvio, config) {
|
|
11052
|
+
const resourceParams = createResourceParams$8(config);
|
|
11053
|
+
return keyBuilder$b(luvio, resourceParams);
|
|
11103
11054
|
}
|
|
11104
|
-
function typeCheckConfig$
|
|
11055
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
11105
11056
|
const config = {};
|
|
11106
|
-
typeCheckConfig$
|
|
11057
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
11107
11058
|
return config;
|
|
11108
11059
|
}
|
|
11109
|
-
function validateAdapterConfig$
|
|
11060
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
11110
11061
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11111
11062
|
return null;
|
|
11112
11063
|
}
|
|
11113
11064
|
if (process.env.NODE_ENV !== 'production') {
|
|
11114
11065
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11115
11066
|
}
|
|
11116
|
-
const config = typeCheckConfig$
|
|
11067
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
11117
11068
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11118
11069
|
return null;
|
|
11119
11070
|
}
|
|
11120
11071
|
return config;
|
|
11121
11072
|
}
|
|
11122
11073
|
function adapterFragment$4(luvio, config) {
|
|
11123
|
-
createResourceParams$
|
|
11124
|
-
return select$
|
|
11074
|
+
createResourceParams$8(config);
|
|
11075
|
+
return select$7();
|
|
11125
11076
|
}
|
|
11126
11077
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
11127
|
-
const snapshot = ingestSuccess$
|
|
11078
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
11128
11079
|
config,
|
|
11129
|
-
resolve: () => buildNetworkSnapshot$
|
|
11080
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11130
11081
|
});
|
|
11131
11082
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11132
11083
|
}
|
|
11133
11084
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
11134
11085
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
11135
11086
|
config,
|
|
11136
|
-
resolve: () => buildNetworkSnapshot$
|
|
11087
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11137
11088
|
});
|
|
11138
11089
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11139
11090
|
}
|
|
11140
|
-
function buildNetworkSnapshot$
|
|
11141
|
-
const resourceParams = createResourceParams$
|
|
11142
|
-
const request = createResourceRequest$
|
|
11091
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
11092
|
+
const resourceParams = createResourceParams$8(config);
|
|
11093
|
+
const request = createResourceRequest$8(resourceParams);
|
|
11143
11094
|
return luvio.dispatchResourceRequest(request, options)
|
|
11144
11095
|
.then((response) => {
|
|
11145
11096
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
11146
11097
|
const cache = new StoreKeyMap();
|
|
11147
|
-
getResponseCacheKeys$
|
|
11098
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
11148
11099
|
return cache;
|
|
11149
11100
|
});
|
|
11150
11101
|
}, (response) => {
|
|
@@ -11152,23 +11103,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
11152
11103
|
});
|
|
11153
11104
|
}
|
|
11154
11105
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
11155
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11106
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
11156
11107
|
}
|
|
11157
11108
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
11158
11109
|
const { luvio, config } = context;
|
|
11159
11110
|
const selector = {
|
|
11160
|
-
recordId: keyBuilder$
|
|
11111
|
+
recordId: keyBuilder$a(luvio, config),
|
|
11161
11112
|
node: adapterFragment$4(luvio, config),
|
|
11162
11113
|
variables: {},
|
|
11163
11114
|
};
|
|
11164
11115
|
const cacheSnapshot = storeLookup(selector, {
|
|
11165
11116
|
config,
|
|
11166
|
-
resolve: () => buildNetworkSnapshot$
|
|
11117
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
11167
11118
|
});
|
|
11168
11119
|
return cacheSnapshot;
|
|
11169
11120
|
}
|
|
11170
11121
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
11171
|
-
const config = validateAdapterConfig$
|
|
11122
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
11172
11123
|
// Invalid or incomplete config
|
|
11173
11124
|
if (config === null) {
|
|
11174
11125
|
return null;
|
|
@@ -11177,24 +11128,24 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
11177
11128
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
11178
11129
|
};
|
|
11179
11130
|
|
|
11180
|
-
function select$
|
|
11181
|
-
return select$
|
|
11131
|
+
function select$6(luvio, params) {
|
|
11132
|
+
return select$A();
|
|
11182
11133
|
}
|
|
11183
|
-
function keyBuilder$
|
|
11184
|
-
return keyBuilder$
|
|
11134
|
+
function keyBuilder$9(luvio, params) {
|
|
11135
|
+
return keyBuilder$v(luvio, {
|
|
11185
11136
|
name: params.urlParams.metricNameOrId
|
|
11186
11137
|
});
|
|
11187
11138
|
}
|
|
11188
|
-
function getResponseCacheKeys$
|
|
11139
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
11189
11140
|
getTypeCacheKeys$g(storeKeyMap, luvio, response);
|
|
11190
11141
|
}
|
|
11191
|
-
function ingestSuccess$
|
|
11142
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11192
11143
|
const { body } = response;
|
|
11193
|
-
const key = keyBuilder$
|
|
11144
|
+
const key = keyBuilder$9(luvio, resourceParams);
|
|
11194
11145
|
luvio.storeIngest(key, ingest$g, body);
|
|
11195
11146
|
const snapshot = luvio.storeLookup({
|
|
11196
11147
|
recordId: key,
|
|
11197
|
-
node: select$
|
|
11148
|
+
node: select$6(),
|
|
11198
11149
|
variables: {},
|
|
11199
11150
|
}, snapshotRefresh);
|
|
11200
11151
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11206,15 +11157,15 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11206
11157
|
return snapshot;
|
|
11207
11158
|
}
|
|
11208
11159
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
11209
|
-
const key = keyBuilder$
|
|
11160
|
+
const key = keyBuilder$9(luvio, params);
|
|
11210
11161
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11211
11162
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11212
11163
|
return errorSnapshot;
|
|
11213
11164
|
}
|
|
11214
|
-
function createResourceRequest$
|
|
11165
|
+
function createResourceRequest$7(config) {
|
|
11215
11166
|
const headers = {};
|
|
11216
11167
|
return {
|
|
11217
|
-
baseUri: '/services/data/
|
|
11168
|
+
baseUri: '/services/data/v64.0',
|
|
11218
11169
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricNameOrId + '',
|
|
11219
11170
|
method: 'get',
|
|
11220
11171
|
body: null,
|
|
@@ -11225,61 +11176,61 @@ function createResourceRequest$5(config) {
|
|
|
11225
11176
|
};
|
|
11226
11177
|
}
|
|
11227
11178
|
|
|
11228
|
-
const adapterName$
|
|
11179
|
+
const adapterName$7 = 'getSemanticMetric';
|
|
11229
11180
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
11230
11181
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11231
11182
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11232
11183
|
];
|
|
11233
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11234
|
-
const createResourceParams$
|
|
11235
|
-
function keyBuilder$
|
|
11236
|
-
const resourceParams = createResourceParams$
|
|
11237
|
-
return keyBuilder$
|
|
11184
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetric_ConfigPropertyMetadata);
|
|
11185
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getSemanticMetric_ConfigPropertyMetadata);
|
|
11186
|
+
function keyBuilder$8(luvio, config) {
|
|
11187
|
+
const resourceParams = createResourceParams$7(config);
|
|
11188
|
+
return keyBuilder$9(luvio, resourceParams);
|
|
11238
11189
|
}
|
|
11239
|
-
function typeCheckConfig$
|
|
11190
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
11240
11191
|
const config = {};
|
|
11241
|
-
typeCheckConfig$
|
|
11192
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
11242
11193
|
return config;
|
|
11243
11194
|
}
|
|
11244
|
-
function validateAdapterConfig$
|
|
11195
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
11245
11196
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11246
11197
|
return null;
|
|
11247
11198
|
}
|
|
11248
11199
|
if (process.env.NODE_ENV !== 'production') {
|
|
11249
11200
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11250
11201
|
}
|
|
11251
|
-
const config = typeCheckConfig$
|
|
11202
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
11252
11203
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11253
11204
|
return null;
|
|
11254
11205
|
}
|
|
11255
11206
|
return config;
|
|
11256
11207
|
}
|
|
11257
11208
|
function adapterFragment$3(luvio, config) {
|
|
11258
|
-
createResourceParams$
|
|
11259
|
-
return select$
|
|
11209
|
+
createResourceParams$7(config);
|
|
11210
|
+
return select$6();
|
|
11260
11211
|
}
|
|
11261
11212
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11262
|
-
const snapshot = ingestSuccess$
|
|
11213
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11263
11214
|
config,
|
|
11264
|
-
resolve: () => buildNetworkSnapshot$
|
|
11215
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11265
11216
|
});
|
|
11266
11217
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11267
11218
|
}
|
|
11268
11219
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11269
11220
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11270
11221
|
config,
|
|
11271
|
-
resolve: () => buildNetworkSnapshot$
|
|
11222
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11272
11223
|
});
|
|
11273
11224
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11274
11225
|
}
|
|
11275
|
-
function buildNetworkSnapshot$
|
|
11276
|
-
const resourceParams = createResourceParams$
|
|
11277
|
-
const request = createResourceRequest$
|
|
11226
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
11227
|
+
const resourceParams = createResourceParams$7(config);
|
|
11228
|
+
const request = createResourceRequest$7(resourceParams);
|
|
11278
11229
|
return luvio.dispatchResourceRequest(request, options)
|
|
11279
11230
|
.then((response) => {
|
|
11280
11231
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11281
11232
|
const cache = new StoreKeyMap();
|
|
11282
|
-
getResponseCacheKeys$
|
|
11233
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
11283
11234
|
return cache;
|
|
11284
11235
|
});
|
|
11285
11236
|
}, (response) => {
|
|
@@ -11287,23 +11238,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11287
11238
|
});
|
|
11288
11239
|
}
|
|
11289
11240
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11290
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11241
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
11291
11242
|
}
|
|
11292
11243
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11293
11244
|
const { luvio, config } = context;
|
|
11294
11245
|
const selector = {
|
|
11295
|
-
recordId: keyBuilder$
|
|
11246
|
+
recordId: keyBuilder$8(luvio, config),
|
|
11296
11247
|
node: adapterFragment$3(luvio, config),
|
|
11297
11248
|
variables: {},
|
|
11298
11249
|
};
|
|
11299
11250
|
const cacheSnapshot = storeLookup(selector, {
|
|
11300
11251
|
config,
|
|
11301
|
-
resolve: () => buildNetworkSnapshot$
|
|
11252
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
11302
11253
|
});
|
|
11303
11254
|
return cacheSnapshot;
|
|
11304
11255
|
}
|
|
11305
11256
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
11306
|
-
const config = validateAdapterConfig$
|
|
11257
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
11307
11258
|
// Invalid or incomplete config
|
|
11308
11259
|
if (config === null) {
|
|
11309
11260
|
return null;
|
|
@@ -11313,7 +11264,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11313
11264
|
};
|
|
11314
11265
|
|
|
11315
11266
|
const VERSION = "542f239a7dc422c67d6cdffb0ff866eb";
|
|
11316
|
-
function validate$
|
|
11267
|
+
function validate$3(obj, path = 'SemanticSubMetricCollectionOutputRepresentation') {
|
|
11317
11268
|
const v_error = (() => {
|
|
11318
11269
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11319
11270
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -11357,7 +11308,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11357
11308
|
}
|
|
11358
11309
|
return input;
|
|
11359
11310
|
}
|
|
11360
|
-
const select$
|
|
11311
|
+
const select$5 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11361
11312
|
return {
|
|
11362
11313
|
kind: 'Fragment',
|
|
11363
11314
|
version: VERSION,
|
|
@@ -11368,7 +11319,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11368
11319
|
kind: 'Link',
|
|
11369
11320
|
plural: true,
|
|
11370
11321
|
required: false,
|
|
11371
|
-
fragment: select$
|
|
11322
|
+
fragment: select$b()
|
|
11372
11323
|
}
|
|
11373
11324
|
]
|
|
11374
11325
|
};
|
|
@@ -11396,7 +11347,7 @@ function equals(existing, incoming) {
|
|
|
11396
11347
|
}
|
|
11397
11348
|
const ingest = function SemanticSubMetricCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
11398
11349
|
if (process.env.NODE_ENV !== 'production') {
|
|
11399
|
-
const validateError = validate$
|
|
11350
|
+
const validateError = validate$3(input);
|
|
11400
11351
|
if (validateError !== null) {
|
|
11401
11352
|
throw validateError;
|
|
11402
11353
|
}
|
|
@@ -11422,22 +11373,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11422
11373
|
}
|
|
11423
11374
|
}
|
|
11424
11375
|
|
|
11425
|
-
function select$
|
|
11426
|
-
return select$
|
|
11376
|
+
function select$4(luvio, params) {
|
|
11377
|
+
return select$5();
|
|
11427
11378
|
}
|
|
11428
|
-
function keyBuilder$
|
|
11379
|
+
function keyBuilder$7(luvio, params) {
|
|
11429
11380
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11430
11381
|
}
|
|
11431
|
-
function getResponseCacheKeys$
|
|
11432
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
11382
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
11383
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11433
11384
|
}
|
|
11434
|
-
function ingestSuccess$
|
|
11385
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11435
11386
|
const { body } = response;
|
|
11436
|
-
const key = keyBuilder$
|
|
11387
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
11437
11388
|
luvio.storeIngest(key, ingest, body);
|
|
11438
11389
|
const snapshot = luvio.storeLookup({
|
|
11439
11390
|
recordId: key,
|
|
11440
|
-
node: select$
|
|
11391
|
+
node: select$4(),
|
|
11441
11392
|
variables: {},
|
|
11442
11393
|
}, snapshotRefresh);
|
|
11443
11394
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11449,15 +11400,15 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11449
11400
|
return snapshot;
|
|
11450
11401
|
}
|
|
11451
11402
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
11452
|
-
const key = keyBuilder$
|
|
11403
|
+
const key = keyBuilder$7(luvio, params);
|
|
11453
11404
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11454
11405
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11455
11406
|
return errorSnapshot;
|
|
11456
11407
|
}
|
|
11457
|
-
function createResourceRequest$
|
|
11408
|
+
function createResourceRequest$6(config) {
|
|
11458
11409
|
const headers = {};
|
|
11459
11410
|
return {
|
|
11460
|
-
baseUri: '/services/data/
|
|
11411
|
+
baseUri: '/services/data/v64.0',
|
|
11461
11412
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11462
11413
|
method: 'get',
|
|
11463
11414
|
body: null,
|
|
@@ -11468,60 +11419,60 @@ function createResourceRequest$4(config) {
|
|
|
11468
11419
|
};
|
|
11469
11420
|
}
|
|
11470
11421
|
|
|
11471
|
-
const adapterName$
|
|
11422
|
+
const adapterName$6 = 'getSemanticSubMetrics';
|
|
11472
11423
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11473
11424
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11474
11425
|
];
|
|
11475
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11476
|
-
const createResourceParams$
|
|
11477
|
-
function keyBuilder$
|
|
11478
|
-
const resourceParams = createResourceParams$
|
|
11479
|
-
return keyBuilder$
|
|
11426
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11427
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11428
|
+
function keyBuilder$6(luvio, config) {
|
|
11429
|
+
const resourceParams = createResourceParams$6(config);
|
|
11430
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
11480
11431
|
}
|
|
11481
|
-
function typeCheckConfig$
|
|
11432
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
11482
11433
|
const config = {};
|
|
11483
|
-
typeCheckConfig$
|
|
11434
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11484
11435
|
return config;
|
|
11485
11436
|
}
|
|
11486
|
-
function validateAdapterConfig$
|
|
11437
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
11487
11438
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11488
11439
|
return null;
|
|
11489
11440
|
}
|
|
11490
11441
|
if (process.env.NODE_ENV !== 'production') {
|
|
11491
11442
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11492
11443
|
}
|
|
11493
|
-
const config = typeCheckConfig$
|
|
11444
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
11494
11445
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11495
11446
|
return null;
|
|
11496
11447
|
}
|
|
11497
11448
|
return config;
|
|
11498
11449
|
}
|
|
11499
11450
|
function adapterFragment$2(luvio, config) {
|
|
11500
|
-
createResourceParams$
|
|
11501
|
-
return select$
|
|
11451
|
+
createResourceParams$6(config);
|
|
11452
|
+
return select$4();
|
|
11502
11453
|
}
|
|
11503
11454
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11504
|
-
const snapshot = ingestSuccess$
|
|
11455
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11505
11456
|
config,
|
|
11506
|
-
resolve: () => buildNetworkSnapshot$
|
|
11457
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11507
11458
|
});
|
|
11508
11459
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11509
11460
|
}
|
|
11510
11461
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11511
11462
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11512
11463
|
config,
|
|
11513
|
-
resolve: () => buildNetworkSnapshot$
|
|
11464
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11514
11465
|
});
|
|
11515
11466
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11516
11467
|
}
|
|
11517
|
-
function buildNetworkSnapshot$
|
|
11518
|
-
const resourceParams = createResourceParams$
|
|
11519
|
-
const request = createResourceRequest$
|
|
11468
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
11469
|
+
const resourceParams = createResourceParams$6(config);
|
|
11470
|
+
const request = createResourceRequest$6(resourceParams);
|
|
11520
11471
|
return luvio.dispatchResourceRequest(request, options)
|
|
11521
11472
|
.then((response) => {
|
|
11522
11473
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11523
11474
|
const cache = new StoreKeyMap();
|
|
11524
|
-
getResponseCacheKeys$
|
|
11475
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
11525
11476
|
return cache;
|
|
11526
11477
|
});
|
|
11527
11478
|
}, (response) => {
|
|
@@ -11529,23 +11480,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11529
11480
|
});
|
|
11530
11481
|
}
|
|
11531
11482
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11532
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11483
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
11533
11484
|
}
|
|
11534
11485
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11535
11486
|
const { luvio, config } = context;
|
|
11536
11487
|
const selector = {
|
|
11537
|
-
recordId: keyBuilder$
|
|
11488
|
+
recordId: keyBuilder$6(luvio, config),
|
|
11538
11489
|
node: adapterFragment$2(luvio, config),
|
|
11539
11490
|
variables: {},
|
|
11540
11491
|
};
|
|
11541
11492
|
const cacheSnapshot = storeLookup(selector, {
|
|
11542
11493
|
config,
|
|
11543
|
-
resolve: () => buildNetworkSnapshot$
|
|
11494
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
11544
11495
|
});
|
|
11545
11496
|
return cacheSnapshot;
|
|
11546
11497
|
}
|
|
11547
11498
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11548
|
-
const config = validateAdapterConfig$
|
|
11499
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11549
11500
|
// Invalid or incomplete config
|
|
11550
11501
|
if (config === null) {
|
|
11551
11502
|
return null;
|
|
@@ -11554,36 +11505,52 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11554
11505
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
11555
11506
|
};
|
|
11556
11507
|
|
|
11557
|
-
function validate$
|
|
11508
|
+
function validate$2(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
11558
11509
|
const v_error = (() => {
|
|
11559
11510
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11560
11511
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11561
11512
|
}
|
|
11562
|
-
if (obj.
|
|
11563
|
-
const
|
|
11564
|
-
const
|
|
11565
|
-
if (typeof
|
|
11566
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
11513
|
+
if (obj.color !== undefined) {
|
|
11514
|
+
const obj_color = obj.color;
|
|
11515
|
+
const path_color = path + '.color';
|
|
11516
|
+
if (typeof obj_color !== 'string') {
|
|
11517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
11567
11518
|
}
|
|
11568
11519
|
}
|
|
11569
|
-
if (obj.
|
|
11570
|
-
const
|
|
11571
|
-
const
|
|
11572
|
-
if (typeof
|
|
11573
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
11520
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
11521
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
11522
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
11523
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
11524
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
11574
11525
|
}
|
|
11575
11526
|
}
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11527
|
+
if (obj.operator !== undefined) {
|
|
11528
|
+
const obj_operator = obj.operator;
|
|
11529
|
+
const path_operator = path + '.operator';
|
|
11530
|
+
if (typeof obj_operator !== 'string') {
|
|
11531
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
11532
|
+
}
|
|
11533
|
+
}
|
|
11534
|
+
if (obj.primary !== undefined) {
|
|
11535
|
+
const obj_primary = obj.primary;
|
|
11536
|
+
const path_primary = path + '.primary';
|
|
11537
|
+
if (typeof obj_primary !== 'boolean') {
|
|
11538
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
11539
|
+
}
|
|
11540
|
+
}
|
|
11541
|
+
if (obj.statusName !== undefined) {
|
|
11542
|
+
const obj_statusName = obj.statusName;
|
|
11543
|
+
const path_statusName = path + '.statusName';
|
|
11544
|
+
if (typeof obj_statusName !== 'string') {
|
|
11545
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
11546
|
+
}
|
|
11584
11547
|
}
|
|
11585
|
-
if (obj.
|
|
11586
|
-
obj.
|
|
11548
|
+
if (obj.value !== undefined) {
|
|
11549
|
+
const obj_value = obj.value;
|
|
11550
|
+
const path_value = path + '.value';
|
|
11551
|
+
if (typeof obj_value !== 'string') {
|
|
11552
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
11553
|
+
}
|
|
11587
11554
|
}
|
|
11588
11555
|
})();
|
|
11589
11556
|
return v_error === undefined ? null : v_error;
|
|
@@ -11594,31 +11561,28 @@ function validate$1(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
11594
11561
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
11595
11562
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
11596
11563
|
}
|
|
11597
|
-
if (obj.
|
|
11598
|
-
const
|
|
11599
|
-
const
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
let message = 'Object doesn\'t match SemanticGoalValueInputRepresentation (at "' + path_value + '")\n';
|
|
11620
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11621
|
-
return new TypeError(message);
|
|
11564
|
+
if (obj.forecasting !== undefined) {
|
|
11565
|
+
const obj_forecasting = obj.forecasting;
|
|
11566
|
+
const path_forecasting = path + '.forecasting';
|
|
11567
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
11568
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
11569
|
+
}
|
|
11570
|
+
}
|
|
11571
|
+
if (obj.statusConditions !== undefined) {
|
|
11572
|
+
const obj_statusConditions = obj.statusConditions;
|
|
11573
|
+
const path_statusConditions = path + '.statusConditions';
|
|
11574
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
11575
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
11576
|
+
}
|
|
11577
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
11578
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
11579
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
11580
|
+
const referencepath_statusConditions_itemValidationError = validate$2(obj_statusConditions_item, path_statusConditions_item);
|
|
11581
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
11582
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
11583
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
11584
|
+
return new TypeError(message);
|
|
11585
|
+
}
|
|
11622
11586
|
}
|
|
11623
11587
|
}
|
|
11624
11588
|
})();
|
|
@@ -11655,19 +11619,19 @@ function validate(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
11655
11619
|
return v_error === undefined ? null : v_error;
|
|
11656
11620
|
}
|
|
11657
11621
|
|
|
11658
|
-
function select$
|
|
11659
|
-
return select$
|
|
11622
|
+
function select$3(luvio, params) {
|
|
11623
|
+
return select$b();
|
|
11660
11624
|
}
|
|
11661
|
-
function getResponseCacheKeys$
|
|
11625
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11662
11626
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11663
11627
|
}
|
|
11664
|
-
function ingestSuccess$
|
|
11628
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
11665
11629
|
const { body } = response;
|
|
11666
11630
|
const key = keyBuilderFromType(luvio, body);
|
|
11667
11631
|
luvio.storeIngest(key, ingest$3, body);
|
|
11668
11632
|
const snapshot = luvio.storeLookup({
|
|
11669
11633
|
recordId: key,
|
|
11670
|
-
node: select$
|
|
11634
|
+
node: select$3(),
|
|
11671
11635
|
variables: {},
|
|
11672
11636
|
});
|
|
11673
11637
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11678,10 +11642,10 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
11678
11642
|
deepFreeze(snapshot.data);
|
|
11679
11643
|
return snapshot;
|
|
11680
11644
|
}
|
|
11681
|
-
function createResourceRequest$
|
|
11645
|
+
function createResourceRequest$5(config) {
|
|
11682
11646
|
const headers = {};
|
|
11683
11647
|
return {
|
|
11684
|
-
baseUri: '/services/data/
|
|
11648
|
+
baseUri: '/services/data/v64.0',
|
|
11685
11649
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11686
11650
|
method: 'post',
|
|
11687
11651
|
body: config.body,
|
|
@@ -11692,7 +11656,7 @@ function createResourceRequest$3(config) {
|
|
|
11692
11656
|
};
|
|
11693
11657
|
}
|
|
11694
11658
|
|
|
11695
|
-
const adapterName$
|
|
11659
|
+
const adapterName$5 = 'createSemanticSubMetric';
|
|
11696
11660
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11697
11661
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11698
11662
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -11704,17 +11668,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11704
11668
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
11705
11669
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11706
11670
|
];
|
|
11707
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11708
|
-
const createResourceParams$
|
|
11709
|
-
function typeCheckConfig$
|
|
11671
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11672
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11673
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11710
11674
|
const config = {};
|
|
11711
|
-
typeCheckConfig$
|
|
11675
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
11712
11676
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
11713
11677
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
11714
11678
|
const untrustedConfig_filters_array = [];
|
|
11715
11679
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
11716
11680
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
11717
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
11681
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$M(untrustedConfig_filters_item);
|
|
11718
11682
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
11719
11683
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
11720
11684
|
}
|
|
@@ -11733,30 +11697,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
11733
11697
|
}
|
|
11734
11698
|
return config;
|
|
11735
11699
|
}
|
|
11736
|
-
function validateAdapterConfig$
|
|
11700
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11737
11701
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11738
11702
|
return null;
|
|
11739
11703
|
}
|
|
11740
11704
|
if (process.env.NODE_ENV !== 'production') {
|
|
11741
11705
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11742
11706
|
}
|
|
11743
|
-
const config = typeCheckConfig$
|
|
11707
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11744
11708
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11745
11709
|
return null;
|
|
11746
11710
|
}
|
|
11747
11711
|
return config;
|
|
11748
11712
|
}
|
|
11749
|
-
function buildNetworkSnapshot$
|
|
11750
|
-
const resourceParams = createResourceParams$
|
|
11751
|
-
const request = createResourceRequest$
|
|
11713
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
11714
|
+
const resourceParams = createResourceParams$5(config);
|
|
11715
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11752
11716
|
return luvio.dispatchResourceRequest(request, options)
|
|
11753
11717
|
.then((response) => {
|
|
11754
11718
|
return luvio.handleSuccessResponse(() => {
|
|
11755
|
-
const snapshot = ingestSuccess$
|
|
11719
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
11756
11720
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11757
11721
|
}, () => {
|
|
11758
11722
|
const cache = new StoreKeyMap();
|
|
11759
|
-
getResponseCacheKeys$
|
|
11723
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11760
11724
|
return cache;
|
|
11761
11725
|
});
|
|
11762
11726
|
}, (response) => {
|
|
@@ -11766,36 +11730,36 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11766
11730
|
}
|
|
11767
11731
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11768
11732
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
11769
|
-
const config = validateAdapterConfig$
|
|
11733
|
+
const config = validateAdapterConfig$5(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
11770
11734
|
// Invalid or incomplete config
|
|
11771
11735
|
if (config === null) {
|
|
11772
11736
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
11773
11737
|
}
|
|
11774
|
-
return buildNetworkSnapshot$
|
|
11738
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
11775
11739
|
};
|
|
11776
11740
|
};
|
|
11777
11741
|
|
|
11778
|
-
function keyBuilder$
|
|
11779
|
-
return keyBuilder$
|
|
11742
|
+
function keyBuilder$5(luvio, params) {
|
|
11743
|
+
return keyBuilder$e(luvio, {
|
|
11780
11744
|
name: params.urlParams.subMetricNameOrId
|
|
11781
11745
|
});
|
|
11782
11746
|
}
|
|
11783
|
-
function getResponseCacheKeys$
|
|
11784
|
-
const key = keyBuilder$
|
|
11747
|
+
function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
|
|
11748
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11785
11749
|
cacheKeyMap.set(key, {
|
|
11786
11750
|
namespace: keyPrefix,
|
|
11787
11751
|
representationName: RepresentationType$3,
|
|
11788
11752
|
mergeable: false
|
|
11789
11753
|
});
|
|
11790
11754
|
}
|
|
11791
|
-
function evictSuccess(luvio, resourceParams) {
|
|
11792
|
-
const key = keyBuilder$
|
|
11755
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
11756
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
11793
11757
|
luvio.storeEvict(key);
|
|
11794
11758
|
}
|
|
11795
|
-
function createResourceRequest$
|
|
11759
|
+
function createResourceRequest$4(config) {
|
|
11796
11760
|
const headers = {};
|
|
11797
11761
|
return {
|
|
11798
|
-
baseUri: '/services/data/
|
|
11762
|
+
baseUri: '/services/data/v64.0',
|
|
11799
11763
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11800
11764
|
method: 'delete',
|
|
11801
11765
|
body: null,
|
|
@@ -11806,42 +11770,42 @@ function createResourceRequest$2(config) {
|
|
|
11806
11770
|
};
|
|
11807
11771
|
}
|
|
11808
11772
|
|
|
11809
|
-
const adapterName$
|
|
11773
|
+
const adapterName$4 = 'deleteSemanticSubMetric';
|
|
11810
11774
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11811
11775
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11812
11776
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11813
11777
|
];
|
|
11814
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11815
|
-
const createResourceParams$
|
|
11816
|
-
function typeCheckConfig$
|
|
11778
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11779
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11780
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11817
11781
|
const config = {};
|
|
11818
|
-
typeCheckConfig$
|
|
11782
|
+
typeCheckConfig$f(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
11819
11783
|
return config;
|
|
11820
11784
|
}
|
|
11821
|
-
function validateAdapterConfig$
|
|
11785
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11822
11786
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11823
11787
|
return null;
|
|
11824
11788
|
}
|
|
11825
11789
|
if (process.env.NODE_ENV !== 'production') {
|
|
11826
11790
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11827
11791
|
}
|
|
11828
|
-
const config = typeCheckConfig$
|
|
11792
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11829
11793
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11830
11794
|
return null;
|
|
11831
11795
|
}
|
|
11832
11796
|
return config;
|
|
11833
11797
|
}
|
|
11834
|
-
function buildNetworkSnapshot$
|
|
11835
|
-
const resourceParams = createResourceParams$
|
|
11836
|
-
const request = createResourceRequest$
|
|
11798
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
11799
|
+
const resourceParams = createResourceParams$4(config);
|
|
11800
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11837
11801
|
return luvio.dispatchResourceRequest(request, options)
|
|
11838
11802
|
.then(() => {
|
|
11839
11803
|
return luvio.handleSuccessResponse(() => {
|
|
11840
|
-
evictSuccess(luvio, resourceParams);
|
|
11804
|
+
evictSuccess$1(luvio, resourceParams);
|
|
11841
11805
|
return luvio.storeBroadcast();
|
|
11842
11806
|
}, () => {
|
|
11843
11807
|
const cache = new StoreKeyMap();
|
|
11844
|
-
getResponseCacheKeys$
|
|
11808
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams);
|
|
11845
11809
|
return cache;
|
|
11846
11810
|
});
|
|
11847
11811
|
}, (response) => {
|
|
@@ -11851,33 +11815,33 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11851
11815
|
}
|
|
11852
11816
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
11853
11817
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
11854
|
-
const config = validateAdapterConfig$
|
|
11818
|
+
const config = validateAdapterConfig$4(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
11855
11819
|
// Invalid or incomplete config
|
|
11856
11820
|
if (config === null) {
|
|
11857
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
11821
|
+
throw new Error(`Invalid config for "${adapterName$4}"`);
|
|
11858
11822
|
}
|
|
11859
|
-
return buildNetworkSnapshot$
|
|
11823
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
11860
11824
|
};
|
|
11861
11825
|
};
|
|
11862
11826
|
|
|
11863
|
-
function select$
|
|
11864
|
-
return select$
|
|
11827
|
+
function select$2(luvio, params) {
|
|
11828
|
+
return select$b();
|
|
11865
11829
|
}
|
|
11866
|
-
function keyBuilder$
|
|
11867
|
-
return keyBuilder$
|
|
11830
|
+
function keyBuilder$4(luvio, params) {
|
|
11831
|
+
return keyBuilder$e(luvio, {
|
|
11868
11832
|
name: params.urlParams.subMetricNameOrId
|
|
11869
11833
|
});
|
|
11870
11834
|
}
|
|
11871
|
-
function getResponseCacheKeys$
|
|
11835
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11872
11836
|
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
11873
11837
|
}
|
|
11874
|
-
function ingestSuccess$
|
|
11838
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11875
11839
|
const { body } = response;
|
|
11876
|
-
const key = keyBuilder$
|
|
11840
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
11877
11841
|
luvio.storeIngest(key, ingest$3, body);
|
|
11878
11842
|
const snapshot = luvio.storeLookup({
|
|
11879
11843
|
recordId: key,
|
|
11880
|
-
node: select$
|
|
11844
|
+
node: select$2(),
|
|
11881
11845
|
variables: {},
|
|
11882
11846
|
}, snapshotRefresh);
|
|
11883
11847
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11889,15 +11853,15 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
11889
11853
|
return snapshot;
|
|
11890
11854
|
}
|
|
11891
11855
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
11892
|
-
const key = keyBuilder$
|
|
11856
|
+
const key = keyBuilder$4(luvio, params);
|
|
11893
11857
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
11894
11858
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11895
11859
|
return errorSnapshot;
|
|
11896
11860
|
}
|
|
11897
|
-
function createResourceRequest$
|
|
11861
|
+
function createResourceRequest$3(config) {
|
|
11898
11862
|
const headers = {};
|
|
11899
11863
|
return {
|
|
11900
|
-
baseUri: '/services/data/
|
|
11864
|
+
baseUri: '/services/data/v64.0',
|
|
11901
11865
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11902
11866
|
method: 'get',
|
|
11903
11867
|
body: null,
|
|
@@ -11908,61 +11872,61 @@ function createResourceRequest$1(config) {
|
|
|
11908
11872
|
};
|
|
11909
11873
|
}
|
|
11910
11874
|
|
|
11911
|
-
const adapterName$
|
|
11875
|
+
const adapterName$3 = 'getSemanticSubMetric';
|
|
11912
11876
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11913
11877
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11914
11878
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11915
11879
|
];
|
|
11916
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11917
|
-
const createResourceParams$
|
|
11918
|
-
function keyBuilder$
|
|
11919
|
-
const resourceParams = createResourceParams$
|
|
11920
|
-
return keyBuilder$
|
|
11880
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11881
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11882
|
+
function keyBuilder$3(luvio, config) {
|
|
11883
|
+
const resourceParams = createResourceParams$3(config);
|
|
11884
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
11921
11885
|
}
|
|
11922
|
-
function typeCheckConfig$
|
|
11886
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11923
11887
|
const config = {};
|
|
11924
|
-
typeCheckConfig$
|
|
11888
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11925
11889
|
return config;
|
|
11926
11890
|
}
|
|
11927
|
-
function validateAdapterConfig$
|
|
11891
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11928
11892
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11929
11893
|
return null;
|
|
11930
11894
|
}
|
|
11931
11895
|
if (process.env.NODE_ENV !== 'production') {
|
|
11932
11896
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11933
11897
|
}
|
|
11934
|
-
const config = typeCheckConfig$
|
|
11898
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11935
11899
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11936
11900
|
return null;
|
|
11937
11901
|
}
|
|
11938
11902
|
return config;
|
|
11939
11903
|
}
|
|
11940
11904
|
function adapterFragment$1(luvio, config) {
|
|
11941
|
-
createResourceParams$
|
|
11942
|
-
return select$
|
|
11905
|
+
createResourceParams$3(config);
|
|
11906
|
+
return select$2();
|
|
11943
11907
|
}
|
|
11944
11908
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11945
|
-
const snapshot = ingestSuccess$
|
|
11909
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11946
11910
|
config,
|
|
11947
|
-
resolve: () => buildNetworkSnapshot$
|
|
11911
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11948
11912
|
});
|
|
11949
11913
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11950
11914
|
}
|
|
11951
11915
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11952
11916
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11953
11917
|
config,
|
|
11954
|
-
resolve: () => buildNetworkSnapshot$
|
|
11918
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11955
11919
|
});
|
|
11956
11920
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11957
11921
|
}
|
|
11958
|
-
function buildNetworkSnapshot$
|
|
11959
|
-
const resourceParams = createResourceParams$
|
|
11960
|
-
const request = createResourceRequest$
|
|
11922
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
11923
|
+
const resourceParams = createResourceParams$3(config);
|
|
11924
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11961
11925
|
return luvio.dispatchResourceRequest(request, options)
|
|
11962
11926
|
.then((response) => {
|
|
11963
11927
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11964
11928
|
const cache = new StoreKeyMap();
|
|
11965
|
-
getResponseCacheKeys$
|
|
11929
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11966
11930
|
return cache;
|
|
11967
11931
|
});
|
|
11968
11932
|
}, (response) => {
|
|
@@ -11970,23 +11934,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
11970
11934
|
});
|
|
11971
11935
|
}
|
|
11972
11936
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11973
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11937
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11974
11938
|
}
|
|
11975
11939
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11976
11940
|
const { luvio, config } = context;
|
|
11977
11941
|
const selector = {
|
|
11978
|
-
recordId: keyBuilder$
|
|
11942
|
+
recordId: keyBuilder$3(luvio, config),
|
|
11979
11943
|
node: adapterFragment$1(luvio, config),
|
|
11980
11944
|
variables: {},
|
|
11981
11945
|
};
|
|
11982
11946
|
const cacheSnapshot = storeLookup(selector, {
|
|
11983
11947
|
config,
|
|
11984
|
-
resolve: () => buildNetworkSnapshot$
|
|
11948
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11985
11949
|
});
|
|
11986
11950
|
return cacheSnapshot;
|
|
11987
11951
|
}
|
|
11988
11952
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11989
|
-
const config = validateAdapterConfig$
|
|
11953
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11990
11954
|
// Invalid or incomplete config
|
|
11991
11955
|
if (config === null) {
|
|
11992
11956
|
return null;
|
|
@@ -11995,8 +11959,198 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11995
11959
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11996
11960
|
};
|
|
11997
11961
|
|
|
11962
|
+
function keyBuilder$2(luvio, params) {
|
|
11963
|
+
return keyBuilder$e(luvio, {
|
|
11964
|
+
name: params.urlParams.subMetricNameOrId
|
|
11965
|
+
});
|
|
11966
|
+
}
|
|
11967
|
+
function getResponseCacheKeys$2(cacheKeyMap, luvio, resourceParams) {
|
|
11968
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
11969
|
+
cacheKeyMap.set(key, {
|
|
11970
|
+
namespace: keyPrefix,
|
|
11971
|
+
representationName: RepresentationType$3,
|
|
11972
|
+
mergeable: false
|
|
11973
|
+
});
|
|
11974
|
+
}
|
|
11975
|
+
function evictSuccess(luvio, resourceParams) {
|
|
11976
|
+
const key = keyBuilder$2(luvio, resourceParams);
|
|
11977
|
+
luvio.storeEvict(key);
|
|
11978
|
+
}
|
|
11979
|
+
function createResourceRequest$2(config) {
|
|
11980
|
+
const headers = {};
|
|
11981
|
+
return {
|
|
11982
|
+
baseUri: '/services/data/v64.0',
|
|
11983
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
11984
|
+
method: 'delete',
|
|
11985
|
+
body: null,
|
|
11986
|
+
urlParams: config.urlParams,
|
|
11987
|
+
queryParams: {},
|
|
11988
|
+
headers,
|
|
11989
|
+
priority: 'normal',
|
|
11990
|
+
};
|
|
11991
|
+
}
|
|
11992
|
+
|
|
11993
|
+
const adapterName$2 = 'deleteGoalFromSubMetric';
|
|
11994
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
11995
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11996
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11997
|
+
];
|
|
11998
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
11999
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12000
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
12001
|
+
const config = {};
|
|
12002
|
+
typeCheckConfig$f(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
12003
|
+
return config;
|
|
12004
|
+
}
|
|
12005
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
12006
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12007
|
+
return null;
|
|
12008
|
+
}
|
|
12009
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12010
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12011
|
+
}
|
|
12012
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
12013
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12014
|
+
return null;
|
|
12015
|
+
}
|
|
12016
|
+
return config;
|
|
12017
|
+
}
|
|
12018
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12019
|
+
const resourceParams = createResourceParams$2(config);
|
|
12020
|
+
const request = createResourceRequest$2(resourceParams);
|
|
12021
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12022
|
+
.then(() => {
|
|
12023
|
+
return luvio.handleSuccessResponse(() => {
|
|
12024
|
+
evictSuccess(luvio, resourceParams);
|
|
12025
|
+
return luvio.storeBroadcast();
|
|
12026
|
+
}, () => {
|
|
12027
|
+
const cache = new StoreKeyMap();
|
|
12028
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams);
|
|
12029
|
+
return cache;
|
|
12030
|
+
});
|
|
12031
|
+
}, (response) => {
|
|
12032
|
+
deepFreeze(response);
|
|
12033
|
+
throw response;
|
|
12034
|
+
});
|
|
12035
|
+
}
|
|
12036
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
12037
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
12038
|
+
const config = validateAdapterConfig$2(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
12039
|
+
// Invalid or incomplete config
|
|
12040
|
+
if (config === null) {
|
|
12041
|
+
throw new Error(`Invalid config for "${adapterName$2}"`);
|
|
12042
|
+
}
|
|
12043
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
12044
|
+
};
|
|
12045
|
+
};
|
|
12046
|
+
|
|
12047
|
+
function select$1(luvio, params) {
|
|
12048
|
+
return select$b();
|
|
12049
|
+
}
|
|
12050
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12051
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
12052
|
+
}
|
|
12053
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12054
|
+
const { body } = response;
|
|
12055
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12056
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
12057
|
+
const snapshot = luvio.storeLookup({
|
|
12058
|
+
recordId: key,
|
|
12059
|
+
node: select$1(),
|
|
12060
|
+
variables: {},
|
|
12061
|
+
});
|
|
12062
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12063
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12064
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12065
|
+
}
|
|
12066
|
+
}
|
|
12067
|
+
deepFreeze(snapshot.data);
|
|
12068
|
+
return snapshot;
|
|
12069
|
+
}
|
|
12070
|
+
function createResourceRequest$1(config) {
|
|
12071
|
+
const headers = {};
|
|
12072
|
+
return {
|
|
12073
|
+
baseUri: '/services/data/v64.0',
|
|
12074
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12075
|
+
method: 'patch',
|
|
12076
|
+
body: config.body,
|
|
12077
|
+
urlParams: config.urlParams,
|
|
12078
|
+
queryParams: {},
|
|
12079
|
+
headers,
|
|
12080
|
+
priority: 'normal',
|
|
12081
|
+
};
|
|
12082
|
+
}
|
|
12083
|
+
|
|
12084
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12085
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12086
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12087
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12088
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
12089
|
+
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12090
|
+
];
|
|
12091
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12092
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12093
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12094
|
+
const config = {};
|
|
12095
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12096
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12097
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12098
|
+
const untrustedConfig_statusConditions_array = [];
|
|
12099
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12100
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12101
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$2(untrustedConfig_statusConditions_item);
|
|
12102
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12103
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12104
|
+
}
|
|
12105
|
+
}
|
|
12106
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
12107
|
+
}
|
|
12108
|
+
return config;
|
|
12109
|
+
}
|
|
12110
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12111
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12112
|
+
return null;
|
|
12113
|
+
}
|
|
12114
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12115
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12116
|
+
}
|
|
12117
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12118
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12119
|
+
return null;
|
|
12120
|
+
}
|
|
12121
|
+
return config;
|
|
12122
|
+
}
|
|
12123
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12124
|
+
const resourceParams = createResourceParams$1(config);
|
|
12125
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12126
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12127
|
+
.then((response) => {
|
|
12128
|
+
return luvio.handleSuccessResponse(() => {
|
|
12129
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12130
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12131
|
+
}, () => {
|
|
12132
|
+
const cache = new StoreKeyMap();
|
|
12133
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12134
|
+
return cache;
|
|
12135
|
+
});
|
|
12136
|
+
}, (response) => {
|
|
12137
|
+
deepFreeze(response);
|
|
12138
|
+
throw response;
|
|
12139
|
+
});
|
|
12140
|
+
}
|
|
12141
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12142
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12143
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12144
|
+
// Invalid or incomplete config
|
|
12145
|
+
if (config === null) {
|
|
12146
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12147
|
+
}
|
|
12148
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12149
|
+
};
|
|
12150
|
+
};
|
|
12151
|
+
|
|
11998
12152
|
function select(luvio, params) {
|
|
11999
|
-
return select$
|
|
12153
|
+
return select$5();
|
|
12000
12154
|
}
|
|
12001
12155
|
function keyBuilder$1(luvio, params) {
|
|
12002
12156
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
@@ -12030,7 +12184,7 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
12030
12184
|
function createResourceRequest(config) {
|
|
12031
12185
|
const headers = {};
|
|
12032
12186
|
return {
|
|
12033
|
-
baseUri: '/services/data/
|
|
12187
|
+
baseUri: '/services/data/v64.0',
|
|
12034
12188
|
basePath: '/ssot/semantic/sub-metrics/' + config.urlParams.subMetricIds + '',
|
|
12035
12189
|
method: 'get',
|
|
12036
12190
|
body: null,
|
|
@@ -12046,14 +12200,14 @@ const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
|
12046
12200
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12047
12201
|
];
|
|
12048
12202
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12049
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12203
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12050
12204
|
function keyBuilder(luvio, config) {
|
|
12051
12205
|
const resourceParams = createResourceParams(config);
|
|
12052
12206
|
return keyBuilder$1(luvio, resourceParams);
|
|
12053
12207
|
}
|
|
12054
12208
|
function typeCheckConfig(untrustedConfig) {
|
|
12055
12209
|
const config = {};
|
|
12056
|
-
typeCheckConfig$
|
|
12210
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12057
12211
|
return config;
|
|
12058
12212
|
}
|
|
12059
12213
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -12127,4 +12281,4 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12127
12281
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12128
12282
|
};
|
|
12129
12283
|
|
|
12130
|
-
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticModelAdapterFactory };
|
|
12284
|
+
export { createSemanticModelAdapterFactory, createSemanticSubMetricAdapterFactory, deleteGoalFromSubMetricAdapterFactory, deleteSemanticSubMetricAdapterFactory, getSemanticMetricAdapterFactory, getSemanticMetricsAdapterFactory, getSemanticMetricsByIdsAdapterFactory, getSemanticMetricsToSubMetricsAdapterFactory, getSemanticModelAdapterFactory, getSemanticModelsAdapterFactory, getSemanticSubMetricAdapterFactory, getSemanticSubMetricsAdapterFactory, getSemanticSubMetricsByIdAdapterFactory, patchSemanticMetricGoalAdapterFactory, patchSemanticModelAdapterFactory };
|