@salesforce/lds-adapters-cdp-semantic-authoring 1.335.0 → 1.336.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +1180 -729
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/package.json +3 -3
- package/sfdc/index.js +1059 -597
- package/src/raml/api.raml +37 -0
- package/src/raml/luvio.raml +4 -0
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$g, typeCheckConfig as typeCheckConfig$g, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$a } 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$$(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$Y(obj, path = 'SemanticBaseModelInputRepresentation') {
|
|
|
118
118
|
return v_error === undefined ? null : v_error;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
function validate$
|
|
121
|
+
function validate$_(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$X(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
148
148
|
return v_error === undefined ? null : v_error;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
function validate$
|
|
151
|
+
function validate$Z(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$W(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$_(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$W(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
258
258
|
return v_error === undefined ? null : v_error;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function validate$
|
|
261
|
+
function validate$Y(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$V(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$_(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$V(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
403
403
|
return v_error === undefined ? null : v_error;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
function validate$
|
|
406
|
+
function validate$X(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$U(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
482
482
|
return v_error === undefined ? null : v_error;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
function validate$
|
|
485
|
+
function validate$W(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$T(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
589
589
|
return v_error === undefined ? null : v_error;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$V(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$S(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$_(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$S(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$X(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$S(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$W(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$S(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
705
705
|
return v_error === undefined ? null : v_error;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
function validate$
|
|
708
|
+
function validate$U(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$R(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
717
717
|
return v_error === undefined ? null : v_error;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
function validate$
|
|
720
|
+
function validate$T(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$Q(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
747
747
|
return v_error === undefined ? null : v_error;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
function validate$
|
|
750
|
+
function validate$S(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$P(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$T(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$P(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
780
780
|
return v_error === undefined ? null : v_error;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
function validate$
|
|
783
|
+
function validate$R(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$O(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$U(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$O(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$S(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$O(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
809
809
|
return v_error === undefined ? null : v_error;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
function validate$
|
|
812
|
+
function validate$Q(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$N(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
832
832
|
return v_error === undefined ? null : v_error;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
-
function validate$
|
|
835
|
+
function validate$P(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$M(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$Q(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$M(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
858
858
|
return v_error === undefined ? null : v_error;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
function validate$
|
|
861
|
+
function validate$O(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$L(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$R(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$L(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$P(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$L(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
915
915
|
return v_error === undefined ? null : v_error;
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
function validate$
|
|
918
|
+
function validate$N(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$K(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
959
959
|
return v_error === undefined ? null : v_error;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
function validate$
|
|
962
|
+
function validate$M(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$J(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$N(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$J(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
1048
1048
|
return v_error === undefined ? null : v_error;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
|
-
function validate$
|
|
1051
|
+
function validate$L(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$I(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$Q(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$I(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$X(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$I(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$W(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$I(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1122
1122
|
return v_error === undefined ? null : v_error;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
-
function validate$
|
|
1125
|
+
function validate$K(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$H(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$V(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$H(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$L(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$H(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
1186
1186
|
return v_error === undefined ? null : v_error;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
function validate$
|
|
1189
|
+
function validate$J(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$G(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$_(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$G(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$V(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$G(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$M(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$G(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$K(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$G(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1298
1298
|
return v_error === undefined ? null : v_error;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
function validate$
|
|
1301
|
+
function validate$I(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$F(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$P(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$F(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$P(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$F(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
1327
1327
|
return v_error === undefined ? null : v_error;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
function validate$
|
|
1330
|
+
function validate$H(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$E(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
1350
1350
|
return v_error === undefined ? null : v_error;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
function validate$
|
|
1353
|
+
function validate$G(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$D(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$I(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$D(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$H(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$D(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$P(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$D(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1424
1424
|
return v_error === undefined ? null : v_error;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
function validate$
|
|
1427
|
+
function validate$F(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$C(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$P(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$C(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$_(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$C(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$G(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$C(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$P(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$C(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$P(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$C(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1553
1553
|
return v_error === undefined ? null : v_error;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
function validate$
|
|
1556
|
+
function validate$E(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 + '")');
|
|
@@ -1639,8 +1639,8 @@ function validate$B(obj, path = 'SemanticParameterInputRepresentation') {
|
|
|
1639
1639
|
return v_error === undefined ? null : v_error;
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
|
-
const VERSION$
|
|
1643
|
-
function validate$
|
|
1642
|
+
const VERSION$w = "3a32d382e7a2268096278aa8e5c6761a";
|
|
1643
|
+
function validate$D(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,10 +1660,10 @@ function validate$A(obj, path = 'SemanticBaseModelOutputRepresentation') {
|
|
|
1660
1660
|
})();
|
|
1661
1661
|
return v_error === undefined ? null : v_error;
|
|
1662
1662
|
}
|
|
1663
|
-
const select$
|
|
1663
|
+
const select$K = function SemanticBaseModelOutputRepresentationSelect() {
|
|
1664
1664
|
return {
|
|
1665
1665
|
kind: 'Fragment',
|
|
1666
|
-
version: VERSION$
|
|
1666
|
+
version: VERSION$w,
|
|
1667
1667
|
private: [],
|
|
1668
1668
|
selections: [
|
|
1669
1669
|
{
|
|
@@ -1678,7 +1678,7 @@ const select$G = function SemanticBaseModelOutputRepresentationSelect() {
|
|
|
1678
1678
|
]
|
|
1679
1679
|
};
|
|
1680
1680
|
};
|
|
1681
|
-
function equals$
|
|
1681
|
+
function equals$w(existing, incoming) {
|
|
1682
1682
|
const existing_apiName = existing.apiName;
|
|
1683
1683
|
const incoming_apiName = incoming.apiName;
|
|
1684
1684
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -1700,8 +1700,8 @@ function equals$t(existing, incoming) {
|
|
|
1700
1700
|
return true;
|
|
1701
1701
|
}
|
|
1702
1702
|
|
|
1703
|
-
const VERSION$
|
|
1704
|
-
function validate$
|
|
1703
|
+
const VERSION$v = "9b5a0e85af6a943c95625e2dfe81ab96";
|
|
1704
|
+
function validate$C(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,10 +1730,10 @@ function validate$z(obj, path = 'SemanticFilterOutputRepresentation') {
|
|
|
1730
1730
|
})();
|
|
1731
1731
|
return v_error === undefined ? null : v_error;
|
|
1732
1732
|
}
|
|
1733
|
-
const select$
|
|
1733
|
+
const select$J = function SemanticFilterOutputRepresentationSelect() {
|
|
1734
1734
|
return {
|
|
1735
1735
|
kind: 'Fragment',
|
|
1736
|
-
version: VERSION$
|
|
1736
|
+
version: VERSION$v,
|
|
1737
1737
|
private: [],
|
|
1738
1738
|
selections: [
|
|
1739
1739
|
{
|
|
@@ -1754,7 +1754,7 @@ const select$F = function SemanticFilterOutputRepresentationSelect() {
|
|
|
1754
1754
|
]
|
|
1755
1755
|
};
|
|
1756
1756
|
};
|
|
1757
|
-
function equals$
|
|
1757
|
+
function equals$v(existing, incoming) {
|
|
1758
1758
|
const existing_fieldName = existing.fieldName;
|
|
1759
1759
|
const incoming_fieldName = incoming.fieldName;
|
|
1760
1760
|
// if at least one of these optionals is defined
|
|
@@ -1797,8 +1797,8 @@ function equals$s(existing, incoming) {
|
|
|
1797
1797
|
return true;
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
|
-
const VERSION$
|
|
1801
|
-
function validate$
|
|
1800
|
+
const VERSION$u = "51514a172af5e420504a2143725b4528";
|
|
1801
|
+
function validate$B(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$y(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$C(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');
|
|
@@ -1948,24 +1948,24 @@ function validate$y(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1948
1948
|
})();
|
|
1949
1949
|
return v_error === undefined ? null : v_error;
|
|
1950
1950
|
}
|
|
1951
|
-
const RepresentationType$
|
|
1952
|
-
function keyBuilder$
|
|
1953
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1951
|
+
const RepresentationType$h = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
1952
|
+
function keyBuilder$x(luvio, config) {
|
|
1953
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + 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$x(luvio, keyParams);
|
|
1960
1960
|
}
|
|
1961
|
-
function normalize$
|
|
1961
|
+
function normalize$h(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$I = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1965
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
1966
1966
|
return {
|
|
1967
1967
|
kind: 'Fragment',
|
|
1968
|
-
version: VERSION$
|
|
1968
|
+
version: VERSION$u,
|
|
1969
1969
|
private: [],
|
|
1970
1970
|
selections: [
|
|
1971
1971
|
{
|
|
@@ -2069,7 +2069,7 @@ const select$E = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
2069
2069
|
]
|
|
2070
2070
|
};
|
|
2071
2071
|
};
|
|
2072
|
-
function equals$
|
|
2072
|
+
function equals$u(existing, incoming) {
|
|
2073
2073
|
const existing_isVisible = existing.isVisible;
|
|
2074
2074
|
const incoming_isVisible = incoming.isVisible;
|
|
2075
2075
|
// if at least one of these optionals is defined
|
|
@@ -2295,7 +2295,7 @@ function equals$r(existing, incoming) {
|
|
|
2295
2295
|
return false;
|
|
2296
2296
|
}
|
|
2297
2297
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2298
|
-
if (!(equals$
|
|
2298
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
2299
2299
|
return false;
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
@@ -2305,30 +2305,30 @@ function equals$r(existing, incoming) {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
return true;
|
|
2307
2307
|
}
|
|
2308
|
-
const ingest$
|
|
2308
|
+
const ingest$h = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2309
2309
|
if (process.env.NODE_ENV !== 'production') {
|
|
2310
|
-
const validateError = validate$
|
|
2310
|
+
const validateError = validate$B(input);
|
|
2311
2311
|
if (validateError !== null) {
|
|
2312
2312
|
throw validateError;
|
|
2313
2313
|
}
|
|
2314
2314
|
}
|
|
2315
2315
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2316
2316
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2317
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2317
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$u, RepresentationType$h, equals$u);
|
|
2318
2318
|
return createLink(key);
|
|
2319
2319
|
};
|
|
2320
|
-
function getTypeCacheKeys$
|
|
2320
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2321
2321
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2322
2322
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2323
2323
|
rootKeySet.set(rootKey, {
|
|
2324
2324
|
namespace: keyPrefix,
|
|
2325
|
-
representationName: RepresentationType$
|
|
2325
|
+
representationName: RepresentationType$h,
|
|
2326
2326
|
mergeable: false
|
|
2327
2327
|
});
|
|
2328
2328
|
}
|
|
2329
2329
|
|
|
2330
|
-
const VERSION$
|
|
2331
|
-
function validate$
|
|
2330
|
+
const VERSION$t = "6c8d910667cf399d3aa6e5a57e1fdd61";
|
|
2331
|
+
function validate$A(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$x(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$C(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');
|
|
@@ -2520,24 +2520,24 @@ function validate$x(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2520
2520
|
})();
|
|
2521
2521
|
return v_error === undefined ? null : v_error;
|
|
2522
2522
|
}
|
|
2523
|
-
const RepresentationType$
|
|
2524
|
-
function keyBuilder$
|
|
2525
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2523
|
+
const RepresentationType$g = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
2524
|
+
function keyBuilder$w(luvio, config) {
|
|
2525
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + 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$w(luvio, keyParams);
|
|
2532
2532
|
}
|
|
2533
|
-
function normalize$
|
|
2533
|
+
function normalize$g(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$H = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2537
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
2538
2538
|
return {
|
|
2539
2539
|
kind: 'Fragment',
|
|
2540
|
-
version: VERSION$
|
|
2540
|
+
version: VERSION$t,
|
|
2541
2541
|
private: [],
|
|
2542
2542
|
selections: [
|
|
2543
2543
|
{
|
|
@@ -2671,7 +2671,7 @@ const select$D = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
2671
2671
|
]
|
|
2672
2672
|
};
|
|
2673
2673
|
};
|
|
2674
|
-
function equals$
|
|
2674
|
+
function equals$t(existing, incoming) {
|
|
2675
2675
|
const existing_isAggregatable = existing.isAggregatable;
|
|
2676
2676
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
2677
2677
|
// if at least one of these optionals is defined
|
|
@@ -2975,7 +2975,7 @@ function equals$q(existing, incoming) {
|
|
|
2975
2975
|
return false;
|
|
2976
2976
|
}
|
|
2977
2977
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2978
|
-
if (!(equals$
|
|
2978
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
2979
2979
|
return false;
|
|
2980
2980
|
}
|
|
2981
2981
|
});
|
|
@@ -2985,29 +2985,29 @@ function equals$q(existing, incoming) {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
return true;
|
|
2987
2987
|
}
|
|
2988
|
-
const ingest$
|
|
2988
|
+
const ingest$g = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2989
2989
|
if (process.env.NODE_ENV !== 'production') {
|
|
2990
|
-
const validateError = validate$
|
|
2990
|
+
const validateError = validate$A(input);
|
|
2991
2991
|
if (validateError !== null) {
|
|
2992
2992
|
throw validateError;
|
|
2993
2993
|
}
|
|
2994
2994
|
}
|
|
2995
2995
|
const key = keyBuilderFromType$a(luvio, input);
|
|
2996
2996
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2997
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2997
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$t, RepresentationType$g, equals$t);
|
|
2998
2998
|
return createLink(key);
|
|
2999
2999
|
};
|
|
3000
|
-
function getTypeCacheKeys$
|
|
3000
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3001
3001
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3002
3002
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3003
3003
|
rootKeySet.set(rootKey, {
|
|
3004
3004
|
namespace: keyPrefix,
|
|
3005
|
-
representationName: RepresentationType$
|
|
3005
|
+
representationName: RepresentationType$g,
|
|
3006
3006
|
mergeable: false
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
|
-
function validate$
|
|
3010
|
+
function validate$z(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$w(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
3148
3148
|
return v_error === undefined ? null : v_error;
|
|
3149
3149
|
}
|
|
3150
3150
|
|
|
3151
|
-
function validate$
|
|
3151
|
+
function validate$y(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 + '")');
|
|
@@ -3324,8 +3324,8 @@ function validate$v(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
3324
3324
|
return v_error === undefined ? null : v_error;
|
|
3325
3325
|
}
|
|
3326
3326
|
|
|
3327
|
-
const VERSION$
|
|
3328
|
-
function validate$
|
|
3327
|
+
const VERSION$s = "4f111b93807b811179eb310384efdc35";
|
|
3328
|
+
function validate$x(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$u(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$C(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$u(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$z(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$u(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$y(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');
|
|
@@ -3495,57 +3495,57 @@ function validate$u(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3495
3495
|
})();
|
|
3496
3496
|
return v_error === undefined ? null : v_error;
|
|
3497
3497
|
}
|
|
3498
|
-
const RepresentationType$
|
|
3499
|
-
function keyBuilder$
|
|
3500
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3498
|
+
const RepresentationType$f = 'SemanticDataObjectOutputRepresentation';
|
|
3499
|
+
function keyBuilder$v(luvio, config) {
|
|
3500
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + 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$v(luvio, keyParams);
|
|
3507
3507
|
}
|
|
3508
|
-
function normalize$
|
|
3508
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3509
3509
|
return input;
|
|
3510
3510
|
}
|
|
3511
|
-
const select$
|
|
3511
|
+
const select$G = function SemanticDataObjectOutputRepresentationSelect() {
|
|
3512
3512
|
return {
|
|
3513
3513
|
kind: 'Fragment',
|
|
3514
|
-
version: VERSION$
|
|
3514
|
+
version: VERSION$s,
|
|
3515
3515
|
private: [],
|
|
3516
3516
|
opaque: true
|
|
3517
3517
|
};
|
|
3518
3518
|
};
|
|
3519
|
-
function equals$
|
|
3519
|
+
function equals$s(existing, incoming) {
|
|
3520
3520
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3521
3521
|
return false;
|
|
3522
3522
|
}
|
|
3523
3523
|
return true;
|
|
3524
3524
|
}
|
|
3525
|
-
const ingest$
|
|
3525
|
+
const ingest$f = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3526
3526
|
if (process.env.NODE_ENV !== 'production') {
|
|
3527
|
-
const validateError = validate$
|
|
3527
|
+
const validateError = validate$x(input);
|
|
3528
3528
|
if (validateError !== null) {
|
|
3529
3529
|
throw validateError;
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
3532
|
const key = keyBuilderFromType$9(luvio, input);
|
|
3533
3533
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
3534
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3534
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$s, RepresentationType$f, equals$s);
|
|
3535
3535
|
return createLink(key);
|
|
3536
3536
|
};
|
|
3537
|
-
function getTypeCacheKeys$
|
|
3537
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3538
3538
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3539
3539
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
3540
3540
|
rootKeySet.set(rootKey, {
|
|
3541
3541
|
namespace: keyPrefix,
|
|
3542
|
-
representationName: RepresentationType$
|
|
3542
|
+
representationName: RepresentationType$f,
|
|
3543
3543
|
mergeable: false
|
|
3544
3544
|
});
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
|
-
const VERSION$
|
|
3548
|
-
function validate$
|
|
3547
|
+
const VERSION$r = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
3548
|
+
function validate$w(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,10 +3554,10 @@ function validate$t(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
3554
3554
|
})();
|
|
3555
3555
|
return v_error === undefined ? null : v_error;
|
|
3556
3556
|
}
|
|
3557
|
-
const select$
|
|
3557
|
+
const select$F = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
3558
3558
|
return {
|
|
3559
3559
|
kind: 'Fragment',
|
|
3560
|
-
version: VERSION$
|
|
3560
|
+
version: VERSION$r,
|
|
3561
3561
|
private: [],
|
|
3562
3562
|
selections: [
|
|
3563
3563
|
{
|
|
@@ -3567,7 +3567,7 @@ const select$B = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
3567
3567
|
]
|
|
3568
3568
|
};
|
|
3569
3569
|
};
|
|
3570
|
-
function equals$
|
|
3570
|
+
function equals$r(existing, incoming) {
|
|
3571
3571
|
const existing_constantBinSize = existing.constantBinSize;
|
|
3572
3572
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
3573
3573
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -3576,8 +3576,8 @@ function equals$o(existing, incoming) {
|
|
|
3576
3576
|
return true;
|
|
3577
3577
|
}
|
|
3578
3578
|
|
|
3579
|
-
const VERSION$
|
|
3580
|
-
function validate$
|
|
3579
|
+
const VERSION$q = "2cdadcd630abb7b981b2d131880a68c0";
|
|
3580
|
+
function validate$v(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,10 +3604,10 @@ function validate$s(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
3604
3604
|
})();
|
|
3605
3605
|
return v_error === undefined ? null : v_error;
|
|
3606
3606
|
}
|
|
3607
|
-
const select$
|
|
3607
|
+
const select$E = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
3608
3608
|
return {
|
|
3609
3609
|
kind: 'Fragment',
|
|
3610
|
-
version: VERSION$
|
|
3610
|
+
version: VERSION$q,
|
|
3611
3611
|
private: [],
|
|
3612
3612
|
selections: [
|
|
3613
3613
|
{
|
|
@@ -3623,7 +3623,7 @@ const select$A = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
3623
3623
|
]
|
|
3624
3624
|
};
|
|
3625
3625
|
};
|
|
3626
|
-
function equals$
|
|
3626
|
+
function equals$q(existing, incoming) {
|
|
3627
3627
|
const existing_name = existing.name;
|
|
3628
3628
|
const incoming_name = incoming.name;
|
|
3629
3629
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3650,8 +3650,8 @@ function equals$n(existing, incoming) {
|
|
|
3650
3650
|
return true;
|
|
3651
3651
|
}
|
|
3652
3652
|
|
|
3653
|
-
const VERSION$
|
|
3654
|
-
function validate$
|
|
3653
|
+
const VERSION$p = "55c60b6207985632192cb4e419822a86";
|
|
3654
|
+
function validate$u(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$r(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$v(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,11 +3683,11 @@ function validate$r(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$D = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3687
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$E();
|
|
3688
3688
|
return {
|
|
3689
3689
|
kind: 'Fragment',
|
|
3690
|
-
version: VERSION$
|
|
3690
|
+
version: VERSION$p,
|
|
3691
3691
|
private: [],
|
|
3692
3692
|
selections: [
|
|
3693
3693
|
{
|
|
@@ -3705,7 +3705,7 @@ const select$z = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
3705
3705
|
]
|
|
3706
3706
|
};
|
|
3707
3707
|
};
|
|
3708
|
-
function equals$
|
|
3708
|
+
function equals$p(existing, incoming) {
|
|
3709
3709
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
3710
3710
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
3711
3711
|
// if at least one of these optionals is defined
|
|
@@ -3729,7 +3729,7 @@ function equals$m(existing, incoming) {
|
|
|
3729
3729
|
return false;
|
|
3730
3730
|
}
|
|
3731
3731
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
3732
|
-
if (!(equals$
|
|
3732
|
+
if (!(equals$q(existing_groups_item, incoming_groups_item))) {
|
|
3733
3733
|
return false;
|
|
3734
3734
|
}
|
|
3735
3735
|
});
|
|
@@ -3740,8 +3740,8 @@ function equals$m(existing, incoming) {
|
|
|
3740
3740
|
return true;
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
-
const VERSION$
|
|
3744
|
-
function validate$
|
|
3743
|
+
const VERSION$o = "50dc390b159159afb1945b9a811c9f80";
|
|
3744
|
+
function validate$t(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$q(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$w(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$q(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$u(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,12 +3769,12 @@ function validate$q(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$C = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3773
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$F();
|
|
3774
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$D();
|
|
3775
3775
|
return {
|
|
3776
3776
|
kind: 'Fragment',
|
|
3777
|
-
version: VERSION$
|
|
3777
|
+
version: VERSION$o,
|
|
3778
3778
|
private: [],
|
|
3779
3779
|
selections: [
|
|
3780
3780
|
{
|
|
@@ -3792,7 +3792,7 @@ const select$y = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
3792
3792
|
]
|
|
3793
3793
|
};
|
|
3794
3794
|
};
|
|
3795
|
-
function equals$
|
|
3795
|
+
function equals$o(existing, incoming) {
|
|
3796
3796
|
const existing_binDimension = existing.binDimension;
|
|
3797
3797
|
const incoming_binDimension = incoming.binDimension;
|
|
3798
3798
|
// if at least one of these optionals is defined
|
|
@@ -3802,7 +3802,7 @@ function equals$l(existing, incoming) {
|
|
|
3802
3802
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
3803
3803
|
return false;
|
|
3804
3804
|
}
|
|
3805
|
-
if (!(equals$
|
|
3805
|
+
if (!(equals$r(existing_binDimension, incoming_binDimension))) {
|
|
3806
3806
|
return false;
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
@@ -3815,15 +3815,15 @@ function equals$l(existing, incoming) {
|
|
|
3815
3815
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
3816
3816
|
return false;
|
|
3817
3817
|
}
|
|
3818
|
-
if (!(equals$
|
|
3818
|
+
if (!(equals$p(existing_groupDimension, incoming_groupDimension))) {
|
|
3819
3819
|
return false;
|
|
3820
3820
|
}
|
|
3821
3821
|
}
|
|
3822
3822
|
return true;
|
|
3823
3823
|
}
|
|
3824
3824
|
|
|
3825
|
-
const VERSION$
|
|
3826
|
-
function validate$
|
|
3825
|
+
const VERSION$n = "a2976cd68e629a917463a3b690cf2527";
|
|
3826
|
+
function validate$s(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,10 +3845,10 @@ function validate$p(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
3845
3845
|
})();
|
|
3846
3846
|
return v_error === undefined ? null : v_error;
|
|
3847
3847
|
}
|
|
3848
|
-
const select$
|
|
3848
|
+
const select$B = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
3849
3849
|
return {
|
|
3850
3850
|
kind: 'Fragment',
|
|
3851
|
-
version: VERSION$
|
|
3851
|
+
version: VERSION$n,
|
|
3852
3852
|
private: [],
|
|
3853
3853
|
selections: [
|
|
3854
3854
|
{
|
|
@@ -3864,7 +3864,7 @@ const select$x = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
3864
3864
|
]
|
|
3865
3865
|
};
|
|
3866
3866
|
};
|
|
3867
|
-
function equals$
|
|
3867
|
+
function equals$n(existing, incoming) {
|
|
3868
3868
|
const existing_fieldApiName = existing.fieldApiName;
|
|
3869
3869
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
3870
3870
|
// if at least one of these optionals is defined
|
|
@@ -3894,8 +3894,8 @@ function equals$k(existing, incoming) {
|
|
|
3894
3894
|
return true;
|
|
3895
3895
|
}
|
|
3896
3896
|
|
|
3897
|
-
const VERSION$
|
|
3898
|
-
function validate$
|
|
3897
|
+
const VERSION$m = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
3898
|
+
function validate$r(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$o(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$s(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,11 +3920,11 @@ function validate$o(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$A = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3924
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$B();
|
|
3925
3925
|
return {
|
|
3926
3926
|
kind: 'Fragment',
|
|
3927
|
-
version: VERSION$
|
|
3927
|
+
version: VERSION$m,
|
|
3928
3928
|
private: [],
|
|
3929
3929
|
selections: [
|
|
3930
3930
|
{
|
|
@@ -3941,7 +3941,7 @@ const select$w = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
3941
3941
|
]
|
|
3942
3942
|
};
|
|
3943
3943
|
};
|
|
3944
|
-
function equals$
|
|
3944
|
+
function equals$m(existing, incoming) {
|
|
3945
3945
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
3946
3946
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
3947
3947
|
// if at least one of these optionals is defined
|
|
@@ -3964,15 +3964,15 @@ function equals$j(existing, incoming) {
|
|
|
3964
3964
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
3965
3965
|
return false;
|
|
3966
3966
|
}
|
|
3967
|
-
if (!(equals$
|
|
3967
|
+
if (!(equals$n(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
3968
3968
|
return false;
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
return true;
|
|
3972
3972
|
}
|
|
3973
3973
|
|
|
3974
|
-
const VERSION$
|
|
3975
|
-
function validate$
|
|
3974
|
+
const VERSION$l = "1daec40706bf767c719fa58831fad462";
|
|
3975
|
+
function validate$q(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$n(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$t(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$n(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$r(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');
|
|
@@ -4063,25 +4063,25 @@ function validate$n(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4063
4063
|
})();
|
|
4064
4064
|
return v_error === undefined ? null : v_error;
|
|
4065
4065
|
}
|
|
4066
|
-
const RepresentationType$
|
|
4067
|
-
function keyBuilder$
|
|
4068
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4066
|
+
const RepresentationType$e = 'SemanticGroupingOutputRepresentation';
|
|
4067
|
+
function keyBuilder$u(luvio, config) {
|
|
4068
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + 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$u(luvio, keyParams);
|
|
4075
4075
|
}
|
|
4076
|
-
function normalize$
|
|
4076
|
+
function normalize$e(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$z = function SemanticGroupingOutputRepresentationSelect() {
|
|
4080
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$C();
|
|
4081
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
4082
4082
|
return {
|
|
4083
4083
|
kind: 'Fragment',
|
|
4084
|
-
version: VERSION$
|
|
4084
|
+
version: VERSION$l,
|
|
4085
4085
|
private: [],
|
|
4086
4086
|
selections: [
|
|
4087
4087
|
{
|
|
@@ -4147,7 +4147,7 @@ const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
4147
4147
|
]
|
|
4148
4148
|
};
|
|
4149
4149
|
};
|
|
4150
|
-
function equals$
|
|
4150
|
+
function equals$l(existing, incoming) {
|
|
4151
4151
|
const existing_apiName = existing.apiName;
|
|
4152
4152
|
const incoming_apiName = incoming.apiName;
|
|
4153
4153
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4253,40 +4253,40 @@ function equals$i(existing, incoming) {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
const existing_configuration = existing.configuration;
|
|
4255
4255
|
const incoming_configuration = incoming.configuration;
|
|
4256
|
-
if (!(equals$
|
|
4256
|
+
if (!(equals$o(existing_configuration, incoming_configuration))) {
|
|
4257
4257
|
return false;
|
|
4258
4258
|
}
|
|
4259
4259
|
const existing_fieldReference = existing.fieldReference;
|
|
4260
4260
|
const incoming_fieldReference = incoming.fieldReference;
|
|
4261
|
-
if (!(equals$
|
|
4261
|
+
if (!(equals$m(existing_fieldReference, incoming_fieldReference))) {
|
|
4262
4262
|
return false;
|
|
4263
4263
|
}
|
|
4264
4264
|
return true;
|
|
4265
4265
|
}
|
|
4266
|
-
const ingest$
|
|
4266
|
+
const ingest$e = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4267
4267
|
if (process.env.NODE_ENV !== 'production') {
|
|
4268
|
-
const validateError = validate$
|
|
4268
|
+
const validateError = validate$q(input);
|
|
4269
4269
|
if (validateError !== null) {
|
|
4270
4270
|
throw validateError;
|
|
4271
4271
|
}
|
|
4272
4272
|
}
|
|
4273
4273
|
const key = keyBuilderFromType$8(luvio, input);
|
|
4274
4274
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4275
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4275
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4276
4276
|
return createLink(key);
|
|
4277
4277
|
};
|
|
4278
|
-
function getTypeCacheKeys$
|
|
4278
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4279
4279
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4280
4280
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
4281
4281
|
rootKeySet.set(rootKey, {
|
|
4282
4282
|
namespace: keyPrefix,
|
|
4283
|
-
representationName: RepresentationType$
|
|
4283
|
+
representationName: RepresentationType$e,
|
|
4284
4284
|
mergeable: false
|
|
4285
4285
|
});
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
|
-
const VERSION$
|
|
4289
|
-
function validate$
|
|
4288
|
+
const VERSION$k = "c5144c317ac72b60d580cab803514b8d";
|
|
4289
|
+
function validate$p(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,10 +4329,10 @@ function validate$m(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4329
4329
|
})();
|
|
4330
4330
|
return v_error === undefined ? null : v_error;
|
|
4331
4331
|
}
|
|
4332
|
-
const select$
|
|
4332
|
+
const select$y = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4333
4333
|
return {
|
|
4334
4334
|
kind: 'Fragment',
|
|
4335
|
-
version: VERSION$
|
|
4335
|
+
version: VERSION$k,
|
|
4336
4336
|
private: [],
|
|
4337
4337
|
selections: [
|
|
4338
4338
|
{
|
|
@@ -4363,7 +4363,7 @@ const select$u = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
4363
4363
|
]
|
|
4364
4364
|
};
|
|
4365
4365
|
};
|
|
4366
|
-
function equals$
|
|
4366
|
+
function equals$k(existing, incoming) {
|
|
4367
4367
|
const existing_joinOperator = existing.joinOperator;
|
|
4368
4368
|
const incoming_joinOperator = incoming.joinOperator;
|
|
4369
4369
|
// if at least one of these optionals is defined
|
|
@@ -4432,8 +4432,8 @@ function equals$h(existing, incoming) {
|
|
|
4432
4432
|
return true;
|
|
4433
4433
|
}
|
|
4434
4434
|
|
|
4435
|
-
const VERSION$
|
|
4436
|
-
function validate$
|
|
4435
|
+
const VERSION$j = "b9778dace5726fcb57804d3afd529246";
|
|
4436
|
+
function validate$o(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$l(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$p(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');
|
|
@@ -4562,24 +4562,24 @@ function validate$l(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4562
4562
|
})();
|
|
4563
4563
|
return v_error === undefined ? null : v_error;
|
|
4564
4564
|
}
|
|
4565
|
-
const RepresentationType$
|
|
4566
|
-
function keyBuilder$
|
|
4567
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4565
|
+
const RepresentationType$d = 'SemanticRelationshipOutputRepresentation';
|
|
4566
|
+
function keyBuilder$t(luvio, config) {
|
|
4567
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + 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$t(luvio, keyParams);
|
|
4574
4574
|
}
|
|
4575
|
-
function normalize$
|
|
4575
|
+
function normalize$d(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$x = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4579
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$y();
|
|
4580
4580
|
return {
|
|
4581
4581
|
kind: 'Fragment',
|
|
4582
|
-
version: VERSION$
|
|
4582
|
+
version: VERSION$j,
|
|
4583
4583
|
private: [],
|
|
4584
4584
|
selections: [
|
|
4585
4585
|
{
|
|
@@ -4668,7 +4668,7 @@ const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
4668
4668
|
]
|
|
4669
4669
|
};
|
|
4670
4670
|
};
|
|
4671
|
-
function equals$
|
|
4671
|
+
function equals$j(existing, incoming) {
|
|
4672
4672
|
const existing_isEnabled = existing.isEnabled;
|
|
4673
4673
|
const incoming_isEnabled = incoming.isEnabled;
|
|
4674
4674
|
// if at least one of these optionals is defined
|
|
@@ -4855,7 +4855,7 @@ function equals$g(existing, incoming) {
|
|
|
4855
4855
|
return false;
|
|
4856
4856
|
}
|
|
4857
4857
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
4858
|
-
if (!(equals$
|
|
4858
|
+
if (!(equals$k(existing_criteria_item, incoming_criteria_item))) {
|
|
4859
4859
|
return false;
|
|
4860
4860
|
}
|
|
4861
4861
|
});
|
|
@@ -4865,30 +4865,30 @@ function equals$g(existing, incoming) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
return true;
|
|
4867
4867
|
}
|
|
4868
|
-
const ingest$
|
|
4868
|
+
const ingest$d = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4869
4869
|
if (process.env.NODE_ENV !== 'production') {
|
|
4870
|
-
const validateError = validate$
|
|
4870
|
+
const validateError = validate$o(input);
|
|
4871
4871
|
if (validateError !== null) {
|
|
4872
4872
|
throw validateError;
|
|
4873
4873
|
}
|
|
4874
4874
|
}
|
|
4875
4875
|
const key = keyBuilderFromType$7(luvio, input);
|
|
4876
4876
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4877
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4877
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$j, RepresentationType$d, equals$j);
|
|
4878
4878
|
return createLink(key);
|
|
4879
4879
|
};
|
|
4880
|
-
function getTypeCacheKeys$
|
|
4880
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
4881
4881
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4882
4882
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
4883
4883
|
rootKeySet.set(rootKey, {
|
|
4884
4884
|
namespace: keyPrefix,
|
|
4885
|
-
representationName: RepresentationType$
|
|
4885
|
+
representationName: RepresentationType$d,
|
|
4886
4886
|
mergeable: false
|
|
4887
4887
|
});
|
|
4888
4888
|
}
|
|
4889
4889
|
|
|
4890
|
-
const VERSION$
|
|
4891
|
-
function validate$
|
|
4890
|
+
const VERSION$i = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
4891
|
+
function validate$n(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$k(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$s(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$k(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$z(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$k(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$y(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');
|
|
@@ -5002,57 +5002,57 @@ function validate$k(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5002
5002
|
})();
|
|
5003
5003
|
return v_error === undefined ? null : v_error;
|
|
5004
5004
|
}
|
|
5005
|
-
const RepresentationType$
|
|
5006
|
-
function keyBuilder$
|
|
5007
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5005
|
+
const RepresentationType$c = 'SemanticMappedFieldOutputRepresentation';
|
|
5006
|
+
function keyBuilder$s(luvio, config) {
|
|
5007
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + 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$s(luvio, keyParams);
|
|
5014
5014
|
}
|
|
5015
|
-
function normalize$
|
|
5015
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5016
5016
|
return input;
|
|
5017
5017
|
}
|
|
5018
|
-
const select$
|
|
5018
|
+
const select$w = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5019
5019
|
return {
|
|
5020
5020
|
kind: 'Fragment',
|
|
5021
|
-
version: VERSION$
|
|
5021
|
+
version: VERSION$i,
|
|
5022
5022
|
private: [],
|
|
5023
5023
|
opaque: true
|
|
5024
5024
|
};
|
|
5025
5025
|
};
|
|
5026
|
-
function equals$
|
|
5026
|
+
function equals$i(existing, incoming) {
|
|
5027
5027
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5028
5028
|
return false;
|
|
5029
5029
|
}
|
|
5030
5030
|
return true;
|
|
5031
5031
|
}
|
|
5032
|
-
const ingest$
|
|
5032
|
+
const ingest$c = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5033
5033
|
if (process.env.NODE_ENV !== 'production') {
|
|
5034
|
-
const validateError = validate$
|
|
5034
|
+
const validateError = validate$n(input);
|
|
5035
5035
|
if (validateError !== null) {
|
|
5036
5036
|
throw validateError;
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
const key = keyBuilderFromType$6(luvio, input);
|
|
5040
5040
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5041
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5041
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$i, RepresentationType$c, equals$i);
|
|
5042
5042
|
return createLink(key);
|
|
5043
5043
|
};
|
|
5044
|
-
function getTypeCacheKeys$
|
|
5044
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5045
5045
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5046
5046
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
5047
5047
|
rootKeySet.set(rootKey, {
|
|
5048
5048
|
namespace: keyPrefix,
|
|
5049
|
-
representationName: RepresentationType$
|
|
5049
|
+
representationName: RepresentationType$c,
|
|
5050
5050
|
mergeable: false
|
|
5051
5051
|
});
|
|
5052
5052
|
}
|
|
5053
5053
|
|
|
5054
|
-
const VERSION$
|
|
5055
|
-
function validate$
|
|
5054
|
+
const VERSION$h = "69fe23112140e9fae50135dcb15c24c2";
|
|
5055
|
+
function validate$m(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 + '")');
|
|
@@ -5178,24 +5178,24 @@ function validate$j(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5178
5178
|
})();
|
|
5179
5179
|
return v_error === undefined ? null : v_error;
|
|
5180
5180
|
}
|
|
5181
|
-
const RepresentationType$
|
|
5182
|
-
function keyBuilder$
|
|
5183
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5181
|
+
const RepresentationType$b = 'SemanticUnionOutputRepresentation';
|
|
5182
|
+
function keyBuilder$r(luvio, config) {
|
|
5183
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + 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$r(luvio, keyParams);
|
|
5190
5190
|
}
|
|
5191
|
-
function normalize$
|
|
5191
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5192
5192
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5193
5193
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5194
5194
|
if (input_semanticDataObjects !== undefined) {
|
|
5195
5195
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5196
5196
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5197
5197
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5198
|
-
input_semanticDataObjects[i] = ingest$
|
|
5198
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5199
5199
|
fullPath: input_semanticDataObjects_item_id,
|
|
5200
5200
|
propertyName: i,
|
|
5201
5201
|
parent: {
|
|
@@ -5213,7 +5213,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5213
5213
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
5214
5214
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
5215
5215
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
5216
|
-
input_semanticMappedFields[i] = ingest$
|
|
5216
|
+
input_semanticMappedFields[i] = ingest$c(input_semanticMappedFields_item, {
|
|
5217
5217
|
fullPath: input_semanticMappedFields_item_id,
|
|
5218
5218
|
propertyName: i,
|
|
5219
5219
|
parent: {
|
|
@@ -5227,10 +5227,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5227
5227
|
}
|
|
5228
5228
|
return input;
|
|
5229
5229
|
}
|
|
5230
|
-
const select$
|
|
5230
|
+
const select$v = function SemanticUnionOutputRepresentationSelect() {
|
|
5231
5231
|
return {
|
|
5232
5232
|
kind: 'Fragment',
|
|
5233
|
-
version: VERSION$
|
|
5233
|
+
version: VERSION$h,
|
|
5234
5234
|
private: [],
|
|
5235
5235
|
selections: [
|
|
5236
5236
|
{
|
|
@@ -5289,19 +5289,19 @@ const select$r = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5289
5289
|
kind: 'Link',
|
|
5290
5290
|
plural: true,
|
|
5291
5291
|
required: false,
|
|
5292
|
-
fragment: select$
|
|
5292
|
+
fragment: select$G()
|
|
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$w()
|
|
5300
5300
|
}
|
|
5301
5301
|
]
|
|
5302
5302
|
};
|
|
5303
5303
|
};
|
|
5304
|
-
function equals$
|
|
5304
|
+
function equals$h(existing, incoming) {
|
|
5305
5305
|
const existing_apiName = existing.apiName;
|
|
5306
5306
|
const incoming_apiName = incoming.apiName;
|
|
5307
5307
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5451,42 +5451,42 @@ function equals$e(existing, incoming) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
return true;
|
|
5453
5453
|
}
|
|
5454
|
-
const ingest$
|
|
5454
|
+
const ingest$b = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5455
5455
|
if (process.env.NODE_ENV !== 'production') {
|
|
5456
|
-
const validateError = validate$
|
|
5456
|
+
const validateError = validate$m(input);
|
|
5457
5457
|
if (validateError !== null) {
|
|
5458
5458
|
throw validateError;
|
|
5459
5459
|
}
|
|
5460
5460
|
}
|
|
5461
5461
|
const key = keyBuilderFromType$5(luvio, input);
|
|
5462
5462
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5463
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5463
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$h, RepresentationType$b, equals$h);
|
|
5464
5464
|
return createLink(key);
|
|
5465
5465
|
};
|
|
5466
|
-
function getTypeCacheKeys$
|
|
5466
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5467
5467
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5468
5468
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
5469
5469
|
rootKeySet.set(rootKey, {
|
|
5470
5470
|
namespace: keyPrefix,
|
|
5471
|
-
representationName: RepresentationType$
|
|
5471
|
+
representationName: RepresentationType$b,
|
|
5472
5472
|
mergeable: false
|
|
5473
5473
|
});
|
|
5474
5474
|
if (input.semanticDataObjects !== undefined) {
|
|
5475
5475
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
5476
5476
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
5477
|
-
getTypeCacheKeys$
|
|
5477
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
5478
5478
|
}
|
|
5479
5479
|
}
|
|
5480
5480
|
if (input.semanticMappedFields !== undefined) {
|
|
5481
5481
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
5482
5482
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
5483
|
-
getTypeCacheKeys$
|
|
5483
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
5484
5484
|
}
|
|
5485
5485
|
}
|
|
5486
5486
|
}
|
|
5487
5487
|
|
|
5488
|
-
const VERSION$
|
|
5489
|
-
function validate$
|
|
5488
|
+
const VERSION$g = "281e0163ea1fc7d956974394f5310216";
|
|
5489
|
+
function validate$l(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$i(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$C(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');
|
|
@@ -5636,24 +5636,24 @@ function validate$i(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5636
5636
|
})();
|
|
5637
5637
|
return v_error === undefined ? null : v_error;
|
|
5638
5638
|
}
|
|
5639
|
-
const RepresentationType$
|
|
5640
|
-
function keyBuilder$
|
|
5641
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5639
|
+
const RepresentationType$a = 'SemanticLogicalViewOutputRepresentation';
|
|
5640
|
+
function keyBuilder$q(luvio, config) {
|
|
5641
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + 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$q(luvio, keyParams);
|
|
5648
5648
|
}
|
|
5649
|
-
function normalize$
|
|
5649
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5650
5650
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5651
5651
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5652
5652
|
if (input_semanticDataObjects !== undefined) {
|
|
5653
5653
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5654
5654
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5655
5655
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5656
|
-
input_semanticDataObjects[i] = ingest$
|
|
5656
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5657
5657
|
fullPath: input_semanticDataObjects_item_id,
|
|
5658
5658
|
propertyName: i,
|
|
5659
5659
|
parent: {
|
|
@@ -5671,7 +5671,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5671
5671
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
5672
5672
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
5673
5673
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
5674
|
-
input_semanticRelationships[i] = ingest$
|
|
5674
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
5675
5675
|
fullPath: input_semanticRelationships_item_id,
|
|
5676
5676
|
propertyName: i,
|
|
5677
5677
|
parent: {
|
|
@@ -5689,7 +5689,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5689
5689
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
5690
5690
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
5691
5691
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
5692
|
-
input_semanticUnions[i] = ingest$
|
|
5692
|
+
input_semanticUnions[i] = ingest$b(input_semanticUnions_item, {
|
|
5693
5693
|
fullPath: input_semanticUnions_item_id,
|
|
5694
5694
|
propertyName: i,
|
|
5695
5695
|
parent: {
|
|
@@ -5703,11 +5703,11 @@ 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$u = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5707
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
5708
5708
|
return {
|
|
5709
5709
|
kind: 'Fragment',
|
|
5710
|
-
version: VERSION$
|
|
5710
|
+
version: VERSION$g,
|
|
5711
5711
|
private: [],
|
|
5712
5712
|
selections: [
|
|
5713
5713
|
{
|
|
@@ -5778,21 +5778,21 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5778
5778
|
kind: 'Link',
|
|
5779
5779
|
plural: true,
|
|
5780
5780
|
required: false,
|
|
5781
|
-
fragment: select$
|
|
5781
|
+
fragment: select$G()
|
|
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$x()
|
|
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$v()
|
|
5796
5796
|
},
|
|
5797
5797
|
{
|
|
5798
5798
|
name: 'semanticViewTypeEnum',
|
|
@@ -5802,7 +5802,7 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5802
5802
|
]
|
|
5803
5803
|
};
|
|
5804
5804
|
};
|
|
5805
|
-
function equals$
|
|
5805
|
+
function equals$g(existing, incoming) {
|
|
5806
5806
|
const existing_apiName = existing.apiName;
|
|
5807
5807
|
const incoming_apiName = incoming.apiName;
|
|
5808
5808
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5950,7 +5950,7 @@ function equals$d(existing, incoming) {
|
|
|
5950
5950
|
return false;
|
|
5951
5951
|
}
|
|
5952
5952
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
5953
|
-
if (!(equals$
|
|
5953
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
5954
5954
|
return false;
|
|
5955
5955
|
}
|
|
5956
5956
|
});
|
|
@@ -6014,48 +6014,48 @@ function equals$d(existing, incoming) {
|
|
|
6014
6014
|
}
|
|
6015
6015
|
return true;
|
|
6016
6016
|
}
|
|
6017
|
-
const ingest$
|
|
6017
|
+
const ingest$a = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6018
6018
|
if (process.env.NODE_ENV !== 'production') {
|
|
6019
|
-
const validateError = validate$
|
|
6019
|
+
const validateError = validate$l(input);
|
|
6020
6020
|
if (validateError !== null) {
|
|
6021
6021
|
throw validateError;
|
|
6022
6022
|
}
|
|
6023
6023
|
}
|
|
6024
6024
|
const key = keyBuilderFromType$4(luvio, input);
|
|
6025
6025
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6026
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6026
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$g, RepresentationType$a, equals$g);
|
|
6027
6027
|
return createLink(key);
|
|
6028
6028
|
};
|
|
6029
|
-
function getTypeCacheKeys$
|
|
6029
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
6030
6030
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6031
6031
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
6032
6032
|
rootKeySet.set(rootKey, {
|
|
6033
6033
|
namespace: keyPrefix,
|
|
6034
|
-
representationName: RepresentationType$
|
|
6034
|
+
representationName: RepresentationType$a,
|
|
6035
6035
|
mergeable: false
|
|
6036
6036
|
});
|
|
6037
6037
|
if (input.semanticDataObjects !== undefined) {
|
|
6038
6038
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
6039
6039
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
6040
|
-
getTypeCacheKeys$
|
|
6040
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
6043
|
if (input.semanticRelationships !== undefined) {
|
|
6044
6044
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
6045
6045
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
6046
|
-
getTypeCacheKeys$
|
|
6046
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
6047
6047
|
}
|
|
6048
6048
|
}
|
|
6049
6049
|
if (input.semanticUnions !== undefined) {
|
|
6050
6050
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
6051
6051
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
6052
|
-
getTypeCacheKeys$
|
|
6052
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticUnions[i]);
|
|
6053
6053
|
}
|
|
6054
6054
|
}
|
|
6055
6055
|
}
|
|
6056
6056
|
|
|
6057
|
-
const VERSION$
|
|
6058
|
-
function validate$
|
|
6057
|
+
const VERSION$f = "a50848c632bb205d5e910bb726d9219e";
|
|
6058
|
+
function validate$k(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$h(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$r(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$h(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$r(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,11 +6083,11 @@ function validate$h(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$t = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6087
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6088
6088
|
return {
|
|
6089
6089
|
kind: 'Fragment',
|
|
6090
|
-
version: VERSION$
|
|
6090
|
+
version: VERSION$f,
|
|
6091
6091
|
private: [],
|
|
6092
6092
|
selections: [
|
|
6093
6093
|
{
|
|
@@ -6105,7 +6105,7 @@ const select$p = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
6105
6105
|
]
|
|
6106
6106
|
};
|
|
6107
6107
|
};
|
|
6108
|
-
function equals$
|
|
6108
|
+
function equals$f(existing, incoming) {
|
|
6109
6109
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
6110
6110
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
6111
6111
|
// if at least one of these optionals is defined
|
|
@@ -6115,7 +6115,7 @@ function equals$c(existing, incoming) {
|
|
|
6115
6115
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
6116
6116
|
return false;
|
|
6117
6117
|
}
|
|
6118
|
-
if (!(equals$
|
|
6118
|
+
if (!(equals$m(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
6119
6119
|
return false;
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
@@ -6128,15 +6128,15 @@ function equals$c(existing, incoming) {
|
|
|
6128
6128
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
6129
6129
|
return false;
|
|
6130
6130
|
}
|
|
6131
|
-
if (!(equals$
|
|
6131
|
+
if (!(equals$m(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
6132
6132
|
return false;
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
6135
|
return true;
|
|
6136
6136
|
}
|
|
6137
6137
|
|
|
6138
|
-
const VERSION$
|
|
6139
|
-
function validate$
|
|
6138
|
+
const VERSION$e = "1b8cf2283d5d5c480459506274f0604c";
|
|
6139
|
+
function validate$j(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,10 +6158,10 @@ function validate$g(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6158
6158
|
})();
|
|
6159
6159
|
return v_error === undefined ? null : v_error;
|
|
6160
6160
|
}
|
|
6161
|
-
const select$
|
|
6161
|
+
const select$s = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6162
6162
|
return {
|
|
6163
6163
|
kind: 'Fragment',
|
|
6164
|
-
version: VERSION$
|
|
6164
|
+
version: VERSION$e,
|
|
6165
6165
|
private: [],
|
|
6166
6166
|
selections: [
|
|
6167
6167
|
{
|
|
@@ -6177,7 +6177,7 @@ const select$o = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
6177
6177
|
]
|
|
6178
6178
|
};
|
|
6179
6179
|
};
|
|
6180
|
-
function equals$
|
|
6180
|
+
function equals$e(existing, incoming) {
|
|
6181
6181
|
const existing_enabled = existing.enabled;
|
|
6182
6182
|
const incoming_enabled = incoming.enabled;
|
|
6183
6183
|
// if at least one of these optionals is defined
|
|
@@ -6207,8 +6207,8 @@ function equals$b(existing, incoming) {
|
|
|
6207
6207
|
return true;
|
|
6208
6208
|
}
|
|
6209
6209
|
|
|
6210
|
-
const VERSION$
|
|
6211
|
-
function validate$
|
|
6210
|
+
const VERSION$d = "a3f5972287be7bcf9ca205af56046a58";
|
|
6211
|
+
function validate$i(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$f(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$k(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$f(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$j(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$f(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$r(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,13 +6281,13 @@ function validate$f(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$r = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6285
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$t();
|
|
6286
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$s();
|
|
6287
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6288
6288
|
return {
|
|
6289
6289
|
kind: 'Fragment',
|
|
6290
|
-
version: VERSION$
|
|
6290
|
+
version: VERSION$d,
|
|
6291
6291
|
private: [],
|
|
6292
6292
|
selections: [
|
|
6293
6293
|
{
|
|
@@ -6328,7 +6328,7 @@ const select$n = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
6328
6328
|
]
|
|
6329
6329
|
};
|
|
6330
6330
|
};
|
|
6331
|
-
function equals$
|
|
6331
|
+
function equals$d(existing, incoming) {
|
|
6332
6332
|
const existing_pluralNoun = existing.pluralNoun;
|
|
6333
6333
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
6334
6334
|
// if at least one of these optionals is defined
|
|
@@ -6377,7 +6377,7 @@ function equals$a(existing, incoming) {
|
|
|
6377
6377
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
6378
6378
|
return false;
|
|
6379
6379
|
}
|
|
6380
|
-
if (!(equals$
|
|
6380
|
+
if (!(equals$f(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
6381
6381
|
return false;
|
|
6382
6382
|
}
|
|
6383
6383
|
}
|
|
@@ -6391,7 +6391,7 @@ function equals$a(existing, incoming) {
|
|
|
6391
6391
|
return false;
|
|
6392
6392
|
}
|
|
6393
6393
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
6394
|
-
if (!(equals$
|
|
6394
|
+
if (!(equals$e(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
6395
6395
|
return false;
|
|
6396
6396
|
}
|
|
6397
6397
|
});
|
|
@@ -6409,7 +6409,7 @@ function equals$a(existing, incoming) {
|
|
|
6409
6409
|
return false;
|
|
6410
6410
|
}
|
|
6411
6411
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
6412
|
-
if (!(equals$
|
|
6412
|
+
if (!(equals$m(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
6413
6413
|
return false;
|
|
6414
6414
|
}
|
|
6415
6415
|
});
|
|
@@ -6420,8 +6420,8 @@ function equals$a(existing, incoming) {
|
|
|
6420
6420
|
return true;
|
|
6421
6421
|
}
|
|
6422
6422
|
|
|
6423
|
-
const VERSION$
|
|
6424
|
-
function validate$
|
|
6423
|
+
const VERSION$c = "0873ccd85b32d14c753931243d20ac8b";
|
|
6424
|
+
function validate$h(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$e(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$r(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$e(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$C(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$e(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$i(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$e(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$r(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$e(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$r(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');
|
|
@@ -6590,26 +6590,26 @@ function validate$e(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6590
6590
|
})();
|
|
6591
6591
|
return v_error === undefined ? null : v_error;
|
|
6592
6592
|
}
|
|
6593
|
-
const RepresentationType$
|
|
6594
|
-
function keyBuilder$
|
|
6595
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6593
|
+
const RepresentationType$9 = 'SemanticMetricOutputRepresentation';
|
|
6594
|
+
function keyBuilder$p(luvio, config) {
|
|
6595
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + 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$p(luvio, keyParams);
|
|
6602
6602
|
}
|
|
6603
|
-
function normalize$
|
|
6603
|
+
function normalize$9(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$q = function SemanticMetricOutputRepresentationSelect() {
|
|
6607
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6608
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
6609
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$r();
|
|
6610
6610
|
return {
|
|
6611
6611
|
kind: 'Fragment',
|
|
6612
|
-
version: VERSION$
|
|
6612
|
+
version: VERSION$c,
|
|
6613
6613
|
private: [],
|
|
6614
6614
|
selections: [
|
|
6615
6615
|
{
|
|
@@ -6714,7 +6714,7 @@ const select$m = function SemanticMetricOutputRepresentationSelect() {
|
|
|
6714
6714
|
]
|
|
6715
6715
|
};
|
|
6716
6716
|
};
|
|
6717
|
-
function equals$
|
|
6717
|
+
function equals$c(existing, incoming) {
|
|
6718
6718
|
const existing_isCumulative = existing.isCumulative;
|
|
6719
6719
|
const incoming_isCumulative = incoming.isCumulative;
|
|
6720
6720
|
// if at least one of these optionals is defined
|
|
@@ -6862,7 +6862,7 @@ function equals$9(existing, incoming) {
|
|
|
6862
6862
|
return false;
|
|
6863
6863
|
}
|
|
6864
6864
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
6865
|
-
if (!(equals$
|
|
6865
|
+
if (!(equals$m(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
6866
6866
|
return false;
|
|
6867
6867
|
}
|
|
6868
6868
|
});
|
|
@@ -6880,7 +6880,7 @@ function equals$9(existing, incoming) {
|
|
|
6880
6880
|
return false;
|
|
6881
6881
|
}
|
|
6882
6882
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
6883
|
-
if (!(equals$
|
|
6883
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
6884
6884
|
return false;
|
|
6885
6885
|
}
|
|
6886
6886
|
});
|
|
@@ -6897,7 +6897,7 @@ function equals$9(existing, incoming) {
|
|
|
6897
6897
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
6898
6898
|
return false;
|
|
6899
6899
|
}
|
|
6900
|
-
if (!(equals$
|
|
6900
|
+
if (!(equals$d(existing_insightsSettings, incoming_insightsSettings))) {
|
|
6901
6901
|
return false;
|
|
6902
6902
|
}
|
|
6903
6903
|
}
|
|
@@ -6910,7 +6910,7 @@ function equals$9(existing, incoming) {
|
|
|
6910
6910
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
6911
6911
|
return false;
|
|
6912
6912
|
}
|
|
6913
|
-
if (!(equals$
|
|
6913
|
+
if (!(equals$m(existing_measurementReference, incoming_measurementReference))) {
|
|
6914
6914
|
return false;
|
|
6915
6915
|
}
|
|
6916
6916
|
}
|
|
@@ -6923,7 +6923,7 @@ function equals$9(existing, incoming) {
|
|
|
6923
6923
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
6924
6924
|
return false;
|
|
6925
6925
|
}
|
|
6926
|
-
if (!(equals$
|
|
6926
|
+
if (!(equals$m(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
6927
6927
|
return false;
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
@@ -6947,30 +6947,30 @@ function equals$9(existing, incoming) {
|
|
|
6947
6947
|
}
|
|
6948
6948
|
return true;
|
|
6949
6949
|
}
|
|
6950
|
-
const ingest$
|
|
6950
|
+
const ingest$9 = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6951
6951
|
if (process.env.NODE_ENV !== 'production') {
|
|
6952
|
-
const validateError = validate$
|
|
6952
|
+
const validateError = validate$h(input);
|
|
6953
6953
|
if (validateError !== null) {
|
|
6954
6954
|
throw validateError;
|
|
6955
6955
|
}
|
|
6956
6956
|
}
|
|
6957
6957
|
const key = keyBuilderFromType$3(luvio, input);
|
|
6958
6958
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6959
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6959
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
|
|
6960
6960
|
return createLink(key);
|
|
6961
6961
|
};
|
|
6962
|
-
function getTypeCacheKeys$
|
|
6962
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
6963
6963
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6964
6964
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
6965
6965
|
rootKeySet.set(rootKey, {
|
|
6966
6966
|
namespace: keyPrefix,
|
|
6967
|
-
representationName: RepresentationType$
|
|
6967
|
+
representationName: RepresentationType$9,
|
|
6968
6968
|
mergeable: false
|
|
6969
6969
|
});
|
|
6970
6970
|
}
|
|
6971
6971
|
|
|
6972
|
-
const VERSION$
|
|
6973
|
-
function validate$
|
|
6972
|
+
const VERSION$b = "562f9618d0de907973cf252f01ea567d";
|
|
6973
|
+
function validate$g(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 + '")');
|
|
@@ -7096,23 +7096,23 @@ function validate$d(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7096
7096
|
})();
|
|
7097
7097
|
return v_error === undefined ? null : v_error;
|
|
7098
7098
|
}
|
|
7099
|
-
const RepresentationType$
|
|
7100
|
-
function keyBuilder$
|
|
7101
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7099
|
+
const RepresentationType$8 = 'SemanticParameterOutputRepresentation';
|
|
7100
|
+
function keyBuilder$o(luvio, config) {
|
|
7101
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + 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$o(luvio, keyParams);
|
|
7108
7108
|
}
|
|
7109
|
-
function normalize$
|
|
7109
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7110
7110
|
return input;
|
|
7111
7111
|
}
|
|
7112
|
-
const select$
|
|
7112
|
+
const select$p = function SemanticParameterOutputRepresentationSelect() {
|
|
7113
7113
|
return {
|
|
7114
7114
|
kind: 'Fragment',
|
|
7115
|
-
version: VERSION$
|
|
7115
|
+
version: VERSION$b,
|
|
7116
7116
|
private: [],
|
|
7117
7117
|
selections: [
|
|
7118
7118
|
{
|
|
@@ -7200,7 +7200,7 @@ const select$l = function SemanticParameterOutputRepresentationSelect() {
|
|
|
7200
7200
|
]
|
|
7201
7201
|
};
|
|
7202
7202
|
};
|
|
7203
|
-
function equals$
|
|
7203
|
+
function equals$b(existing, incoming) {
|
|
7204
7204
|
const existing_apiName = existing.apiName;
|
|
7205
7205
|
const incoming_apiName = incoming.apiName;
|
|
7206
7206
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7397,30 +7397,30 @@ function equals$8(existing, incoming) {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
return true;
|
|
7399
7399
|
}
|
|
7400
|
-
const ingest$
|
|
7400
|
+
const ingest$8 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7401
7401
|
if (process.env.NODE_ENV !== 'production') {
|
|
7402
|
-
const validateError = validate$
|
|
7402
|
+
const validateError = validate$g(input);
|
|
7403
7403
|
if (validateError !== null) {
|
|
7404
7404
|
throw validateError;
|
|
7405
7405
|
}
|
|
7406
7406
|
}
|
|
7407
7407
|
const key = keyBuilderFromType$2(luvio, input);
|
|
7408
7408
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7409
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7409
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
|
|
7410
7410
|
return createLink(key);
|
|
7411
7411
|
};
|
|
7412
|
-
function getTypeCacheKeys$
|
|
7412
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7413
7413
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7414
7414
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
7415
7415
|
rootKeySet.set(rootKey, {
|
|
7416
7416
|
namespace: keyPrefix,
|
|
7417
|
-
representationName: RepresentationType$
|
|
7417
|
+
representationName: RepresentationType$8,
|
|
7418
7418
|
mergeable: false
|
|
7419
7419
|
});
|
|
7420
7420
|
}
|
|
7421
7421
|
|
|
7422
|
-
const VERSION$
|
|
7423
|
-
function validate$
|
|
7422
|
+
const VERSION$a = "5cda82e85d7322d459ba16b10b81ee96";
|
|
7423
|
+
function validate$f(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$c(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$D(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');
|
|
@@ -7736,24 +7736,24 @@ function validate$c(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7736
7736
|
})();
|
|
7737
7737
|
return v_error === undefined ? null : v_error;
|
|
7738
7738
|
}
|
|
7739
|
-
const RepresentationType$
|
|
7740
|
-
function keyBuilder$
|
|
7741
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7739
|
+
const RepresentationType$7 = 'SemanticModelOutputRepresentation';
|
|
7740
|
+
function keyBuilder$n(luvio, config) {
|
|
7741
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + 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$n(luvio, keyParams);
|
|
7748
7748
|
}
|
|
7749
|
-
function normalize$
|
|
7749
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7750
7750
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
7751
7751
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
7752
7752
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
7753
7753
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
7754
7754
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
7755
7755
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
7756
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
7756
|
+
input_semanticCalculatedDimensions[i] = ingest$h(input_semanticCalculatedDimensions_item, {
|
|
7757
7757
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
7758
7758
|
propertyName: i,
|
|
7759
7759
|
parent: {
|
|
@@ -7771,7 +7771,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7771
7771
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
7772
7772
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
7773
7773
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
7774
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
7774
|
+
input_semanticCalculatedMeasurements[i] = ingest$g(input_semanticCalculatedMeasurements_item, {
|
|
7775
7775
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
7776
7776
|
propertyName: i,
|
|
7777
7777
|
parent: {
|
|
@@ -7789,7 +7789,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7789
7789
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7790
7790
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7791
7791
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7792
|
-
input_semanticDataObjects[i] = ingest$
|
|
7792
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
7793
7793
|
fullPath: input_semanticDataObjects_item_id,
|
|
7794
7794
|
propertyName: i,
|
|
7795
7795
|
parent: {
|
|
@@ -7807,7 +7807,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7807
7807
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
7808
7808
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
7809
7809
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
7810
|
-
input_semanticGroupings[i] = ingest$
|
|
7810
|
+
input_semanticGroupings[i] = ingest$e(input_semanticGroupings_item, {
|
|
7811
7811
|
fullPath: input_semanticGroupings_item_id,
|
|
7812
7812
|
propertyName: i,
|
|
7813
7813
|
parent: {
|
|
@@ -7825,7 +7825,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7825
7825
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
7826
7826
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
7827
7827
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
7828
|
-
input_semanticLogicalViews[i] = ingest$
|
|
7828
|
+
input_semanticLogicalViews[i] = ingest$a(input_semanticLogicalViews_item, {
|
|
7829
7829
|
fullPath: input_semanticLogicalViews_item_id,
|
|
7830
7830
|
propertyName: i,
|
|
7831
7831
|
parent: {
|
|
@@ -7843,7 +7843,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7843
7843
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
7844
7844
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
7845
7845
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
7846
|
-
input_semanticMetrics[i] = ingest$
|
|
7846
|
+
input_semanticMetrics[i] = ingest$9(input_semanticMetrics_item, {
|
|
7847
7847
|
fullPath: input_semanticMetrics_item_id,
|
|
7848
7848
|
propertyName: i,
|
|
7849
7849
|
parent: {
|
|
@@ -7861,7 +7861,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7861
7861
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
7862
7862
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
7863
7863
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
7864
|
-
input_semanticParameters[i] = ingest$
|
|
7864
|
+
input_semanticParameters[i] = ingest$8(input_semanticParameters_item, {
|
|
7865
7865
|
fullPath: input_semanticParameters_item_id,
|
|
7866
7866
|
propertyName: i,
|
|
7867
7867
|
parent: {
|
|
@@ -7879,7 +7879,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7879
7879
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7880
7880
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7881
7881
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7882
|
-
input_semanticRelationships[i] = ingest$
|
|
7882
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
7883
7883
|
fullPath: input_semanticRelationships_item_id,
|
|
7884
7884
|
propertyName: i,
|
|
7885
7885
|
parent: {
|
|
@@ -7893,11 +7893,11 @@ 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$o = function SemanticModelOutputRepresentationSelect() {
|
|
7897
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
7898
7898
|
return {
|
|
7899
7899
|
kind: 'Fragment',
|
|
7900
|
-
version: VERSION$
|
|
7900
|
+
version: VERSION$a,
|
|
7901
7901
|
private: [],
|
|
7902
7902
|
selections: [
|
|
7903
7903
|
{
|
|
@@ -7983,7 +7983,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
7983
7983
|
kind: 'Link',
|
|
7984
7984
|
plural: true,
|
|
7985
7985
|
required: false,
|
|
7986
|
-
fragment: select$
|
|
7986
|
+
fragment: select$I()
|
|
7987
7987
|
},
|
|
7988
7988
|
{
|
|
7989
7989
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -7995,7 +7995,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
7995
7995
|
kind: 'Link',
|
|
7996
7996
|
plural: true,
|
|
7997
7997
|
required: false,
|
|
7998
|
-
fragment: select$
|
|
7998
|
+
fragment: select$H()
|
|
7999
7999
|
},
|
|
8000
8000
|
{
|
|
8001
8001
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -8007,7 +8007,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8007
8007
|
kind: 'Link',
|
|
8008
8008
|
plural: true,
|
|
8009
8009
|
required: false,
|
|
8010
|
-
fragment: select$
|
|
8010
|
+
fragment: select$G()
|
|
8011
8011
|
},
|
|
8012
8012
|
{
|
|
8013
8013
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8019,7 +8019,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8019
8019
|
kind: 'Link',
|
|
8020
8020
|
plural: true,
|
|
8021
8021
|
required: false,
|
|
8022
|
-
fragment: select$
|
|
8022
|
+
fragment: select$z()
|
|
8023
8023
|
},
|
|
8024
8024
|
{
|
|
8025
8025
|
name: 'semanticGroupingsUrl',
|
|
@@ -8031,21 +8031,21 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8031
8031
|
kind: 'Link',
|
|
8032
8032
|
plural: true,
|
|
8033
8033
|
required: false,
|
|
8034
|
-
fragment: select$
|
|
8034
|
+
fragment: select$u()
|
|
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$q()
|
|
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$p()
|
|
8049
8049
|
},
|
|
8050
8050
|
{
|
|
8051
8051
|
name: 'semanticParametersUrl',
|
|
@@ -8057,7 +8057,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8057
8057
|
kind: 'Link',
|
|
8058
8058
|
plural: true,
|
|
8059
8059
|
required: false,
|
|
8060
|
-
fragment: select$
|
|
8060
|
+
fragment: select$x()
|
|
8061
8061
|
},
|
|
8062
8062
|
{
|
|
8063
8063
|
name: 'semanticRelationshipsUrl',
|
|
@@ -8077,7 +8077,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8077
8077
|
]
|
|
8078
8078
|
};
|
|
8079
8079
|
};
|
|
8080
|
-
function equals$
|
|
8080
|
+
function equals$a(existing, incoming) {
|
|
8081
8081
|
const existing_isLocked = existing.isLocked;
|
|
8082
8082
|
const incoming_isLocked = incoming.isLocked;
|
|
8083
8083
|
// if at least one of these optionals is defined
|
|
@@ -8321,7 +8321,7 @@ function equals$7(existing, incoming) {
|
|
|
8321
8321
|
return false;
|
|
8322
8322
|
}
|
|
8323
8323
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
8324
|
-
if (!(equals$
|
|
8324
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
8325
8325
|
return false;
|
|
8326
8326
|
}
|
|
8327
8327
|
});
|
|
@@ -8506,89 +8506,89 @@ function equals$7(existing, incoming) {
|
|
|
8506
8506
|
}
|
|
8507
8507
|
return true;
|
|
8508
8508
|
}
|
|
8509
|
-
const ingest$
|
|
8509
|
+
const ingest$7 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8510
8510
|
if (process.env.NODE_ENV !== 'production') {
|
|
8511
|
-
const validateError = validate$
|
|
8511
|
+
const validateError = validate$f(input);
|
|
8512
8512
|
if (validateError !== null) {
|
|
8513
8513
|
throw validateError;
|
|
8514
8514
|
}
|
|
8515
8515
|
}
|
|
8516
8516
|
const key = keyBuilderFromType$1(luvio, input);
|
|
8517
8517
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8518
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8518
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$a, RepresentationType$7, equals$a);
|
|
8519
8519
|
return createLink(key);
|
|
8520
8520
|
};
|
|
8521
|
-
function getTypeCacheKeys$
|
|
8521
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8522
8522
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8523
8523
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
8524
8524
|
rootKeySet.set(rootKey, {
|
|
8525
8525
|
namespace: keyPrefix,
|
|
8526
|
-
representationName: RepresentationType$
|
|
8526
|
+
representationName: RepresentationType$7,
|
|
8527
8527
|
mergeable: false
|
|
8528
8528
|
});
|
|
8529
8529
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
8530
8530
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
8531
8531
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
8532
|
-
getTypeCacheKeys$
|
|
8532
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
8533
8533
|
}
|
|
8534
8534
|
}
|
|
8535
8535
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
8536
8536
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
8537
8537
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
8538
|
-
getTypeCacheKeys$
|
|
8538
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
8539
8539
|
}
|
|
8540
8540
|
}
|
|
8541
8541
|
if (input.semanticDataObjects !== undefined) {
|
|
8542
8542
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8543
8543
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8544
|
-
getTypeCacheKeys$
|
|
8544
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8545
8545
|
}
|
|
8546
8546
|
}
|
|
8547
8547
|
if (input.semanticGroupings !== undefined) {
|
|
8548
8548
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
8549
8549
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
8550
|
-
getTypeCacheKeys$
|
|
8550
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
8551
8551
|
}
|
|
8552
8552
|
}
|
|
8553
8553
|
if (input.semanticLogicalViews !== undefined) {
|
|
8554
8554
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
8555
8555
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
8556
|
-
getTypeCacheKeys$
|
|
8556
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
8557
8557
|
}
|
|
8558
8558
|
}
|
|
8559
8559
|
if (input.semanticMetrics !== undefined) {
|
|
8560
8560
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
8561
8561
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
8562
|
-
getTypeCacheKeys$
|
|
8562
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
8563
8563
|
}
|
|
8564
8564
|
}
|
|
8565
8565
|
if (input.semanticParameters !== undefined) {
|
|
8566
8566
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
8567
8567
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
8568
|
-
getTypeCacheKeys$
|
|
8568
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticParameters[i]);
|
|
8569
8569
|
}
|
|
8570
8570
|
}
|
|
8571
8571
|
if (input.semanticRelationships !== undefined) {
|
|
8572
8572
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8573
8573
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8574
|
-
getTypeCacheKeys$
|
|
8574
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8575
8575
|
}
|
|
8576
8576
|
}
|
|
8577
8577
|
}
|
|
8578
8578
|
|
|
8579
|
-
function select$
|
|
8580
|
-
return select$
|
|
8579
|
+
function select$n(luvio, params) {
|
|
8580
|
+
return select$o();
|
|
8581
8581
|
}
|
|
8582
|
-
function getResponseCacheKeys$
|
|
8583
|
-
getTypeCacheKeys$
|
|
8582
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
8583
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
8584
8584
|
}
|
|
8585
|
-
function ingestSuccess$
|
|
8585
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
8586
8586
|
const { body } = response;
|
|
8587
8587
|
const key = keyBuilderFromType$1(luvio, body);
|
|
8588
|
-
luvio.storeIngest(key, ingest$
|
|
8588
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
8589
8589
|
const snapshot = luvio.storeLookup({
|
|
8590
8590
|
recordId: key,
|
|
8591
|
-
node: select$
|
|
8591
|
+
node: select$n(),
|
|
8592
8592
|
variables: {},
|
|
8593
8593
|
});
|
|
8594
8594
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8599,7 +8599,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
8599
8599
|
deepFreeze(snapshot.data);
|
|
8600
8600
|
return snapshot;
|
|
8601
8601
|
}
|
|
8602
|
-
function createResourceRequest$
|
|
8602
|
+
function createResourceRequest$f(config) {
|
|
8603
8603
|
const headers = {};
|
|
8604
8604
|
return {
|
|
8605
8605
|
baseUri: '/services/data/v64.0',
|
|
@@ -8613,7 +8613,7 @@ function createResourceRequest$e(config) {
|
|
|
8613
8613
|
};
|
|
8614
8614
|
}
|
|
8615
8615
|
|
|
8616
|
-
const adapterName$
|
|
8616
|
+
const adapterName$f = '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$f, createSemanticModel_ConfigPropertyMetadata);
|
|
8638
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
8639
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
8640
8640
|
const config = {};
|
|
8641
|
-
typeCheckConfig$
|
|
8641
|
+
typeCheckConfig$g(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$$(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$e(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$Z(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$e(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$Y(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$e(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$V(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$e(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$O(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$e(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$J(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$e(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$F(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$e(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$E(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$e(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$M(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$e(untrustedConfig) {
|
|
|
8749
8749
|
}
|
|
8750
8750
|
return config;
|
|
8751
8751
|
}
|
|
8752
|
-
function validateAdapterConfig$
|
|
8752
|
+
function validateAdapterConfig$f(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$f(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$f(luvio, config, options) {
|
|
8766
|
+
const resourceParams = createResourceParams$f(config);
|
|
8767
|
+
const request = createResourceRequest$f(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$d(luvio, resourceParams, response);
|
|
8772
8772
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8773
8773
|
}, () => {
|
|
8774
8774
|
const cache = new StoreKeyMap();
|
|
8775
|
-
getResponseCacheKeys$
|
|
8775
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
8776
8776
|
return cache;
|
|
8777
8777
|
});
|
|
8778
8778
|
}, (response) => {
|
|
@@ -8782,16 +8782,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
8782
8782
|
}
|
|
8783
8783
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8784
8784
|
return function createSemanticModel(untrustedConfig) {
|
|
8785
|
-
const config = validateAdapterConfig$
|
|
8785
|
+
const config = validateAdapterConfig$f(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$f(luvio, config);
|
|
8791
8791
|
};
|
|
8792
8792
|
};
|
|
8793
8793
|
|
|
8794
|
-
function validate$
|
|
8794
|
+
function validate$e(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 + '")');
|
|
@@ -8842,7 +8842,7 @@ function validate$b(obj, path = 'SemanticGoalStatusConditionInputRepresentation'
|
|
|
8842
8842
|
return v_error === undefined ? null : v_error;
|
|
8843
8843
|
}
|
|
8844
8844
|
|
|
8845
|
-
function validate$
|
|
8845
|
+
function validate$d(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
8846
8846
|
const v_error = (() => {
|
|
8847
8847
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8848
8848
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8863,7 +8863,7 @@ function validate$a(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
8863
8863
|
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
8864
8864
|
const obj_statusConditions_item = obj_statusConditions[i];
|
|
8865
8865
|
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
8866
|
-
const referencepath_statusConditions_itemValidationError = validate$
|
|
8866
|
+
const referencepath_statusConditions_itemValidationError = validate$e(obj_statusConditions_item, path_statusConditions_item);
|
|
8867
8867
|
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
8868
8868
|
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
8869
8869
|
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8875,7 +8875,7 @@ function validate$a(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
8875
8875
|
return v_error === undefined ? null : v_error;
|
|
8876
8876
|
}
|
|
8877
8877
|
|
|
8878
|
-
function validate$
|
|
8878
|
+
function validate$c(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
8879
8879
|
const v_error = (() => {
|
|
8880
8880
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8881
8881
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8905,7 +8905,7 @@ function validate$9(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
8905
8905
|
return v_error === undefined ? null : v_error;
|
|
8906
8906
|
}
|
|
8907
8907
|
|
|
8908
|
-
function validate$
|
|
8908
|
+
function validate$b(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
8909
8909
|
const v_error = (() => {
|
|
8910
8910
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8911
8911
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8919,7 +8919,7 @@ function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
|
8919
8919
|
return v_error === undefined ? null : v_error;
|
|
8920
8920
|
}
|
|
8921
8921
|
|
|
8922
|
-
function validate$
|
|
8922
|
+
function validate$a(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
8923
8923
|
const v_error = (() => {
|
|
8924
8924
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8925
8925
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8949,8 +8949,8 @@ function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
|
8949
8949
|
return v_error === undefined ? null : v_error;
|
|
8950
8950
|
}
|
|
8951
8951
|
|
|
8952
|
-
const VERSION$
|
|
8953
|
-
function validate$
|
|
8952
|
+
const VERSION$9 = "34ece37408ddd80874097c87b829ae97";
|
|
8953
|
+
function validate$9(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
8954
8954
|
const v_error = (() => {
|
|
8955
8955
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8956
8956
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9007,7 +9007,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9007
9007
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
9008
9008
|
const obj_filters_item = obj_filters[i];
|
|
9009
9009
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
9010
|
-
const referencepath_filters_itemValidationError = validate$
|
|
9010
|
+
const referencepath_filters_itemValidationError = validate$C(obj_filters_item, path_filters_item);
|
|
9011
9011
|
if (referencepath_filters_itemValidationError !== null) {
|
|
9012
9012
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
9013
9013
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9018,7 +9018,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9018
9018
|
if (obj.goal !== undefined) {
|
|
9019
9019
|
const obj_goal = obj.goal;
|
|
9020
9020
|
const path_goal = path + '.goal';
|
|
9021
|
-
const referencepath_goalValidationError = validate$
|
|
9021
|
+
const referencepath_goalValidationError = validate$b(obj_goal, path_goal);
|
|
9022
9022
|
if (referencepath_goalValidationError !== null) {
|
|
9023
9023
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
9024
9024
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9061,7 +9061,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9061
9061
|
if (obj.semanticMetric !== undefined) {
|
|
9062
9062
|
const obj_semanticMetric = obj.semanticMetric;
|
|
9063
9063
|
const path_semanticMetric = path + '.semanticMetric';
|
|
9064
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
9064
|
+
const referencepath_semanticMetricValidationError = validate$h(obj_semanticMetric, path_semanticMetric);
|
|
9065
9065
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
9066
9066
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
9067
9067
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9071,7 +9071,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9071
9071
|
if (obj.timeRange !== undefined) {
|
|
9072
9072
|
const obj_timeRange = obj.timeRange;
|
|
9073
9073
|
const path_timeRange = path + '.timeRange';
|
|
9074
|
-
const referencepath_timeRangeValidationError = validate$
|
|
9074
|
+
const referencepath_timeRangeValidationError = validate$a(obj_timeRange, path_timeRange);
|
|
9075
9075
|
if (referencepath_timeRangeValidationError !== null) {
|
|
9076
9076
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
9077
9077
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9081,68 +9081,68 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9081
9081
|
})();
|
|
9082
9082
|
return v_error === undefined ? null : v_error;
|
|
9083
9083
|
}
|
|
9084
|
-
const RepresentationType$
|
|
9085
|
-
function keyBuilder$
|
|
9086
|
-
return keyPrefix + '::' + RepresentationType$
|
|
9084
|
+
const RepresentationType$6 = 'SemanticSubMetricOutputRepresentation';
|
|
9085
|
+
function keyBuilder$m(luvio, config) {
|
|
9086
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9087
9087
|
}
|
|
9088
9088
|
function keyBuilderFromType(luvio, object) {
|
|
9089
9089
|
const keyParams = {
|
|
9090
9090
|
name: object.id
|
|
9091
9091
|
};
|
|
9092
|
-
return keyBuilder$
|
|
9092
|
+
return keyBuilder$m(luvio, keyParams);
|
|
9093
9093
|
}
|
|
9094
|
-
function normalize$
|
|
9094
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9095
9095
|
return input;
|
|
9096
9096
|
}
|
|
9097
|
-
const select$
|
|
9097
|
+
const select$m = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9098
9098
|
return {
|
|
9099
9099
|
kind: 'Fragment',
|
|
9100
|
-
version: VERSION$
|
|
9100
|
+
version: VERSION$9,
|
|
9101
9101
|
private: [],
|
|
9102
9102
|
opaque: true
|
|
9103
9103
|
};
|
|
9104
9104
|
};
|
|
9105
|
-
function equals$
|
|
9105
|
+
function equals$9(existing, incoming) {
|
|
9106
9106
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
9107
9107
|
return false;
|
|
9108
9108
|
}
|
|
9109
9109
|
return true;
|
|
9110
9110
|
}
|
|
9111
|
-
const ingest$
|
|
9111
|
+
const ingest$6 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9112
9112
|
if (process.env.NODE_ENV !== 'production') {
|
|
9113
|
-
const validateError = validate$
|
|
9113
|
+
const validateError = validate$9(input);
|
|
9114
9114
|
if (validateError !== null) {
|
|
9115
9115
|
throw validateError;
|
|
9116
9116
|
}
|
|
9117
9117
|
}
|
|
9118
9118
|
const key = keyBuilderFromType(luvio, input);
|
|
9119
9119
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9120
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9120
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$9, RepresentationType$6, equals$9);
|
|
9121
9121
|
return createLink(key);
|
|
9122
9122
|
};
|
|
9123
|
-
function getTypeCacheKeys$
|
|
9123
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
9124
9124
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9125
9125
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
9126
9126
|
rootKeySet.set(rootKey, {
|
|
9127
9127
|
namespace: keyPrefix,
|
|
9128
|
-
representationName: RepresentationType$
|
|
9128
|
+
representationName: RepresentationType$6,
|
|
9129
9129
|
mergeable: false
|
|
9130
9130
|
});
|
|
9131
9131
|
}
|
|
9132
9132
|
|
|
9133
|
-
function select$
|
|
9134
|
-
return select$
|
|
9133
|
+
function select$l(luvio, params) {
|
|
9134
|
+
return select$m();
|
|
9135
9135
|
}
|
|
9136
|
-
function getResponseCacheKeys$
|
|
9137
|
-
getTypeCacheKeys$
|
|
9136
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
9137
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9138
9138
|
}
|
|
9139
|
-
function ingestSuccess$
|
|
9139
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
9140
9140
|
const { body } = response;
|
|
9141
9141
|
const key = keyBuilderFromType(luvio, body);
|
|
9142
|
-
luvio.storeIngest(key, ingest$
|
|
9142
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
9143
9143
|
const snapshot = luvio.storeLookup({
|
|
9144
9144
|
recordId: key,
|
|
9145
|
-
node: select$
|
|
9145
|
+
node: select$l(),
|
|
9146
9146
|
variables: {},
|
|
9147
9147
|
});
|
|
9148
9148
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9153,7 +9153,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
9153
9153
|
deepFreeze(snapshot.data);
|
|
9154
9154
|
return snapshot;
|
|
9155
9155
|
}
|
|
9156
|
-
function createResourceRequest$
|
|
9156
|
+
function createResourceRequest$e(config) {
|
|
9157
9157
|
const headers = {};
|
|
9158
9158
|
return {
|
|
9159
9159
|
baseUri: '/services/data/v64.0',
|
|
@@ -9167,7 +9167,7 @@ function createResourceRequest$d(config) {
|
|
|
9167
9167
|
};
|
|
9168
9168
|
}
|
|
9169
9169
|
|
|
9170
|
-
const adapterName$
|
|
9170
|
+
const adapterName$e = 'createSemanticSubMetric';
|
|
9171
9171
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9172
9172
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9173
9173
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9179,17 +9179,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
9179
9179
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
9180
9180
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
9181
9181
|
];
|
|
9182
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9183
|
-
const createResourceParams$
|
|
9184
|
-
function typeCheckConfig$
|
|
9182
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9183
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9184
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
9185
9185
|
const config = {};
|
|
9186
|
-
typeCheckConfig$
|
|
9186
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9187
9187
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
9188
9188
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
9189
9189
|
const untrustedConfig_filters_array = [];
|
|
9190
9190
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
9191
9191
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
9192
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate$
|
|
9192
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$_(untrustedConfig_filters_item);
|
|
9193
9193
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
9194
9194
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
9195
9195
|
}
|
|
@@ -9197,41 +9197,41 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
9197
9197
|
config.filters = untrustedConfig_filters_array;
|
|
9198
9198
|
}
|
|
9199
9199
|
const untrustedConfig_goal = untrustedConfig.goal;
|
|
9200
|
-
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$
|
|
9200
|
+
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$d(untrustedConfig_goal);
|
|
9201
9201
|
if (referenceSemanticMetricGoalInputRepresentationValidationError === null) {
|
|
9202
9202
|
config.goal = untrustedConfig_goal;
|
|
9203
9203
|
}
|
|
9204
9204
|
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
9205
|
-
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$
|
|
9205
|
+
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$c(untrustedConfig_timeRange);
|
|
9206
9206
|
if (referenceSemanticTimeRangeInputRepresentationValidationError === null) {
|
|
9207
9207
|
config.timeRange = untrustedConfig_timeRange;
|
|
9208
9208
|
}
|
|
9209
9209
|
return config;
|
|
9210
9210
|
}
|
|
9211
|
-
function validateAdapterConfig$
|
|
9211
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
9212
9212
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9213
9213
|
return null;
|
|
9214
9214
|
}
|
|
9215
9215
|
if (process.env.NODE_ENV !== 'production') {
|
|
9216
9216
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9217
9217
|
}
|
|
9218
|
-
const config = typeCheckConfig$
|
|
9218
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
9219
9219
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9220
9220
|
return null;
|
|
9221
9221
|
}
|
|
9222
9222
|
return config;
|
|
9223
9223
|
}
|
|
9224
|
-
function buildNetworkSnapshot$
|
|
9225
|
-
const resourceParams = createResourceParams$
|
|
9226
|
-
const request = createResourceRequest$
|
|
9224
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
9225
|
+
const resourceParams = createResourceParams$e(config);
|
|
9226
|
+
const request = createResourceRequest$e(resourceParams);
|
|
9227
9227
|
return luvio.dispatchResourceRequest(request, options)
|
|
9228
9228
|
.then((response) => {
|
|
9229
9229
|
return luvio.handleSuccessResponse(() => {
|
|
9230
|
-
const snapshot = ingestSuccess$
|
|
9230
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
9231
9231
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9232
9232
|
}, () => {
|
|
9233
9233
|
const cache = new StoreKeyMap();
|
|
9234
|
-
getResponseCacheKeys$
|
|
9234
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
9235
9235
|
return cache;
|
|
9236
9236
|
});
|
|
9237
9237
|
}, (response) => {
|
|
@@ -9241,33 +9241,33 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
9241
9241
|
}
|
|
9242
9242
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9243
9243
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
9244
|
-
const config = validateAdapterConfig$
|
|
9244
|
+
const config = validateAdapterConfig$e(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
9245
9245
|
// Invalid or incomplete config
|
|
9246
9246
|
if (config === null) {
|
|
9247
9247
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
9248
9248
|
}
|
|
9249
|
-
return buildNetworkSnapshot$
|
|
9249
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
9250
9250
|
};
|
|
9251
9251
|
};
|
|
9252
9252
|
|
|
9253
|
-
function keyBuilder$
|
|
9254
|
-
return keyBuilder$
|
|
9253
|
+
function keyBuilder$l(luvio, params) {
|
|
9254
|
+
return keyBuilder$m(luvio, {
|
|
9255
9255
|
name: params.urlParams.subMetricNameOrId
|
|
9256
9256
|
});
|
|
9257
9257
|
}
|
|
9258
|
-
function getResponseCacheKeys$
|
|
9259
|
-
const key = keyBuilder$
|
|
9258
|
+
function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
|
|
9259
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9260
9260
|
cacheKeyMap.set(key, {
|
|
9261
9261
|
namespace: keyPrefix,
|
|
9262
|
-
representationName: RepresentationType$
|
|
9262
|
+
representationName: RepresentationType$6,
|
|
9263
9263
|
mergeable: false
|
|
9264
9264
|
});
|
|
9265
9265
|
}
|
|
9266
9266
|
function evictSuccess$1(luvio, resourceParams) {
|
|
9267
|
-
const key = keyBuilder$
|
|
9267
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9268
9268
|
luvio.storeEvict(key);
|
|
9269
9269
|
}
|
|
9270
|
-
function createResourceRequest$
|
|
9270
|
+
function createResourceRequest$d(config) {
|
|
9271
9271
|
const headers = {};
|
|
9272
9272
|
return {
|
|
9273
9273
|
baseUri: '/services/data/v64.0',
|
|
@@ -9281,34 +9281,34 @@ function createResourceRequest$c(config) {
|
|
|
9281
9281
|
};
|
|
9282
9282
|
}
|
|
9283
9283
|
|
|
9284
|
-
const adapterName$
|
|
9284
|
+
const adapterName$d = 'deleteGoalFromSubMetric';
|
|
9285
9285
|
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
9286
9286
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9287
9287
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9288
9288
|
];
|
|
9289
|
-
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9290
|
-
const createResourceParams$
|
|
9291
|
-
function typeCheckConfig$
|
|
9289
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9290
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9291
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9292
9292
|
const config = {};
|
|
9293
|
-
typeCheckConfig$
|
|
9293
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9294
9294
|
return config;
|
|
9295
9295
|
}
|
|
9296
|
-
function validateAdapterConfig$
|
|
9296
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
9297
9297
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9298
9298
|
return null;
|
|
9299
9299
|
}
|
|
9300
9300
|
if (process.env.NODE_ENV !== 'production') {
|
|
9301
9301
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9302
9302
|
}
|
|
9303
|
-
const config = typeCheckConfig$
|
|
9303
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
9304
9304
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9305
9305
|
return null;
|
|
9306
9306
|
}
|
|
9307
9307
|
return config;
|
|
9308
9308
|
}
|
|
9309
|
-
function buildNetworkSnapshot$
|
|
9310
|
-
const resourceParams = createResourceParams$
|
|
9311
|
-
const request = createResourceRequest$
|
|
9309
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
9310
|
+
const resourceParams = createResourceParams$d(config);
|
|
9311
|
+
const request = createResourceRequest$d(resourceParams);
|
|
9312
9312
|
return luvio.dispatchResourceRequest(request, options)
|
|
9313
9313
|
.then(() => {
|
|
9314
9314
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -9316,7 +9316,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
9316
9316
|
return luvio.storeBroadcast();
|
|
9317
9317
|
}, () => {
|
|
9318
9318
|
const cache = new StoreKeyMap();
|
|
9319
|
-
getResponseCacheKeys$
|
|
9319
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams);
|
|
9320
9320
|
return cache;
|
|
9321
9321
|
});
|
|
9322
9322
|
}, (response) => {
|
|
@@ -9326,33 +9326,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
9326
9326
|
}
|
|
9327
9327
|
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
9328
9328
|
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
9329
|
-
const config = validateAdapterConfig$
|
|
9329
|
+
const config = validateAdapterConfig$d(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
9330
9330
|
// Invalid or incomplete config
|
|
9331
9331
|
if (config === null) {
|
|
9332
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9332
|
+
throw new Error(`Invalid config for "${adapterName$d}"`);
|
|
9333
9333
|
}
|
|
9334
|
-
return buildNetworkSnapshot$
|
|
9334
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
9335
9335
|
};
|
|
9336
9336
|
};
|
|
9337
9337
|
|
|
9338
|
-
function keyBuilder$
|
|
9339
|
-
return keyBuilder$
|
|
9338
|
+
function keyBuilder$k(luvio, params) {
|
|
9339
|
+
return keyBuilder$m(luvio, {
|
|
9340
9340
|
name: params.urlParams.subMetricNameOrId
|
|
9341
9341
|
});
|
|
9342
9342
|
}
|
|
9343
|
-
function getResponseCacheKeys$
|
|
9344
|
-
const key = keyBuilder$
|
|
9343
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
9344
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9345
9345
|
cacheKeyMap.set(key, {
|
|
9346
9346
|
namespace: keyPrefix,
|
|
9347
|
-
representationName: RepresentationType$
|
|
9347
|
+
representationName: RepresentationType$6,
|
|
9348
9348
|
mergeable: false
|
|
9349
9349
|
});
|
|
9350
9350
|
}
|
|
9351
9351
|
function evictSuccess(luvio, resourceParams) {
|
|
9352
|
-
const key = keyBuilder$
|
|
9352
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9353
9353
|
luvio.storeEvict(key);
|
|
9354
9354
|
}
|
|
9355
|
-
function createResourceRequest$
|
|
9355
|
+
function createResourceRequest$c(config) {
|
|
9356
9356
|
const headers = {};
|
|
9357
9357
|
return {
|
|
9358
9358
|
baseUri: '/services/data/v64.0',
|
|
@@ -9366,34 +9366,34 @@ function createResourceRequest$b(config) {
|
|
|
9366
9366
|
};
|
|
9367
9367
|
}
|
|
9368
9368
|
|
|
9369
|
-
const adapterName$
|
|
9369
|
+
const adapterName$c = 'deleteSemanticSubMetric';
|
|
9370
9370
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9371
9371
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9372
9372
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9373
9373
|
];
|
|
9374
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9375
|
-
const createResourceParams$
|
|
9376
|
-
function typeCheckConfig$
|
|
9374
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9375
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9376
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9377
9377
|
const config = {};
|
|
9378
|
-
typeCheckConfig$
|
|
9378
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9379
9379
|
return config;
|
|
9380
9380
|
}
|
|
9381
|
-
function validateAdapterConfig$
|
|
9381
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
9382
9382
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9383
9383
|
return null;
|
|
9384
9384
|
}
|
|
9385
9385
|
if (process.env.NODE_ENV !== 'production') {
|
|
9386
9386
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9387
9387
|
}
|
|
9388
|
-
const config = typeCheckConfig$
|
|
9388
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
9389
9389
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9390
9390
|
return null;
|
|
9391
9391
|
}
|
|
9392
9392
|
return config;
|
|
9393
9393
|
}
|
|
9394
|
-
function buildNetworkSnapshot$
|
|
9395
|
-
const resourceParams = createResourceParams$
|
|
9396
|
-
const request = createResourceRequest$
|
|
9394
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
9395
|
+
const resourceParams = createResourceParams$c(config);
|
|
9396
|
+
const request = createResourceRequest$c(resourceParams);
|
|
9397
9397
|
return luvio.dispatchResourceRequest(request, options)
|
|
9398
9398
|
.then(() => {
|
|
9399
9399
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -9401,7 +9401,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9401
9401
|
return luvio.storeBroadcast();
|
|
9402
9402
|
}, () => {
|
|
9403
9403
|
const cache = new StoreKeyMap();
|
|
9404
|
-
getResponseCacheKeys$
|
|
9404
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
9405
9405
|
return cache;
|
|
9406
9406
|
});
|
|
9407
9407
|
}, (response) => {
|
|
@@ -9411,30 +9411,479 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9411
9411
|
}
|
|
9412
9412
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9413
9413
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
9414
|
-
const config = validateAdapterConfig$
|
|
9414
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
9415
9415
|
// Invalid or incomplete config
|
|
9416
9416
|
if (config === null) {
|
|
9417
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9417
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
9418
9418
|
}
|
|
9419
|
-
return buildNetworkSnapshot$
|
|
9419
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
9420
9420
|
};
|
|
9421
9421
|
};
|
|
9422
9422
|
|
|
9423
|
+
const VERSION$8 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
9424
|
+
function validate$8(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
9425
|
+
const v_error = (() => {
|
|
9426
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9427
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9428
|
+
}
|
|
9429
|
+
const obj_apiName = obj.apiName;
|
|
9430
|
+
const path_apiName = path + '.apiName';
|
|
9431
|
+
if (typeof obj_apiName !== 'string') {
|
|
9432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
9433
|
+
}
|
|
9434
|
+
if (obj.definitionType !== undefined) {
|
|
9435
|
+
const obj_definitionType = obj.definitionType;
|
|
9436
|
+
const path_definitionType = path + '.definitionType';
|
|
9437
|
+
if (typeof obj_definitionType !== 'string') {
|
|
9438
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
9439
|
+
}
|
|
9440
|
+
}
|
|
9441
|
+
if (obj.label !== undefined) {
|
|
9442
|
+
const obj_label = obj.label;
|
|
9443
|
+
const path_label = path + '.label';
|
|
9444
|
+
if (typeof obj_label !== 'string') {
|
|
9445
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
9446
|
+
}
|
|
9447
|
+
}
|
|
9448
|
+
if (obj.modelApiName !== undefined) {
|
|
9449
|
+
const obj_modelApiName = obj.modelApiName;
|
|
9450
|
+
const path_modelApiName = path + '.modelApiName';
|
|
9451
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
9452
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
9453
|
+
}
|
|
9454
|
+
}
|
|
9455
|
+
})();
|
|
9456
|
+
return v_error === undefined ? null : v_error;
|
|
9457
|
+
}
|
|
9458
|
+
const select$k = function SemanticDependencyOutputRepresentationSelect() {
|
|
9459
|
+
return {
|
|
9460
|
+
kind: 'Fragment',
|
|
9461
|
+
version: VERSION$8,
|
|
9462
|
+
private: [],
|
|
9463
|
+
selections: [
|
|
9464
|
+
{
|
|
9465
|
+
name: 'apiName',
|
|
9466
|
+
kind: 'Scalar'
|
|
9467
|
+
},
|
|
9468
|
+
{
|
|
9469
|
+
name: 'definitionType',
|
|
9470
|
+
kind: 'Scalar',
|
|
9471
|
+
required: false
|
|
9472
|
+
},
|
|
9473
|
+
{
|
|
9474
|
+
name: 'label',
|
|
9475
|
+
kind: 'Scalar',
|
|
9476
|
+
required: false
|
|
9477
|
+
},
|
|
9478
|
+
{
|
|
9479
|
+
name: 'modelApiName',
|
|
9480
|
+
kind: 'Scalar',
|
|
9481
|
+
required: false
|
|
9482
|
+
}
|
|
9483
|
+
]
|
|
9484
|
+
};
|
|
9485
|
+
};
|
|
9486
|
+
function equals$8(existing, incoming) {
|
|
9487
|
+
const existing_apiName = existing.apiName;
|
|
9488
|
+
const incoming_apiName = incoming.apiName;
|
|
9489
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
9490
|
+
return false;
|
|
9491
|
+
}
|
|
9492
|
+
const existing_definitionType = existing.definitionType;
|
|
9493
|
+
const incoming_definitionType = incoming.definitionType;
|
|
9494
|
+
// if at least one of these optionals is defined
|
|
9495
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
9496
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9497
|
+
// not equal
|
|
9498
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
9499
|
+
return false;
|
|
9500
|
+
}
|
|
9501
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
9502
|
+
return false;
|
|
9503
|
+
}
|
|
9504
|
+
}
|
|
9505
|
+
const existing_label = existing.label;
|
|
9506
|
+
const incoming_label = incoming.label;
|
|
9507
|
+
// if at least one of these optionals is defined
|
|
9508
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
9509
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9510
|
+
// not equal
|
|
9511
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
9512
|
+
return false;
|
|
9513
|
+
}
|
|
9514
|
+
if (!(existing_label === incoming_label)) {
|
|
9515
|
+
return false;
|
|
9516
|
+
}
|
|
9517
|
+
}
|
|
9518
|
+
const existing_modelApiName = existing.modelApiName;
|
|
9519
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
9520
|
+
// if at least one of these optionals is defined
|
|
9521
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
9522
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9523
|
+
// not equal
|
|
9524
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
9525
|
+
return false;
|
|
9526
|
+
}
|
|
9527
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
9528
|
+
return false;
|
|
9529
|
+
}
|
|
9530
|
+
}
|
|
9531
|
+
return true;
|
|
9532
|
+
}
|
|
9533
|
+
|
|
9534
|
+
const VERSION$7 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
9535
|
+
function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
9536
|
+
const v_error = (() => {
|
|
9537
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9538
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9539
|
+
}
|
|
9540
|
+
if (obj.definitionApiName !== undefined) {
|
|
9541
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
9542
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
9543
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
9544
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
9545
|
+
}
|
|
9546
|
+
}
|
|
9547
|
+
if (obj.dependencies !== undefined) {
|
|
9548
|
+
const obj_dependencies = obj.dependencies;
|
|
9549
|
+
const path_dependencies = path + '.dependencies';
|
|
9550
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
9551
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
9552
|
+
}
|
|
9553
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
9554
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
9555
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
9556
|
+
const referencepath_dependencies_itemValidationError = validate$8(obj_dependencies_item, path_dependencies_item);
|
|
9557
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
9558
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
9559
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9560
|
+
return new TypeError(message);
|
|
9561
|
+
}
|
|
9562
|
+
}
|
|
9563
|
+
}
|
|
9564
|
+
if (obj.fieldApiName !== undefined) {
|
|
9565
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
9566
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
9567
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
9568
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
9569
|
+
}
|
|
9570
|
+
}
|
|
9571
|
+
})();
|
|
9572
|
+
return v_error === undefined ? null : v_error;
|
|
9573
|
+
}
|
|
9574
|
+
const select$j = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
9575
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$k();
|
|
9576
|
+
return {
|
|
9577
|
+
kind: 'Fragment',
|
|
9578
|
+
version: VERSION$7,
|
|
9579
|
+
private: [],
|
|
9580
|
+
selections: [
|
|
9581
|
+
{
|
|
9582
|
+
name: 'definitionApiName',
|
|
9583
|
+
kind: 'Scalar',
|
|
9584
|
+
required: false
|
|
9585
|
+
},
|
|
9586
|
+
{
|
|
9587
|
+
name: 'dependencies',
|
|
9588
|
+
kind: 'Object',
|
|
9589
|
+
plural: true,
|
|
9590
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
9591
|
+
required: false
|
|
9592
|
+
},
|
|
9593
|
+
{
|
|
9594
|
+
name: 'fieldApiName',
|
|
9595
|
+
kind: 'Scalar',
|
|
9596
|
+
required: false
|
|
9597
|
+
}
|
|
9598
|
+
]
|
|
9599
|
+
};
|
|
9600
|
+
};
|
|
9601
|
+
function equals$7(existing, incoming) {
|
|
9602
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
9603
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
9604
|
+
// if at least one of these optionals is defined
|
|
9605
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
9606
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9607
|
+
// not equal
|
|
9608
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
9609
|
+
return false;
|
|
9610
|
+
}
|
|
9611
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
9612
|
+
return false;
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9615
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
9616
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
9617
|
+
// if at least one of these optionals is defined
|
|
9618
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
9619
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9620
|
+
// not equal
|
|
9621
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
9622
|
+
return false;
|
|
9623
|
+
}
|
|
9624
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
9625
|
+
return false;
|
|
9626
|
+
}
|
|
9627
|
+
}
|
|
9628
|
+
const existing_dependencies = existing.dependencies;
|
|
9629
|
+
const incoming_dependencies = incoming.dependencies;
|
|
9630
|
+
// if at least one of these optionals is defined
|
|
9631
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
9632
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9633
|
+
// not equal
|
|
9634
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
9635
|
+
return false;
|
|
9636
|
+
}
|
|
9637
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
9638
|
+
if (!(equals$8(existing_dependencies_item, incoming_dependencies_item))) {
|
|
9639
|
+
return false;
|
|
9640
|
+
}
|
|
9641
|
+
});
|
|
9642
|
+
if (equals_dependencies_items === false) {
|
|
9643
|
+
return false;
|
|
9644
|
+
}
|
|
9645
|
+
}
|
|
9646
|
+
return true;
|
|
9647
|
+
}
|
|
9648
|
+
|
|
9649
|
+
const VERSION$6 = "e710141192798ab103ce7e9b469baad4";
|
|
9650
|
+
function validate$6(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
9651
|
+
const v_error = (() => {
|
|
9652
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9653
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9654
|
+
}
|
|
9655
|
+
if (obj.item !== undefined) {
|
|
9656
|
+
const obj_item = obj.item;
|
|
9657
|
+
const path_item = path + '.item';
|
|
9658
|
+
if (!ArrayIsArray(obj_item)) {
|
|
9659
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
9660
|
+
}
|
|
9661
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
9662
|
+
const obj_item_item = obj_item[i];
|
|
9663
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
9664
|
+
const referencepath_item_itemValidationError = validate$7(obj_item_item, path_item_item);
|
|
9665
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
9666
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
9667
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9668
|
+
return new TypeError(message);
|
|
9669
|
+
}
|
|
9670
|
+
}
|
|
9671
|
+
}
|
|
9672
|
+
})();
|
|
9673
|
+
return v_error === undefined ? null : v_error;
|
|
9674
|
+
}
|
|
9675
|
+
const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
9676
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9677
|
+
return input;
|
|
9678
|
+
}
|
|
9679
|
+
const select$i = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
9680
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$j();
|
|
9681
|
+
return {
|
|
9682
|
+
kind: 'Fragment',
|
|
9683
|
+
version: VERSION$6,
|
|
9684
|
+
private: [],
|
|
9685
|
+
selections: [
|
|
9686
|
+
{
|
|
9687
|
+
name: 'item',
|
|
9688
|
+
kind: 'Object',
|
|
9689
|
+
plural: true,
|
|
9690
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
9691
|
+
required: false
|
|
9692
|
+
}
|
|
9693
|
+
]
|
|
9694
|
+
};
|
|
9695
|
+
};
|
|
9696
|
+
function equals$6(existing, incoming) {
|
|
9697
|
+
const existing_item = existing.item;
|
|
9698
|
+
const incoming_item = incoming.item;
|
|
9699
|
+
// if at least one of these optionals is defined
|
|
9700
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
9701
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9702
|
+
// not equal
|
|
9703
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
9704
|
+
return false;
|
|
9705
|
+
}
|
|
9706
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
9707
|
+
if (!(equals$7(existing_item_item, incoming_item_item))) {
|
|
9708
|
+
return false;
|
|
9709
|
+
}
|
|
9710
|
+
});
|
|
9711
|
+
if (equals_item_items === false) {
|
|
9712
|
+
return false;
|
|
9713
|
+
}
|
|
9714
|
+
}
|
|
9715
|
+
return true;
|
|
9716
|
+
}
|
|
9717
|
+
const ingest$5 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9718
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9719
|
+
const validateError = validate$6(input);
|
|
9720
|
+
if (validateError !== null) {
|
|
9721
|
+
throw validateError;
|
|
9722
|
+
}
|
|
9723
|
+
}
|
|
9724
|
+
const key = path.fullPath;
|
|
9725
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9726
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$6, RepresentationType$5, equals$6);
|
|
9727
|
+
return createLink(key);
|
|
9728
|
+
};
|
|
9729
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9730
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9731
|
+
const rootKey = fullPathFactory();
|
|
9732
|
+
rootKeySet.set(rootKey, {
|
|
9733
|
+
namespace: keyPrefix,
|
|
9734
|
+
representationName: RepresentationType$5,
|
|
9735
|
+
mergeable: false
|
|
9736
|
+
});
|
|
9737
|
+
}
|
|
9738
|
+
|
|
9739
|
+
function select$h(luvio, params) {
|
|
9740
|
+
return select$i();
|
|
9741
|
+
}
|
|
9742
|
+
function keyBuilder$j(luvio, params) {
|
|
9743
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9744
|
+
}
|
|
9745
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
9746
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
9747
|
+
}
|
|
9748
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
9749
|
+
const { body } = response;
|
|
9750
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
9751
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9752
|
+
const snapshot = luvio.storeLookup({
|
|
9753
|
+
recordId: key,
|
|
9754
|
+
node: select$h(),
|
|
9755
|
+
variables: {},
|
|
9756
|
+
}, snapshotRefresh);
|
|
9757
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9758
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9759
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9760
|
+
}
|
|
9761
|
+
}
|
|
9762
|
+
deepFreeze(snapshot.data);
|
|
9763
|
+
return snapshot;
|
|
9764
|
+
}
|
|
9765
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
9766
|
+
const key = keyBuilder$j(luvio, params);
|
|
9767
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9768
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9769
|
+
return errorSnapshot;
|
|
9770
|
+
}
|
|
9771
|
+
function createResourceRequest$b(config) {
|
|
9772
|
+
const headers = {};
|
|
9773
|
+
return {
|
|
9774
|
+
baseUri: '/services/data/v64.0',
|
|
9775
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
9776
|
+
method: 'get',
|
|
9777
|
+
body: null,
|
|
9778
|
+
urlParams: config.urlParams,
|
|
9779
|
+
queryParams: config.queryParams,
|
|
9780
|
+
headers,
|
|
9781
|
+
priority: 'normal',
|
|
9782
|
+
};
|
|
9783
|
+
}
|
|
9784
|
+
|
|
9785
|
+
const adapterName$b = 'getLeafDependenciesByTypes';
|
|
9786
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
9787
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9788
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9789
|
+
];
|
|
9790
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9791
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9792
|
+
function keyBuilder$i(luvio, config) {
|
|
9793
|
+
const resourceParams = createResourceParams$b(config);
|
|
9794
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
9795
|
+
}
|
|
9796
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
9797
|
+
const config = {};
|
|
9798
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9799
|
+
return config;
|
|
9800
|
+
}
|
|
9801
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
9802
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9803
|
+
return null;
|
|
9804
|
+
}
|
|
9805
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9806
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9807
|
+
}
|
|
9808
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
9809
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9810
|
+
return null;
|
|
9811
|
+
}
|
|
9812
|
+
return config;
|
|
9813
|
+
}
|
|
9814
|
+
function adapterFragment$9(luvio, config) {
|
|
9815
|
+
createResourceParams$b(config);
|
|
9816
|
+
return select$h();
|
|
9817
|
+
}
|
|
9818
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
9819
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
9820
|
+
config,
|
|
9821
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9822
|
+
});
|
|
9823
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9824
|
+
}
|
|
9825
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
9826
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
9827
|
+
config,
|
|
9828
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9829
|
+
});
|
|
9830
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9831
|
+
}
|
|
9832
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
9833
|
+
const resourceParams = createResourceParams$b(config);
|
|
9834
|
+
const request = createResourceRequest$b(resourceParams);
|
|
9835
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9836
|
+
.then((response) => {
|
|
9837
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
9838
|
+
const cache = new StoreKeyMap();
|
|
9839
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
9840
|
+
return cache;
|
|
9841
|
+
});
|
|
9842
|
+
}, (response) => {
|
|
9843
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
9844
|
+
});
|
|
9845
|
+
}
|
|
9846
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
9847
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
9848
|
+
}
|
|
9849
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
9850
|
+
const { luvio, config } = context;
|
|
9851
|
+
const selector = {
|
|
9852
|
+
recordId: keyBuilder$i(luvio, config),
|
|
9853
|
+
node: adapterFragment$9(luvio, config),
|
|
9854
|
+
variables: {},
|
|
9855
|
+
};
|
|
9856
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9857
|
+
config,
|
|
9858
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9859
|
+
});
|
|
9860
|
+
return cacheSnapshot;
|
|
9861
|
+
}
|
|
9862
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
9863
|
+
const config = validateAdapterConfig$b(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
9864
|
+
// Invalid or incomplete config
|
|
9865
|
+
if (config === null) {
|
|
9866
|
+
return null;
|
|
9867
|
+
}
|
|
9868
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9869
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
9870
|
+
};
|
|
9871
|
+
|
|
9423
9872
|
function select$g(luvio, params) {
|
|
9424
|
-
return select$
|
|
9873
|
+
return select$q();
|
|
9425
9874
|
}
|
|
9426
9875
|
function keyBuilder$h(luvio, params) {
|
|
9427
|
-
return keyBuilder$
|
|
9876
|
+
return keyBuilder$p(luvio, {
|
|
9428
9877
|
name: params.urlParams.metricNameOrId
|
|
9429
9878
|
});
|
|
9430
9879
|
}
|
|
9431
9880
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9432
|
-
getTypeCacheKeys$
|
|
9881
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
9433
9882
|
}
|
|
9434
9883
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
9435
9884
|
const { body } = response;
|
|
9436
9885
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
9437
|
-
luvio.storeIngest(key, ingest$
|
|
9886
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9438
9887
|
const snapshot = luvio.storeLookup({
|
|
9439
9888
|
recordId: key,
|
|
9440
9889
|
node: select$g(),
|
|
@@ -9481,14 +9930,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
9481
9930
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9482
9931
|
];
|
|
9483
9932
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetric_ConfigPropertyMetadata);
|
|
9484
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
9933
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
9485
9934
|
function keyBuilder$g(luvio, config) {
|
|
9486
9935
|
const resourceParams = createResourceParams$a(config);
|
|
9487
9936
|
return keyBuilder$h(luvio, resourceParams);
|
|
9488
9937
|
}
|
|
9489
9938
|
function typeCheckConfig$a(untrustedConfig) {
|
|
9490
9939
|
const config = {};
|
|
9491
|
-
typeCheckConfig$
|
|
9940
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
9492
9941
|
return config;
|
|
9493
9942
|
}
|
|
9494
9943
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -9537,7 +9986,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
9537
9986
|
});
|
|
9538
9987
|
}
|
|
9539
9988
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
9540
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9989
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
9541
9990
|
}
|
|
9542
9991
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
9543
9992
|
const { luvio, config } = context;
|
|
@@ -9563,7 +10012,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
9563
10012
|
};
|
|
9564
10013
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
9565
10014
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
9566
|
-
const keys = configs.map(c => keyBuilder$
|
|
10015
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
9567
10016
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
9568
10017
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
9569
10018
|
const { key, record: val } = entries[i];
|
|
@@ -9572,11 +10021,11 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
9572
10021
|
.then((response) => {
|
|
9573
10022
|
return luvio.handleSuccessResponse(() => {
|
|
9574
10023
|
const { body } = response;
|
|
9575
|
-
luvio.storeIngest(key, ingest$
|
|
10024
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9576
10025
|
return luvio.storeBroadcast();
|
|
9577
10026
|
}, () => {
|
|
9578
10027
|
const cache = new StoreKeyMap();
|
|
9579
|
-
getTypeCacheKeys$
|
|
10028
|
+
getTypeCacheKeys$9(cache, luvio, response.body);
|
|
9580
10029
|
return cache;
|
|
9581
10030
|
});
|
|
9582
10031
|
}, (error) => {
|
|
@@ -9622,7 +10071,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9622
10071
|
for (let i = 0; i < input_metrics.length; i++) {
|
|
9623
10072
|
const input_metrics_item = input_metrics[i];
|
|
9624
10073
|
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
9625
|
-
input_metrics[i] = ingest$
|
|
10074
|
+
input_metrics[i] = ingest$9(input_metrics_item, {
|
|
9626
10075
|
fullPath: input_metrics_item_id,
|
|
9627
10076
|
propertyName: i,
|
|
9628
10077
|
parent: {
|
|
@@ -9647,7 +10096,7 @@ const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
9647
10096
|
kind: 'Link',
|
|
9648
10097
|
plural: true,
|
|
9649
10098
|
required: false,
|
|
9650
|
-
fragment: select$
|
|
10099
|
+
fragment: select$q()
|
|
9651
10100
|
}
|
|
9652
10101
|
]
|
|
9653
10102
|
};
|
|
@@ -9696,7 +10145,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9696
10145
|
if (input.metrics !== undefined) {
|
|
9697
10146
|
const input_metrics_length = input.metrics.length;
|
|
9698
10147
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
9699
|
-
getTypeCacheKeys$
|
|
10148
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.metrics[i]);
|
|
9700
10149
|
}
|
|
9701
10150
|
}
|
|
9702
10151
|
}
|
|
@@ -9752,14 +10201,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
9752
10201
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9753
10202
|
];
|
|
9754
10203
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9755
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10204
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9756
10205
|
function keyBuilder$e(luvio, config) {
|
|
9757
10206
|
const resourceParams = createResourceParams$9(config);
|
|
9758
10207
|
return keyBuilder$f(luvio, resourceParams);
|
|
9759
10208
|
}
|
|
9760
10209
|
function typeCheckConfig$9(untrustedConfig) {
|
|
9761
10210
|
const config = {};
|
|
9762
|
-
typeCheckConfig$
|
|
10211
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9763
10212
|
return config;
|
|
9764
10213
|
}
|
|
9765
10214
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -9808,7 +10257,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9808
10257
|
});
|
|
9809
10258
|
}
|
|
9810
10259
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9811
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10260
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
9812
10261
|
}
|
|
9813
10262
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9814
10263
|
const { luvio, config } = context;
|
|
@@ -9886,14 +10335,14 @@ const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
|
9886
10335
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9887
10336
|
];
|
|
9888
10337
|
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9889
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10338
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9890
10339
|
function keyBuilder$c(luvio, config) {
|
|
9891
10340
|
const resourceParams = createResourceParams$8(config);
|
|
9892
10341
|
return keyBuilder$d(luvio, resourceParams);
|
|
9893
10342
|
}
|
|
9894
10343
|
function typeCheckConfig$8(untrustedConfig) {
|
|
9895
10344
|
const config = {};
|
|
9896
|
-
typeCheckConfig$
|
|
10345
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9897
10346
|
return config;
|
|
9898
10347
|
}
|
|
9899
10348
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -9942,7 +10391,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
9942
10391
|
});
|
|
9943
10392
|
}
|
|
9944
10393
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
9945
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10394
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
9946
10395
|
}
|
|
9947
10396
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
9948
10397
|
const { luvio, config } = context;
|
|
@@ -10005,7 +10454,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
10005
10454
|
for (let i = 0; i < input_subMetrics.length; i++) {
|
|
10006
10455
|
const input_subMetrics_item = input_subMetrics[i];
|
|
10007
10456
|
let input_subMetrics_item_id = input_subMetrics_id + '__' + i;
|
|
10008
|
-
input_subMetrics[i] = ingest$
|
|
10457
|
+
input_subMetrics[i] = ingest$6(input_subMetrics_item, {
|
|
10009
10458
|
fullPath: input_subMetrics_item_id,
|
|
10010
10459
|
propertyName: i,
|
|
10011
10460
|
parent: {
|
|
@@ -10035,7 +10484,7 @@ const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10035
10484
|
kind: 'Link',
|
|
10036
10485
|
plural: true,
|
|
10037
10486
|
required: false,
|
|
10038
|
-
fragment: select$
|
|
10487
|
+
fragment: select$m()
|
|
10039
10488
|
}
|
|
10040
10489
|
]
|
|
10041
10490
|
};
|
|
@@ -10097,7 +10546,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10097
10546
|
if (input.subMetrics !== undefined) {
|
|
10098
10547
|
const input_subMetrics_length = input.subMetrics.length;
|
|
10099
10548
|
for (let i = 0; i < input_subMetrics_length; i++) {
|
|
10100
|
-
getTypeCacheKeys$
|
|
10549
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.subMetrics[i]);
|
|
10101
10550
|
}
|
|
10102
10551
|
}
|
|
10103
10552
|
}
|
|
@@ -10264,14 +10713,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
10264
10713
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10265
10714
|
];
|
|
10266
10715
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10267
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10716
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10268
10717
|
function keyBuilder$a(luvio, config) {
|
|
10269
10718
|
const resourceParams = createResourceParams$7(config);
|
|
10270
10719
|
return keyBuilder$b(luvio, resourceParams);
|
|
10271
10720
|
}
|
|
10272
10721
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10273
10722
|
const config = {};
|
|
10274
|
-
typeCheckConfig$
|
|
10723
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10275
10724
|
return config;
|
|
10276
10725
|
}
|
|
10277
10726
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10320,7 +10769,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
10320
10769
|
});
|
|
10321
10770
|
}
|
|
10322
10771
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10323
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10772
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
10324
10773
|
}
|
|
10325
10774
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10326
10775
|
const { luvio, config } = context;
|
|
@@ -10346,20 +10795,20 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
10346
10795
|
};
|
|
10347
10796
|
|
|
10348
10797
|
function select$9(luvio, params) {
|
|
10349
|
-
return select$
|
|
10798
|
+
return select$o();
|
|
10350
10799
|
}
|
|
10351
10800
|
function keyBuilder$9(luvio, params) {
|
|
10352
|
-
return keyBuilder$
|
|
10801
|
+
return keyBuilder$n(luvio, {
|
|
10353
10802
|
name: params.urlParams.modelApiNameOrId
|
|
10354
10803
|
});
|
|
10355
10804
|
}
|
|
10356
10805
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
10357
|
-
getTypeCacheKeys$
|
|
10806
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
10358
10807
|
}
|
|
10359
10808
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
10360
10809
|
const { body } = response;
|
|
10361
10810
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
10362
|
-
luvio.storeIngest(key, ingest$
|
|
10811
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10363
10812
|
const snapshot = luvio.storeLookup({
|
|
10364
10813
|
recordId: key,
|
|
10365
10814
|
node: select$9(),
|
|
@@ -10409,14 +10858,14 @@ const getSemanticModel_ConfigPropertyMetadata = [
|
|
|
10409
10858
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10410
10859
|
];
|
|
10411
10860
|
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModel_ConfigPropertyMetadata);
|
|
10412
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10861
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10413
10862
|
function keyBuilder$8(luvio, config) {
|
|
10414
10863
|
const resourceParams = createResourceParams$6(config);
|
|
10415
10864
|
return keyBuilder$9(luvio, resourceParams);
|
|
10416
10865
|
}
|
|
10417
10866
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10418
10867
|
const config = {};
|
|
10419
|
-
typeCheckConfig$
|
|
10868
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10420
10869
|
return config;
|
|
10421
10870
|
}
|
|
10422
10871
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -10465,7 +10914,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
10465
10914
|
});
|
|
10466
10915
|
}
|
|
10467
10916
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
10468
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10917
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
10469
10918
|
}
|
|
10470
10919
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
10471
10920
|
const { luvio, config } = context;
|
|
@@ -10491,7 +10940,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10491
10940
|
};
|
|
10492
10941
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
10493
10942
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
10494
|
-
const keys = configs.map(c => keyBuilder$
|
|
10943
|
+
const keys = configs.map(c => keyBuilder$n(luvio, c));
|
|
10495
10944
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10496
10945
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10497
10946
|
const { key, record: val } = entries[i];
|
|
@@ -10500,11 +10949,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
10500
10949
|
.then((response) => {
|
|
10501
10950
|
return luvio.handleSuccessResponse(() => {
|
|
10502
10951
|
const { body } = response;
|
|
10503
|
-
luvio.storeIngest(key, ingest$
|
|
10952
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10504
10953
|
return luvio.storeBroadcast();
|
|
10505
10954
|
}, () => {
|
|
10506
10955
|
const cache = new StoreKeyMap();
|
|
10507
|
-
getTypeCacheKeys$
|
|
10956
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
10508
10957
|
return cache;
|
|
10509
10958
|
});
|
|
10510
10959
|
}, (error) => {
|
|
@@ -10553,7 +11002,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10553
11002
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
10554
11003
|
const obj_baseModels_item = obj_baseModels[i];
|
|
10555
11004
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
10556
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
11005
|
+
const referencepath_baseModels_itemValidationError = validate$D(obj_baseModels_item, path_baseModels_item);
|
|
10557
11006
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
10558
11007
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
10559
11008
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10725,7 +11174,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10725
11174
|
return v_error === undefined ? null : v_error;
|
|
10726
11175
|
}
|
|
10727
11176
|
const select$8 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
10728
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
11177
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
10729
11178
|
return {
|
|
10730
11179
|
kind: 'Fragment',
|
|
10731
11180
|
version: VERSION$2,
|
|
@@ -11096,7 +11545,7 @@ function equals$2(existing, incoming) {
|
|
|
11096
11545
|
return false;
|
|
11097
11546
|
}
|
|
11098
11547
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
11099
|
-
if (!(equals$
|
|
11548
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
11100
11549
|
return false;
|
|
11101
11550
|
}
|
|
11102
11551
|
});
|
|
@@ -11453,14 +11902,14 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
11453
11902
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11454
11903
|
];
|
|
11455
11904
|
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModels_ConfigPropertyMetadata);
|
|
11456
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
11905
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(getSemanticModels_ConfigPropertyMetadata);
|
|
11457
11906
|
function keyBuilder$6(luvio, config) {
|
|
11458
11907
|
const resourceParams = createResourceParams$5(config);
|
|
11459
11908
|
return keyBuilder$7(luvio, resourceParams);
|
|
11460
11909
|
}
|
|
11461
11910
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11462
11911
|
const config = {};
|
|
11463
|
-
typeCheckConfig$
|
|
11912
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
11464
11913
|
return config;
|
|
11465
11914
|
}
|
|
11466
11915
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -11509,7 +11958,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11509
11958
|
});
|
|
11510
11959
|
}
|
|
11511
11960
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11512
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11961
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
11513
11962
|
}
|
|
11514
11963
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11515
11964
|
const { luvio, config } = context;
|
|
@@ -11535,20 +11984,20 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11535
11984
|
};
|
|
11536
11985
|
|
|
11537
11986
|
function select$5(luvio, params) {
|
|
11538
|
-
return select$
|
|
11987
|
+
return select$m();
|
|
11539
11988
|
}
|
|
11540
11989
|
function keyBuilder$5(luvio, params) {
|
|
11541
|
-
return keyBuilder$
|
|
11990
|
+
return keyBuilder$m(luvio, {
|
|
11542
11991
|
name: params.urlParams.subMetricNameOrId
|
|
11543
11992
|
});
|
|
11544
11993
|
}
|
|
11545
11994
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
11546
|
-
getTypeCacheKeys$
|
|
11995
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
11547
11996
|
}
|
|
11548
11997
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11549
11998
|
const { body } = response;
|
|
11550
11999
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
11551
|
-
luvio.storeIngest(key, ingest$
|
|
12000
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11552
12001
|
const snapshot = luvio.storeLookup({
|
|
11553
12002
|
recordId: key,
|
|
11554
12003
|
node: select$5(),
|
|
@@ -11595,14 +12044,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11595
12044
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11596
12045
|
];
|
|
11597
12046
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11598
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
12047
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11599
12048
|
function keyBuilder$4(luvio, config) {
|
|
11600
12049
|
const resourceParams = createResourceParams$4(config);
|
|
11601
12050
|
return keyBuilder$5(luvio, resourceParams);
|
|
11602
12051
|
}
|
|
11603
12052
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11604
12053
|
const config = {};
|
|
11605
|
-
typeCheckConfig$
|
|
12054
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11606
12055
|
return config;
|
|
11607
12056
|
}
|
|
11608
12057
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11651,7 +12100,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11651
12100
|
});
|
|
11652
12101
|
}
|
|
11653
12102
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11654
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12103
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
11655
12104
|
}
|
|
11656
12105
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11657
12106
|
const { luvio, config } = context;
|
|
@@ -11677,7 +12126,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11677
12126
|
};
|
|
11678
12127
|
const notifyChangeFactory = (luvio, options) => {
|
|
11679
12128
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
11680
|
-
const keys = configs.map(c => keyBuilder$
|
|
12129
|
+
const keys = configs.map(c => keyBuilder$m(luvio, c));
|
|
11681
12130
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11682
12131
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11683
12132
|
const { key, record: val } = entries[i];
|
|
@@ -11686,11 +12135,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
11686
12135
|
.then((response) => {
|
|
11687
12136
|
return luvio.handleSuccessResponse(() => {
|
|
11688
12137
|
const { body } = response;
|
|
11689
|
-
luvio.storeIngest(key, ingest$
|
|
12138
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11690
12139
|
return luvio.storeBroadcast();
|
|
11691
12140
|
}, () => {
|
|
11692
12141
|
const cache = new StoreKeyMap();
|
|
11693
|
-
getTypeCacheKeys$
|
|
12142
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
11694
12143
|
return cache;
|
|
11695
12144
|
});
|
|
11696
12145
|
}, (error) => {
|
|
@@ -11736,7 +12185,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11736
12185
|
for (let i = 0; i < input_items.length; i++) {
|
|
11737
12186
|
const input_items_item = input_items[i];
|
|
11738
12187
|
let input_items_item_id = input_items_id + '__' + i;
|
|
11739
|
-
input_items[i] = ingest$
|
|
12188
|
+
input_items[i] = ingest$6(input_items_item, {
|
|
11740
12189
|
fullPath: input_items_item_id,
|
|
11741
12190
|
propertyName: i,
|
|
11742
12191
|
parent: {
|
|
@@ -11761,7 +12210,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11761
12210
|
kind: 'Link',
|
|
11762
12211
|
plural: true,
|
|
11763
12212
|
required: false,
|
|
11764
|
-
fragment: select$
|
|
12213
|
+
fragment: select$m()
|
|
11765
12214
|
}
|
|
11766
12215
|
]
|
|
11767
12216
|
};
|
|
@@ -11810,7 +12259,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11810
12259
|
if (input.items !== undefined) {
|
|
11811
12260
|
const input_items_length = input.items.length;
|
|
11812
12261
|
for (let i = 0; i < input_items_length; i++) {
|
|
11813
|
-
getTypeCacheKeys$
|
|
12262
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
|
|
11814
12263
|
}
|
|
11815
12264
|
}
|
|
11816
12265
|
}
|
|
@@ -11866,14 +12315,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11866
12315
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11867
12316
|
];
|
|
11868
12317
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11869
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12318
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11870
12319
|
function keyBuilder$2(luvio, config) {
|
|
11871
12320
|
const resourceParams = createResourceParams$3(config);
|
|
11872
12321
|
return keyBuilder$3(luvio, resourceParams);
|
|
11873
12322
|
}
|
|
11874
12323
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11875
12324
|
const config = {};
|
|
11876
|
-
typeCheckConfig$
|
|
12325
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11877
12326
|
return config;
|
|
11878
12327
|
}
|
|
11879
12328
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -11922,7 +12371,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
11922
12371
|
});
|
|
11923
12372
|
}
|
|
11924
12373
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
11925
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12374
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
11926
12375
|
}
|
|
11927
12376
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
11928
12377
|
const { luvio, config } = context;
|
|
@@ -11951,7 +12400,7 @@ function select$2(luvio, params) {
|
|
|
11951
12400
|
return select$4();
|
|
11952
12401
|
}
|
|
11953
12402
|
function keyBuilder$1(luvio, params) {
|
|
11954
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12403
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
11955
12404
|
}
|
|
11956
12405
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
11957
12406
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -11987,7 +12436,7 @@ function createResourceRequest$2(config) {
|
|
|
11987
12436
|
method: 'get',
|
|
11988
12437
|
body: null,
|
|
11989
12438
|
urlParams: config.urlParams,
|
|
11990
|
-
queryParams:
|
|
12439
|
+
queryParams: config.queryParams,
|
|
11991
12440
|
headers,
|
|
11992
12441
|
priority: 'normal',
|
|
11993
12442
|
};
|
|
@@ -11996,16 +12445,18 @@ function createResourceRequest$2(config) {
|
|
|
11996
12445
|
const adapterName$2 = 'getSemanticSubMetricsById';
|
|
11997
12446
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
11998
12447
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12448
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12449
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11999
12450
|
];
|
|
12000
12451
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12001
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12452
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12002
12453
|
function keyBuilder(luvio, config) {
|
|
12003
12454
|
const resourceParams = createResourceParams$2(config);
|
|
12004
12455
|
return keyBuilder$1(luvio, resourceParams);
|
|
12005
12456
|
}
|
|
12006
12457
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12007
12458
|
const config = {};
|
|
12008
|
-
typeCheckConfig$
|
|
12459
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12009
12460
|
return config;
|
|
12010
12461
|
}
|
|
12011
12462
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -12054,7 +12505,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
12054
12505
|
});
|
|
12055
12506
|
}
|
|
12056
12507
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12057
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12508
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
12058
12509
|
}
|
|
12059
12510
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12060
12511
|
const { luvio, config } = context;
|
|
@@ -12080,15 +12531,15 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12080
12531
|
};
|
|
12081
12532
|
|
|
12082
12533
|
function select$1(luvio, params) {
|
|
12083
|
-
return select$
|
|
12534
|
+
return select$m();
|
|
12084
12535
|
}
|
|
12085
12536
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12086
|
-
getTypeCacheKeys$
|
|
12537
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
12087
12538
|
}
|
|
12088
12539
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12089
12540
|
const { body } = response;
|
|
12090
12541
|
const key = keyBuilderFromType(luvio, body);
|
|
12091
|
-
luvio.storeIngest(key, ingest$
|
|
12542
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
12092
12543
|
const snapshot = luvio.storeLookup({
|
|
12093
12544
|
recordId: key,
|
|
12094
12545
|
node: select$1(),
|
|
@@ -12124,16 +12575,16 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
12124
12575
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12125
12576
|
];
|
|
12126
12577
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12127
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12578
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12128
12579
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12129
12580
|
const config = {};
|
|
12130
|
-
typeCheckConfig$
|
|
12581
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12131
12582
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12132
12583
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12133
12584
|
const untrustedConfig_statusConditions_array = [];
|
|
12134
12585
|
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12135
12586
|
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12136
|
-
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$
|
|
12587
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$e(untrustedConfig_statusConditions_item);
|
|
12137
12588
|
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12138
12589
|
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12139
12590
|
}
|
|
@@ -12185,15 +12636,15 @@ const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
|
12185
12636
|
};
|
|
12186
12637
|
|
|
12187
12638
|
function select(luvio, params) {
|
|
12188
|
-
return select$
|
|
12639
|
+
return select$o();
|
|
12189
12640
|
}
|
|
12190
12641
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12191
|
-
getTypeCacheKeys$
|
|
12642
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
12192
12643
|
}
|
|
12193
12644
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
12194
12645
|
const { body } = response;
|
|
12195
12646
|
const key = keyBuilderFromType$1(luvio, body);
|
|
12196
|
-
luvio.storeIngest(key, ingest$
|
|
12647
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
12197
12648
|
const snapshot = luvio.storeLookup({
|
|
12198
12649
|
recordId: key,
|
|
12199
12650
|
node: select(),
|
|
@@ -12244,16 +12695,16 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
12244
12695
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12245
12696
|
];
|
|
12246
12697
|
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
12247
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12698
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
12248
12699
|
function typeCheckConfig(untrustedConfig) {
|
|
12249
12700
|
const config = {};
|
|
12250
|
-
typeCheckConfig$
|
|
12701
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
12251
12702
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
12252
12703
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
12253
12704
|
const untrustedConfig_baseModels_array = [];
|
|
12254
12705
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
12255
12706
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
12256
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate
|
|
12707
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$$(untrustedConfig_baseModels_item);
|
|
12257
12708
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
12258
12709
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
12259
12710
|
}
|
|
@@ -12265,7 +12716,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12265
12716
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
12266
12717
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
12267
12718
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
12268
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
12719
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$Z(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12269
12720
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
12270
12721
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12271
12722
|
}
|
|
@@ -12277,7 +12728,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12277
12728
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
12278
12729
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
12279
12730
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
12280
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
12731
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$Y(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12281
12732
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
12282
12733
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12283
12734
|
}
|
|
@@ -12289,7 +12740,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12289
12740
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
12290
12741
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
12291
12742
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
12292
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
12743
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$V(untrustedConfig_semanticDataObjects_item);
|
|
12293
12744
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
12294
12745
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
12295
12746
|
}
|
|
@@ -12301,7 +12752,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12301
12752
|
const untrustedConfig_semanticGroupings_array = [];
|
|
12302
12753
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
12303
12754
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
12304
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
12755
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$O(untrustedConfig_semanticGroupings_item);
|
|
12305
12756
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
12306
12757
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
12307
12758
|
}
|
|
@@ -12313,7 +12764,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12313
12764
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
12314
12765
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
12315
12766
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
12316
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
12767
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$J(untrustedConfig_semanticLogicalViews_item);
|
|
12317
12768
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
12318
12769
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
12319
12770
|
}
|
|
@@ -12325,7 +12776,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12325
12776
|
const untrustedConfig_semanticMetrics_array = [];
|
|
12326
12777
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
12327
12778
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
12328
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
12779
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$F(untrustedConfig_semanticMetrics_item);
|
|
12329
12780
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
12330
12781
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
12331
12782
|
}
|
|
@@ -12337,7 +12788,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12337
12788
|
const untrustedConfig_semanticParameters_array = [];
|
|
12338
12789
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
12339
12790
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
12340
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
12791
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$E(untrustedConfig_semanticParameters_item);
|
|
12341
12792
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
12342
12793
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
12343
12794
|
}
|
|
@@ -12349,7 +12800,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12349
12800
|
const untrustedConfig_semanticRelationships_array = [];
|
|
12350
12801
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
12351
12802
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
12352
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
12803
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$M(untrustedConfig_semanticRelationships_item);
|
|
12353
12804
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
12354
12805
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
12355
12806
|
}
|
|
@@ -12404,6 +12855,7 @@ let createSemanticModel;
|
|
|
12404
12855
|
let createSemanticSubMetric;
|
|
12405
12856
|
let deleteGoalFromSubMetric;
|
|
12406
12857
|
let deleteSemanticSubMetric;
|
|
12858
|
+
let getLeafDependenciesByTypes;
|
|
12407
12859
|
let getSemanticMetric;
|
|
12408
12860
|
let getSemanticMetricNotifyChange;
|
|
12409
12861
|
let getSemanticMetrics;
|
|
@@ -12419,6 +12871,7 @@ let getSemanticSubMetricsById;
|
|
|
12419
12871
|
let patchSemanticMetricGoal;
|
|
12420
12872
|
let patchSemanticModel;
|
|
12421
12873
|
// Imperative GET Adapters
|
|
12874
|
+
let getLeafDependenciesByTypes_imperative;
|
|
12422
12875
|
let getSemanticMetric_imperative;
|
|
12423
12876
|
let getSemanticMetrics_imperative;
|
|
12424
12877
|
let getSemanticMetricsByIds_imperative;
|
|
@@ -12428,6 +12881,10 @@ let getSemanticModels_imperative;
|
|
|
12428
12881
|
let getSemanticSubMetric_imperative;
|
|
12429
12882
|
let getSemanticSubMetrics_imperative;
|
|
12430
12883
|
let getSemanticSubMetricsById_imperative;
|
|
12884
|
+
const getLeafDependenciesByTypesMetadata = {
|
|
12885
|
+
apiFamily: 'SemanticAuthoring',
|
|
12886
|
+
name: 'getLeafDependenciesByTypes',
|
|
12887
|
+
};
|
|
12431
12888
|
const getSemanticMetricMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetric' };
|
|
12432
12889
|
const getSemanticMetricsMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetrics' };
|
|
12433
12890
|
const getSemanticMetricsByIdsMetadata = {
|
|
@@ -12455,6 +12912,7 @@ const getSemanticSubMetricsByIdMetadata = {
|
|
|
12455
12912
|
// Notify Update Available
|
|
12456
12913
|
function bindExportsTo(luvio) {
|
|
12457
12914
|
// LDS Adapters
|
|
12915
|
+
const getLeafDependenciesByTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLeafDependenciesByTypes', getLeafDependenciesByTypesAdapterFactory), getLeafDependenciesByTypesMetadata);
|
|
12458
12916
|
const getSemanticMetric_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetric', getSemanticMetricAdapterFactory), getSemanticMetricMetadata);
|
|
12459
12917
|
const getSemanticMetrics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetrics', getSemanticMetricsAdapterFactory), getSemanticMetricsMetadata);
|
|
12460
12918
|
const getSemanticMetricsByIds_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetricsByIds', getSemanticMetricsByIdsAdapterFactory), getSemanticMetricsByIdsMetadata);
|
|
@@ -12471,8 +12929,9 @@ function bindExportsTo(luvio) {
|
|
|
12471
12929
|
return {
|
|
12472
12930
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
12473
12931
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
12474
|
-
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$
|
|
12475
|
-
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$
|
|
12932
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$d, deleteGoalFromSubMetricAdapterFactory),
|
|
12933
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$c, deleteSemanticSubMetricAdapterFactory),
|
|
12934
|
+
getLeafDependenciesByTypes: createWireAdapterConstructor(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12476
12935
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12477
12936
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
12478
12937
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -12488,6 +12947,7 @@ function bindExportsTo(luvio) {
|
|
|
12488
12947
|
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
12489
12948
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
12490
12949
|
// Imperative GET Adapters
|
|
12950
|
+
getLeafDependenciesByTypes_imperative: createImperativeAdapter(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12491
12951
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12492
12952
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
12493
12953
|
getSemanticMetricsByIds_imperative: createImperativeAdapter(luvio, getSemanticMetricsByIds_ldsAdapter, getSemanticMetricsByIdsMetadata),
|
|
@@ -12506,6 +12966,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12506
12966
|
createSemanticSubMetric,
|
|
12507
12967
|
deleteGoalFromSubMetric,
|
|
12508
12968
|
deleteSemanticSubMetric,
|
|
12969
|
+
getLeafDependenciesByTypes,
|
|
12509
12970
|
getSemanticMetric,
|
|
12510
12971
|
getSemanticMetricNotifyChange,
|
|
12511
12972
|
getSemanticMetrics,
|
|
@@ -12520,6 +12981,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12520
12981
|
getSemanticSubMetricsById,
|
|
12521
12982
|
patchSemanticMetricGoal,
|
|
12522
12983
|
patchSemanticModel,
|
|
12984
|
+
getLeafDependenciesByTypes_imperative,
|
|
12523
12985
|
getSemanticMetric_imperative,
|
|
12524
12986
|
getSemanticMetrics_imperative,
|
|
12525
12987
|
getSemanticMetricsByIds_imperative,
|
|
@@ -12532,5 +12994,5 @@ withDefaultLuvio((luvio) => {
|
|
|
12532
12994
|
} = bindExportsTo(luvio));
|
|
12533
12995
|
});
|
|
12534
12996
|
|
|
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.
|
|
12997
|
+
export { createSemanticModel, createSemanticSubMetric, deleteGoalFromSubMetric, deleteSemanticSubMetric, getLeafDependenciesByTypes, getLeafDependenciesByTypes_imperative, 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 };
|
|
12998
|
+
// version: 1.336.0-1b35a3afd9
|