@salesforce/lds-adapters-cdp-semantic-authoring 1.332.0-dev5 → 1.332.0-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cdp-semantic-authoring.js +1176 -725
- package/dist/es/es2018/types/src/generated/adapters/getLeafDependenciesByTypes.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getSemanticSubMetricsById.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticModelsDependenciesByModelApiNameOrId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotSemanticSubMetricsBySubMetricIds.d.ts +4 -0
- package/package.json +3 -3
- package/sfdc/index.js +1061 -599
- package/src/raml/api.raml +37 -0
- package/src/raml/luvio.raml +4 -0
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$10(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$Z(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$Y(obj, path = 'SemanticFilterInputRepresentation') {
|
|
|
148
148
|
return v_error === undefined ? null : v_error;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
function validate$
|
|
151
|
+
function validate$_(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$X(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$X(obj, path = 'SemanticCalculatedDimensionInputRepresentation'
|
|
|
258
258
|
return v_error === undefined ? null : v_error;
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function validate$
|
|
261
|
+
function validate$Z(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$W(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$W(obj, path = 'SemanticCalculatedMeasurementInputRepresentatio
|
|
|
403
403
|
return v_error === undefined ? null : v_error;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
function validate$
|
|
406
|
+
function validate$Y(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$V(obj, path = 'SemanticDimensionInputRepresentation') {
|
|
|
482
482
|
return v_error === undefined ? null : v_error;
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
function validate$
|
|
485
|
+
function validate$X(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$U(obj, path = 'SemanticMeasurementInputRepresentation') {
|
|
|
589
589
|
return v_error === undefined ? null : v_error;
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function validate$
|
|
592
|
+
function validate$W(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$T(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$T(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$Y(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$T(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$X(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$T(obj, path = 'SemanticDataObjectInputRepresentation') {
|
|
|
705
705
|
return v_error === undefined ? null : v_error;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
|
-
function validate$
|
|
708
|
+
function validate$V(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$S(obj, path = 'BinDimensionConfigurationInputRepresentation')
|
|
|
717
717
|
return v_error === undefined ? null : v_error;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
function validate$
|
|
720
|
+
function validate$U(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$R(obj, path = 'GroupDimensionGroupInputRepresentation') {
|
|
|
747
747
|
return v_error === undefined ? null : v_error;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
function validate$
|
|
750
|
+
function validate$T(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$Q(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$U(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$Q(obj, path = 'GroupDimensionConfigurationInputRepresentation'
|
|
|
780
780
|
return v_error === undefined ? null : v_error;
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
-
function validate$
|
|
783
|
+
function validate$S(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$P(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$V(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$P(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$T(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$P(obj, path = 'SemanticGroupingConfigurationInputRepresentatio
|
|
|
809
809
|
return v_error === undefined ? null : v_error;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
|
-
function validate$
|
|
812
|
+
function validate$R(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$O(obj, path = 'SemanticTableFieldReferenceInputRepresentation'
|
|
|
832
832
|
return v_error === undefined ? null : v_error;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
|
-
function validate$
|
|
835
|
+
function validate$Q(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$N(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$R(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$N(obj, path = 'SemanticFieldReferenceInputRepresentation') {
|
|
|
858
858
|
return v_error === undefined ? null : v_error;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
function validate$
|
|
861
|
+
function validate$P(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$M(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$S(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$M(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$Q(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$M(obj, path = 'SemanticGroupingInputRepresentation') {
|
|
|
915
915
|
return v_error === undefined ? null : v_error;
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
function validate$
|
|
918
|
+
function validate$O(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$L(obj, path = 'SemanticRelationshipCriteriaInputRepresentation
|
|
|
959
959
|
return v_error === undefined ? null : v_error;
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
function validate$
|
|
962
|
+
function validate$N(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$K(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$O(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$K(obj, path = 'SemanticRelationshipInputRepresentation') {
|
|
|
1048
1048
|
return v_error === undefined ? null : v_error;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
1051
|
-
function validate$
|
|
1051
|
+
function validate$M(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$J(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$R(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$J(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$Y(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$J(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$X(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$J(obj, path = 'SemanticMappedFieldInputRepresentation') {
|
|
|
1122
1122
|
return v_error === undefined ? null : v_error;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
|
-
function validate$
|
|
1125
|
+
function validate$L(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$I(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$W(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$I(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$M(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$I(obj, path = 'SemanticUnionInputRepresentation') {
|
|
|
1186
1186
|
return v_error === undefined ? null : v_error;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
-
function validate$
|
|
1189
|
+
function validate$K(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$H(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$H(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$W(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$H(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$N(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$H(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$L(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$H(obj, path = 'SemanticLogicalViewInputRepresentation') {
|
|
|
1298
1298
|
return v_error === undefined ? null : v_error;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
function validate$
|
|
1301
|
+
function validate$J(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$G(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$Q(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$G(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$Q(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$G(obj, path = 'SemanticIdentifyingDimensionInputRepresentation
|
|
|
1327
1327
|
return v_error === undefined ? null : v_error;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
function validate$
|
|
1330
|
+
function validate$I(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$F(obj, path = 'SemanticInsightTypeInputRepresentation') {
|
|
|
1350
1350
|
return v_error === undefined ? null : v_error;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
function validate$
|
|
1353
|
+
function validate$H(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$E(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$J(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$E(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$I(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$E(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$Q(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$E(obj, path = 'SemanticInsightsSettingsInputRepresentation') {
|
|
|
1424
1424
|
return v_error === undefined ? null : v_error;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
function validate$
|
|
1427
|
+
function validate$G(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$D(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$Q(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$D(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$D(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$H(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$D(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$Q(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$D(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$Q(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$D(obj, path = 'SemanticMetricInputRepresentation') {
|
|
|
1553
1553
|
return v_error === undefined ? null : v_error;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
function validate$
|
|
1556
|
+
function validate$F(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$C(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$E(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$B(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$D(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$A(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 = "8137018d7bcc1592081ebddf74ddd42a";
|
|
1801
|
+
function validate$C(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$z(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$D(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');
|
|
@@ -1955,24 +1955,24 @@ function validate$z(obj, path = 'SemanticCalculatedDimensionOutputRepresentation
|
|
|
1955
1955
|
})();
|
|
1956
1956
|
return v_error === undefined ? null : v_error;
|
|
1957
1957
|
}
|
|
1958
|
-
const RepresentationType$
|
|
1959
|
-
function keyBuilder$
|
|
1960
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1958
|
+
const RepresentationType$h = 'SemanticCalculatedDimensionOutputRepresentation';
|
|
1959
|
+
function keyBuilder$x(luvio, config) {
|
|
1960
|
+
return keyPrefix + '::' + RepresentationType$h + ':' + config.name;
|
|
1961
1961
|
}
|
|
1962
1962
|
function keyBuilderFromType$b(luvio, object) {
|
|
1963
1963
|
const keyParams = {
|
|
1964
1964
|
name: object.id
|
|
1965
1965
|
};
|
|
1966
|
-
return keyBuilder$
|
|
1966
|
+
return keyBuilder$x(luvio, keyParams);
|
|
1967
1967
|
}
|
|
1968
|
-
function normalize$
|
|
1968
|
+
function normalize$h(input, existing, path, luvio, store, timestamp) {
|
|
1969
1969
|
return input;
|
|
1970
1970
|
}
|
|
1971
|
-
const select$
|
|
1972
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
1971
|
+
const select$I = function SemanticCalculatedDimensionOutputRepresentationSelect() {
|
|
1972
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
1973
1973
|
return {
|
|
1974
1974
|
kind: 'Fragment',
|
|
1975
|
-
version: VERSION$
|
|
1975
|
+
version: VERSION$u,
|
|
1976
1976
|
private: [],
|
|
1977
1977
|
selections: [
|
|
1978
1978
|
{
|
|
@@ -2081,7 +2081,7 @@ const select$E = function SemanticCalculatedDimensionOutputRepresentationSelect(
|
|
|
2081
2081
|
]
|
|
2082
2082
|
};
|
|
2083
2083
|
};
|
|
2084
|
-
function equals$
|
|
2084
|
+
function equals$u(existing, incoming) {
|
|
2085
2085
|
const existing_isVisible = existing.isVisible;
|
|
2086
2086
|
const incoming_isVisible = incoming.isVisible;
|
|
2087
2087
|
// if at least one of these optionals is defined
|
|
@@ -2320,7 +2320,7 @@ function equals$r(existing, incoming) {
|
|
|
2320
2320
|
return false;
|
|
2321
2321
|
}
|
|
2322
2322
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
2323
|
-
if (!(equals$
|
|
2323
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
2324
2324
|
return false;
|
|
2325
2325
|
}
|
|
2326
2326
|
});
|
|
@@ -2330,30 +2330,30 @@ function equals$r(existing, incoming) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
return true;
|
|
2332
2332
|
}
|
|
2333
|
-
const ingest$
|
|
2333
|
+
const ingest$h = function SemanticCalculatedDimensionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2334
2334
|
if (process.env.NODE_ENV !== 'production') {
|
|
2335
|
-
const validateError = validate$
|
|
2335
|
+
const validateError = validate$C(input);
|
|
2336
2336
|
if (validateError !== null) {
|
|
2337
2337
|
throw validateError;
|
|
2338
2338
|
}
|
|
2339
2339
|
}
|
|
2340
2340
|
const key = keyBuilderFromType$b(luvio, input);
|
|
2341
2341
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
2342
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2342
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$h, "SemanticAuthoring", VERSION$u, RepresentationType$h, equals$u);
|
|
2343
2343
|
return createLink(key);
|
|
2344
2344
|
};
|
|
2345
|
-
function getTypeCacheKeys$
|
|
2345
|
+
function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
|
|
2346
2346
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2347
2347
|
const rootKey = keyBuilderFromType$b(luvio, input);
|
|
2348
2348
|
rootKeySet.set(rootKey, {
|
|
2349
2349
|
namespace: keyPrefix,
|
|
2350
|
-
representationName: RepresentationType$
|
|
2350
|
+
representationName: RepresentationType$h,
|
|
2351
2351
|
mergeable: false
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
|
-
const VERSION$
|
|
2356
|
-
function validate$
|
|
2355
|
+
const VERSION$t = "4dc83d3583b0937db8808447abe03505";
|
|
2356
|
+
function validate$B(obj, path = 'SemanticCalculatedMeasurementOutputRepresentation') {
|
|
2357
2357
|
const v_error = (() => {
|
|
2358
2358
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2359
2359
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2452,7 +2452,7 @@ function validate$y(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2452
2452
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
2453
2453
|
const obj_filters_item = obj_filters[i];
|
|
2454
2454
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
2455
|
-
const referencepath_filters_itemValidationError = validate$
|
|
2455
|
+
const referencepath_filters_itemValidationError = validate$D(obj_filters_item, path_filters_item);
|
|
2456
2456
|
if (referencepath_filters_itemValidationError !== null) {
|
|
2457
2457
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
2458
2458
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2552,24 +2552,24 @@ function validate$y(obj, path = 'SemanticCalculatedMeasurementOutputRepresentati
|
|
|
2552
2552
|
})();
|
|
2553
2553
|
return v_error === undefined ? null : v_error;
|
|
2554
2554
|
}
|
|
2555
|
-
const RepresentationType$
|
|
2556
|
-
function keyBuilder$
|
|
2557
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2555
|
+
const RepresentationType$g = 'SemanticCalculatedMeasurementOutputRepresentation';
|
|
2556
|
+
function keyBuilder$w(luvio, config) {
|
|
2557
|
+
return keyPrefix + '::' + RepresentationType$g + ':' + config.name;
|
|
2558
2558
|
}
|
|
2559
2559
|
function keyBuilderFromType$a(luvio, object) {
|
|
2560
2560
|
const keyParams = {
|
|
2561
2561
|
name: object.id
|
|
2562
2562
|
};
|
|
2563
|
-
return keyBuilder$
|
|
2563
|
+
return keyBuilder$w(luvio, keyParams);
|
|
2564
2564
|
}
|
|
2565
|
-
function normalize$
|
|
2565
|
+
function normalize$g(input, existing, path, luvio, store, timestamp) {
|
|
2566
2566
|
return input;
|
|
2567
2567
|
}
|
|
2568
|
-
const select$
|
|
2569
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
2568
|
+
const select$H = function SemanticCalculatedMeasurementOutputRepresentationSelect() {
|
|
2569
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
2570
2570
|
return {
|
|
2571
2571
|
kind: 'Fragment',
|
|
2572
|
-
version: VERSION$
|
|
2572
|
+
version: VERSION$t,
|
|
2573
2573
|
private: [],
|
|
2574
2574
|
selections: [
|
|
2575
2575
|
{
|
|
@@ -2708,7 +2708,7 @@ const select$D = function SemanticCalculatedMeasurementOutputRepresentationSelec
|
|
|
2708
2708
|
]
|
|
2709
2709
|
};
|
|
2710
2710
|
};
|
|
2711
|
-
function equals$
|
|
2711
|
+
function equals$t(existing, incoming) {
|
|
2712
2712
|
const existing_isAggregatable = existing.isAggregatable;
|
|
2713
2713
|
const incoming_isAggregatable = incoming.isAggregatable;
|
|
2714
2714
|
// if at least one of these optionals is defined
|
|
@@ -3025,7 +3025,7 @@ function equals$q(existing, incoming) {
|
|
|
3025
3025
|
return false;
|
|
3026
3026
|
}
|
|
3027
3027
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
3028
|
-
if (!(equals$
|
|
3028
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
3029
3029
|
return false;
|
|
3030
3030
|
}
|
|
3031
3031
|
});
|
|
@@ -3035,29 +3035,29 @@ function equals$q(existing, incoming) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
return true;
|
|
3037
3037
|
}
|
|
3038
|
-
const ingest$
|
|
3038
|
+
const ingest$g = function SemanticCalculatedMeasurementOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3039
3039
|
if (process.env.NODE_ENV !== 'production') {
|
|
3040
|
-
const validateError = validate$
|
|
3040
|
+
const validateError = validate$B(input);
|
|
3041
3041
|
if (validateError !== null) {
|
|
3042
3042
|
throw validateError;
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
3045
3045
|
const key = keyBuilderFromType$a(luvio, input);
|
|
3046
3046
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
3047
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3047
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$g, "SemanticAuthoring", VERSION$t, RepresentationType$g, equals$t);
|
|
3048
3048
|
return createLink(key);
|
|
3049
3049
|
};
|
|
3050
|
-
function getTypeCacheKeys$
|
|
3050
|
+
function getTypeCacheKeys$g(rootKeySet, luvio, input, fullPathFactory) {
|
|
3051
3051
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3052
3052
|
const rootKey = keyBuilderFromType$a(luvio, input);
|
|
3053
3053
|
rootKeySet.set(rootKey, {
|
|
3054
3054
|
namespace: keyPrefix,
|
|
3055
|
-
representationName: RepresentationType$
|
|
3055
|
+
representationName: RepresentationType$g,
|
|
3056
3056
|
mergeable: false
|
|
3057
3057
|
});
|
|
3058
3058
|
}
|
|
3059
3059
|
|
|
3060
|
-
function validate$
|
|
3060
|
+
function validate$A(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
3061
3061
|
const v_error = (() => {
|
|
3062
3062
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3063
3063
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3198,7 +3198,7 @@ function validate$x(obj, path = 'SemanticDimensionOutputRepresentation') {
|
|
|
3198
3198
|
return v_error === undefined ? null : v_error;
|
|
3199
3199
|
}
|
|
3200
3200
|
|
|
3201
|
-
function validate$
|
|
3201
|
+
function validate$z(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
3202
3202
|
const v_error = (() => {
|
|
3203
3203
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3204
3204
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3374,8 +3374,8 @@ function validate$w(obj, path = 'SemanticMeasurementOutputRepresentation') {
|
|
|
3374
3374
|
return v_error === undefined ? null : v_error;
|
|
3375
3375
|
}
|
|
3376
3376
|
|
|
3377
|
-
const VERSION$
|
|
3378
|
-
function validate$
|
|
3377
|
+
const VERSION$s = "4f111b93807b811179eb310384efdc35";
|
|
3378
|
+
function validate$y(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
3379
3379
|
const v_error = (() => {
|
|
3380
3380
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3381
3381
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3446,7 +3446,7 @@ function validate$v(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3446
3446
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
3447
3447
|
const obj_filters_item = obj_filters[i];
|
|
3448
3448
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
3449
|
-
const referencepath_filters_itemValidationError = validate$
|
|
3449
|
+
const referencepath_filters_itemValidationError = validate$D(obj_filters_item, path_filters_item);
|
|
3450
3450
|
if (referencepath_filters_itemValidationError !== null) {
|
|
3451
3451
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
3452
3452
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3496,7 +3496,7 @@ function validate$v(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3496
3496
|
for (let i = 0; i < obj_semanticDimensions.length; i++) {
|
|
3497
3497
|
const obj_semanticDimensions_item = obj_semanticDimensions[i];
|
|
3498
3498
|
const path_semanticDimensions_item = path_semanticDimensions + '[' + i + ']';
|
|
3499
|
-
const referencepath_semanticDimensions_itemValidationError = validate$
|
|
3499
|
+
const referencepath_semanticDimensions_itemValidationError = validate$A(obj_semanticDimensions_item, path_semanticDimensions_item);
|
|
3500
3500
|
if (referencepath_semanticDimensions_itemValidationError !== null) {
|
|
3501
3501
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimensions_item + '")\n';
|
|
3502
3502
|
message += referencepath_semanticDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3520,7 +3520,7 @@ function validate$v(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3520
3520
|
for (let i = 0; i < obj_semanticMeasurements.length; i++) {
|
|
3521
3521
|
const obj_semanticMeasurements_item = obj_semanticMeasurements[i];
|
|
3522
3522
|
const path_semanticMeasurements_item = path_semanticMeasurements + '[' + i + ']';
|
|
3523
|
-
const referencepath_semanticMeasurements_itemValidationError = validate$
|
|
3523
|
+
const referencepath_semanticMeasurements_itemValidationError = validate$z(obj_semanticMeasurements_item, path_semanticMeasurements_item);
|
|
3524
3524
|
if (referencepath_semanticMeasurements_itemValidationError !== null) {
|
|
3525
3525
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurements_item + '")\n';
|
|
3526
3526
|
message += referencepath_semanticMeasurements_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3545,57 +3545,57 @@ function validate$v(obj, path = 'SemanticDataObjectOutputRepresentation') {
|
|
|
3545
3545
|
})();
|
|
3546
3546
|
return v_error === undefined ? null : v_error;
|
|
3547
3547
|
}
|
|
3548
|
-
const RepresentationType$
|
|
3549
|
-
function keyBuilder$
|
|
3550
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3548
|
+
const RepresentationType$f = 'SemanticDataObjectOutputRepresentation';
|
|
3549
|
+
function keyBuilder$v(luvio, config) {
|
|
3550
|
+
return keyPrefix + '::' + RepresentationType$f + ':' + config.name;
|
|
3551
3551
|
}
|
|
3552
3552
|
function keyBuilderFromType$9(luvio, object) {
|
|
3553
3553
|
const keyParams = {
|
|
3554
3554
|
name: object.id
|
|
3555
3555
|
};
|
|
3556
|
-
return keyBuilder$
|
|
3556
|
+
return keyBuilder$v(luvio, keyParams);
|
|
3557
3557
|
}
|
|
3558
|
-
function normalize$
|
|
3558
|
+
function normalize$f(input, existing, path, luvio, store, timestamp) {
|
|
3559
3559
|
return input;
|
|
3560
3560
|
}
|
|
3561
|
-
const select$
|
|
3561
|
+
const select$G = function SemanticDataObjectOutputRepresentationSelect() {
|
|
3562
3562
|
return {
|
|
3563
3563
|
kind: 'Fragment',
|
|
3564
|
-
version: VERSION$
|
|
3564
|
+
version: VERSION$s,
|
|
3565
3565
|
private: [],
|
|
3566
3566
|
opaque: true
|
|
3567
3567
|
};
|
|
3568
3568
|
};
|
|
3569
|
-
function equals$
|
|
3569
|
+
function equals$s(existing, incoming) {
|
|
3570
3570
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3571
3571
|
return false;
|
|
3572
3572
|
}
|
|
3573
3573
|
return true;
|
|
3574
3574
|
}
|
|
3575
|
-
const ingest$
|
|
3575
|
+
const ingest$f = function SemanticDataObjectOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3576
3576
|
if (process.env.NODE_ENV !== 'production') {
|
|
3577
|
-
const validateError = validate$
|
|
3577
|
+
const validateError = validate$y(input);
|
|
3578
3578
|
if (validateError !== null) {
|
|
3579
3579
|
throw validateError;
|
|
3580
3580
|
}
|
|
3581
3581
|
}
|
|
3582
3582
|
const key = keyBuilderFromType$9(luvio, input);
|
|
3583
3583
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
3584
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3584
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$f, "SemanticAuthoring", VERSION$s, RepresentationType$f, equals$s);
|
|
3585
3585
|
return createLink(key);
|
|
3586
3586
|
};
|
|
3587
|
-
function getTypeCacheKeys$
|
|
3587
|
+
function getTypeCacheKeys$f(rootKeySet, luvio, input, fullPathFactory) {
|
|
3588
3588
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3589
3589
|
const rootKey = keyBuilderFromType$9(luvio, input);
|
|
3590
3590
|
rootKeySet.set(rootKey, {
|
|
3591
3591
|
namespace: keyPrefix,
|
|
3592
|
-
representationName: RepresentationType$
|
|
3592
|
+
representationName: RepresentationType$f,
|
|
3593
3593
|
mergeable: false
|
|
3594
3594
|
});
|
|
3595
3595
|
}
|
|
3596
3596
|
|
|
3597
|
-
const VERSION$
|
|
3598
|
-
function validate$
|
|
3597
|
+
const VERSION$r = "ed64ca1a99171ace8b53aff11746cc2a";
|
|
3598
|
+
function validate$x(obj, path = 'BinDimensionConfigurationOutputRepresentation') {
|
|
3599
3599
|
const v_error = (() => {
|
|
3600
3600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3601
3601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3604,10 +3604,10 @@ function validate$u(obj, path = 'BinDimensionConfigurationOutputRepresentation')
|
|
|
3604
3604
|
})();
|
|
3605
3605
|
return v_error === undefined ? null : v_error;
|
|
3606
3606
|
}
|
|
3607
|
-
const select$
|
|
3607
|
+
const select$F = function BinDimensionConfigurationOutputRepresentationSelect() {
|
|
3608
3608
|
return {
|
|
3609
3609
|
kind: 'Fragment',
|
|
3610
|
-
version: VERSION$
|
|
3610
|
+
version: VERSION$r,
|
|
3611
3611
|
private: [],
|
|
3612
3612
|
selections: [
|
|
3613
3613
|
{
|
|
@@ -3617,7 +3617,7 @@ const select$B = function BinDimensionConfigurationOutputRepresentationSelect()
|
|
|
3617
3617
|
]
|
|
3618
3618
|
};
|
|
3619
3619
|
};
|
|
3620
|
-
function equals$
|
|
3620
|
+
function equals$r(existing, incoming) {
|
|
3621
3621
|
const existing_constantBinSize = existing.constantBinSize;
|
|
3622
3622
|
const incoming_constantBinSize = incoming.constantBinSize;
|
|
3623
3623
|
if (!(existing_constantBinSize === incoming_constantBinSize)) {
|
|
@@ -3626,8 +3626,8 @@ function equals$o(existing, incoming) {
|
|
|
3626
3626
|
return true;
|
|
3627
3627
|
}
|
|
3628
3628
|
|
|
3629
|
-
const VERSION$
|
|
3630
|
-
function validate$
|
|
3629
|
+
const VERSION$q = "2cdadcd630abb7b981b2d131880a68c0";
|
|
3630
|
+
function validate$w(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
3631
3631
|
const v_error = (() => {
|
|
3632
3632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3633
3633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3654,10 +3654,10 @@ function validate$t(obj, path = 'GroupDimensionGroupOutputRepresentation') {
|
|
|
3654
3654
|
})();
|
|
3655
3655
|
return v_error === undefined ? null : v_error;
|
|
3656
3656
|
}
|
|
3657
|
-
const select$
|
|
3657
|
+
const select$E = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
3658
3658
|
return {
|
|
3659
3659
|
kind: 'Fragment',
|
|
3660
|
-
version: VERSION$
|
|
3660
|
+
version: VERSION$q,
|
|
3661
3661
|
private: [],
|
|
3662
3662
|
selections: [
|
|
3663
3663
|
{
|
|
@@ -3673,7 +3673,7 @@ const select$A = function GroupDimensionGroupOutputRepresentationSelect() {
|
|
|
3673
3673
|
]
|
|
3674
3674
|
};
|
|
3675
3675
|
};
|
|
3676
|
-
function equals$
|
|
3676
|
+
function equals$q(existing, incoming) {
|
|
3677
3677
|
const existing_name = existing.name;
|
|
3678
3678
|
const incoming_name = incoming.name;
|
|
3679
3679
|
if (!(existing_name === incoming_name)) {
|
|
@@ -3700,8 +3700,8 @@ function equals$n(existing, incoming) {
|
|
|
3700
3700
|
return true;
|
|
3701
3701
|
}
|
|
3702
3702
|
|
|
3703
|
-
const VERSION$
|
|
3704
|
-
function validate$
|
|
3703
|
+
const VERSION$p = "55c60b6207985632192cb4e419822a86";
|
|
3704
|
+
function validate$v(obj, path = 'GroupDimensionConfigurationOutputRepresentation') {
|
|
3705
3705
|
const v_error = (() => {
|
|
3706
3706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3707
3707
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3715,7 +3715,7 @@ function validate$s(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3715
3715
|
for (let i = 0; i < obj_groups.length; i++) {
|
|
3716
3716
|
const obj_groups_item = obj_groups[i];
|
|
3717
3717
|
const path_groups_item = path_groups + '[' + i + ']';
|
|
3718
|
-
const referencepath_groups_itemValidationError = validate$
|
|
3718
|
+
const referencepath_groups_itemValidationError = validate$w(obj_groups_item, path_groups_item);
|
|
3719
3719
|
if (referencepath_groups_itemValidationError !== null) {
|
|
3720
3720
|
let message = 'Object doesn\'t match GroupDimensionGroupOutputRepresentation (at "' + path_groups_item + '")\n';
|
|
3721
3721
|
message += referencepath_groups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3733,11 +3733,11 @@ function validate$s(obj, path = 'GroupDimensionConfigurationOutputRepresentation
|
|
|
3733
3733
|
})();
|
|
3734
3734
|
return v_error === undefined ? null : v_error;
|
|
3735
3735
|
}
|
|
3736
|
-
const select$
|
|
3737
|
-
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$
|
|
3736
|
+
const select$D = function GroupDimensionConfigurationOutputRepresentationSelect() {
|
|
3737
|
+
const { selections: GroupDimensionGroupOutputRepresentation__selections, opaque: GroupDimensionGroupOutputRepresentation__opaque, } = select$E();
|
|
3738
3738
|
return {
|
|
3739
3739
|
kind: 'Fragment',
|
|
3740
|
-
version: VERSION$
|
|
3740
|
+
version: VERSION$p,
|
|
3741
3741
|
private: [],
|
|
3742
3742
|
selections: [
|
|
3743
3743
|
{
|
|
@@ -3755,7 +3755,7 @@ const select$z = function GroupDimensionConfigurationOutputRepresentationSelect(
|
|
|
3755
3755
|
]
|
|
3756
3756
|
};
|
|
3757
3757
|
};
|
|
3758
|
-
function equals$
|
|
3758
|
+
function equals$p(existing, incoming) {
|
|
3759
3759
|
const existing_ungroupedValuesGroupName = existing.ungroupedValuesGroupName;
|
|
3760
3760
|
const incoming_ungroupedValuesGroupName = incoming.ungroupedValuesGroupName;
|
|
3761
3761
|
// if at least one of these optionals is defined
|
|
@@ -3779,7 +3779,7 @@ function equals$m(existing, incoming) {
|
|
|
3779
3779
|
return false;
|
|
3780
3780
|
}
|
|
3781
3781
|
const equals_groups_items = equalsArray(existing_groups, incoming_groups, (existing_groups_item, incoming_groups_item) => {
|
|
3782
|
-
if (!(equals$
|
|
3782
|
+
if (!(equals$q(existing_groups_item, incoming_groups_item))) {
|
|
3783
3783
|
return false;
|
|
3784
3784
|
}
|
|
3785
3785
|
});
|
|
@@ -3790,8 +3790,8 @@ function equals$m(existing, incoming) {
|
|
|
3790
3790
|
return true;
|
|
3791
3791
|
}
|
|
3792
3792
|
|
|
3793
|
-
const VERSION$
|
|
3794
|
-
function validate$
|
|
3793
|
+
const VERSION$o = "50dc390b159159afb1945b9a811c9f80";
|
|
3794
|
+
function validate$u(obj, path = 'SemanticGroupingConfigurationOutputRepresentation') {
|
|
3795
3795
|
const v_error = (() => {
|
|
3796
3796
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3797
3797
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3799,7 +3799,7 @@ function validate$r(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3799
3799
|
if (obj.binDimension !== undefined) {
|
|
3800
3800
|
const obj_binDimension = obj.binDimension;
|
|
3801
3801
|
const path_binDimension = path + '.binDimension';
|
|
3802
|
-
const referencepath_binDimensionValidationError = validate$
|
|
3802
|
+
const referencepath_binDimensionValidationError = validate$x(obj_binDimension, path_binDimension);
|
|
3803
3803
|
if (referencepath_binDimensionValidationError !== null) {
|
|
3804
3804
|
let message = 'Object doesn\'t match BinDimensionConfigurationOutputRepresentation (at "' + path_binDimension + '")\n';
|
|
3805
3805
|
message += referencepath_binDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3809,7 +3809,7 @@ function validate$r(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3809
3809
|
if (obj.groupDimension !== undefined) {
|
|
3810
3810
|
const obj_groupDimension = obj.groupDimension;
|
|
3811
3811
|
const path_groupDimension = path + '.groupDimension';
|
|
3812
|
-
const referencepath_groupDimensionValidationError = validate$
|
|
3812
|
+
const referencepath_groupDimensionValidationError = validate$v(obj_groupDimension, path_groupDimension);
|
|
3813
3813
|
if (referencepath_groupDimensionValidationError !== null) {
|
|
3814
3814
|
let message = 'Object doesn\'t match GroupDimensionConfigurationOutputRepresentation (at "' + path_groupDimension + '")\n';
|
|
3815
3815
|
message += referencepath_groupDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3819,12 +3819,12 @@ function validate$r(obj, path = 'SemanticGroupingConfigurationOutputRepresentati
|
|
|
3819
3819
|
})();
|
|
3820
3820
|
return v_error === undefined ? null : v_error;
|
|
3821
3821
|
}
|
|
3822
|
-
const select$
|
|
3823
|
-
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3824
|
-
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$
|
|
3822
|
+
const select$C = function SemanticGroupingConfigurationOutputRepresentationSelect() {
|
|
3823
|
+
const { selections: BinDimensionConfigurationOutputRepresentation__selections, opaque: BinDimensionConfigurationOutputRepresentation__opaque, } = select$F();
|
|
3824
|
+
const { selections: GroupDimensionConfigurationOutputRepresentation__selections, opaque: GroupDimensionConfigurationOutputRepresentation__opaque, } = select$D();
|
|
3825
3825
|
return {
|
|
3826
3826
|
kind: 'Fragment',
|
|
3827
|
-
version: VERSION$
|
|
3827
|
+
version: VERSION$o,
|
|
3828
3828
|
private: [],
|
|
3829
3829
|
selections: [
|
|
3830
3830
|
{
|
|
@@ -3842,7 +3842,7 @@ const select$y = function SemanticGroupingConfigurationOutputRepresentationSelec
|
|
|
3842
3842
|
]
|
|
3843
3843
|
};
|
|
3844
3844
|
};
|
|
3845
|
-
function equals$
|
|
3845
|
+
function equals$o(existing, incoming) {
|
|
3846
3846
|
const existing_binDimension = existing.binDimension;
|
|
3847
3847
|
const incoming_binDimension = incoming.binDimension;
|
|
3848
3848
|
// if at least one of these optionals is defined
|
|
@@ -3852,7 +3852,7 @@ function equals$l(existing, incoming) {
|
|
|
3852
3852
|
if (existing_binDimension === undefined || incoming_binDimension === undefined) {
|
|
3853
3853
|
return false;
|
|
3854
3854
|
}
|
|
3855
|
-
if (!(equals$
|
|
3855
|
+
if (!(equals$r(existing_binDimension, incoming_binDimension))) {
|
|
3856
3856
|
return false;
|
|
3857
3857
|
}
|
|
3858
3858
|
}
|
|
@@ -3865,15 +3865,15 @@ function equals$l(existing, incoming) {
|
|
|
3865
3865
|
if (existing_groupDimension === undefined || incoming_groupDimension === undefined) {
|
|
3866
3866
|
return false;
|
|
3867
3867
|
}
|
|
3868
|
-
if (!(equals$
|
|
3868
|
+
if (!(equals$p(existing_groupDimension, incoming_groupDimension))) {
|
|
3869
3869
|
return false;
|
|
3870
3870
|
}
|
|
3871
3871
|
}
|
|
3872
3872
|
return true;
|
|
3873
3873
|
}
|
|
3874
3874
|
|
|
3875
|
-
const VERSION$
|
|
3876
|
-
function validate$
|
|
3875
|
+
const VERSION$n = "a2976cd68e629a917463a3b690cf2527";
|
|
3876
|
+
function validate$t(obj, path = 'SemanticTableFieldReferenceOutputRepresentation') {
|
|
3877
3877
|
const v_error = (() => {
|
|
3878
3878
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3879
3879
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3895,10 +3895,10 @@ function validate$q(obj, path = 'SemanticTableFieldReferenceOutputRepresentation
|
|
|
3895
3895
|
})();
|
|
3896
3896
|
return v_error === undefined ? null : v_error;
|
|
3897
3897
|
}
|
|
3898
|
-
const select$
|
|
3898
|
+
const select$B = function SemanticTableFieldReferenceOutputRepresentationSelect() {
|
|
3899
3899
|
return {
|
|
3900
3900
|
kind: 'Fragment',
|
|
3901
|
-
version: VERSION$
|
|
3901
|
+
version: VERSION$n,
|
|
3902
3902
|
private: [],
|
|
3903
3903
|
selections: [
|
|
3904
3904
|
{
|
|
@@ -3914,7 +3914,7 @@ const select$x = function SemanticTableFieldReferenceOutputRepresentationSelect(
|
|
|
3914
3914
|
]
|
|
3915
3915
|
};
|
|
3916
3916
|
};
|
|
3917
|
-
function equals$
|
|
3917
|
+
function equals$n(existing, incoming) {
|
|
3918
3918
|
const existing_fieldApiName = existing.fieldApiName;
|
|
3919
3919
|
const incoming_fieldApiName = incoming.fieldApiName;
|
|
3920
3920
|
// if at least one of these optionals is defined
|
|
@@ -3944,8 +3944,8 @@ function equals$k(existing, incoming) {
|
|
|
3944
3944
|
return true;
|
|
3945
3945
|
}
|
|
3946
3946
|
|
|
3947
|
-
const VERSION$
|
|
3948
|
-
function validate$
|
|
3947
|
+
const VERSION$m = "f49a2cbbe308f6f74cda3e2144fa66cd";
|
|
3948
|
+
function validate$s(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
3949
3949
|
const v_error = (() => {
|
|
3950
3950
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3951
3951
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3960,7 +3960,7 @@ function validate$p(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3960
3960
|
if (obj.tableFieldReference !== undefined) {
|
|
3961
3961
|
const obj_tableFieldReference = obj.tableFieldReference;
|
|
3962
3962
|
const path_tableFieldReference = path + '.tableFieldReference';
|
|
3963
|
-
const referencepath_tableFieldReferenceValidationError = validate$
|
|
3963
|
+
const referencepath_tableFieldReferenceValidationError = validate$t(obj_tableFieldReference, path_tableFieldReference);
|
|
3964
3964
|
if (referencepath_tableFieldReferenceValidationError !== null) {
|
|
3965
3965
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_tableFieldReference + '")\n';
|
|
3966
3966
|
message += referencepath_tableFieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3970,11 +3970,11 @@ function validate$p(obj, path = 'SemanticFieldReferenceOutputRepresentation') {
|
|
|
3970
3970
|
})();
|
|
3971
3971
|
return v_error === undefined ? null : v_error;
|
|
3972
3972
|
}
|
|
3973
|
-
const select$
|
|
3974
|
-
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$
|
|
3973
|
+
const select$A = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
3974
|
+
const { selections: SemanticTableFieldReferenceOutputRepresentation__selections, opaque: SemanticTableFieldReferenceOutputRepresentation__opaque, } = select$B();
|
|
3975
3975
|
return {
|
|
3976
3976
|
kind: 'Fragment',
|
|
3977
|
-
version: VERSION$
|
|
3977
|
+
version: VERSION$m,
|
|
3978
3978
|
private: [],
|
|
3979
3979
|
selections: [
|
|
3980
3980
|
{
|
|
@@ -3991,7 +3991,7 @@ const select$w = function SemanticFieldReferenceOutputRepresentationSelect() {
|
|
|
3991
3991
|
]
|
|
3992
3992
|
};
|
|
3993
3993
|
};
|
|
3994
|
-
function equals$
|
|
3994
|
+
function equals$m(existing, incoming) {
|
|
3995
3995
|
const existing_calculatedFieldApiName = existing.calculatedFieldApiName;
|
|
3996
3996
|
const incoming_calculatedFieldApiName = incoming.calculatedFieldApiName;
|
|
3997
3997
|
// if at least one of these optionals is defined
|
|
@@ -4014,15 +4014,15 @@ function equals$j(existing, incoming) {
|
|
|
4014
4014
|
if (existing_tableFieldReference === undefined || incoming_tableFieldReference === undefined) {
|
|
4015
4015
|
return false;
|
|
4016
4016
|
}
|
|
4017
|
-
if (!(equals$
|
|
4017
|
+
if (!(equals$n(existing_tableFieldReference, incoming_tableFieldReference))) {
|
|
4018
4018
|
return false;
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
4021
|
return true;
|
|
4022
4022
|
}
|
|
4023
4023
|
|
|
4024
|
-
const VERSION$
|
|
4025
|
-
function validate$
|
|
4024
|
+
const VERSION$l = "1daec40706bf767c719fa58831fad462";
|
|
4025
|
+
function validate$r(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
4026
4026
|
const v_error = (() => {
|
|
4027
4027
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4028
4028
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4048,7 +4048,7 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4048
4048
|
}
|
|
4049
4049
|
const obj_configuration = obj.configuration;
|
|
4050
4050
|
const path_configuration = path + '.configuration';
|
|
4051
|
-
const referencepath_configurationValidationError = validate$
|
|
4051
|
+
const referencepath_configurationValidationError = validate$u(obj_configuration, path_configuration);
|
|
4052
4052
|
if (referencepath_configurationValidationError !== null) {
|
|
4053
4053
|
let message = 'Object doesn\'t match SemanticGroupingConfigurationOutputRepresentation (at "' + path_configuration + '")\n';
|
|
4054
4054
|
message += referencepath_configurationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4073,7 +4073,7 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4073
4073
|
}
|
|
4074
4074
|
const obj_fieldReference = obj.fieldReference;
|
|
4075
4075
|
const path_fieldReference = path + '.fieldReference';
|
|
4076
|
-
const referencepath_fieldReferenceValidationError = validate$
|
|
4076
|
+
const referencepath_fieldReferenceValidationError = validate$s(obj_fieldReference, path_fieldReference);
|
|
4077
4077
|
if (referencepath_fieldReferenceValidationError !== null) {
|
|
4078
4078
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_fieldReference + '")\n';
|
|
4079
4079
|
message += referencepath_fieldReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4113,25 +4113,25 @@ function validate$o(obj, path = 'SemanticGroupingOutputRepresentation') {
|
|
|
4113
4113
|
})();
|
|
4114
4114
|
return v_error === undefined ? null : v_error;
|
|
4115
4115
|
}
|
|
4116
|
-
const RepresentationType$
|
|
4117
|
-
function keyBuilder$
|
|
4118
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4116
|
+
const RepresentationType$e = 'SemanticGroupingOutputRepresentation';
|
|
4117
|
+
function keyBuilder$u(luvio, config) {
|
|
4118
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.name;
|
|
4119
4119
|
}
|
|
4120
4120
|
function keyBuilderFromType$8(luvio, object) {
|
|
4121
4121
|
const keyParams = {
|
|
4122
4122
|
name: object.id
|
|
4123
4123
|
};
|
|
4124
|
-
return keyBuilder$
|
|
4124
|
+
return keyBuilder$u(luvio, keyParams);
|
|
4125
4125
|
}
|
|
4126
|
-
function normalize$
|
|
4126
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
4127
4127
|
return input;
|
|
4128
4128
|
}
|
|
4129
|
-
const select$
|
|
4130
|
-
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$
|
|
4131
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
4129
|
+
const select$z = function SemanticGroupingOutputRepresentationSelect() {
|
|
4130
|
+
const { selections: SemanticGroupingConfigurationOutputRepresentation__selections, opaque: SemanticGroupingConfigurationOutputRepresentation__opaque, } = select$C();
|
|
4131
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
4132
4132
|
return {
|
|
4133
4133
|
kind: 'Fragment',
|
|
4134
|
-
version: VERSION$
|
|
4134
|
+
version: VERSION$l,
|
|
4135
4135
|
private: [],
|
|
4136
4136
|
selections: [
|
|
4137
4137
|
{
|
|
@@ -4197,7 +4197,7 @@ const select$v = function SemanticGroupingOutputRepresentationSelect() {
|
|
|
4197
4197
|
]
|
|
4198
4198
|
};
|
|
4199
4199
|
};
|
|
4200
|
-
function equals$
|
|
4200
|
+
function equals$l(existing, incoming) {
|
|
4201
4201
|
const existing_apiName = existing.apiName;
|
|
4202
4202
|
const incoming_apiName = incoming.apiName;
|
|
4203
4203
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -4303,40 +4303,40 @@ function equals$i(existing, incoming) {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
const existing_configuration = existing.configuration;
|
|
4305
4305
|
const incoming_configuration = incoming.configuration;
|
|
4306
|
-
if (!(equals$
|
|
4306
|
+
if (!(equals$o(existing_configuration, incoming_configuration))) {
|
|
4307
4307
|
return false;
|
|
4308
4308
|
}
|
|
4309
4309
|
const existing_fieldReference = existing.fieldReference;
|
|
4310
4310
|
const incoming_fieldReference = incoming.fieldReference;
|
|
4311
|
-
if (!(equals$
|
|
4311
|
+
if (!(equals$m(existing_fieldReference, incoming_fieldReference))) {
|
|
4312
4312
|
return false;
|
|
4313
4313
|
}
|
|
4314
4314
|
return true;
|
|
4315
4315
|
}
|
|
4316
|
-
const ingest$
|
|
4316
|
+
const ingest$e = function SemanticGroupingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4317
4317
|
if (process.env.NODE_ENV !== 'production') {
|
|
4318
|
-
const validateError = validate$
|
|
4318
|
+
const validateError = validate$r(input);
|
|
4319
4319
|
if (validateError !== null) {
|
|
4320
4320
|
throw validateError;
|
|
4321
4321
|
}
|
|
4322
4322
|
}
|
|
4323
4323
|
const key = keyBuilderFromType$8(luvio, input);
|
|
4324
4324
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4325
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4325
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SemanticAuthoring", VERSION$l, RepresentationType$e, equals$l);
|
|
4326
4326
|
return createLink(key);
|
|
4327
4327
|
};
|
|
4328
|
-
function getTypeCacheKeys$
|
|
4328
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
4329
4329
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4330
4330
|
const rootKey = keyBuilderFromType$8(luvio, input);
|
|
4331
4331
|
rootKeySet.set(rootKey, {
|
|
4332
4332
|
namespace: keyPrefix,
|
|
4333
|
-
representationName: RepresentationType$
|
|
4333
|
+
representationName: RepresentationType$e,
|
|
4334
4334
|
mergeable: false
|
|
4335
4335
|
});
|
|
4336
4336
|
}
|
|
4337
4337
|
|
|
4338
|
-
const VERSION$
|
|
4339
|
-
function validate$
|
|
4338
|
+
const VERSION$k = "c5144c317ac72b60d580cab803514b8d";
|
|
4339
|
+
function validate$q(obj, path = 'SemanticRelationshipCriteriaOutputRepresentation') {
|
|
4340
4340
|
const v_error = (() => {
|
|
4341
4341
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4342
4342
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4379,10 +4379,10 @@ function validate$n(obj, path = 'SemanticRelationshipCriteriaOutputRepresentatio
|
|
|
4379
4379
|
})();
|
|
4380
4380
|
return v_error === undefined ? null : v_error;
|
|
4381
4381
|
}
|
|
4382
|
-
const select$
|
|
4382
|
+
const select$y = function SemanticRelationshipCriteriaOutputRepresentationSelect() {
|
|
4383
4383
|
return {
|
|
4384
4384
|
kind: 'Fragment',
|
|
4385
|
-
version: VERSION$
|
|
4385
|
+
version: VERSION$k,
|
|
4386
4386
|
private: [],
|
|
4387
4387
|
selections: [
|
|
4388
4388
|
{
|
|
@@ -4413,7 +4413,7 @@ const select$u = function SemanticRelationshipCriteriaOutputRepresentationSelect
|
|
|
4413
4413
|
]
|
|
4414
4414
|
};
|
|
4415
4415
|
};
|
|
4416
|
-
function equals$
|
|
4416
|
+
function equals$k(existing, incoming) {
|
|
4417
4417
|
const existing_joinOperator = existing.joinOperator;
|
|
4418
4418
|
const incoming_joinOperator = incoming.joinOperator;
|
|
4419
4419
|
// if at least one of these optionals is defined
|
|
@@ -4482,8 +4482,8 @@ function equals$h(existing, incoming) {
|
|
|
4482
4482
|
return true;
|
|
4483
4483
|
}
|
|
4484
4484
|
|
|
4485
|
-
const VERSION$
|
|
4486
|
-
function validate$
|
|
4485
|
+
const VERSION$j = "b9778dace5726fcb57804d3afd529246";
|
|
4486
|
+
function validate$p(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
4487
4487
|
const v_error = (() => {
|
|
4488
4488
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4489
4489
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4533,7 +4533,7 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4533
4533
|
for (let i = 0; i < obj_criteria.length; i++) {
|
|
4534
4534
|
const obj_criteria_item = obj_criteria[i];
|
|
4535
4535
|
const path_criteria_item = path_criteria + '[' + i + ']';
|
|
4536
|
-
const referencepath_criteria_itemValidationError = validate$
|
|
4536
|
+
const referencepath_criteria_itemValidationError = validate$q(obj_criteria_item, path_criteria_item);
|
|
4537
4537
|
if (referencepath_criteria_itemValidationError !== null) {
|
|
4538
4538
|
let message = 'Object doesn\'t match SemanticRelationshipCriteriaOutputRepresentation (at "' + path_criteria_item + '")\n';
|
|
4539
4539
|
message += referencepath_criteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4612,24 +4612,24 @@ function validate$m(obj, path = 'SemanticRelationshipOutputRepresentation') {
|
|
|
4612
4612
|
})();
|
|
4613
4613
|
return v_error === undefined ? null : v_error;
|
|
4614
4614
|
}
|
|
4615
|
-
const RepresentationType$
|
|
4616
|
-
function keyBuilder$
|
|
4617
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4615
|
+
const RepresentationType$d = 'SemanticRelationshipOutputRepresentation';
|
|
4616
|
+
function keyBuilder$t(luvio, config) {
|
|
4617
|
+
return keyPrefix + '::' + RepresentationType$d + ':' + config.name;
|
|
4618
4618
|
}
|
|
4619
4619
|
function keyBuilderFromType$7(luvio, object) {
|
|
4620
4620
|
const keyParams = {
|
|
4621
4621
|
name: object.id
|
|
4622
4622
|
};
|
|
4623
|
-
return keyBuilder$
|
|
4623
|
+
return keyBuilder$t(luvio, keyParams);
|
|
4624
4624
|
}
|
|
4625
|
-
function normalize$
|
|
4625
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
4626
4626
|
return input;
|
|
4627
4627
|
}
|
|
4628
|
-
const select$
|
|
4629
|
-
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$
|
|
4628
|
+
const select$x = function SemanticRelationshipOutputRepresentationSelect() {
|
|
4629
|
+
const { selections: SemanticRelationshipCriteriaOutputRepresentation__selections, opaque: SemanticRelationshipCriteriaOutputRepresentation__opaque, } = select$y();
|
|
4630
4630
|
return {
|
|
4631
4631
|
kind: 'Fragment',
|
|
4632
|
-
version: VERSION$
|
|
4632
|
+
version: VERSION$j,
|
|
4633
4633
|
private: [],
|
|
4634
4634
|
selections: [
|
|
4635
4635
|
{
|
|
@@ -4718,7 +4718,7 @@ const select$t = function SemanticRelationshipOutputRepresentationSelect() {
|
|
|
4718
4718
|
]
|
|
4719
4719
|
};
|
|
4720
4720
|
};
|
|
4721
|
-
function equals$
|
|
4721
|
+
function equals$j(existing, incoming) {
|
|
4722
4722
|
const existing_isEnabled = existing.isEnabled;
|
|
4723
4723
|
const incoming_isEnabled = incoming.isEnabled;
|
|
4724
4724
|
// if at least one of these optionals is defined
|
|
@@ -4905,7 +4905,7 @@ function equals$g(existing, incoming) {
|
|
|
4905
4905
|
return false;
|
|
4906
4906
|
}
|
|
4907
4907
|
const equals_criteria_items = equalsArray(existing_criteria, incoming_criteria, (existing_criteria_item, incoming_criteria_item) => {
|
|
4908
|
-
if (!(equals$
|
|
4908
|
+
if (!(equals$k(existing_criteria_item, incoming_criteria_item))) {
|
|
4909
4909
|
return false;
|
|
4910
4910
|
}
|
|
4911
4911
|
});
|
|
@@ -4915,30 +4915,30 @@ function equals$g(existing, incoming) {
|
|
|
4915
4915
|
}
|
|
4916
4916
|
return true;
|
|
4917
4917
|
}
|
|
4918
|
-
const ingest$
|
|
4918
|
+
const ingest$d = function SemanticRelationshipOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4919
4919
|
if (process.env.NODE_ENV !== 'production') {
|
|
4920
|
-
const validateError = validate$
|
|
4920
|
+
const validateError = validate$p(input);
|
|
4921
4921
|
if (validateError !== null) {
|
|
4922
4922
|
throw validateError;
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
4925
|
const key = keyBuilderFromType$7(luvio, input);
|
|
4926
4926
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
4927
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4927
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SemanticAuthoring", VERSION$j, RepresentationType$d, equals$j);
|
|
4928
4928
|
return createLink(key);
|
|
4929
4929
|
};
|
|
4930
|
-
function getTypeCacheKeys$
|
|
4930
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
4931
4931
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4932
4932
|
const rootKey = keyBuilderFromType$7(luvio, input);
|
|
4933
4933
|
rootKeySet.set(rootKey, {
|
|
4934
4934
|
namespace: keyPrefix,
|
|
4935
|
-
representationName: RepresentationType$
|
|
4935
|
+
representationName: RepresentationType$d,
|
|
4936
4936
|
mergeable: false
|
|
4937
4937
|
});
|
|
4938
4938
|
}
|
|
4939
4939
|
|
|
4940
|
-
const VERSION$
|
|
4941
|
-
function validate$
|
|
4940
|
+
const VERSION$i = "eaf9b57a92e764fb2b5c27b6e031cfe1";
|
|
4941
|
+
function validate$o(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
4942
4942
|
const v_error = (() => {
|
|
4943
4943
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4944
4944
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4988,7 +4988,7 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
4988
4988
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
4989
4989
|
const obj_fields_item = obj_fields[i];
|
|
4990
4990
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
4991
|
-
const referencepath_fields_itemValidationError = validate$
|
|
4991
|
+
const referencepath_fields_itemValidationError = validate$t(obj_fields_item, path_fields_item);
|
|
4992
4992
|
if (referencepath_fields_itemValidationError !== null) {
|
|
4993
4993
|
let message = 'Object doesn\'t match SemanticTableFieldReferenceOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
4994
4994
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5032,7 +5032,7 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5032
5032
|
if (obj.semanticDimension !== undefined) {
|
|
5033
5033
|
const obj_semanticDimension = obj.semanticDimension;
|
|
5034
5034
|
const path_semanticDimension = path + '.semanticDimension';
|
|
5035
|
-
const referencepath_semanticDimensionValidationError = validate$
|
|
5035
|
+
const referencepath_semanticDimensionValidationError = validate$A(obj_semanticDimension, path_semanticDimension);
|
|
5036
5036
|
if (referencepath_semanticDimensionValidationError !== null) {
|
|
5037
5037
|
let message = 'Object doesn\'t match SemanticDimensionOutputRepresentation (at "' + path_semanticDimension + '")\n';
|
|
5038
5038
|
message += referencepath_semanticDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5042,7 +5042,7 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5042
5042
|
if (obj.semanticMeasurement !== undefined) {
|
|
5043
5043
|
const obj_semanticMeasurement = obj.semanticMeasurement;
|
|
5044
5044
|
const path_semanticMeasurement = path + '.semanticMeasurement';
|
|
5045
|
-
const referencepath_semanticMeasurementValidationError = validate$
|
|
5045
|
+
const referencepath_semanticMeasurementValidationError = validate$z(obj_semanticMeasurement, path_semanticMeasurement);
|
|
5046
5046
|
if (referencepath_semanticMeasurementValidationError !== null) {
|
|
5047
5047
|
let message = 'Object doesn\'t match SemanticMeasurementOutputRepresentation (at "' + path_semanticMeasurement + '")\n';
|
|
5048
5048
|
message += referencepath_semanticMeasurementValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5052,57 +5052,57 @@ function validate$l(obj, path = 'SemanticMappedFieldOutputRepresentation') {
|
|
|
5052
5052
|
})();
|
|
5053
5053
|
return v_error === undefined ? null : v_error;
|
|
5054
5054
|
}
|
|
5055
|
-
const RepresentationType$
|
|
5056
|
-
function keyBuilder$
|
|
5057
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5055
|
+
const RepresentationType$c = 'SemanticMappedFieldOutputRepresentation';
|
|
5056
|
+
function keyBuilder$s(luvio, config) {
|
|
5057
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.name;
|
|
5058
5058
|
}
|
|
5059
5059
|
function keyBuilderFromType$6(luvio, object) {
|
|
5060
5060
|
const keyParams = {
|
|
5061
5061
|
name: object.id
|
|
5062
5062
|
};
|
|
5063
|
-
return keyBuilder$
|
|
5063
|
+
return keyBuilder$s(luvio, keyParams);
|
|
5064
5064
|
}
|
|
5065
|
-
function normalize$
|
|
5065
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
5066
5066
|
return input;
|
|
5067
5067
|
}
|
|
5068
|
-
const select$
|
|
5068
|
+
const select$w = function SemanticMappedFieldOutputRepresentationSelect() {
|
|
5069
5069
|
return {
|
|
5070
5070
|
kind: 'Fragment',
|
|
5071
|
-
version: VERSION$
|
|
5071
|
+
version: VERSION$i,
|
|
5072
5072
|
private: [],
|
|
5073
5073
|
opaque: true
|
|
5074
5074
|
};
|
|
5075
5075
|
};
|
|
5076
|
-
function equals$
|
|
5076
|
+
function equals$i(existing, incoming) {
|
|
5077
5077
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
5078
5078
|
return false;
|
|
5079
5079
|
}
|
|
5080
5080
|
return true;
|
|
5081
5081
|
}
|
|
5082
|
-
const ingest$
|
|
5082
|
+
const ingest$c = function SemanticMappedFieldOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5083
5083
|
if (process.env.NODE_ENV !== 'production') {
|
|
5084
|
-
const validateError = validate$
|
|
5084
|
+
const validateError = validate$o(input);
|
|
5085
5085
|
if (validateError !== null) {
|
|
5086
5086
|
throw validateError;
|
|
5087
5087
|
}
|
|
5088
5088
|
}
|
|
5089
5089
|
const key = keyBuilderFromType$6(luvio, input);
|
|
5090
5090
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5091
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5091
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SemanticAuthoring", VERSION$i, RepresentationType$c, equals$i);
|
|
5092
5092
|
return createLink(key);
|
|
5093
5093
|
};
|
|
5094
|
-
function getTypeCacheKeys$
|
|
5094
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
5095
5095
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5096
5096
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
5097
5097
|
rootKeySet.set(rootKey, {
|
|
5098
5098
|
namespace: keyPrefix,
|
|
5099
|
-
representationName: RepresentationType$
|
|
5099
|
+
representationName: RepresentationType$c,
|
|
5100
5100
|
mergeable: false
|
|
5101
5101
|
});
|
|
5102
5102
|
}
|
|
5103
5103
|
|
|
5104
|
-
const VERSION$
|
|
5105
|
-
function validate$
|
|
5104
|
+
const VERSION$h = "69fe23112140e9fae50135dcb15c24c2";
|
|
5105
|
+
function validate$n(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
5106
5106
|
const v_error = (() => {
|
|
5107
5107
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5108
5108
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5228,24 +5228,24 @@ function validate$k(obj, path = 'SemanticUnionOutputRepresentation') {
|
|
|
5228
5228
|
})();
|
|
5229
5229
|
return v_error === undefined ? null : v_error;
|
|
5230
5230
|
}
|
|
5231
|
-
const RepresentationType$
|
|
5232
|
-
function keyBuilder$
|
|
5233
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5231
|
+
const RepresentationType$b = 'SemanticUnionOutputRepresentation';
|
|
5232
|
+
function keyBuilder$r(luvio, config) {
|
|
5233
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.name;
|
|
5234
5234
|
}
|
|
5235
5235
|
function keyBuilderFromType$5(luvio, object) {
|
|
5236
5236
|
const keyParams = {
|
|
5237
5237
|
name: object.id
|
|
5238
5238
|
};
|
|
5239
|
-
return keyBuilder$
|
|
5239
|
+
return keyBuilder$r(luvio, keyParams);
|
|
5240
5240
|
}
|
|
5241
|
-
function normalize$
|
|
5241
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
5242
5242
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5243
5243
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5244
5244
|
if (input_semanticDataObjects !== undefined) {
|
|
5245
5245
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5246
5246
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5247
5247
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5248
|
-
input_semanticDataObjects[i] = ingest$
|
|
5248
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5249
5249
|
fullPath: input_semanticDataObjects_item_id,
|
|
5250
5250
|
propertyName: i,
|
|
5251
5251
|
parent: {
|
|
@@ -5263,7 +5263,7 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5263
5263
|
for (let i = 0; i < input_semanticMappedFields.length; i++) {
|
|
5264
5264
|
const input_semanticMappedFields_item = input_semanticMappedFields[i];
|
|
5265
5265
|
let input_semanticMappedFields_item_id = input_semanticMappedFields_id + '__' + i;
|
|
5266
|
-
input_semanticMappedFields[i] = ingest$
|
|
5266
|
+
input_semanticMappedFields[i] = ingest$c(input_semanticMappedFields_item, {
|
|
5267
5267
|
fullPath: input_semanticMappedFields_item_id,
|
|
5268
5268
|
propertyName: i,
|
|
5269
5269
|
parent: {
|
|
@@ -5277,10 +5277,10 @@ function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
return input;
|
|
5279
5279
|
}
|
|
5280
|
-
const select$
|
|
5280
|
+
const select$v = function SemanticUnionOutputRepresentationSelect() {
|
|
5281
5281
|
return {
|
|
5282
5282
|
kind: 'Fragment',
|
|
5283
|
-
version: VERSION$
|
|
5283
|
+
version: VERSION$h,
|
|
5284
5284
|
private: [],
|
|
5285
5285
|
selections: [
|
|
5286
5286
|
{
|
|
@@ -5339,19 +5339,19 @@ const select$r = function SemanticUnionOutputRepresentationSelect() {
|
|
|
5339
5339
|
kind: 'Link',
|
|
5340
5340
|
plural: true,
|
|
5341
5341
|
required: false,
|
|
5342
|
-
fragment: select$
|
|
5342
|
+
fragment: select$G()
|
|
5343
5343
|
},
|
|
5344
5344
|
{
|
|
5345
5345
|
name: 'semanticMappedFields',
|
|
5346
5346
|
kind: 'Link',
|
|
5347
5347
|
plural: true,
|
|
5348
5348
|
required: false,
|
|
5349
|
-
fragment: select$
|
|
5349
|
+
fragment: select$w()
|
|
5350
5350
|
}
|
|
5351
5351
|
]
|
|
5352
5352
|
};
|
|
5353
5353
|
};
|
|
5354
|
-
function equals$
|
|
5354
|
+
function equals$h(existing, incoming) {
|
|
5355
5355
|
const existing_apiName = existing.apiName;
|
|
5356
5356
|
const incoming_apiName = incoming.apiName;
|
|
5357
5357
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -5501,42 +5501,42 @@ function equals$e(existing, incoming) {
|
|
|
5501
5501
|
}
|
|
5502
5502
|
return true;
|
|
5503
5503
|
}
|
|
5504
|
-
const ingest$
|
|
5504
|
+
const ingest$b = function SemanticUnionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5505
5505
|
if (process.env.NODE_ENV !== 'production') {
|
|
5506
|
-
const validateError = validate$
|
|
5506
|
+
const validateError = validate$n(input);
|
|
5507
5507
|
if (validateError !== null) {
|
|
5508
5508
|
throw validateError;
|
|
5509
5509
|
}
|
|
5510
5510
|
}
|
|
5511
5511
|
const key = keyBuilderFromType$5(luvio, input);
|
|
5512
5512
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
5513
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5513
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SemanticAuthoring", VERSION$h, RepresentationType$b, equals$h);
|
|
5514
5514
|
return createLink(key);
|
|
5515
5515
|
};
|
|
5516
|
-
function getTypeCacheKeys$
|
|
5516
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
5517
5517
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5518
5518
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
5519
5519
|
rootKeySet.set(rootKey, {
|
|
5520
5520
|
namespace: keyPrefix,
|
|
5521
|
-
representationName: RepresentationType$
|
|
5521
|
+
representationName: RepresentationType$b,
|
|
5522
5522
|
mergeable: false
|
|
5523
5523
|
});
|
|
5524
5524
|
if (input.semanticDataObjects !== undefined) {
|
|
5525
5525
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
5526
5526
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
5527
|
-
getTypeCacheKeys$
|
|
5527
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
5528
5528
|
}
|
|
5529
5529
|
}
|
|
5530
5530
|
if (input.semanticMappedFields !== undefined) {
|
|
5531
5531
|
const input_semanticMappedFields_length = input.semanticMappedFields.length;
|
|
5532
5532
|
for (let i = 0; i < input_semanticMappedFields_length; i++) {
|
|
5533
|
-
getTypeCacheKeys$
|
|
5533
|
+
getTypeCacheKeys$c(rootKeySet, luvio, input.semanticMappedFields[i]);
|
|
5534
5534
|
}
|
|
5535
5535
|
}
|
|
5536
5536
|
}
|
|
5537
5537
|
|
|
5538
|
-
const VERSION$
|
|
5539
|
-
function validate$
|
|
5538
|
+
const VERSION$g = "f186bf0514421e7f42e284136d60ea6c";
|
|
5539
|
+
function validate$m(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
5540
5540
|
const v_error = (() => {
|
|
5541
5541
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5542
5542
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5600,7 +5600,7 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5600
5600
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
5601
5601
|
const obj_filters_item = obj_filters[i];
|
|
5602
5602
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
5603
|
-
const referencepath_filters_itemValidationError = validate$
|
|
5603
|
+
const referencepath_filters_itemValidationError = validate$D(obj_filters_item, path_filters_item);
|
|
5604
5604
|
if (referencepath_filters_itemValidationError !== null) {
|
|
5605
5605
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
5606
5606
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5686,24 +5686,24 @@ function validate$j(obj, path = 'SemanticLogicalViewOutputRepresentation') {
|
|
|
5686
5686
|
})();
|
|
5687
5687
|
return v_error === undefined ? null : v_error;
|
|
5688
5688
|
}
|
|
5689
|
-
const RepresentationType$
|
|
5690
|
-
function keyBuilder$
|
|
5691
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5689
|
+
const RepresentationType$a = 'SemanticLogicalViewOutputRepresentation';
|
|
5690
|
+
function keyBuilder$q(luvio, config) {
|
|
5691
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + config.name;
|
|
5692
5692
|
}
|
|
5693
5693
|
function keyBuilderFromType$4(luvio, object) {
|
|
5694
5694
|
const keyParams = {
|
|
5695
5695
|
name: object.id
|
|
5696
5696
|
};
|
|
5697
|
-
return keyBuilder$
|
|
5697
|
+
return keyBuilder$q(luvio, keyParams);
|
|
5698
5698
|
}
|
|
5699
|
-
function normalize$
|
|
5699
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5700
5700
|
const input_semanticDataObjects = input.semanticDataObjects;
|
|
5701
5701
|
const input_semanticDataObjects_id = path.fullPath + '__semanticDataObjects';
|
|
5702
5702
|
if (input_semanticDataObjects !== undefined) {
|
|
5703
5703
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
5704
5704
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
5705
5705
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
5706
|
-
input_semanticDataObjects[i] = ingest$
|
|
5706
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
5707
5707
|
fullPath: input_semanticDataObjects_item_id,
|
|
5708
5708
|
propertyName: i,
|
|
5709
5709
|
parent: {
|
|
@@ -5721,7 +5721,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5721
5721
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
5722
5722
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
5723
5723
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
5724
|
-
input_semanticRelationships[i] = ingest$
|
|
5724
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
5725
5725
|
fullPath: input_semanticRelationships_item_id,
|
|
5726
5726
|
propertyName: i,
|
|
5727
5727
|
parent: {
|
|
@@ -5739,7 +5739,7 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5739
5739
|
for (let i = 0; i < input_semanticUnions.length; i++) {
|
|
5740
5740
|
const input_semanticUnions_item = input_semanticUnions[i];
|
|
5741
5741
|
let input_semanticUnions_item_id = input_semanticUnions_id + '__' + i;
|
|
5742
|
-
input_semanticUnions[i] = ingest$
|
|
5742
|
+
input_semanticUnions[i] = ingest$b(input_semanticUnions_item, {
|
|
5743
5743
|
fullPath: input_semanticUnions_item_id,
|
|
5744
5744
|
propertyName: i,
|
|
5745
5745
|
parent: {
|
|
@@ -5753,11 +5753,11 @@ function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
return input;
|
|
5755
5755
|
}
|
|
5756
|
-
const select$
|
|
5757
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
5756
|
+
const select$u = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
5757
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
5758
5758
|
return {
|
|
5759
5759
|
kind: 'Fragment',
|
|
5760
|
-
version: VERSION$
|
|
5760
|
+
version: VERSION$g,
|
|
5761
5761
|
private: [],
|
|
5762
5762
|
selections: [
|
|
5763
5763
|
{
|
|
@@ -5828,21 +5828,21 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5828
5828
|
kind: 'Link',
|
|
5829
5829
|
plural: true,
|
|
5830
5830
|
required: false,
|
|
5831
|
-
fragment: select$
|
|
5831
|
+
fragment: select$G()
|
|
5832
5832
|
},
|
|
5833
5833
|
{
|
|
5834
5834
|
name: 'semanticRelationships',
|
|
5835
5835
|
kind: 'Link',
|
|
5836
5836
|
plural: true,
|
|
5837
5837
|
required: false,
|
|
5838
|
-
fragment: select$
|
|
5838
|
+
fragment: select$x()
|
|
5839
5839
|
},
|
|
5840
5840
|
{
|
|
5841
5841
|
name: 'semanticUnions',
|
|
5842
5842
|
kind: 'Link',
|
|
5843
5843
|
plural: true,
|
|
5844
5844
|
required: false,
|
|
5845
|
-
fragment: select$
|
|
5845
|
+
fragment: select$v()
|
|
5846
5846
|
},
|
|
5847
5847
|
{
|
|
5848
5848
|
name: 'semanticViewTypeEnum',
|
|
@@ -5852,7 +5852,7 @@ const select$q = function SemanticLogicalViewOutputRepresentationSelect() {
|
|
|
5852
5852
|
]
|
|
5853
5853
|
};
|
|
5854
5854
|
};
|
|
5855
|
-
function equals$
|
|
5855
|
+
function equals$g(existing, incoming) {
|
|
5856
5856
|
const existing_apiName = existing.apiName;
|
|
5857
5857
|
const incoming_apiName = incoming.apiName;
|
|
5858
5858
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -6000,7 +6000,7 @@ function equals$d(existing, incoming) {
|
|
|
6000
6000
|
return false;
|
|
6001
6001
|
}
|
|
6002
6002
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
6003
|
-
if (!(equals$
|
|
6003
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
6004
6004
|
return false;
|
|
6005
6005
|
}
|
|
6006
6006
|
});
|
|
@@ -6064,48 +6064,48 @@ function equals$d(existing, incoming) {
|
|
|
6064
6064
|
}
|
|
6065
6065
|
return true;
|
|
6066
6066
|
}
|
|
6067
|
-
const ingest$
|
|
6067
|
+
const ingest$a = function SemanticLogicalViewOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6068
6068
|
if (process.env.NODE_ENV !== 'production') {
|
|
6069
|
-
const validateError = validate$
|
|
6069
|
+
const validateError = validate$m(input);
|
|
6070
6070
|
if (validateError !== null) {
|
|
6071
6071
|
throw validateError;
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
6074
6074
|
const key = keyBuilderFromType$4(luvio, input);
|
|
6075
6075
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
6076
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6076
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SemanticAuthoring", VERSION$g, RepresentationType$a, equals$g);
|
|
6077
6077
|
return createLink(key);
|
|
6078
6078
|
};
|
|
6079
|
-
function getTypeCacheKeys$
|
|
6079
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
6080
6080
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6081
6081
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
6082
6082
|
rootKeySet.set(rootKey, {
|
|
6083
6083
|
namespace: keyPrefix,
|
|
6084
|
-
representationName: RepresentationType$
|
|
6084
|
+
representationName: RepresentationType$a,
|
|
6085
6085
|
mergeable: false
|
|
6086
6086
|
});
|
|
6087
6087
|
if (input.semanticDataObjects !== undefined) {
|
|
6088
6088
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
6089
6089
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
6090
|
-
getTypeCacheKeys$
|
|
6090
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
6091
6091
|
}
|
|
6092
6092
|
}
|
|
6093
6093
|
if (input.semanticRelationships !== undefined) {
|
|
6094
6094
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
6095
6095
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
6096
|
-
getTypeCacheKeys$
|
|
6096
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
6097
6097
|
}
|
|
6098
6098
|
}
|
|
6099
6099
|
if (input.semanticUnions !== undefined) {
|
|
6100
6100
|
const input_semanticUnions_length = input.semanticUnions.length;
|
|
6101
6101
|
for (let i = 0; i < input_semanticUnions_length; i++) {
|
|
6102
|
-
getTypeCacheKeys$
|
|
6102
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.semanticUnions[i]);
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
6105
6105
|
}
|
|
6106
6106
|
|
|
6107
|
-
const VERSION$
|
|
6108
|
-
function validate$
|
|
6107
|
+
const VERSION$f = "a50848c632bb205d5e910bb726d9219e";
|
|
6108
|
+
function validate$l(obj, path = 'SemanticIdentifyingDimensionOutputRepresentation') {
|
|
6109
6109
|
const v_error = (() => {
|
|
6110
6110
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6111
6111
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6113,7 +6113,7 @@ function validate$i(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6113
6113
|
if (obj.identifierDimensionReference !== undefined) {
|
|
6114
6114
|
const obj_identifierDimensionReference = obj.identifierDimensionReference;
|
|
6115
6115
|
const path_identifierDimensionReference = path + '.identifierDimensionReference';
|
|
6116
|
-
const referencepath_identifierDimensionReferenceValidationError = validate$
|
|
6116
|
+
const referencepath_identifierDimensionReferenceValidationError = validate$s(obj_identifierDimensionReference, path_identifierDimensionReference);
|
|
6117
6117
|
if (referencepath_identifierDimensionReferenceValidationError !== null) {
|
|
6118
6118
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_identifierDimensionReference + '")\n';
|
|
6119
6119
|
message += referencepath_identifierDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6123,7 +6123,7 @@ function validate$i(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6123
6123
|
if (obj.namingDimensionReference !== undefined) {
|
|
6124
6124
|
const obj_namingDimensionReference = obj.namingDimensionReference;
|
|
6125
6125
|
const path_namingDimensionReference = path + '.namingDimensionReference';
|
|
6126
|
-
const referencepath_namingDimensionReferenceValidationError = validate$
|
|
6126
|
+
const referencepath_namingDimensionReferenceValidationError = validate$s(obj_namingDimensionReference, path_namingDimensionReference);
|
|
6127
6127
|
if (referencepath_namingDimensionReferenceValidationError !== null) {
|
|
6128
6128
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_namingDimensionReference + '")\n';
|
|
6129
6129
|
message += referencepath_namingDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6133,11 +6133,11 @@ function validate$i(obj, path = 'SemanticIdentifyingDimensionOutputRepresentatio
|
|
|
6133
6133
|
})();
|
|
6134
6134
|
return v_error === undefined ? null : v_error;
|
|
6135
6135
|
}
|
|
6136
|
-
const select$
|
|
6137
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6136
|
+
const select$t = function SemanticIdentifyingDimensionOutputRepresentationSelect() {
|
|
6137
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6138
6138
|
return {
|
|
6139
6139
|
kind: 'Fragment',
|
|
6140
|
-
version: VERSION$
|
|
6140
|
+
version: VERSION$f,
|
|
6141
6141
|
private: [],
|
|
6142
6142
|
selections: [
|
|
6143
6143
|
{
|
|
@@ -6155,7 +6155,7 @@ const select$p = function SemanticIdentifyingDimensionOutputRepresentationSelect
|
|
|
6155
6155
|
]
|
|
6156
6156
|
};
|
|
6157
6157
|
};
|
|
6158
|
-
function equals$
|
|
6158
|
+
function equals$f(existing, incoming) {
|
|
6159
6159
|
const existing_identifierDimensionReference = existing.identifierDimensionReference;
|
|
6160
6160
|
const incoming_identifierDimensionReference = incoming.identifierDimensionReference;
|
|
6161
6161
|
// if at least one of these optionals is defined
|
|
@@ -6165,7 +6165,7 @@ function equals$c(existing, incoming) {
|
|
|
6165
6165
|
if (existing_identifierDimensionReference === undefined || incoming_identifierDimensionReference === undefined) {
|
|
6166
6166
|
return false;
|
|
6167
6167
|
}
|
|
6168
|
-
if (!(equals$
|
|
6168
|
+
if (!(equals$m(existing_identifierDimensionReference, incoming_identifierDimensionReference))) {
|
|
6169
6169
|
return false;
|
|
6170
6170
|
}
|
|
6171
6171
|
}
|
|
@@ -6178,15 +6178,15 @@ function equals$c(existing, incoming) {
|
|
|
6178
6178
|
if (existing_namingDimensionReference === undefined || incoming_namingDimensionReference === undefined) {
|
|
6179
6179
|
return false;
|
|
6180
6180
|
}
|
|
6181
|
-
if (!(equals$
|
|
6181
|
+
if (!(equals$m(existing_namingDimensionReference, incoming_namingDimensionReference))) {
|
|
6182
6182
|
return false;
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
6185
|
return true;
|
|
6186
6186
|
}
|
|
6187
6187
|
|
|
6188
|
-
const VERSION$
|
|
6189
|
-
function validate$
|
|
6188
|
+
const VERSION$e = "1b8cf2283d5d5c480459506274f0604c";
|
|
6189
|
+
function validate$k(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
6190
6190
|
const v_error = (() => {
|
|
6191
6191
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6192
6192
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6208,10 +6208,10 @@ function validate$h(obj, path = 'SemanticInsightTypeOutputRepresentation') {
|
|
|
6208
6208
|
})();
|
|
6209
6209
|
return v_error === undefined ? null : v_error;
|
|
6210
6210
|
}
|
|
6211
|
-
const select$
|
|
6211
|
+
const select$s = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
6212
6212
|
return {
|
|
6213
6213
|
kind: 'Fragment',
|
|
6214
|
-
version: VERSION$
|
|
6214
|
+
version: VERSION$e,
|
|
6215
6215
|
private: [],
|
|
6216
6216
|
selections: [
|
|
6217
6217
|
{
|
|
@@ -6227,7 +6227,7 @@ const select$o = function SemanticInsightTypeOutputRepresentationSelect() {
|
|
|
6227
6227
|
]
|
|
6228
6228
|
};
|
|
6229
6229
|
};
|
|
6230
|
-
function equals$
|
|
6230
|
+
function equals$e(existing, incoming) {
|
|
6231
6231
|
const existing_enabled = existing.enabled;
|
|
6232
6232
|
const incoming_enabled = incoming.enabled;
|
|
6233
6233
|
// if at least one of these optionals is defined
|
|
@@ -6257,8 +6257,8 @@ function equals$b(existing, incoming) {
|
|
|
6257
6257
|
return true;
|
|
6258
6258
|
}
|
|
6259
6259
|
|
|
6260
|
-
const VERSION$
|
|
6261
|
-
function validate$
|
|
6260
|
+
const VERSION$d = "a3f5972287be7bcf9ca205af56046a58";
|
|
6261
|
+
function validate$j(obj, path = 'SemanticInsightsSettingsOutputRepresentation') {
|
|
6262
6262
|
const v_error = (() => {
|
|
6263
6263
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6264
6264
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6266,7 +6266,7 @@ function validate$g(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6266
6266
|
if (obj.identifyingDimension !== undefined) {
|
|
6267
6267
|
const obj_identifyingDimension = obj.identifyingDimension;
|
|
6268
6268
|
const path_identifyingDimension = path + '.identifyingDimension';
|
|
6269
|
-
const referencepath_identifyingDimensionValidationError = validate$
|
|
6269
|
+
const referencepath_identifyingDimensionValidationError = validate$l(obj_identifyingDimension, path_identifyingDimension);
|
|
6270
6270
|
if (referencepath_identifyingDimensionValidationError !== null) {
|
|
6271
6271
|
let message = 'Object doesn\'t match SemanticIdentifyingDimensionOutputRepresentation (at "' + path_identifyingDimension + '")\n';
|
|
6272
6272
|
message += referencepath_identifyingDimensionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6282,7 +6282,7 @@ function validate$g(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6282
6282
|
for (let i = 0; i < obj_insightTypes.length; i++) {
|
|
6283
6283
|
const obj_insightTypes_item = obj_insightTypes[i];
|
|
6284
6284
|
const path_insightTypes_item = path_insightTypes + '[' + i + ']';
|
|
6285
|
-
const referencepath_insightTypes_itemValidationError = validate$
|
|
6285
|
+
const referencepath_insightTypes_itemValidationError = validate$k(obj_insightTypes_item, path_insightTypes_item);
|
|
6286
6286
|
if (referencepath_insightTypes_itemValidationError !== null) {
|
|
6287
6287
|
let message = 'Object doesn\'t match SemanticInsightTypeOutputRepresentation (at "' + path_insightTypes_item + '")\n';
|
|
6288
6288
|
message += referencepath_insightTypes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6299,7 +6299,7 @@ function validate$g(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6299
6299
|
for (let i = 0; i < obj_insightsDimensionsReferences.length; i++) {
|
|
6300
6300
|
const obj_insightsDimensionsReferences_item = obj_insightsDimensionsReferences[i];
|
|
6301
6301
|
const path_insightsDimensionsReferences_item = path_insightsDimensionsReferences + '[' + i + ']';
|
|
6302
|
-
const referencepath_insightsDimensionsReferences_itemValidationError = validate$
|
|
6302
|
+
const referencepath_insightsDimensionsReferences_itemValidationError = validate$s(obj_insightsDimensionsReferences_item, path_insightsDimensionsReferences_item);
|
|
6303
6303
|
if (referencepath_insightsDimensionsReferences_itemValidationError !== null) {
|
|
6304
6304
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_insightsDimensionsReferences_item + '")\n';
|
|
6305
6305
|
message += referencepath_insightsDimensionsReferences_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6331,13 +6331,13 @@ function validate$g(obj, path = 'SemanticInsightsSettingsOutputRepresentation')
|
|
|
6331
6331
|
})();
|
|
6332
6332
|
return v_error === undefined ? null : v_error;
|
|
6333
6333
|
}
|
|
6334
|
-
const select$
|
|
6335
|
-
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$
|
|
6336
|
-
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$
|
|
6337
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6334
|
+
const select$r = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
6335
|
+
const { selections: SemanticIdentifyingDimensionOutputRepresentation__selections, opaque: SemanticIdentifyingDimensionOutputRepresentation__opaque, } = select$t();
|
|
6336
|
+
const { selections: SemanticInsightTypeOutputRepresentation__selections, opaque: SemanticInsightTypeOutputRepresentation__opaque, } = select$s();
|
|
6337
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6338
6338
|
return {
|
|
6339
6339
|
kind: 'Fragment',
|
|
6340
|
-
version: VERSION$
|
|
6340
|
+
version: VERSION$d,
|
|
6341
6341
|
private: [],
|
|
6342
6342
|
selections: [
|
|
6343
6343
|
{
|
|
@@ -6378,7 +6378,7 @@ const select$n = function SemanticInsightsSettingsOutputRepresentationSelect() {
|
|
|
6378
6378
|
]
|
|
6379
6379
|
};
|
|
6380
6380
|
};
|
|
6381
|
-
function equals$
|
|
6381
|
+
function equals$d(existing, incoming) {
|
|
6382
6382
|
const existing_pluralNoun = existing.pluralNoun;
|
|
6383
6383
|
const incoming_pluralNoun = incoming.pluralNoun;
|
|
6384
6384
|
// if at least one of these optionals is defined
|
|
@@ -6427,7 +6427,7 @@ function equals$a(existing, incoming) {
|
|
|
6427
6427
|
if (existing_identifyingDimension === undefined || incoming_identifyingDimension === undefined) {
|
|
6428
6428
|
return false;
|
|
6429
6429
|
}
|
|
6430
|
-
if (!(equals$
|
|
6430
|
+
if (!(equals$f(existing_identifyingDimension, incoming_identifyingDimension))) {
|
|
6431
6431
|
return false;
|
|
6432
6432
|
}
|
|
6433
6433
|
}
|
|
@@ -6441,7 +6441,7 @@ function equals$a(existing, incoming) {
|
|
|
6441
6441
|
return false;
|
|
6442
6442
|
}
|
|
6443
6443
|
const equals_insightTypes_items = equalsArray(existing_insightTypes, incoming_insightTypes, (existing_insightTypes_item, incoming_insightTypes_item) => {
|
|
6444
|
-
if (!(equals$
|
|
6444
|
+
if (!(equals$e(existing_insightTypes_item, incoming_insightTypes_item))) {
|
|
6445
6445
|
return false;
|
|
6446
6446
|
}
|
|
6447
6447
|
});
|
|
@@ -6459,7 +6459,7 @@ function equals$a(existing, incoming) {
|
|
|
6459
6459
|
return false;
|
|
6460
6460
|
}
|
|
6461
6461
|
const equals_insightsDimensionsReferences_items = equalsArray(existing_insightsDimensionsReferences, incoming_insightsDimensionsReferences, (existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item) => {
|
|
6462
|
-
if (!(equals$
|
|
6462
|
+
if (!(equals$m(existing_insightsDimensionsReferences_item, incoming_insightsDimensionsReferences_item))) {
|
|
6463
6463
|
return false;
|
|
6464
6464
|
}
|
|
6465
6465
|
});
|
|
@@ -6470,8 +6470,8 @@ function equals$a(existing, incoming) {
|
|
|
6470
6470
|
return true;
|
|
6471
6471
|
}
|
|
6472
6472
|
|
|
6473
|
-
const VERSION$
|
|
6474
|
-
function validate$
|
|
6473
|
+
const VERSION$c = "0873ccd85b32d14c753931243d20ac8b";
|
|
6474
|
+
function validate$i(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
6475
6475
|
const v_error = (() => {
|
|
6476
6476
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6477
6477
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6485,7 +6485,7 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6485
6485
|
for (let i = 0; i < obj_additionalDimensions.length; i++) {
|
|
6486
6486
|
const obj_additionalDimensions_item = obj_additionalDimensions[i];
|
|
6487
6487
|
const path_additionalDimensions_item = path_additionalDimensions + '[' + i + ']';
|
|
6488
|
-
const referencepath_additionalDimensions_itemValidationError = validate$
|
|
6488
|
+
const referencepath_additionalDimensions_itemValidationError = validate$s(obj_additionalDimensions_item, path_additionalDimensions_item);
|
|
6489
6489
|
if (referencepath_additionalDimensions_itemValidationError !== null) {
|
|
6490
6490
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_additionalDimensions_item + '")\n';
|
|
6491
6491
|
message += referencepath_additionalDimensions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6552,7 +6552,7 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6552
6552
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
6553
6553
|
const obj_filters_item = obj_filters[i];
|
|
6554
6554
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
6555
|
-
const referencepath_filters_itemValidationError = validate$
|
|
6555
|
+
const referencepath_filters_itemValidationError = validate$D(obj_filters_item, path_filters_item);
|
|
6556
6556
|
if (referencepath_filters_itemValidationError !== null) {
|
|
6557
6557
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
6558
6558
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6568,7 +6568,7 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6568
6568
|
if (obj.insightsSettings !== undefined) {
|
|
6569
6569
|
const obj_insightsSettings = obj.insightsSettings;
|
|
6570
6570
|
const path_insightsSettings = path + '.insightsSettings';
|
|
6571
|
-
const referencepath_insightsSettingsValidationError = validate$
|
|
6571
|
+
const referencepath_insightsSettingsValidationError = validate$j(obj_insightsSettings, path_insightsSettings);
|
|
6572
6572
|
if (referencepath_insightsSettingsValidationError !== null) {
|
|
6573
6573
|
let message = 'Object doesn\'t match SemanticInsightsSettingsOutputRepresentation (at "' + path_insightsSettings + '")\n';
|
|
6574
6574
|
message += referencepath_insightsSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6606,7 +6606,7 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6606
6606
|
if (obj.measurementReference !== undefined) {
|
|
6607
6607
|
const obj_measurementReference = obj.measurementReference;
|
|
6608
6608
|
const path_measurementReference = path + '.measurementReference';
|
|
6609
|
-
const referencepath_measurementReferenceValidationError = validate$
|
|
6609
|
+
const referencepath_measurementReferenceValidationError = validate$s(obj_measurementReference, path_measurementReference);
|
|
6610
6610
|
if (referencepath_measurementReferenceValidationError !== null) {
|
|
6611
6611
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_measurementReference + '")\n';
|
|
6612
6612
|
message += referencepath_measurementReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6616,7 +6616,7 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6616
6616
|
if (obj.timeDimensionReference !== undefined) {
|
|
6617
6617
|
const obj_timeDimensionReference = obj.timeDimensionReference;
|
|
6618
6618
|
const path_timeDimensionReference = path + '.timeDimensionReference';
|
|
6619
|
-
const referencepath_timeDimensionReferenceValidationError = validate$
|
|
6619
|
+
const referencepath_timeDimensionReferenceValidationError = validate$s(obj_timeDimensionReference, path_timeDimensionReference);
|
|
6620
6620
|
if (referencepath_timeDimensionReferenceValidationError !== null) {
|
|
6621
6621
|
let message = 'Object doesn\'t match SemanticFieldReferenceOutputRepresentation (at "' + path_timeDimensionReference + '")\n';
|
|
6622
6622
|
message += referencepath_timeDimensionReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6640,26 +6640,26 @@ function validate$f(obj, path = 'SemanticMetricOutputRepresentation') {
|
|
|
6640
6640
|
})();
|
|
6641
6641
|
return v_error === undefined ? null : v_error;
|
|
6642
6642
|
}
|
|
6643
|
-
const RepresentationType$
|
|
6644
|
-
function keyBuilder$
|
|
6645
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6643
|
+
const RepresentationType$9 = 'SemanticMetricOutputRepresentation';
|
|
6644
|
+
function keyBuilder$p(luvio, config) {
|
|
6645
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.name;
|
|
6646
6646
|
}
|
|
6647
6647
|
function keyBuilderFromType$3(luvio, object) {
|
|
6648
6648
|
const keyParams = {
|
|
6649
6649
|
name: object.id
|
|
6650
6650
|
};
|
|
6651
|
-
return keyBuilder$
|
|
6651
|
+
return keyBuilder$p(luvio, keyParams);
|
|
6652
6652
|
}
|
|
6653
|
-
function normalize$
|
|
6653
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6654
6654
|
return input;
|
|
6655
6655
|
}
|
|
6656
|
-
const select$
|
|
6657
|
-
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$
|
|
6658
|
-
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$
|
|
6659
|
-
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$
|
|
6656
|
+
const select$q = function SemanticMetricOutputRepresentationSelect() {
|
|
6657
|
+
const { selections: SemanticFieldReferenceOutputRepresentation__selections, opaque: SemanticFieldReferenceOutputRepresentation__opaque, } = select$A();
|
|
6658
|
+
const { selections: SemanticFilterOutputRepresentation__selections, opaque: SemanticFilterOutputRepresentation__opaque, } = select$J();
|
|
6659
|
+
const { selections: SemanticInsightsSettingsOutputRepresentation__selections, opaque: SemanticInsightsSettingsOutputRepresentation__opaque, } = select$r();
|
|
6660
6660
|
return {
|
|
6661
6661
|
kind: 'Fragment',
|
|
6662
|
-
version: VERSION$
|
|
6662
|
+
version: VERSION$c,
|
|
6663
6663
|
private: [],
|
|
6664
6664
|
selections: [
|
|
6665
6665
|
{
|
|
@@ -6764,7 +6764,7 @@ const select$m = function SemanticMetricOutputRepresentationSelect() {
|
|
|
6764
6764
|
]
|
|
6765
6765
|
};
|
|
6766
6766
|
};
|
|
6767
|
-
function equals$
|
|
6767
|
+
function equals$c(existing, incoming) {
|
|
6768
6768
|
const existing_isCumulative = existing.isCumulative;
|
|
6769
6769
|
const incoming_isCumulative = incoming.isCumulative;
|
|
6770
6770
|
// if at least one of these optionals is defined
|
|
@@ -6912,7 +6912,7 @@ function equals$9(existing, incoming) {
|
|
|
6912
6912
|
return false;
|
|
6913
6913
|
}
|
|
6914
6914
|
const equals_additionalDimensions_items = equalsArray(existing_additionalDimensions, incoming_additionalDimensions, (existing_additionalDimensions_item, incoming_additionalDimensions_item) => {
|
|
6915
|
-
if (!(equals$
|
|
6915
|
+
if (!(equals$m(existing_additionalDimensions_item, incoming_additionalDimensions_item))) {
|
|
6916
6916
|
return false;
|
|
6917
6917
|
}
|
|
6918
6918
|
});
|
|
@@ -6930,7 +6930,7 @@ function equals$9(existing, incoming) {
|
|
|
6930
6930
|
return false;
|
|
6931
6931
|
}
|
|
6932
6932
|
const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
|
|
6933
|
-
if (!(equals$
|
|
6933
|
+
if (!(equals$v(existing_filters_item, incoming_filters_item))) {
|
|
6934
6934
|
return false;
|
|
6935
6935
|
}
|
|
6936
6936
|
});
|
|
@@ -6947,7 +6947,7 @@ function equals$9(existing, incoming) {
|
|
|
6947
6947
|
if (existing_insightsSettings === undefined || incoming_insightsSettings === undefined) {
|
|
6948
6948
|
return false;
|
|
6949
6949
|
}
|
|
6950
|
-
if (!(equals$
|
|
6950
|
+
if (!(equals$d(existing_insightsSettings, incoming_insightsSettings))) {
|
|
6951
6951
|
return false;
|
|
6952
6952
|
}
|
|
6953
6953
|
}
|
|
@@ -6960,7 +6960,7 @@ function equals$9(existing, incoming) {
|
|
|
6960
6960
|
if (existing_measurementReference === undefined || incoming_measurementReference === undefined) {
|
|
6961
6961
|
return false;
|
|
6962
6962
|
}
|
|
6963
|
-
if (!(equals$
|
|
6963
|
+
if (!(equals$m(existing_measurementReference, incoming_measurementReference))) {
|
|
6964
6964
|
return false;
|
|
6965
6965
|
}
|
|
6966
6966
|
}
|
|
@@ -6973,7 +6973,7 @@ function equals$9(existing, incoming) {
|
|
|
6973
6973
|
if (existing_timeDimensionReference === undefined || incoming_timeDimensionReference === undefined) {
|
|
6974
6974
|
return false;
|
|
6975
6975
|
}
|
|
6976
|
-
if (!(equals$
|
|
6976
|
+
if (!(equals$m(existing_timeDimensionReference, incoming_timeDimensionReference))) {
|
|
6977
6977
|
return false;
|
|
6978
6978
|
}
|
|
6979
6979
|
}
|
|
@@ -6997,30 +6997,30 @@ function equals$9(existing, incoming) {
|
|
|
6997
6997
|
}
|
|
6998
6998
|
return true;
|
|
6999
6999
|
}
|
|
7000
|
-
const ingest$
|
|
7000
|
+
const ingest$9 = function SemanticMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7001
7001
|
if (process.env.NODE_ENV !== 'production') {
|
|
7002
|
-
const validateError = validate$
|
|
7002
|
+
const validateError = validate$i(input);
|
|
7003
7003
|
if (validateError !== null) {
|
|
7004
7004
|
throw validateError;
|
|
7005
7005
|
}
|
|
7006
7006
|
}
|
|
7007
7007
|
const key = keyBuilderFromType$3(luvio, input);
|
|
7008
7008
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7009
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7009
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SemanticAuthoring", VERSION$c, RepresentationType$9, equals$c);
|
|
7010
7010
|
return createLink(key);
|
|
7011
7011
|
};
|
|
7012
|
-
function getTypeCacheKeys$
|
|
7012
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
7013
7013
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7014
7014
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
7015
7015
|
rootKeySet.set(rootKey, {
|
|
7016
7016
|
namespace: keyPrefix,
|
|
7017
|
-
representationName: RepresentationType$
|
|
7017
|
+
representationName: RepresentationType$9,
|
|
7018
7018
|
mergeable: false
|
|
7019
7019
|
});
|
|
7020
7020
|
}
|
|
7021
7021
|
|
|
7022
|
-
const VERSION$
|
|
7023
|
-
function validate$
|
|
7022
|
+
const VERSION$b = "562f9618d0de907973cf252f01ea567d";
|
|
7023
|
+
function validate$h(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
7024
7024
|
const v_error = (() => {
|
|
7025
7025
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7026
7026
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7146,23 +7146,23 @@ function validate$e(obj, path = 'SemanticParameterOutputRepresentation') {
|
|
|
7146
7146
|
})();
|
|
7147
7147
|
return v_error === undefined ? null : v_error;
|
|
7148
7148
|
}
|
|
7149
|
-
const RepresentationType$
|
|
7150
|
-
function keyBuilder$
|
|
7151
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7149
|
+
const RepresentationType$8 = 'SemanticParameterOutputRepresentation';
|
|
7150
|
+
function keyBuilder$o(luvio, config) {
|
|
7151
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + config.name;
|
|
7152
7152
|
}
|
|
7153
7153
|
function keyBuilderFromType$2(luvio, object) {
|
|
7154
7154
|
const keyParams = {
|
|
7155
7155
|
name: object.id
|
|
7156
7156
|
};
|
|
7157
|
-
return keyBuilder$
|
|
7157
|
+
return keyBuilder$o(luvio, keyParams);
|
|
7158
7158
|
}
|
|
7159
|
-
function normalize$
|
|
7159
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
7160
7160
|
return input;
|
|
7161
7161
|
}
|
|
7162
|
-
const select$
|
|
7162
|
+
const select$p = function SemanticParameterOutputRepresentationSelect() {
|
|
7163
7163
|
return {
|
|
7164
7164
|
kind: 'Fragment',
|
|
7165
|
-
version: VERSION$
|
|
7165
|
+
version: VERSION$b,
|
|
7166
7166
|
private: [],
|
|
7167
7167
|
selections: [
|
|
7168
7168
|
{
|
|
@@ -7250,7 +7250,7 @@ const select$l = function SemanticParameterOutputRepresentationSelect() {
|
|
|
7250
7250
|
]
|
|
7251
7251
|
};
|
|
7252
7252
|
};
|
|
7253
|
-
function equals$
|
|
7253
|
+
function equals$b(existing, incoming) {
|
|
7254
7254
|
const existing_apiName = existing.apiName;
|
|
7255
7255
|
const incoming_apiName = incoming.apiName;
|
|
7256
7256
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -7447,30 +7447,30 @@ function equals$8(existing, incoming) {
|
|
|
7447
7447
|
}
|
|
7448
7448
|
return true;
|
|
7449
7449
|
}
|
|
7450
|
-
const ingest$
|
|
7450
|
+
const ingest$8 = function SemanticParameterOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7451
7451
|
if (process.env.NODE_ENV !== 'production') {
|
|
7452
|
-
const validateError = validate$
|
|
7452
|
+
const validateError = validate$h(input);
|
|
7453
7453
|
if (validateError !== null) {
|
|
7454
7454
|
throw validateError;
|
|
7455
7455
|
}
|
|
7456
7456
|
}
|
|
7457
7457
|
const key = keyBuilderFromType$2(luvio, input);
|
|
7458
7458
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
7459
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7459
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SemanticAuthoring", VERSION$b, RepresentationType$8, equals$b);
|
|
7460
7460
|
return createLink(key);
|
|
7461
7461
|
};
|
|
7462
|
-
function getTypeCacheKeys$
|
|
7462
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
7463
7463
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7464
7464
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
7465
7465
|
rootKeySet.set(rootKey, {
|
|
7466
7466
|
namespace: keyPrefix,
|
|
7467
|
-
representationName: RepresentationType$
|
|
7467
|
+
representationName: RepresentationType$8,
|
|
7468
7468
|
mergeable: false
|
|
7469
7469
|
});
|
|
7470
7470
|
}
|
|
7471
7471
|
|
|
7472
|
-
const VERSION$
|
|
7473
|
-
function validate$
|
|
7472
|
+
const VERSION$a = "5cda82e85d7322d459ba16b10b81ee96";
|
|
7473
|
+
function validate$g(obj, path = 'SemanticModelOutputRepresentation') {
|
|
7474
7474
|
const v_error = (() => {
|
|
7475
7475
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7476
7476
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7503,7 +7503,7 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7503
7503
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
7504
7504
|
const obj_baseModels_item = obj_baseModels[i];
|
|
7505
7505
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
7506
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
7506
|
+
const referencepath_baseModels_itemValidationError = validate$E(obj_baseModels_item, path_baseModels_item);
|
|
7507
7507
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
7508
7508
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
7509
7509
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7786,24 +7786,24 @@ function validate$d(obj, path = 'SemanticModelOutputRepresentation') {
|
|
|
7786
7786
|
})();
|
|
7787
7787
|
return v_error === undefined ? null : v_error;
|
|
7788
7788
|
}
|
|
7789
|
-
const RepresentationType$
|
|
7790
|
-
function keyBuilder$
|
|
7791
|
-
return keyPrefix + '::' + RepresentationType$
|
|
7789
|
+
const RepresentationType$7 = 'SemanticModelOutputRepresentation';
|
|
7790
|
+
function keyBuilder$n(luvio, config) {
|
|
7791
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.name;
|
|
7792
7792
|
}
|
|
7793
7793
|
function keyBuilderFromType$1(luvio, object) {
|
|
7794
7794
|
const keyParams = {
|
|
7795
7795
|
name: object.id
|
|
7796
7796
|
};
|
|
7797
|
-
return keyBuilder$
|
|
7797
|
+
return keyBuilder$n(luvio, keyParams);
|
|
7798
7798
|
}
|
|
7799
|
-
function normalize$
|
|
7799
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7800
7800
|
const input_semanticCalculatedDimensions = input.semanticCalculatedDimensions;
|
|
7801
7801
|
const input_semanticCalculatedDimensions_id = path.fullPath + '__semanticCalculatedDimensions';
|
|
7802
7802
|
if (input_semanticCalculatedDimensions !== undefined) {
|
|
7803
7803
|
for (let i = 0; i < input_semanticCalculatedDimensions.length; i++) {
|
|
7804
7804
|
const input_semanticCalculatedDimensions_item = input_semanticCalculatedDimensions[i];
|
|
7805
7805
|
let input_semanticCalculatedDimensions_item_id = input_semanticCalculatedDimensions_id + '__' + i;
|
|
7806
|
-
input_semanticCalculatedDimensions[i] = ingest$
|
|
7806
|
+
input_semanticCalculatedDimensions[i] = ingest$h(input_semanticCalculatedDimensions_item, {
|
|
7807
7807
|
fullPath: input_semanticCalculatedDimensions_item_id,
|
|
7808
7808
|
propertyName: i,
|
|
7809
7809
|
parent: {
|
|
@@ -7821,7 +7821,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7821
7821
|
for (let i = 0; i < input_semanticCalculatedMeasurements.length; i++) {
|
|
7822
7822
|
const input_semanticCalculatedMeasurements_item = input_semanticCalculatedMeasurements[i];
|
|
7823
7823
|
let input_semanticCalculatedMeasurements_item_id = input_semanticCalculatedMeasurements_id + '__' + i;
|
|
7824
|
-
input_semanticCalculatedMeasurements[i] = ingest$
|
|
7824
|
+
input_semanticCalculatedMeasurements[i] = ingest$g(input_semanticCalculatedMeasurements_item, {
|
|
7825
7825
|
fullPath: input_semanticCalculatedMeasurements_item_id,
|
|
7826
7826
|
propertyName: i,
|
|
7827
7827
|
parent: {
|
|
@@ -7839,7 +7839,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7839
7839
|
for (let i = 0; i < input_semanticDataObjects.length; i++) {
|
|
7840
7840
|
const input_semanticDataObjects_item = input_semanticDataObjects[i];
|
|
7841
7841
|
let input_semanticDataObjects_item_id = input_semanticDataObjects_id + '__' + i;
|
|
7842
|
-
input_semanticDataObjects[i] = ingest$
|
|
7842
|
+
input_semanticDataObjects[i] = ingest$f(input_semanticDataObjects_item, {
|
|
7843
7843
|
fullPath: input_semanticDataObjects_item_id,
|
|
7844
7844
|
propertyName: i,
|
|
7845
7845
|
parent: {
|
|
@@ -7857,7 +7857,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7857
7857
|
for (let i = 0; i < input_semanticGroupings.length; i++) {
|
|
7858
7858
|
const input_semanticGroupings_item = input_semanticGroupings[i];
|
|
7859
7859
|
let input_semanticGroupings_item_id = input_semanticGroupings_id + '__' + i;
|
|
7860
|
-
input_semanticGroupings[i] = ingest$
|
|
7860
|
+
input_semanticGroupings[i] = ingest$e(input_semanticGroupings_item, {
|
|
7861
7861
|
fullPath: input_semanticGroupings_item_id,
|
|
7862
7862
|
propertyName: i,
|
|
7863
7863
|
parent: {
|
|
@@ -7875,7 +7875,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7875
7875
|
for (let i = 0; i < input_semanticLogicalViews.length; i++) {
|
|
7876
7876
|
const input_semanticLogicalViews_item = input_semanticLogicalViews[i];
|
|
7877
7877
|
let input_semanticLogicalViews_item_id = input_semanticLogicalViews_id + '__' + i;
|
|
7878
|
-
input_semanticLogicalViews[i] = ingest$
|
|
7878
|
+
input_semanticLogicalViews[i] = ingest$a(input_semanticLogicalViews_item, {
|
|
7879
7879
|
fullPath: input_semanticLogicalViews_item_id,
|
|
7880
7880
|
propertyName: i,
|
|
7881
7881
|
parent: {
|
|
@@ -7893,7 +7893,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7893
7893
|
for (let i = 0; i < input_semanticMetrics.length; i++) {
|
|
7894
7894
|
const input_semanticMetrics_item = input_semanticMetrics[i];
|
|
7895
7895
|
let input_semanticMetrics_item_id = input_semanticMetrics_id + '__' + i;
|
|
7896
|
-
input_semanticMetrics[i] = ingest$
|
|
7896
|
+
input_semanticMetrics[i] = ingest$9(input_semanticMetrics_item, {
|
|
7897
7897
|
fullPath: input_semanticMetrics_item_id,
|
|
7898
7898
|
propertyName: i,
|
|
7899
7899
|
parent: {
|
|
@@ -7911,7 +7911,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7911
7911
|
for (let i = 0; i < input_semanticParameters.length; i++) {
|
|
7912
7912
|
const input_semanticParameters_item = input_semanticParameters[i];
|
|
7913
7913
|
let input_semanticParameters_item_id = input_semanticParameters_id + '__' + i;
|
|
7914
|
-
input_semanticParameters[i] = ingest$
|
|
7914
|
+
input_semanticParameters[i] = ingest$8(input_semanticParameters_item, {
|
|
7915
7915
|
fullPath: input_semanticParameters_item_id,
|
|
7916
7916
|
propertyName: i,
|
|
7917
7917
|
parent: {
|
|
@@ -7929,7 +7929,7 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7929
7929
|
for (let i = 0; i < input_semanticRelationships.length; i++) {
|
|
7930
7930
|
const input_semanticRelationships_item = input_semanticRelationships[i];
|
|
7931
7931
|
let input_semanticRelationships_item_id = input_semanticRelationships_id + '__' + i;
|
|
7932
|
-
input_semanticRelationships[i] = ingest$
|
|
7932
|
+
input_semanticRelationships[i] = ingest$d(input_semanticRelationships_item, {
|
|
7933
7933
|
fullPath: input_semanticRelationships_item_id,
|
|
7934
7934
|
propertyName: i,
|
|
7935
7935
|
parent: {
|
|
@@ -7943,11 +7943,11 @@ function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
return input;
|
|
7945
7945
|
}
|
|
7946
|
-
const select$
|
|
7947
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
7946
|
+
const select$o = function SemanticModelOutputRepresentationSelect() {
|
|
7947
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
7948
7948
|
return {
|
|
7949
7949
|
kind: 'Fragment',
|
|
7950
|
-
version: VERSION$
|
|
7950
|
+
version: VERSION$a,
|
|
7951
7951
|
private: [],
|
|
7952
7952
|
selections: [
|
|
7953
7953
|
{
|
|
@@ -8033,7 +8033,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8033
8033
|
kind: 'Link',
|
|
8034
8034
|
plural: true,
|
|
8035
8035
|
required: false,
|
|
8036
|
-
fragment: select$
|
|
8036
|
+
fragment: select$I()
|
|
8037
8037
|
},
|
|
8038
8038
|
{
|
|
8039
8039
|
name: 'semanticCalculatedDimensionsUrl',
|
|
@@ -8045,7 +8045,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8045
8045
|
kind: 'Link',
|
|
8046
8046
|
plural: true,
|
|
8047
8047
|
required: false,
|
|
8048
|
-
fragment: select$
|
|
8048
|
+
fragment: select$H()
|
|
8049
8049
|
},
|
|
8050
8050
|
{
|
|
8051
8051
|
name: 'semanticCalculatedMeasurementsUrl',
|
|
@@ -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$G()
|
|
8061
8061
|
},
|
|
8062
8062
|
{
|
|
8063
8063
|
name: 'semanticDataObjectsUrl',
|
|
@@ -8069,7 +8069,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8069
8069
|
kind: 'Link',
|
|
8070
8070
|
plural: true,
|
|
8071
8071
|
required: false,
|
|
8072
|
-
fragment: select$
|
|
8072
|
+
fragment: select$z()
|
|
8073
8073
|
},
|
|
8074
8074
|
{
|
|
8075
8075
|
name: 'semanticGroupingsUrl',
|
|
@@ -8081,21 +8081,21 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8081
8081
|
kind: 'Link',
|
|
8082
8082
|
plural: true,
|
|
8083
8083
|
required: false,
|
|
8084
|
-
fragment: select$
|
|
8084
|
+
fragment: select$u()
|
|
8085
8085
|
},
|
|
8086
8086
|
{
|
|
8087
8087
|
name: 'semanticMetrics',
|
|
8088
8088
|
kind: 'Link',
|
|
8089
8089
|
plural: true,
|
|
8090
8090
|
required: false,
|
|
8091
|
-
fragment: select$
|
|
8091
|
+
fragment: select$q()
|
|
8092
8092
|
},
|
|
8093
8093
|
{
|
|
8094
8094
|
name: 'semanticParameters',
|
|
8095
8095
|
kind: 'Link',
|
|
8096
8096
|
plural: true,
|
|
8097
8097
|
required: false,
|
|
8098
|
-
fragment: select$
|
|
8098
|
+
fragment: select$p()
|
|
8099
8099
|
},
|
|
8100
8100
|
{
|
|
8101
8101
|
name: 'semanticParametersUrl',
|
|
@@ -8107,7 +8107,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8107
8107
|
kind: 'Link',
|
|
8108
8108
|
plural: true,
|
|
8109
8109
|
required: false,
|
|
8110
|
-
fragment: select$
|
|
8110
|
+
fragment: select$x()
|
|
8111
8111
|
},
|
|
8112
8112
|
{
|
|
8113
8113
|
name: 'semanticRelationshipsUrl',
|
|
@@ -8127,7 +8127,7 @@ const select$k = function SemanticModelOutputRepresentationSelect() {
|
|
|
8127
8127
|
]
|
|
8128
8128
|
};
|
|
8129
8129
|
};
|
|
8130
|
-
function equals$
|
|
8130
|
+
function equals$a(existing, incoming) {
|
|
8131
8131
|
const existing_isLocked = existing.isLocked;
|
|
8132
8132
|
const incoming_isLocked = incoming.isLocked;
|
|
8133
8133
|
// if at least one of these optionals is defined
|
|
@@ -8371,7 +8371,7 @@ function equals$7(existing, incoming) {
|
|
|
8371
8371
|
return false;
|
|
8372
8372
|
}
|
|
8373
8373
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
8374
|
-
if (!(equals$
|
|
8374
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
8375
8375
|
return false;
|
|
8376
8376
|
}
|
|
8377
8377
|
});
|
|
@@ -8556,89 +8556,89 @@ function equals$7(existing, incoming) {
|
|
|
8556
8556
|
}
|
|
8557
8557
|
return true;
|
|
8558
8558
|
}
|
|
8559
|
-
const ingest$
|
|
8559
|
+
const ingest$7 = function SemanticModelOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8560
8560
|
if (process.env.NODE_ENV !== 'production') {
|
|
8561
|
-
const validateError = validate$
|
|
8561
|
+
const validateError = validate$g(input);
|
|
8562
8562
|
if (validateError !== null) {
|
|
8563
8563
|
throw validateError;
|
|
8564
8564
|
}
|
|
8565
8565
|
}
|
|
8566
8566
|
const key = keyBuilderFromType$1(luvio, input);
|
|
8567
8567
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
8568
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
8568
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SemanticAuthoring", VERSION$a, RepresentationType$7, equals$a);
|
|
8569
8569
|
return createLink(key);
|
|
8570
8570
|
};
|
|
8571
|
-
function getTypeCacheKeys$
|
|
8571
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
8572
8572
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8573
8573
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
8574
8574
|
rootKeySet.set(rootKey, {
|
|
8575
8575
|
namespace: keyPrefix,
|
|
8576
|
-
representationName: RepresentationType$
|
|
8576
|
+
representationName: RepresentationType$7,
|
|
8577
8577
|
mergeable: false
|
|
8578
8578
|
});
|
|
8579
8579
|
if (input.semanticCalculatedDimensions !== undefined) {
|
|
8580
8580
|
const input_semanticCalculatedDimensions_length = input.semanticCalculatedDimensions.length;
|
|
8581
8581
|
for (let i = 0; i < input_semanticCalculatedDimensions_length; i++) {
|
|
8582
|
-
getTypeCacheKeys$
|
|
8582
|
+
getTypeCacheKeys$h(rootKeySet, luvio, input.semanticCalculatedDimensions[i]);
|
|
8583
8583
|
}
|
|
8584
8584
|
}
|
|
8585
8585
|
if (input.semanticCalculatedMeasurements !== undefined) {
|
|
8586
8586
|
const input_semanticCalculatedMeasurements_length = input.semanticCalculatedMeasurements.length;
|
|
8587
8587
|
for (let i = 0; i < input_semanticCalculatedMeasurements_length; i++) {
|
|
8588
|
-
getTypeCacheKeys$
|
|
8588
|
+
getTypeCacheKeys$g(rootKeySet, luvio, input.semanticCalculatedMeasurements[i]);
|
|
8589
8589
|
}
|
|
8590
8590
|
}
|
|
8591
8591
|
if (input.semanticDataObjects !== undefined) {
|
|
8592
8592
|
const input_semanticDataObjects_length = input.semanticDataObjects.length;
|
|
8593
8593
|
for (let i = 0; i < input_semanticDataObjects_length; i++) {
|
|
8594
|
-
getTypeCacheKeys$
|
|
8594
|
+
getTypeCacheKeys$f(rootKeySet, luvio, input.semanticDataObjects[i]);
|
|
8595
8595
|
}
|
|
8596
8596
|
}
|
|
8597
8597
|
if (input.semanticGroupings !== undefined) {
|
|
8598
8598
|
const input_semanticGroupings_length = input.semanticGroupings.length;
|
|
8599
8599
|
for (let i = 0; i < input_semanticGroupings_length; i++) {
|
|
8600
|
-
getTypeCacheKeys$
|
|
8600
|
+
getTypeCacheKeys$e(rootKeySet, luvio, input.semanticGroupings[i]);
|
|
8601
8601
|
}
|
|
8602
8602
|
}
|
|
8603
8603
|
if (input.semanticLogicalViews !== undefined) {
|
|
8604
8604
|
const input_semanticLogicalViews_length = input.semanticLogicalViews.length;
|
|
8605
8605
|
for (let i = 0; i < input_semanticLogicalViews_length; i++) {
|
|
8606
|
-
getTypeCacheKeys$
|
|
8606
|
+
getTypeCacheKeys$a(rootKeySet, luvio, input.semanticLogicalViews[i]);
|
|
8607
8607
|
}
|
|
8608
8608
|
}
|
|
8609
8609
|
if (input.semanticMetrics !== undefined) {
|
|
8610
8610
|
const input_semanticMetrics_length = input.semanticMetrics.length;
|
|
8611
8611
|
for (let i = 0; i < input_semanticMetrics_length; i++) {
|
|
8612
|
-
getTypeCacheKeys$
|
|
8612
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.semanticMetrics[i]);
|
|
8613
8613
|
}
|
|
8614
8614
|
}
|
|
8615
8615
|
if (input.semanticParameters !== undefined) {
|
|
8616
8616
|
const input_semanticParameters_length = input.semanticParameters.length;
|
|
8617
8617
|
for (let i = 0; i < input_semanticParameters_length; i++) {
|
|
8618
|
-
getTypeCacheKeys$
|
|
8618
|
+
getTypeCacheKeys$8(rootKeySet, luvio, input.semanticParameters[i]);
|
|
8619
8619
|
}
|
|
8620
8620
|
}
|
|
8621
8621
|
if (input.semanticRelationships !== undefined) {
|
|
8622
8622
|
const input_semanticRelationships_length = input.semanticRelationships.length;
|
|
8623
8623
|
for (let i = 0; i < input_semanticRelationships_length; i++) {
|
|
8624
|
-
getTypeCacheKeys$
|
|
8624
|
+
getTypeCacheKeys$d(rootKeySet, luvio, input.semanticRelationships[i]);
|
|
8625
8625
|
}
|
|
8626
8626
|
}
|
|
8627
8627
|
}
|
|
8628
8628
|
|
|
8629
|
-
function select$
|
|
8630
|
-
return select$
|
|
8629
|
+
function select$n(luvio, params) {
|
|
8630
|
+
return select$o();
|
|
8631
8631
|
}
|
|
8632
|
-
function getResponseCacheKeys$
|
|
8633
|
-
getTypeCacheKeys$
|
|
8632
|
+
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
8633
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
8634
8634
|
}
|
|
8635
|
-
function ingestSuccess$
|
|
8635
|
+
function ingestSuccess$d(luvio, resourceParams, response) {
|
|
8636
8636
|
const { body } = response;
|
|
8637
8637
|
const key = keyBuilderFromType$1(luvio, body);
|
|
8638
|
-
luvio.storeIngest(key, ingest$
|
|
8638
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
8639
8639
|
const snapshot = luvio.storeLookup({
|
|
8640
8640
|
recordId: key,
|
|
8641
|
-
node: select$
|
|
8641
|
+
node: select$n(),
|
|
8642
8642
|
variables: {},
|
|
8643
8643
|
});
|
|
8644
8644
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8649,7 +8649,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
8649
8649
|
deepFreeze(snapshot.data);
|
|
8650
8650
|
return snapshot;
|
|
8651
8651
|
}
|
|
8652
|
-
function createResourceRequest$
|
|
8652
|
+
function createResourceRequest$f(config) {
|
|
8653
8653
|
const headers = {};
|
|
8654
8654
|
return {
|
|
8655
8655
|
baseUri: '/services/data/v63.0',
|
|
@@ -8663,7 +8663,7 @@ function createResourceRequest$e(config) {
|
|
|
8663
8663
|
};
|
|
8664
8664
|
}
|
|
8665
8665
|
|
|
8666
|
-
const adapterName$
|
|
8666
|
+
const adapterName$f = 'createSemanticModel';
|
|
8667
8667
|
const createSemanticModel_ConfigPropertyMetadata = [
|
|
8668
8668
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
8669
8669
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -8684,17 +8684,17 @@ const createSemanticModel_ConfigPropertyMetadata = [
|
|
|
8684
8684
|
generateParamConfigMetadata('semanticParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8685
8685
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8686
8686
|
];
|
|
8687
|
-
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8688
|
-
const createResourceParams$
|
|
8689
|
-
function typeCheckConfig$
|
|
8687
|
+
const createSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, createSemanticModel_ConfigPropertyMetadata);
|
|
8688
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$g(createSemanticModel_ConfigPropertyMetadata);
|
|
8689
|
+
function typeCheckConfig$f(untrustedConfig) {
|
|
8690
8690
|
const config = {};
|
|
8691
|
-
typeCheckConfig$
|
|
8691
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticModel_ConfigPropertyMetadata);
|
|
8692
8692
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
8693
8693
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
8694
8694
|
const untrustedConfig_baseModels_array = [];
|
|
8695
8695
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
8696
8696
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
8697
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
8697
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$10(untrustedConfig_baseModels_item);
|
|
8698
8698
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
8699
8699
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
8700
8700
|
}
|
|
@@ -8706,7 +8706,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8706
8706
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
8707
8707
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
8708
8708
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
8709
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
8709
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$_(untrustedConfig_semanticCalculatedDimensions_item);
|
|
8710
8710
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
8711
8711
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
8712
8712
|
}
|
|
@@ -8718,7 +8718,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8718
8718
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
8719
8719
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
8720
8720
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
8721
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
8721
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$Z(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
8722
8722
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
8723
8723
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
8724
8724
|
}
|
|
@@ -8730,7 +8730,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8730
8730
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
8731
8731
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
8732
8732
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
8733
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
8733
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$W(untrustedConfig_semanticDataObjects_item);
|
|
8734
8734
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
8735
8735
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
8736
8736
|
}
|
|
@@ -8742,7 +8742,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8742
8742
|
const untrustedConfig_semanticGroupings_array = [];
|
|
8743
8743
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
8744
8744
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
8745
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
8745
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$P(untrustedConfig_semanticGroupings_item);
|
|
8746
8746
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
8747
8747
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
8748
8748
|
}
|
|
@@ -8754,7 +8754,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8754
8754
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
8755
8755
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
8756
8756
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
8757
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
8757
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$K(untrustedConfig_semanticLogicalViews_item);
|
|
8758
8758
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
8759
8759
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
8760
8760
|
}
|
|
@@ -8766,7 +8766,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8766
8766
|
const untrustedConfig_semanticMetrics_array = [];
|
|
8767
8767
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
8768
8768
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
8769
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
8769
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$G(untrustedConfig_semanticMetrics_item);
|
|
8770
8770
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
8771
8771
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
8772
8772
|
}
|
|
@@ -8778,7 +8778,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8778
8778
|
const untrustedConfig_semanticParameters_array = [];
|
|
8779
8779
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
8780
8780
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
8781
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
8781
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$F(untrustedConfig_semanticParameters_item);
|
|
8782
8782
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
8783
8783
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
8784
8784
|
}
|
|
@@ -8790,7 +8790,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8790
8790
|
const untrustedConfig_semanticRelationships_array = [];
|
|
8791
8791
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
8792
8792
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
8793
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
8793
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$N(untrustedConfig_semanticRelationships_item);
|
|
8794
8794
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
8795
8795
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
8796
8796
|
}
|
|
@@ -8799,30 +8799,30 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
8799
8799
|
}
|
|
8800
8800
|
return config;
|
|
8801
8801
|
}
|
|
8802
|
-
function validateAdapterConfig$
|
|
8802
|
+
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
8803
8803
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
8804
8804
|
return null;
|
|
8805
8805
|
}
|
|
8806
8806
|
if (process.env.NODE_ENV !== 'production') {
|
|
8807
8807
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
8808
8808
|
}
|
|
8809
|
-
const config = typeCheckConfig$
|
|
8809
|
+
const config = typeCheckConfig$f(untrustedConfig);
|
|
8810
8810
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8811
8811
|
return null;
|
|
8812
8812
|
}
|
|
8813
8813
|
return config;
|
|
8814
8814
|
}
|
|
8815
|
-
function buildNetworkSnapshot$
|
|
8816
|
-
const resourceParams = createResourceParams$
|
|
8817
|
-
const request = createResourceRequest$
|
|
8815
|
+
function buildNetworkSnapshot$f(luvio, config, options) {
|
|
8816
|
+
const resourceParams = createResourceParams$f(config);
|
|
8817
|
+
const request = createResourceRequest$f(resourceParams);
|
|
8818
8818
|
return luvio.dispatchResourceRequest(request, options)
|
|
8819
8819
|
.then((response) => {
|
|
8820
8820
|
return luvio.handleSuccessResponse(() => {
|
|
8821
|
-
const snapshot = ingestSuccess$
|
|
8821
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response);
|
|
8822
8822
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8823
8823
|
}, () => {
|
|
8824
8824
|
const cache = new StoreKeyMap();
|
|
8825
|
-
getResponseCacheKeys$
|
|
8825
|
+
getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
|
|
8826
8826
|
return cache;
|
|
8827
8827
|
});
|
|
8828
8828
|
}, (response) => {
|
|
@@ -8832,16 +8832,16 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
8832
8832
|
}
|
|
8833
8833
|
const createSemanticModelAdapterFactory = (luvio) => {
|
|
8834
8834
|
return function createSemanticModel(untrustedConfig) {
|
|
8835
|
-
const config = validateAdapterConfig$
|
|
8835
|
+
const config = validateAdapterConfig$f(untrustedConfig, createSemanticModel_ConfigPropertyNames);
|
|
8836
8836
|
// Invalid or incomplete config
|
|
8837
8837
|
if (config === null) {
|
|
8838
8838
|
throw new Error('Invalid config for "createSemanticModel"');
|
|
8839
8839
|
}
|
|
8840
|
-
return buildNetworkSnapshot$
|
|
8840
|
+
return buildNetworkSnapshot$f(luvio, config);
|
|
8841
8841
|
};
|
|
8842
8842
|
};
|
|
8843
8843
|
|
|
8844
|
-
function validate$
|
|
8844
|
+
function validate$f(obj, path = 'SemanticGoalStatusConditionInputRepresentation') {
|
|
8845
8845
|
const v_error = (() => {
|
|
8846
8846
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8847
8847
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8892,7 +8892,7 @@ function validate$c(obj, path = 'SemanticGoalStatusConditionInputRepresentation'
|
|
|
8892
8892
|
return v_error === undefined ? null : v_error;
|
|
8893
8893
|
}
|
|
8894
8894
|
|
|
8895
|
-
function validate$
|
|
8895
|
+
function validate$e(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
8896
8896
|
const v_error = (() => {
|
|
8897
8897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8898
8898
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8913,7 +8913,7 @@ function validate$b(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
8913
8913
|
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
8914
8914
|
const obj_statusConditions_item = obj_statusConditions[i];
|
|
8915
8915
|
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
8916
|
-
const referencepath_statusConditions_itemValidationError = validate$
|
|
8916
|
+
const referencepath_statusConditions_itemValidationError = validate$f(obj_statusConditions_item, path_statusConditions_item);
|
|
8917
8917
|
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
8918
8918
|
let message = 'Object doesn\'t match SemanticGoalStatusConditionInputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
8919
8919
|
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8925,7 +8925,7 @@ function validate$b(obj, path = 'SemanticMetricGoalInputRepresentation') {
|
|
|
8925
8925
|
return v_error === undefined ? null : v_error;
|
|
8926
8926
|
}
|
|
8927
8927
|
|
|
8928
|
-
function validate$
|
|
8928
|
+
function validate$d(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
8929
8929
|
const v_error = (() => {
|
|
8930
8930
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8931
8931
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8955,7 +8955,7 @@ function validate$a(obj, path = 'SemanticTimeRangeInputRepresentation') {
|
|
|
8955
8955
|
return v_error === undefined ? null : v_error;
|
|
8956
8956
|
}
|
|
8957
8957
|
|
|
8958
|
-
function validate$
|
|
8958
|
+
function validate$c(obj, path = 'SemanticGoalStatusConditionOutputRepresentation') {
|
|
8959
8959
|
const v_error = (() => {
|
|
8960
8960
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8961
8961
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8996,7 +8996,7 @@ function validate$9(obj, path = 'SemanticGoalStatusConditionOutputRepresentation
|
|
|
8996
8996
|
return v_error === undefined ? null : v_error;
|
|
8997
8997
|
}
|
|
8998
8998
|
|
|
8999
|
-
function validate$
|
|
8999
|
+
function validate$b(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
9000
9000
|
const v_error = (() => {
|
|
9001
9001
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9002
9002
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9014,7 +9014,7 @@ function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
|
9014
9014
|
for (let i = 0; i < obj_statusConditions.length; i++) {
|
|
9015
9015
|
const obj_statusConditions_item = obj_statusConditions[i];
|
|
9016
9016
|
const path_statusConditions_item = path_statusConditions + '[' + i + ']';
|
|
9017
|
-
const referencepath_statusConditions_itemValidationError = validate$
|
|
9017
|
+
const referencepath_statusConditions_itemValidationError = validate$c(obj_statusConditions_item, path_statusConditions_item);
|
|
9018
9018
|
if (referencepath_statusConditions_itemValidationError !== null) {
|
|
9019
9019
|
let message = 'Object doesn\'t match SemanticGoalStatusConditionOutputRepresentation (at "' + path_statusConditions_item + '")\n';
|
|
9020
9020
|
message += referencepath_statusConditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9025,7 +9025,7 @@ function validate$8(obj, path = 'SemanticMetricGoalOutputRepresentation') {
|
|
|
9025
9025
|
return v_error === undefined ? null : v_error;
|
|
9026
9026
|
}
|
|
9027
9027
|
|
|
9028
|
-
function validate$
|
|
9028
|
+
function validate$a(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
9029
9029
|
const v_error = (() => {
|
|
9030
9030
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9031
9031
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9055,8 +9055,8 @@ function validate$7(obj, path = 'SemanticTimeRangeOutputRepresentation') {
|
|
|
9055
9055
|
return v_error === undefined ? null : v_error;
|
|
9056
9056
|
}
|
|
9057
9057
|
|
|
9058
|
-
const VERSION$
|
|
9059
|
-
function validate$
|
|
9058
|
+
const VERSION$9 = "34ece37408ddd80874097c87b829ae97";
|
|
9059
|
+
function validate$9(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
9060
9060
|
const v_error = (() => {
|
|
9061
9061
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9062
9062
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -9113,7 +9113,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9113
9113
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
9114
9114
|
const obj_filters_item = obj_filters[i];
|
|
9115
9115
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
9116
|
-
const referencepath_filters_itemValidationError = validate$
|
|
9116
|
+
const referencepath_filters_itemValidationError = validate$D(obj_filters_item, path_filters_item);
|
|
9117
9117
|
if (referencepath_filters_itemValidationError !== null) {
|
|
9118
9118
|
let message = 'Object doesn\'t match SemanticFilterOutputRepresentation (at "' + path_filters_item + '")\n';
|
|
9119
9119
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9124,7 +9124,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9124
9124
|
if (obj.goal !== undefined) {
|
|
9125
9125
|
const obj_goal = obj.goal;
|
|
9126
9126
|
const path_goal = path + '.goal';
|
|
9127
|
-
const referencepath_goalValidationError = validate$
|
|
9127
|
+
const referencepath_goalValidationError = validate$b(obj_goal, path_goal);
|
|
9128
9128
|
if (referencepath_goalValidationError !== null) {
|
|
9129
9129
|
let message = 'Object doesn\'t match SemanticMetricGoalOutputRepresentation (at "' + path_goal + '")\n';
|
|
9130
9130
|
message += referencepath_goalValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9167,7 +9167,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9167
9167
|
if (obj.semanticMetric !== undefined) {
|
|
9168
9168
|
const obj_semanticMetric = obj.semanticMetric;
|
|
9169
9169
|
const path_semanticMetric = path + '.semanticMetric';
|
|
9170
|
-
const referencepath_semanticMetricValidationError = validate$
|
|
9170
|
+
const referencepath_semanticMetricValidationError = validate$i(obj_semanticMetric, path_semanticMetric);
|
|
9171
9171
|
if (referencepath_semanticMetricValidationError !== null) {
|
|
9172
9172
|
let message = 'Object doesn\'t match SemanticMetricOutputRepresentation (at "' + path_semanticMetric + '")\n';
|
|
9173
9173
|
message += referencepath_semanticMetricValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9177,7 +9177,7 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9177
9177
|
if (obj.timeRange !== undefined) {
|
|
9178
9178
|
const obj_timeRange = obj.timeRange;
|
|
9179
9179
|
const path_timeRange = path + '.timeRange';
|
|
9180
|
-
const referencepath_timeRangeValidationError = validate$
|
|
9180
|
+
const referencepath_timeRangeValidationError = validate$a(obj_timeRange, path_timeRange);
|
|
9181
9181
|
if (referencepath_timeRangeValidationError !== null) {
|
|
9182
9182
|
let message = 'Object doesn\'t match SemanticTimeRangeOutputRepresentation (at "' + path_timeRange + '")\n';
|
|
9183
9183
|
message += referencepath_timeRangeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -9187,68 +9187,68 @@ function validate$6(obj, path = 'SemanticSubMetricOutputRepresentation') {
|
|
|
9187
9187
|
})();
|
|
9188
9188
|
return v_error === undefined ? null : v_error;
|
|
9189
9189
|
}
|
|
9190
|
-
const RepresentationType$
|
|
9191
|
-
function keyBuilder$
|
|
9192
|
-
return keyPrefix + '::' + RepresentationType$
|
|
9190
|
+
const RepresentationType$6 = 'SemanticSubMetricOutputRepresentation';
|
|
9191
|
+
function keyBuilder$m(luvio, config) {
|
|
9192
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.name;
|
|
9193
9193
|
}
|
|
9194
9194
|
function keyBuilderFromType(luvio, object) {
|
|
9195
9195
|
const keyParams = {
|
|
9196
9196
|
name: object.id
|
|
9197
9197
|
};
|
|
9198
|
-
return keyBuilder$
|
|
9198
|
+
return keyBuilder$m(luvio, keyParams);
|
|
9199
9199
|
}
|
|
9200
|
-
function normalize$
|
|
9200
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
9201
9201
|
return input;
|
|
9202
9202
|
}
|
|
9203
|
-
const select$
|
|
9203
|
+
const select$m = function SemanticSubMetricOutputRepresentationSelect() {
|
|
9204
9204
|
return {
|
|
9205
9205
|
kind: 'Fragment',
|
|
9206
|
-
version: VERSION$
|
|
9206
|
+
version: VERSION$9,
|
|
9207
9207
|
private: [],
|
|
9208
9208
|
opaque: true
|
|
9209
9209
|
};
|
|
9210
9210
|
};
|
|
9211
|
-
function equals$
|
|
9211
|
+
function equals$9(existing, incoming) {
|
|
9212
9212
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
9213
9213
|
return false;
|
|
9214
9214
|
}
|
|
9215
9215
|
return true;
|
|
9216
9216
|
}
|
|
9217
|
-
const ingest$
|
|
9217
|
+
const ingest$6 = function SemanticSubMetricOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9218
9218
|
if (process.env.NODE_ENV !== 'production') {
|
|
9219
|
-
const validateError = validate$
|
|
9219
|
+
const validateError = validate$9(input);
|
|
9220
9220
|
if (validateError !== null) {
|
|
9221
9221
|
throw validateError;
|
|
9222
9222
|
}
|
|
9223
9223
|
}
|
|
9224
9224
|
const key = keyBuilderFromType(luvio, input);
|
|
9225
9225
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9226
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
9226
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SemanticAuthoring", VERSION$9, RepresentationType$6, equals$9);
|
|
9227
9227
|
return createLink(key);
|
|
9228
9228
|
};
|
|
9229
|
-
function getTypeCacheKeys$
|
|
9229
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
9230
9230
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9231
9231
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
9232
9232
|
rootKeySet.set(rootKey, {
|
|
9233
9233
|
namespace: keyPrefix,
|
|
9234
|
-
representationName: RepresentationType$
|
|
9234
|
+
representationName: RepresentationType$6,
|
|
9235
9235
|
mergeable: false
|
|
9236
9236
|
});
|
|
9237
9237
|
}
|
|
9238
9238
|
|
|
9239
|
-
function select$
|
|
9240
|
-
return select$
|
|
9239
|
+
function select$l(luvio, params) {
|
|
9240
|
+
return select$m();
|
|
9241
9241
|
}
|
|
9242
|
-
function getResponseCacheKeys$
|
|
9243
|
-
getTypeCacheKeys$
|
|
9242
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
9243
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
9244
9244
|
}
|
|
9245
|
-
function ingestSuccess$
|
|
9245
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
9246
9246
|
const { body } = response;
|
|
9247
9247
|
const key = keyBuilderFromType(luvio, body);
|
|
9248
|
-
luvio.storeIngest(key, ingest$
|
|
9248
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
9249
9249
|
const snapshot = luvio.storeLookup({
|
|
9250
9250
|
recordId: key,
|
|
9251
|
-
node: select$
|
|
9251
|
+
node: select$l(),
|
|
9252
9252
|
variables: {},
|
|
9253
9253
|
});
|
|
9254
9254
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9259,7 +9259,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
9259
9259
|
deepFreeze(snapshot.data);
|
|
9260
9260
|
return snapshot;
|
|
9261
9261
|
}
|
|
9262
|
-
function createResourceRequest$
|
|
9262
|
+
function createResourceRequest$e(config) {
|
|
9263
9263
|
const headers = {};
|
|
9264
9264
|
return {
|
|
9265
9265
|
baseUri: '/services/data/v63.0',
|
|
@@ -9273,7 +9273,7 @@ function createResourceRequest$d(config) {
|
|
|
9273
9273
|
};
|
|
9274
9274
|
}
|
|
9275
9275
|
|
|
9276
|
-
const adapterName$
|
|
9276
|
+
const adapterName$e = 'createSemanticSubMetric';
|
|
9277
9277
|
const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9278
9278
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9279
9279
|
generateParamConfigMetadata('apiName', false, 2 /* Body */, 0 /* String */),
|
|
@@ -9285,17 +9285,17 @@ const createSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
9285
9285
|
generateParamConfigMetadata('semanticMetricDefinitionApiName', false, 2 /* Body */, 0 /* String */),
|
|
9286
9286
|
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
9287
9287
|
];
|
|
9288
|
-
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9289
|
-
const createResourceParams$
|
|
9290
|
-
function typeCheckConfig$
|
|
9288
|
+
const createSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9289
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$g(createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9290
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
9291
9291
|
const config = {};
|
|
9292
|
-
typeCheckConfig$
|
|
9292
|
+
typeCheckConfig$g(untrustedConfig, config, createSemanticSubMetric_ConfigPropertyMetadata);
|
|
9293
9293
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
9294
9294
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
9295
9295
|
const untrustedConfig_filters_array = [];
|
|
9296
9296
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
9297
9297
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
9298
|
-
const referenceSemanticFilterInputRepresentationValidationError = validate
|
|
9298
|
+
const referenceSemanticFilterInputRepresentationValidationError = validate$$(untrustedConfig_filters_item);
|
|
9299
9299
|
if (referenceSemanticFilterInputRepresentationValidationError === null) {
|
|
9300
9300
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
9301
9301
|
}
|
|
@@ -9303,41 +9303,41 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
9303
9303
|
config.filters = untrustedConfig_filters_array;
|
|
9304
9304
|
}
|
|
9305
9305
|
const untrustedConfig_goal = untrustedConfig.goal;
|
|
9306
|
-
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$
|
|
9306
|
+
const referenceSemanticMetricGoalInputRepresentationValidationError = validate$e(untrustedConfig_goal);
|
|
9307
9307
|
if (referenceSemanticMetricGoalInputRepresentationValidationError === null) {
|
|
9308
9308
|
config.goal = untrustedConfig_goal;
|
|
9309
9309
|
}
|
|
9310
9310
|
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
9311
|
-
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$
|
|
9311
|
+
const referenceSemanticTimeRangeInputRepresentationValidationError = validate$d(untrustedConfig_timeRange);
|
|
9312
9312
|
if (referenceSemanticTimeRangeInputRepresentationValidationError === null) {
|
|
9313
9313
|
config.timeRange = untrustedConfig_timeRange;
|
|
9314
9314
|
}
|
|
9315
9315
|
return config;
|
|
9316
9316
|
}
|
|
9317
|
-
function validateAdapterConfig$
|
|
9317
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
9318
9318
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9319
9319
|
return null;
|
|
9320
9320
|
}
|
|
9321
9321
|
if (process.env.NODE_ENV !== 'production') {
|
|
9322
9322
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9323
9323
|
}
|
|
9324
|
-
const config = typeCheckConfig$
|
|
9324
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
9325
9325
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9326
9326
|
return null;
|
|
9327
9327
|
}
|
|
9328
9328
|
return config;
|
|
9329
9329
|
}
|
|
9330
|
-
function buildNetworkSnapshot$
|
|
9331
|
-
const resourceParams = createResourceParams$
|
|
9332
|
-
const request = createResourceRequest$
|
|
9330
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
9331
|
+
const resourceParams = createResourceParams$e(config);
|
|
9332
|
+
const request = createResourceRequest$e(resourceParams);
|
|
9333
9333
|
return luvio.dispatchResourceRequest(request, options)
|
|
9334
9334
|
.then((response) => {
|
|
9335
9335
|
return luvio.handleSuccessResponse(() => {
|
|
9336
|
-
const snapshot = ingestSuccess$
|
|
9336
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
9337
9337
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9338
9338
|
}, () => {
|
|
9339
9339
|
const cache = new StoreKeyMap();
|
|
9340
|
-
getResponseCacheKeys$
|
|
9340
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
9341
9341
|
return cache;
|
|
9342
9342
|
});
|
|
9343
9343
|
}, (response) => {
|
|
@@ -9347,33 +9347,33 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
9347
9347
|
}
|
|
9348
9348
|
const createSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9349
9349
|
return function createSemanticSubMetric(untrustedConfig) {
|
|
9350
|
-
const config = validateAdapterConfig$
|
|
9350
|
+
const config = validateAdapterConfig$e(untrustedConfig, createSemanticSubMetric_ConfigPropertyNames);
|
|
9351
9351
|
// Invalid or incomplete config
|
|
9352
9352
|
if (config === null) {
|
|
9353
9353
|
throw new Error('Invalid config for "createSemanticSubMetric"');
|
|
9354
9354
|
}
|
|
9355
|
-
return buildNetworkSnapshot$
|
|
9355
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
9356
9356
|
};
|
|
9357
9357
|
};
|
|
9358
9358
|
|
|
9359
|
-
function keyBuilder$
|
|
9360
|
-
return keyBuilder$
|
|
9359
|
+
function keyBuilder$l(luvio, params) {
|
|
9360
|
+
return keyBuilder$m(luvio, {
|
|
9361
9361
|
name: params.urlParams.subMetricNameOrId
|
|
9362
9362
|
});
|
|
9363
9363
|
}
|
|
9364
|
-
function getResponseCacheKeys$
|
|
9365
|
-
const key = keyBuilder$
|
|
9364
|
+
function getResponseCacheKeys$d(cacheKeyMap, luvio, resourceParams) {
|
|
9365
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9366
9366
|
cacheKeyMap.set(key, {
|
|
9367
9367
|
namespace: keyPrefix,
|
|
9368
|
-
representationName: RepresentationType$
|
|
9368
|
+
representationName: RepresentationType$6,
|
|
9369
9369
|
mergeable: false
|
|
9370
9370
|
});
|
|
9371
9371
|
}
|
|
9372
9372
|
function evictSuccess$1(luvio, resourceParams) {
|
|
9373
|
-
const key = keyBuilder$
|
|
9373
|
+
const key = keyBuilder$l(luvio, resourceParams);
|
|
9374
9374
|
luvio.storeEvict(key);
|
|
9375
9375
|
}
|
|
9376
|
-
function createResourceRequest$
|
|
9376
|
+
function createResourceRequest$d(config) {
|
|
9377
9377
|
const headers = {};
|
|
9378
9378
|
return {
|
|
9379
9379
|
baseUri: '/services/data/v63.0',
|
|
@@ -9387,34 +9387,34 @@ function createResourceRequest$c(config) {
|
|
|
9387
9387
|
};
|
|
9388
9388
|
}
|
|
9389
9389
|
|
|
9390
|
-
const adapterName$
|
|
9390
|
+
const adapterName$d = 'deleteGoalFromSubMetric';
|
|
9391
9391
|
const deleteGoalFromSubMetric_ConfigPropertyMetadata = [
|
|
9392
9392
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9393
9393
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9394
9394
|
];
|
|
9395
|
-
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9396
|
-
const createResourceParams$
|
|
9397
|
-
function typeCheckConfig$
|
|
9395
|
+
const deleteGoalFromSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9396
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9397
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
9398
9398
|
const config = {};
|
|
9399
|
-
typeCheckConfig$
|
|
9399
|
+
typeCheckConfig$g(untrustedConfig, config, deleteGoalFromSubMetric_ConfigPropertyMetadata);
|
|
9400
9400
|
return config;
|
|
9401
9401
|
}
|
|
9402
|
-
function validateAdapterConfig$
|
|
9402
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
9403
9403
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9404
9404
|
return null;
|
|
9405
9405
|
}
|
|
9406
9406
|
if (process.env.NODE_ENV !== 'production') {
|
|
9407
9407
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9408
9408
|
}
|
|
9409
|
-
const config = typeCheckConfig$
|
|
9409
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
9410
9410
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9411
9411
|
return null;
|
|
9412
9412
|
}
|
|
9413
9413
|
return config;
|
|
9414
9414
|
}
|
|
9415
|
-
function buildNetworkSnapshot$
|
|
9416
|
-
const resourceParams = createResourceParams$
|
|
9417
|
-
const request = createResourceRequest$
|
|
9415
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
9416
|
+
const resourceParams = createResourceParams$d(config);
|
|
9417
|
+
const request = createResourceRequest$d(resourceParams);
|
|
9418
9418
|
return luvio.dispatchResourceRequest(request, options)
|
|
9419
9419
|
.then(() => {
|
|
9420
9420
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -9422,7 +9422,7 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
9422
9422
|
return luvio.storeBroadcast();
|
|
9423
9423
|
}, () => {
|
|
9424
9424
|
const cache = new StoreKeyMap();
|
|
9425
|
-
getResponseCacheKeys$
|
|
9425
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams);
|
|
9426
9426
|
return cache;
|
|
9427
9427
|
});
|
|
9428
9428
|
}, (response) => {
|
|
@@ -9432,33 +9432,33 @@ function buildNetworkSnapshot$c(luvio, config, options) {
|
|
|
9432
9432
|
}
|
|
9433
9433
|
const deleteGoalFromSubMetricAdapterFactory = (luvio) => {
|
|
9434
9434
|
return function SemanticAuthoringdeleteGoalFromSubMetric(untrustedConfig) {
|
|
9435
|
-
const config = validateAdapterConfig$
|
|
9435
|
+
const config = validateAdapterConfig$d(untrustedConfig, deleteGoalFromSubMetric_ConfigPropertyNames);
|
|
9436
9436
|
// Invalid or incomplete config
|
|
9437
9437
|
if (config === null) {
|
|
9438
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9438
|
+
throw new Error(`Invalid config for "${adapterName$d}"`);
|
|
9439
9439
|
}
|
|
9440
|
-
return buildNetworkSnapshot$
|
|
9440
|
+
return buildNetworkSnapshot$d(luvio, config);
|
|
9441
9441
|
};
|
|
9442
9442
|
};
|
|
9443
9443
|
|
|
9444
|
-
function keyBuilder$
|
|
9445
|
-
return keyBuilder$
|
|
9444
|
+
function keyBuilder$k(luvio, params) {
|
|
9445
|
+
return keyBuilder$m(luvio, {
|
|
9446
9446
|
name: params.urlParams.subMetricNameOrId
|
|
9447
9447
|
});
|
|
9448
9448
|
}
|
|
9449
|
-
function getResponseCacheKeys$
|
|
9450
|
-
const key = keyBuilder$
|
|
9449
|
+
function getResponseCacheKeys$c(cacheKeyMap, luvio, resourceParams) {
|
|
9450
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9451
9451
|
cacheKeyMap.set(key, {
|
|
9452
9452
|
namespace: keyPrefix,
|
|
9453
|
-
representationName: RepresentationType$
|
|
9453
|
+
representationName: RepresentationType$6,
|
|
9454
9454
|
mergeable: false
|
|
9455
9455
|
});
|
|
9456
9456
|
}
|
|
9457
9457
|
function evictSuccess(luvio, resourceParams) {
|
|
9458
|
-
const key = keyBuilder$
|
|
9458
|
+
const key = keyBuilder$k(luvio, resourceParams);
|
|
9459
9459
|
luvio.storeEvict(key);
|
|
9460
9460
|
}
|
|
9461
|
-
function createResourceRequest$
|
|
9461
|
+
function createResourceRequest$c(config) {
|
|
9462
9462
|
const headers = {};
|
|
9463
9463
|
return {
|
|
9464
9464
|
baseUri: '/services/data/v63.0',
|
|
@@ -9472,34 +9472,34 @@ function createResourceRequest$b(config) {
|
|
|
9472
9472
|
};
|
|
9473
9473
|
}
|
|
9474
9474
|
|
|
9475
|
-
const adapterName$
|
|
9475
|
+
const adapterName$c = 'deleteSemanticSubMetric';
|
|
9476
9476
|
const deleteSemanticSubMetric_ConfigPropertyMetadata = [
|
|
9477
9477
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9478
9478
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9479
9479
|
];
|
|
9480
|
-
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9481
|
-
const createResourceParams$
|
|
9482
|
-
function typeCheckConfig$
|
|
9480
|
+
const deleteSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9481
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$g(deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9482
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
9483
9483
|
const config = {};
|
|
9484
|
-
typeCheckConfig$
|
|
9484
|
+
typeCheckConfig$g(untrustedConfig, config, deleteSemanticSubMetric_ConfigPropertyMetadata);
|
|
9485
9485
|
return config;
|
|
9486
9486
|
}
|
|
9487
|
-
function validateAdapterConfig$
|
|
9487
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
9488
9488
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
9489
9489
|
return null;
|
|
9490
9490
|
}
|
|
9491
9491
|
if (process.env.NODE_ENV !== 'production') {
|
|
9492
9492
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
9493
9493
|
}
|
|
9494
|
-
const config = typeCheckConfig$
|
|
9494
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
9495
9495
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9496
9496
|
return null;
|
|
9497
9497
|
}
|
|
9498
9498
|
return config;
|
|
9499
9499
|
}
|
|
9500
|
-
function buildNetworkSnapshot$
|
|
9501
|
-
const resourceParams = createResourceParams$
|
|
9502
|
-
const request = createResourceRequest$
|
|
9500
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
9501
|
+
const resourceParams = createResourceParams$c(config);
|
|
9502
|
+
const request = createResourceRequest$c(resourceParams);
|
|
9503
9503
|
return luvio.dispatchResourceRequest(request, options)
|
|
9504
9504
|
.then(() => {
|
|
9505
9505
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -9507,7 +9507,7 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9507
9507
|
return luvio.storeBroadcast();
|
|
9508
9508
|
}, () => {
|
|
9509
9509
|
const cache = new StoreKeyMap();
|
|
9510
|
-
getResponseCacheKeys$
|
|
9510
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams);
|
|
9511
9511
|
return cache;
|
|
9512
9512
|
});
|
|
9513
9513
|
}, (response) => {
|
|
@@ -9517,30 +9517,479 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
9517
9517
|
}
|
|
9518
9518
|
const deleteSemanticSubMetricAdapterFactory = (luvio) => {
|
|
9519
9519
|
return function SemanticAuthoringdeleteSemanticSubMetric(untrustedConfig) {
|
|
9520
|
-
const config = validateAdapterConfig$
|
|
9520
|
+
const config = validateAdapterConfig$c(untrustedConfig, deleteSemanticSubMetric_ConfigPropertyNames);
|
|
9521
9521
|
// Invalid or incomplete config
|
|
9522
9522
|
if (config === null) {
|
|
9523
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
9523
|
+
throw new Error(`Invalid config for "${adapterName$c}"`);
|
|
9524
9524
|
}
|
|
9525
|
-
return buildNetworkSnapshot$
|
|
9525
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
9526
9526
|
};
|
|
9527
9527
|
};
|
|
9528
9528
|
|
|
9529
|
+
const VERSION$8 = "e96f6d15d947eadd33aeb16dd9222420";
|
|
9530
|
+
function validate$8(obj, path = 'SemanticDependencyOutputRepresentation') {
|
|
9531
|
+
const v_error = (() => {
|
|
9532
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9533
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9534
|
+
}
|
|
9535
|
+
const obj_apiName = obj.apiName;
|
|
9536
|
+
const path_apiName = path + '.apiName';
|
|
9537
|
+
if (typeof obj_apiName !== 'string') {
|
|
9538
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
9539
|
+
}
|
|
9540
|
+
if (obj.definitionType !== undefined) {
|
|
9541
|
+
const obj_definitionType = obj.definitionType;
|
|
9542
|
+
const path_definitionType = path + '.definitionType';
|
|
9543
|
+
if (typeof obj_definitionType !== 'string') {
|
|
9544
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionType + '" (at "' + path_definitionType + '")');
|
|
9545
|
+
}
|
|
9546
|
+
}
|
|
9547
|
+
if (obj.label !== undefined) {
|
|
9548
|
+
const obj_label = obj.label;
|
|
9549
|
+
const path_label = path + '.label';
|
|
9550
|
+
if (typeof obj_label !== 'string') {
|
|
9551
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
9552
|
+
}
|
|
9553
|
+
}
|
|
9554
|
+
if (obj.modelApiName !== undefined) {
|
|
9555
|
+
const obj_modelApiName = obj.modelApiName;
|
|
9556
|
+
const path_modelApiName = path + '.modelApiName';
|
|
9557
|
+
if (typeof obj_modelApiName !== 'string') {
|
|
9558
|
+
return new TypeError('Expected "string" but received "' + typeof obj_modelApiName + '" (at "' + path_modelApiName + '")');
|
|
9559
|
+
}
|
|
9560
|
+
}
|
|
9561
|
+
})();
|
|
9562
|
+
return v_error === undefined ? null : v_error;
|
|
9563
|
+
}
|
|
9564
|
+
const select$k = function SemanticDependencyOutputRepresentationSelect() {
|
|
9565
|
+
return {
|
|
9566
|
+
kind: 'Fragment',
|
|
9567
|
+
version: VERSION$8,
|
|
9568
|
+
private: [],
|
|
9569
|
+
selections: [
|
|
9570
|
+
{
|
|
9571
|
+
name: 'apiName',
|
|
9572
|
+
kind: 'Scalar'
|
|
9573
|
+
},
|
|
9574
|
+
{
|
|
9575
|
+
name: 'definitionType',
|
|
9576
|
+
kind: 'Scalar',
|
|
9577
|
+
required: false
|
|
9578
|
+
},
|
|
9579
|
+
{
|
|
9580
|
+
name: 'label',
|
|
9581
|
+
kind: 'Scalar',
|
|
9582
|
+
required: false
|
|
9583
|
+
},
|
|
9584
|
+
{
|
|
9585
|
+
name: 'modelApiName',
|
|
9586
|
+
kind: 'Scalar',
|
|
9587
|
+
required: false
|
|
9588
|
+
}
|
|
9589
|
+
]
|
|
9590
|
+
};
|
|
9591
|
+
};
|
|
9592
|
+
function equals$8(existing, incoming) {
|
|
9593
|
+
const existing_apiName = existing.apiName;
|
|
9594
|
+
const incoming_apiName = incoming.apiName;
|
|
9595
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
9596
|
+
return false;
|
|
9597
|
+
}
|
|
9598
|
+
const existing_definitionType = existing.definitionType;
|
|
9599
|
+
const incoming_definitionType = incoming.definitionType;
|
|
9600
|
+
// if at least one of these optionals is defined
|
|
9601
|
+
if (existing_definitionType !== undefined || incoming_definitionType !== undefined) {
|
|
9602
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9603
|
+
// not equal
|
|
9604
|
+
if (existing_definitionType === undefined || incoming_definitionType === undefined) {
|
|
9605
|
+
return false;
|
|
9606
|
+
}
|
|
9607
|
+
if (!(existing_definitionType === incoming_definitionType)) {
|
|
9608
|
+
return false;
|
|
9609
|
+
}
|
|
9610
|
+
}
|
|
9611
|
+
const existing_label = existing.label;
|
|
9612
|
+
const incoming_label = incoming.label;
|
|
9613
|
+
// if at least one of these optionals is defined
|
|
9614
|
+
if (existing_label !== undefined || incoming_label !== undefined) {
|
|
9615
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9616
|
+
// not equal
|
|
9617
|
+
if (existing_label === undefined || incoming_label === undefined) {
|
|
9618
|
+
return false;
|
|
9619
|
+
}
|
|
9620
|
+
if (!(existing_label === incoming_label)) {
|
|
9621
|
+
return false;
|
|
9622
|
+
}
|
|
9623
|
+
}
|
|
9624
|
+
const existing_modelApiName = existing.modelApiName;
|
|
9625
|
+
const incoming_modelApiName = incoming.modelApiName;
|
|
9626
|
+
// if at least one of these optionals is defined
|
|
9627
|
+
if (existing_modelApiName !== undefined || incoming_modelApiName !== undefined) {
|
|
9628
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9629
|
+
// not equal
|
|
9630
|
+
if (existing_modelApiName === undefined || incoming_modelApiName === undefined) {
|
|
9631
|
+
return false;
|
|
9632
|
+
}
|
|
9633
|
+
if (!(existing_modelApiName === incoming_modelApiName)) {
|
|
9634
|
+
return false;
|
|
9635
|
+
}
|
|
9636
|
+
}
|
|
9637
|
+
return true;
|
|
9638
|
+
}
|
|
9639
|
+
|
|
9640
|
+
const VERSION$7 = "62e5e0ffeb783cdde37da72d400b0869";
|
|
9641
|
+
function validate$7(obj, path = 'SemanticDependencyInnerCollectionOutputRepresentation') {
|
|
9642
|
+
const v_error = (() => {
|
|
9643
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9644
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9645
|
+
}
|
|
9646
|
+
if (obj.definitionApiName !== undefined) {
|
|
9647
|
+
const obj_definitionApiName = obj.definitionApiName;
|
|
9648
|
+
const path_definitionApiName = path + '.definitionApiName';
|
|
9649
|
+
if (typeof obj_definitionApiName !== 'string') {
|
|
9650
|
+
return new TypeError('Expected "string" but received "' + typeof obj_definitionApiName + '" (at "' + path_definitionApiName + '")');
|
|
9651
|
+
}
|
|
9652
|
+
}
|
|
9653
|
+
if (obj.dependencies !== undefined) {
|
|
9654
|
+
const obj_dependencies = obj.dependencies;
|
|
9655
|
+
const path_dependencies = path + '.dependencies';
|
|
9656
|
+
if (!ArrayIsArray(obj_dependencies)) {
|
|
9657
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dependencies + '" (at "' + path_dependencies + '")');
|
|
9658
|
+
}
|
|
9659
|
+
for (let i = 0; i < obj_dependencies.length; i++) {
|
|
9660
|
+
const obj_dependencies_item = obj_dependencies[i];
|
|
9661
|
+
const path_dependencies_item = path_dependencies + '[' + i + ']';
|
|
9662
|
+
const referencepath_dependencies_itemValidationError = validate$8(obj_dependencies_item, path_dependencies_item);
|
|
9663
|
+
if (referencepath_dependencies_itemValidationError !== null) {
|
|
9664
|
+
let message = 'Object doesn\'t match SemanticDependencyOutputRepresentation (at "' + path_dependencies_item + '")\n';
|
|
9665
|
+
message += referencepath_dependencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9666
|
+
return new TypeError(message);
|
|
9667
|
+
}
|
|
9668
|
+
}
|
|
9669
|
+
}
|
|
9670
|
+
if (obj.fieldApiName !== undefined) {
|
|
9671
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
9672
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
9673
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
9674
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
9675
|
+
}
|
|
9676
|
+
}
|
|
9677
|
+
})();
|
|
9678
|
+
return v_error === undefined ? null : v_error;
|
|
9679
|
+
}
|
|
9680
|
+
const select$j = function SemanticDependencyInnerCollectionOutputRepresentationSelect() {
|
|
9681
|
+
const { selections: SemanticDependencyOutputRepresentation__selections, opaque: SemanticDependencyOutputRepresentation__opaque, } = select$k();
|
|
9682
|
+
return {
|
|
9683
|
+
kind: 'Fragment',
|
|
9684
|
+
version: VERSION$7,
|
|
9685
|
+
private: [],
|
|
9686
|
+
selections: [
|
|
9687
|
+
{
|
|
9688
|
+
name: 'definitionApiName',
|
|
9689
|
+
kind: 'Scalar',
|
|
9690
|
+
required: false
|
|
9691
|
+
},
|
|
9692
|
+
{
|
|
9693
|
+
name: 'dependencies',
|
|
9694
|
+
kind: 'Object',
|
|
9695
|
+
plural: true,
|
|
9696
|
+
selections: SemanticDependencyOutputRepresentation__selections,
|
|
9697
|
+
required: false
|
|
9698
|
+
},
|
|
9699
|
+
{
|
|
9700
|
+
name: 'fieldApiName',
|
|
9701
|
+
kind: 'Scalar',
|
|
9702
|
+
required: false
|
|
9703
|
+
}
|
|
9704
|
+
]
|
|
9705
|
+
};
|
|
9706
|
+
};
|
|
9707
|
+
function equals$7(existing, incoming) {
|
|
9708
|
+
const existing_definitionApiName = existing.definitionApiName;
|
|
9709
|
+
const incoming_definitionApiName = incoming.definitionApiName;
|
|
9710
|
+
// if at least one of these optionals is defined
|
|
9711
|
+
if (existing_definitionApiName !== undefined || incoming_definitionApiName !== undefined) {
|
|
9712
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9713
|
+
// not equal
|
|
9714
|
+
if (existing_definitionApiName === undefined || incoming_definitionApiName === undefined) {
|
|
9715
|
+
return false;
|
|
9716
|
+
}
|
|
9717
|
+
if (!(existing_definitionApiName === incoming_definitionApiName)) {
|
|
9718
|
+
return false;
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9721
|
+
const existing_fieldApiName = existing.fieldApiName;
|
|
9722
|
+
const incoming_fieldApiName = incoming.fieldApiName;
|
|
9723
|
+
// if at least one of these optionals is defined
|
|
9724
|
+
if (existing_fieldApiName !== undefined || incoming_fieldApiName !== undefined) {
|
|
9725
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9726
|
+
// not equal
|
|
9727
|
+
if (existing_fieldApiName === undefined || incoming_fieldApiName === undefined) {
|
|
9728
|
+
return false;
|
|
9729
|
+
}
|
|
9730
|
+
if (!(existing_fieldApiName === incoming_fieldApiName)) {
|
|
9731
|
+
return false;
|
|
9732
|
+
}
|
|
9733
|
+
}
|
|
9734
|
+
const existing_dependencies = existing.dependencies;
|
|
9735
|
+
const incoming_dependencies = incoming.dependencies;
|
|
9736
|
+
// if at least one of these optionals is defined
|
|
9737
|
+
if (existing_dependencies !== undefined || incoming_dependencies !== undefined) {
|
|
9738
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9739
|
+
// not equal
|
|
9740
|
+
if (existing_dependencies === undefined || incoming_dependencies === undefined) {
|
|
9741
|
+
return false;
|
|
9742
|
+
}
|
|
9743
|
+
const equals_dependencies_items = equalsArray(existing_dependencies, incoming_dependencies, (existing_dependencies_item, incoming_dependencies_item) => {
|
|
9744
|
+
if (!(equals$8(existing_dependencies_item, incoming_dependencies_item))) {
|
|
9745
|
+
return false;
|
|
9746
|
+
}
|
|
9747
|
+
});
|
|
9748
|
+
if (equals_dependencies_items === false) {
|
|
9749
|
+
return false;
|
|
9750
|
+
}
|
|
9751
|
+
}
|
|
9752
|
+
return true;
|
|
9753
|
+
}
|
|
9754
|
+
|
|
9755
|
+
const VERSION$6 = "e710141192798ab103ce7e9b469baad4";
|
|
9756
|
+
function validate$6(obj, path = 'SemanticDependencyCollectionOutputRepresentation') {
|
|
9757
|
+
const v_error = (() => {
|
|
9758
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9759
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9760
|
+
}
|
|
9761
|
+
if (obj.item !== undefined) {
|
|
9762
|
+
const obj_item = obj.item;
|
|
9763
|
+
const path_item = path + '.item';
|
|
9764
|
+
if (!ArrayIsArray(obj_item)) {
|
|
9765
|
+
return new TypeError('Expected "array" but received "' + typeof obj_item + '" (at "' + path_item + '")');
|
|
9766
|
+
}
|
|
9767
|
+
for (let i = 0; i < obj_item.length; i++) {
|
|
9768
|
+
const obj_item_item = obj_item[i];
|
|
9769
|
+
const path_item_item = path_item + '[' + i + ']';
|
|
9770
|
+
const referencepath_item_itemValidationError = validate$7(obj_item_item, path_item_item);
|
|
9771
|
+
if (referencepath_item_itemValidationError !== null) {
|
|
9772
|
+
let message = 'Object doesn\'t match SemanticDependencyInnerCollectionOutputRepresentation (at "' + path_item_item + '")\n';
|
|
9773
|
+
message += referencepath_item_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
9774
|
+
return new TypeError(message);
|
|
9775
|
+
}
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
})();
|
|
9779
|
+
return v_error === undefined ? null : v_error;
|
|
9780
|
+
}
|
|
9781
|
+
const RepresentationType$5 = 'SemanticDependencyCollectionOutputRepresentation';
|
|
9782
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
9783
|
+
return input;
|
|
9784
|
+
}
|
|
9785
|
+
const select$i = function SemanticDependencyCollectionOutputRepresentationSelect() {
|
|
9786
|
+
const { selections: SemanticDependencyInnerCollectionOutputRepresentation__selections, opaque: SemanticDependencyInnerCollectionOutputRepresentation__opaque, } = select$j();
|
|
9787
|
+
return {
|
|
9788
|
+
kind: 'Fragment',
|
|
9789
|
+
version: VERSION$6,
|
|
9790
|
+
private: [],
|
|
9791
|
+
selections: [
|
|
9792
|
+
{
|
|
9793
|
+
name: 'item',
|
|
9794
|
+
kind: 'Object',
|
|
9795
|
+
plural: true,
|
|
9796
|
+
selections: SemanticDependencyInnerCollectionOutputRepresentation__selections,
|
|
9797
|
+
required: false
|
|
9798
|
+
}
|
|
9799
|
+
]
|
|
9800
|
+
};
|
|
9801
|
+
};
|
|
9802
|
+
function equals$6(existing, incoming) {
|
|
9803
|
+
const existing_item = existing.item;
|
|
9804
|
+
const incoming_item = incoming.item;
|
|
9805
|
+
// if at least one of these optionals is defined
|
|
9806
|
+
if (existing_item !== undefined || incoming_item !== undefined) {
|
|
9807
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9808
|
+
// not equal
|
|
9809
|
+
if (existing_item === undefined || incoming_item === undefined) {
|
|
9810
|
+
return false;
|
|
9811
|
+
}
|
|
9812
|
+
const equals_item_items = equalsArray(existing_item, incoming_item, (existing_item_item, incoming_item_item) => {
|
|
9813
|
+
if (!(equals$7(existing_item_item, incoming_item_item))) {
|
|
9814
|
+
return false;
|
|
9815
|
+
}
|
|
9816
|
+
});
|
|
9817
|
+
if (equals_item_items === false) {
|
|
9818
|
+
return false;
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
return true;
|
|
9822
|
+
}
|
|
9823
|
+
const ingest$5 = function SemanticDependencyCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
9824
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9825
|
+
const validateError = validate$6(input);
|
|
9826
|
+
if (validateError !== null) {
|
|
9827
|
+
throw validateError;
|
|
9828
|
+
}
|
|
9829
|
+
}
|
|
9830
|
+
const key = path.fullPath;
|
|
9831
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 30000;
|
|
9832
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "SemanticAuthoring", VERSION$6, RepresentationType$5, equals$6);
|
|
9833
|
+
return createLink(key);
|
|
9834
|
+
};
|
|
9835
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
9836
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
9837
|
+
const rootKey = fullPathFactory();
|
|
9838
|
+
rootKeySet.set(rootKey, {
|
|
9839
|
+
namespace: keyPrefix,
|
|
9840
|
+
representationName: RepresentationType$5,
|
|
9841
|
+
mergeable: false
|
|
9842
|
+
});
|
|
9843
|
+
}
|
|
9844
|
+
|
|
9845
|
+
function select$h(luvio, params) {
|
|
9846
|
+
return select$i();
|
|
9847
|
+
}
|
|
9848
|
+
function keyBuilder$j(luvio, params) {
|
|
9849
|
+
return keyPrefix + '::SemanticDependencyCollectionOutputRepresentation:(' + 'types:' + params.queryParams.types + ',' + 'modelApiNameOrId:' + params.urlParams.modelApiNameOrId + ')';
|
|
9850
|
+
}
|
|
9851
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
9852
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
9853
|
+
}
|
|
9854
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
9855
|
+
const { body } = response;
|
|
9856
|
+
const key = keyBuilder$j(luvio, resourceParams);
|
|
9857
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
9858
|
+
const snapshot = luvio.storeLookup({
|
|
9859
|
+
recordId: key,
|
|
9860
|
+
node: select$h(),
|
|
9861
|
+
variables: {},
|
|
9862
|
+
}, snapshotRefresh);
|
|
9863
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9864
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
9865
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
9866
|
+
}
|
|
9867
|
+
}
|
|
9868
|
+
deepFreeze(snapshot.data);
|
|
9869
|
+
return snapshot;
|
|
9870
|
+
}
|
|
9871
|
+
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
9872
|
+
const key = keyBuilder$j(luvio, params);
|
|
9873
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9874
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
9875
|
+
return errorSnapshot;
|
|
9876
|
+
}
|
|
9877
|
+
function createResourceRequest$b(config) {
|
|
9878
|
+
const headers = {};
|
|
9879
|
+
return {
|
|
9880
|
+
baseUri: '/services/data/v63.0',
|
|
9881
|
+
basePath: '/ssot/semantic/models/' + config.urlParams.modelApiNameOrId + '/dependencies',
|
|
9882
|
+
method: 'get',
|
|
9883
|
+
body: null,
|
|
9884
|
+
urlParams: config.urlParams,
|
|
9885
|
+
queryParams: config.queryParams,
|
|
9886
|
+
headers,
|
|
9887
|
+
priority: 'normal',
|
|
9888
|
+
};
|
|
9889
|
+
}
|
|
9890
|
+
|
|
9891
|
+
const adapterName$b = 'getLeafDependenciesByTypes';
|
|
9892
|
+
const getLeafDependenciesByTypes_ConfigPropertyMetadata = [
|
|
9893
|
+
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9894
|
+
generateParamConfigMetadata('types', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9895
|
+
];
|
|
9896
|
+
const getLeafDependenciesByTypes_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9897
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$g(getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9898
|
+
function keyBuilder$i(luvio, config) {
|
|
9899
|
+
const resourceParams = createResourceParams$b(config);
|
|
9900
|
+
return keyBuilder$j(luvio, resourceParams);
|
|
9901
|
+
}
|
|
9902
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
9903
|
+
const config = {};
|
|
9904
|
+
typeCheckConfig$g(untrustedConfig, config, getLeafDependenciesByTypes_ConfigPropertyMetadata);
|
|
9905
|
+
return config;
|
|
9906
|
+
}
|
|
9907
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
9908
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
9909
|
+
return null;
|
|
9910
|
+
}
|
|
9911
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
9912
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
9913
|
+
}
|
|
9914
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
9915
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
9916
|
+
return null;
|
|
9917
|
+
}
|
|
9918
|
+
return config;
|
|
9919
|
+
}
|
|
9920
|
+
function adapterFragment$9(luvio, config) {
|
|
9921
|
+
createResourceParams$b(config);
|
|
9922
|
+
return select$h();
|
|
9923
|
+
}
|
|
9924
|
+
function onFetchResponseSuccess$9(luvio, config, resourceParams, response) {
|
|
9925
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
9926
|
+
config,
|
|
9927
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9928
|
+
});
|
|
9929
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9930
|
+
}
|
|
9931
|
+
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
9932
|
+
const snapshot = ingestError$9(luvio, resourceParams, response, {
|
|
9933
|
+
config,
|
|
9934
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9935
|
+
});
|
|
9936
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
9937
|
+
}
|
|
9938
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
9939
|
+
const resourceParams = createResourceParams$b(config);
|
|
9940
|
+
const request = createResourceRequest$b(resourceParams);
|
|
9941
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
9942
|
+
.then((response) => {
|
|
9943
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$9(luvio, config, resourceParams, response), () => {
|
|
9944
|
+
const cache = new StoreKeyMap();
|
|
9945
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
9946
|
+
return cache;
|
|
9947
|
+
});
|
|
9948
|
+
}, (response) => {
|
|
9949
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$9(luvio, config, resourceParams, response));
|
|
9950
|
+
});
|
|
9951
|
+
}
|
|
9952
|
+
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
9953
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
9954
|
+
}
|
|
9955
|
+
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
9956
|
+
const { luvio, config } = context;
|
|
9957
|
+
const selector = {
|
|
9958
|
+
recordId: keyBuilder$i(luvio, config),
|
|
9959
|
+
node: adapterFragment$9(luvio, config),
|
|
9960
|
+
variables: {},
|
|
9961
|
+
};
|
|
9962
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
9963
|
+
config,
|
|
9964
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
9965
|
+
});
|
|
9966
|
+
return cacheSnapshot;
|
|
9967
|
+
}
|
|
9968
|
+
const getLeafDependenciesByTypesAdapterFactory = (luvio) => function SemanticAuthoring__getLeafDependenciesByTypes(untrustedConfig, requestContext) {
|
|
9969
|
+
const config = validateAdapterConfig$b(untrustedConfig, getLeafDependenciesByTypes_ConfigPropertyNames);
|
|
9970
|
+
// Invalid or incomplete config
|
|
9971
|
+
if (config === null) {
|
|
9972
|
+
return null;
|
|
9973
|
+
}
|
|
9974
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
9975
|
+
buildCachedSnapshotCachePolicy$9, buildNetworkSnapshotCachePolicy$9);
|
|
9976
|
+
};
|
|
9977
|
+
|
|
9529
9978
|
function select$g(luvio, params) {
|
|
9530
|
-
return select$
|
|
9979
|
+
return select$q();
|
|
9531
9980
|
}
|
|
9532
9981
|
function keyBuilder$h(luvio, params) {
|
|
9533
|
-
return keyBuilder$
|
|
9982
|
+
return keyBuilder$p(luvio, {
|
|
9534
9983
|
name: params.urlParams.metricNameOrId
|
|
9535
9984
|
});
|
|
9536
9985
|
}
|
|
9537
9986
|
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
9538
|
-
getTypeCacheKeys$
|
|
9987
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
9539
9988
|
}
|
|
9540
9989
|
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
9541
9990
|
const { body } = response;
|
|
9542
9991
|
const key = keyBuilder$h(luvio, resourceParams);
|
|
9543
|
-
luvio.storeIngest(key, ingest$
|
|
9992
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9544
9993
|
const snapshot = luvio.storeLookup({
|
|
9545
9994
|
recordId: key,
|
|
9546
9995
|
node: select$g(),
|
|
@@ -9587,14 +10036,14 @@ const getSemanticMetric_ConfigPropertyMetadata = [
|
|
|
9587
10036
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9588
10037
|
];
|
|
9589
10038
|
const getSemanticMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getSemanticMetric_ConfigPropertyMetadata);
|
|
9590
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
10039
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$g(getSemanticMetric_ConfigPropertyMetadata);
|
|
9591
10040
|
function keyBuilder$g(luvio, config) {
|
|
9592
10041
|
const resourceParams = createResourceParams$a(config);
|
|
9593
10042
|
return keyBuilder$h(luvio, resourceParams);
|
|
9594
10043
|
}
|
|
9595
10044
|
function typeCheckConfig$a(untrustedConfig) {
|
|
9596
10045
|
const config = {};
|
|
9597
|
-
typeCheckConfig$
|
|
10046
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetric_ConfigPropertyMetadata);
|
|
9598
10047
|
return config;
|
|
9599
10048
|
}
|
|
9600
10049
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -9643,7 +10092,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
9643
10092
|
});
|
|
9644
10093
|
}
|
|
9645
10094
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
9646
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10095
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
9647
10096
|
}
|
|
9648
10097
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
9649
10098
|
const { luvio, config } = context;
|
|
@@ -9669,7 +10118,7 @@ const getSemanticMetricAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
9669
10118
|
};
|
|
9670
10119
|
const notifyChangeFactory$2 = (luvio, options) => {
|
|
9671
10120
|
return function getSsotSemanticModelsMetricsByMetricNameOrIdAndModelApiNameOrIdNotifyChange(configs) {
|
|
9672
|
-
const keys = configs.map(c => keyBuilder$
|
|
10121
|
+
const keys = configs.map(c => keyBuilder$p(luvio, c));
|
|
9673
10122
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
9674
10123
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
9675
10124
|
const { key, record: val } = entries[i];
|
|
@@ -9678,11 +10127,11 @@ const notifyChangeFactory$2 = (luvio, options) => {
|
|
|
9678
10127
|
.then((response) => {
|
|
9679
10128
|
return luvio.handleSuccessResponse(() => {
|
|
9680
10129
|
const { body } = response;
|
|
9681
|
-
luvio.storeIngest(key, ingest$
|
|
10130
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
9682
10131
|
return luvio.storeBroadcast();
|
|
9683
10132
|
}, () => {
|
|
9684
10133
|
const cache = new StoreKeyMap();
|
|
9685
|
-
getTypeCacheKeys$
|
|
10134
|
+
getTypeCacheKeys$9(cache, luvio, response.body);
|
|
9686
10135
|
return cache;
|
|
9687
10136
|
});
|
|
9688
10137
|
}, (error) => {
|
|
@@ -9728,7 +10177,7 @@ function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
|
9728
10177
|
for (let i = 0; i < input_metrics.length; i++) {
|
|
9729
10178
|
const input_metrics_item = input_metrics[i];
|
|
9730
10179
|
let input_metrics_item_id = input_metrics_id + '__' + i;
|
|
9731
|
-
input_metrics[i] = ingest$
|
|
10180
|
+
input_metrics[i] = ingest$9(input_metrics_item, {
|
|
9732
10181
|
fullPath: input_metrics_item_id,
|
|
9733
10182
|
propertyName: i,
|
|
9734
10183
|
parent: {
|
|
@@ -9753,7 +10202,7 @@ const select$f = function SemanticMetricCollectionOutputRepresentationSelect() {
|
|
|
9753
10202
|
kind: 'Link',
|
|
9754
10203
|
plural: true,
|
|
9755
10204
|
required: false,
|
|
9756
|
-
fragment: select$
|
|
10205
|
+
fragment: select$q()
|
|
9757
10206
|
}
|
|
9758
10207
|
]
|
|
9759
10208
|
};
|
|
@@ -9802,7 +10251,7 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
9802
10251
|
if (input.metrics !== undefined) {
|
|
9803
10252
|
const input_metrics_length = input.metrics.length;
|
|
9804
10253
|
for (let i = 0; i < input_metrics_length; i++) {
|
|
9805
|
-
getTypeCacheKeys$
|
|
10254
|
+
getTypeCacheKeys$9(rootKeySet, luvio, input.metrics[i]);
|
|
9806
10255
|
}
|
|
9807
10256
|
}
|
|
9808
10257
|
}
|
|
@@ -9858,14 +10307,14 @@ const getSemanticMetrics_ConfigPropertyMetadata = [
|
|
|
9858
10307
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9859
10308
|
];
|
|
9860
10309
|
const getSemanticMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9861
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
10310
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$g(getSemanticMetrics_ConfigPropertyMetadata);
|
|
9862
10311
|
function keyBuilder$e(luvio, config) {
|
|
9863
10312
|
const resourceParams = createResourceParams$9(config);
|
|
9864
10313
|
return keyBuilder$f(luvio, resourceParams);
|
|
9865
10314
|
}
|
|
9866
10315
|
function typeCheckConfig$9(untrustedConfig) {
|
|
9867
10316
|
const config = {};
|
|
9868
|
-
typeCheckConfig$
|
|
10317
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetrics_ConfigPropertyMetadata);
|
|
9869
10318
|
return config;
|
|
9870
10319
|
}
|
|
9871
10320
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -9914,7 +10363,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
9914
10363
|
});
|
|
9915
10364
|
}
|
|
9916
10365
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
9917
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10366
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
9918
10367
|
}
|
|
9919
10368
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
9920
10369
|
const { luvio, config } = context;
|
|
@@ -9992,14 +10441,14 @@ const getSemanticMetricsByIds_ConfigPropertyMetadata = [
|
|
|
9992
10441
|
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9993
10442
|
];
|
|
9994
10443
|
const getSemanticMetricsByIds_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9995
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
10444
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
9996
10445
|
function keyBuilder$c(luvio, config) {
|
|
9997
10446
|
const resourceParams = createResourceParams$8(config);
|
|
9998
10447
|
return keyBuilder$d(luvio, resourceParams);
|
|
9999
10448
|
}
|
|
10000
10449
|
function typeCheckConfig$8(untrustedConfig) {
|
|
10001
10450
|
const config = {};
|
|
10002
|
-
typeCheckConfig$
|
|
10451
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsByIds_ConfigPropertyMetadata);
|
|
10003
10452
|
return config;
|
|
10004
10453
|
}
|
|
10005
10454
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -10048,7 +10497,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
10048
10497
|
});
|
|
10049
10498
|
}
|
|
10050
10499
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
10051
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10500
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
10052
10501
|
}
|
|
10053
10502
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
10054
10503
|
const { luvio, config } = context;
|
|
@@ -10111,7 +10560,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
10111
10560
|
for (let i = 0; i < input_subMetrics.length; i++) {
|
|
10112
10561
|
const input_subMetrics_item = input_subMetrics[i];
|
|
10113
10562
|
let input_subMetrics_item_id = input_subMetrics_id + '__' + i;
|
|
10114
|
-
input_subMetrics[i] = ingest$
|
|
10563
|
+
input_subMetrics[i] = ingest$6(input_subMetrics_item, {
|
|
10115
10564
|
fullPath: input_subMetrics_item_id,
|
|
10116
10565
|
propertyName: i,
|
|
10117
10566
|
parent: {
|
|
@@ -10141,7 +10590,7 @@ const select$c = function SemanticSubMetricsByMetricOutputRepresentationSelect()
|
|
|
10141
10590
|
kind: 'Link',
|
|
10142
10591
|
plural: true,
|
|
10143
10592
|
required: false,
|
|
10144
|
-
fragment: select$
|
|
10593
|
+
fragment: select$m()
|
|
10145
10594
|
}
|
|
10146
10595
|
]
|
|
10147
10596
|
};
|
|
@@ -10203,7 +10652,7 @@ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10203
10652
|
if (input.subMetrics !== undefined) {
|
|
10204
10653
|
const input_subMetrics_length = input.subMetrics.length;
|
|
10205
10654
|
for (let i = 0; i < input_subMetrics_length; i++) {
|
|
10206
|
-
getTypeCacheKeys$
|
|
10655
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.subMetrics[i]);
|
|
10207
10656
|
}
|
|
10208
10657
|
}
|
|
10209
10658
|
}
|
|
@@ -10370,14 +10819,14 @@ const getSemanticMetricsToSubMetrics_ConfigPropertyMetadata = [
|
|
|
10370
10819
|
generateParamConfigMetadata('modelApiNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10371
10820
|
];
|
|
10372
10821
|
const getSemanticMetricsToSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10373
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
10822
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$g(getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10374
10823
|
function keyBuilder$a(luvio, config) {
|
|
10375
10824
|
const resourceParams = createResourceParams$7(config);
|
|
10376
10825
|
return keyBuilder$b(luvio, resourceParams);
|
|
10377
10826
|
}
|
|
10378
10827
|
function typeCheckConfig$7(untrustedConfig) {
|
|
10379
10828
|
const config = {};
|
|
10380
|
-
typeCheckConfig$
|
|
10829
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticMetricsToSubMetrics_ConfigPropertyMetadata);
|
|
10381
10830
|
return config;
|
|
10382
10831
|
}
|
|
10383
10832
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -10426,7 +10875,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
10426
10875
|
});
|
|
10427
10876
|
}
|
|
10428
10877
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
10429
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10878
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
10430
10879
|
}
|
|
10431
10880
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
10432
10881
|
const { luvio, config } = context;
|
|
@@ -10452,20 +10901,20 @@ const getSemanticMetricsToSubMetricsAdapterFactory = (luvio) => function Semanti
|
|
|
10452
10901
|
};
|
|
10453
10902
|
|
|
10454
10903
|
function select$9(luvio, params) {
|
|
10455
|
-
return select$
|
|
10904
|
+
return select$o();
|
|
10456
10905
|
}
|
|
10457
10906
|
function keyBuilder$9(luvio, params) {
|
|
10458
|
-
return keyBuilder$
|
|
10907
|
+
return keyBuilder$n(luvio, {
|
|
10459
10908
|
name: params.urlParams.modelApiNameOrId
|
|
10460
10909
|
});
|
|
10461
10910
|
}
|
|
10462
10911
|
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
10463
|
-
getTypeCacheKeys$
|
|
10912
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
10464
10913
|
}
|
|
10465
10914
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
10466
10915
|
const { body } = response;
|
|
10467
10916
|
const key = keyBuilder$9(luvio, resourceParams);
|
|
10468
|
-
luvio.storeIngest(key, ingest$
|
|
10917
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10469
10918
|
const snapshot = luvio.storeLookup({
|
|
10470
10919
|
recordId: key,
|
|
10471
10920
|
node: select$9(),
|
|
@@ -10515,14 +10964,14 @@ const getSemanticModel_ConfigPropertyMetadata = [
|
|
|
10515
10964
|
generateParamConfigMetadata('includeTableKeys', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
10516
10965
|
];
|
|
10517
10966
|
const getSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSemanticModel_ConfigPropertyMetadata);
|
|
10518
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
10967
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$g(getSemanticModel_ConfigPropertyMetadata);
|
|
10519
10968
|
function keyBuilder$8(luvio, config) {
|
|
10520
10969
|
const resourceParams = createResourceParams$6(config);
|
|
10521
10970
|
return keyBuilder$9(luvio, resourceParams);
|
|
10522
10971
|
}
|
|
10523
10972
|
function typeCheckConfig$6(untrustedConfig) {
|
|
10524
10973
|
const config = {};
|
|
10525
|
-
typeCheckConfig$
|
|
10974
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModel_ConfigPropertyMetadata);
|
|
10526
10975
|
return config;
|
|
10527
10976
|
}
|
|
10528
10977
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -10571,7 +11020,7 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
10571
11020
|
});
|
|
10572
11021
|
}
|
|
10573
11022
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
10574
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11023
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
10575
11024
|
}
|
|
10576
11025
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
10577
11026
|
const { luvio, config } = context;
|
|
@@ -10597,7 +11046,7 @@ const getSemanticModelAdapterFactory = (luvio) => function SemanticAuthoring__ge
|
|
|
10597
11046
|
};
|
|
10598
11047
|
const notifyChangeFactory$1 = (luvio, options) => {
|
|
10599
11048
|
return function getSsotSemanticModelsByModelApiNameOrIdNotifyChange(configs) {
|
|
10600
|
-
const keys = configs.map(c => keyBuilder$
|
|
11049
|
+
const keys = configs.map(c => keyBuilder$n(luvio, c));
|
|
10601
11050
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
10602
11051
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
10603
11052
|
const { key, record: val } = entries[i];
|
|
@@ -10606,11 +11055,11 @@ const notifyChangeFactory$1 = (luvio, options) => {
|
|
|
10606
11055
|
.then((response) => {
|
|
10607
11056
|
return luvio.handleSuccessResponse(() => {
|
|
10608
11057
|
const { body } = response;
|
|
10609
|
-
luvio.storeIngest(key, ingest$
|
|
11058
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
10610
11059
|
return luvio.storeBroadcast();
|
|
10611
11060
|
}, () => {
|
|
10612
11061
|
const cache = new StoreKeyMap();
|
|
10613
|
-
getTypeCacheKeys$
|
|
11062
|
+
getTypeCacheKeys$7(cache, luvio, response.body);
|
|
10614
11063
|
return cache;
|
|
10615
11064
|
});
|
|
10616
11065
|
}, (error) => {
|
|
@@ -10659,7 +11108,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10659
11108
|
for (let i = 0; i < obj_baseModels.length; i++) {
|
|
10660
11109
|
const obj_baseModels_item = obj_baseModels[i];
|
|
10661
11110
|
const path_baseModels_item = path_baseModels + '[' + i + ']';
|
|
10662
|
-
const referencepath_baseModels_itemValidationError = validate$
|
|
11111
|
+
const referencepath_baseModels_itemValidationError = validate$E(obj_baseModels_item, path_baseModels_item);
|
|
10663
11112
|
if (referencepath_baseModels_itemValidationError !== null) {
|
|
10664
11113
|
let message = 'Object doesn\'t match SemanticBaseModelOutputRepresentation (at "' + path_baseModels_item + '")\n';
|
|
10665
11114
|
message += referencepath_baseModels_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -10831,7 +11280,7 @@ function validate$2(obj, path = 'SemanticModelPartialOutputRepresentation') {
|
|
|
10831
11280
|
return v_error === undefined ? null : v_error;
|
|
10832
11281
|
}
|
|
10833
11282
|
const select$8 = function SemanticModelPartialOutputRepresentationSelect() {
|
|
10834
|
-
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$
|
|
11283
|
+
const { selections: SemanticBaseModelOutputRepresentation__selections, opaque: SemanticBaseModelOutputRepresentation__opaque, } = select$K();
|
|
10835
11284
|
return {
|
|
10836
11285
|
kind: 'Fragment',
|
|
10837
11286
|
version: VERSION$2,
|
|
@@ -11202,7 +11651,7 @@ function equals$2(existing, incoming) {
|
|
|
11202
11651
|
return false;
|
|
11203
11652
|
}
|
|
11204
11653
|
const equals_baseModels_items = equalsArray(existing_baseModels, incoming_baseModels, (existing_baseModels_item, incoming_baseModels_item) => {
|
|
11205
|
-
if (!(equals$
|
|
11654
|
+
if (!(equals$w(existing_baseModels_item, incoming_baseModels_item))) {
|
|
11206
11655
|
return false;
|
|
11207
11656
|
}
|
|
11208
11657
|
});
|
|
@@ -11559,14 +12008,14 @@ const getSemanticModels_ConfigPropertyMetadata = [
|
|
|
11559
12008
|
generateParamConfigMetadata('sourceCreationName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
11560
12009
|
];
|
|
11561
12010
|
const getSemanticModels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getSemanticModels_ConfigPropertyMetadata);
|
|
11562
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
12011
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$g(getSemanticModels_ConfigPropertyMetadata);
|
|
11563
12012
|
function keyBuilder$6(luvio, config) {
|
|
11564
12013
|
const resourceParams = createResourceParams$5(config);
|
|
11565
12014
|
return keyBuilder$7(luvio, resourceParams);
|
|
11566
12015
|
}
|
|
11567
12016
|
function typeCheckConfig$5(untrustedConfig) {
|
|
11568
12017
|
const config = {};
|
|
11569
|
-
typeCheckConfig$
|
|
12018
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticModels_ConfigPropertyMetadata);
|
|
11570
12019
|
return config;
|
|
11571
12020
|
}
|
|
11572
12021
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -11615,7 +12064,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
11615
12064
|
});
|
|
11616
12065
|
}
|
|
11617
12066
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
11618
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12067
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
11619
12068
|
}
|
|
11620
12069
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
11621
12070
|
const { luvio, config } = context;
|
|
@@ -11641,20 +12090,20 @@ const getSemanticModelsAdapterFactory = (luvio) => function SemanticAuthoring__g
|
|
|
11641
12090
|
};
|
|
11642
12091
|
|
|
11643
12092
|
function select$5(luvio, params) {
|
|
11644
|
-
return select$
|
|
12093
|
+
return select$m();
|
|
11645
12094
|
}
|
|
11646
12095
|
function keyBuilder$5(luvio, params) {
|
|
11647
|
-
return keyBuilder$
|
|
12096
|
+
return keyBuilder$m(luvio, {
|
|
11648
12097
|
name: params.urlParams.subMetricNameOrId
|
|
11649
12098
|
});
|
|
11650
12099
|
}
|
|
11651
12100
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
11652
|
-
getTypeCacheKeys$
|
|
12101
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
11653
12102
|
}
|
|
11654
12103
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
11655
12104
|
const { body } = response;
|
|
11656
12105
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
11657
|
-
luvio.storeIngest(key, ingest$
|
|
12106
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11658
12107
|
const snapshot = luvio.storeLookup({
|
|
11659
12108
|
recordId: key,
|
|
11660
12109
|
node: select$5(),
|
|
@@ -11701,14 +12150,14 @@ const getSemanticSubMetric_ConfigPropertyMetadata = [
|
|
|
11701
12150
|
generateParamConfigMetadata('subMetricNameOrId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11702
12151
|
];
|
|
11703
12152
|
const getSemanticSubMetric_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11704
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
12153
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11705
12154
|
function keyBuilder$4(luvio, config) {
|
|
11706
12155
|
const resourceParams = createResourceParams$4(config);
|
|
11707
12156
|
return keyBuilder$5(luvio, resourceParams);
|
|
11708
12157
|
}
|
|
11709
12158
|
function typeCheckConfig$4(untrustedConfig) {
|
|
11710
12159
|
const config = {};
|
|
11711
|
-
typeCheckConfig$
|
|
12160
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetric_ConfigPropertyMetadata);
|
|
11712
12161
|
return config;
|
|
11713
12162
|
}
|
|
11714
12163
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -11757,7 +12206,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
11757
12206
|
});
|
|
11758
12207
|
}
|
|
11759
12208
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
11760
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12209
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
11761
12210
|
}
|
|
11762
12211
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
11763
12212
|
const { luvio, config } = context;
|
|
@@ -11783,7 +12232,7 @@ const getSemanticSubMetricAdapterFactory = (luvio) => function SemanticAuthoring
|
|
|
11783
12232
|
};
|
|
11784
12233
|
const notifyChangeFactory = (luvio, options) => {
|
|
11785
12234
|
return function getSsotSemanticModelsSubMetricsByModelApiNameOrIdAndSubMetricNameOrIdNotifyChange(configs) {
|
|
11786
|
-
const keys = configs.map(c => keyBuilder$
|
|
12235
|
+
const keys = configs.map(c => keyBuilder$m(luvio, c));
|
|
11787
12236
|
luvio.getNotifyChangeStoreEntries(keys).then(entries => {
|
|
11788
12237
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
11789
12238
|
const { key, record: val } = entries[i];
|
|
@@ -11792,11 +12241,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
11792
12241
|
.then((response) => {
|
|
11793
12242
|
return luvio.handleSuccessResponse(() => {
|
|
11794
12243
|
const { body } = response;
|
|
11795
|
-
luvio.storeIngest(key, ingest$
|
|
12244
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
11796
12245
|
return luvio.storeBroadcast();
|
|
11797
12246
|
}, () => {
|
|
11798
12247
|
const cache = new StoreKeyMap();
|
|
11799
|
-
getTypeCacheKeys$
|
|
12248
|
+
getTypeCacheKeys$6(cache, luvio, response.body);
|
|
11800
12249
|
return cache;
|
|
11801
12250
|
});
|
|
11802
12251
|
}, (error) => {
|
|
@@ -11842,7 +12291,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
11842
12291
|
for (let i = 0; i < input_items.length; i++) {
|
|
11843
12292
|
const input_items_item = input_items[i];
|
|
11844
12293
|
let input_items_item_id = input_items_id + '__' + i;
|
|
11845
|
-
input_items[i] = ingest$
|
|
12294
|
+
input_items[i] = ingest$6(input_items_item, {
|
|
11846
12295
|
fullPath: input_items_item_id,
|
|
11847
12296
|
propertyName: i,
|
|
11848
12297
|
parent: {
|
|
@@ -11867,7 +12316,7 @@ const select$4 = function SemanticSubMetricCollectionOutputRepresentationSelect(
|
|
|
11867
12316
|
kind: 'Link',
|
|
11868
12317
|
plural: true,
|
|
11869
12318
|
required: false,
|
|
11870
|
-
fragment: select$
|
|
12319
|
+
fragment: select$m()
|
|
11871
12320
|
}
|
|
11872
12321
|
]
|
|
11873
12322
|
};
|
|
@@ -11916,7 +12365,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
11916
12365
|
if (input.items !== undefined) {
|
|
11917
12366
|
const input_items_length = input.items.length;
|
|
11918
12367
|
for (let i = 0; i < input_items_length; i++) {
|
|
11919
|
-
getTypeCacheKeys$
|
|
12368
|
+
getTypeCacheKeys$6(rootKeySet, luvio, input.items[i]);
|
|
11920
12369
|
}
|
|
11921
12370
|
}
|
|
11922
12371
|
}
|
|
@@ -11973,14 +12422,14 @@ const getSemanticSubMetrics_ConfigPropertyMetadata = [
|
|
|
11973
12422
|
generateParamConfigMetadata('hasGoal', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
11974
12423
|
];
|
|
11975
12424
|
const getSemanticSubMetrics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11976
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
12425
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11977
12426
|
function keyBuilder$2(luvio, config) {
|
|
11978
12427
|
const resourceParams = createResourceParams$3(config);
|
|
11979
12428
|
return keyBuilder$3(luvio, resourceParams);
|
|
11980
12429
|
}
|
|
11981
12430
|
function typeCheckConfig$3(untrustedConfig) {
|
|
11982
12431
|
const config = {};
|
|
11983
|
-
typeCheckConfig$
|
|
12432
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetrics_ConfigPropertyMetadata);
|
|
11984
12433
|
return config;
|
|
11985
12434
|
}
|
|
11986
12435
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -12029,7 +12478,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
12029
12478
|
});
|
|
12030
12479
|
}
|
|
12031
12480
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
12032
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12481
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
12033
12482
|
}
|
|
12034
12483
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
12035
12484
|
const { luvio, config } = context;
|
|
@@ -12058,7 +12507,7 @@ function select$2(luvio, params) {
|
|
|
12058
12507
|
return select$4();
|
|
12059
12508
|
}
|
|
12060
12509
|
function keyBuilder$1(luvio, params) {
|
|
12061
|
-
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12510
|
+
return keyPrefix + '::SemanticSubMetricCollectionOutputRepresentation:(' + 'sortBy:' + params.queryParams.sortBy + ',' + 'sortOrder:' + params.queryParams.sortOrder + ',' + 'subMetricIds:' + params.urlParams.subMetricIds + ')';
|
|
12062
12511
|
}
|
|
12063
12512
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
12064
12513
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -12094,7 +12543,7 @@ function createResourceRequest$2(config) {
|
|
|
12094
12543
|
method: 'get',
|
|
12095
12544
|
body: null,
|
|
12096
12545
|
urlParams: config.urlParams,
|
|
12097
|
-
queryParams:
|
|
12546
|
+
queryParams: config.queryParams,
|
|
12098
12547
|
headers,
|
|
12099
12548
|
priority: 'normal',
|
|
12100
12549
|
};
|
|
@@ -12103,16 +12552,18 @@ function createResourceRequest$2(config) {
|
|
|
12103
12552
|
const adapterName$2 = 'getSemanticSubMetricsById';
|
|
12104
12553
|
const getSemanticSubMetricsById_ConfigPropertyMetadata = [
|
|
12105
12554
|
generateParamConfigMetadata('subMetricIds', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12555
|
+
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12556
|
+
generateParamConfigMetadata('sortOrder', false, 1 /* QueryParameter */, 0 /* String */),
|
|
12106
12557
|
];
|
|
12107
12558
|
const getSemanticSubMetricsById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12108
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
12559
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$g(getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12109
12560
|
function keyBuilder(luvio, config) {
|
|
12110
12561
|
const resourceParams = createResourceParams$2(config);
|
|
12111
12562
|
return keyBuilder$1(luvio, resourceParams);
|
|
12112
12563
|
}
|
|
12113
12564
|
function typeCheckConfig$2(untrustedConfig) {
|
|
12114
12565
|
const config = {};
|
|
12115
|
-
typeCheckConfig$
|
|
12566
|
+
typeCheckConfig$g(untrustedConfig, config, getSemanticSubMetricsById_ConfigPropertyMetadata);
|
|
12116
12567
|
return config;
|
|
12117
12568
|
}
|
|
12118
12569
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -12161,7 +12612,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
12161
12612
|
});
|
|
12162
12613
|
}
|
|
12163
12614
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
12164
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12615
|
+
return buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
12165
12616
|
}
|
|
12166
12617
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
12167
12618
|
const { luvio, config } = context;
|
|
@@ -12187,15 +12638,15 @@ const getSemanticSubMetricsByIdAdapterFactory = (luvio) => function SemanticAuth
|
|
|
12187
12638
|
};
|
|
12188
12639
|
|
|
12189
12640
|
function select$1(luvio, params) {
|
|
12190
|
-
return select$
|
|
12641
|
+
return select$m();
|
|
12191
12642
|
}
|
|
12192
12643
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
12193
|
-
getTypeCacheKeys$
|
|
12644
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
12194
12645
|
}
|
|
12195
12646
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
12196
12647
|
const { body } = response;
|
|
12197
12648
|
const key = keyBuilderFromType(luvio, body);
|
|
12198
|
-
luvio.storeIngest(key, ingest$
|
|
12649
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
12199
12650
|
const snapshot = luvio.storeLookup({
|
|
12200
12651
|
recordId: key,
|
|
12201
12652
|
node: select$1(),
|
|
@@ -12231,16 +12682,16 @@ const patchSemanticMetricGoal_ConfigPropertyMetadata = [
|
|
|
12231
12682
|
generateParamConfigMetadata('statusConditions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12232
12683
|
];
|
|
12233
12684
|
const patchSemanticMetricGoal_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12234
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
12685
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12235
12686
|
function typeCheckConfig$1(untrustedConfig) {
|
|
12236
12687
|
const config = {};
|
|
12237
|
-
typeCheckConfig$
|
|
12688
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticMetricGoal_ConfigPropertyMetadata);
|
|
12238
12689
|
const untrustedConfig_statusConditions = untrustedConfig.statusConditions;
|
|
12239
12690
|
if (ArrayIsArray$1(untrustedConfig_statusConditions)) {
|
|
12240
12691
|
const untrustedConfig_statusConditions_array = [];
|
|
12241
12692
|
for (let i = 0, arrayLength = untrustedConfig_statusConditions.length; i < arrayLength; i++) {
|
|
12242
12693
|
const untrustedConfig_statusConditions_item = untrustedConfig_statusConditions[i];
|
|
12243
|
-
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$
|
|
12694
|
+
const referenceSemanticGoalStatusConditionInputRepresentationValidationError = validate$f(untrustedConfig_statusConditions_item);
|
|
12244
12695
|
if (referenceSemanticGoalStatusConditionInputRepresentationValidationError === null) {
|
|
12245
12696
|
untrustedConfig_statusConditions_array.push(untrustedConfig_statusConditions_item);
|
|
12246
12697
|
}
|
|
@@ -12292,15 +12743,15 @@ const patchSemanticMetricGoalAdapterFactory = (luvio) => {
|
|
|
12292
12743
|
};
|
|
12293
12744
|
|
|
12294
12745
|
function select(luvio, params) {
|
|
12295
|
-
return select$
|
|
12746
|
+
return select$o();
|
|
12296
12747
|
}
|
|
12297
12748
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
12298
|
-
getTypeCacheKeys$
|
|
12749
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
12299
12750
|
}
|
|
12300
12751
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
12301
12752
|
const { body } = response;
|
|
12302
12753
|
const key = keyBuilderFromType$1(luvio, body);
|
|
12303
|
-
luvio.storeIngest(key, ingest$
|
|
12754
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
12304
12755
|
const snapshot = luvio.storeLookup({
|
|
12305
12756
|
recordId: key,
|
|
12306
12757
|
node: select(),
|
|
@@ -12351,16 +12802,16 @@ const patchSemanticModel_ConfigPropertyMetadata = [
|
|
|
12351
12802
|
generateParamConfigMetadata('semanticRelationships', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12352
12803
|
];
|
|
12353
12804
|
const patchSemanticModel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, patchSemanticModel_ConfigPropertyMetadata);
|
|
12354
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
12805
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$g(patchSemanticModel_ConfigPropertyMetadata);
|
|
12355
12806
|
function typeCheckConfig(untrustedConfig) {
|
|
12356
12807
|
const config = {};
|
|
12357
|
-
typeCheckConfig$
|
|
12808
|
+
typeCheckConfig$g(untrustedConfig, config, patchSemanticModel_ConfigPropertyMetadata);
|
|
12358
12809
|
const untrustedConfig_baseModels = untrustedConfig.baseModels;
|
|
12359
12810
|
if (ArrayIsArray$1(untrustedConfig_baseModels)) {
|
|
12360
12811
|
const untrustedConfig_baseModels_array = [];
|
|
12361
12812
|
for (let i = 0, arrayLength = untrustedConfig_baseModels.length; i < arrayLength; i++) {
|
|
12362
12813
|
const untrustedConfig_baseModels_item = untrustedConfig_baseModels[i];
|
|
12363
|
-
const referenceSemanticBaseModelInputRepresentationValidationError = validate$
|
|
12814
|
+
const referenceSemanticBaseModelInputRepresentationValidationError = validate$10(untrustedConfig_baseModels_item);
|
|
12364
12815
|
if (referenceSemanticBaseModelInputRepresentationValidationError === null) {
|
|
12365
12816
|
untrustedConfig_baseModels_array.push(untrustedConfig_baseModels_item);
|
|
12366
12817
|
}
|
|
@@ -12372,7 +12823,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12372
12823
|
const untrustedConfig_semanticCalculatedDimensions_array = [];
|
|
12373
12824
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedDimensions.length; i < arrayLength; i++) {
|
|
12374
12825
|
const untrustedConfig_semanticCalculatedDimensions_item = untrustedConfig_semanticCalculatedDimensions[i];
|
|
12375
|
-
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$
|
|
12826
|
+
const referenceSemanticCalculatedDimensionInputRepresentationValidationError = validate$_(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12376
12827
|
if (referenceSemanticCalculatedDimensionInputRepresentationValidationError === null) {
|
|
12377
12828
|
untrustedConfig_semanticCalculatedDimensions_array.push(untrustedConfig_semanticCalculatedDimensions_item);
|
|
12378
12829
|
}
|
|
@@ -12384,7 +12835,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12384
12835
|
const untrustedConfig_semanticCalculatedMeasurements_array = [];
|
|
12385
12836
|
for (let i = 0, arrayLength = untrustedConfig_semanticCalculatedMeasurements.length; i < arrayLength; i++) {
|
|
12386
12837
|
const untrustedConfig_semanticCalculatedMeasurements_item = untrustedConfig_semanticCalculatedMeasurements[i];
|
|
12387
|
-
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$
|
|
12838
|
+
const referenceSemanticCalculatedMeasurementInputRepresentationValidationError = validate$Z(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12388
12839
|
if (referenceSemanticCalculatedMeasurementInputRepresentationValidationError === null) {
|
|
12389
12840
|
untrustedConfig_semanticCalculatedMeasurements_array.push(untrustedConfig_semanticCalculatedMeasurements_item);
|
|
12390
12841
|
}
|
|
@@ -12396,7 +12847,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12396
12847
|
const untrustedConfig_semanticDataObjects_array = [];
|
|
12397
12848
|
for (let i = 0, arrayLength = untrustedConfig_semanticDataObjects.length; i < arrayLength; i++) {
|
|
12398
12849
|
const untrustedConfig_semanticDataObjects_item = untrustedConfig_semanticDataObjects[i];
|
|
12399
|
-
const referenceSemanticDataObjectInputRepresentationValidationError = validate$
|
|
12850
|
+
const referenceSemanticDataObjectInputRepresentationValidationError = validate$W(untrustedConfig_semanticDataObjects_item);
|
|
12400
12851
|
if (referenceSemanticDataObjectInputRepresentationValidationError === null) {
|
|
12401
12852
|
untrustedConfig_semanticDataObjects_array.push(untrustedConfig_semanticDataObjects_item);
|
|
12402
12853
|
}
|
|
@@ -12408,7 +12859,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12408
12859
|
const untrustedConfig_semanticGroupings_array = [];
|
|
12409
12860
|
for (let i = 0, arrayLength = untrustedConfig_semanticGroupings.length; i < arrayLength; i++) {
|
|
12410
12861
|
const untrustedConfig_semanticGroupings_item = untrustedConfig_semanticGroupings[i];
|
|
12411
|
-
const referenceSemanticGroupingInputRepresentationValidationError = validate$
|
|
12862
|
+
const referenceSemanticGroupingInputRepresentationValidationError = validate$P(untrustedConfig_semanticGroupings_item);
|
|
12412
12863
|
if (referenceSemanticGroupingInputRepresentationValidationError === null) {
|
|
12413
12864
|
untrustedConfig_semanticGroupings_array.push(untrustedConfig_semanticGroupings_item);
|
|
12414
12865
|
}
|
|
@@ -12420,7 +12871,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12420
12871
|
const untrustedConfig_semanticLogicalViews_array = [];
|
|
12421
12872
|
for (let i = 0, arrayLength = untrustedConfig_semanticLogicalViews.length; i < arrayLength; i++) {
|
|
12422
12873
|
const untrustedConfig_semanticLogicalViews_item = untrustedConfig_semanticLogicalViews[i];
|
|
12423
|
-
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$
|
|
12874
|
+
const referenceSemanticLogicalViewInputRepresentationValidationError = validate$K(untrustedConfig_semanticLogicalViews_item);
|
|
12424
12875
|
if (referenceSemanticLogicalViewInputRepresentationValidationError === null) {
|
|
12425
12876
|
untrustedConfig_semanticLogicalViews_array.push(untrustedConfig_semanticLogicalViews_item);
|
|
12426
12877
|
}
|
|
@@ -12432,7 +12883,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12432
12883
|
const untrustedConfig_semanticMetrics_array = [];
|
|
12433
12884
|
for (let i = 0, arrayLength = untrustedConfig_semanticMetrics.length; i < arrayLength; i++) {
|
|
12434
12885
|
const untrustedConfig_semanticMetrics_item = untrustedConfig_semanticMetrics[i];
|
|
12435
|
-
const referenceSemanticMetricInputRepresentationValidationError = validate$
|
|
12886
|
+
const referenceSemanticMetricInputRepresentationValidationError = validate$G(untrustedConfig_semanticMetrics_item);
|
|
12436
12887
|
if (referenceSemanticMetricInputRepresentationValidationError === null) {
|
|
12437
12888
|
untrustedConfig_semanticMetrics_array.push(untrustedConfig_semanticMetrics_item);
|
|
12438
12889
|
}
|
|
@@ -12444,7 +12895,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12444
12895
|
const untrustedConfig_semanticParameters_array = [];
|
|
12445
12896
|
for (let i = 0, arrayLength = untrustedConfig_semanticParameters.length; i < arrayLength; i++) {
|
|
12446
12897
|
const untrustedConfig_semanticParameters_item = untrustedConfig_semanticParameters[i];
|
|
12447
|
-
const referenceSemanticParameterInputRepresentationValidationError = validate$
|
|
12898
|
+
const referenceSemanticParameterInputRepresentationValidationError = validate$F(untrustedConfig_semanticParameters_item);
|
|
12448
12899
|
if (referenceSemanticParameterInputRepresentationValidationError === null) {
|
|
12449
12900
|
untrustedConfig_semanticParameters_array.push(untrustedConfig_semanticParameters_item);
|
|
12450
12901
|
}
|
|
@@ -12456,7 +12907,7 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
12456
12907
|
const untrustedConfig_semanticRelationships_array = [];
|
|
12457
12908
|
for (let i = 0, arrayLength = untrustedConfig_semanticRelationships.length; i < arrayLength; i++) {
|
|
12458
12909
|
const untrustedConfig_semanticRelationships_item = untrustedConfig_semanticRelationships[i];
|
|
12459
|
-
const referenceSemanticRelationshipInputRepresentationValidationError = validate$
|
|
12910
|
+
const referenceSemanticRelationshipInputRepresentationValidationError = validate$N(untrustedConfig_semanticRelationships_item);
|
|
12460
12911
|
if (referenceSemanticRelationshipInputRepresentationValidationError === null) {
|
|
12461
12912
|
untrustedConfig_semanticRelationships_array.push(untrustedConfig_semanticRelationships_item);
|
|
12462
12913
|
}
|
|
@@ -12511,6 +12962,7 @@ let createSemanticModel;
|
|
|
12511
12962
|
let createSemanticSubMetric;
|
|
12512
12963
|
let deleteGoalFromSubMetric;
|
|
12513
12964
|
let deleteSemanticSubMetric;
|
|
12965
|
+
let getLeafDependenciesByTypes;
|
|
12514
12966
|
let getSemanticMetric;
|
|
12515
12967
|
let getSemanticMetricNotifyChange;
|
|
12516
12968
|
let getSemanticMetrics;
|
|
@@ -12526,6 +12978,7 @@ let getSemanticSubMetricsById;
|
|
|
12526
12978
|
let patchSemanticMetricGoal;
|
|
12527
12979
|
let patchSemanticModel;
|
|
12528
12980
|
// Imperative GET Adapters
|
|
12981
|
+
let getLeafDependenciesByTypes_imperative;
|
|
12529
12982
|
let getSemanticMetric_imperative;
|
|
12530
12983
|
let getSemanticMetrics_imperative;
|
|
12531
12984
|
let getSemanticMetricsByIds_imperative;
|
|
@@ -12535,6 +12988,10 @@ let getSemanticModels_imperative;
|
|
|
12535
12988
|
let getSemanticSubMetric_imperative;
|
|
12536
12989
|
let getSemanticSubMetrics_imperative;
|
|
12537
12990
|
let getSemanticSubMetricsById_imperative;
|
|
12991
|
+
const getLeafDependenciesByTypesMetadata = {
|
|
12992
|
+
apiFamily: 'SemanticAuthoring',
|
|
12993
|
+
name: 'getLeafDependenciesByTypes',
|
|
12994
|
+
};
|
|
12538
12995
|
const getSemanticMetricMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetric' };
|
|
12539
12996
|
const getSemanticMetricsMetadata = { apiFamily: 'SemanticAuthoring', name: 'getSemanticMetrics' };
|
|
12540
12997
|
const getSemanticMetricsByIdsMetadata = {
|
|
@@ -12562,6 +13019,7 @@ const getSemanticSubMetricsByIdMetadata = {
|
|
|
12562
13019
|
// Notify Update Available
|
|
12563
13020
|
function bindExportsTo(luvio) {
|
|
12564
13021
|
// LDS Adapters
|
|
13022
|
+
const getLeafDependenciesByTypes_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLeafDependenciesByTypes', getLeafDependenciesByTypesAdapterFactory), getLeafDependenciesByTypesMetadata);
|
|
12565
13023
|
const getSemanticMetric_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetric', getSemanticMetricAdapterFactory), getSemanticMetricMetadata);
|
|
12566
13024
|
const getSemanticMetrics_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetrics', getSemanticMetricsAdapterFactory), getSemanticMetricsMetadata);
|
|
12567
13025
|
const getSemanticMetricsByIds_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSemanticMetricsByIds', getSemanticMetricsByIdsAdapterFactory), getSemanticMetricsByIdsMetadata);
|
|
@@ -12578,8 +13036,9 @@ function bindExportsTo(luvio) {
|
|
|
12578
13036
|
return {
|
|
12579
13037
|
createSemanticModel: unwrapSnapshotData(createSemanticModelAdapterFactory),
|
|
12580
13038
|
createSemanticSubMetric: unwrapSnapshotData(createSemanticSubMetricAdapterFactory),
|
|
12581
|
-
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$
|
|
12582
|
-
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$
|
|
13039
|
+
deleteGoalFromSubMetric: createLDSAdapter(luvio, adapterName$d, deleteGoalFromSubMetricAdapterFactory),
|
|
13040
|
+
deleteSemanticSubMetric: createLDSAdapter(luvio, adapterName$c, deleteSemanticSubMetricAdapterFactory),
|
|
13041
|
+
getLeafDependenciesByTypes: createWireAdapterConstructor(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12583
13042
|
getSemanticMetric: createWireAdapterConstructor(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12584
13043
|
getSemanticMetricNotifyChange: createLDSAdapter(luvio, 'getSemanticMetricNotifyChange', notifyChangeFactory$2),
|
|
12585
13044
|
getSemanticMetrics: createWireAdapterConstructor(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
@@ -12595,6 +13054,7 @@ function bindExportsTo(luvio) {
|
|
|
12595
13054
|
patchSemanticMetricGoal: unwrapSnapshotData(patchSemanticMetricGoalAdapterFactory),
|
|
12596
13055
|
patchSemanticModel: unwrapSnapshotData(patchSemanticModelAdapterFactory),
|
|
12597
13056
|
// Imperative GET Adapters
|
|
13057
|
+
getLeafDependenciesByTypes_imperative: createImperativeAdapter(luvio, getLeafDependenciesByTypes_ldsAdapter, getLeafDependenciesByTypesMetadata),
|
|
12598
13058
|
getSemanticMetric_imperative: createImperativeAdapter(luvio, getSemanticMetric_ldsAdapter, getSemanticMetricMetadata),
|
|
12599
13059
|
getSemanticMetrics_imperative: createImperativeAdapter(luvio, getSemanticMetrics_ldsAdapter, getSemanticMetricsMetadata),
|
|
12600
13060
|
getSemanticMetricsByIds_imperative: createImperativeAdapter(luvio, getSemanticMetricsByIds_ldsAdapter, getSemanticMetricsByIdsMetadata),
|
|
@@ -12613,6 +13073,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12613
13073
|
createSemanticSubMetric,
|
|
12614
13074
|
deleteGoalFromSubMetric,
|
|
12615
13075
|
deleteSemanticSubMetric,
|
|
13076
|
+
getLeafDependenciesByTypes,
|
|
12616
13077
|
getSemanticMetric,
|
|
12617
13078
|
getSemanticMetricNotifyChange,
|
|
12618
13079
|
getSemanticMetrics,
|
|
@@ -12627,6 +13088,7 @@ withDefaultLuvio((luvio) => {
|
|
|
12627
13088
|
getSemanticSubMetricsById,
|
|
12628
13089
|
patchSemanticMetricGoal,
|
|
12629
13090
|
patchSemanticModel,
|
|
13091
|
+
getLeafDependenciesByTypes_imperative,
|
|
12630
13092
|
getSemanticMetric_imperative,
|
|
12631
13093
|
getSemanticMetrics_imperative,
|
|
12632
13094
|
getSemanticMetricsByIds_imperative,
|
|
@@ -12639,5 +13101,5 @@ withDefaultLuvio((luvio) => {
|
|
|
12639
13101
|
} = bindExportsTo(luvio));
|
|
12640
13102
|
});
|
|
12641
13103
|
|
|
12642
|
-
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 };
|
|
12643
|
-
// version: 1.332.0-
|
|
13104
|
+
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 };
|
|
13105
|
+
// version: 1.332.0-dev7-84af9c7762
|