@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
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$f, typeCheckConfig as typeCheckConfig$f, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -102,7 +102,7 @@ function createLink(ref) {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
function validate
|
|
105
|
+
function validate$Y(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
106
106
|
const v_error = (() => {
|
|
107
107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
108
108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -118,7 +118,7 @@ function validate$$(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
118
118
|
return v_error === undefined ? null : v_error;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
function validate$
|
|
121
|
+
function validate$X(obj, path = 'SemanticFilterInputRepresentation') {
|
|
122
122
|
const v_error = (() => {
|
|
123
123
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
124
124
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -148,7 +148,7 @@ function validate$_(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
148
148
|
return v_error === undefined ? null : v_error;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
function validate$
|
|
151
|
+
function validate$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation') {
|
|
152
152
|
const v_error = (() => {
|
|
153
153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
154
154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -211,7 +211,7 @@ function validate$Z(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
211
211
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
212
212
|
const obj_filters_item = obj_filters[i];
|
|
213
213
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
214
|
-
const referencepath_filters_itemValidationError = validate$
|
|
214
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
215
215
|
if (referencepath_filters_itemValidationError !== null) {
|
|
216
216
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
217
217
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -258,7 +258,7 @@ function validate$Z(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
258
258
|
return v_error === undefined ? null : v_error;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function validate$
|
|
261
|
+
function validate$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentation') {
|
|
262
262
|
const v_error = (() => {
|
|
263
263
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
264
264
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -335,7 +335,7 @@ function validate$Y(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
335
335
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
336
336
|
const obj_filters_item = obj_filters[i];
|
|
337
337
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
338
|
-
const referencepath_filters_itemValidationError = validate$
|
|
338
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
339
339
|
if (referencepath_filters_itemValidationError !== null) {
|
|
340
340
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
341
341
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -403,7 +403,7 @@ function validate$Y(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
403
403
|
return v_error === undefined ? null : v_error;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
function validate$
|
|
406
|
+
function validate$U(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
407
407
|
const v_error = (() => {
|
|
408
408
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
409
409
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -482,7 +482,7 @@ function validate$X(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
482
482
|
return v_error === undefined ? null : v_error;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
function validate$
|
|
485
|
+
function validate$T(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
486
486
|
const v_error = (() => {
|
|
487
487
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
488
488
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -589,7 +589,7 @@ function validate$W(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
589
589
|
return v_error === undefined ? null : v_error;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
593
593
|
const v_error = (() => {
|
|
594
594
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
595
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -638,7 +638,7 @@ function validate$V(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
638
638
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
639
639
|
const obj_filters_item = obj_filters[i];
|
|
640
640
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
641
|
-
const referencepath_filters_itemValidationError = validate$
|
|
641
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
642
642
|
if (referencepath_filters_itemValidationError !== null) {
|
|
643
643
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
644
644
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -669,7 +669,7 @@ function validate$V(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
669
669
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
670
670
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
671
671
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
672
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
672
|
+
const referencepath_semanticDimensions_itemValidationError = validate$U(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
673
673
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
674
674
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
675
675
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -686,7 +686,7 @@ function validate$V(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
686
686
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
687
687
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
688
688
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
689
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
689
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$T(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
690
690
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
691
691
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
692
692
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -705,7 +705,7 @@ function validate$V(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
705
705
|
return v_error === undefined ? null : v_error;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
function validate$
|
|
708
|
+
function validate$R(obj, path = 'BinDimensionConfigurationInputRepresentation') {
|
|
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 + '")');
|
|
@@ -717,7 +717,7 @@ function validate$U(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
717
717
|
return v_error === undefined ? null : v_error;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
function validate$
|
|
720
|
+
function validate$Q(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
721
721
|
const v_error = (() => {
|
|
722
722
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
723
723
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -747,7 +747,7 @@ function validate$T(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
747
747
|
return v_error === undefined ? null : v_error;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
function validate$
|
|
750
|
+
function validate$P(obj, path = 'GroupDimensionConfigurationInputRepresentation') {
|
|
751
751
|
const v_error = (() => {
|
|
752
752
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
753
753
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -761,7 +761,7 @@ function validate$S(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
761
761
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
762
762
|
const obj_groups_item = obj_groups[i];
|
|
763
763
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
764
|
-
const referencepath_groups_itemValidationError = validate$
|
|
764
|
+
const referencepath_groups_itemValidationError = validate$Q(obj_groups_item, path_groups_item);
|
|
765
765
|
if (referencepath_groups_itemValidationError !== null) {
|
|
766
766
|
let message = 'Object doesn\'t match GroupDimensionGroupInputRepresentation (at "' + path_groups_item + '")\n';
|
|
767
767
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -780,7 +780,7 @@ function validate$S(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
780
780
|
return v_error === undefined ? null : v_error;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
function validate$
|
|
783
|
+
function validate$O(obj, path = 'SemanticGroupingConfigurationInputRepresentation') {
|
|
784
784
|
const v_error = (() => {
|
|
785
785
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
786
786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -788,7 +788,7 @@ function validate$R(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
788
788
|
if (obj.binDimension !== undefined) {
|
|
789
789
|
const obj_binDimension = obj.binDimension;
|
|
790
790
|
const path_binDimension = path + '.binDimension';
|
|
791
|
-
const referencepath_binDimensionValidationError = validate$
|
|
791
|
+
const referencepath_binDimensionValidationError = validate$R(obj_binDimension, path_binDimension);
|
|
792
792
|
if (referencepath_binDimensionValidationError !== null) {
|
|
793
793
|
let message = 'Object doesn\'t match BinDimensionConfigurationInputRepresentation (at "' + path_binDimension + '")\n';
|
|
794
794
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -798,7 +798,7 @@ function validate$R(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
798
798
|
if (obj.groupDimension !== undefined) {
|
|
799
799
|
const obj_groupDimension = obj.groupDimension;
|
|
800
800
|
const path_groupDimension = path + '.groupDimension';
|
|
801
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
801
|
+
const referencepath_groupDimensionValidationError = validate$P(obj_groupDimension, path_groupDimension);
|
|
802
802
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
803
803
|
let message = 'Object doesn\'t match GroupDimensionConfigurationInputRepresentation (at "' + path_groupDimension + '")\n';
|
|
804
804
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -809,7 +809,7 @@ function validate$R(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
809
809
|
return v_error === undefined ? null : v_error;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
function validate$
|
|
812
|
+
function validate$N(obj, path = 'SemanticTableFieldReferenceInputRepresentation') {
|
|
813
813
|
const v_error = (() => {
|
|
814
814
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
815
815
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -832,7 +832,7 @@ function validate$Q(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
832
832
|
return v_error === undefined ? null : v_error;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
-
function validate$
|
|
835
|
+
function validate$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
836
836
|
const v_error = (() => {
|
|
837
837
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
838
838
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -847,7 +847,7 @@ function validate$P(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
847
847
|
if (obj.tableFieldReference !== undefined) {
|
|
848
848
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
849
849
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
850
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
850
|
+
const referencepath_tableFieldReferenceValidationError = validate$N(obj_tableFieldReference, path_tableFieldReference);
|
|
851
851
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
852
852
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
853
853
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -858,7 +858,7 @@ function validate$P(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
858
858
|
return v_error === undefined ? null : v_error;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
function validate$
|
|
861
|
+
function validate$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
862
862
|
const v_error = (() => {
|
|
863
863
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
864
864
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -873,7 +873,7 @@ function validate$O(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
873
873
|
if (obj.configuration !== undefined) {
|
|
874
874
|
const obj_configuration = obj.configuration;
|
|
875
875
|
const path_configuration = path + '.configuration';
|
|
876
|
-
const referencepath_configurationValidationError = validate$
|
|
876
|
+
const referencepath_configurationValidationError = validate$O(obj_configuration, path_configuration);
|
|
877
877
|
if (referencepath_configurationValidationError !== null) {
|
|
878
878
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationInputRepresentation (at "' + path_configuration + '")\n';
|
|
879
879
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -890,7 +890,7 @@ function validate$O(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
890
890
|
if (obj.fieldReference !== undefined) {
|
|
891
891
|
const obj_fieldReference = obj.fieldReference;
|
|
892
892
|
const path_fieldReference = path + '.fieldReference';
|
|
893
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
893
|
+
const referencepath_fieldReferenceValidationError = validate$M(obj_fieldReference, path_fieldReference);
|
|
894
894
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
895
895
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_fieldReference + '")\n';
|
|
896
896
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -915,7 +915,7 @@ function validate$O(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
915
915
|
return v_error === undefined ? null : v_error;
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
function validate$
|
|
918
|
+
function validate$K(obj, path = 'SemanticRelationshipCriteriaInputRepresentation') {
|
|
919
919
|
const v_error = (() => {
|
|
920
920
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
921
921
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -959,7 +959,7 @@ function validate$N(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
959
959
|
return v_error === undefined ? null : v_error;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
function validate$
|
|
962
|
+
function validate$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
963
963
|
const v_error = (() => {
|
|
964
964
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
965
965
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -987,7 +987,7 @@ function validate$M(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
987
987
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
988
988
|
const obj_criteria_item = obj_criteria[i];
|
|
989
989
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
990
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
990
|
+
const referencepath_criteria_itemValidationError = validate$K(obj_criteria_item, path_criteria_item);
|
|
991
991
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
992
992
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaInputRepresentation (at "' + path_criteria_item + '")\n';
|
|
993
993
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1048,7 +1048,7 @@ function validate$M(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
1048
1048
|
return v_error === undefined ? null : v_error;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
|
-
function validate$
|
|
1051
|
+
function validate$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
1052
1052
|
const v_error = (() => {
|
|
1053
1053
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1054
1054
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1076,7 +1076,7 @@ function validate$L(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1076
1076
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
1077
1077
|
const obj_fields_item = obj_fields[i];
|
|
1078
1078
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
1079
|
-
const referencepath_fields_itemValidationError = validate$
|
|
1079
|
+
const referencepath_fields_itemValidationError = validate$N(obj_fields_item, path_fields_item);
|
|
1080
1080
|
if (referencepath_fields_itemValidationError !== null) {
|
|
1081
1081
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceInputRepresentation (at "' + path_fields_item + '")\n';
|
|
1082
1082
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1101,7 +1101,7 @@ function validate$L(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1101
1101
|
if (obj.semanticDimension !== undefined) {
|
|
1102
1102
|
const obj_semanticDimension = obj.semanticDimension;
|
|
1103
1103
|
const path_semanticDimension = path + '.semanticDimension';
|
|
1104
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
1104
|
+
const referencepath_semanticDimensionValidationError = validate$U(obj_semanticDimension, path_semanticDimension);
|
|
1105
1105
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
1106
1106
|
let message = 'Object doesn\'t match SemanticDimensionInputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
1107
1107
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1111,7 +1111,7 @@ function validate$L(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1111
1111
|
if (obj.semanticMeasurement !== undefined) {
|
|
1112
1112
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
1113
1113
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
1114
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
1114
|
+
const referencepath_semanticMeasurementValidationError = validate$T(obj_semanticMeasurement, path_semanticMeasurement);
|
|
1115
1115
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
1116
1116
|
let message = 'Object doesn\'t match SemanticMeasurementInputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
1117
1117
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1122,7 +1122,7 @@ function validate$L(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1122
1122
|
return v_error === undefined ? null : v_error;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
-
function validate$
|
|
1125
|
+
function validate$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
1126
1126
|
const v_error = (() => {
|
|
1127
1127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1128
1128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1157,7 +1157,7 @@ function validate$K(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
1157
1157
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
1158
1158
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
1159
1159
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
1160
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
1160
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$S(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
1161
1161
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
1162
1162
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
1163
1163
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1174,7 +1174,7 @@ function validate$K(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
1174
1174
|
for (let i = 0; i < obj_semanticMappedFields.length; i++) {
|
|
1175
1175
|
const obj_semanticMappedFields_item = obj_semanticMappedFields[i];
|
|
1176
1176
|
const path_semanticMappedFields_item = path_semanticMappedFields + '[' + i + ']';
|
|
1177
|
-
const referencepath_semanticMappedFields_itemValidationError = validate$
|
|
1177
|
+
const referencepath_semanticMappedFields_itemValidationError = validate$I(obj_semanticMappedFields_item, path_semanticMappedFields_item);
|
|
1178
1178
|
if (referencepath_semanticMappedFields_itemValidationError !== null) {
|
|
1179
1179
|
let message = 'Object doesn\'t match SemanticMappedFieldInputRepresentation (at "' + path_semanticMappedFields_item + '")\n';
|
|
1180
1180
|
message += referencepath_semanticMappedFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1186,7 +1186,7 @@ function validate$K(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
1186
1186
|
return v_error === undefined ? null : v_error;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
function validate$
|
|
1189
|
+
function validate$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
1190
1190
|
const v_error = (() => {
|
|
1191
1191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1192
1192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1228,7 +1228,7 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1228
1228
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1229
1229
|
const obj_filters_item = obj_filters[i];
|
|
1230
1230
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1231
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1231
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
1232
1232
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1233
1233
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
1234
1234
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1252,7 +1252,7 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1252
1252
|
for (let i = 0; i < obj_semanticDataObjects.length; i++) {
|
|
1253
1253
|
const obj_semanticDataObjects_item = obj_semanticDataObjects[i];
|
|
1254
1254
|
const path_semanticDataObjects_item = path_semanticDataObjects + '[' + i + ']';
|
|
1255
|
-
const referencepath_semanticDataObjects_itemValidationError = validate$
|
|
1255
|
+
const referencepath_semanticDataObjects_itemValidationError = validate$S(obj_semanticDataObjects_item, path_semanticDataObjects_item);
|
|
1256
1256
|
if (referencepath_semanticDataObjects_itemValidationError !== null) {
|
|
1257
1257
|
let message = 'Object doesn\'t match SemanticDataObjectInputRepresentation (at "' + path_semanticDataObjects_item + '")\n';
|
|
1258
1258
|
message += referencepath_semanticDataObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1269,7 +1269,7 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1269
1269
|
for (let i = 0; i < obj_semanticRelationships.length; i++) {
|
|
1270
1270
|
const obj_semanticRelationships_item = obj_semanticRelationships[i];
|
|
1271
1271
|
const path_semanticRelationships_item = path_semanticRelationships + '[' + i + ']';
|
|
1272
|
-
const referencepath_semanticRelationships_itemValidationError = validate$
|
|
1272
|
+
const referencepath_semanticRelationships_itemValidationError = validate$J(obj_semanticRelationships_item, path_semanticRelationships_item);
|
|
1273
1273
|
if (referencepath_semanticRelationships_itemValidationError !== null) {
|
|
1274
1274
|
let message = 'Object doesn\'t match SemanticRelationshipInputRepresentation (at "' + path_semanticRelationships_item + '")\n';
|
|
1275
1275
|
message += referencepath_semanticRelationships_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1286,7 +1286,7 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1286
1286
|
for (let i = 0; i < obj_semanticUnions.length; i++) {
|
|
1287
1287
|
const obj_semanticUnions_item = obj_semanticUnions[i];
|
|
1288
1288
|
const path_semanticUnions_item = path_semanticUnions + '[' + i + ']';
|
|
1289
|
-
const referencepath_semanticUnions_itemValidationError = validate$
|
|
1289
|
+
const referencepath_semanticUnions_itemValidationError = validate$H(obj_semanticUnions_item, path_semanticUnions_item);
|
|
1290
1290
|
if (referencepath_semanticUnions_itemValidationError !== null) {
|
|
1291
1291
|
let message = 'Object doesn\'t match SemanticUnionInputRepresentation (at "' + path_semanticUnions_item + '")\n';
|
|
1292
1292
|
message += referencepath_semanticUnions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1298,7 +1298,7 @@ function validate$J(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1298
1298
|
return v_error === undefined ? null : v_error;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
function validate$
|
|
1301
|
+
function validate$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation') {
|
|
1302
1302
|
const v_error = (() => {
|
|
1303
1303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1304
1304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1306,7 +1306,7 @@ function validate$I(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
1306
1306
|
if (obj.identifierDimensionReference !== undefined) {
|
|
1307
1307
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
1308
1308
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
1309
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
1309
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$M(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
1310
1310
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
1311
1311
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
1312
1312
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1316,7 +1316,7 @@ function validate$I(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
1316
1316
|
if (obj.namingDimensionReference !== undefined) {
|
|
1317
1317
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
1318
1318
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
1319
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
1319
|
+
const referencepath_namingDimensionReferenceValidationError = validate$M(obj_namingDimensionReference, path_namingDimensionReference);
|
|
1320
1320
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
1321
1321
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
1322
1322
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1327,7 +1327,7 @@ function validate$I(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
1327
1327
|
return v_error === undefined ? null : v_error;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
function validate$
|
|
1330
|
+
function validate$E(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
1331
1331
|
const v_error = (() => {
|
|
1332
1332
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1333
1333
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1350,7 +1350,7 @@ function validate$H(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
1350
1350
|
return v_error === undefined ? null : v_error;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
function validate$
|
|
1353
|
+
function validate$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
1354
1354
|
const v_error = (() => {
|
|
1355
1355
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1356
1356
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1358,7 +1358,7 @@ function validate$G(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1358
1358
|
if (obj.identifyingDimension !== undefined) {
|
|
1359
1359
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
1360
1360
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
1361
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
1361
|
+
const referencepath_identifyingDimensionValidationError = validate$F(obj_identifyingDimension, path_identifyingDimension);
|
|
1362
1362
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
1363
1363
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionInputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
1364
1364
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1374,7 +1374,7 @@ function validate$G(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1374
1374
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
1375
1375
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
1376
1376
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
1377
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
1377
|
+
const referencepath_insightTypes_itemValidationError = validate$E(obj_insightTypes_item, path_insightTypes_item);
|
|
1378
1378
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
1379
1379
|
let message = 'Object doesn\'t match SemanticInsightTypeInputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
1380
1380
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1391,7 +1391,7 @@ function validate$G(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1391
1391
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
1392
1392
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
1393
1393
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
1394
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
1394
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$M(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
1395
1395
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
1396
1396
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
1397
1397
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1424,7 +1424,7 @@ function validate$G(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1424
1424
|
return v_error === undefined ? null : v_error;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
function validate$
|
|
1427
|
+
function validate$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
1428
1428
|
const v_error = (() => {
|
|
1429
1429
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1430
1430
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1438,7 +1438,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1438
1438
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
1439
1439
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
1440
1440
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
1441
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
1441
|
+
const referencepath_additionalDimensions_itemValidationError = validate$M(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
1442
1442
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
1443
1443
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
1444
1444
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1483,7 +1483,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1483
1483
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1484
1484
|
const obj_filters_item = obj_filters[i];
|
|
1485
1485
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1486
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1486
|
+
const referencepath_filters_itemValidationError = validate$X(obj_filters_item, path_filters_item);
|
|
1487
1487
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1488
1488
|
let message = 'Object doesn\'t match SemanticFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
1489
1489
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1494,7 +1494,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1494
1494
|
if (obj.insightsSettings !== undefined) {
|
|
1495
1495
|
const obj_insightsSettings = obj.insightsSettings;
|
|
1496
1496
|
const path_insightsSettings = path + '.insightsSettings';
|
|
1497
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
1497
|
+
const referencepath_insightsSettingsValidationError = validate$D(obj_insightsSettings, path_insightsSettings);
|
|
1498
1498
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
1499
1499
|
let message = 'Object doesn\'t match SemanticInsightsSettingsInputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
1500
1500
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1518,7 +1518,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1518
1518
|
if (obj.measurementReference !== undefined) {
|
|
1519
1519
|
const obj_measurementReference = obj.measurementReference;
|
|
1520
1520
|
const path_measurementReference = path + '.measurementReference';
|
|
1521
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
1521
|
+
const referencepath_measurementReferenceValidationError = validate$M(obj_measurementReference, path_measurementReference);
|
|
1522
1522
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
1523
1523
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_measurementReference + '")\n';
|
|
1524
1524
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1528,7 +1528,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1528
1528
|
if (obj.timeDimensionReference !== undefined) {
|
|
1529
1529
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
1530
1530
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
1531
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
1531
|
+
const referencepath_timeDimensionReferenceValidationError = validate$M(obj_timeDimensionReference, path_timeDimensionReference);
|
|
1532
1532
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
1533
1533
|
let message = 'Object doesn\'t match SemanticFieldReferenceInputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
1534
1534
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1553,7 +1553,7 @@ function validate$F(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1553
1553
|
return v_error === undefined ? null : v_error;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
function validate$
|
|
1556
|
+
function validate$B(obj, path = 'SemanticParameterInputRepresentation') {
|
|
1557
1557
|
const v_error = (() => {
|
|
1558
1558
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1559
1559
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1640,7 +1640,7 @@ function validate$E(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
1642
|
const VERSION$t = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1643
|
-
function validate$
|
|
1643
|
+
function validate$A(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
1644
1644
|
const v_error = (() => {
|
|
1645
1645
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1646
1646
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1660,7 +1660,7 @@ function validate$D(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1660
1660
|
})();
|
|
1661
1661
|
return v_error === undefined ? null : v_error;
|
|
1662
1662
|
}
|
|
1663
|
-
const select$
|
|
1663
|
+
const select$G = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1664
1664
|
return {
|
|
1665
1665
|
kind: 'Fragment',
|
|
1666
1666
|
version: VERSION$t,
|
|
@@ -1701,7 +1701,7 @@ function equals$t(existing, incoming) {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
1703
|
const VERSION$s = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
1704
|
-
function validate$
|
|
1704
|
+
function validate$z(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
1705
1705
|
const v_error = (() => {
|
|
1706
1706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1707
1707
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1730,7 +1730,7 @@ function validate$C(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
1730
1730
|
})();
|
|
1731
1731
|
return v_error === undefined ? null : v_error;
|
|
1732
1732
|
}
|
|
1733
|
-
const select$
|
|
1733
|
+
const select$F = function SemanticFilterOutputRepresentationSelect() {
|
|
1734
1734
|
return {
|
|
1735
1735
|
kind: 'Fragment',
|
|
1736
1736
|
version: VERSION$s,
|
|
@@ -1798,7 +1798,7 @@ function equals$s(existing, incoming) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
1800
|
const VERSION$r = "51514a172af5e420504a2143725b4528";
|
|
1801
|
-
function validate$
|
|
1801
|
+
function validate$y(obj, path = 'SemanticCalculatedDimensionOutputRepresentation') {
|
|
1802
1802
|
const v_error = (() => {
|
|
1803
1803
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1804
1804
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1883,7 +1883,7 @@ function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1883
1883
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
1884
1884
|
const obj_filters_item = obj_filters[i];
|
|
1885
1885
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
1886
|
-
const referencepath_filters_itemValidationError = validate$
|
|
1886
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
1887
1887
|
if (referencepath_filters_itemValidationError !== null) {
|
|
1888
1888
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
1889
1889
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1949,20 +1949,20 @@ function validate$B(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1949
1949
|
return v_error === undefined ? null : v_error;
|
|
1950
1950
|
}
|
|
1951
1951
|
const RepresentationType$g = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
1952
|
-
function keyBuilder$
|
|
1952
|
+
function keyBuilder$v(luvio, config) {
|
|
1953
1953
|
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
1954
1954
|
}
|
|
1955
1955
|
function keyBuilderFromType$b(luvio, object) {
|
|
1956
1956
|
const keyParams = {
|
|
1957
1957
|
name: object.id
|
|
1958
1958
|
};
|
|
1959
|
-
return keyBuilder$
|
|
1959
|
+
return keyBuilder$v(luvio, keyParams);
|
|
1960
1960
|
}
|
|
1961
1961
|
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
1962
1962
|
return input;
|
|
1963
1963
|
}
|
|
1964
|
-
const select$
|
|
1965
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
1964
|
+
const select$E = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1965
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$F();
|
|
1966
1966
|
return {
|
|
1967
1967
|
kind: 'Fragment',
|
|
1968
1968
|
version: VERSION$r,
|
|
@@ -2307,7 +2307,7 @@ function equals$r(existing, incoming) {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
const ingest$g = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2309
2309
|
if (process.env.NODE_ENV !== 'production') {
|
|
2310
|
-
const validateError = validate$
|
|
2310
|
+
const validateError = validate$y(input);
|
|
2311
2311
|
if (validateError !== null) {
|
|
2312
2312
|
throw validateError;
|
|
2313
2313
|
}
|
|
@@ -2328,7 +2328,7 @@ function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
2330
|
const VERSION$q = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
2331
|
-
function validate$
|
|
2331
|
+
function validate$x(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
2332
2332
|
const v_error = (() => {
|
|
2333
2333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2334
2334
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2427,7 +2427,7 @@ function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2427
2427
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2428
2428
|
const obj_filters_item = obj_filters[i];
|
|
2429
2429
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2430
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2430
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
2431
2431
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2432
2432
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
2433
2433
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2521,20 +2521,20 @@ function validate$A(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2521
2521
|
return v_error === undefined ? null : v_error;
|
|
2522
2522
|
}
|
|
2523
2523
|
const RepresentationType$f = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
2524
|
-
function keyBuilder$
|
|
2524
|
+
function keyBuilder$u(luvio, config) {
|
|
2525
2525
|
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
2526
2526
|
}
|
|
2527
2527
|
function keyBuilderFromType$a(luvio, object) {
|
|
2528
2528
|
const keyParams = {
|
|
2529
2529
|
name: object.id
|
|
2530
2530
|
};
|
|
2531
|
-
return keyBuilder$
|
|
2531
|
+
return keyBuilder$u(luvio, keyParams);
|
|
2532
2532
|
}
|
|
2533
2533
|
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
2534
2534
|
return input;
|
|
2535
2535
|
}
|
|
2536
|
-
const select$
|
|
2537
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2536
|
+
const select$D = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2537
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$F();
|
|
2538
2538
|
return {
|
|
2539
2539
|
kind: 'Fragment',
|
|
2540
2540
|
version: VERSION$q,
|
|
@@ -2987,7 +2987,7 @@ function equals$q(existing, incoming) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
const ingest$f = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2989
2989
|
if (process.env.NODE_ENV !== 'production') {
|
|
2990
|
-
const validateError = validate$
|
|
2990
|
+
const validateError = validate$x(input);
|
|
2991
2991
|
if (validateError !== null) {
|
|
2992
2992
|
throw validateError;
|
|
2993
2993
|
}
|
|
@@ -3007,7 +3007,7 @@ function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
|
-
function validate$
|
|
3010
|
+
function validate$w(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
3011
3011
|
const v_error = (() => {
|
|
3012
3012
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3013
3013
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3148,7 +3148,7 @@ function validate$z(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
3148
3148
|
return v_error === undefined ? null : v_error;
|
|
3149
3149
|
}
|
|
3150
3150
|
|
|
3151
|
-
function validate$
|
|
3151
|
+
function validate$v(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
3152
3152
|
const v_error = (() => {
|
|
3153
3153
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3154
3154
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3325,7 +3325,7 @@ function validate$y(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
|
|
3327
3327
|
const VERSION$p = "4f111b93807b811179eb310384efdc35";
|
|
3328
|
-
function validate$
|
|
3328
|
+
function validate$u(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
3329
3329
|
const v_error = (() => {
|
|
3330
3330
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3331
3331
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3396,7 +3396,7 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3396
3396
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3397
3397
|
const obj_filters_item = obj_filters[i];
|
|
3398
3398
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3399
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3399
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
3400
3400
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3401
3401
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
3402
3402
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3446,7 +3446,7 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3446
3446
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3447
3447
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3448
3448
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3449
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3449
|
+
const referencepath_semanticDimensions_itemValidationError = validate$w(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3450
3450
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3451
3451
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3452
3452
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3470,7 +3470,7 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3470
3470
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3471
3471
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3472
3472
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3473
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3473
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$v(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3474
3474
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3475
3475
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3476
3476
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3496,19 +3496,19 @@ function validate$x(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3496
3496
|
return v_error === undefined ? null : v_error;
|
|
3497
3497
|
}
|
|
3498
3498
|
const RepresentationType$e = 'SemanticDataObjectOutputRepresentation';
|
|
3499
|
-
function keyBuilder$
|
|
3499
|
+
function keyBuilder$t(luvio, config) {
|
|
3500
3500
|
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
3501
3501
|
}
|
|
3502
3502
|
function keyBuilderFromType$9(luvio, object) {
|
|
3503
3503
|
const keyParams = {
|
|
3504
3504
|
name: object.id
|
|
3505
3505
|
};
|
|
3506
|
-
return keyBuilder$
|
|
3506
|
+
return keyBuilder$t(luvio, keyParams);
|
|
3507
3507
|
}
|
|
3508
3508
|
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
3509
3509
|
return input;
|
|
3510
3510
|
}
|
|
3511
|
-
const select$
|
|
3511
|
+
const select$C = function SemanticDataObjectOutputRepresentationSelect() {
|
|
3512
3512
|
return {
|
|
3513
3513
|
kind: 'Fragment',
|
|
3514
3514
|
version: VERSION$p,
|
|
@@ -3524,7 +3524,7 @@ function equals$p(existing, incoming) {
|
|
|
3524
3524
|
}
|
|
3525
3525
|
const ingest$e = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3526
3526
|
if (process.env.NODE_ENV !== 'production') {
|
|
3527
|
-
const validateError = validate$
|
|
3527
|
+
const validateError = validate$u(input);
|
|
3528
3528
|
if (validateError !== null) {
|
|
3529
3529
|
throw validateError;
|
|
3530
3530
|
}
|
|
@@ -3545,7 +3545,7 @@ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
3547
|
const VERSION$o = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
3548
|
-
function validate$
|
|
3548
|
+
function validate$t(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
3549
3549
|
const v_error = (() => {
|
|
3550
3550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3551
3551
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3554,7 +3554,7 @@ function validate$w(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
3554
3554
|
})();
|
|
3555
3555
|
return v_error === undefined ? null : v_error;
|
|
3556
3556
|
}
|
|
3557
|
-
const select$
|
|
3557
|
+
const select$B = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
3558
3558
|
return {
|
|
3559
3559
|
kind: 'Fragment',
|
|
3560
3560
|
version: VERSION$o,
|
|
@@ -3577,7 +3577,7 @@ function equals$o(existing, incoming) {
|
|
|
3577
3577
|
}
|
|
3578
3578
|
|
|
3579
3579
|
const VERSION$n = "2cdadcd630abb7b981b2d131880a68c0";
|
|
3580
|
-
function validate$
|
|
3580
|
+
function validate$s(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
3581
3581
|
const v_error = (() => {
|
|
3582
3582
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3583
3583
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3604,7 +3604,7 @@ function validate$v(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
3604
3604
|
})();
|
|
3605
3605
|
return v_error === undefined ? null : v_error;
|
|
3606
3606
|
}
|
|
3607
|
-
const select$
|
|
3607
|
+
const select$A = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
3608
3608
|
return {
|
|
3609
3609
|
kind: 'Fragment',
|
|
3610
3610
|
version: VERSION$n,
|
|
@@ -3651,7 +3651,7 @@ function equals$n(existing, incoming) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
|
|
3653
3653
|
const VERSION$m = "55c60b6207985632192cb4e419822a86";
|
|
3654
|
-
function validate$
|
|
3654
|
+
function validate$r(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
3655
3655
|
const v_error = (() => {
|
|
3656
3656
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3657
3657
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3665,7 +3665,7 @@ function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3665
3665
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3666
3666
|
const obj_groups_item = obj_groups[i];
|
|
3667
3667
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3668
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3668
|
+
const referencepath_groups_itemValidationError = validate$s(obj_groups_item, path_groups_item);
|
|
3669
3669
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3670
3670
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
3671
3671
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3683,8 +3683,8 @@ function validate$u(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3683
3683
|
})();
|
|
3684
3684
|
return v_error === undefined ? null : v_error;
|
|
3685
3685
|
}
|
|
3686
|
-
const select$
|
|
3687
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
3686
|
+
const select$z = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3687
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$A();
|
|
3688
3688
|
return {
|
|
3689
3689
|
kind: 'Fragment',
|
|
3690
3690
|
version: VERSION$m,
|
|
@@ -3741,7 +3741,7 @@ function equals$m(existing, incoming) {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
3743
|
const VERSION$l = "50dc390b159159afb1945b9a811c9f80";
|
|
3744
|
-
function validate$
|
|
3744
|
+
function validate$q(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
3745
3745
|
const v_error = (() => {
|
|
3746
3746
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3747
3747
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3749,7 +3749,7 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3749
3749
|
if (obj.binDimension !== undefined) {
|
|
3750
3750
|
const obj_binDimension = obj.binDimension;
|
|
3751
3751
|
const path_binDimension = path + '.binDimension';
|
|
3752
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3752
|
+
const referencepath_binDimensionValidationError = validate$t(obj_binDimension, path_binDimension);
|
|
3753
3753
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3754
3754
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
3755
3755
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3759,7 +3759,7 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3759
3759
|
if (obj.groupDimension !== undefined) {
|
|
3760
3760
|
const obj_groupDimension = obj.groupDimension;
|
|
3761
3761
|
const path_groupDimension = path + '.groupDimension';
|
|
3762
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3762
|
+
const referencepath_groupDimensionValidationError = validate$r(obj_groupDimension, path_groupDimension);
|
|
3763
3763
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3764
3764
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3765
3765
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3769,9 +3769,9 @@ function validate$t(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3769
3769
|
})();
|
|
3770
3770
|
return v_error === undefined ? null : v_error;
|
|
3771
3771
|
}
|
|
3772
|
-
const select$
|
|
3773
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3774
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3772
|
+
const select$y = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3773
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$B();
|
|
3774
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$z();
|
|
3775
3775
|
return {
|
|
3776
3776
|
kind: 'Fragment',
|
|
3777
3777
|
version: VERSION$l,
|
|
@@ -3823,7 +3823,7 @@ function equals$l(existing, incoming) {
|
|
|
3823
3823
|
}
|
|
3824
3824
|
|
|
3825
3825
|
const VERSION$k = "a2976cd68e629a917463a3b690cf2527";
|
|
3826
|
-
function validate$
|
|
3826
|
+
function validate$p(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
3827
3827
|
const v_error = (() => {
|
|
3828
3828
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3829
3829
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3845,7 +3845,7 @@ function validate$s(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
3845
3845
|
})();
|
|
3846
3846
|
return v_error === undefined ? null : v_error;
|
|
3847
3847
|
}
|
|
3848
|
-
const select$
|
|
3848
|
+
const select$x = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
3849
3849
|
return {
|
|
3850
3850
|
kind: 'Fragment',
|
|
3851
3851
|
version: VERSION$k,
|
|
@@ -3895,7 +3895,7 @@ function equals$k(existing, incoming) {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
|
|
3897
3897
|
const VERSION$j = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
3898
|
-
function validate$
|
|
3898
|
+
function validate$o(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
3899
3899
|
const v_error = (() => {
|
|
3900
3900
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3901
3901
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3910,7 +3910,7 @@ function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3910
3910
|
if (obj.tableFieldReference !== undefined) {
|
|
3911
3911
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3912
3912
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3913
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3913
|
+
const referencepath_tableFieldReferenceValidationError = validate$p(obj_tableFieldReference, path_tableFieldReference);
|
|
3914
3914
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3915
3915
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3916
3916
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3920,8 +3920,8 @@ function validate$r(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3920
3920
|
})();
|
|
3921
3921
|
return v_error === undefined ? null : v_error;
|
|
3922
3922
|
}
|
|
3923
|
-
const select$
|
|
3924
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
3923
|
+
const select$w = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3924
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$x();
|
|
3925
3925
|
return {
|
|
3926
3926
|
kind: 'Fragment',
|
|
3927
3927
|
version: VERSION$j,
|
|
@@ -3972,7 +3972,7 @@ function equals$j(existing, incoming) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
|
|
3974
3974
|
const VERSION$i = "1daec40706bf767c719fa58831fad462";
|
|
3975
|
-
function validate$
|
|
3975
|
+
function validate$n(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
3976
3976
|
const v_error = (() => {
|
|
3977
3977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3978
3978
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3998,7 +3998,7 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
const obj_configuration = obj.configuration;
|
|
4000
4000
|
const path_configuration = path + '.configuration';
|
|
4001
|
-
const referencepath_configurationValidationError = validate$
|
|
4001
|
+
const referencepath_configurationValidationError = validate$q(obj_configuration, path_configuration);
|
|
4002
4002
|
if (referencepath_configurationValidationError !== null) {
|
|
4003
4003
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
4004
4004
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4023,7 +4023,7 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
const obj_fieldReference = obj.fieldReference;
|
|
4025
4025
|
const path_fieldReference = path + '.fieldReference';
|
|
4026
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
4026
|
+
const referencepath_fieldReferenceValidationError = validate$o(obj_fieldReference, path_fieldReference);
|
|
4027
4027
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
4028
4028
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
4029
4029
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4064,21 +4064,21 @@ function validate$q(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4064
4064
|
return v_error === undefined ? null : v_error;
|
|
4065
4065
|
}
|
|
4066
4066
|
const RepresentationType$d = 'SemanticGroupingOutputRepresentation';
|
|
4067
|
-
function keyBuilder$
|
|
4067
|
+
function keyBuilder$s(luvio, config) {
|
|
4068
4068
|
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4069
4069
|
}
|
|
4070
4070
|
function keyBuilderFromType$8(luvio, object) {
|
|
4071
4071
|
const keyParams = {
|
|
4072
4072
|
name: object.id
|
|
4073
4073
|
};
|
|
4074
|
-
return keyBuilder$
|
|
4074
|
+
return keyBuilder$s(luvio, keyParams);
|
|
4075
4075
|
}
|
|
4076
4076
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4077
4077
|
return input;
|
|
4078
4078
|
}
|
|
4079
|
-
const select$
|
|
4080
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4081
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4079
|
+
const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
4080
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$y();
|
|
4081
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$w();
|
|
4082
4082
|
return {
|
|
4083
4083
|
kind: 'Fragment',
|
|
4084
4084
|
version: VERSION$i,
|
|
@@ -4265,7 +4265,7 @@ function equals$i(existing, incoming) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
const ingest$d = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4267
4267
|
if (process.env.NODE_ENV !== 'production') {
|
|
4268
|
-
const validateError = validate$
|
|
4268
|
+
const validateError = validate$n(input);
|
|
4269
4269
|
if (validateError !== null) {
|
|
4270
4270
|
throw validateError;
|
|
4271
4271
|
}
|
|
@@ -4286,7 +4286,7 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
4288
|
const VERSION$h = "c5144c317ac72b60d580cab803514b8d";
|
|
4289
|
-
function validate$
|
|
4289
|
+
function validate$m(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
4290
4290
|
const v_error = (() => {
|
|
4291
4291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4292
4292
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4329,7 +4329,7 @@ function validate$p(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4329
4329
|
})();
|
|
4330
4330
|
return v_error === undefined ? null : v_error;
|
|
4331
4331
|
}
|
|
4332
|
-
const select$
|
|
4332
|
+
const select$u = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4333
4333
|
return {
|
|
4334
4334
|
kind: 'Fragment',
|
|
4335
4335
|
version: VERSION$h,
|
|
@@ -4433,7 +4433,7 @@ function equals$h(existing, incoming) {
|
|
|
4433
4433
|
}
|
|
4434
4434
|
|
|
4435
4435
|
const VERSION$g = "b9778dace5726fcb57804d3afd529246";
|
|
4436
|
-
function validate$
|
|
4436
|
+
function validate$l(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
4437
4437
|
const v_error = (() => {
|
|
4438
4438
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4439
4439
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4483,7 +4483,7 @@ function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4483
4483
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
4484
4484
|
const obj_criteria_item = obj_criteria[i];
|
|
4485
4485
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
4486
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
4486
|
+
const referencepath_criteria_itemValidationError = validate$m(obj_criteria_item, path_criteria_item);
|
|
4487
4487
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
4488
4488
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
4489
4489
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4563,20 +4563,20 @@ function validate$o(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4563
4563
|
return v_error === undefined ? null : v_error;
|
|
4564
4564
|
}
|
|
4565
4565
|
const RepresentationType$c = 'SemanticRelationshipOutputRepresentation';
|
|
4566
|
-
function keyBuilder$
|
|
4566
|
+
function keyBuilder$r(luvio, config) {
|
|
4567
4567
|
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
4568
4568
|
}
|
|
4569
4569
|
function keyBuilderFromType$7(luvio, object) {
|
|
4570
4570
|
const keyParams = {
|
|
4571
4571
|
name: object.id
|
|
4572
4572
|
};
|
|
4573
|
-
return keyBuilder$
|
|
4573
|
+
return keyBuilder$r(luvio, keyParams);
|
|
4574
4574
|
}
|
|
4575
4575
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
4576
4576
|
return input;
|
|
4577
4577
|
}
|
|
4578
|
-
const select$
|
|
4579
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4578
|
+
const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4579
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$u();
|
|
4580
4580
|
return {
|
|
4581
4581
|
kind: 'Fragment',
|
|
4582
4582
|
version: VERSION$g,
|
|
@@ -4867,7 +4867,7 @@ function equals$g(existing, incoming) {
|
|
|
4867
4867
|
}
|
|
4868
4868
|
const ingest$c = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4869
4869
|
if (process.env.NODE_ENV !== 'production') {
|
|
4870
|
-
const validateError = validate$
|
|
4870
|
+
const validateError = validate$l(input);
|
|
4871
4871
|
if (validateError !== null) {
|
|
4872
4872
|
throw validateError;
|
|
4873
4873
|
}
|
|
@@ -4888,7 +4888,7 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
4888
4888
|
}
|
|
4889
4889
|
|
|
4890
4890
|
const VERSION$f = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
4891
|
-
function validate$
|
|
4891
|
+
function validate$k(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
4892
4892
|
const v_error = (() => {
|
|
4893
4893
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4894
4894
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4938,7 +4938,7 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
4938
4938
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
4939
4939
|
const obj_fields_item = obj_fields[i];
|
|
4940
4940
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
4941
|
-
const referencepath_fields_itemValidationError = validate$
|
|
4941
|
+
const referencepath_fields_itemValidationError = validate$p(obj_fields_item, path_fields_item);
|
|
4942
4942
|
if (referencepath_fields_itemValidationError !== null) {
|
|
4943
4943
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
4944
4944
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4982,7 +4982,7 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
4982
4982
|
if (obj.semanticDimension !== undefined) {
|
|
4983
4983
|
const obj_semanticDimension = obj.semanticDimension;
|
|
4984
4984
|
const path_semanticDimension = path + '.semanticDimension';
|
|
4985
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
4985
|
+
const referencepath_semanticDimensionValidationError = validate$w(obj_semanticDimension, path_semanticDimension);
|
|
4986
4986
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
4987
4987
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
4988
4988
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4992,7 +4992,7 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
4992
4992
|
if (obj.semanticMeasurement !== undefined) {
|
|
4993
4993
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
4994
4994
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
4995
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
4995
|
+
const referencepath_semanticMeasurementValidationError = validate$v(obj_semanticMeasurement, path_semanticMeasurement);
|
|
4996
4996
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
4997
4997
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
4998
4998
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5003,19 +5003,19 @@ function validate$n(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5003
5003
|
return v_error === undefined ? null : v_error;
|
|
5004
5004
|
}
|
|
5005
5005
|
const RepresentationType$b = 'SemanticMappedFieldOutputRepresentation';
|
|
5006
|
-
function keyBuilder$
|
|
5006
|
+
function keyBuilder$q(luvio, config) {
|
|
5007
5007
|
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5008
5008
|
}
|
|
5009
5009
|
function keyBuilderFromType$6(luvio, object) {
|
|
5010
5010
|
const keyParams = {
|
|
5011
5011
|
name: object.id
|
|
5012
5012
|
};
|
|
5013
|
-
return keyBuilder$
|
|
5013
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5014
5014
|
}
|
|
5015
5015
|
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5016
5016
|
return input;
|
|
5017
5017
|
}
|
|
5018
|
-
const select$
|
|
5018
|
+
const select$s = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5019
5019
|
return {
|
|
5020
5020
|
kind: 'Fragment',
|
|
5021
5021
|
version: VERSION$f,
|
|
@@ -5031,7 +5031,7 @@ function equals$f(existing, incoming) {
|
|
|
5031
5031
|
}
|
|
5032
5032
|
const ingest$b = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5033
5033
|
if (process.env.NODE_ENV !== 'production') {
|
|
5034
|
-
const validateError = validate$
|
|
5034
|
+
const validateError = validate$k(input);
|
|
5035
5035
|
if (validateError !== null) {
|
|
5036
5036
|
throw validateError;
|
|
5037
5037
|
}
|
|
@@ -5052,7 +5052,7 @@ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5052
5052
|
}
|
|
5053
5053
|
|
|
5054
5054
|
const VERSION$e = "69fe23112140e9fae50135dcb15c24c2";
|
|
5055
|
-
function validate$
|
|
5055
|
+
function validate$j(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
5056
5056
|
const v_error = (() => {
|
|
5057
5057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5058
5058
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5179,14 +5179,14 @@ function validate$m(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5179
5179
|
return v_error === undefined ? null : v_error;
|
|
5180
5180
|
}
|
|
5181
5181
|
const RepresentationType$a = 'SemanticUnionOutputRepresentation';
|
|
5182
|
-
function keyBuilder$
|
|
5182
|
+
function keyBuilder$p(luvio, config) {
|
|
5183
5183
|
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
5184
5184
|
}
|
|
5185
5185
|
function keyBuilderFromType$5(luvio, object) {
|
|
5186
5186
|
const keyParams = {
|
|
5187
5187
|
name: object.id
|
|
5188
5188
|
};
|
|
5189
|
-
return keyBuilder$
|
|
5189
|
+
return keyBuilder$p(luvio, keyParams);
|
|
5190
5190
|
}
|
|
5191
5191
|
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5192
5192
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -5227,7 +5227,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
return input;
|
|
5229
5229
|
}
|
|
5230
|
-
const select$
|
|
5230
|
+
const select$r = function SemanticUnionOutputRepresentationSelect() {
|
|
5231
5231
|
return {
|
|
5232
5232
|
kind: 'Fragment',
|
|
5233
5233
|
version: VERSION$e,
|
|
@@ -5289,14 +5289,14 @@ const select$q = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5289
5289
|
kind: 'Link',
|
|
5290
5290
|
plural: true,
|
|
5291
5291
|
required: false,
|
|
5292
|
-
fragment: select$
|
|
5292
|
+
fragment: select$C()
|
|
5293
5293
|
},
|
|
5294
5294
|
{
|
|
5295
5295
|
name: 'semanticMappedFields',
|
|
5296
5296
|
kind: 'Link',
|
|
5297
5297
|
plural: true,
|
|
5298
5298
|
required: false,
|
|
5299
|
-
fragment: select$
|
|
5299
|
+
fragment: select$s()
|
|
5300
5300
|
}
|
|
5301
5301
|
]
|
|
5302
5302
|
};
|
|
@@ -5453,7 +5453,7 @@ function equals$e(existing, incoming) {
|
|
|
5453
5453
|
}
|
|
5454
5454
|
const ingest$a = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5455
5455
|
if (process.env.NODE_ENV !== 'production') {
|
|
5456
|
-
const validateError = validate$
|
|
5456
|
+
const validateError = validate$j(input);
|
|
5457
5457
|
if (validateError !== null) {
|
|
5458
5458
|
throw validateError;
|
|
5459
5459
|
}
|
|
@@ -5486,7 +5486,7 @@ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
|
|
5488
5488
|
const VERSION$d = "281e0163ea1fc7d956974394f5310216";
|
|
5489
|
-
function validate$
|
|
5489
|
+
function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
5490
5490
|
const v_error = (() => {
|
|
5491
5491
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5492
5492
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5550,7 +5550,7 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5550
5550
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5551
5551
|
const obj_filters_item = obj_filters[i];
|
|
5552
5552
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5553
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5553
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
5554
5554
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5555
5555
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5556
5556
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5637,14 +5637,14 @@ function validate$l(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5637
5637
|
return v_error === undefined ? null : v_error;
|
|
5638
5638
|
}
|
|
5639
5639
|
const RepresentationType$9 = 'SemanticLogicalViewOutputRepresentation';
|
|
5640
|
-
function keyBuilder$
|
|
5640
|
+
function keyBuilder$o(luvio, config) {
|
|
5641
5641
|
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
5642
5642
|
}
|
|
5643
5643
|
function keyBuilderFromType$4(luvio, object) {
|
|
5644
5644
|
const keyParams = {
|
|
5645
5645
|
name: object.id
|
|
5646
5646
|
};
|
|
5647
|
-
return keyBuilder$
|
|
5647
|
+
return keyBuilder$o(luvio, keyParams);
|
|
5648
5648
|
}
|
|
5649
5649
|
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
5650
5650
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
@@ -5703,8 +5703,8 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5703
5703
|
}
|
|
5704
5704
|
return input;
|
|
5705
5705
|
}
|
|
5706
|
-
const select$
|
|
5707
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5706
|
+
const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5707
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$F();
|
|
5708
5708
|
return {
|
|
5709
5709
|
kind: 'Fragment',
|
|
5710
5710
|
version: VERSION$d,
|
|
@@ -5778,21 +5778,21 @@ const select$p = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5778
5778
|
kind: 'Link',
|
|
5779
5779
|
plural: true,
|
|
5780
5780
|
required: false,
|
|
5781
|
-
fragment: select$
|
|
5781
|
+
fragment: select$C()
|
|
5782
5782
|
},
|
|
5783
5783
|
{
|
|
5784
5784
|
name: 'semanticRelationships',
|
|
5785
5785
|
kind: 'Link',
|
|
5786
5786
|
plural: true,
|
|
5787
5787
|
required: false,
|
|
5788
|
-
fragment: select$
|
|
5788
|
+
fragment: select$t()
|
|
5789
5789
|
},
|
|
5790
5790
|
{
|
|
5791
5791
|
name: 'semanticUnions',
|
|
5792
5792
|
kind: 'Link',
|
|
5793
5793
|
plural: true,
|
|
5794
5794
|
required: false,
|
|
5795
|
-
fragment: select$
|
|
5795
|
+
fragment: select$r()
|
|
5796
5796
|
},
|
|
5797
5797
|
{
|
|
5798
5798
|
name: 'semanticViewTypeEnum',
|
|
@@ -6016,7 +6016,7 @@ function equals$d(existing, incoming) {
|
|
|
6016
6016
|
}
|
|
6017
6017
|
const ingest$9 = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6018
6018
|
if (process.env.NODE_ENV !== 'production') {
|
|
6019
|
-
const validateError = validate$
|
|
6019
|
+
const validateError = validate$i(input);
|
|
6020
6020
|
if (validateError !== null) {
|
|
6021
6021
|
throw validateError;
|
|
6022
6022
|
}
|
|
@@ -6055,7 +6055,7 @@ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6055
6055
|
}
|
|
6056
6056
|
|
|
6057
6057
|
const VERSION$c = "a50848c632bb205d5e910bb726d9219e";
|
|
6058
|
-
function validate$
|
|
6058
|
+
function validate$h(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
6059
6059
|
const v_error = (() => {
|
|
6060
6060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6061
6061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6063,7 +6063,7 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6063
6063
|
if (obj.identifierDimensionReference !== undefined) {
|
|
6064
6064
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
6065
6065
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
6066
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
6066
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$o(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
6067
6067
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
6068
6068
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
6069
6069
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6073,7 +6073,7 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6073
6073
|
if (obj.namingDimensionReference !== undefined) {
|
|
6074
6074
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
6075
6075
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
6076
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
6076
|
+
const referencepath_namingDimensionReferenceValidationError = validate$o(obj_namingDimensionReference, path_namingDimensionReference);
|
|
6077
6077
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
6078
6078
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
6079
6079
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6083,8 +6083,8 @@ function validate$k(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6083
6083
|
})();
|
|
6084
6084
|
return v_error === undefined ? null : v_error;
|
|
6085
6085
|
}
|
|
6086
|
-
const select$
|
|
6087
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6086
|
+
const select$p = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6087
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$w();
|
|
6088
6088
|
return {
|
|
6089
6089
|
kind: 'Fragment',
|
|
6090
6090
|
version: VERSION$c,
|
|
@@ -6136,7 +6136,7 @@ function equals$c(existing, incoming) {
|
|
|
6136
6136
|
}
|
|
6137
6137
|
|
|
6138
6138
|
const VERSION$b = "1b8cf2283d5d5c480459506274f0604c";
|
|
6139
|
-
function validate$
|
|
6139
|
+
function validate$g(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
6140
6140
|
const v_error = (() => {
|
|
6141
6141
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6142
6142
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6158,7 +6158,7 @@ function validate$j(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6158
6158
|
})();
|
|
6159
6159
|
return v_error === undefined ? null : v_error;
|
|
6160
6160
|
}
|
|
6161
|
-
const select$
|
|
6161
|
+
const select$o = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6162
6162
|
return {
|
|
6163
6163
|
kind: 'Fragment',
|
|
6164
6164
|
version: VERSION$b,
|
|
@@ -6208,7 +6208,7 @@ function equals$b(existing, incoming) {
|
|
|
6208
6208
|
}
|
|
6209
6209
|
|
|
6210
6210
|
const VERSION$a = "a3f5972287be7bcf9ca205af56046a58";
|
|
6211
|
-
function validate$
|
|
6211
|
+
function validate$f(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
6212
6212
|
const v_error = (() => {
|
|
6213
6213
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6214
6214
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6216,7 +6216,7 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6216
6216
|
if (obj.identifyingDimension !== undefined) {
|
|
6217
6217
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
6218
6218
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
6219
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
6219
|
+
const referencepath_identifyingDimensionValidationError = validate$h(obj_identifyingDimension, path_identifyingDimension);
|
|
6220
6220
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
6221
6221
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
6222
6222
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6232,7 +6232,7 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6232
6232
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
6233
6233
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
6234
6234
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
6235
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
6235
|
+
const referencepath_insightTypes_itemValidationError = validate$g(obj_insightTypes_item, path_insightTypes_item);
|
|
6236
6236
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
6237
6237
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
6238
6238
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6249,7 +6249,7 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6249
6249
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
6250
6250
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
6251
6251
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
6252
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
6252
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$o(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
6253
6253
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
6254
6254
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
6255
6255
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6281,10 +6281,10 @@ function validate$i(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6281
6281
|
})();
|
|
6282
6282
|
return v_error === undefined ? null : v_error;
|
|
6283
6283
|
}
|
|
6284
|
-
const select$
|
|
6285
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
6286
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
6287
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6284
|
+
const select$n = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6285
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$p();
|
|
6286
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$o();
|
|
6287
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$w();
|
|
6288
6288
|
return {
|
|
6289
6289
|
kind: 'Fragment',
|
|
6290
6290
|
version: VERSION$a,
|
|
@@ -6421,7 +6421,7 @@ function equals$a(existing, incoming) {
|
|
|
6421
6421
|
}
|
|
6422
6422
|
|
|
6423
6423
|
const VERSION$9 = "0873ccd85b32d14c753931243d20ac8b";
|
|
6424
|
-
function validate$
|
|
6424
|
+
function validate$e(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
6425
6425
|
const v_error = (() => {
|
|
6426
6426
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6427
6427
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6435,7 +6435,7 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6435
6435
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
6436
6436
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
6437
6437
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
6438
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
6438
|
+
const referencepath_additionalDimensions_itemValidationError = validate$o(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
6439
6439
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
6440
6440
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
6441
6441
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6502,7 +6502,7 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6502
6502
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
6503
6503
|
const obj_filters_item = obj_filters[i];
|
|
6504
6504
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
6505
|
-
const referencepath_filters_itemValidationError = validate$
|
|
6505
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
6506
6506
|
if (referencepath_filters_itemValidationError !== null) {
|
|
6507
6507
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
6508
6508
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6518,7 +6518,7 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6518
6518
|
if (obj.insightsSettings !== undefined) {
|
|
6519
6519
|
const obj_insightsSettings = obj.insightsSettings;
|
|
6520
6520
|
const path_insightsSettings = path + '.insightsSettings';
|
|
6521
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
6521
|
+
const referencepath_insightsSettingsValidationError = validate$f(obj_insightsSettings, path_insightsSettings);
|
|
6522
6522
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
6523
6523
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
6524
6524
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6556,7 +6556,7 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6556
6556
|
if (obj.measurementReference !== undefined) {
|
|
6557
6557
|
const obj_measurementReference = obj.measurementReference;
|
|
6558
6558
|
const path_measurementReference = path + '.measurementReference';
|
|
6559
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
6559
|
+
const referencepath_measurementReferenceValidationError = validate$o(obj_measurementReference, path_measurementReference);
|
|
6560
6560
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
6561
6561
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
6562
6562
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6566,7 +6566,7 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6566
6566
|
if (obj.timeDimensionReference !== undefined) {
|
|
6567
6567
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
6568
6568
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
6569
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
6569
|
+
const referencepath_timeDimensionReferenceValidationError = validate$o(obj_timeDimensionReference, path_timeDimensionReference);
|
|
6570
6570
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
6571
6571
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
6572
6572
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6591,22 +6591,22 @@ function validate$h(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6591
6591
|
return v_error === undefined ? null : v_error;
|
|
6592
6592
|
}
|
|
6593
6593
|
const RepresentationType$8 = 'SemanticMetricOutputRepresentation';
|
|
6594
|
-
function keyBuilder$
|
|
6594
|
+
function keyBuilder$n(luvio, config) {
|
|
6595
6595
|
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
6596
6596
|
}
|
|
6597
6597
|
function keyBuilderFromType$3(luvio, object) {
|
|
6598
6598
|
const keyParams = {
|
|
6599
6599
|
name: object.id
|
|
6600
6600
|
};
|
|
6601
|
-
return keyBuilder$
|
|
6601
|
+
return keyBuilder$n(luvio, keyParams);
|
|
6602
6602
|
}
|
|
6603
6603
|
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
6604
6604
|
return input;
|
|
6605
6605
|
}
|
|
6606
|
-
const select$
|
|
6607
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6608
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6609
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
6606
|
+
const select$m = function SemanticMetricOutputRepresentationSelect() {
|
|
6607
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$w();
|
|
6608
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$F();
|
|
6609
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$n();
|
|
6610
6610
|
return {
|
|
6611
6611
|
kind: 'Fragment',
|
|
6612
6612
|
version: VERSION$9,
|
|
@@ -6949,7 +6949,7 @@ function equals$9(existing, incoming) {
|
|
|
6949
6949
|
}
|
|
6950
6950
|
const ingest$8 = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6951
6951
|
if (process.env.NODE_ENV !== 'production') {
|
|
6952
|
-
const validateError = validate$
|
|
6952
|
+
const validateError = validate$e(input);
|
|
6953
6953
|
if (validateError !== null) {
|
|
6954
6954
|
throw validateError;
|
|
6955
6955
|
}
|
|
@@ -6970,7 +6970,7 @@ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6970
6970
|
}
|
|
6971
6971
|
|
|
6972
6972
|
const VERSION$8 = "562f9618d0de907973cf252f01ea567d";
|
|
6973
|
-
function validate$
|
|
6973
|
+
function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
6974
6974
|
const v_error = (() => {
|
|
6975
6975
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6976
6976
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7097,19 +7097,19 @@ function validate$g(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7097
7097
|
return v_error === undefined ? null : v_error;
|
|
7098
7098
|
}
|
|
7099
7099
|
const RepresentationType$7 = 'SemanticParameterOutputRepresentation';
|
|
7100
|
-
function keyBuilder$
|
|
7100
|
+
function keyBuilder$m(luvio, config) {
|
|
7101
7101
|
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7102
7102
|
}
|
|
7103
7103
|
function keyBuilderFromType$2(luvio, object) {
|
|
7104
7104
|
const keyParams = {
|
|
7105
7105
|
name: object.id
|
|
7106
7106
|
};
|
|
7107
|
-
return keyBuilder$
|
|
7107
|
+
return keyBuilder$m(luvio, keyParams);
|
|
7108
7108
|
}
|
|
7109
7109
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7110
7110
|
return input;
|
|
7111
7111
|
}
|
|
7112
|
-
const select$
|
|
7112
|
+
const select$l = function SemanticParameterOutputRepresentationSelect() {
|
|
7113
7113
|
return {
|
|
7114
7114
|
kind: 'Fragment',
|
|
7115
7115
|
version: VERSION$8,
|
|
@@ -7399,7 +7399,7 @@ function equals$8(existing, incoming) {
|
|
|
7399
7399
|
}
|
|
7400
7400
|
const ingest$7 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7401
7401
|
if (process.env.NODE_ENV !== 'production') {
|
|
7402
|
-
const validateError = validate$
|
|
7402
|
+
const validateError = validate$d(input);
|
|
7403
7403
|
if (validateError !== null) {
|
|
7404
7404
|
throw validateError;
|
|
7405
7405
|
}
|
|
@@ -7420,7 +7420,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7420
7420
|
}
|
|
7421
7421
|
|
|
7422
7422
|
const VERSION$7 = "5cda82e85d7322d459ba16b10b81ee96";
|
|
7423
|
-
function validate$
|
|
7423
|
+
function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
7424
7424
|
const v_error = (() => {
|
|
7425
7425
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7426
7426
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7453,7 +7453,7 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7453
7453
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
7454
7454
|
const obj_baseModels_item = obj_baseModels[i];
|
|
7455
7455
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
7456
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
7456
|
+
const referencepath_baseModels_itemValidationError = validate$A(obj_baseModels_item, path_baseModels_item);
|
|
7457
7457
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
7458
7458
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
7459
7459
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7737,14 +7737,14 @@ function validate$f(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7737
7737
|
return v_error === undefined ? null : v_error;
|
|
7738
7738
|
}
|
|
7739
7739
|
const RepresentationType$6 = 'SemanticModelOutputRepresentation';
|
|
7740
|
-
function keyBuilder$
|
|
7740
|
+
function keyBuilder$l(luvio, config) {
|
|
7741
7741
|
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
7742
7742
|
}
|
|
7743
7743
|
function keyBuilderFromType$1(luvio, object) {
|
|
7744
7744
|
const keyParams = {
|
|
7745
7745
|
name: object.id
|
|
7746
7746
|
};
|
|
7747
|
-
return keyBuilder$
|
|
7747
|
+
return keyBuilder$l(luvio, keyParams);
|
|
7748
7748
|
}
|
|
7749
7749
|
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7750
7750
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
@@ -7893,8 +7893,8 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7893
7893
|
}
|
|
7894
7894
|
return input;
|
|
7895
7895
|
}
|
|
7896
|
-
const select$
|
|
7897
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
7896
|
+
const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
7897
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
7898
7898
|
return {
|
|
7899
7899
|
kind: 'Fragment',
|
|
7900
7900
|
version: VERSION$7,
|
|
@@ -7983,7 +7983,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
7983
7983
|
kind: 'Link',
|
|
7984
7984
|
plural: true,
|
|
7985
7985
|
required: false,
|
|
7986
|
-
fragment: select$
|
|
7986
|
+
fragment: select$E()
|
|
7987
7987
|
},
|
|
7988
7988
|
{
|
|
7989
7989
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -7995,7 +7995,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
7995
7995
|
kind: 'Link',
|
|
7996
7996
|
plural: true,
|
|
7997
7997
|
required: false,
|
|
7998
|
-
fragment: select$
|
|
7998
|
+
fragment: select$D()
|
|
7999
7999
|
},
|
|
8000
8000
|
{
|
|
8001
8001
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8007,7 +8007,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8007
8007
|
kind: 'Link',
|
|
8008
8008
|
plural: true,
|
|
8009
8009
|
required: false,
|
|
8010
|
-
fragment: select$
|
|
8010
|
+
fragment: select$C()
|
|
8011
8011
|
},
|
|
8012
8012
|
{
|
|
8013
8013
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8019,7 +8019,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8019
8019
|
kind: 'Link',
|
|
8020
8020
|
plural: true,
|
|
8021
8021
|
required: false,
|
|
8022
|
-
fragment: select$
|
|
8022
|
+
fragment: select$v()
|
|
8023
8023
|
},
|
|
8024
8024
|
{
|
|
8025
8025
|
name: 'semanticGroupingsUrl',
|
|
@@ -8031,21 +8031,21 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8031
8031
|
kind: 'Link',
|
|
8032
8032
|
plural: true,
|
|
8033
8033
|
required: false,
|
|
8034
|
-
fragment: select$
|
|
8034
|
+
fragment: select$q()
|
|
8035
8035
|
},
|
|
8036
8036
|
{
|
|
8037
8037
|
name: 'semanticMetrics',
|
|
8038
8038
|
kind: 'Link',
|
|
8039
8039
|
plural: true,
|
|
8040
8040
|
required: false,
|
|
8041
|
-
fragment: select$
|
|
8041
|
+
fragment: select$m()
|
|
8042
8042
|
},
|
|
8043
8043
|
{
|
|
8044
8044
|
name: 'semanticParameters',
|
|
8045
8045
|
kind: 'Link',
|
|
8046
8046
|
plural: true,
|
|
8047
8047
|
required: false,
|
|
8048
|
-
fragment: select$
|
|
8048
|
+
fragment: select$l()
|
|
8049
8049
|
},
|
|
8050
8050
|
{
|
|
8051
8051
|
name: 'semanticParametersUrl',
|
|
@@ -8057,7 +8057,7 @@ const select$j = function SemanticModelOutputRepresentationSelect() {
|
|
|
8057
8057
|
kind: 'Link',
|
|
8058
8058
|
plural: true,
|
|
8059
8059
|
required: false,
|
|
8060
|
-
fragment: select$
|
|
8060
|
+
fragment: select$t()
|
|
8061
8061
|
},
|
|
8062
8062
|
{
|
|
8063
8063
|
name: 'semanticRelationshipsUrl',
|
|
@@ -8508,7 +8508,7 @@ function equals$7(existing, incoming) {
|
|
|
8508
8508
|
}
|
|
8509
8509
|
const ingest$6 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8510
8510
|
if (process.env.NODE_ENV !== 'production') {
|
|
8511
|
-
const validateError = validate$
|
|
8511
|
+
const validateError = validate$c(input);
|
|
8512
8512
|
if (validateError !== null) {
|
|
8513
8513
|
throw validateError;
|
|
8514
8514
|
}
|
|
@@ -8576,19 +8576,19 @@ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
8576
8576
|
}
|
|
8577
8577
|
}
|
|
8578
8578
|
|
|
8579
|
-
function select$
|
|
8580
|
-
return select$
|
|
8579
|
+
function select$j(luvio, params) {
|
|
8580
|
+
return select$k();
|
|
8581
8581
|
}
|
|
8582
|
-
function getResponseCacheKeys$
|
|
8582
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
8583
8583
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
8584
8584
|
}
|
|
8585
|
-
function ingestSuccess$
|
|
8585
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
8586
8586
|
const { body } = response;
|
|
8587
8587
|
const key = keyBuilderFromType$1(luvio, body);
|
|
8588
8588
|
luvio.storeIngest(key, ingest$6, body);
|
|
8589
8589
|
const snapshot = luvio.storeLookup({
|
|
8590
8590
|
recordId: key,
|
|
8591
|
-
node: select$
|
|
8591
|
+
node: select$j(),
|
|
8592
8592
|
variables: {},
|
|
8593
8593
|
});
|
|
8594
8594
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8599,10 +8599,10 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
8599
8599
|
deepFreeze(snapshot.data);
|
|
8600
8600
|
return snapshot;
|
|
8601
8601
|
}
|
|
8602
|
-
function createResourceRequest$
|
|
8602
|
+
function createResourceRequest$e(config) {
|
|
8603
8603
|
const headers = {};
|
|
8604
8604
|
return {
|
|
8605
|
-
baseUri: '/services/data/
|
|
8605
|
+
baseUri: '/services/data/v64.0',
|
|
8606
8606
|
basePath: '/ssot/semantic/models',
|
|
8607
8607
|
method: 'post',
|
|
8608
8608
|
body: config.body,
|
|
@@ -8613,7 +8613,7 @@ function createResourceRequest$c(config) {
|
|
|
8613
8613
|
};
|
|
8614
8614
|
}
|
|
8615
8615
|
|
|
8616
|
-
const adapterName$
|
|
8616
|
+
const adapterName$e = 'createSemanticModel';
|
|
8617
8617
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
8618
8618
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
8619
8619
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8634,17 +8634,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
8634
8634
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8635
8635
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8636
8636
|
];
|
|
8637
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8638
|
-
const createResourceParams$
|
|
8639
|
-
function typeCheckConfig$
|
|
8637
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createSemanticModel_ConfigPropertyMetadata);
|
|
8638
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(createSemanticModel_ConfigPropertyMetadata);
|
|
8639
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
8640
8640
|
const config = {};
|
|
8641
|
-
typeCheckConfig$
|
|
8641
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
8642
8642
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
8643
8643
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
8644
8644
|
const untrustedConfig_baseModels_array = [];
|
|
8645
8645
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
8646
8646
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
8647
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate
|
|
8647
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Y(untrustedConfig_baseModels_item);
|
|
8648
8648
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
8649
8649
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
8650
8650
|
}
|
|
@@ -8656,7 +8656,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8656
8656
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
8657
8657
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
8658
8658
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
8659
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
8659
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$W(untrustedConfig_semanticCalculatedDimensions_item);
|
|
8660
8660
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
8661
8661
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
8662
8662
|
}
|
|
@@ -8668,7 +8668,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8668
8668
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
8669
8669
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
8670
8670
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
8671
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
8671
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$V(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
8672
8672
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
8673
8673
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
8674
8674
|
}
|
|
@@ -8680,7 +8680,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8680
8680
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
8681
8681
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
8682
8682
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
8683
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
8683
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$S(untrustedConfig_semanticDataObjects_item);
|
|
8684
8684
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
8685
8685
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
8686
8686
|
}
|
|
@@ -8692,7 +8692,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8692
8692
|
const untrustedConfig_semanticGroupings_array = [];
|
|
8693
8693
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
8694
8694
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
8695
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
8695
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$L(untrustedConfig_semanticGroupings_item);
|
|
8696
8696
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
8697
8697
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
8698
8698
|
}
|
|
@@ -8704,7 +8704,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8704
8704
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
8705
8705
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
8706
8706
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
8707
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
8707
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$G(untrustedConfig_semanticLogicalViews_item);
|
|
8708
8708
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
8709
8709
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
8710
8710
|
}
|
|
@@ -8716,7 +8716,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8716
8716
|
const untrustedConfig_semanticMetrics_array = [];
|
|
8717
8717
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
8718
8718
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
8719
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
8719
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$C(untrustedConfig_semanticMetrics_item);
|
|
8720
8720
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
8721
8721
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
8722
8722
|
}
|
|
@@ -8728,7 +8728,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8728
8728
|
const untrustedConfig_semanticParameters_array = [];
|
|
8729
8729
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
8730
8730
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
8731
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
8731
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$B(untrustedConfig_semanticParameters_item);
|
|
8732
8732
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
8733
8733
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
8734
8734
|
}
|
|
@@ -8740,7 +8740,7 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8740
8740
|
const untrustedConfig_semanticRelationships_array = [];
|
|
8741
8741
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
8742
8742
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
8743
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
8743
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$J(untrustedConfig_semanticRelationships_item);
|
|
8744
8744
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
8745
8745
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
8746
8746
|
}
|
|
@@ -8749,30 +8749,30 @@ function typeCheckConfig$c(untrustedConfig) {
|
|
|
8749
8749
|
}
|
|
8750
8750
|
return config;
|
|
8751
8751
|
}
|
|
8752
|
-
function validateAdapterConfig$
|
|
8752
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
8753
8753
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8754
8754
|
return null;
|
|
8755
8755
|
}
|
|
8756
8756
|
if (process.env.NODE_ENV !== 'production') {
|
|
8757
8757
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8758
8758
|
}
|
|
8759
|
-
const config = typeCheckConfig$
|
|
8759
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
8760
8760
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8761
8761
|
return null;
|
|
8762
8762
|
}
|
|
8763
8763
|
return config;
|
|
8764
8764
|
}
|
|
8765
|
-
function buildNetworkSnapshot$
|
|
8766
|
-
const resourceParams = createResourceParams$
|
|
8767
|
-
const request = createResourceRequest$
|
|
8765
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
8766
|
+
const resourceParams = createResourceParams$e(config);
|
|
8767
|
+
const request = createResourceRequest$e(resourceParams);
|
|
8768
8768
|
return luvio.dispatchResourceRequest(request, options)
|
|
8769
8769
|
.then((response) => {
|
|
8770
8770
|
return luvio.handleSuccessResponse(() => {
|
|
8771
|
-
const snapshot = ingestSuccess$
|
|
8771
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
8772
8772
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8773
8773
|
}, () => {
|
|
8774
8774
|
const cache = new StoreKeyMap();
|
|
8775
|
-
getResponseCacheKeys$
|
|
8775
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
8776
8776
|
return cache;
|
|
8777
8777
|
});
|
|
8778
8778
|
}, (response) => {
|
|
@@ -8782,87 +8782,100 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
8782
8782
|
}
|
|
8783
8783
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8784
8784
|
return function createSemanticModel(untrustedConfig) {
|
|
8785
|
-
const config = validateAdapterConfig$
|
|
8785
|
+
const config = validateAdapterConfig$e(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
8786
8786
|
// Invalid or incomplete config
|
|
8787
8787
|
if (config === null) {
|
|
8788
8788
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
8789
8789
|
}
|
|
8790
|
-
return buildNetworkSnapshot$
|
|
8790
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
8791
8791
|
};
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
8794
|
-
function validate$
|
|
8794
|
+
function validate$b(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
8795
8795
|
const v_error = (() => {
|
|
8796
8796
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8797
8797
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8798
8798
|
}
|
|
8799
|
-
if (obj.
|
|
8800
|
-
const
|
|
8801
|
-
const
|
|
8802
|
-
if (typeof
|
|
8803
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
8799
|
+
if (obj.color !== undefined) {
|
|
8800
|
+
const obj_color = obj.color;
|
|
8801
|
+
const path_color = path + '.color';
|
|
8802
|
+
if (typeof obj_color !== 'string') {
|
|
8803
|
+
return new TypeError('Expected "string" but received "' + typeof obj_color + '" (at "' + path_color + '")');
|
|
8804
8804
|
}
|
|
8805
8805
|
}
|
|
8806
|
-
if (obj.
|
|
8807
|
-
const
|
|
8808
|
-
const
|
|
8809
|
-
if (typeof
|
|
8810
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
8806
|
+
if (obj.currencyIsoCode !== undefined) {
|
|
8807
|
+
const obj_currencyIsoCode = obj.currencyIsoCode;
|
|
8808
|
+
const path_currencyIsoCode = path + '.currencyIsoCode';
|
|
8809
|
+
if (typeof obj_currencyIsoCode !== 'string') {
|
|
8810
|
+
return new TypeError('Expected "string" but received "' + typeof obj_currencyIsoCode + '" (at "' + path_currencyIsoCode + '")');
|
|
8811
8811
|
}
|
|
8812
8812
|
}
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8813
|
+
if (obj.operator !== undefined) {
|
|
8814
|
+
const obj_operator = obj.operator;
|
|
8815
|
+
const path_operator = path + '.operator';
|
|
8816
|
+
if (typeof obj_operator !== 'string') {
|
|
8817
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
8818
|
+
}
|
|
8819
|
+
}
|
|
8820
|
+
if (obj.primary !== undefined) {
|
|
8821
|
+
const obj_primary = obj.primary;
|
|
8822
|
+
const path_primary = path + '.primary';
|
|
8823
|
+
if (typeof obj_primary !== 'boolean') {
|
|
8824
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_primary + '" (at "' + path_primary + '")');
|
|
8825
|
+
}
|
|
8821
8826
|
}
|
|
8822
|
-
if (obj.
|
|
8823
|
-
obj.
|
|
8827
|
+
if (obj.statusName !== undefined) {
|
|
8828
|
+
const obj_statusName = obj.statusName;
|
|
8829
|
+
const path_statusName = path + '.statusName';
|
|
8830
|
+
if (typeof obj_statusName !== 'string') {
|
|
8831
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusName + '" (at "' + path_statusName + '")');
|
|
8832
|
+
}
|
|
8833
|
+
}
|
|
8834
|
+
if (obj.value !== undefined) {
|
|
8835
|
+
const obj_value = obj.value;
|
|
8836
|
+
const path_value = path + '.value';
|
|
8837
|
+
if (typeof obj_value !== 'string') {
|
|
8838
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
8839
|
+
}
|
|
8824
8840
|
}
|
|
8825
8841
|
})();
|
|
8826
8842
|
return v_error === undefined ? null : v_error;
|
|
8827
8843
|
}
|
|
8828
8844
|
|
|
8829
|
-
function validate$
|
|
8845
|
+
function validate$a(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
8830
8846
|
const v_error = (() => {
|
|
8831
8847
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8832
8848
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8833
8849
|
}
|
|
8834
|
-
if (obj.
|
|
8835
|
-
const
|
|
8836
|
-
const
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
|
|
8853
|
-
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
let message = 'Object doesn\'t match SemanticGoalValueInputRepresentation (at "' + path_value + '")\n';
|
|
8857
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8858
|
-
return new TypeError(message);
|
|
8850
|
+
if (obj.forecasting !== undefined) {
|
|
8851
|
+
const obj_forecasting = obj.forecasting;
|
|
8852
|
+
const path_forecasting = path + '.forecasting';
|
|
8853
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
8854
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
8855
|
+
}
|
|
8856
|
+
}
|
|
8857
|
+
if (obj.statusConditions !== undefined) {
|
|
8858
|
+
const obj_statusConditions = obj.statusConditions;
|
|
8859
|
+
const path_statusConditions = path + '.statusConditions';
|
|
8860
|
+
if (!ArrayIsArray(obj_statusConditions)) {
|
|
8861
|
+
return new TypeError('Expected "array" but received "' + typeof obj_statusConditions + '" (at "' + path_statusConditions + '")');
|
|
8862
|
+
}
|
|
8863
|
+
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
8864
|
+
const obj_statusConditions_item = obj_statusConditions[i];
|
|
8865
|
+
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
8866
|
+
const referencepath_statusConditions_itemValidationError = validate$b(obj_statusConditions_item, path_statusConditions_item);
|
|
8867
|
+
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
8868
|
+
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
8869
|
+
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8870
|
+
return new TypeError(message);
|
|
8871
|
+
}
|
|
8859
8872
|
}
|
|
8860
8873
|
}
|
|
8861
8874
|
})();
|
|
8862
8875
|
return v_error === undefined ? null : v_error;
|
|
8863
8876
|
}
|
|
8864
8877
|
|
|
8865
|
-
function validate$
|
|
8878
|
+
function validate$9(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
8866
8879
|
const v_error = (() => {
|
|
8867
8880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8868
8881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8892,66 +8905,15 @@ function validate$b(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
8892
8905
|
return v_error === undefined ? null : v_error;
|
|
8893
8906
|
}
|
|
8894
8907
|
|
|
8895
|
-
function validate$a(obj, path = 'SemanticGoalDateRangeOutputRepresentation') {
|
|
8896
|
-
const v_error = (() => {
|
|
8897
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8898
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8899
|
-
}
|
|
8900
|
-
if (obj.endDate !== undefined) {
|
|
8901
|
-
const obj_endDate = obj.endDate;
|
|
8902
|
-
const path_endDate = path + '.endDate';
|
|
8903
|
-
if (typeof obj_endDate !== 'string') {
|
|
8904
|
-
return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
|
|
8905
|
-
}
|
|
8906
|
-
}
|
|
8907
|
-
if (obj.startDate !== undefined) {
|
|
8908
|
-
const obj_startDate = obj.startDate;
|
|
8909
|
-
const path_startDate = path + '.startDate';
|
|
8910
|
-
if (typeof obj_startDate !== 'string') {
|
|
8911
|
-
return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
|
|
8912
|
-
}
|
|
8913
|
-
}
|
|
8914
|
-
})();
|
|
8915
|
-
return v_error === undefined ? null : v_error;
|
|
8916
|
-
}
|
|
8917
|
-
|
|
8918
|
-
function validate$9(obj, path = 'SemanticGoalValueOutputRepresentation') {
|
|
8919
|
-
const v_error = (() => {
|
|
8920
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8921
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8922
|
-
}
|
|
8923
|
-
if (obj.staticValue !== undefined) {
|
|
8924
|
-
obj.staticValue;
|
|
8925
|
-
}
|
|
8926
|
-
})();
|
|
8927
|
-
return v_error === undefined ? null : v_error;
|
|
8928
|
-
}
|
|
8929
|
-
|
|
8930
8908
|
function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
8931
8909
|
const v_error = (() => {
|
|
8932
8910
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8933
8911
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8934
8912
|
}
|
|
8935
|
-
const
|
|
8936
|
-
const
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
let message = 'Object doesn\'t match SemanticGoalDateRangeOutputRepresentation (at "' + path_date + '")\n';
|
|
8940
|
-
message += referencepath_dateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8941
|
-
return new TypeError(message);
|
|
8942
|
-
}
|
|
8943
|
-
const obj_goalType = obj.goalType;
|
|
8944
|
-
const path_goalType = path + '.goalType';
|
|
8945
|
-
if (typeof obj_goalType !== 'string') {
|
|
8946
|
-
return new TypeError('Expected "string" but received "' + typeof obj_goalType + '" (at "' + path_goalType + '")');
|
|
8947
|
-
}
|
|
8948
|
-
const obj_value = obj.value;
|
|
8949
|
-
const path_value = path + '.value';
|
|
8950
|
-
const referencepath_valueValidationError = validate$9(obj_value, path_value);
|
|
8951
|
-
if (referencepath_valueValidationError !== null) {
|
|
8952
|
-
let message = 'Object doesn\'t match SemanticGoalValueOutputRepresentation (at "' + path_value + '")\n';
|
|
8953
|
-
message += referencepath_valueValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8954
|
-
return new TypeError(message);
|
|
8913
|
+
const obj_forecasting = obj.forecasting;
|
|
8914
|
+
const path_forecasting = path + '.forecasting';
|
|
8915
|
+
if (typeof obj_forecasting !== 'boolean') {
|
|
8916
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_forecasting + '" (at "' + path_forecasting + '")');
|
|
8955
8917
|
}
|
|
8956
8918
|
})();
|
|
8957
8919
|
return v_error === undefined ? null : v_error;
|
|
@@ -9045,7 +9007,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9045
9007
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
9046
9008
|
const obj_filters_item = obj_filters[i];
|
|
9047
9009
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
9048
|
-
const referencepath_filters_itemValidationError = validate$
|
|
9010
|
+
const referencepath_filters_itemValidationError = validate$z(obj_filters_item, path_filters_item);
|
|
9049
9011
|
if (referencepath_filters_itemValidationError !== null) {
|
|
9050
9012
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
9051
9013
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9099,7 +9061,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9099
9061
|
if (obj.semanticMetric !== undefined) {
|
|
9100
9062
|
const obj_semanticMetric = obj.semanticMetric;
|
|
9101
9063
|
const path_semanticMetric = path + '.semanticMetric';
|
|
9102
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
9064
|
+
const referencepath_semanticMetricValidationError = validate$e(obj_semanticMetric, path_semanticMetric);
|
|
9103
9065
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
9104
9066
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
9105
9067
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9120,19 +9082,19 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9120
9082
|
return v_error === undefined ? null : v_error;
|
|
9121
9083
|
}
|
|
9122
9084
|
const RepresentationType$5 = 'SemanticSubMetricOutputRepresentation';
|
|
9123
|
-
function keyBuilder$
|
|
9085
|
+
function keyBuilder$k(luvio, config) {
|
|
9124
9086
|
return keyPrefix + '::' + RepresentationType$5 + ':' + config.name;
|
|
9125
9087
|
}
|
|
9126
9088
|
function keyBuilderFromType(luvio, object) {
|
|
9127
9089
|
const keyParams = {
|
|
9128
9090
|
name: object.id
|
|
9129
9091
|
};
|
|
9130
|
-
return keyBuilder$
|
|
9092
|
+
return keyBuilder$k(luvio, keyParams);
|
|
9131
9093
|
}
|
|
9132
9094
|
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9133
9095
|
return input;
|
|
9134
9096
|
}
|
|
9135
|
-
const select$
|
|
9097
|
+
const select$i = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9136
9098
|
return {
|
|
9137
9099
|
kind: 'Fragment',
|
|
9138
9100
|
version: VERSION$6,
|
|
@@ -9168,19 +9130,19 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9168
9130
|
});
|
|
9169
9131
|
}
|
|
9170
9132
|
|
|
9171
|
-
function select$
|
|
9172
|
-
return select$
|
|
9133
|
+
function select$h(luvio, params) {
|
|
9134
|
+
return select$i();
|
|
9173
9135
|
}
|
|
9174
|
-
function getResponseCacheKeys$
|
|
9136
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
9175
9137
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
9176
9138
|
}
|
|
9177
|
-
function ingestSuccess$
|
|
9139
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
9178
9140
|
const { body } = response;
|
|
9179
9141
|
const key = keyBuilderFromType(luvio, body);
|
|
9180
9142
|
luvio.storeIngest(key, ingest$5, body);
|
|
9181
9143
|
const snapshot = luvio.storeLookup({
|
|
9182
9144
|
recordId: key,
|
|
9183
|
-
node: select$
|
|
9145
|
+
node: select$h(),
|
|
9184
9146
|
variables: {},
|
|
9185
9147
|
});
|
|
9186
9148
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9191,10 +9153,10 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
9191
9153
|
deepFreeze(snapshot.data);
|
|
9192
9154
|
return snapshot;
|
|
9193
9155
|
}
|
|
9194
|
-
function createResourceRequest$
|
|
9156
|
+
function createResourceRequest$d(config) {
|
|
9195
9157
|
const headers = {};
|
|
9196
9158
|
return {
|
|
9197
|
-
baseUri: '/services/data/
|
|
9159
|
+
baseUri: '/services/data/v64.0',
|
|
9198
9160
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
9199
9161
|
method: 'post',
|
|
9200
9162
|
body: config.body,
|
|
@@ -9205,7 +9167,7 @@ function createResourceRequest$b(config) {
|
|
|
9205
9167
|
};
|
|
9206
9168
|
}
|
|
9207
9169
|
|
|
9208
|
-
const adapterName$
|
|
9170
|
+
const adapterName$d = 'createSemanticSubMetric';
|
|
9209
9171
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9210
9172
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9211
9173
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9217,17 +9179,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
9217
9179
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
9218
9180
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
9219
9181
|
];
|
|
9220
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9221
|
-
const createResourceParams$
|
|
9222
|
-
function typeCheckConfig$
|
|
9182
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9183
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9184
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9223
9185
|
const config = {};
|
|
9224
|
-
typeCheckConfig$
|
|
9186
|
+
typeCheckConfig$f(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9225
9187
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
9226
9188
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
9227
9189
|
const untrustedConfig_filters_array = [];
|
|
9228
9190
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
9229
9191
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
9230
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
9192
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$X(untrustedConfig_filters_item);
|
|
9231
9193
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
9232
9194
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
9233
9195
|
}
|
|
@@ -9235,41 +9197,41 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
9235
9197
|
config.filters = untrustedConfig_filters_array;
|
|
9236
9198
|
}
|
|
9237
9199
|
const untrustedConfig_goal = untrustedConfig.goal;
|
|
9238
|
-
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$
|
|
9200
|
+
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$a(untrustedConfig_goal);
|
|
9239
9201
|
if (referenceSemanticMetricGoalInputRepresentationValidationError === null) {
|
|
9240
9202
|
config.goal = untrustedConfig_goal;
|
|
9241
9203
|
}
|
|
9242
9204
|
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
9243
|
-
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$
|
|
9205
|
+
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$9(untrustedConfig_timeRange);
|
|
9244
9206
|
if (referenceSemanticTimeRangeInputRepresentationValidationError === null) {
|
|
9245
9207
|
config.timeRange = untrustedConfig_timeRange;
|
|
9246
9208
|
}
|
|
9247
9209
|
return config;
|
|
9248
9210
|
}
|
|
9249
|
-
function validateAdapterConfig$
|
|
9211
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
9250
9212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9251
9213
|
return null;
|
|
9252
9214
|
}
|
|
9253
9215
|
if (process.env.NODE_ENV !== 'production') {
|
|
9254
9216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9255
9217
|
}
|
|
9256
|
-
const config = typeCheckConfig$
|
|
9218
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
9257
9219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9258
9220
|
return null;
|
|
9259
9221
|
}
|
|
9260
9222
|
return config;
|
|
9261
9223
|
}
|
|
9262
|
-
function buildNetworkSnapshot$
|
|
9263
|
-
const resourceParams = createResourceParams$
|
|
9264
|
-
const request = createResourceRequest$
|
|
9224
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
9225
|
+
const resourceParams = createResourceParams$d(config);
|
|
9226
|
+
const request = createResourceRequest$d(resourceParams);
|
|
9265
9227
|
return luvio.dispatchResourceRequest(request, options)
|
|
9266
9228
|
.then((response) => {
|
|
9267
9229
|
return luvio.handleSuccessResponse(() => {
|
|
9268
|
-
const snapshot = ingestSuccess$
|
|
9230
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
9269
9231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9270
9232
|
}, () => {
|
|
9271
9233
|
const cache = new StoreKeyMap();
|
|
9272
|
-
getResponseCacheKeys$
|
|
9234
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
9273
9235
|
return cache;
|
|
9274
9236
|
});
|
|
9275
9237
|
}, (response) => {
|
|
@@ -9279,21 +9241,106 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9279
9241
|
}
|
|
9280
9242
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9281
9243
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
9282
|
-
const config = validateAdapterConfig$
|
|
9244
|
+
const config = validateAdapterConfig$d(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
9283
9245
|
// Invalid or incomplete config
|
|
9284
9246
|
if (config === null) {
|
|
9285
9247
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
9286
9248
|
}
|
|
9287
|
-
return buildNetworkSnapshot$
|
|
9249
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
9250
|
+
};
|
|
9251
|
+
};
|
|
9252
|
+
|
|
9253
|
+
function keyBuilder$j(luvio, params) {
|
|
9254
|
+
return keyBuilder$k(luvio, {
|
|
9255
|
+
name: params.urlParams.subMetricNameOrId
|
|
9256
|
+
});
|
|
9257
|
+
}
|
|
9258
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
9259
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
9260
|
+
cacheKeyMap.set(key, {
|
|
9261
|
+
namespace: keyPrefix,
|
|
9262
|
+
representationName: RepresentationType$5,
|
|
9263
|
+
mergeable: false
|
|
9264
|
+
});
|
|
9265
|
+
}
|
|
9266
|
+
function evictSuccess$1(luvio, resourceParams) {
|
|
9267
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
9268
|
+
luvio.storeEvict(key);
|
|
9269
|
+
}
|
|
9270
|
+
function createResourceRequest$c(config) {
|
|
9271
|
+
const headers = {};
|
|
9272
|
+
return {
|
|
9273
|
+
baseUri: '/services/data/v64.0',
|
|
9274
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
9275
|
+
method: 'delete',
|
|
9276
|
+
body: null,
|
|
9277
|
+
urlParams: config.urlParams,
|
|
9278
|
+
queryParams: {},
|
|
9279
|
+
headers,
|
|
9280
|
+
priority: 'normal',
|
|
9281
|
+
};
|
|
9282
|
+
}
|
|
9283
|
+
|
|
9284
|
+
const adapterName$c = 'deleteGoalFromSubMetric';
|
|
9285
|
+
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
9286
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9287
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9288
|
+
];
|
|
9289
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9290
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9291
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9292
|
+
const config = {};
|
|
9293
|
+
typeCheckConfig$f(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9294
|
+
return config;
|
|
9295
|
+
}
|
|
9296
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
9297
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9298
|
+
return null;
|
|
9299
|
+
}
|
|
9300
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9301
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9302
|
+
}
|
|
9303
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
9304
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9305
|
+
return null;
|
|
9306
|
+
}
|
|
9307
|
+
return config;
|
|
9308
|
+
}
|
|
9309
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
9310
|
+
const resourceParams = createResourceParams$c(config);
|
|
9311
|
+
const request = createResourceRequest$c(resourceParams);
|
|
9312
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9313
|
+
.then(() => {
|
|
9314
|
+
return luvio.handleSuccessResponse(() => {
|
|
9315
|
+
evictSuccess$1(luvio, resourceParams);
|
|
9316
|
+
return luvio.storeBroadcast();
|
|
9317
|
+
}, () => {
|
|
9318
|
+
const cache = new StoreKeyMap();
|
|
9319
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
9320
|
+
return cache;
|
|
9321
|
+
});
|
|
9322
|
+
}, (response) => {
|
|
9323
|
+
deepFreeze(response);
|
|
9324
|
+
throw response;
|
|
9325
|
+
});
|
|
9326
|
+
}
|
|
9327
|
+
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
9328
|
+
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
9329
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
9330
|
+
// Invalid or incomplete config
|
|
9331
|
+
if (config === null) {
|
|
9332
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
9333
|
+
}
|
|
9334
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
9288
9335
|
};
|
|
9289
9336
|
};
|
|
9290
9337
|
|
|
9291
9338
|
function keyBuilder$i(luvio, params) {
|
|
9292
|
-
return keyBuilder$
|
|
9339
|
+
return keyBuilder$k(luvio, {
|
|
9293
9340
|
name: params.urlParams.subMetricNameOrId
|
|
9294
9341
|
});
|
|
9295
9342
|
}
|
|
9296
|
-
function getResponseCacheKeys$
|
|
9343
|
+
function getResponseCacheKeys$b(cacheKeyMap, luvio, resourceParams) {
|
|
9297
9344
|
const key = keyBuilder$i(luvio, resourceParams);
|
|
9298
9345
|
cacheKeyMap.set(key, {
|
|
9299
9346
|
namespace: keyPrefix,
|
|
@@ -9305,10 +9352,10 @@ function evictSuccess(luvio, resourceParams) {
|
|
|
9305
9352
|
const key = keyBuilder$i(luvio, resourceParams);
|
|
9306
9353
|
luvio.storeEvict(key);
|
|
9307
9354
|
}
|
|
9308
|
-
function createResourceRequest$
|
|
9355
|
+
function createResourceRequest$b(config) {
|
|
9309
9356
|
const headers = {};
|
|
9310
9357
|
return {
|
|
9311
|
-
baseUri: '/services/data/
|
|
9358
|
+
baseUri: '/services/data/v64.0',
|
|
9312
9359
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
9313
9360
|
method: 'delete',
|
|
9314
9361
|
body: null,
|
|
@@ -9319,34 +9366,34 @@ function createResourceRequest$a(config) {
|
|
|
9319
9366
|
};
|
|
9320
9367
|
}
|
|
9321
9368
|
|
|
9322
|
-
const adapterName$
|
|
9369
|
+
const adapterName$b = 'deleteSemanticSubMetric';
|
|
9323
9370
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9324
9371
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9325
9372
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9326
9373
|
];
|
|
9327
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9328
|
-
const createResourceParams$
|
|
9329
|
-
function typeCheckConfig$
|
|
9374
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9375
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9376
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
9330
9377
|
const config = {};
|
|
9331
|
-
typeCheckConfig$
|
|
9378
|
+
typeCheckConfig$f(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9332
9379
|
return config;
|
|
9333
9380
|
}
|
|
9334
|
-
function validateAdapterConfig$
|
|
9381
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
9335
9382
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9336
9383
|
return null;
|
|
9337
9384
|
}
|
|
9338
9385
|
if (process.env.NODE_ENV !== 'production') {
|
|
9339
9386
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9340
9387
|
}
|
|
9341
|
-
const config = typeCheckConfig$
|
|
9388
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
9342
9389
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9343
9390
|
return null;
|
|
9344
9391
|
}
|
|
9345
9392
|
return config;
|
|
9346
9393
|
}
|
|
9347
|
-
function buildNetworkSnapshot$
|
|
9348
|
-
const resourceParams = createResourceParams$
|
|
9349
|
-
const request = createResourceRequest$
|
|
9394
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
9395
|
+
const resourceParams = createResourceParams$b(config);
|
|
9396
|
+
const request = createResourceRequest$b(resourceParams);
|
|
9350
9397
|
return luvio.dispatchResourceRequest(request, options)
|
|
9351
9398
|
.then(() => {
|
|
9352
9399
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -9354,7 +9401,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
9354
9401
|
return luvio.storeBroadcast();
|
|
9355
9402
|
}, () => {
|
|
9356
9403
|
const cache = new StoreKeyMap();
|
|
9357
|
-
getResponseCacheKeys$
|
|
9404
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams);
|
|
9358
9405
|
return cache;
|
|
9359
9406
|
});
|
|
9360
9407
|
}, (response) => {
|
|
@@ -9364,33 +9411,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
9364
9411
|
}
|
|
9365
9412
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9366
9413
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
9367
|
-
const config = validateAdapterConfig$
|
|
9414
|
+
const config = validateAdapterConfig$b(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
9368
9415
|
// Invalid or incomplete config
|
|
9369
9416
|
if (config === null) {
|
|
9370
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9417
|
+
throw new Error(`Invalid config for "${adapterName$b}"`);
|
|
9371
9418
|
}
|
|
9372
|
-
return buildNetworkSnapshot$
|
|
9419
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
9373
9420
|
};
|
|
9374
9421
|
};
|
|
9375
9422
|
|
|
9376
|
-
function select$
|
|
9377
|
-
return select$
|
|
9423
|
+
function select$g(luvio, params) {
|
|
9424
|
+
return select$m();
|
|
9378
9425
|
}
|
|
9379
9426
|
function keyBuilder$h(luvio, params) {
|
|
9380
|
-
return keyBuilder$
|
|
9427
|
+
return keyBuilder$n(luvio, {
|
|
9381
9428
|
name: params.urlParams.metricNameOrId
|
|
9382
9429
|
});
|
|
9383
9430
|
}
|
|
9384
|
-
function getResponseCacheKeys$
|
|
9431
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9385
9432
|
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
9386
9433
|
}
|
|
9387
|
-
function ingestSuccess$
|
|
9434
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
9388
9435
|
const { body } = response;
|
|
9389
9436
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
9390
9437
|
luvio.storeIngest(key, ingest$8, body);
|
|
9391
9438
|
const snapshot = luvio.storeLookup({
|
|
9392
9439
|
recordId: key,
|
|
9393
|
-
node: select$
|
|
9440
|
+
node: select$g(),
|
|
9394
9441
|
variables: {},
|
|
9395
9442
|
}, snapshotRefresh);
|
|
9396
9443
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9407,10 +9454,10 @@ function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
|
9407
9454
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9408
9455
|
return errorSnapshot;
|
|
9409
9456
|
}
|
|
9410
|
-
function createResourceRequest$
|
|
9457
|
+
function createResourceRequest$a(config) {
|
|
9411
9458
|
const headers = {};
|
|
9412
9459
|
return {
|
|
9413
|
-
baseUri: '/services/data/
|
|
9460
|
+
baseUri: '/services/data/v64.0',
|
|
9414
9461
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics/' + config.urlParams.metricNameOrId + '',
|
|
9415
9462
|
method: 'get',
|
|
9416
9463
|
body: null,
|
|
@@ -9425,64 +9472,64 @@ function createResourceRequestFromRepresentation$2(representation) {
|
|
|
9425
9472
|
urlParams: {},
|
|
9426
9473
|
};
|
|
9427
9474
|
config.urlParams.metricNameOrId = representation.id;
|
|
9428
|
-
return createResourceRequest$
|
|
9475
|
+
return createResourceRequest$a(config);
|
|
9429
9476
|
}
|
|
9430
9477
|
|
|
9431
|
-
const adapterName$
|
|
9478
|
+
const adapterName$a = 'getSemanticMetric';
|
|
9432
9479
|
const getSemanticMetric_ConfigPropertyMetadata = [
|
|
9433
9480
|
generateParamConfigMetadata('metricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9434
9481
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9435
9482
|
];
|
|
9436
|
-
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9437
|
-
const createResourceParams$
|
|
9483
|
+
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetric_ConfigPropertyMetadata);
|
|
9484
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(getSemanticMetric_ConfigPropertyMetadata);
|
|
9438
9485
|
function keyBuilder$g(luvio, config) {
|
|
9439
|
-
const resourceParams = createResourceParams$
|
|
9486
|
+
const resourceParams = createResourceParams$a(config);
|
|
9440
9487
|
return keyBuilder$h(luvio, resourceParams);
|
|
9441
9488
|
}
|
|
9442
|
-
function typeCheckConfig$
|
|
9489
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
9443
9490
|
const config = {};
|
|
9444
|
-
typeCheckConfig$
|
|
9491
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
9445
9492
|
return config;
|
|
9446
9493
|
}
|
|
9447
|
-
function validateAdapterConfig$
|
|
9494
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
9448
9495
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9449
9496
|
return null;
|
|
9450
9497
|
}
|
|
9451
9498
|
if (process.env.NODE_ENV !== 'production') {
|
|
9452
9499
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9453
9500
|
}
|
|
9454
|
-
const config = typeCheckConfig$
|
|
9501
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
9455
9502
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9456
9503
|
return null;
|
|
9457
9504
|
}
|
|
9458
9505
|
return config;
|
|
9459
9506
|
}
|
|
9460
9507
|
function adapterFragment$8(luvio, config) {
|
|
9461
|
-
createResourceParams$
|
|
9462
|
-
return select$
|
|
9508
|
+
createResourceParams$a(config);
|
|
9509
|
+
return select$g();
|
|
9463
9510
|
}
|
|
9464
9511
|
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
9465
|
-
const snapshot = ingestSuccess$
|
|
9512
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
9466
9513
|
config,
|
|
9467
|
-
resolve: () => buildNetworkSnapshot$
|
|
9514
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9468
9515
|
});
|
|
9469
9516
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9470
9517
|
}
|
|
9471
9518
|
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
9472
9519
|
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
9473
9520
|
config,
|
|
9474
|
-
resolve: () => buildNetworkSnapshot$
|
|
9521
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9475
9522
|
});
|
|
9476
9523
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9477
9524
|
}
|
|
9478
|
-
function buildNetworkSnapshot$
|
|
9479
|
-
const resourceParams = createResourceParams$
|
|
9480
|
-
const request = createResourceRequest$
|
|
9525
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
9526
|
+
const resourceParams = createResourceParams$a(config);
|
|
9527
|
+
const request = createResourceRequest$a(resourceParams);
|
|
9481
9528
|
return luvio.dispatchResourceRequest(request, options)
|
|
9482
9529
|
.then((response) => {
|
|
9483
9530
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
9484
9531
|
const cache = new StoreKeyMap();
|
|
9485
|
-
getResponseCacheKeys$
|
|
9532
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
9486
9533
|
return cache;
|
|
9487
9534
|
});
|
|
9488
9535
|
}, (response) => {
|
|
@@ -9490,7 +9537,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9490
9537
|
});
|
|
9491
9538
|
}
|
|
9492
9539
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
9493
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9540
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
9494
9541
|
}
|
|
9495
9542
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
9496
9543
|
const { luvio, config } = context;
|
|
@@ -9501,12 +9548,12 @@ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
|
9501
9548
|
};
|
|
9502
9549
|
const cacheSnapshot = storeLookup(selector, {
|
|
9503
9550
|
config,
|
|
9504
|
-
resolve: () => buildNetworkSnapshot$
|
|
9551
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
9505
9552
|
});
|
|
9506
9553
|
return cacheSnapshot;
|
|
9507
9554
|
}
|
|
9508
9555
|
const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetric(untrustedConfig, requestContext) {
|
|
9509
|
-
const config = validateAdapterConfig$
|
|
9556
|
+
const config = validateAdapterConfig$a(untrustedConfig, getSemanticMetric_ConfigPropertyNames);
|
|
9510
9557
|
// Invalid or incomplete config
|
|
9511
9558
|
if (config === null) {
|
|
9512
9559
|
return null;
|
|
@@ -9516,7 +9563,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
9516
9563
|
};
|
|
9517
9564
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
9518
9565
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
9519
|
-
const keys = configs.map(c => keyBuilder$
|
|
9566
|
+
const keys = configs.map(c => keyBuilder$n(luvio, c));
|
|
9520
9567
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
9521
9568
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
9522
9569
|
const { key, record: val } = entries[i];
|
|
@@ -9589,7 +9636,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9589
9636
|
}
|
|
9590
9637
|
return input;
|
|
9591
9638
|
}
|
|
9592
|
-
const select$
|
|
9639
|
+
const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
9593
9640
|
return {
|
|
9594
9641
|
kind: 'Fragment',
|
|
9595
9642
|
version: VERSION$5,
|
|
@@ -9600,7 +9647,7 @@ const select$e = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
9600
9647
|
kind: 'Link',
|
|
9601
9648
|
plural: true,
|
|
9602
9649
|
required: false,
|
|
9603
|
-
fragment: select$
|
|
9650
|
+
fragment: select$m()
|
|
9604
9651
|
}
|
|
9605
9652
|
]
|
|
9606
9653
|
};
|
|
@@ -9654,22 +9701,22 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9654
9701
|
}
|
|
9655
9702
|
}
|
|
9656
9703
|
|
|
9657
|
-
function select$
|
|
9658
|
-
return select$
|
|
9704
|
+
function select$e(luvio, params) {
|
|
9705
|
+
return select$f();
|
|
9659
9706
|
}
|
|
9660
9707
|
function keyBuilder$f(luvio, params) {
|
|
9661
9708
|
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9662
9709
|
}
|
|
9663
|
-
function getResponseCacheKeys$
|
|
9710
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
9664
9711
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
9665
9712
|
}
|
|
9666
|
-
function ingestSuccess$
|
|
9713
|
+
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
9667
9714
|
const { body } = response;
|
|
9668
9715
|
const key = keyBuilder$f(luvio, resourceParams);
|
|
9669
9716
|
luvio.storeIngest(key, ingest$4, body);
|
|
9670
9717
|
const snapshot = luvio.storeLookup({
|
|
9671
9718
|
recordId: key,
|
|
9672
|
-
node: select$
|
|
9719
|
+
node: select$e(),
|
|
9673
9720
|
variables: {},
|
|
9674
9721
|
}, snapshotRefresh);
|
|
9675
9722
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9686,10 +9733,10 @@ function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
|
9686
9733
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9687
9734
|
return errorSnapshot;
|
|
9688
9735
|
}
|
|
9689
|
-
function createResourceRequest$
|
|
9736
|
+
function createResourceRequest$9(config) {
|
|
9690
9737
|
const headers = {};
|
|
9691
9738
|
return {
|
|
9692
|
-
baseUri: '/services/data/
|
|
9739
|
+
baseUri: '/services/data/v64.0',
|
|
9693
9740
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metrics',
|
|
9694
9741
|
method: 'get',
|
|
9695
9742
|
body: null,
|
|
@@ -9700,60 +9747,60 @@ function createResourceRequest$8(config) {
|
|
|
9700
9747
|
};
|
|
9701
9748
|
}
|
|
9702
9749
|
|
|
9703
|
-
const adapterName$
|
|
9750
|
+
const adapterName$9 = 'getSemanticMetrics';
|
|
9704
9751
|
const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
9705
9752
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9706
9753
|
];
|
|
9707
|
-
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9708
|
-
const createResourceParams$
|
|
9754
|
+
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9755
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9709
9756
|
function keyBuilder$e(luvio, config) {
|
|
9710
|
-
const resourceParams = createResourceParams$
|
|
9757
|
+
const resourceParams = createResourceParams$9(config);
|
|
9711
9758
|
return keyBuilder$f(luvio, resourceParams);
|
|
9712
9759
|
}
|
|
9713
|
-
function typeCheckConfig$
|
|
9760
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
9714
9761
|
const config = {};
|
|
9715
|
-
typeCheckConfig$
|
|
9762
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9716
9763
|
return config;
|
|
9717
9764
|
}
|
|
9718
|
-
function validateAdapterConfig$
|
|
9765
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
9719
9766
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9720
9767
|
return null;
|
|
9721
9768
|
}
|
|
9722
9769
|
if (process.env.NODE_ENV !== 'production') {
|
|
9723
9770
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9724
9771
|
}
|
|
9725
|
-
const config = typeCheckConfig$
|
|
9772
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
9726
9773
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9727
9774
|
return null;
|
|
9728
9775
|
}
|
|
9729
9776
|
return config;
|
|
9730
9777
|
}
|
|
9731
9778
|
function adapterFragment$7(luvio, config) {
|
|
9732
|
-
createResourceParams$
|
|
9733
|
-
return select$
|
|
9779
|
+
createResourceParams$9(config);
|
|
9780
|
+
return select$e();
|
|
9734
9781
|
}
|
|
9735
9782
|
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
9736
|
-
const snapshot = ingestSuccess$
|
|
9783
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
|
|
9737
9784
|
config,
|
|
9738
|
-
resolve: () => buildNetworkSnapshot$
|
|
9785
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9739
9786
|
});
|
|
9740
9787
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9741
9788
|
}
|
|
9742
9789
|
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
9743
9790
|
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
9744
9791
|
config,
|
|
9745
|
-
resolve: () => buildNetworkSnapshot$
|
|
9792
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9746
9793
|
});
|
|
9747
9794
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9748
9795
|
}
|
|
9749
|
-
function buildNetworkSnapshot$
|
|
9750
|
-
const resourceParams = createResourceParams$
|
|
9751
|
-
const request = createResourceRequest$
|
|
9796
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
9797
|
+
const resourceParams = createResourceParams$9(config);
|
|
9798
|
+
const request = createResourceRequest$9(resourceParams);
|
|
9752
9799
|
return luvio.dispatchResourceRequest(request, options)
|
|
9753
9800
|
.then((response) => {
|
|
9754
9801
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
9755
9802
|
const cache = new StoreKeyMap();
|
|
9756
|
-
getResponseCacheKeys$
|
|
9803
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
9757
9804
|
return cache;
|
|
9758
9805
|
});
|
|
9759
9806
|
}, (response) => {
|
|
@@ -9761,7 +9808,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
9761
9808
|
});
|
|
9762
9809
|
}
|
|
9763
9810
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9764
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9811
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
9765
9812
|
}
|
|
9766
9813
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9767
9814
|
const { luvio, config } = context;
|
|
@@ -9772,12 +9819,12 @@ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
|
9772
9819
|
};
|
|
9773
9820
|
const cacheSnapshot = storeLookup(selector, {
|
|
9774
9821
|
config,
|
|
9775
|
-
resolve: () => buildNetworkSnapshot$
|
|
9822
|
+
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
9776
9823
|
});
|
|
9777
9824
|
return cacheSnapshot;
|
|
9778
9825
|
}
|
|
9779
9826
|
const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetrics(untrustedConfig, requestContext) {
|
|
9780
|
-
const config = validateAdapterConfig$
|
|
9827
|
+
const config = validateAdapterConfig$9(untrustedConfig, getSemanticMetrics_ConfigPropertyNames);
|
|
9781
9828
|
// Invalid or incomplete config
|
|
9782
9829
|
if (config === null) {
|
|
9783
9830
|
return null;
|
|
@@ -9786,22 +9833,22 @@ const getSemanticMetricsAdapterFactory = (luvio) => function SemanticAuthoring__
|
|
|
9786
9833
|
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
9787
9834
|
};
|
|
9788
9835
|
|
|
9789
|
-
function select$
|
|
9790
|
-
return select$
|
|
9836
|
+
function select$d(luvio, params) {
|
|
9837
|
+
return select$f();
|
|
9791
9838
|
}
|
|
9792
9839
|
function keyBuilder$d(luvio, params) {
|
|
9793
|
-
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
9840
|
+
return keyPrefix + '::SemanticMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'metricIds:' + params.urlParams.metricIds + ')';
|
|
9794
9841
|
}
|
|
9795
|
-
function getResponseCacheKeys$
|
|
9842
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
9796
9843
|
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
9797
9844
|
}
|
|
9798
|
-
function ingestSuccess$
|
|
9845
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
9799
9846
|
const { body } = response;
|
|
9800
9847
|
const key = keyBuilder$d(luvio, resourceParams);
|
|
9801
9848
|
luvio.storeIngest(key, ingest$4, body);
|
|
9802
9849
|
const snapshot = luvio.storeLookup({
|
|
9803
9850
|
recordId: key,
|
|
9804
|
-
node: select$
|
|
9851
|
+
node: select$d(),
|
|
9805
9852
|
variables: {},
|
|
9806
9853
|
}, snapshotRefresh);
|
|
9807
9854
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9818,74 +9865,76 @@ function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
|
9818
9865
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9819
9866
|
return errorSnapshot;
|
|
9820
9867
|
}
|
|
9821
|
-
function createResourceRequest$
|
|
9868
|
+
function createResourceRequest$8(config) {
|
|
9822
9869
|
const headers = {};
|
|
9823
9870
|
return {
|
|
9824
|
-
baseUri: '/services/data/
|
|
9871
|
+
baseUri: '/services/data/v64.0',
|
|
9825
9872
|
basePath: '/ssot/semantic/metrics/' + config.urlParams.metricIds + '',
|
|
9826
9873
|
method: 'get',
|
|
9827
9874
|
body: null,
|
|
9828
9875
|
urlParams: config.urlParams,
|
|
9829
|
-
queryParams:
|
|
9876
|
+
queryParams: config.queryParams,
|
|
9830
9877
|
headers,
|
|
9831
9878
|
priority: 'normal',
|
|
9832
9879
|
};
|
|
9833
9880
|
}
|
|
9834
9881
|
|
|
9835
|
-
const adapterName$
|
|
9882
|
+
const adapterName$8 = 'getSemanticMetricsByIds';
|
|
9836
9883
|
const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
9837
9884
|
generateParamConfigMetadata('metricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9885
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9886
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9838
9887
|
];
|
|
9839
|
-
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9840
|
-
const createResourceParams$
|
|
9888
|
+
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9889
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9841
9890
|
function keyBuilder$c(luvio, config) {
|
|
9842
|
-
const resourceParams = createResourceParams$
|
|
9891
|
+
const resourceParams = createResourceParams$8(config);
|
|
9843
9892
|
return keyBuilder$d(luvio, resourceParams);
|
|
9844
9893
|
}
|
|
9845
|
-
function typeCheckConfig$
|
|
9894
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
9846
9895
|
const config = {};
|
|
9847
|
-
typeCheckConfig$
|
|
9896
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9848
9897
|
return config;
|
|
9849
9898
|
}
|
|
9850
|
-
function validateAdapterConfig$
|
|
9899
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
9851
9900
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9852
9901
|
return null;
|
|
9853
9902
|
}
|
|
9854
9903
|
if (process.env.NODE_ENV !== 'production') {
|
|
9855
9904
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9856
9905
|
}
|
|
9857
|
-
const config = typeCheckConfig$
|
|
9906
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
9858
9907
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9859
9908
|
return null;
|
|
9860
9909
|
}
|
|
9861
9910
|
return config;
|
|
9862
9911
|
}
|
|
9863
9912
|
function adapterFragment$6(luvio, config) {
|
|
9864
|
-
createResourceParams$
|
|
9865
|
-
return select$
|
|
9913
|
+
createResourceParams$8(config);
|
|
9914
|
+
return select$d();
|
|
9866
9915
|
}
|
|
9867
9916
|
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
9868
|
-
const snapshot = ingestSuccess$
|
|
9917
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
9869
9918
|
config,
|
|
9870
|
-
resolve: () => buildNetworkSnapshot$
|
|
9919
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9871
9920
|
});
|
|
9872
9921
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9873
9922
|
}
|
|
9874
9923
|
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
9875
9924
|
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
9876
9925
|
config,
|
|
9877
|
-
resolve: () => buildNetworkSnapshot$
|
|
9926
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9878
9927
|
});
|
|
9879
9928
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9880
9929
|
}
|
|
9881
|
-
function buildNetworkSnapshot$
|
|
9882
|
-
const resourceParams = createResourceParams$
|
|
9883
|
-
const request = createResourceRequest$
|
|
9930
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
9931
|
+
const resourceParams = createResourceParams$8(config);
|
|
9932
|
+
const request = createResourceRequest$8(resourceParams);
|
|
9884
9933
|
return luvio.dispatchResourceRequest(request, options)
|
|
9885
9934
|
.then((response) => {
|
|
9886
9935
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
9887
9936
|
const cache = new StoreKeyMap();
|
|
9888
|
-
getResponseCacheKeys$
|
|
9937
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
9889
9938
|
return cache;
|
|
9890
9939
|
});
|
|
9891
9940
|
}, (response) => {
|
|
@@ -9893,7 +9942,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
9893
9942
|
});
|
|
9894
9943
|
}
|
|
9895
9944
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9896
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
9945
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
9897
9946
|
}
|
|
9898
9947
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9899
9948
|
const { luvio, config } = context;
|
|
@@ -9904,12 +9953,12 @@ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
|
9904
9953
|
};
|
|
9905
9954
|
const cacheSnapshot = storeLookup(selector, {
|
|
9906
9955
|
config,
|
|
9907
|
-
resolve: () => buildNetworkSnapshot$
|
|
9956
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
9908
9957
|
});
|
|
9909
9958
|
return cacheSnapshot;
|
|
9910
9959
|
}
|
|
9911
9960
|
const getSemanticMetricsByIdsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsByIds(untrustedConfig, requestContext) {
|
|
9912
|
-
const config = validateAdapterConfig$
|
|
9961
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSemanticMetricsByIds_ConfigPropertyNames);
|
|
9913
9962
|
// Invalid or incomplete config
|
|
9914
9963
|
if (config === null) {
|
|
9915
9964
|
return null;
|
|
@@ -9970,7 +10019,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
9970
10019
|
}
|
|
9971
10020
|
return input;
|
|
9972
10021
|
}
|
|
9973
|
-
const select$
|
|
10022
|
+
const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect() {
|
|
9974
10023
|
return {
|
|
9975
10024
|
kind: 'Fragment',
|
|
9976
10025
|
version: VERSION$4,
|
|
@@ -9986,7 +10035,7 @@ const select$b = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
9986
10035
|
kind: 'Link',
|
|
9987
10036
|
plural: true,
|
|
9988
10037
|
required: false,
|
|
9989
|
-
fragment: select$
|
|
10038
|
+
fragment: select$i()
|
|
9990
10039
|
}
|
|
9991
10040
|
]
|
|
9992
10041
|
};
|
|
@@ -10098,7 +10147,7 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
10098
10147
|
}
|
|
10099
10148
|
return input;
|
|
10100
10149
|
}
|
|
10101
|
-
const select$
|
|
10150
|
+
const select$b = function SemanticSubMetricsByMetricCollectionOutputRepresentationSelect() {
|
|
10102
10151
|
return {
|
|
10103
10152
|
kind: 'Fragment',
|
|
10104
10153
|
version: VERSION$3,
|
|
@@ -10109,7 +10158,7 @@ const select$a = function SemanticSubMetricsByMetricCollectionOutputRepresentati
|
|
|
10109
10158
|
kind: 'Link',
|
|
10110
10159
|
plural: true,
|
|
10111
10160
|
required: false,
|
|
10112
|
-
fragment: select$
|
|
10161
|
+
fragment: select$c()
|
|
10113
10162
|
}
|
|
10114
10163
|
]
|
|
10115
10164
|
};
|
|
@@ -10163,22 +10212,22 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10163
10212
|
}
|
|
10164
10213
|
}
|
|
10165
10214
|
|
|
10166
|
-
function select$
|
|
10167
|
-
return select$
|
|
10215
|
+
function select$a(luvio, params) {
|
|
10216
|
+
return select$b();
|
|
10168
10217
|
}
|
|
10169
10218
|
function keyBuilder$b(luvio, params) {
|
|
10170
10219
|
return keyPrefix + '::SemanticSubMetricsByMetricCollectionOutputRepresentation:(' + 'metricApiNames:' + params.urlParams.metricApiNames + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
10171
10220
|
}
|
|
10172
|
-
function getResponseCacheKeys$
|
|
10221
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
10173
10222
|
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
|
|
10174
10223
|
}
|
|
10175
|
-
function ingestSuccess$
|
|
10224
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
10176
10225
|
const { body } = response;
|
|
10177
10226
|
const key = keyBuilder$b(luvio, resourceParams);
|
|
10178
10227
|
luvio.storeIngest(key, ingest$2, body);
|
|
10179
10228
|
const snapshot = luvio.storeLookup({
|
|
10180
10229
|
recordId: key,
|
|
10181
|
-
node: select$
|
|
10230
|
+
node: select$a(),
|
|
10182
10231
|
variables: {},
|
|
10183
10232
|
}, snapshotRefresh);
|
|
10184
10233
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10195,10 +10244,10 @@ function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
|
10195
10244
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10196
10245
|
return errorSnapshot;
|
|
10197
10246
|
}
|
|
10198
|
-
function createResourceRequest$
|
|
10247
|
+
function createResourceRequest$7(config) {
|
|
10199
10248
|
const headers = {};
|
|
10200
10249
|
return {
|
|
10201
|
-
baseUri: '/services/data/
|
|
10250
|
+
baseUri: '/services/data/v64.0',
|
|
10202
10251
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/metric-api-names/' + config.urlParams.metricApiNames + '/sub-metrics',
|
|
10203
10252
|
method: 'get',
|
|
10204
10253
|
body: null,
|
|
@@ -10209,61 +10258,61 @@ function createResourceRequest$6(config) {
|
|
|
10209
10258
|
};
|
|
10210
10259
|
}
|
|
10211
10260
|
|
|
10212
|
-
const adapterName$
|
|
10261
|
+
const adapterName$7 = 'getSemanticMetricsToSubMetrics';
|
|
10213
10262
|
const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
10214
10263
|
generateParamConfigMetadata('metricApiNames', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10215
10264
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10216
10265
|
];
|
|
10217
|
-
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10218
|
-
const createResourceParams$
|
|
10266
|
+
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10267
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10219
10268
|
function keyBuilder$a(luvio, config) {
|
|
10220
|
-
const resourceParams = createResourceParams$
|
|
10269
|
+
const resourceParams = createResourceParams$7(config);
|
|
10221
10270
|
return keyBuilder$b(luvio, resourceParams);
|
|
10222
10271
|
}
|
|
10223
|
-
function typeCheckConfig$
|
|
10272
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
10224
10273
|
const config = {};
|
|
10225
|
-
typeCheckConfig$
|
|
10274
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10226
10275
|
return config;
|
|
10227
10276
|
}
|
|
10228
|
-
function validateAdapterConfig$
|
|
10277
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
10229
10278
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10230
10279
|
return null;
|
|
10231
10280
|
}
|
|
10232
10281
|
if (process.env.NODE_ENV !== 'production') {
|
|
10233
10282
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10234
10283
|
}
|
|
10235
|
-
const config = typeCheckConfig$
|
|
10284
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
10236
10285
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10237
10286
|
return null;
|
|
10238
10287
|
}
|
|
10239
10288
|
return config;
|
|
10240
10289
|
}
|
|
10241
10290
|
function adapterFragment$5(luvio, config) {
|
|
10242
|
-
createResourceParams$
|
|
10243
|
-
return select$
|
|
10291
|
+
createResourceParams$7(config);
|
|
10292
|
+
return select$a();
|
|
10244
10293
|
}
|
|
10245
10294
|
function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
|
|
10246
|
-
const snapshot = ingestSuccess$
|
|
10295
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
10247
10296
|
config,
|
|
10248
|
-
resolve: () => buildNetworkSnapshot$
|
|
10297
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10249
10298
|
});
|
|
10250
10299
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10251
10300
|
}
|
|
10252
10301
|
function onFetchResponseError$5(luvio, config, resourceParams, response) {
|
|
10253
10302
|
const snapshot = ingestError$5(luvio, resourceParams, response, {
|
|
10254
10303
|
config,
|
|
10255
|
-
resolve: () => buildNetworkSnapshot$
|
|
10304
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10256
10305
|
});
|
|
10257
10306
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10258
10307
|
}
|
|
10259
|
-
function buildNetworkSnapshot$
|
|
10260
|
-
const resourceParams = createResourceParams$
|
|
10261
|
-
const request = createResourceRequest$
|
|
10308
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
10309
|
+
const resourceParams = createResourceParams$7(config);
|
|
10310
|
+
const request = createResourceRequest$7(resourceParams);
|
|
10262
10311
|
return luvio.dispatchResourceRequest(request, options)
|
|
10263
10312
|
.then((response) => {
|
|
10264
10313
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
10265
10314
|
const cache = new StoreKeyMap();
|
|
10266
|
-
getResponseCacheKeys$
|
|
10315
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
10267
10316
|
return cache;
|
|
10268
10317
|
});
|
|
10269
10318
|
}, (response) => {
|
|
@@ -10271,7 +10320,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
10271
10320
|
});
|
|
10272
10321
|
}
|
|
10273
10322
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10274
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10323
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
10275
10324
|
}
|
|
10276
10325
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10277
10326
|
const { luvio, config } = context;
|
|
@@ -10282,12 +10331,12 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
10282
10331
|
};
|
|
10283
10332
|
const cacheSnapshot = storeLookup(selector, {
|
|
10284
10333
|
config,
|
|
10285
|
-
resolve: () => buildNetworkSnapshot$
|
|
10334
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
10286
10335
|
});
|
|
10287
10336
|
return cacheSnapshot;
|
|
10288
10337
|
}
|
|
10289
10338
|
const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticMetricsToSubMetrics(untrustedConfig, requestContext) {
|
|
10290
|
-
const config = validateAdapterConfig$
|
|
10339
|
+
const config = validateAdapterConfig$7(untrustedConfig, getSemanticMetricsToSubMetrics_ConfigPropertyNames);
|
|
10291
10340
|
// Invalid or incomplete config
|
|
10292
10341
|
if (config === null) {
|
|
10293
10342
|
return null;
|
|
@@ -10296,24 +10345,24 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
10296
10345
|
buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
|
|
10297
10346
|
};
|
|
10298
10347
|
|
|
10299
|
-
function select$
|
|
10300
|
-
return select$
|
|
10348
|
+
function select$9(luvio, params) {
|
|
10349
|
+
return select$k();
|
|
10301
10350
|
}
|
|
10302
10351
|
function keyBuilder$9(luvio, params) {
|
|
10303
|
-
return keyBuilder$
|
|
10352
|
+
return keyBuilder$l(luvio, {
|
|
10304
10353
|
name: params.urlParams.modelApiNameOrId
|
|
10305
10354
|
});
|
|
10306
10355
|
}
|
|
10307
|
-
function getResponseCacheKeys$
|
|
10356
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
10308
10357
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
10309
10358
|
}
|
|
10310
|
-
function ingestSuccess$
|
|
10359
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
10311
10360
|
const { body } = response;
|
|
10312
10361
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
10313
10362
|
luvio.storeIngest(key, ingest$6, body);
|
|
10314
10363
|
const snapshot = luvio.storeLookup({
|
|
10315
10364
|
recordId: key,
|
|
10316
|
-
node: select$
|
|
10365
|
+
node: select$9(),
|
|
10317
10366
|
variables: {},
|
|
10318
10367
|
}, snapshotRefresh);
|
|
10319
10368
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -10330,10 +10379,10 @@ function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
|
10330
10379
|
luvio.storeIngestError(key, errorSnapshot);
|
|
10331
10380
|
return errorSnapshot;
|
|
10332
10381
|
}
|
|
10333
|
-
function createResourceRequest$
|
|
10382
|
+
function createResourceRequest$6(config) {
|
|
10334
10383
|
const headers = {};
|
|
10335
10384
|
return {
|
|
10336
|
-
baseUri: '/services/data/
|
|
10385
|
+
baseUri: '/services/data/v64.0',
|
|
10337
10386
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
10338
10387
|
method: 'get',
|
|
10339
10388
|
body: null,
|
|
@@ -10349,66 +10398,66 @@ function createResourceRequestFromRepresentation$1(representation) {
|
|
|
10349
10398
|
queryParams: {},
|
|
10350
10399
|
};
|
|
10351
10400
|
config.urlParams.modelApiNameOrId = representation.id;
|
|
10352
|
-
return createResourceRequest$
|
|
10401
|
+
return createResourceRequest$6(config);
|
|
10353
10402
|
}
|
|
10354
10403
|
|
|
10355
|
-
const adapterName$
|
|
10404
|
+
const adapterName$6 = 'getSemanticModel';
|
|
10356
10405
|
const getSemanticModel_ConfigPropertyMetadata = [
|
|
10357
10406
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10358
10407
|
generateParamConfigMetadata('fieldName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10359
10408
|
generateParamConfigMetadata('includeModelContent', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10360
10409
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10361
10410
|
];
|
|
10362
|
-
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
10363
|
-
const createResourceParams$
|
|
10411
|
+
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModel_ConfigPropertyMetadata);
|
|
10412
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(getSemanticModel_ConfigPropertyMetadata);
|
|
10364
10413
|
function keyBuilder$8(luvio, config) {
|
|
10365
|
-
const resourceParams = createResourceParams$
|
|
10414
|
+
const resourceParams = createResourceParams$6(config);
|
|
10366
10415
|
return keyBuilder$9(luvio, resourceParams);
|
|
10367
10416
|
}
|
|
10368
|
-
function typeCheckConfig$
|
|
10417
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
10369
10418
|
const config = {};
|
|
10370
|
-
typeCheckConfig$
|
|
10419
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10371
10420
|
return config;
|
|
10372
10421
|
}
|
|
10373
|
-
function validateAdapterConfig$
|
|
10422
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
10374
10423
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
10375
10424
|
return null;
|
|
10376
10425
|
}
|
|
10377
10426
|
if (process.env.NODE_ENV !== 'production') {
|
|
10378
10427
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
10379
10428
|
}
|
|
10380
|
-
const config = typeCheckConfig$
|
|
10429
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
10381
10430
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
10382
10431
|
return null;
|
|
10383
10432
|
}
|
|
10384
10433
|
return config;
|
|
10385
10434
|
}
|
|
10386
10435
|
function adapterFragment$4(luvio, config) {
|
|
10387
|
-
createResourceParams$
|
|
10388
|
-
return select$
|
|
10436
|
+
createResourceParams$6(config);
|
|
10437
|
+
return select$9();
|
|
10389
10438
|
}
|
|
10390
10439
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
10391
|
-
const snapshot = ingestSuccess$
|
|
10440
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
10392
10441
|
config,
|
|
10393
|
-
resolve: () => buildNetworkSnapshot$
|
|
10442
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10394
10443
|
});
|
|
10395
10444
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10396
10445
|
}
|
|
10397
10446
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
10398
10447
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
10399
10448
|
config,
|
|
10400
|
-
resolve: () => buildNetworkSnapshot$
|
|
10449
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10401
10450
|
});
|
|
10402
10451
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
10403
10452
|
}
|
|
10404
|
-
function buildNetworkSnapshot$
|
|
10405
|
-
const resourceParams = createResourceParams$
|
|
10406
|
-
const request = createResourceRequest$
|
|
10453
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
10454
|
+
const resourceParams = createResourceParams$6(config);
|
|
10455
|
+
const request = createResourceRequest$6(resourceParams);
|
|
10407
10456
|
return luvio.dispatchResourceRequest(request, options)
|
|
10408
10457
|
.then((response) => {
|
|
10409
10458
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
10410
10459
|
const cache = new StoreKeyMap();
|
|
10411
|
-
getResponseCacheKeys$
|
|
10460
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
10412
10461
|
return cache;
|
|
10413
10462
|
});
|
|
10414
10463
|
}, (response) => {
|
|
@@ -10416,7 +10465,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
10416
10465
|
});
|
|
10417
10466
|
}
|
|
10418
10467
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
10419
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
10468
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
10420
10469
|
}
|
|
10421
10470
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
10422
10471
|
const { luvio, config } = context;
|
|
@@ -10427,12 +10476,12 @@ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
|
10427
10476
|
};
|
|
10428
10477
|
const cacheSnapshot = storeLookup(selector, {
|
|
10429
10478
|
config,
|
|
10430
|
-
resolve: () => buildNetworkSnapshot$
|
|
10479
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
10431
10480
|
});
|
|
10432
10481
|
return cacheSnapshot;
|
|
10433
10482
|
}
|
|
10434
10483
|
const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModel(untrustedConfig, requestContext) {
|
|
10435
|
-
const config = validateAdapterConfig$
|
|
10484
|
+
const config = validateAdapterConfig$6(untrustedConfig, getSemanticModel_ConfigPropertyNames);
|
|
10436
10485
|
// Invalid or incomplete config
|
|
10437
10486
|
if (config === null) {
|
|
10438
10487
|
return null;
|
|
@@ -10442,7 +10491,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10442
10491
|
};
|
|
10443
10492
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
10444
10493
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
10445
|
-
const keys = configs.map(c => keyBuilder$
|
|
10494
|
+
const keys = configs.map(c => keyBuilder$l(luvio, c));
|
|
10446
10495
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10447
10496
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10448
10497
|
const { key, record: val } = entries[i];
|
|
@@ -10504,7 +10553,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10504
10553
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
10505
10554
|
const obj_baseModels_item = obj_baseModels[i];
|
|
10506
10555
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
10507
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
10556
|
+
const referencepath_baseModels_itemValidationError = validate$A(obj_baseModels_item, path_baseModels_item);
|
|
10508
10557
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
10509
10558
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
10510
10559
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10675,8 +10724,8 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10675
10724
|
})();
|
|
10676
10725
|
return v_error === undefined ? null : v_error;
|
|
10677
10726
|
}
|
|
10678
|
-
const select$
|
|
10679
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
10727
|
+
const select$8 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
10728
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$G();
|
|
10680
10729
|
return {
|
|
10681
10730
|
kind: 'Fragment',
|
|
10682
10731
|
version: VERSION$2,
|
|
@@ -11213,8 +11262,8 @@ const RepresentationType$1 = 'SemanticModelCollectionOutputRepresentation';
|
|
|
11213
11262
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
11214
11263
|
return input;
|
|
11215
11264
|
}
|
|
11216
|
-
const select$
|
|
11217
|
-
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$
|
|
11265
|
+
const select$7 = function SemanticModelCollectionOutputRepresentationSelect() {
|
|
11266
|
+
const { selections: SemanticModelPartialOutputRepresentation__selections, opaque: SemanticModelPartialOutputRepresentation__opaque, } = select$8();
|
|
11218
11267
|
return {
|
|
11219
11268
|
kind: 'Fragment',
|
|
11220
11269
|
version: VERSION$1,
|
|
@@ -11345,22 +11394,22 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11345
11394
|
});
|
|
11346
11395
|
}
|
|
11347
11396
|
|
|
11348
|
-
function select$
|
|
11349
|
-
return select$
|
|
11397
|
+
function select$6(luvio, params) {
|
|
11398
|
+
return select$7();
|
|
11350
11399
|
}
|
|
11351
11400
|
function keyBuilder$7(luvio, params) {
|
|
11352
11401
|
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 + ')';
|
|
11353
11402
|
}
|
|
11354
|
-
function getResponseCacheKeys$
|
|
11403
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
11355
11404
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
11356
11405
|
}
|
|
11357
|
-
function ingestSuccess$
|
|
11406
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
11358
11407
|
const { body } = response;
|
|
11359
11408
|
const key = keyBuilder$7(luvio, resourceParams);
|
|
11360
11409
|
luvio.storeIngest(key, ingest$1, body);
|
|
11361
11410
|
const snapshot = luvio.storeLookup({
|
|
11362
11411
|
recordId: key,
|
|
11363
|
-
node: select$
|
|
11412
|
+
node: select$6(),
|
|
11364
11413
|
variables: {},
|
|
11365
11414
|
}, snapshotRefresh);
|
|
11366
11415
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11377,10 +11426,10 @@ function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
|
11377
11426
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11378
11427
|
return errorSnapshot;
|
|
11379
11428
|
}
|
|
11380
|
-
function createResourceRequest$
|
|
11429
|
+
function createResourceRequest$5(config) {
|
|
11381
11430
|
const headers = {};
|
|
11382
11431
|
return {
|
|
11383
|
-
baseUri: '/services/data/
|
|
11432
|
+
baseUri: '/services/data/v64.0',
|
|
11384
11433
|
basePath: '/ssot/semantic/models',
|
|
11385
11434
|
method: 'get',
|
|
11386
11435
|
body: null,
|
|
@@ -11391,7 +11440,7 @@ function createResourceRequest$4(config) {
|
|
|
11391
11440
|
};
|
|
11392
11441
|
}
|
|
11393
11442
|
|
|
11394
|
-
const adapterName$
|
|
11443
|
+
const adapterName$5 = 'getSemanticModels';
|
|
11395
11444
|
const getSemanticModels_ConfigPropertyMetadata = [
|
|
11396
11445
|
generateParamConfigMetadata('app', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11397
11446
|
generateParamConfigMetadata('category', false, 1 /* QueryParameter */, 0 /* String */),
|
|
@@ -11403,56 +11452,56 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
11403
11452
|
generateParamConfigMetadata('sourceCreation', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11404
11453
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11405
11454
|
];
|
|
11406
|
-
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11407
|
-
const createResourceParams$
|
|
11455
|
+
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModels_ConfigPropertyMetadata);
|
|
11456
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getSemanticModels_ConfigPropertyMetadata);
|
|
11408
11457
|
function keyBuilder$6(luvio, config) {
|
|
11409
|
-
const resourceParams = createResourceParams$
|
|
11458
|
+
const resourceParams = createResourceParams$5(config);
|
|
11410
11459
|
return keyBuilder$7(luvio, resourceParams);
|
|
11411
11460
|
}
|
|
11412
|
-
function typeCheckConfig$
|
|
11461
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
11413
11462
|
const config = {};
|
|
11414
|
-
typeCheckConfig$
|
|
11463
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
11415
11464
|
return config;
|
|
11416
11465
|
}
|
|
11417
|
-
function validateAdapterConfig$
|
|
11466
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
11418
11467
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11419
11468
|
return null;
|
|
11420
11469
|
}
|
|
11421
11470
|
if (process.env.NODE_ENV !== 'production') {
|
|
11422
11471
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11423
11472
|
}
|
|
11424
|
-
const config = typeCheckConfig$
|
|
11473
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
11425
11474
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11426
11475
|
return null;
|
|
11427
11476
|
}
|
|
11428
11477
|
return config;
|
|
11429
11478
|
}
|
|
11430
11479
|
function adapterFragment$3(luvio, config) {
|
|
11431
|
-
createResourceParams$
|
|
11432
|
-
return select$
|
|
11480
|
+
createResourceParams$5(config);
|
|
11481
|
+
return select$6();
|
|
11433
11482
|
}
|
|
11434
11483
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
11435
|
-
const snapshot = ingestSuccess$
|
|
11484
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
11436
11485
|
config,
|
|
11437
|
-
resolve: () => buildNetworkSnapshot$
|
|
11486
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11438
11487
|
});
|
|
11439
11488
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11440
11489
|
}
|
|
11441
11490
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
11442
11491
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
11443
11492
|
config,
|
|
11444
|
-
resolve: () => buildNetworkSnapshot$
|
|
11493
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11445
11494
|
});
|
|
11446
11495
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11447
11496
|
}
|
|
11448
|
-
function buildNetworkSnapshot$
|
|
11449
|
-
const resourceParams = createResourceParams$
|
|
11450
|
-
const request = createResourceRequest$
|
|
11497
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
11498
|
+
const resourceParams = createResourceParams$5(config);
|
|
11499
|
+
const request = createResourceRequest$5(resourceParams);
|
|
11451
11500
|
return luvio.dispatchResourceRequest(request, options)
|
|
11452
11501
|
.then((response) => {
|
|
11453
11502
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
11454
11503
|
const cache = new StoreKeyMap();
|
|
11455
|
-
getResponseCacheKeys$
|
|
11504
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
11456
11505
|
return cache;
|
|
11457
11506
|
});
|
|
11458
11507
|
}, (response) => {
|
|
@@ -11460,7 +11509,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11460
11509
|
});
|
|
11461
11510
|
}
|
|
11462
11511
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11463
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11512
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
11464
11513
|
}
|
|
11465
11514
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11466
11515
|
const { luvio, config } = context;
|
|
@@ -11471,12 +11520,12 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
11471
11520
|
};
|
|
11472
11521
|
const cacheSnapshot = storeLookup(selector, {
|
|
11473
11522
|
config,
|
|
11474
|
-
resolve: () => buildNetworkSnapshot$
|
|
11523
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
11475
11524
|
});
|
|
11476
11525
|
return cacheSnapshot;
|
|
11477
11526
|
}
|
|
11478
11527
|
const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticModels(untrustedConfig, requestContext) {
|
|
11479
|
-
const config = validateAdapterConfig$
|
|
11528
|
+
const config = validateAdapterConfig$5(untrustedConfig, getSemanticModels_ConfigPropertyNames);
|
|
11480
11529
|
// Invalid or incomplete config
|
|
11481
11530
|
if (config === null) {
|
|
11482
11531
|
return null;
|
|
@@ -11485,24 +11534,24 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11485
11534
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
11486
11535
|
};
|
|
11487
11536
|
|
|
11488
|
-
function select$
|
|
11489
|
-
return select$
|
|
11537
|
+
function select$5(luvio, params) {
|
|
11538
|
+
return select$i();
|
|
11490
11539
|
}
|
|
11491
11540
|
function keyBuilder$5(luvio, params) {
|
|
11492
|
-
return keyBuilder$
|
|
11541
|
+
return keyBuilder$k(luvio, {
|
|
11493
11542
|
name: params.urlParams.subMetricNameOrId
|
|
11494
11543
|
});
|
|
11495
11544
|
}
|
|
11496
|
-
function getResponseCacheKeys$
|
|
11545
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
11497
11546
|
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
11498
11547
|
}
|
|
11499
|
-
function ingestSuccess$
|
|
11548
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11500
11549
|
const { body } = response;
|
|
11501
11550
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
11502
11551
|
luvio.storeIngest(key, ingest$5, body);
|
|
11503
11552
|
const snapshot = luvio.storeLookup({
|
|
11504
11553
|
recordId: key,
|
|
11505
|
-
node: select$
|
|
11554
|
+
node: select$5(),
|
|
11506
11555
|
variables: {},
|
|
11507
11556
|
}, snapshotRefresh);
|
|
11508
11557
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11519,10 +11568,10 @@ function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
|
11519
11568
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11520
11569
|
return errorSnapshot;
|
|
11521
11570
|
}
|
|
11522
|
-
function createResourceRequest$
|
|
11571
|
+
function createResourceRequest$4(config) {
|
|
11523
11572
|
const headers = {};
|
|
11524
11573
|
return {
|
|
11525
|
-
baseUri: '/services/data/
|
|
11574
|
+
baseUri: '/services/data/v64.0',
|
|
11526
11575
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '',
|
|
11527
11576
|
method: 'get',
|
|
11528
11577
|
body: null,
|
|
@@ -11537,64 +11586,64 @@ function createResourceRequestFromRepresentation(representation) {
|
|
|
11537
11586
|
urlParams: {},
|
|
11538
11587
|
};
|
|
11539
11588
|
config.urlParams.subMetricNameOrId = representation.id;
|
|
11540
|
-
return createResourceRequest$
|
|
11589
|
+
return createResourceRequest$4(config);
|
|
11541
11590
|
}
|
|
11542
11591
|
|
|
11543
|
-
const adapterName$
|
|
11592
|
+
const adapterName$4 = 'getSemanticSubMetric';
|
|
11544
11593
|
const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
11545
11594
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11546
11595
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11547
11596
|
];
|
|
11548
|
-
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11549
|
-
const createResourceParams$
|
|
11597
|
+
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11598
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11550
11599
|
function keyBuilder$4(luvio, config) {
|
|
11551
|
-
const resourceParams = createResourceParams$
|
|
11600
|
+
const resourceParams = createResourceParams$4(config);
|
|
11552
11601
|
return keyBuilder$5(luvio, resourceParams);
|
|
11553
11602
|
}
|
|
11554
|
-
function typeCheckConfig$
|
|
11603
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
11555
11604
|
const config = {};
|
|
11556
|
-
typeCheckConfig$
|
|
11605
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11557
11606
|
return config;
|
|
11558
11607
|
}
|
|
11559
|
-
function validateAdapterConfig$
|
|
11608
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
11560
11609
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11561
11610
|
return null;
|
|
11562
11611
|
}
|
|
11563
11612
|
if (process.env.NODE_ENV !== 'production') {
|
|
11564
11613
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11565
11614
|
}
|
|
11566
|
-
const config = typeCheckConfig$
|
|
11615
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
11567
11616
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11568
11617
|
return null;
|
|
11569
11618
|
}
|
|
11570
11619
|
return config;
|
|
11571
11620
|
}
|
|
11572
11621
|
function adapterFragment$2(luvio, config) {
|
|
11573
|
-
createResourceParams$
|
|
11574
|
-
return select$
|
|
11622
|
+
createResourceParams$4(config);
|
|
11623
|
+
return select$5();
|
|
11575
11624
|
}
|
|
11576
11625
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
11577
|
-
const snapshot = ingestSuccess$
|
|
11626
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
11578
11627
|
config,
|
|
11579
|
-
resolve: () => buildNetworkSnapshot$
|
|
11628
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11580
11629
|
});
|
|
11581
11630
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11582
11631
|
}
|
|
11583
11632
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
11584
11633
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
11585
11634
|
config,
|
|
11586
|
-
resolve: () => buildNetworkSnapshot$
|
|
11635
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11587
11636
|
});
|
|
11588
11637
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11589
11638
|
}
|
|
11590
|
-
function buildNetworkSnapshot$
|
|
11591
|
-
const resourceParams = createResourceParams$
|
|
11592
|
-
const request = createResourceRequest$
|
|
11639
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
11640
|
+
const resourceParams = createResourceParams$4(config);
|
|
11641
|
+
const request = createResourceRequest$4(resourceParams);
|
|
11593
11642
|
return luvio.dispatchResourceRequest(request, options)
|
|
11594
11643
|
.then((response) => {
|
|
11595
11644
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
11596
11645
|
const cache = new StoreKeyMap();
|
|
11597
|
-
getResponseCacheKeys$
|
|
11646
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
11598
11647
|
return cache;
|
|
11599
11648
|
});
|
|
11600
11649
|
}, (response) => {
|
|
@@ -11602,7 +11651,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11602
11651
|
});
|
|
11603
11652
|
}
|
|
11604
11653
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11605
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11654
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
11606
11655
|
}
|
|
11607
11656
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11608
11657
|
const { luvio, config } = context;
|
|
@@ -11613,12 +11662,12 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
11613
11662
|
};
|
|
11614
11663
|
const cacheSnapshot = storeLookup(selector, {
|
|
11615
11664
|
config,
|
|
11616
|
-
resolve: () => buildNetworkSnapshot$
|
|
11665
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
11617
11666
|
});
|
|
11618
11667
|
return cacheSnapshot;
|
|
11619
11668
|
}
|
|
11620
11669
|
const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetric(untrustedConfig, requestContext) {
|
|
11621
|
-
const config = validateAdapterConfig$
|
|
11670
|
+
const config = validateAdapterConfig$4(untrustedConfig, getSemanticSubMetric_ConfigPropertyNames);
|
|
11622
11671
|
// Invalid or incomplete config
|
|
11623
11672
|
if (config === null) {
|
|
11624
11673
|
return null;
|
|
@@ -11628,7 +11677,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11628
11677
|
};
|
|
11629
11678
|
const notifyChangeFactory = (luvio, options) => {
|
|
11630
11679
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
11631
|
-
const keys = configs.map(c => keyBuilder$
|
|
11680
|
+
const keys = configs.map(c => keyBuilder$k(luvio, c));
|
|
11632
11681
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11633
11682
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11634
11683
|
const { key, record: val } = entries[i];
|
|
@@ -11701,7 +11750,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11701
11750
|
}
|
|
11702
11751
|
return input;
|
|
11703
11752
|
}
|
|
11704
|
-
const select$
|
|
11753
|
+
const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect() {
|
|
11705
11754
|
return {
|
|
11706
11755
|
kind: 'Fragment',
|
|
11707
11756
|
version: VERSION,
|
|
@@ -11712,7 +11761,7 @@ const select$3 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11712
11761
|
kind: 'Link',
|
|
11713
11762
|
plural: true,
|
|
11714
11763
|
required: false,
|
|
11715
|
-
fragment: select$
|
|
11764
|
+
fragment: select$i()
|
|
11716
11765
|
}
|
|
11717
11766
|
]
|
|
11718
11767
|
};
|
|
@@ -11766,22 +11815,22 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11766
11815
|
}
|
|
11767
11816
|
}
|
|
11768
11817
|
|
|
11769
|
-
function select$
|
|
11770
|
-
return select$
|
|
11818
|
+
function select$3(luvio, params) {
|
|
11819
|
+
return select$4();
|
|
11771
11820
|
}
|
|
11772
11821
|
function keyBuilder$3(luvio, params) {
|
|
11773
11822
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
11774
11823
|
}
|
|
11775
|
-
function getResponseCacheKeys$
|
|
11824
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
11776
11825
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
11777
11826
|
}
|
|
11778
|
-
function ingestSuccess$
|
|
11827
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
11779
11828
|
const { body } = response;
|
|
11780
11829
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
11781
11830
|
luvio.storeIngest(key, ingest, body);
|
|
11782
11831
|
const snapshot = luvio.storeLookup({
|
|
11783
11832
|
recordId: key,
|
|
11784
|
-
node: select$
|
|
11833
|
+
node: select$3(),
|
|
11785
11834
|
variables: {},
|
|
11786
11835
|
}, snapshotRefresh);
|
|
11787
11836
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11798,10 +11847,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
11798
11847
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11799
11848
|
return errorSnapshot;
|
|
11800
11849
|
}
|
|
11801
|
-
function createResourceRequest$
|
|
11850
|
+
function createResourceRequest$3(config) {
|
|
11802
11851
|
const headers = {};
|
|
11803
11852
|
return {
|
|
11804
|
-
baseUri: '/services/data/
|
|
11853
|
+
baseUri: '/services/data/v64.0',
|
|
11805
11854
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics',
|
|
11806
11855
|
method: 'get',
|
|
11807
11856
|
body: null,
|
|
@@ -11812,60 +11861,60 @@ function createResourceRequest$2(config) {
|
|
|
11812
11861
|
};
|
|
11813
11862
|
}
|
|
11814
11863
|
|
|
11815
|
-
const adapterName$
|
|
11864
|
+
const adapterName$3 = 'getSemanticSubMetrics';
|
|
11816
11865
|
const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
11817
11866
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11818
11867
|
];
|
|
11819
|
-
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11820
|
-
const createResourceParams$
|
|
11868
|
+
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11869
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11821
11870
|
function keyBuilder$2(luvio, config) {
|
|
11822
|
-
const resourceParams = createResourceParams$
|
|
11871
|
+
const resourceParams = createResourceParams$3(config);
|
|
11823
11872
|
return keyBuilder$3(luvio, resourceParams);
|
|
11824
11873
|
}
|
|
11825
|
-
function typeCheckConfig$
|
|
11874
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
11826
11875
|
const config = {};
|
|
11827
|
-
typeCheckConfig$
|
|
11876
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11828
11877
|
return config;
|
|
11829
11878
|
}
|
|
11830
|
-
function validateAdapterConfig$
|
|
11879
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
11831
11880
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11832
11881
|
return null;
|
|
11833
11882
|
}
|
|
11834
11883
|
if (process.env.NODE_ENV !== 'production') {
|
|
11835
11884
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11836
11885
|
}
|
|
11837
|
-
const config = typeCheckConfig$
|
|
11886
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
11838
11887
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11839
11888
|
return null;
|
|
11840
11889
|
}
|
|
11841
11890
|
return config;
|
|
11842
11891
|
}
|
|
11843
11892
|
function adapterFragment$1(luvio, config) {
|
|
11844
|
-
createResourceParams$
|
|
11845
|
-
return select$
|
|
11893
|
+
createResourceParams$3(config);
|
|
11894
|
+
return select$3();
|
|
11846
11895
|
}
|
|
11847
11896
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
11848
|
-
const snapshot = ingestSuccess$
|
|
11897
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
11849
11898
|
config,
|
|
11850
|
-
resolve: () => buildNetworkSnapshot$
|
|
11899
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11851
11900
|
});
|
|
11852
11901
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11853
11902
|
}
|
|
11854
11903
|
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
11855
11904
|
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
11856
11905
|
config,
|
|
11857
|
-
resolve: () => buildNetworkSnapshot$
|
|
11906
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11858
11907
|
});
|
|
11859
11908
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11860
11909
|
}
|
|
11861
|
-
function buildNetworkSnapshot$
|
|
11862
|
-
const resourceParams = createResourceParams$
|
|
11863
|
-
const request = createResourceRequest$
|
|
11910
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
11911
|
+
const resourceParams = createResourceParams$3(config);
|
|
11912
|
+
const request = createResourceRequest$3(resourceParams);
|
|
11864
11913
|
return luvio.dispatchResourceRequest(request, options)
|
|
11865
11914
|
.then((response) => {
|
|
11866
11915
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
11867
11916
|
const cache = new StoreKeyMap();
|
|
11868
|
-
getResponseCacheKeys$
|
|
11917
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
11869
11918
|
return cache;
|
|
11870
11919
|
});
|
|
11871
11920
|
}, (response) => {
|
|
@@ -11873,7 +11922,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
11873
11922
|
});
|
|
11874
11923
|
}
|
|
11875
11924
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11876
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
11925
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11877
11926
|
}
|
|
11878
11927
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11879
11928
|
const { luvio, config } = context;
|
|
@@ -11884,12 +11933,12 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
11884
11933
|
};
|
|
11885
11934
|
const cacheSnapshot = storeLookup(selector, {
|
|
11886
11935
|
config,
|
|
11887
|
-
resolve: () => buildNetworkSnapshot$
|
|
11936
|
+
resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
|
|
11888
11937
|
});
|
|
11889
11938
|
return cacheSnapshot;
|
|
11890
11939
|
}
|
|
11891
11940
|
const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetrics(untrustedConfig, requestContext) {
|
|
11892
|
-
const config = validateAdapterConfig$
|
|
11941
|
+
const config = validateAdapterConfig$3(untrustedConfig, getSemanticSubMetrics_ConfigPropertyNames);
|
|
11893
11942
|
// Invalid or incomplete config
|
|
11894
11943
|
if (config === null) {
|
|
11895
11944
|
return null;
|
|
@@ -11898,22 +11947,22 @@ const getSemanticSubMetricsAdapterFactory = (luvio) => function SemanticAuthorin
|
|
|
11898
11947
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
11899
11948
|
};
|
|
11900
11949
|
|
|
11901
|
-
function select$
|
|
11902
|
-
return select$
|
|
11950
|
+
function select$2(luvio, params) {
|
|
11951
|
+
return select$4();
|
|
11903
11952
|
}
|
|
11904
11953
|
function keyBuilder$1(luvio, params) {
|
|
11905
11954
|
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
11906
11955
|
}
|
|
11907
|
-
function getResponseCacheKeys$
|
|
11956
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
11908
11957
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
11909
11958
|
}
|
|
11910
|
-
function ingestSuccess$
|
|
11959
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
11911
11960
|
const { body } = response;
|
|
11912
11961
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
11913
11962
|
luvio.storeIngest(key, ingest, body);
|
|
11914
11963
|
const snapshot = luvio.storeLookup({
|
|
11915
11964
|
recordId: key,
|
|
11916
|
-
node: select$
|
|
11965
|
+
node: select$2(),
|
|
11917
11966
|
variables: {},
|
|
11918
11967
|
}, snapshotRefresh);
|
|
11919
11968
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -11930,10 +11979,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
11930
11979
|
luvio.storeIngestError(key, errorSnapshot);
|
|
11931
11980
|
return errorSnapshot;
|
|
11932
11981
|
}
|
|
11933
|
-
function createResourceRequest$
|
|
11982
|
+
function createResourceRequest$2(config) {
|
|
11934
11983
|
const headers = {};
|
|
11935
11984
|
return {
|
|
11936
|
-
baseUri: '/services/data/
|
|
11985
|
+
baseUri: '/services/data/v64.0',
|
|
11937
11986
|
basePath: '/ssot/semantic/sub-metrics/' + config.urlParams.subMetricIds + '',
|
|
11938
11987
|
method: 'get',
|
|
11939
11988
|
body: null,
|
|
@@ -11944,60 +11993,60 @@ function createResourceRequest$1(config) {
|
|
|
11944
11993
|
};
|
|
11945
11994
|
}
|
|
11946
11995
|
|
|
11947
|
-
const adapterName$
|
|
11996
|
+
const adapterName$2 = 'getSemanticSubMetricsById';
|
|
11948
11997
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
11949
11998
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11950
11999
|
];
|
|
11951
|
-
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
11952
|
-
const createResourceParams$
|
|
12000
|
+
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12001
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11953
12002
|
function keyBuilder(luvio, config) {
|
|
11954
|
-
const resourceParams = createResourceParams$
|
|
12003
|
+
const resourceParams = createResourceParams$2(config);
|
|
11955
12004
|
return keyBuilder$1(luvio, resourceParams);
|
|
11956
12005
|
}
|
|
11957
|
-
function typeCheckConfig$
|
|
12006
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
11958
12007
|
const config = {};
|
|
11959
|
-
typeCheckConfig$
|
|
12008
|
+
typeCheckConfig$f(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
11960
12009
|
return config;
|
|
11961
12010
|
}
|
|
11962
|
-
function validateAdapterConfig$
|
|
12011
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
11963
12012
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
11964
12013
|
return null;
|
|
11965
12014
|
}
|
|
11966
12015
|
if (process.env.NODE_ENV !== 'production') {
|
|
11967
12016
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
11968
12017
|
}
|
|
11969
|
-
const config = typeCheckConfig$
|
|
12018
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
11970
12019
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
11971
12020
|
return null;
|
|
11972
12021
|
}
|
|
11973
12022
|
return config;
|
|
11974
12023
|
}
|
|
11975
12024
|
function adapterFragment(luvio, config) {
|
|
11976
|
-
createResourceParams$
|
|
11977
|
-
return select$
|
|
12025
|
+
createResourceParams$2(config);
|
|
12026
|
+
return select$2();
|
|
11978
12027
|
}
|
|
11979
12028
|
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
11980
|
-
const snapshot = ingestSuccess$
|
|
12029
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
11981
12030
|
config,
|
|
11982
|
-
resolve: () => buildNetworkSnapshot$
|
|
12031
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11983
12032
|
});
|
|
11984
12033
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11985
12034
|
}
|
|
11986
12035
|
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
11987
12036
|
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
11988
12037
|
config,
|
|
11989
|
-
resolve: () => buildNetworkSnapshot$
|
|
12038
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
11990
12039
|
});
|
|
11991
12040
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
11992
12041
|
}
|
|
11993
|
-
function buildNetworkSnapshot$
|
|
11994
|
-
const resourceParams = createResourceParams$
|
|
11995
|
-
const request = createResourceRequest$
|
|
12042
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
12043
|
+
const resourceParams = createResourceParams$2(config);
|
|
12044
|
+
const request = createResourceRequest$2(resourceParams);
|
|
11996
12045
|
return luvio.dispatchResourceRequest(request, options)
|
|
11997
12046
|
.then((response) => {
|
|
11998
12047
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
11999
12048
|
const cache = new StoreKeyMap();
|
|
12000
|
-
getResponseCacheKeys$
|
|
12049
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
12001
12050
|
return cache;
|
|
12002
12051
|
});
|
|
12003
12052
|
}, (response) => {
|
|
@@ -12005,7 +12054,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
12005
12054
|
});
|
|
12006
12055
|
}
|
|
12007
12056
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12008
|
-
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
12057
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
12009
12058
|
}
|
|
12010
12059
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12011
12060
|
const { luvio, config } = context;
|
|
@@ -12016,12 +12065,12 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
12016
12065
|
};
|
|
12017
12066
|
const cacheSnapshot = storeLookup(selector, {
|
|
12018
12067
|
config,
|
|
12019
|
-
resolve: () => buildNetworkSnapshot$
|
|
12068
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
12020
12069
|
});
|
|
12021
12070
|
return cacheSnapshot;
|
|
12022
12071
|
}
|
|
12023
12072
|
const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuthoring__getSemanticSubMetricsById(untrustedConfig, requestContext) {
|
|
12024
|
-
const config = validateAdapterConfig$
|
|
12073
|
+
const config = validateAdapterConfig$2(untrustedConfig, getSemanticSubMetricsById_ConfigPropertyNames);
|
|
12025
12074
|
// Invalid or incomplete config
|
|
12026
12075
|
if (config === null) {
|
|
12027
12076
|
return null;
|
|
@@ -12030,8 +12079,113 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12030
12079
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
12031
12080
|
};
|
|
12032
12081
|
|
|
12082
|
+
function select$1(luvio, params) {
|
|
12083
|
+
return select$i();
|
|
12084
|
+
}
|
|
12085
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12086
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
12087
|
+
}
|
|
12088
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12089
|
+
const { body } = response;
|
|
12090
|
+
const key = keyBuilderFromType(luvio, body);
|
|
12091
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
12092
|
+
const snapshot = luvio.storeLookup({
|
|
12093
|
+
recordId: key,
|
|
12094
|
+
node: select$1(),
|
|
12095
|
+
variables: {},
|
|
12096
|
+
});
|
|
12097
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12098
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
12099
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
12100
|
+
}
|
|
12101
|
+
}
|
|
12102
|
+
deepFreeze(snapshot.data);
|
|
12103
|
+
return snapshot;
|
|
12104
|
+
}
|
|
12105
|
+
function createResourceRequest$1(config) {
|
|
12106
|
+
const headers = {};
|
|
12107
|
+
return {
|
|
12108
|
+
baseUri: '/services/data/v64.0',
|
|
12109
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/sub-metrics/' + config.urlParams.subMetricNameOrId + '/goal',
|
|
12110
|
+
method: 'patch',
|
|
12111
|
+
body: config.body,
|
|
12112
|
+
urlParams: config.urlParams,
|
|
12113
|
+
queryParams: {},
|
|
12114
|
+
headers,
|
|
12115
|
+
priority: 'normal',
|
|
12116
|
+
};
|
|
12117
|
+
}
|
|
12118
|
+
|
|
12119
|
+
const adapterName$1 = 'patchSemanticMetricGoal';
|
|
12120
|
+
const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
12121
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12122
|
+
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12123
|
+
generateParamConfigMetadata('forecasting', false, 2 /* Body */, 1 /* Boolean */),
|
|
12124
|
+
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12125
|
+
];
|
|
12126
|
+
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12127
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12128
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
12129
|
+
const config = {};
|
|
12130
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12131
|
+
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12132
|
+
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12133
|
+
const untrustedConfig_statusConditions_array = [];
|
|
12134
|
+
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12135
|
+
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12136
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$b(untrustedConfig_statusConditions_item);
|
|
12137
|
+
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12138
|
+
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12139
|
+
}
|
|
12140
|
+
}
|
|
12141
|
+
config.statusConditions = untrustedConfig_statusConditions_array;
|
|
12142
|
+
}
|
|
12143
|
+
return config;
|
|
12144
|
+
}
|
|
12145
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
12146
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
12147
|
+
return null;
|
|
12148
|
+
}
|
|
12149
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
12150
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
12151
|
+
}
|
|
12152
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
12153
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12154
|
+
return null;
|
|
12155
|
+
}
|
|
12156
|
+
return config;
|
|
12157
|
+
}
|
|
12158
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
12159
|
+
const resourceParams = createResourceParams$1(config);
|
|
12160
|
+
const request = createResourceRequest$1(resourceParams);
|
|
12161
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
12162
|
+
.then((response) => {
|
|
12163
|
+
return luvio.handleSuccessResponse(() => {
|
|
12164
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
12165
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
12166
|
+
}, () => {
|
|
12167
|
+
const cache = new StoreKeyMap();
|
|
12168
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
12169
|
+
return cache;
|
|
12170
|
+
});
|
|
12171
|
+
}, (response) => {
|
|
12172
|
+
deepFreeze(response);
|
|
12173
|
+
throw response;
|
|
12174
|
+
});
|
|
12175
|
+
}
|
|
12176
|
+
const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
12177
|
+
return function patchSemanticMetricGoal(untrustedConfig) {
|
|
12178
|
+
const config = validateAdapterConfig$1(untrustedConfig, patchSemanticMetricGoal_ConfigPropertyNames);
|
|
12179
|
+
// Invalid or incomplete config
|
|
12180
|
+
if (config === null) {
|
|
12181
|
+
throw new Error('Invalid config for "patchSemanticMetricGoal"');
|
|
12182
|
+
}
|
|
12183
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
12184
|
+
};
|
|
12185
|
+
};
|
|
12186
|
+
|
|
12033
12187
|
function select(luvio, params) {
|
|
12034
|
-
return select$
|
|
12188
|
+
return select$k();
|
|
12035
12189
|
}
|
|
12036
12190
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12037
12191
|
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
@@ -12056,7 +12210,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
12056
12210
|
function createResourceRequest(config) {
|
|
12057
12211
|
const headers = {};
|
|
12058
12212
|
return {
|
|
12059
|
-
baseUri: '/services/data/
|
|
12213
|
+
baseUri: '/services/data/v64.0',
|
|
12060
12214
|
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '',
|
|
12061
12215
|
method: 'patch',
|
|
12062
12216
|
body: config.body,
|
|
@@ -12090,16 +12244,16 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
12090
12244
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12091
12245
|
];
|
|
12092
12246
|
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
12093
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12247
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(patchSemanticModel_ConfigPropertyMetadata);
|
|
12094
12248
|
function typeCheckConfig(untrustedConfig) {
|
|
12095
12249
|
const config = {};
|
|
12096
|
-
typeCheckConfig$
|
|
12250
|
+
typeCheckConfig$f(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
12097
12251
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
12098
12252
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
12099
12253
|
const untrustedConfig_baseModels_array = [];
|
|
12100
12254
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
12101
12255
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
12102
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate
|
|
12256
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$Y(untrustedConfig_baseModels_item);
|
|
12103
12257
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
12104
12258
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
12105
12259
|
}
|
|
@@ -12111,7 +12265,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12111
12265
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
12112
12266
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
12113
12267
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
12114
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
12268
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$W(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12115
12269
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
12116
12270
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12117
12271
|
}
|
|
@@ -12123,7 +12277,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12123
12277
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
12124
12278
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
12125
12279
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
12126
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
12280
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$V(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12127
12281
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
12128
12282
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12129
12283
|
}
|
|
@@ -12135,7 +12289,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12135
12289
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
12136
12290
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
12137
12291
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
12138
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
12292
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$S(untrustedConfig_semanticDataObjects_item);
|
|
12139
12293
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
12140
12294
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
12141
12295
|
}
|
|
@@ -12147,7 +12301,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12147
12301
|
const untrustedConfig_semanticGroupings_array = [];
|
|
12148
12302
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
12149
12303
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
12150
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
12304
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$L(untrustedConfig_semanticGroupings_item);
|
|
12151
12305
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
12152
12306
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
12153
12307
|
}
|
|
@@ -12159,7 +12313,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12159
12313
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
12160
12314
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
12161
12315
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
12162
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
12316
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$G(untrustedConfig_semanticLogicalViews_item);
|
|
12163
12317
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
12164
12318
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
12165
12319
|
}
|
|
@@ -12171,7 +12325,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12171
12325
|
const untrustedConfig_semanticMetrics_array = [];
|
|
12172
12326
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
12173
12327
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
12174
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
12328
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$C(untrustedConfig_semanticMetrics_item);
|
|
12175
12329
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
12176
12330
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
12177
12331
|
}
|
|
@@ -12183,7 +12337,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12183
12337
|
const untrustedConfig_semanticParameters_array = [];
|
|
12184
12338
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
12185
12339
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
12186
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
12340
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$B(untrustedConfig_semanticParameters_item);
|
|
12187
12341
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
12188
12342
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
12189
12343
|
}
|
|
@@ -12195,7 +12349,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12195
12349
|
const untrustedConfig_semanticRelationships_array = [];
|
|
12196
12350
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
12197
12351
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
12198
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
12352
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$J(untrustedConfig_semanticRelationships_item);
|
|
12199
12353
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
12200
12354
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
12201
12355
|
}
|
|
@@ -12248,6 +12402,7 @@ const patchSemanticModelAdapterFactory = (luvio) => {
|
|
|
12248
12402
|
|
|
12249
12403
|
let createSemanticModel;
|
|
12250
12404
|
let createSemanticSubMetric;
|
|
12405
|
+
let deleteGoalFromSubMetric;
|
|
12251
12406
|
let deleteSemanticSubMetric;
|
|
12252
12407
|
let getSemanticMetric;
|
|
12253
12408
|
let getSemanticMetricNotifyChange;
|
|
@@ -12261,6 +12416,7 @@ let getSemanticSubMetric;
|
|
|
12261
12416
|
let getSemanticSubMetricNotifyChange;
|
|
12262
12417
|
let getSemanticSubMetrics;
|
|
12263
12418
|
let getSemanticSubMetricsById;
|
|
12419
|
+
let patchSemanticMetricGoal;
|
|
12264
12420
|
let patchSemanticModel;
|
|
12265
12421
|
// Imperative GET Adapters
|
|
12266
12422
|
let getSemanticMetric_imperative;
|
|
@@ -12315,7 +12471,8 @@ function bindExportsTo(luvio) {
|
|
|
12315
12471
|
return {
|
|
12316
12472
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
12317
12473
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
12318
|
-
|
|
12474
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$c, deleteGoalFromSubMetricAdapterFactory),
|
|
12475
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$b, deleteSemanticSubMetricAdapterFactory),
|
|
12319
12476
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12320
12477
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
12321
12478
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -12328,6 +12485,7 @@ function bindExportsTo(luvio) {
|
|
|
12328
12485
|
getSemanticSubMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticSubMetricNotifyChange', notifyChangeFactory),
|
|
12329
12486
|
getSemanticSubMetrics: createWireAdapterConstructor(luvio, getSemanticSubMetrics_ldsAdapter, getSemanticSubMetricsMetadata),
|
|
12330
12487
|
getSemanticSubMetricsById: createWireAdapterConstructor(luvio, getSemanticSubMetricsById_ldsAdapter, getSemanticSubMetricsByIdMetadata),
|
|
12488
|
+
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
12331
12489
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
12332
12490
|
// Imperative GET Adapters
|
|
12333
12491
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
@@ -12346,6 +12504,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12346
12504
|
({
|
|
12347
12505
|
createSemanticModel,
|
|
12348
12506
|
createSemanticSubMetric,
|
|
12507
|
+
deleteGoalFromSubMetric,
|
|
12349
12508
|
deleteSemanticSubMetric,
|
|
12350
12509
|
getSemanticMetric,
|
|
12351
12510
|
getSemanticMetricNotifyChange,
|
|
@@ -12359,6 +12518,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12359
12518
|
getSemanticSubMetricNotifyChange,
|
|
12360
12519
|
getSemanticSubMetrics,
|
|
12361
12520
|
getSemanticSubMetricsById,
|
|
12521
|
+
patchSemanticMetricGoal,
|
|
12362
12522
|
patchSemanticModel,
|
|
12363
12523
|
getSemanticMetric_imperative,
|
|
12364
12524
|
getSemanticMetrics_imperative,
|
|
@@ -12372,5 +12532,5 @@ withDefaultLuvio((luvio) => {
|
|
|
12372
12532
|
} = bindExportsTo(luvio));
|
|
12373
12533
|
});
|
|
12374
12534
|
|
|
12375
|
-
export { createSemanticModel, createSemanticSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticModel };
|
|
12376
|
-
// version: 1.
|
|
12535
|
+
export { createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticSubMetric, getSemanticMetric, getSemanticMetricNotifyChange, getSemanticMetric_imperative, getSemanticMetrics, getSemanticMetricsByIds, getSemanticMetricsByIds_imperative, getSemanticMetricsToSubMetrics, getSemanticMetricsToSubMetrics_imperative, getSemanticMetrics_imperative, getSemanticModel, getSemanticModelNotifyChange, getSemanticModel_imperative, getSemanticModels, getSemanticModels_imperative, getSemanticSubMetric, getSemanticSubMetricNotifyChange, getSemanticSubMetric_imperative, getSemanticSubMetrics, getSemanticSubMetricsById, getSemanticSubMetricsById_imperative, getSemanticSubMetrics_imperative, patchSemanticMetricGoal, patchSemanticModel };
|
|
12536
|
+
// version: 1.335.0-22a7c4d20b
|