You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2024/06/26 20:13:10 UTC
(streampipes) branch 2962-remove-deprecatedobsolete-static-properties updated: chore(#2962): Remove deprecated static properties
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch 2962-remove-deprecatedobsolete-static-properties
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/2962-remove-deprecatedobsolete-static-properties by this push:
new 168a59fdf4 chore(#2962): Remove deprecated static properties
168a59fdf4 is described below
commit 168a59fdf4bea6b1de09e3e07b65d4553725f413
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed Jun 26 22:12:58 2024 +0200
chore(#2962): Remove deprecated static properties
---
.../api/extractor/IParameterExtractor.java | 3 -
.../siddhi/trend/TrendConfigurationVisitor.java | 12 -
.../model/staticproperty/DomainStaticProperty.java | 76 -
.../staticproperty/RemoteOneOfStaticProperty.java | 123 -
.../model/staticproperty/StaticProperty.java | 1 -
.../staticproperty/StaticPropertyVisitor.java | 4 -
.../org/apache/streampipes/model/util/Cloner.java | 6 -
.../v2/pipeline/CheckCompletedVisitor.java | 12 -
.../v2/pipeline/UpdateStaticPropertiesVisitor.java | 12 -
.../template/PipelineElementTemplateVisitor.java | 12 -
.../resource/management/secret/SecretVisitor.java | 12 -
...AbstractConfigurablePipelineElementBuilder.java | 39 -
.../sdk/extractor/AbstractParameterExtractor.java | 18 -
.../apache/streampipes/sdk/helpers/Groundings.java | 43 -
.../sdk/helpers/OntologyProperties.java | 36 -
.../org/apache/streampipes/sdk/helpers/Tuple3.java | 55 -
.../src/lib/model/gen/streampipes-model.ts | 2420 ++++++--------------
17 files changed, 737 insertions(+), 2147 deletions(-)
diff --git a/streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/extractor/IParameterExtractor.java b/streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/extractor/IParameterExtractor.java
index 447aad86fe..dbcdb4eba4 100644
--- a/streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/extractor/IParameterExtractor.java
+++ b/streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/extractor/IParameterExtractor.java
@@ -77,9 +77,6 @@ public interface IParameterExtractor {
String propertyDatatype(String runtimeName);
- <V> V supportedOntologyPropertyValue(String domainPropertyInternalId, String
- propertyId, Class<V> targetClass);
-
List<EventProperty> getEventPropertiesBySelector(List<String> selectors) throws
SpRuntimeException;
diff --git a/streampipes-extensions/streampipes-processors-filters-siddhi/src/test/java/org/apache/streampipes/processors/siddhi/trend/TrendConfigurationVisitor.java b/streampipes-extensions/streampipes-processors-filters-siddhi/src/test/java/org/apache/streampipes/processors/siddhi/trend/TrendConfigurationVisitor.java
index 4499d397c0..7f4187f6dc 100644
--- a/streampipes-extensions/streampipes-processors-filters-siddhi/src/test/java/org/apache/streampipes/processors/siddhi/trend/TrendConfigurationVisitor.java
+++ b/streampipes-extensions/streampipes-processors-filters-siddhi/src/test/java/org/apache/streampipes/processors/siddhi/trend/TrendConfigurationVisitor.java
@@ -22,14 +22,12 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.SecretStaticProperty;
@@ -76,11 +74,6 @@ public class TrendConfigurationVisitor implements StaticPropertyVisitor {
}
- @Override
- public void visit(DomainStaticProperty domainStaticProperty) {
-
- }
-
@Override
public void visit(FileStaticProperty fileStaticProperty) {
@@ -140,11 +133,6 @@ public class TrendConfigurationVisitor implements StaticPropertyVisitor {
}
- @Override
- public void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty) {
-
- }
-
@Override
public void visit(SlideToggleStaticProperty slideToggleStaticProperty) {
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DomainStaticProperty.java b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DomainStaticProperty.java
deleted file mode 100644
index 4c975b5a9f..0000000000
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/DomainStaticProperty.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.model.staticproperty;
-
-import org.apache.streampipes.model.util.Cloner;
-
-import java.util.List;
-
-public class DomainStaticProperty extends StaticProperty {
-
- private static final long serialVersionUID = 1L;
-
- private String requiredClass;
-
- private List<SupportedProperty> supportedProperties;
-
- public DomainStaticProperty() {
- super(StaticPropertyType.DomainStaticProperty);
- }
-
- public DomainStaticProperty(String internalName, String label, String description,
- List<SupportedProperty> supportedProperties) {
- super(StaticPropertyType.DomainStaticProperty, internalName, label, description);
- this.supportedProperties = supportedProperties;
- }
-
- public DomainStaticProperty(String internalName, String label, String description, String requiredClass,
- List<SupportedProperty> supportedProperties) {
- this(internalName, label, description, supportedProperties);
- this.requiredClass = requiredClass;
- }
-
- public DomainStaticProperty(DomainStaticProperty other) {
- super(other);
- this.requiredClass = other.getRequiredClass();
- this.supportedProperties = new Cloner().supportedProperties(other.getSupportedProperties());
- }
-
- public String getRequiredClass() {
- return requiredClass;
- }
-
- public void setRequiredClass(String requiredClass) {
- this.requiredClass = requiredClass;
- }
-
- public List<SupportedProperty> getSupportedProperties() {
- return supportedProperties;
- }
-
- public void setSupportedProperties(List<SupportedProperty> supportedProperties) {
- this.supportedProperties = supportedProperties;
- }
-
- @Override
- public void accept(StaticPropertyVisitor visitor) {
- visitor.visit(this);
- }
-
-}
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/RemoteOneOfStaticProperty.java b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/RemoteOneOfStaticProperty.java
deleted file mode 100644
index b058d44c0b..0000000000
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/RemoteOneOfStaticProperty.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.model.staticproperty;
-
-
-import org.apache.streampipes.model.util.Cloner;
-
-import java.util.ArrayList;
-import java.util.List;
-
-@Deprecated
-public class RemoteOneOfStaticProperty extends StaticProperty {
-
- private static final long serialVersionUID = 3483290363677184344L;
-
- private List<Option> options;
-
- private String remoteUrl;
-
- private String valueFieldName;
-
- private String labelFieldName;
-
- private String descriptionFieldName;
-
- public RemoteOneOfStaticProperty() {
- super(StaticPropertyType.OneOfStaticProperty);
- this.options = new ArrayList<>();
- }
-
- public RemoteOneOfStaticProperty(String internalName, String label, String description, String remoteUrl,
- String valueFieldName, String labelFieldName, String descriptionFieldName,
- boolean valueRequired) {
- super(StaticPropertyType.OneOfStaticProperty, internalName, label, description);
- this.remoteUrl = remoteUrl;
- this.valueFieldName = valueFieldName;
- this.labelFieldName = labelFieldName;
- this.descriptionFieldName = descriptionFieldName;
- this.optional = valueRequired;
- this.options = new ArrayList<>();
- }
-
-
- public RemoteOneOfStaticProperty(String internalName, String label, String description, String remoteUrl,
- String valueFieldName, String labelFieldName, String descriptionFieldName) {
- super(StaticPropertyType.OneOfStaticProperty, internalName, label, description);
- this.remoteUrl = remoteUrl;
- this.valueFieldName = valueFieldName;
- this.labelFieldName = labelFieldName;
- this.descriptionFieldName = descriptionFieldName;
- this.options = new ArrayList<>();
- }
-
- public RemoteOneOfStaticProperty(RemoteOneOfStaticProperty other) {
- super(other);
- this.remoteUrl = other.getRemoteUrl();
- this.valueFieldName = other.getValueFieldName();
- this.labelFieldName = other.getLabelFieldName();
- this.descriptionFieldName = other.getDescriptionFieldName();
- this.options = new Cloner().options(other.getOptions());
- }
-
- public String getRemoteUrl() {
- return remoteUrl;
- }
-
- public void setRemoteUrl(String remoteUrl) {
- this.remoteUrl = remoteUrl;
- }
-
- public String getValueFieldName() {
- return valueFieldName;
- }
-
- public void setValueFieldName(String valueFieldName) {
- this.valueFieldName = valueFieldName;
- }
-
- public String getLabelFieldName() {
- return labelFieldName;
- }
-
- public void setLabelFieldName(String labelFieldName) {
- this.labelFieldName = labelFieldName;
- }
-
- public String getDescriptionFieldName() {
- return descriptionFieldName;
- }
-
- public void setDescriptionFieldName(String descriptionFieldName) {
- this.descriptionFieldName = descriptionFieldName;
- }
-
- public List<Option> getOptions() {
- return options;
- }
-
- public void setOptions(List<Option> options) {
- this.options = options;
- }
-
- @Override
- public void accept(StaticPropertyVisitor visitor) {
- visitor.visit(this);
- }
-}
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticProperty.java b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticProperty.java
index 8832b21764..0640d73c90 100644
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticProperty.java
+++ b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticProperty.java
@@ -30,7 +30,6 @@ import java.util.Objects;
@JsonSubTypes.Type(CodeInputStaticProperty.class),
@JsonSubTypes.Type(CollectionStaticProperty.class),
@JsonSubTypes.Type(ColorPickerStaticProperty.class),
- @JsonSubTypes.Type(DomainStaticProperty.class),
@JsonSubTypes.Type(FileStaticProperty.class),
@JsonSubTypes.Type(FreeTextStaticProperty.class),
@JsonSubTypes.Type(MappingPropertyUnary.class),
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticPropertyVisitor.java b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticPropertyVisitor.java
index c8c91a375e..a7f1bb1b22 100644
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticPropertyVisitor.java
+++ b/streampipes-model/src/main/java/org/apache/streampipes/model/staticproperty/StaticPropertyVisitor.java
@@ -27,8 +27,6 @@ public interface StaticPropertyVisitor {
void visit(ColorPickerStaticProperty colorPickerStaticProperty);
- void visit(DomainStaticProperty domainStaticProperty);
-
void visit(FileStaticProperty fileStaticProperty);
void visit(FreeTextStaticProperty freeTextStaticProperty);
@@ -49,8 +47,6 @@ public interface StaticPropertyVisitor {
void visit(StaticPropertyGroup staticPropertyGroup);
- void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty);
-
void visit(SlideToggleStaticProperty slideToggleStaticProperty);
void visit(RuntimeResolvableTreeInputStaticProperty treeInputStaticProperty);
diff --git a/streampipes-model/src/main/java/org/apache/streampipes/model/util/Cloner.java b/streampipes-model/src/main/java/org/apache/streampipes/model/util/Cloner.java
index 8f52440870..ebdf536ce2 100644
--- a/streampipes-model/src/main/java/org/apache/streampipes/model/util/Cloner.java
+++ b/streampipes-model/src/main/java/org/apache/streampipes/model/util/Cloner.java
@@ -56,7 +56,6 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
@@ -64,7 +63,6 @@ import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.Option;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty;
@@ -120,12 +118,8 @@ public class Cloner {
return new RuntimeResolvableAnyStaticProperty((RuntimeResolvableAnyStaticProperty) o);
} else if (o instanceof OneOfStaticProperty) {
return new OneOfStaticProperty((OneOfStaticProperty) o);
- } else if (o instanceof RemoteOneOfStaticProperty) {
- return new RemoteOneOfStaticProperty((RemoteOneOfStaticProperty) o);
} else if (o instanceof MappingPropertyNary) {
return new MappingPropertyNary((MappingPropertyNary) o);
- } else if (o instanceof DomainStaticProperty) {
- return new DomainStaticProperty((DomainStaticProperty) o);
} else if (o instanceof AnyStaticProperty) {
return new AnyStaticProperty((AnyStaticProperty) o);
} else if (o instanceof CollectionStaticProperty) {
diff --git a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/CheckCompletedVisitor.java b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/CheckCompletedVisitor.java
index 11fe5f9b54..1083396fcb 100644
--- a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/CheckCompletedVisitor.java
+++ b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/CheckCompletedVisitor.java
@@ -23,14 +23,12 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
import org.apache.streampipes.model.staticproperty.DefaultStaticPropertyVisitor;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.SecretStaticProperty;
@@ -62,11 +60,6 @@ public class CheckCompletedVisitor extends DefaultStaticPropertyVisitor {
}
- @Override
- public void visit(DomainStaticProperty domainStaticProperty) {
-
- }
-
@Override
public void visit(FileStaticProperty fileStaticProperty) {
@@ -139,11 +132,6 @@ public class CheckCompletedVisitor extends DefaultStaticPropertyVisitor {
}
- @Override
- public void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty) {
-
- }
-
@Override
public void visit(SlideToggleStaticProperty slideToggleStaticProperty) {
diff --git a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/UpdateStaticPropertiesVisitor.java b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/UpdateStaticPropertiesVisitor.java
index 83daa06aad..cdceb9afb0 100644
--- a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/UpdateStaticPropertiesVisitor.java
+++ b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/matching/v2/pipeline/UpdateStaticPropertiesVisitor.java
@@ -26,7 +26,6 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
import org.apache.streampipes.model.staticproperty.DefaultStaticPropertyVisitor;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingProperty;
@@ -34,7 +33,6 @@ import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.SecretStaticProperty;
@@ -67,11 +65,6 @@ public class UpdateStaticPropertiesVisitor extends DefaultStaticPropertyVisitor
// Do nothing
}
- @Override
- public void visit(DomainStaticProperty domainStaticProperty) {
- // Do nothing
- }
-
@Override
public void visit(FileStaticProperty fileStaticProperty) {
// Do nothing
@@ -107,11 +100,6 @@ public class UpdateStaticPropertiesVisitor extends DefaultStaticPropertyVisitor
// do nothing
}
- @Override
- public void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty) {
-
- }
-
@Override
public void visit(SlideToggleStaticProperty slideToggleStaticProperty) {
diff --git a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/template/PipelineElementTemplateVisitor.java b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/template/PipelineElementTemplateVisitor.java
index 8f8c2cf2de..92f703b18f 100644
--- a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/template/PipelineElementTemplateVisitor.java
+++ b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/template/PipelineElementTemplateVisitor.java
@@ -21,14 +21,12 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.SecretStaticProperty;
@@ -91,11 +89,6 @@ public class PipelineElementTemplateVisitor implements StaticPropertyVisitor {
}
}
- @Override
- public void visit(DomainStaticProperty domainStaticProperty) {
- // TODO - not used anywhere anymore
- }
-
@Override
public void visit(FileStaticProperty fileStaticProperty) {
if (hasKey(fileStaticProperty)) {
@@ -189,11 +182,6 @@ public class PipelineElementTemplateVisitor implements StaticPropertyVisitor {
}
}
- @Override
- public void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty) {
-
- }
-
@Override
public void visit(SlideToggleStaticProperty slideToggleStaticProperty) {
if (hasKey(slideToggleStaticProperty)) {
diff --git a/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/secret/SecretVisitor.java b/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/secret/SecretVisitor.java
index 0c108316e2..12f744f9d2 100644
--- a/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/secret/SecretVisitor.java
+++ b/streampipes-resource-management/src/main/java/org/apache/streampipes/resource/management/secret/SecretVisitor.java
@@ -21,14 +21,12 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
import org.apache.streampipes.model.staticproperty.MappingPropertyUnary;
import org.apache.streampipes.model.staticproperty.MatchingStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
-import org.apache.streampipes.model.staticproperty.RemoteOneOfStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty;
import org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.SecretStaticProperty;
@@ -66,11 +64,6 @@ public class SecretVisitor implements StaticPropertyVisitor {
}
- @Override
- public void visit(DomainStaticProperty domainStaticProperty) {
-
- }
-
@Override
public void visit(FileStaticProperty fileStaticProperty) {
@@ -127,11 +120,6 @@ public class SecretVisitor implements StaticPropertyVisitor {
staticPropertyGroup.getStaticProperties().forEach(sp -> sp.accept(this));
}
- @Override
- public void visit(RemoteOneOfStaticProperty remoteOneOfStaticProperty) {
-
- }
-
@Override
public void visit(SlideToggleStaticProperty slideToggleStaticProperty) {
// Do nothing
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/builder/AbstractConfigurablePipelineElementBuilder.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/builder/AbstractConfigurablePipelineElementBuilder.java
index 251237b822..2a700eb780 100644
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/builder/AbstractConfigurablePipelineElementBuilder.java
+++ b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/builder/AbstractConfigurablePipelineElementBuilder.java
@@ -22,7 +22,6 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.OneOfStaticProperty;
@@ -33,7 +32,6 @@ import org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty;
import org.apache.streampipes.model.staticproperty.StaticProperty;
import org.apache.streampipes.model.staticproperty.StaticPropertyAlternative;
import org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives;
-import org.apache.streampipes.model.staticproperty.SupportedProperty;
import org.apache.streampipes.sdk.StaticProperties;
import org.apache.streampipes.sdk.helpers.CodeLanguage;
import org.apache.streampipes.sdk.helpers.Filetypes;
@@ -72,43 +70,6 @@ public abstract class AbstractConfigurablePipelineElementBuilder<K extends
return me();
}
- /**
- * Defines the requirement for an instance that is defined in the knowledge base.
- *
- * @param label A human-readable label that describes the required static property.
- * @param supportedOntologyProperties All RDF properties any instance in the knowledge base must provide. Use
- * {@link org.apache.streampipes.sdk.helpers.OntologyProperties}
- * to assign supported properties.
- *
- */
- public K requiredOntologyConcept(Label label, SupportedProperty...
- supportedOntologyProperties) {
- DomainStaticProperty dsp = prepareStaticProperty(label, new DomainStaticProperty());
- dsp.setSupportedProperties(Arrays.asList(supportedOntologyProperties));
- this.staticProperties.add(dsp);
-
- return me();
- }
-
- /**
- * @param label A human-readable label that describes the required static property.
- * @param requiredConceptUri Limits the search for matching instance
- * in the knowledge base to an instance of this concept.
- * @param supportedOntologyProperties All RDF properties any instance of the provided concept must provide. Use
- * {@link org.apache.streampipes.sdk.helpers.OntologyProperties}
- * to assign supported properties.
- *
- */
- public K requiredOntologyConcept(Label label, String requiredConceptUri, SupportedProperty...
- supportedOntologyProperties) {
- DomainStaticProperty dsp = prepareStaticProperty(label, new DomainStaticProperty());
- dsp.setSupportedProperties(Arrays.asList(supportedOntologyProperties));
- dsp.setRequiredClass(requiredConceptUri);
- this.staticProperties.add(dsp);
-
- return me();
- }
-
/**
* @param label A human-readable label that describes the required static property.
* @param staticProperty
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/extractor/AbstractParameterExtractor.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/extractor/AbstractParameterExtractor.java
index bfefe341ba..2bec1f786f 100644
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/extractor/AbstractParameterExtractor.java
+++ b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/extractor/AbstractParameterExtractor.java
@@ -32,7 +32,6 @@ import org.apache.streampipes.model.staticproperty.AnyStaticProperty;
import org.apache.streampipes.model.staticproperty.CodeInputStaticProperty;
import org.apache.streampipes.model.staticproperty.CollectionStaticProperty;
import org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty;
-import org.apache.streampipes.model.staticproperty.DomainStaticProperty;
import org.apache.streampipes.model.staticproperty.FileStaticProperty;
import org.apache.streampipes.model.staticproperty.FreeTextStaticProperty;
import org.apache.streampipes.model.staticproperty.MappingPropertyNary;
@@ -48,7 +47,6 @@ import org.apache.streampipes.model.staticproperty.StaticPropertyAlternative;
import org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives;
import org.apache.streampipes.model.staticproperty.StaticPropertyGroup;
import org.apache.streampipes.model.staticproperty.StaticPropertyType;
-import org.apache.streampipes.model.staticproperty.SupportedProperty;
import org.apache.streampipes.model.staticproperty.TreeInputNode;
import org.apache.streampipes.sdk.utils.Datatypes;
@@ -368,22 +366,6 @@ public abstract class AbstractParameterExtractor<T extends InvocableStreamPipesE
return null;
}
- @Override
- public <V> V supportedOntologyPropertyValue(String domainPropertyInternalId, String
- propertyId, Class<V> targetClass) {
- DomainStaticProperty dsp = getStaticPropertyByName(domainPropertyInternalId,
- DomainStaticProperty.class);
-
- return typeParser.parse(dsp
- .getSupportedProperties()
- .stream()
- .filter(sp -> sp.getPropertyId().equals(propertyId))
- .findFirst()
- .map(SupportedProperty::getValue)
- .get(), targetClass);
-
- }
-
@Override
public List<EventProperty> getEventPropertiesBySelector(List<String> selectors) throws
SpRuntimeException {
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Groundings.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Groundings.java
deleted file mode 100644
index 5f54c207f1..0000000000
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Groundings.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.sdk.helpers;
-
-import org.apache.streampipes.model.grounding.JmsTransportProtocol;
-import org.apache.streampipes.model.grounding.KafkaTransportProtocol;
-import org.apache.streampipes.model.grounding.TransportFormat;
-
-@Deprecated
-public class Groundings {
-
- public static KafkaTransportProtocol kafkaGrounding(String kafkaHost, Integer kafkaPort, String topic) {
- return Protocols.kafka(kafkaHost, kafkaPort, topic);
- }
-
- public static JmsTransportProtocol jmsGrounding(String jmsHost, Integer jmsPort, String topic) {
- return Protocols.jms(jmsHost, jmsPort, topic);
- }
-
- public static TransportFormat jsonFormat() {
- return Formats.jsonFormat();
- }
-
- public static TransportFormat thriftFormat() {
- return Formats.thriftFormat();
- }
-}
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/OntologyProperties.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/OntologyProperties.java
deleted file mode 100644
index 9b6e8ddc24..0000000000
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/OntologyProperties.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-package org.apache.streampipes.sdk.helpers;
-
-import org.apache.streampipes.model.staticproperty.SupportedProperty;
-
-public class OntologyProperties {
-
- public static SupportedProperty mandatory(String uri) {
- return from(uri, true);
- }
-
- public static SupportedProperty optional(String uri) {
- return from(uri, false);
- }
-
- public static SupportedProperty from(String uri, boolean valueRequired) {
- return new SupportedProperty(uri, valueRequired);
- }
-}
diff --git a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Tuple3.java b/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Tuple3.java
deleted file mode 100644
index edb58aa817..0000000000
--- a/streampipes-sdk/src/main/java/org/apache/streampipes/sdk/helpers/Tuple3.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-package org.apache.streampipes.sdk.helpers;
-
-public class Tuple3<V, W, X> extends Tuple2<V, W> {
-
- public final X x;
-
- public Tuple3(V v, W w, X x) {
- super(v, w);
- this.x = x;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
-
- Tuple3<?, ?, ?> tuple = (Tuple3<?, ?, ?>) o;
- if (!k.equals(tuple.k)) {
- return false;
- }
- if (!v.equals(tuple.v)) {
- return false;
- }
- return x.equals(tuple.x);
- }
-
- @Override
- public int hashCode() {
- int result = k != null ? k.hashCode() : 0;
- result = 31 * result + (v != null ? v.hashCode() : 0);
- result = 31 * result + (x != null ? x.hashCode() : 0);
- return result;
- }
-}
diff --git a/ui/projects/streampipes/platform-services/src/lib/model/gen/streampipes-model.ts b/ui/projects/streampipes/platform-services/src/lib/model/gen/streampipes-model.ts
index cae644ba47..efa7cf4eac 100644
--- a/ui/projects/streampipes/platform-services/src/lib/model/gen/streampipes-model.ts
+++ b/ui/projects/streampipes/platform-services/src/lib/model/gen/streampipes-model.ts
@@ -20,54 +20,37 @@
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
-// Generated using typescript-generator version 3.2.1263 on 2024-06-17 23:25:59.
+// Generated using typescript-generator version 3.2.1263 on 2024-06-26 22:04:42.
export class NamedStreamPipesEntity {
- '@class':
- | 'org.apache.streampipes.model.connect.grounding.ProtocolDescription'
- | 'org.apache.streampipes.model.template.PipelineTemplateDescription'
- | 'org.apache.streampipes.model.SpDataStream'
- | 'org.apache.streampipes.model.base.VersionedNamedStreamPipesEntity'
- | 'org.apache.streampipes.model.connect.adapter.AdapterDescription'
- | 'org.apache.streampipes.model.base.InvocableStreamPipesEntity'
- | 'org.apache.streampipes.model.graph.DataProcessorInvocation'
- | 'org.apache.streampipes.model.graph.DataSinkInvocation';
- '_rev': string;
- 'appId': string;
- 'connectedTo': string[];
- 'description': string;
- 'dom': string;
- 'elementId': string;
- 'includedAssets': string[];
- 'includedLocales': string[];
- 'includesAssets': boolean;
- 'includesLocales': boolean;
- 'internallyManaged': boolean;
- 'name': string;
-
- static 'fromData'(
- data: NamedStreamPipesEntity,
- target?: NamedStreamPipesEntity,
- ): NamedStreamPipesEntity {
+ "@class": "org.apache.streampipes.model.connect.grounding.ProtocolDescription" | "org.apache.streampipes.model.template.PipelineTemplateDescription" | "org.apache.streampipes.model.SpDataStream" | "org.apache.streampipes.model.base.VersionedNamedStreamPipesEntity" | "org.apache.streampipes.model.connect.adapter.AdapterDescription" | "org.apache.streampipes.model.base.InvocableStreamPipesEntity" | "org.apache.streampipes.model.graph.DataProcessorInvocation" | "org.apache.streampipes.m [...]
+ _rev: string;
+ appId: string;
+ connectedTo: string[];
+ description: string;
+ dom: string;
+ elementId: string;
+ includedAssets: string[];
+ includedLocales: string[];
+ includesAssets: boolean;
+ includesLocales: boolean;
+ internallyManaged: boolean;
+ name: string;
+
+ static fromData(data: NamedStreamPipesEntity, target?: NamedStreamPipesEntity): NamedStreamPipesEntity {
if (!data) {
return data;
}
const instance = target || new NamedStreamPipesEntity();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance._rev = data._rev;
instance.appId = data.appId;
- instance.connectedTo = __getCopyArrayFn(__identity<string>())(
- data.connectedTo,
- );
+ instance.connectedTo = __getCopyArrayFn(__identity<string>())(data.connectedTo);
instance.description = data.description;
instance.dom = data.dom;
instance.elementId = data.elementId;
- instance.includedAssets = __getCopyArrayFn(__identity<string>())(
- data.includedAssets,
- );
- instance.includedLocales = __getCopyArrayFn(__identity<string>())(
- data.includedLocales,
- );
+ instance.includedAssets = __getCopyArrayFn(__identity<string>())(data.includedAssets);
+ instance.includedLocales = __getCopyArrayFn(__identity<string>())(data.includedLocales);
instance.includesAssets = data.includesAssets;
instance.includesLocales = data.includesLocales;
instance.internallyManaged = data.internallyManaged;
@@ -77,18 +60,10 @@ export class NamedStreamPipesEntity {
}
export class VersionedNamedStreamPipesEntity extends NamedStreamPipesEntity {
- '@class':
- | 'org.apache.streampipes.model.base.VersionedNamedStreamPipesEntity'
- | 'org.apache.streampipes.model.connect.adapter.AdapterDescription'
- | 'org.apache.streampipes.model.base.InvocableStreamPipesEntity'
- | 'org.apache.streampipes.model.graph.DataProcessorInvocation'
- | 'org.apache.streampipes.model.graph.DataSinkInvocation';
- 'version': number;
+ "@class": "org.apache.streampipes.model.base.VersionedNamedStreamPipesEntity" | "org.apache.streampipes.model.connect.adapter.AdapterDescription" | "org.apache.streampipes.model.base.InvocableStreamPipesEntity" | "org.apache.streampipes.model.graph.DataProcessorInvocation" | "org.apache.streampipes.model.graph.DataSinkInvocation";
+ version: number;
- static 'fromData'(
- data: VersionedNamedStreamPipesEntity,
- target?: VersionedNamedStreamPipesEntity,
- ): VersionedNamedStreamPipesEntity {
+ static fromData(data: VersionedNamedStreamPipesEntity, target?: VersionedNamedStreamPipesEntity): VersionedNamedStreamPipesEntity {
if (!data) {
return data;
}
@@ -100,68 +75,49 @@ export class VersionedNamedStreamPipesEntity extends NamedStreamPipesEntity {
}
export class AdapterDescription extends VersionedNamedStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.connect.adapter.AdapterDescription';
- 'category': string[];
- 'config': StaticPropertyUnion[];
- 'correspondingDataStreamElementId': string;
+ "@class": "org.apache.streampipes.model.connect.adapter.AdapterDescription";
+ category: string[];
+ config: StaticPropertyUnion[];
+ correspondingDataStreamElementId: string;
/**
* @deprecated
*/
- 'correspondingServiceGroup': string;
- 'createdAt': number;
- 'dataStream': SpDataStream;
- 'deploymentConfiguration': ExtensionDeploymentConfiguration;
- 'eventGrounding': EventGrounding;
- 'eventSchema': EventSchema;
- 'icon': string;
- 'rules': TransformationRuleDescriptionUnion[];
- 'running': boolean;
- 'schemaRules': TransformationRuleDescriptionUnion[];
- 'selectedEndpointUrl': string;
- 'streamRules': TransformationRuleDescriptionUnion[];
- 'valueRules': TransformationRuleDescriptionUnion[];
-
- static 'fromData'(
- data: AdapterDescription,
- target?: AdapterDescription,
- ): AdapterDescription {
+ correspondingServiceGroup: string;
+ createdAt: number;
+ dataStream: SpDataStream;
+ deploymentConfiguration: ExtensionDeploymentConfiguration;
+ eventGrounding: EventGrounding;
+ eventSchema: EventSchema;
+ icon: string;
+ rules: TransformationRuleDescriptionUnion[];
+ running: boolean;
+ schemaRules: TransformationRuleDescriptionUnion[];
+ selectedEndpointUrl: string;
+ streamRules: TransformationRuleDescriptionUnion[];
+ valueRules: TransformationRuleDescriptionUnion[];
+
+ static fromData(data: AdapterDescription, target?: AdapterDescription): AdapterDescription {
if (!data) {
return data;
}
const instance = target || new AdapterDescription();
super.fromData(data, instance);
- instance.category = __getCopyArrayFn(__identity<string>())(
- data.category,
- );
- instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(
- data.config,
- );
- instance.correspondingDataStreamElementId =
- data.correspondingDataStreamElementId;
+ instance.category = __getCopyArrayFn(__identity<string>())(data.category);
+ instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.config);
+ instance.correspondingDataStreamElementId = data.correspondingDataStreamElementId;
instance.correspondingServiceGroup = data.correspondingServiceGroup;
instance.createdAt = data.createdAt;
instance.dataStream = SpDataStream.fromData(data.dataStream);
- instance.deploymentConfiguration =
- ExtensionDeploymentConfiguration.fromData(
- data.deploymentConfiguration,
- );
+ instance.deploymentConfiguration = ExtensionDeploymentConfiguration.fromData(data.deploymentConfiguration);
instance.eventGrounding = EventGrounding.fromData(data.eventGrounding);
instance.eventSchema = EventSchema.fromData(data.eventSchema);
instance.icon = data.icon;
- instance.rules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.rules);
+ instance.rules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.rules);
instance.running = data.running;
- instance.schemaRules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.schemaRules);
+ instance.schemaRules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.schemaRules);
instance.selectedEndpointUrl = data.selectedEndpointUrl;
- instance.streamRules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.streamRules);
- instance.valueRules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.valueRules);
+ instance.streamRules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.streamRules);
+ instance.valueRules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.valueRules);
return instance;
}
}
@@ -170,18 +126,13 @@ export class AdapterEventPreview {
inputData: string;
rules: TransformationRuleDescriptionUnion[];
- static fromData(
- data: AdapterEventPreview,
- target?: AdapterEventPreview,
- ): AdapterEventPreview {
+ static fromData(data: AdapterEventPreview, target?: AdapterEventPreview): AdapterEventPreview {
if (!data) {
return data;
}
const instance = target || new AdapterEventPreview();
instance.inputData = data.inputData;
- instance.rules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.rules);
+ instance.rules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.rules);
return instance;
}
}
@@ -204,92 +155,56 @@ export class AdapterType {
}
export class TransformationRuleDescription {
- '@class':
- | 'org.apache.streampipes.model.connect.rules.value.ValueTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.stream.StreamTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.SchemaTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription';
- 'rulePriority': number;
-
- static 'fromData'(
- data: TransformationRuleDescription,
- target?: TransformationRuleDescription,
- ): TransformationRuleDescription {
+ "@class": "org.apache.streampipes.model.connect.rules.value.ValueTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription" | "org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription" | "org.apache.streampipes.model.connect.rules [...]
+ rulePriority: number;
+
+ static fromData(data: TransformationRuleDescription, target?: TransformationRuleDescription): TransformationRuleDescription {
if (!data) {
return data;
}
const instance = target || new TransformationRuleDescription();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.rulePriority = data.rulePriority;
return instance;
}
- static 'fromDataUnion'(
- data: TransformationRuleDescriptionUnion,
- ): TransformationRuleDescriptionUnion {
+ static fromDataUnion(data: TransformationRuleDescriptionUnion): TransformationRuleDescriptionUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription":
return AddTimestampRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription":
return AddValueTransformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription":
return TimestampTranfsformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription":
return UnitTransformRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription":
return EventRateTransformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription':
- return RemoveDuplicatesTransformationRuleDescription.fromData(
- data,
- );
- case 'org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription":
+ return RemoveDuplicatesTransformationRuleDescription.fromData(data);
+ case "org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription":
return CreateNestedRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription":
return DeleteRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription":
return RenameRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription":
return MoveRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription':
- return ChangeDatatypeTransformationRuleDescription.fromData(
- data,
- );
- case 'org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription':
- return CorrectionValueTransformationRuleDescription.fromData(
- data,
- );
+ case "org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription":
+ return ChangeDatatypeTransformationRuleDescription.fromData(data);
+ case "org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription":
+ return CorrectionValueTransformationRuleDescription.fromData(data);
}
}
}
export class ValueTransformationRuleDescription extends TransformationRuleDescription {
- '@class':
- | 'org.apache.streampipes.model.connect.rules.value.ValueTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription';
+ "@class": "org.apache.streampipes.model.connect.rules.value.ValueTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription" | "org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription" | "org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription" | "org.apache.streampipes.model.connect.rules [...]
- static 'fromData'(
- data: ValueTransformationRuleDescription,
- target?: ValueTransformationRuleDescription,
- ): ValueTransformationRuleDescription {
+ static fromData(data: ValueTransformationRuleDescription, target?: ValueTransformationRuleDescription): ValueTransformationRuleDescription {
if (!data) {
return data;
}
@@ -298,38 +213,31 @@ export class ValueTransformationRuleDescription extends TransformationRuleDescri
return instance;
}
- static 'fromDataUnion'(
- data: ValueTransformationRuleDescriptionUnion,
- ): ValueTransformationRuleDescriptionUnion {
+ static fromDataUnion(data: ValueTransformationRuleDescriptionUnion): ValueTransformationRuleDescriptionUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription":
return AddTimestampRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription":
return AddValueTransformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription":
return TimestampTranfsformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription':
+ case "org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription":
return UnitTransformRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription':
- return CorrectionValueTransformationRuleDescription.fromData(
- data,
- );
+ case "org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription":
+ return CorrectionValueTransformationRuleDescription.fromData(data);
}
}
}
export class AddTimestampRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription';
- 'propertyScope': PropertyScope;
- 'runtimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.AddTimestampRuleDescription";
+ propertyScope: PropertyScope;
+ runtimeKey: string;
- static 'fromData'(
- data: AddTimestampRuleDescription,
- target?: AddTimestampRuleDescription,
- ): AddTimestampRuleDescription {
+ static fromData(data: AddTimestampRuleDescription, target?: AddTimestampRuleDescription): AddTimestampRuleDescription {
if (!data) {
return data;
}
@@ -342,20 +250,17 @@ export class AddTimestampRuleDescription extends ValueTransformationRuleDescript
}
export class AddValueTransformationRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription';
- 'datatype': string;
- 'description': string;
- 'label': string;
- 'measurementUnit': string;
- 'propertyScope': PropertyScope;
- 'runtimeKey': string;
- 'semanticType': string;
- 'staticValue': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.AddValueTransformationRuleDescription";
+ datatype: string;
+ description: string;
+ label: string;
+ measurementUnit: string;
+ propertyScope: PropertyScope;
+ runtimeKey: string;
+ semanticType: string;
+ staticValue: string;
- static 'fromData'(
- data: AddValueTransformationRuleDescription,
- target?: AddValueTransformationRuleDescription,
- ): AddValueTransformationRuleDescription {
+ static fromData(data: AddValueTransformationRuleDescription, target?: AddValueTransformationRuleDescription): AddValueTransformationRuleDescription {
if (!data) {
return data;
}
@@ -374,46 +279,21 @@ export class AddValueTransformationRuleDescription extends ValueTransformationRu
}
export class StaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.CodeInputStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.CollectionStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.DomainStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.FileStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.FreeTextStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.MatchingStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.SecretStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternative'
- | 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives'
- | 'org.apache.streampipes.model.staticproperty.StaticPropertyGroup'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.SelectionStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.AnyStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.OneOfStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.MappingProperty'
- | 'org.apache.streampipes.model.staticproperty.MappingPropertyUnary'
- | 'org.apache.streampipes.model.staticproperty.MappingPropertyNary';
- 'description': string;
- 'index': number;
- 'internalName': string;
- 'label': string;
- 'optional': boolean;
- 'predefined': boolean;
- 'staticPropertyType': StaticPropertyType;
-
- static 'fromData'(
- data: StaticProperty,
- target?: StaticProperty,
- ): StaticProperty {
+ "@class": "org.apache.streampipes.model.staticproperty.CodeInputStaticProperty" | "org.apache.streampipes.model.staticproperty.CollectionStaticProperty" | "org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty" | "org.apache.streampipes.model.staticproperty.FileStaticProperty" | "org.apache.streampipes.model.staticproperty.FreeTextStaticProperty" | "org.apache.streampipes.model.staticproperty.MatchingStaticProperty" | "org.apache.streampipes.model.staticproperty.Runti [...]
+ description: string;
+ index: number;
+ internalName: string;
+ label: string;
+ optional: boolean;
+ predefined: boolean;
+ staticPropertyType: StaticPropertyType;
+
+ static fromData(data: StaticProperty, target?: StaticProperty): StaticProperty {
if (!data) {
return data;
}
const instance = target || new StaticProperty();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.description = data.description;
instance.index = data.index;
instance.internalName = data.internalName;
@@ -424,69 +304,59 @@ export class StaticProperty {
return instance;
}
- static 'fromDataUnion'(data: StaticPropertyUnion): StaticPropertyUnion {
+ static fromDataUnion(data: StaticPropertyUnion): StaticPropertyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.staticproperty.AnyStaticProperty':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.staticproperty.AnyStaticProperty":
return AnyStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.CodeInputStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.CodeInputStaticProperty":
return CodeInputStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.CollectionStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.CollectionStaticProperty":
return CollectionStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty":
return ColorPickerStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.DomainStaticProperty':
- return DomainStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.FileStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.FileStaticProperty":
return FileStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.FreeTextStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.FreeTextStaticProperty":
return FreeTextStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.MappingPropertyUnary':
+ case "org.apache.streampipes.model.staticproperty.MappingPropertyUnary":
return MappingPropertyUnary.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.MappingPropertyNary':
+ case "org.apache.streampipes.model.staticproperty.MappingPropertyNary":
return MappingPropertyNary.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.MatchingStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.MatchingStaticProperty":
return MatchingStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.OneOfStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.OneOfStaticProperty":
return OneOfStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty":
return RuntimeResolvableAnyStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty":
return RuntimeResolvableOneOfStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty":
return RuntimeResolvableTreeInputStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.SecretStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.SecretStaticProperty":
return SecretStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternative':
+ case "org.apache.streampipes.model.staticproperty.StaticPropertyAlternative":
return StaticPropertyAlternative.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives':
+ case "org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives":
return StaticPropertyAlternatives.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.StaticPropertyGroup':
+ case "org.apache.streampipes.model.staticproperty.StaticPropertyGroup":
return StaticPropertyGroup.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty":
return SlideToggleStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty":
return RuntimeResolvableGroupStaticProperty.fromData(data);
}
}
}
export class SelectionStaticProperty extends StaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.SelectionStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.AnyStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.OneOfStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty';
- 'horizontalRendering': boolean;
- 'options': Option[];
+ "@class": "org.apache.streampipes.model.staticproperty.SelectionStaticProperty" | "org.apache.streampipes.model.staticproperty.AnyStaticProperty" | "org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty" | "org.apache.streampipes.model.staticproperty.OneOfStaticProperty" | "org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty";
+ horizontalRendering: boolean;
+ options: Option[];
- static 'fromData'(
- data: SelectionStaticProperty,
- target?: SelectionStaticProperty,
- ): SelectionStaticProperty {
+ static fromData(data: SelectionStaticProperty, target?: SelectionStaticProperty): SelectionStaticProperty {
if (!data) {
return data;
}
@@ -497,30 +367,23 @@ export class SelectionStaticProperty extends StaticProperty {
return instance;
}
- static 'fromDataUnion'(
- data: SelectionStaticPropertyUnion,
- ): SelectionStaticPropertyUnion {
+ static fromDataUnion(data: SelectionStaticPropertyUnion): SelectionStaticPropertyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.staticproperty.AnyStaticProperty':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.staticproperty.AnyStaticProperty":
return AnyStaticProperty.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.OneOfStaticProperty':
+ case "org.apache.streampipes.model.staticproperty.OneOfStaticProperty":
return OneOfStaticProperty.fromData(data);
}
}
}
export class AnyStaticProperty extends SelectionStaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.AnyStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty';
+ "@class": "org.apache.streampipes.model.staticproperty.AnyStaticProperty" | "org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty";
- static 'fromData'(
- data: AnyStaticProperty,
- target?: AnyStaticProperty,
- ): AnyStaticProperty {
+ static fromData(data: AnyStaticProperty, target?: AnyStaticProperty): AnyStaticProperty {
if (!data) {
return data;
}
@@ -531,75 +394,57 @@ export class AnyStaticProperty extends SelectionStaticProperty {
}
export class OutputStrategy {
- '@class':
- | 'org.apache.streampipes.model.output.AppendOutputStrategy'
- | 'org.apache.streampipes.model.output.CustomOutputStrategy'
- | 'org.apache.streampipes.model.output.CustomTransformOutputStrategy'
- | 'org.apache.streampipes.model.output.FixedOutputStrategy'
- | 'org.apache.streampipes.model.output.KeepOutputStrategy'
- | 'org.apache.streampipes.model.output.ListOutputStrategy'
- | 'org.apache.streampipes.model.output.TransformOutputStrategy'
- | 'org.apache.streampipes.model.output.UserDefinedOutputStrategy';
- 'name': string;
- 'renameRules': PropertyRenameRule[];
+ "@class": "org.apache.streampipes.model.output.AppendOutputStrategy" | "org.apache.streampipes.model.output.CustomOutputStrategy" | "org.apache.streampipes.model.output.CustomTransformOutputStrategy" | "org.apache.streampipes.model.output.FixedOutputStrategy" | "org.apache.streampipes.model.output.KeepOutputStrategy" | "org.apache.streampipes.model.output.ListOutputStrategy" | "org.apache.streampipes.model.output.TransformOutputStrategy" | "org.apache.streampipes.model.output.UserDef [...]
+ name: string;
+ renameRules: PropertyRenameRule[];
- static 'fromData'(
- data: OutputStrategy,
- target?: OutputStrategy,
- ): OutputStrategy {
+ static fromData(data: OutputStrategy, target?: OutputStrategy): OutputStrategy {
if (!data) {
return data;
}
const instance = target || new OutputStrategy();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.name = data.name;
- instance.renameRules = __getCopyArrayFn(PropertyRenameRule.fromData)(
- data.renameRules,
- );
+ instance.renameRules = __getCopyArrayFn(PropertyRenameRule.fromData)(data.renameRules);
return instance;
}
- static 'fromDataUnion'(data: OutputStrategyUnion): OutputStrategyUnion {
+ static fromDataUnion(data: OutputStrategyUnion): OutputStrategyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.output.AppendOutputStrategy':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.output.AppendOutputStrategy":
return AppendOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.CustomOutputStrategy':
+ case "org.apache.streampipes.model.output.CustomOutputStrategy":
return CustomOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.CustomTransformOutputStrategy':
+ case "org.apache.streampipes.model.output.CustomTransformOutputStrategy":
return CustomTransformOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.FixedOutputStrategy':
+ case "org.apache.streampipes.model.output.FixedOutputStrategy":
return FixedOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.KeepOutputStrategy':
+ case "org.apache.streampipes.model.output.KeepOutputStrategy":
return KeepOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.ListOutputStrategy':
+ case "org.apache.streampipes.model.output.ListOutputStrategy":
return ListOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.TransformOutputStrategy':
+ case "org.apache.streampipes.model.output.TransformOutputStrategy":
return TransformOutputStrategy.fromData(data);
- case 'org.apache.streampipes.model.output.UserDefinedOutputStrategy':
+ case "org.apache.streampipes.model.output.UserDefinedOutputStrategy":
return UserDefinedOutputStrategy.fromData(data);
}
}
}
export class AppendOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.AppendOutputStrategy';
- 'eventProperties': EventPropertyUnion[];
+ "@class": "org.apache.streampipes.model.output.AppendOutputStrategy";
+ eventProperties: EventPropertyUnion[];
- static 'fromData'(
- data: AppendOutputStrategy,
- target?: AppendOutputStrategy,
- ): AppendOutputStrategy {
+ static fromData(data: AppendOutputStrategy, target?: AppendOutputStrategy): AppendOutputStrategy {
if (!data) {
return data;
}
const instance = target || new AppendOutputStrategy();
super.fromData(data, instance);
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
@@ -617,37 +462,22 @@ export class AssetExportConfiguration {
overrideBrokerSettings: boolean;
pipelines: ExportItem[];
- static fromData(
- data: AssetExportConfiguration,
- target?: AssetExportConfiguration,
- ): AssetExportConfiguration {
+ static fromData(data: AssetExportConfiguration, target?: AssetExportConfiguration): AssetExportConfiguration {
if (!data) {
return data;
}
const instance = target || new AssetExportConfiguration();
- instance.adapters = __getCopyArrayFn(ExportItem.fromData)(
- data.adapters,
- );
+ instance.adapters = __getCopyArrayFn(ExportItem.fromData)(data.adapters);
instance.assetId = data.assetId;
instance.assetName = data.assetName;
instance.assets = __getCopyArrayFn(ExportItem.fromData)(data.assets);
- instance.dashboards = __getCopyArrayFn(ExportItem.fromData)(
- data.dashboards,
- );
- instance.dataLakeMeasures = __getCopyArrayFn(ExportItem.fromData)(
- data.dataLakeMeasures,
- );
- instance.dataSources = __getCopyArrayFn(ExportItem.fromData)(
- data.dataSources,
- );
- instance.dataViews = __getCopyArrayFn(ExportItem.fromData)(
- data.dataViews,
- );
+ instance.dashboards = __getCopyArrayFn(ExportItem.fromData)(data.dashboards);
+ instance.dataLakeMeasures = __getCopyArrayFn(ExportItem.fromData)(data.dataLakeMeasures);
+ instance.dataSources = __getCopyArrayFn(ExportItem.fromData)(data.dataSources);
+ instance.dataViews = __getCopyArrayFn(ExportItem.fromData)(data.dataViews);
instance.files = __getCopyArrayFn(ExportItem.fromData)(data.files);
instance.overrideBrokerSettings = data.overrideBrokerSettings;
- instance.pipelines = __getCopyArrayFn(ExportItem.fromData)(
- data.pipelines,
- );
+ instance.pipelines = __getCopyArrayFn(ExportItem.fromData)(data.pipelines);
return instance;
}
}
@@ -656,20 +486,13 @@ export class BoundPipelineElement {
connectedTo: BoundPipelineElement[];
pipelineElementTemplate: InvocableStreamPipesEntity;
- static fromData(
- data: BoundPipelineElement,
- target?: BoundPipelineElement,
- ): BoundPipelineElement {
+ static fromData(data: BoundPipelineElement, target?: BoundPipelineElement): BoundPipelineElement {
if (!data) {
return data;
}
const instance = target || new BoundPipelineElement();
- instance.connectedTo = __getCopyArrayFn(BoundPipelineElement.fromData)(
- data.connectedTo,
- );
- instance.pipelineElementTemplate = InvocableStreamPipesEntity.fromData(
- data.pipelineElementTemplate,
- );
+ instance.connectedTo = __getCopyArrayFn(BoundPipelineElement.fromData)(data.connectedTo);
+ instance.pipelineElementTemplate = InvocableStreamPipesEntity.fromData(data.pipelineElementTemplate);
return instance;
}
}
@@ -678,10 +501,7 @@ export class CanvasPosition {
x: number;
y: number;
- static fromData(
- data: CanvasPosition,
- target?: CanvasPosition,
- ): CanvasPosition {
+ static fromData(data: CanvasPosition, target?: CanvasPosition): CanvasPosition {
if (!data) {
return data;
}
@@ -693,20 +513,16 @@ export class CanvasPosition {
}
export class ChangeDatatypeTransformationRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription';
- 'originalDatatypeXsd': string;
- 'runtimeKey': string;
- 'targetDatatypeXsd': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.ChangeDatatypeTransformationRuleDescription";
+ originalDatatypeXsd: string;
+ runtimeKey: string;
+ targetDatatypeXsd: string;
- static 'fromData'(
- data: ChangeDatatypeTransformationRuleDescription,
- target?: ChangeDatatypeTransformationRuleDescription,
- ): ChangeDatatypeTransformationRuleDescription {
+ static fromData(data: ChangeDatatypeTransformationRuleDescription, target?: ChangeDatatypeTransformationRuleDescription): ChangeDatatypeTransformationRuleDescription {
if (!data) {
return data;
}
- const instance =
- target || new ChangeDatatypeTransformationRuleDescription();
+ const instance = target || new ChangeDatatypeTransformationRuleDescription();
super.fromData(data, instance);
instance.originalDatatypeXsd = data.originalDatatypeXsd;
instance.runtimeKey = data.runtimeKey;
@@ -716,15 +532,12 @@ export class ChangeDatatypeTransformationRuleDescription extends ValueTransforma
}
export class CodeInputStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.CodeInputStaticProperty';
- 'codeTemplate': string;
- 'language': string;
- 'value': string;
+ "@class": "org.apache.streampipes.model.staticproperty.CodeInputStaticProperty";
+ codeTemplate: string;
+ language: string;
+ value: string;
- static 'fromData'(
- data: CodeInputStaticProperty,
- target?: CodeInputStaticProperty,
- ): CodeInputStaticProperty {
+ static fromData(data: CodeInputStaticProperty, target?: CodeInputStaticProperty): CodeInputStaticProperty {
if (!data) {
return data;
}
@@ -738,39 +551,29 @@ export class CodeInputStaticProperty extends StaticProperty {
}
export class CollectionStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.CollectionStaticProperty';
- 'memberType': string;
- 'members': StaticPropertyUnion[];
- 'staticPropertyTemplate': StaticPropertyUnion;
+ "@class": "org.apache.streampipes.model.staticproperty.CollectionStaticProperty";
+ memberType: string;
+ members: StaticPropertyUnion[];
+ staticPropertyTemplate: StaticPropertyUnion;
- static 'fromData'(
- data: CollectionStaticProperty,
- target?: CollectionStaticProperty,
- ): CollectionStaticProperty {
+ static fromData(data: CollectionStaticProperty, target?: CollectionStaticProperty): CollectionStaticProperty {
if (!data) {
return data;
}
const instance = target || new CollectionStaticProperty();
super.fromData(data, instance);
instance.memberType = data.memberType;
- instance.members = __getCopyArrayFn(StaticProperty.fromDataUnion)(
- data.members,
- );
- instance.staticPropertyTemplate = StaticProperty.fromDataUnion(
- data.staticPropertyTemplate,
- );
+ instance.members = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.members);
+ instance.staticPropertyTemplate = StaticProperty.fromDataUnion(data.staticPropertyTemplate);
return instance;
}
}
export class ColorPickerStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty';
- 'selectedColor': string;
+ "@class": "org.apache.streampipes.model.staticproperty.ColorPickerStaticProperty";
+ selectedColor: string;
- static 'fromData'(
- data: ColorPickerStaticProperty,
- target?: ColorPickerStaticProperty,
- ): ColorPickerStaticProperty {
+ static fromData(data: ColorPickerStaticProperty, target?: ColorPickerStaticProperty): ColorPickerStaticProperty {
if (!data) {
return data;
}
@@ -824,39 +627,30 @@ export class ConsumedMessagesInfo extends MessagesInfo {
lag: number;
totalMessagesSincePipelineStart: number;
- static fromData(
- data: ConsumedMessagesInfo,
- target?: ConsumedMessagesInfo,
- ): ConsumedMessagesInfo {
+ static fromData(data: ConsumedMessagesInfo, target?: ConsumedMessagesInfo): ConsumedMessagesInfo {
if (!data) {
return data;
}
const instance = target || new ConsumedMessagesInfo();
super.fromData(data, instance);
- instance.consumedMessagesSincePipelineStart =
- data.consumedMessagesSincePipelineStart;
+ instance.consumedMessagesSincePipelineStart = data.consumedMessagesSincePipelineStart;
instance.lag = data.lag;
- instance.totalMessagesSincePipelineStart =
- data.totalMessagesSincePipelineStart;
+ instance.totalMessagesSincePipelineStart = data.totalMessagesSincePipelineStart;
return instance;
}
}
export class CorrectionValueTransformationRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription';
- 'correctionValue': number;
- 'operator': string;
- 'runtimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.CorrectionValueTransformationRuleDescription";
+ correctionValue: number;
+ operator: string;
+ runtimeKey: string;
- static 'fromData'(
- data: CorrectionValueTransformationRuleDescription,
- target?: CorrectionValueTransformationRuleDescription,
- ): CorrectionValueTransformationRuleDescription {
+ static fromData(data: CorrectionValueTransformationRuleDescription, target?: CorrectionValueTransformationRuleDescription): CorrectionValueTransformationRuleDescription {
if (!data) {
return data;
}
- const instance =
- target || new CorrectionValueTransformationRuleDescription();
+ const instance = target || new CorrectionValueTransformationRuleDescription();
super.fromData(data, instance);
instance.correctionValue = data.correctionValue;
instance.operator = data.operator;
@@ -866,17 +660,9 @@ export class CorrectionValueTransformationRuleDescription extends ValueTransform
}
export class SchemaTransformationRuleDescription extends TransformationRuleDescription {
- '@class':
- | 'org.apache.streampipes.model.connect.rules.schema.SchemaTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription';
+ "@class": "org.apache.streampipes.model.connect.rules.schema.SchemaTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription" | "org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription" | "org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription" | "org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription";
- static 'fromData'(
- data: SchemaTransformationRuleDescription,
- target?: SchemaTransformationRuleDescription,
- ): SchemaTransformationRuleDescription {
+ static fromData(data: SchemaTransformationRuleDescription, target?: SchemaTransformationRuleDescription): SchemaTransformationRuleDescription {
if (!data) {
return data;
}
@@ -887,13 +673,10 @@ export class SchemaTransformationRuleDescription extends TransformationRuleDescr
}
export class CreateNestedRuleDescription extends SchemaTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription';
- 'runtimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.schema.CreateNestedRuleDescription";
+ runtimeKey: string;
- static 'fromData'(
- data: CreateNestedRuleDescription,
- target?: CreateNestedRuleDescription,
- ): CreateNestedRuleDescription {
+ static fromData(data: CreateNestedRuleDescription, target?: CreateNestedRuleDescription): CreateNestedRuleDescription {
if (!data) {
return data;
}
@@ -905,47 +688,35 @@ export class CreateNestedRuleDescription extends SchemaTransformationRuleDescrip
}
export class CustomOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.CustomOutputStrategy';
- 'availablePropertyKeys': string[];
- 'outputRight': boolean;
- 'selectedPropertyKeys': string[];
+ "@class": "org.apache.streampipes.model.output.CustomOutputStrategy";
+ availablePropertyKeys: string[];
+ outputRight: boolean;
+ selectedPropertyKeys: string[];
- static 'fromData'(
- data: CustomOutputStrategy,
- target?: CustomOutputStrategy,
- ): CustomOutputStrategy {
+ static fromData(data: CustomOutputStrategy, target?: CustomOutputStrategy): CustomOutputStrategy {
if (!data) {
return data;
}
const instance = target || new CustomOutputStrategy();
super.fromData(data, instance);
- instance.availablePropertyKeys = __getCopyArrayFn(__identity<string>())(
- data.availablePropertyKeys,
- );
+ instance.availablePropertyKeys = __getCopyArrayFn(__identity<string>())(data.availablePropertyKeys);
instance.outputRight = data.outputRight;
- instance.selectedPropertyKeys = __getCopyArrayFn(__identity<string>())(
- data.selectedPropertyKeys,
- );
+ instance.selectedPropertyKeys = __getCopyArrayFn(__identity<string>())(data.selectedPropertyKeys);
return instance;
}
}
export class CustomTransformOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.CustomTransformOutputStrategy';
- 'eventProperties': EventPropertyUnion[];
+ "@class": "org.apache.streampipes.model.output.CustomTransformOutputStrategy";
+ eventProperties: EventPropertyUnion[];
- static 'fromData'(
- data: CustomTransformOutputStrategy,
- target?: CustomTransformOutputStrategy,
- ): CustomTransformOutputStrategy {
+ static fromData(data: CustomTransformOutputStrategy, target?: CustomTransformOutputStrategy): CustomTransformOutputStrategy {
if (!data) {
return data;
}
const instance = target || new CustomTransformOutputStrategy();
super.fromData(data, instance);
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
@@ -954,10 +725,7 @@ export class DashboardEntity {
_id: string;
_rev: string;
- static fromData(
- data: DashboardEntity,
- target?: DashboardEntity,
- ): DashboardEntity {
+ static fromData(data: DashboardEntity, target?: DashboardEntity): DashboardEntity {
if (!data) {
return data;
}
@@ -978,10 +746,7 @@ export class DashboardItem {
x: number;
y: number;
- static fromData(
- data: DashboardItem,
- target?: DashboardItem,
- ): DashboardItem {
+ static fromData(data: DashboardItem, target?: DashboardItem): DashboardItem {
if (!data) {
return data;
}
@@ -991,9 +756,7 @@ export class DashboardItem {
instance.id = data.id;
instance.name = data.name;
instance.rows = data.rows;
- instance.settings = __getCopyArrayFn(__identity<string>())(
- data.settings,
- );
+ instance.settings = __getCopyArrayFn(__identity<string>())(data.settings);
instance.x = data.x;
instance.y = data.y;
return instance;
@@ -1011,29 +774,20 @@ export class DashboardModel {
name: string;
widgets: DashboardItem[];
- static fromData(
- data: DashboardModel,
- target?: DashboardModel,
- ): DashboardModel {
+ static fromData(data: DashboardModel, target?: DashboardModel): DashboardModel {
if (!data) {
return data;
}
const instance = target || new DashboardModel();
instance._id = data._id;
instance._rev = data._rev;
- instance.dashboardGeneralSettings = __getCopyObjectFn(
- __identity<any>(),
- )(data.dashboardGeneralSettings);
- instance.dashboardTimeSettings = __getCopyObjectFn(__identity<any>())(
- data.dashboardTimeSettings,
- );
+ instance.dashboardGeneralSettings = __getCopyObjectFn(__identity<any>())(data.dashboardGeneralSettings);
+ instance.dashboardTimeSettings = __getCopyObjectFn(__identity<any>())(data.dashboardTimeSettings);
instance.description = data.description;
instance.displayHeader = data.displayHeader;
instance.id = data.id;
instance.name = data.name;
- instance.widgets = __getCopyArrayFn(DashboardItem.fromData)(
- data.widgets,
- );
+ instance.widgets = __getCopyArrayFn(DashboardItem.fromData)(data.widgets);
return instance;
}
}
@@ -1045,18 +799,13 @@ export class DashboardWidgetModel extends DashboardEntity {
widgetId: string;
widgetType: string;
- static fromData(
- data: DashboardWidgetModel,
- target?: DashboardWidgetModel,
- ): DashboardWidgetModel {
+ static fromData(data: DashboardWidgetModel, target?: DashboardWidgetModel): DashboardWidgetModel {
if (!data) {
return data;
}
const instance = target || new DashboardWidgetModel();
super.fromData(data, instance);
- instance.dashboardWidgetSettings = DashboardWidgetSettings.fromData(
- data.dashboardWidgetSettings,
- );
+ instance.dashboardWidgetSettings = DashboardWidgetSettings.fromData(data.dashboardWidgetSettings);
instance.pipelineId = data.pipelineId;
instance.visualizationName = data.visualizationName;
instance.widgetId = data.widgetId;
@@ -1073,17 +822,12 @@ export class DashboardWidgetSettings {
widgetLabel: string;
widgetName: string;
- static fromData(
- data: DashboardWidgetSettings,
- target?: DashboardWidgetSettings,
- ): DashboardWidgetSettings {
+ static fromData(data: DashboardWidgetSettings, target?: DashboardWidgetSettings): DashboardWidgetSettings {
if (!data) {
return data;
}
const instance = target || new DashboardWidgetSettings();
- instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(
- data.config,
- );
+ instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.config);
instance.requiredSchema = EventSchema.fromData(data.requiredSchema);
instance.widgetDescription = data.widgetDescription;
instance.widgetIconName = data.widgetIconName;
@@ -1102,26 +846,17 @@ export class DataExplorerWidgetModel extends DashboardEntity {
widgetId: string;
widgetType: string;
- static fromData(
- data: DataExplorerWidgetModel,
- target?: DataExplorerWidgetModel,
- ): DataExplorerWidgetModel {
+ static fromData(data: DataExplorerWidgetModel, target?: DataExplorerWidgetModel): DataExplorerWidgetModel {
if (!data) {
return data;
}
const instance = target || new DataExplorerWidgetModel();
super.fromData(data, instance);
- instance.baseAppearanceConfig = __getCopyObjectFn(__identity<any>())(
- data.baseAppearanceConfig,
- );
- instance.dataConfig = __getCopyObjectFn(__identity<any>())(
- data.dataConfig,
- );
+ instance.baseAppearanceConfig = __getCopyObjectFn(__identity<any>())(data.baseAppearanceConfig);
+ instance.dataConfig = __getCopyObjectFn(__identity<any>())(data.dataConfig);
instance.measureName = data.measureName;
instance.pipelineId = data.pipelineId;
- instance.visualizationConfig = __getCopyObjectFn(__identity<any>())(
- data.visualizationConfig,
- );
+ instance.visualizationConfig = __getCopyObjectFn(__identity<any>())(data.visualizationConfig);
instance.widgetId = data.widgetId;
instance.widgetType = data.widgetType;
return instance;
@@ -1129,27 +864,24 @@ export class DataExplorerWidgetModel extends DashboardEntity {
}
export class DataLakeMeasure {
- '@class': 'org.apache.streampipes.model.datalake.DataLakeMeasure';
- '_rev': string;
- 'elementId': string;
- 'eventSchema': EventSchema;
- 'measureName': string;
- 'pipelineId': string;
- 'pipelineIsRunning': boolean;
- 'pipelineName': string;
- 'schemaUpdateStrategy': DataLakeMeasureSchemaUpdateStrategy;
- 'schemaVersion': string;
- 'timestampField': string;
+ "@class": "org.apache.streampipes.model.datalake.DataLakeMeasure";
+ _rev: string;
+ elementId: string;
+ eventSchema: EventSchema;
+ measureName: string;
+ pipelineId: string;
+ pipelineIsRunning: boolean;
+ pipelineName: string;
+ schemaUpdateStrategy: DataLakeMeasureSchemaUpdateStrategy;
+ schemaVersion: string;
+ timestampField: string;
- static 'fromData'(
- data: DataLakeMeasure,
- target?: DataLakeMeasure,
- ): DataLakeMeasure {
+ static fromData(data: DataLakeMeasure, target?: DataLakeMeasure): DataLakeMeasure {
if (!data) {
return data;
}
const instance = target || new DataLakeMeasure();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance._rev = data._rev;
instance.elementId = data.elementId;
instance.eventSchema = EventSchema.fromData(data.eventSchema);
@@ -1164,31 +896,22 @@ export class DataLakeMeasure {
}
}
-export class InvocableStreamPipesEntity
- extends VersionedNamedStreamPipesEntity
- implements EndpointSelectable
-{
- '@class':
- | 'org.apache.streampipes.model.base.InvocableStreamPipesEntity'
- | 'org.apache.streampipes.model.graph.DataProcessorInvocation'
- | 'org.apache.streampipes.model.graph.DataSinkInvocation';
- 'belongsTo': string;
- 'configured': boolean;
- 'correspondingPipeline': string;
- 'correspondingUser': string;
- 'detachPath': string;
- 'inputStreams': SpDataStream[];
- 'selectedEndpointUrl': string;
- 'serviceTagPrefix': SpServiceTagPrefix;
- 'staticProperties': StaticPropertyUnion[];
- 'streamRequirements': SpDataStream[];
- 'supportedGrounding': EventGrounding;
- 'uncompleted': boolean;
+export class InvocableStreamPipesEntity extends VersionedNamedStreamPipesEntity implements EndpointSelectable {
+ "@class": "org.apache.streampipes.model.base.InvocableStreamPipesEntity" | "org.apache.streampipes.model.graph.DataProcessorInvocation" | "org.apache.streampipes.model.graph.DataSinkInvocation";
+ belongsTo: string;
+ configured: boolean;
+ correspondingPipeline: string;
+ correspondingUser: string;
+ detachPath: string;
+ inputStreams: SpDataStream[];
+ selectedEndpointUrl: string;
+ serviceTagPrefix: SpServiceTagPrefix;
+ staticProperties: StaticPropertyUnion[];
+ streamRequirements: SpDataStream[];
+ supportedGrounding: EventGrounding;
+ uncompleted: boolean;
- static 'fromData'(
- data: InvocableStreamPipesEntity,
- target?: InvocableStreamPipesEntity,
- ): InvocableStreamPipesEntity {
+ static fromData(data: InvocableStreamPipesEntity, target?: InvocableStreamPipesEntity): InvocableStreamPipesEntity {
if (!data) {
return data;
}
@@ -1199,46 +922,31 @@ export class InvocableStreamPipesEntity
instance.correspondingPipeline = data.correspondingPipeline;
instance.correspondingUser = data.correspondingUser;
instance.detachPath = data.detachPath;
- instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(
- data.inputStreams,
- );
+ instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(data.inputStreams);
instance.selectedEndpointUrl = data.selectedEndpointUrl;
instance.serviceTagPrefix = data.serviceTagPrefix;
- instance.staticProperties = __getCopyArrayFn(
- StaticProperty.fromDataUnion,
- )(data.staticProperties);
- instance.streamRequirements = __getCopyArrayFn(SpDataStream.fromData)(
- data.streamRequirements,
- );
- instance.supportedGrounding = EventGrounding.fromData(
- data.supportedGrounding,
- );
+ instance.staticProperties = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.staticProperties);
+ instance.streamRequirements = __getCopyArrayFn(SpDataStream.fromData)(data.streamRequirements);
+ instance.supportedGrounding = EventGrounding.fromData(data.supportedGrounding);
instance.uncompleted = data.uncompleted;
return instance;
}
}
export class DataProcessorInvocation extends InvocableStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.graph.DataProcessorInvocation';
- 'category': string[];
- 'outputStrategies': OutputStrategyUnion[];
- 'outputStream': SpDataStream;
+ "@class": "org.apache.streampipes.model.graph.DataProcessorInvocation";
+ category: string[];
+ outputStrategies: OutputStrategyUnion[];
+ outputStream: SpDataStream;
- static 'fromData'(
- data: DataProcessorInvocation,
- target?: DataProcessorInvocation,
- ): DataProcessorInvocation {
+ static fromData(data: DataProcessorInvocation, target?: DataProcessorInvocation): DataProcessorInvocation {
if (!data) {
return data;
}
const instance = target || new DataProcessorInvocation();
super.fromData(data, instance);
- instance.category = __getCopyArrayFn(__identity<string>())(
- data.category,
- );
- instance.outputStrategies = __getCopyArrayFn(
- OutputStrategy.fromDataUnion,
- )(data.outputStrategies);
+ instance.category = __getCopyArrayFn(__identity<string>())(data.category);
+ instance.outputStrategies = __getCopyArrayFn(OutputStrategy.fromDataUnion)(data.outputStrategies);
instance.outputStream = SpDataStream.fromData(data.outputStream);
return instance;
}
@@ -1249,10 +957,7 @@ export class DataProcessorType {
description: string;
label: string;
- static fromData(
- data: DataProcessorType,
- target?: DataProcessorType,
- ): DataProcessorType {
+ static fromData(data: DataProcessorType, target?: DataProcessorType): DataProcessorType {
if (!data) {
return data;
}
@@ -1276,9 +981,7 @@ export class DataSeries {
}
const instance = target || new DataSeries();
instance.headers = __getCopyArrayFn(__identity<string>())(data.headers);
- instance.rows = __getCopyArrayFn(__getCopyArrayFn(__identity<any>()))(
- data.rows,
- );
+ instance.rows = __getCopyArrayFn(__getCopyArrayFn(__identity<any>()))(data.rows);
instance.tags = __getCopyObjectFn(__identity<string>())(data.tags);
instance.total = data.total;
return instance;
@@ -1286,21 +989,16 @@ export class DataSeries {
}
export class DataSinkInvocation extends InvocableStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.graph.DataSinkInvocation';
- 'category': string[];
+ "@class": "org.apache.streampipes.model.graph.DataSinkInvocation";
+ category: string[];
- static 'fromData'(
- data: DataSinkInvocation,
- target?: DataSinkInvocation,
- ): DataSinkInvocation {
+ static fromData(data: DataSinkInvocation, target?: DataSinkInvocation): DataSinkInvocation {
if (!data) {
return data;
}
const instance = target || new DataSinkInvocation();
super.fromData(data, instance);
- instance.category = __getCopyArrayFn(__identity<string>())(
- data.category,
- );
+ instance.category = __getCopyArrayFn(__identity<string>())(data.category);
return instance;
}
}
@@ -1323,13 +1021,10 @@ export class DataSinkType {
}
export class DeleteRuleDescription extends SchemaTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription';
- 'runtimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.schema.DeleteRuleDescription";
+ runtimeKey: string;
- static 'fromData'(
- data: DeleteRuleDescription,
- target?: DeleteRuleDescription,
- ): DeleteRuleDescription {
+ static fromData(data: DeleteRuleDescription, target?: DeleteRuleDescription): DeleteRuleDescription {
if (!data) {
return data;
}
@@ -1340,43 +1035,16 @@ export class DeleteRuleDescription extends SchemaTransformationRuleDescription {
}
}
-export class DomainStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.DomainStaticProperty';
- 'requiredClass': string;
- 'supportedProperties': SupportedProperty[];
-
- static 'fromData'(
- data: DomainStaticProperty,
- target?: DomainStaticProperty,
- ): DomainStaticProperty {
- if (!data) {
- return data;
- }
- const instance = target || new DomainStaticProperty();
- super.fromData(data, instance);
- instance.requiredClass = data.requiredClass;
- instance.supportedProperties = __getCopyArrayFn(
- SupportedProperty.fromData,
- )(data.supportedProperties);
- return instance;
- }
-}
-
export class EdgeValidationStatus {
notifications: Notification[];
validationStatusType: EdgeValidationStatusType;
- static fromData(
- data: EdgeValidationStatus,
- target?: EdgeValidationStatus,
- ): EdgeValidationStatus {
+ static fromData(data: EdgeValidationStatus, target?: EdgeValidationStatus): EdgeValidationStatus {
if (!data) {
return data;
}
const instance = target || new EdgeValidationStatus();
- instance.notifications = __getCopyArrayFn(Notification.fromData)(
- data.notifications,
- );
+ instance.notifications = __getCopyArrayFn(Notification.fromData)(data.notifications);
instance.validationStatusType = data.validationStatusType;
return instance;
}
@@ -1388,22 +1056,15 @@ export class ElementComposition {
sepas: DataProcessorInvocation[];
streams: SpDataStream[];
- static fromData(
- data: ElementComposition,
- target?: ElementComposition,
- ): ElementComposition {
+ static fromData(data: ElementComposition, target?: ElementComposition): ElementComposition {
if (!data) {
return data;
}
const instance = target || new ElementComposition();
instance.description = data.description;
instance.name = data.name;
- instance.sepas = __getCopyArrayFn(DataProcessorInvocation.fromData)(
- data.sepas,
- );
- instance.streams = __getCopyArrayFn(SpDataStream.fromData)(
- data.streams,
- );
+ instance.sepas = __getCopyArrayFn(DataProcessorInvocation.fromData)(data.sepas);
+ instance.streams = __getCopyArrayFn(SpDataStream.fromData)(data.streams);
return instance;
}
}
@@ -1416,44 +1077,37 @@ export interface EndpointSelectable {
}
export class ValueSpecification {
- '@class':
- | 'org.apache.streampipes.model.schema.QuantitativeValue'
- | 'org.apache.streampipes.model.schema.Enumeration';
+ "@class": "org.apache.streampipes.model.schema.QuantitativeValue" | "org.apache.streampipes.model.schema.Enumeration";
- static 'fromData'(
- data: ValueSpecification,
- target?: ValueSpecification,
- ): ValueSpecification {
+ static fromData(data: ValueSpecification, target?: ValueSpecification): ValueSpecification {
if (!data) {
return data;
}
const instance = target || new ValueSpecification();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
return instance;
}
- static 'fromDataUnion'(
- data: ValueSpecificationUnion,
- ): ValueSpecificationUnion {
+ static fromDataUnion(data: ValueSpecificationUnion): ValueSpecificationUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.schema.QuantitativeValue':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.schema.QuantitativeValue":
return QuantitativeValue.fromData(data);
- case 'org.apache.streampipes.model.schema.Enumeration':
+ case "org.apache.streampipes.model.schema.Enumeration":
return Enumeration.fromData(data);
}
}
}
export class Enumeration extends ValueSpecification {
- '@class': 'org.apache.streampipes.model.schema.Enumeration';
- 'description': string;
- 'label': string;
- 'runtimeValues': string[];
+ "@class": "org.apache.streampipes.model.schema.Enumeration";
+ description: string;
+ label: string;
+ runtimeValues: string[];
- static 'fromData'(data: Enumeration, target?: Enumeration): Enumeration {
+ static fromData(data: Enumeration, target?: Enumeration): Enumeration {
if (!data) {
return data;
}
@@ -1461,9 +1115,7 @@ export class Enumeration extends ValueSpecification {
super.fromData(data, instance);
instance.description = data.description;
instance.label = data.label;
- instance.runtimeValues = __getCopyArrayFn(__identity<string>())(
- data.runtimeValues,
- );
+ instance.runtimeValues = __getCopyArrayFn(__identity<string>())(data.runtimeValues);
return instance;
}
}
@@ -1479,15 +1131,14 @@ export class Message {
}
const instance = target || new Message();
instance.elementName = data.elementName;
- instance.notifications = __getCopyArrayFn(Notification.fromData)(
- data.notifications,
- );
+ instance.notifications = __getCopyArrayFn(Notification.fromData)(data.notifications);
instance.success = data.success;
return instance;
}
}
export class ErrorMessage extends Message {
+
static fromData(data: ErrorMessage, target?: ErrorMessage): ErrorMessage {
if (!data) {
return data;
@@ -1502,56 +1153,39 @@ export class EventGrounding {
transportFormats: TransportFormat[];
transportProtocols: TransportProtocolUnion[];
- static fromData(
- data: EventGrounding,
- target?: EventGrounding,
- ): EventGrounding {
+ static fromData(data: EventGrounding, target?: EventGrounding): EventGrounding {
if (!data) {
return data;
}
const instance = target || new EventGrounding();
- instance.transportFormats = __getCopyArrayFn(TransportFormat.fromData)(
- data.transportFormats,
- );
- instance.transportProtocols = __getCopyArrayFn(
- TransportProtocol.fromDataUnion,
- )(data.transportProtocols);
+ instance.transportFormats = __getCopyArrayFn(TransportFormat.fromData)(data.transportFormats);
+ instance.transportProtocols = __getCopyArrayFn(TransportProtocol.fromDataUnion)(data.transportProtocols);
return instance;
}
}
export class EventProperty {
- '@class':
- | 'org.apache.streampipes.model.schema.EventPropertyList'
- | 'org.apache.streampipes.model.schema.EventPropertyNested'
- | 'org.apache.streampipes.model.schema.EventPropertyPrimitive';
- 'additionalMetadata': { [index: string]: any };
- 'description': string;
- 'domainProperties': string[];
- 'elementId': string;
- 'index': number;
- 'label': string;
- 'propertyScope': string;
- 'required': boolean;
- 'runtimeId': string;
- 'runtimeName': string;
-
- static 'fromData'(
- data: EventProperty,
- target?: EventProperty,
- ): EventProperty {
+ "@class": "org.apache.streampipes.model.schema.EventPropertyList" | "org.apache.streampipes.model.schema.EventPropertyNested" | "org.apache.streampipes.model.schema.EventPropertyPrimitive";
+ additionalMetadata: { [index: string]: any };
+ description: string;
+ domainProperties: string[];
+ elementId: string;
+ index: number;
+ label: string;
+ propertyScope: string;
+ required: boolean;
+ runtimeId: string;
+ runtimeName: string;
+
+ static fromData(data: EventProperty, target?: EventProperty): EventProperty {
if (!data) {
return data;
}
const instance = target || new EventProperty();
- instance['@class'] = data['@class'];
- instance.additionalMetadata = __getCopyObjectFn(__identity<any>())(
- data.additionalMetadata,
- );
+ instance["@class"] = data["@class"];
+ instance.additionalMetadata = __getCopyObjectFn(__identity<any>())(data.additionalMetadata);
instance.description = data.description;
- instance.domainProperties = __getCopyArrayFn(__identity<string>())(
- data.domainProperties,
- );
+ instance.domainProperties = __getCopyArrayFn(__identity<string>())(data.domainProperties);
instance.elementId = data.elementId;
instance.index = data.index;
instance.label = data.label;
@@ -1562,71 +1196,58 @@ export class EventProperty {
return instance;
}
- static 'fromDataUnion'(data: EventPropertyUnion): EventPropertyUnion {
+ static fromDataUnion(data: EventPropertyUnion): EventPropertyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.schema.EventPropertyList':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.schema.EventPropertyList":
return EventPropertyList.fromData(data);
- case 'org.apache.streampipes.model.schema.EventPropertyNested':
+ case "org.apache.streampipes.model.schema.EventPropertyNested":
return EventPropertyNested.fromData(data);
- case 'org.apache.streampipes.model.schema.EventPropertyPrimitive':
+ case "org.apache.streampipes.model.schema.EventPropertyPrimitive":
return EventPropertyPrimitive.fromData(data);
}
}
}
export class EventPropertyList extends EventProperty {
- '@class': 'org.apache.streampipes.model.schema.EventPropertyList';
- 'eventProperty': EventPropertyUnion;
+ "@class": "org.apache.streampipes.model.schema.EventPropertyList";
+ eventProperty: EventPropertyUnion;
- static 'fromData'(
- data: EventPropertyList,
- target?: EventPropertyList,
- ): EventPropertyList {
+ static fromData(data: EventPropertyList, target?: EventPropertyList): EventPropertyList {
if (!data) {
return data;
}
const instance = target || new EventPropertyList();
super.fromData(data, instance);
- instance.eventProperty = EventProperty.fromDataUnion(
- data.eventProperty,
- );
+ instance.eventProperty = EventProperty.fromDataUnion(data.eventProperty);
return instance;
}
}
export class EventPropertyNested extends EventProperty {
- '@class': 'org.apache.streampipes.model.schema.EventPropertyNested';
- 'eventProperties': EventPropertyUnion[];
+ "@class": "org.apache.streampipes.model.schema.EventPropertyNested";
+ eventProperties: EventPropertyUnion[];
- static 'fromData'(
- data: EventPropertyNested,
- target?: EventPropertyNested,
- ): EventPropertyNested {
+ static fromData(data: EventPropertyNested, target?: EventPropertyNested): EventPropertyNested {
if (!data) {
return data;
}
const instance = target || new EventPropertyNested();
super.fromData(data, instance);
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
export class EventPropertyPrimitive extends EventProperty {
- '@class': 'org.apache.streampipes.model.schema.EventPropertyPrimitive';
- 'measurementUnit': string;
- 'runtimeType': string;
- 'valueSpecification': ValueSpecificationUnion;
+ "@class": "org.apache.streampipes.model.schema.EventPropertyPrimitive";
+ measurementUnit: string;
+ runtimeType: string;
+ valueSpecification: ValueSpecificationUnion;
- static 'fromData'(
- data: EventPropertyPrimitive,
- target?: EventPropertyPrimitive,
- ): EventPropertyPrimitive {
+ static fromData(data: EventPropertyPrimitive, target?: EventPropertyPrimitive): EventPropertyPrimitive {
if (!data) {
return data;
}
@@ -1634,23 +1255,15 @@ export class EventPropertyPrimitive extends EventProperty {
super.fromData(data, instance);
instance.measurementUnit = data.measurementUnit;
instance.runtimeType = data.runtimeType;
- instance.valueSpecification = ValueSpecification.fromDataUnion(
- data.valueSpecification,
- );
+ instance.valueSpecification = ValueSpecification.fromDataUnion(data.valueSpecification);
return instance;
}
}
export class StreamTransformationRuleDescription extends TransformationRuleDescription {
- '@class':
- | 'org.apache.streampipes.model.connect.rules.stream.StreamTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription'
- | 'org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription';
+ "@class": "org.apache.streampipes.model.connect.rules.stream.StreamTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription" | "org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription";
- static 'fromData'(
- data: StreamTransformationRuleDescription,
- target?: StreamTransformationRuleDescription,
- ): StreamTransformationRuleDescription {
+ static fromData(data: StreamTransformationRuleDescription, target?: StreamTransformationRuleDescription): StreamTransformationRuleDescription {
if (!data) {
return data;
}
@@ -1659,32 +1272,25 @@ export class StreamTransformationRuleDescription extends TransformationRuleDescr
return instance;
}
- static 'fromDataUnion'(
- data: StreamTransformationRuleDescriptionUnion,
- ): StreamTransformationRuleDescriptionUnion {
+ static fromDataUnion(data: StreamTransformationRuleDescriptionUnion): StreamTransformationRuleDescriptionUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription":
return EventRateTransformationRuleDescription.fromData(data);
- case 'org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription':
- return RemoveDuplicatesTransformationRuleDescription.fromData(
- data,
- );
+ case "org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription":
+ return RemoveDuplicatesTransformationRuleDescription.fromData(data);
}
}
}
export class EventRateTransformationRuleDescription extends StreamTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription';
- 'aggregationTimeWindow': number;
- 'aggregationType': string;
+ "@class": "org.apache.streampipes.model.connect.rules.stream.EventRateTransformationRuleDescription";
+ aggregationTimeWindow: number;
+ aggregationType: string;
- static 'fromData'(
- data: EventRateTransformationRuleDescription,
- target?: EventRateTransformationRuleDescription,
- ): EventRateTransformationRuleDescription {
+ static fromData(data: EventRateTransformationRuleDescription, target?: EventRateTransformationRuleDescription): EventRateTransformationRuleDescription {
if (!data) {
return data;
}
@@ -1704,9 +1310,7 @@ export class EventSchema {
return data;
}
const instance = target || new EventSchema();
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
@@ -1714,17 +1318,12 @@ export class EventSchema {
export class ExportConfiguration {
assetExportConfiguration: AssetExportConfiguration[];
- static fromData(
- data: ExportConfiguration,
- target?: ExportConfiguration,
- ): ExportConfiguration {
+ static fromData(data: ExportConfiguration, target?: ExportConfiguration): ExportConfiguration {
if (!data) {
return data;
}
const instance = target || new ExportConfiguration();
- instance.assetExportConfiguration = __getCopyArrayFn(
- AssetExportConfiguration.fromData,
- )(data.assetExportConfiguration);
+ instance.assetExportConfiguration = __getCopyArrayFn(AssetExportConfiguration.fromData)(data.assetExportConfiguration);
return instance;
}
}
@@ -1750,17 +1349,12 @@ export class ExtensionDeploymentConfiguration {
desiredServiceTags: SpServiceTag[];
selectedEndpointUrl: string;
- static fromData(
- data: ExtensionDeploymentConfiguration,
- target?: ExtensionDeploymentConfiguration,
- ): ExtensionDeploymentConfiguration {
+ static fromData(data: ExtensionDeploymentConfiguration, target?: ExtensionDeploymentConfiguration): ExtensionDeploymentConfiguration {
if (!data) {
return data;
}
const instance = target || new ExtensionDeploymentConfiguration();
- instance.desiredServiceTags = __getCopyArrayFn(SpServiceTag.fromData)(
- data.desiredServiceTags,
- );
+ instance.desiredServiceTags = __getCopyArrayFn(SpServiceTag.fromData)(data.desiredServiceTags);
instance.selectedEndpointUrl = data.selectedEndpointUrl;
return instance;
}
@@ -1778,10 +1372,7 @@ export class ExtensionItemDescription {
name: string;
serviceTagPrefix: SpServiceTagPrefix;
- static fromData(
- data: ExtensionItemDescription,
- target?: ExtensionItemDescription,
- ): ExtensionItemDescription {
+ static fromData(data: ExtensionItemDescription, target?: ExtensionItemDescription): ExtensionItemDescription {
if (!data) {
return data;
}
@@ -1805,10 +1396,7 @@ export class ExtensionItemInstallationRequest {
publicElement: boolean;
serviceTagPrefix: SpServiceTagPrefix;
- static fromData(
- data: ExtensionItemInstallationRequest,
- target?: ExtensionItemInstallationRequest,
- ): ExtensionItemInstallationRequest {
+ static fromData(data: ExtensionItemInstallationRequest, target?: ExtensionItemInstallationRequest): ExtensionItemInstallationRequest {
if (!data) {
return data;
}
@@ -1825,10 +1413,7 @@ export class FieldStatusInfo {
changesRequired: boolean;
fieldStatus: FieldStatus;
- static fromData(
- data: FieldStatusInfo,
- target?: FieldStatusInfo,
- ): FieldStatusInfo {
+ static fromData(data: FieldStatusInfo, target?: FieldStatusInfo): FieldStatusInfo {
if (!data) {
return data;
}
@@ -1866,15 +1451,12 @@ export class FileMetadata {
}
export class FileStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.FileStaticProperty';
- 'endpointUrl': string;
- 'locationPath': string;
- 'requiredFiletypes': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.FileStaticProperty";
+ endpointUrl: string;
+ locationPath: string;
+ requiredFiletypes: string[];
- static 'fromData'(
- data: FileStaticProperty,
- target?: FileStaticProperty,
- ): FileStaticProperty {
+ static fromData(data: FileStaticProperty, target?: FileStaticProperty): FileStaticProperty {
if (!data) {
return data;
}
@@ -1882,49 +1464,39 @@ export class FileStaticProperty extends StaticProperty {
super.fromData(data, instance);
instance.endpointUrl = data.endpointUrl;
instance.locationPath = data.locationPath;
- instance.requiredFiletypes = __getCopyArrayFn(__identity<string>())(
- data.requiredFiletypes,
- );
+ instance.requiredFiletypes = __getCopyArrayFn(__identity<string>())(data.requiredFiletypes);
return instance;
}
}
export class FixedOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.FixedOutputStrategy';
- 'eventProperties': EventPropertyUnion[];
+ "@class": "org.apache.streampipes.model.output.FixedOutputStrategy";
+ eventProperties: EventPropertyUnion[];
- static 'fromData'(
- data: FixedOutputStrategy,
- target?: FixedOutputStrategy,
- ): FixedOutputStrategy {
+ static fromData(data: FixedOutputStrategy, target?: FixedOutputStrategy): FixedOutputStrategy {
if (!data) {
return data;
}
const instance = target || new FixedOutputStrategy();
super.fromData(data, instance);
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
export class FreeTextStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.FreeTextStaticProperty';
- 'htmlAllowed': boolean;
- 'htmlFontFormat': boolean;
- 'mapsTo': string;
- 'multiLine': boolean;
- 'placeholdersSupported': boolean;
- 'requiredDatatype': string;
- 'requiredDomainProperty': string;
- 'value': string;
- 'valueSpecification': PropertyValueSpecification;
+ "@class": "org.apache.streampipes.model.staticproperty.FreeTextStaticProperty";
+ htmlAllowed: boolean;
+ htmlFontFormat: boolean;
+ mapsTo: string;
+ multiLine: boolean;
+ placeholdersSupported: boolean;
+ requiredDatatype: string;
+ requiredDomainProperty: string;
+ value: string;
+ valueSpecification: PropertyValueSpecification;
- static 'fromData'(
- data: FreeTextStaticProperty,
- target?: FreeTextStaticProperty,
- ): FreeTextStaticProperty {
+ static fromData(data: FreeTextStaticProperty, target?: FreeTextStaticProperty): FreeTextStaticProperty {
if (!data) {
return data;
}
@@ -1938,9 +1510,7 @@ export class FreeTextStaticProperty extends StaticProperty {
instance.requiredDatatype = data.requiredDatatype;
instance.requiredDomainProperty = data.requiredDomainProperty;
instance.value = data.value;
- instance.valueSpecification = PropertyValueSpecification.fromData(
- data.valueSpecification,
- );
+ instance.valueSpecification = PropertyValueSpecification.fromData(data.valueSpecification);
return instance;
}
}
@@ -1949,17 +1519,12 @@ export class FunctionDefinition {
consumedStreams: string[];
functionId: FunctionId;
- static fromData(
- data: FunctionDefinition,
- target?: FunctionDefinition,
- ): FunctionDefinition {
+ static fromData(data: FunctionDefinition, target?: FunctionDefinition): FunctionDefinition {
if (!data) {
return data;
}
const instance = target || new FunctionDefinition();
- instance.consumedStreams = __getCopyArrayFn(__identity<string>())(
- data.consumedStreams,
- );
+ instance.consumedStreams = __getCopyArrayFn(__identity<string>())(data.consumedStreams);
instance.functionId = FunctionId.fromData(data.functionId);
return instance;
}
@@ -1981,99 +1546,74 @@ export class FunctionId {
}
export class GuessSchema {
- '@class': 'org.apache.streampipes.model.connect.guess.GuessSchema';
- 'eventPreview': string[];
- 'eventSchema': EventSchema;
- 'fieldStatusInfo': { [index: string]: FieldStatusInfo };
- 'modifiedRules': TransformationRuleDescriptionUnion[];
- 'removedProperties': EventPropertyUnion[];
- 'targetSchema': EventSchema;
- 'updateNotifications': Notification[];
+ "@class": "org.apache.streampipes.model.connect.guess.GuessSchema";
+ eventPreview: string[];
+ eventSchema: EventSchema;
+ fieldStatusInfo: { [index: string]: FieldStatusInfo };
+ modifiedRules: TransformationRuleDescriptionUnion[];
+ removedProperties: EventPropertyUnion[];
+ targetSchema: EventSchema;
+ updateNotifications: Notification[];
- static 'fromData'(data: GuessSchema, target?: GuessSchema): GuessSchema {
+ static fromData(data: GuessSchema, target?: GuessSchema): GuessSchema {
if (!data) {
return data;
}
const instance = target || new GuessSchema();
- instance['@class'] = data['@class'];
- instance.eventPreview = __getCopyArrayFn(__identity<string>())(
- data.eventPreview,
- );
+ instance["@class"] = data["@class"];
+ instance.eventPreview = __getCopyArrayFn(__identity<string>())(data.eventPreview);
instance.eventSchema = EventSchema.fromData(data.eventSchema);
- instance.fieldStatusInfo = __getCopyObjectFn(FieldStatusInfo.fromData)(
- data.fieldStatusInfo,
- );
- instance.modifiedRules = __getCopyArrayFn(
- TransformationRuleDescription.fromDataUnion,
- )(data.modifiedRules);
- instance.removedProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.removedProperties);
+ instance.fieldStatusInfo = __getCopyObjectFn(FieldStatusInfo.fromData)(data.fieldStatusInfo);
+ instance.modifiedRules = __getCopyArrayFn(TransformationRuleDescription.fromDataUnion)(data.modifiedRules);
+ instance.removedProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.removedProperties);
instance.targetSchema = EventSchema.fromData(data.targetSchema);
- instance.updateNotifications = __getCopyArrayFn(Notification.fromData)(
- data.updateNotifications,
- );
+ instance.updateNotifications = __getCopyArrayFn(Notification.fromData)(data.updateNotifications);
return instance;
}
}
export class TransportProtocol {
- '@class':
- | 'org.apache.streampipes.model.grounding.JmsTransportProtocol'
- | 'org.apache.streampipes.model.grounding.KafkaTransportProtocol'
- | 'org.apache.streampipes.model.grounding.MqttTransportProtocol'
- | 'org.apache.streampipes.model.grounding.NatsTransportProtocol'
- | 'org.apache.streampipes.model.grounding.PulsarTransportProtocol';
- 'brokerHostname': string;
- 'elementId': string;
- 'topicDefinition': TopicDefinitionUnion;
+ "@class": "org.apache.streampipes.model.grounding.JmsTransportProtocol" | "org.apache.streampipes.model.grounding.KafkaTransportProtocol" | "org.apache.streampipes.model.grounding.MqttTransportProtocol" | "org.apache.streampipes.model.grounding.NatsTransportProtocol" | "org.apache.streampipes.model.grounding.PulsarTransportProtocol";
+ brokerHostname: string;
+ elementId: string;
+ topicDefinition: TopicDefinitionUnion;
- static 'fromData'(
- data: TransportProtocol,
- target?: TransportProtocol,
- ): TransportProtocol {
+ static fromData(data: TransportProtocol, target?: TransportProtocol): TransportProtocol {
if (!data) {
return data;
}
const instance = target || new TransportProtocol();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.brokerHostname = data.brokerHostname;
instance.elementId = data.elementId;
- instance.topicDefinition = TopicDefinition.fromDataUnion(
- data.topicDefinition,
- );
+ instance.topicDefinition = TopicDefinition.fromDataUnion(data.topicDefinition);
return instance;
}
- static 'fromDataUnion'(
- data: TransportProtocolUnion,
- ): TransportProtocolUnion {
+ static fromDataUnion(data: TransportProtocolUnion): TransportProtocolUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.grounding.JmsTransportProtocol':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.grounding.JmsTransportProtocol":
return JmsTransportProtocol.fromData(data);
- case 'org.apache.streampipes.model.grounding.KafkaTransportProtocol':
+ case "org.apache.streampipes.model.grounding.KafkaTransportProtocol":
return KafkaTransportProtocol.fromData(data);
- case 'org.apache.streampipes.model.grounding.MqttTransportProtocol':
+ case "org.apache.streampipes.model.grounding.MqttTransportProtocol":
return MqttTransportProtocol.fromData(data);
- case 'org.apache.streampipes.model.grounding.NatsTransportProtocol':
+ case "org.apache.streampipes.model.grounding.NatsTransportProtocol":
return NatsTransportProtocol.fromData(data);
- case 'org.apache.streampipes.model.grounding.PulsarTransportProtocol':
+ case "org.apache.streampipes.model.grounding.PulsarTransportProtocol":
return PulsarTransportProtocol.fromData(data);
}
}
}
export class JmsTransportProtocol extends TransportProtocol {
- '@class': 'org.apache.streampipes.model.grounding.JmsTransportProtocol';
- 'port': number;
+ "@class": "org.apache.streampipes.model.grounding.JmsTransportProtocol";
+ port: number;
- static 'fromData'(
- data: JmsTransportProtocol,
- target?: JmsTransportProtocol,
- ): JmsTransportProtocol {
+ static fromData(data: JmsTransportProtocol, target?: JmsTransportProtocol): JmsTransportProtocol {
if (!data) {
return data;
}
@@ -2085,22 +1625,19 @@ export class JmsTransportProtocol extends TransportProtocol {
}
export class KafkaTransportProtocol extends TransportProtocol {
- '@class': 'org.apache.streampipes.model.grounding.KafkaTransportProtocol';
- 'acks': string;
- 'batchSize': string;
- 'groupId': string;
- 'kafkaPort': number;
- 'lingerMs': number;
- 'maxRequestSize': string;
- 'messageMaxBytes': string;
- 'offset': string;
- 'zookeeperHost': string;
- 'zookeeperPort': number;
+ "@class": "org.apache.streampipes.model.grounding.KafkaTransportProtocol";
+ acks: string;
+ batchSize: string;
+ groupId: string;
+ kafkaPort: number;
+ lingerMs: number;
+ maxRequestSize: string;
+ messageMaxBytes: string;
+ offset: string;
+ zookeeperHost: string;
+ zookeeperPort: number;
- static 'fromData'(
- data: KafkaTransportProtocol,
- target?: KafkaTransportProtocol,
- ): KafkaTransportProtocol {
+ static fromData(data: KafkaTransportProtocol, target?: KafkaTransportProtocol): KafkaTransportProtocol {
if (!data) {
return data;
}
@@ -2121,14 +1658,11 @@ export class KafkaTransportProtocol extends TransportProtocol {
}
export class KeepOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.KeepOutputStrategy';
- 'eventName': string;
- 'keepBoth': boolean;
+ "@class": "org.apache.streampipes.model.output.KeepOutputStrategy";
+ eventName: string;
+ keepBoth: boolean;
- static 'fromData'(
- data: KeepOutputStrategy,
- target?: KeepOutputStrategy,
- ): KeepOutputStrategy {
+ static fromData(data: KeepOutputStrategy, target?: KeepOutputStrategy): KeepOutputStrategy {
if (!data) {
return data;
}
@@ -2141,13 +1675,10 @@ export class KeepOutputStrategy extends OutputStrategy {
}
export class ListOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.ListOutputStrategy';
- 'propertyName': string;
+ "@class": "org.apache.streampipes.model.output.ListOutputStrategy";
+ propertyName: string;
- static 'fromData'(
- data: ListOutputStrategy,
- target?: ListOutputStrategy,
- ): ListOutputStrategy {
+ static fromData(data: ListOutputStrategy, target?: ListOutputStrategy): ListOutputStrategy {
if (!data) {
return data;
}
@@ -2159,72 +1690,56 @@ export class ListOutputStrategy extends OutputStrategy {
}
export class MappingProperty extends StaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.MappingProperty'
- | 'org.apache.streampipes.model.staticproperty.MappingPropertyUnary'
- | 'org.apache.streampipes.model.staticproperty.MappingPropertyNary';
- 'mapsFromOptions': string[];
- 'propertyScope': string;
- 'requirementSelector': string;
+ "@class": "org.apache.streampipes.model.staticproperty.MappingProperty" | "org.apache.streampipes.model.staticproperty.MappingPropertyUnary" | "org.apache.streampipes.model.staticproperty.MappingPropertyNary";
+ mapsFromOptions: string[];
+ propertyScope: string;
+ requirementSelector: string;
- static 'fromData'(
- data: MappingProperty,
- target?: MappingProperty,
- ): MappingProperty {
+ static fromData(data: MappingProperty, target?: MappingProperty): MappingProperty {
if (!data) {
return data;
}
const instance = target || new MappingProperty();
super.fromData(data, instance);
- instance.mapsFromOptions = __getCopyArrayFn(__identity<string>())(
- data.mapsFromOptions,
- );
+ instance.mapsFromOptions = __getCopyArrayFn(__identity<string>())(data.mapsFromOptions);
instance.propertyScope = data.propertyScope;
instance.requirementSelector = data.requirementSelector;
return instance;
}
- static 'fromDataUnion'(data: MappingPropertyUnion): MappingPropertyUnion {
+ static fromDataUnion(data: MappingPropertyUnion): MappingPropertyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.staticproperty.MappingPropertyNary':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.staticproperty.MappingPropertyNary":
return MappingPropertyNary.fromData(data);
- case 'org.apache.streampipes.model.staticproperty.MappingPropertyUnary':
+ case "org.apache.streampipes.model.staticproperty.MappingPropertyUnary":
return MappingPropertyUnary.fromData(data);
}
}
}
export class MappingPropertyNary extends MappingProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.MappingPropertyNary';
- 'selectedProperties': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.MappingPropertyNary";
+ selectedProperties: string[];
- static 'fromData'(
- data: MappingPropertyNary,
- target?: MappingPropertyNary,
- ): MappingPropertyNary {
+ static fromData(data: MappingPropertyNary, target?: MappingPropertyNary): MappingPropertyNary {
if (!data) {
return data;
}
const instance = target || new MappingPropertyNary();
super.fromData(data, instance);
- instance.selectedProperties = __getCopyArrayFn(__identity<string>())(
- data.selectedProperties,
- );
+ instance.selectedProperties = __getCopyArrayFn(__identity<string>())(data.selectedProperties);
return instance;
}
}
export class MappingPropertyUnary extends MappingProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.MappingPropertyUnary';
- 'selectedProperty': string;
+ "@class": "org.apache.streampipes.model.staticproperty.MappingPropertyUnary";
+ selectedProperty: string;
- static 'fromData'(
- data: MappingPropertyUnary,
- target?: MappingPropertyUnary,
- ): MappingPropertyUnary {
+ static fromData(data: MappingPropertyUnary, target?: MappingPropertyUnary): MappingPropertyUnary {
if (!data) {
return data;
}
@@ -2236,14 +1751,11 @@ export class MappingPropertyUnary extends MappingProperty {
}
export class MatchingStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.MatchingStaticProperty';
- 'matchLeft': string;
- 'matchRight': string;
+ "@class": "org.apache.streampipes.model.staticproperty.MatchingStaticProperty";
+ matchLeft: string;
+ matchRight: string;
- static 'fromData'(
- data: MatchingStaticProperty,
- target?: MatchingStaticProperty,
- ): MatchingStaticProperty {
+ static fromData(data: MatchingStaticProperty, target?: MatchingStaticProperty): MatchingStaticProperty {
if (!data) {
return data;
}
@@ -2259,10 +1771,7 @@ export class MessageCounter {
counter: number;
lastTimestamp: number;
- static fromData(
- data: MessageCounter,
- target?: MessageCounter,
- ): MessageCounter {
+ static fromData(data: MessageCounter, target?: MessageCounter): MessageCounter {
if (!data) {
return data;
}
@@ -2293,10 +1802,7 @@ export class MessagingSettings {
zookeeperHost: string;
zookeeperPort: number;
- static fromData(
- data: MessagingSettings,
- target?: MessagingSettings,
- ): MessagingSettings {
+ static fromData(data: MessagingSettings, target?: MessagingSettings): MessagingSettings {
if (!data) {
return data;
}
@@ -2313,16 +1819,10 @@ export class MessagingSettings {
instance.mqttPort = data.mqttPort;
instance.natsHost = data.natsHost;
instance.natsPort = data.natsPort;
- instance.prioritizedFormats = __getCopyArrayFn(
- __identity<SpDataFormat>(),
- )(data.prioritizedFormats);
- instance.prioritizedProtocols = __getCopyArrayFn(
- __identity<SpProtocol>(),
- )(data.prioritizedProtocols);
+ instance.prioritizedFormats = __getCopyArrayFn(__identity<SpDataFormat>())(data.prioritizedFormats);
+ instance.prioritizedProtocols = __getCopyArrayFn(__identity<SpProtocol>())(data.prioritizedProtocols);
instance.pulsarUrl = data.pulsarUrl;
- instance.supportedProtocols = __getCopyArrayFn(__identity<string>())(
- data.supportedProtocols,
- );
+ instance.supportedProtocols = __getCopyArrayFn(__identity<string>())(data.supportedProtocols);
instance.zookeeperHost = data.zookeeperHost;
instance.zookeeperPort = data.zookeeperPort;
return instance;
@@ -2330,14 +1830,11 @@ export class MessagingSettings {
}
export class MoveRuleDescription extends SchemaTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription';
- 'newRuntimeKey': string;
- 'oldRuntimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.schema.MoveRuleDescription";
+ newRuntimeKey: string;
+ oldRuntimeKey: string;
- static 'fromData'(
- data: MoveRuleDescription,
- target?: MoveRuleDescription,
- ): MoveRuleDescription {
+ static fromData(data: MoveRuleDescription, target?: MoveRuleDescription): MoveRuleDescription {
if (!data) {
return data;
}
@@ -2350,13 +1847,10 @@ export class MoveRuleDescription extends SchemaTransformationRuleDescription {
}
export class MqttTransportProtocol extends TransportProtocol {
- '@class': 'org.apache.streampipes.model.grounding.MqttTransportProtocol';
- 'port': number;
+ "@class": "org.apache.streampipes.model.grounding.MqttTransportProtocol";
+ port: number;
- static 'fromData'(
- data: MqttTransportProtocol,
- target?: MqttTransportProtocol,
- ): MqttTransportProtocol {
+ static fromData(data: MqttTransportProtocol, target?: MqttTransportProtocol): MqttTransportProtocol {
if (!data) {
return data;
}
@@ -2368,13 +1862,10 @@ export class MqttTransportProtocol extends TransportProtocol {
}
export class NatsTransportProtocol extends TransportProtocol {
- '@class': 'org.apache.streampipes.model.grounding.NatsTransportProtocol';
- 'port': number;
+ "@class": "org.apache.streampipes.model.grounding.NatsTransportProtocol";
+ port: number;
- static 'fromData'(
- data: NatsTransportProtocol,
- target?: NatsTransportProtocol,
- ): NatsTransportProtocol {
+ static fromData(data: NatsTransportProtocol, target?: NatsTransportProtocol): NatsTransportProtocol {
if (!data) {
return data;
}
@@ -2403,14 +1894,9 @@ export class Notification {
}
export class OneOfStaticProperty extends SelectionStaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.OneOfStaticProperty'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty';
+ "@class": "org.apache.streampipes.model.staticproperty.OneOfStaticProperty" | "org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty";
- static 'fromData'(
- data: OneOfStaticProperty,
- target?: OneOfStaticProperty,
- ): OneOfStaticProperty {
+ static fromData(data: OneOfStaticProperty, target?: OneOfStaticProperty): OneOfStaticProperty {
if (!data) {
return data;
}
@@ -2419,14 +1905,12 @@ export class OneOfStaticProperty extends SelectionStaticProperty {
return instance;
}
- static 'fromDataUnion'(
- data: OneOfStaticPropertyUnion,
- ): OneOfStaticPropertyUnion {
+ static fromDataUnion(data: OneOfStaticPropertyUnion): OneOfStaticPropertyUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty":
return RuntimeResolvableOneOfStaticProperty.fromData(data);
}
}
@@ -2493,18 +1977,12 @@ export class Pipeline extends ElementComposition {
super.fromData(data, instance);
instance._id = data._id;
instance._rev = data._rev;
- instance.actions = __getCopyArrayFn(DataSinkInvocation.fromData)(
- data.actions,
- );
+ instance.actions = __getCopyArrayFn(DataSinkInvocation.fromData)(data.actions);
instance.createdAt = data.createdAt;
instance.createdByUser = data.createdByUser;
instance.healthStatus = data.healthStatus;
- instance.pipelineCategories = __getCopyArrayFn(__identity<string>())(
- data.pipelineCategories,
- );
- instance.pipelineNotifications = __getCopyArrayFn(__identity<string>())(
- data.pipelineNotifications,
- );
+ instance.pipelineCategories = __getCopyArrayFn(__identity<string>())(data.pipelineCategories);
+ instance.pipelineNotifications = __getCopyArrayFn(__identity<string>())(data.pipelineNotifications);
instance.publicElement = data.publicElement;
instance.restartOnSystemReboot = data.restartOnSystemReboot;
instance.running = data.running;
@@ -2518,10 +1996,7 @@ export class PipelineCanvasComment {
comment: string;
position: CanvasPosition;
- static fromData(
- data: PipelineCanvasComment,
- target?: PipelineCanvasComment,
- ): PipelineCanvasComment {
+ static fromData(data: PipelineCanvasComment, target?: PipelineCanvasComment): PipelineCanvasComment {
if (!data) {
return data;
}
@@ -2539,22 +2014,15 @@ export class PipelineCanvasMetadata {
pipelineElementMetadata: { [index: string]: PipelineElementMetadata };
pipelineId: string;
- static fromData(
- data: PipelineCanvasMetadata,
- target?: PipelineCanvasMetadata,
- ): PipelineCanvasMetadata {
+ static fromData(data: PipelineCanvasMetadata, target?: PipelineCanvasMetadata): PipelineCanvasMetadata {
if (!data) {
return data;
}
const instance = target || new PipelineCanvasMetadata();
instance._id = data._id;
instance._rev = data._rev;
- instance.comments = __getCopyArrayFn(PipelineCanvasComment.fromData)(
- data.comments,
- );
- instance.pipelineElementMetadata = __getCopyObjectFn(
- PipelineElementMetadata.fromData,
- )(data.pipelineElementMetadata);
+ instance.comments = __getCopyArrayFn(PipelineCanvasComment.fromData)(data.comments);
+ instance.pipelineElementMetadata = __getCopyObjectFn(PipelineElementMetadata.fromData)(data.pipelineElementMetadata);
instance.pipelineId = data.pipelineId;
return instance;
}
@@ -2566,10 +2034,7 @@ export class PipelineCategory {
categoryDescription: string;
categoryName: string;
- static fromData(
- data: PipelineCategory,
- target?: PipelineCategory,
- ): PipelineCategory {
+ static fromData(data: PipelineCategory, target?: PipelineCategory): PipelineCategory {
if (!data) {
return data;
}
@@ -2587,10 +2052,7 @@ export class PipelineEdgeValidation {
status: EdgeValidationStatus;
targetId: string;
- static fromData(
- data: PipelineEdgeValidation,
- target?: PipelineEdgeValidation,
- ): PipelineEdgeValidation {
+ static fromData(data: PipelineEdgeValidation, target?: PipelineEdgeValidation): PipelineEdgeValidation {
if (!data) {
return data;
}
@@ -2606,10 +2068,7 @@ export class PipelineElementMetadata {
customName: string;
position: CanvasPosition;
- static fromData(
- data: PipelineElementMetadata,
- target?: PipelineElementMetadata,
- ): PipelineElementMetadata {
+ static fromData(data: PipelineElementMetadata, target?: PipelineElementMetadata): PipelineElementMetadata {
if (!data) {
return data;
}
@@ -2628,24 +2087,17 @@ export class PipelineElementMonitoringInfo {
producedMessageInfoExists: boolean;
producedMessagesInfo: ProducedMessagesInfo;
- static fromData(
- data: PipelineElementMonitoringInfo,
- target?: PipelineElementMonitoringInfo,
- ): PipelineElementMonitoringInfo {
+ static fromData(data: PipelineElementMonitoringInfo, target?: PipelineElementMonitoringInfo): PipelineElementMonitoringInfo {
if (!data) {
return data;
}
const instance = target || new PipelineElementMonitoringInfo();
instance.consumedMessageInfoExists = data.consumedMessageInfoExists;
- instance.consumedMessagesInfos = __getCopyArrayFn(
- ConsumedMessagesInfo.fromData,
- )(data.consumedMessagesInfos);
+ instance.consumedMessagesInfos = __getCopyArrayFn(ConsumedMessagesInfo.fromData)(data.consumedMessagesInfos);
instance.pipelineElementId = data.pipelineElementId;
instance.pipelineElementName = data.pipelineElementName;
instance.producedMessageInfoExists = data.producedMessageInfoExists;
- instance.producedMessagesInfo = ProducedMessagesInfo.fromData(
- data.producedMessagesInfo,
- );
+ instance.producedMessagesInfo = ProducedMessagesInfo.fromData(data.producedMessagesInfo);
return instance;
}
}
@@ -2657,10 +2109,7 @@ export class PipelineElementRecommendation {
name: string;
weight: number;
- static fromData(
- data: PipelineElementRecommendation,
- target?: PipelineElementRecommendation,
- ): PipelineElementRecommendation {
+ static fromData(data: PipelineElementRecommendation, target?: PipelineElementRecommendation): PipelineElementRecommendation {
if (!data) {
return data;
}
@@ -2679,20 +2128,13 @@ export class PipelineElementRecommendationMessage {
recommendedElements: PipelineElementRecommendation[];
success: boolean;
- static fromData(
- data: PipelineElementRecommendationMessage,
- target?: PipelineElementRecommendationMessage,
- ): PipelineElementRecommendationMessage {
+ static fromData(data: PipelineElementRecommendationMessage, target?: PipelineElementRecommendationMessage): PipelineElementRecommendationMessage {
if (!data) {
return data;
}
const instance = target || new PipelineElementRecommendationMessage();
- instance.possibleElements = __getCopyArrayFn(
- PipelineElementRecommendation.fromData,
- )(data.possibleElements);
- instance.recommendedElements = __getCopyArrayFn(
- PipelineElementRecommendation.fromData,
- )(data.recommendedElements);
+ instance.possibleElements = __getCopyArrayFn(PipelineElementRecommendation.fromData)(data.possibleElements);
+ instance.recommendedElements = __getCopyArrayFn(PipelineElementRecommendation.fromData)(data.recommendedElements);
instance.success = data.success;
return instance;
}
@@ -2704,10 +2146,7 @@ export class PipelineElementStatus {
optionalMessage: string;
success: boolean;
- static fromData(
- data: PipelineElementStatus,
- target?: PipelineElementStatus,
- ): PipelineElementStatus {
+ static fromData(data: PipelineElementStatus, target?: PipelineElementStatus): PipelineElementStatus {
if (!data) {
return data;
}
@@ -2728,10 +2167,7 @@ export class PipelineElementTemplate {
templateDescription: string;
templateName: string;
- static fromData(
- data: PipelineElementTemplate,
- target?: PipelineElementTemplate,
- ): PipelineElementTemplate {
+ static fromData(data: PipelineElementTemplate, target?: PipelineElementTemplate): PipelineElementTemplate {
if (!data) {
return data;
}
@@ -2739,9 +2175,7 @@ export class PipelineElementTemplate {
instance._id = data._id;
instance._rev = data._rev;
instance.basePipelineElementAppId = data.basePipelineElementAppId;
- instance.templateConfigs = __getCopyObjectFn(
- PipelineElementTemplateConfig.fromData,
- )(data.templateConfigs);
+ instance.templateConfigs = __getCopyObjectFn(PipelineElementTemplateConfig.fromData)(data.templateConfigs);
instance.templateDescription = data.templateDescription;
instance.templateName = data.templateName;
return instance;
@@ -2753,10 +2187,7 @@ export class PipelineElementTemplateConfig {
editable: boolean;
value: any;
- static fromData(
- data: PipelineElementTemplateConfig,
- target?: PipelineElementTemplateConfig,
- ): PipelineElementTemplateConfig {
+ static fromData(data: PipelineElementTemplateConfig, target?: PipelineElementTemplateConfig): PipelineElementTemplateConfig {
if (!data) {
return data;
}
@@ -2772,10 +2203,7 @@ export class PipelineElementValidationInfo {
level: ValidationInfoLevel;
message: string;
- static fromData(
- data: PipelineElementValidationInfo,
- target?: PipelineElementValidationInfo,
- ): PipelineElementValidationInfo {
+ static fromData(data: PipelineElementValidationInfo, target?: PipelineElementValidationInfo): PipelineElementValidationInfo {
if (!data) {
return data;
}
@@ -2796,30 +2224,19 @@ export class PipelineModification {
staticProperties: StaticPropertyUnion[];
validationInfos: PipelineElementValidationInfo[];
- static fromData(
- data: PipelineModification,
- target?: PipelineModification,
- ): PipelineModification {
+ static fromData(data: PipelineModification, target?: PipelineModification): PipelineModification {
if (!data) {
return data;
}
const instance = target || new PipelineModification();
instance.domId = data.domId;
instance.elementId = data.elementId;
- instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(
- data.inputStreams,
- );
- instance.outputStrategies = __getCopyArrayFn(
- OutputStrategy.fromDataUnion,
- )(data.outputStrategies);
+ instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(data.inputStreams);
+ instance.outputStrategies = __getCopyArrayFn(OutputStrategy.fromDataUnion)(data.outputStrategies);
instance.outputStream = SpDataStream.fromData(data.outputStream);
instance.pipelineElementValid = data.pipelineElementValid;
- instance.staticProperties = __getCopyArrayFn(
- StaticProperty.fromDataUnion,
- )(data.staticProperties);
- instance.validationInfos = __getCopyArrayFn(
- PipelineElementValidationInfo.fromData,
- )(data.validationInfos);
+ instance.staticProperties = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.staticProperties);
+ instance.validationInfos = __getCopyArrayFn(PipelineElementValidationInfo.fromData)(data.validationInfos);
return instance;
}
}
@@ -2829,21 +2246,14 @@ export class PipelineModificationMessage extends Message {
pipelineModifications: PipelineModification[];
pipelineValid: boolean;
- static fromData(
- data: PipelineModificationMessage,
- target?: PipelineModificationMessage,
- ): PipelineModificationMessage {
+ static fromData(data: PipelineModificationMessage, target?: PipelineModificationMessage): PipelineModificationMessage {
if (!data) {
return data;
}
const instance = target || new PipelineModificationMessage();
super.fromData(data, instance);
- instance.edgeValidations = __getCopyArrayFn(
- PipelineEdgeValidation.fromData,
- )(data.edgeValidations);
- instance.pipelineModifications = __getCopyArrayFn(
- PipelineModification.fromData,
- )(data.pipelineModifications);
+ instance.edgeValidations = __getCopyArrayFn(PipelineEdgeValidation.fromData)(data.edgeValidations);
+ instance.pipelineModifications = __getCopyArrayFn(PipelineModification.fromData)(data.pipelineModifications);
instance.pipelineValid = data.pipelineValid;
return instance;
}
@@ -2855,18 +2265,13 @@ export class PipelineMonitoringInfo {
pipelineId: string;
startedAt: number;
- static fromData(
- data: PipelineMonitoringInfo,
- target?: PipelineMonitoringInfo,
- ): PipelineMonitoringInfo {
+ static fromData(data: PipelineMonitoringInfo, target?: PipelineMonitoringInfo): PipelineMonitoringInfo {
if (!data) {
return data;
}
const instance = target || new PipelineMonitoringInfo();
instance.createdAt = data.createdAt;
- instance.pipelineElementMonitoringInfo = __getCopyArrayFn(
- PipelineElementMonitoringInfo.fromData,
- )(data.pipelineElementMonitoringInfo);
+ instance.pipelineElementMonitoringInfo = __getCopyArrayFn(PipelineElementMonitoringInfo.fromData)(data.pipelineElementMonitoringInfo);
instance.pipelineId = data.pipelineId;
instance.startedAt = data.startedAt;
return instance;
@@ -2880,17 +2285,12 @@ export class PipelineOperationStatus {
success: boolean;
title: string;
- static fromData(
- data: PipelineOperationStatus,
- target?: PipelineOperationStatus,
- ): PipelineOperationStatus {
+ static fromData(data: PipelineOperationStatus, target?: PipelineOperationStatus): PipelineOperationStatus {
if (!data) {
return data;
}
const instance = target || new PipelineOperationStatus();
- instance.elementStatus = __getCopyArrayFn(
- PipelineElementStatus.fromData,
- )(data.elementStatus);
+ instance.elementStatus = __getCopyArrayFn(PipelineElementStatus.fromData)(data.elementStatus);
instance.pipelineId = data.pipelineId;
instance.pipelineName = data.pipelineName;
instance.success = data.success;
@@ -2903,18 +2303,13 @@ export class PipelinePreviewModel {
previewId: string;
supportedPipelineElementDomIds: string[];
- static fromData(
- data: PipelinePreviewModel,
- target?: PipelinePreviewModel,
- ): PipelinePreviewModel {
+ static fromData(data: PipelinePreviewModel, target?: PipelinePreviewModel): PipelinePreviewModel {
if (!data) {
return data;
}
const instance = target || new PipelinePreviewModel();
instance.previewId = data.previewId;
- instance.supportedPipelineElementDomIds = __getCopyArrayFn(
- __identity<string>(),
- )(data.supportedPipelineElementDomIds);
+ instance.supportedPipelineElementDomIds = __getCopyArrayFn(__identity<string>())(data.supportedPipelineElementDomIds);
return instance;
}
}
@@ -2925,10 +2320,7 @@ export class PipelineStatusMessage {
pipelineId: string;
timestamp: number;
- static fromData(
- data: PipelineStatusMessage,
- target?: PipelineStatusMessage,
- ): PipelineStatusMessage {
+ static fromData(data: PipelineStatusMessage, target?: PipelineStatusMessage): PipelineStatusMessage {
if (!data) {
return data;
}
@@ -2942,24 +2334,19 @@ export class PipelineStatusMessage {
}
export class PipelineTemplateDescription extends NamedStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.template.PipelineTemplateDescription';
- 'boundTo': BoundPipelineElement[];
- 'pipelineTemplateDescription': string;
- 'pipelineTemplateId': string;
- 'pipelineTemplateName': string;
+ "@class": "org.apache.streampipes.model.template.PipelineTemplateDescription";
+ boundTo: BoundPipelineElement[];
+ pipelineTemplateDescription: string;
+ pipelineTemplateId: string;
+ pipelineTemplateName: string;
- static 'fromData'(
- data: PipelineTemplateDescription,
- target?: PipelineTemplateDescription,
- ): PipelineTemplateDescription {
+ static fromData(data: PipelineTemplateDescription, target?: PipelineTemplateDescription): PipelineTemplateDescription {
if (!data) {
return data;
}
const instance = target || new PipelineTemplateDescription();
super.fromData(data, instance);
- instance.boundTo = __getCopyArrayFn(BoundPipelineElement.fromData)(
- data.boundTo,
- );
+ instance.boundTo = __getCopyArrayFn(BoundPipelineElement.fromData)(data.boundTo);
instance.pipelineTemplateDescription = data.pipelineTemplateDescription;
instance.pipelineTemplateId = data.pipelineTemplateId;
instance.pipelineTemplateName = data.pipelineTemplateName;
@@ -2968,32 +2355,24 @@ export class PipelineTemplateDescription extends NamedStreamPipesEntity {
}
export class PipelineTemplateInvocation {
- '@class': 'org.apache.streampipes.model.template.PipelineTemplateInvocation';
- 'dataStreamId': string;
- 'kviName': string;
- 'pipelineTemplateDescription': PipelineTemplateDescription;
- 'pipelineTemplateId': string;
- 'staticProperties': StaticPropertyUnion[];
+ "@class": "org.apache.streampipes.model.template.PipelineTemplateInvocation";
+ dataStreamId: string;
+ kviName: string;
+ pipelineTemplateDescription: PipelineTemplateDescription;
+ pipelineTemplateId: string;
+ staticProperties: StaticPropertyUnion[];
- static 'fromData'(
- data: PipelineTemplateInvocation,
- target?: PipelineTemplateInvocation,
- ): PipelineTemplateInvocation {
+ static fromData(data: PipelineTemplateInvocation, target?: PipelineTemplateInvocation): PipelineTemplateInvocation {
if (!data) {
return data;
}
const instance = target || new PipelineTemplateInvocation();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.dataStreamId = data.dataStreamId;
instance.kviName = data.kviName;
- instance.pipelineTemplateDescription =
- PipelineTemplateDescription.fromData(
- data.pipelineTemplateDescription,
- );
+ instance.pipelineTemplateDescription = PipelineTemplateDescription.fromData(data.pipelineTemplateDescription);
instance.pipelineTemplateId = data.pipelineTemplateId;
- instance.staticProperties = __getCopyArrayFn(
- StaticProperty.fromDataUnion,
- )(data.staticProperties);
+ instance.staticProperties = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.staticProperties);
return instance;
}
}
@@ -3005,10 +2384,7 @@ export class PipelineUpdateInfo {
pipelineName: string;
validationInfos: { [index: string]: PipelineElementValidationInfo[] };
- static fromData(
- data: PipelineUpdateInfo,
- target?: PipelineUpdateInfo,
- ): PipelineUpdateInfo {
+ static fromData(data: PipelineUpdateInfo, target?: PipelineUpdateInfo): PipelineUpdateInfo {
if (!data) {
return data;
}
@@ -3017,9 +2393,7 @@ export class PipelineUpdateInfo {
instance.migrationInfo = data.migrationInfo;
instance.pipelineId = data.pipelineId;
instance.pipelineName = data.pipelineName;
- instance.validationInfos = __getCopyObjectFn(
- __getCopyArrayFn(PipelineElementValidationInfo.fromData),
- )(data.validationInfos);
+ instance.validationInfos = __getCopyObjectFn(__getCopyArrayFn(PipelineElementValidationInfo.fromData))(data.validationInfos);
return instance;
}
}
@@ -3028,18 +2402,14 @@ export class ProducedMessagesInfo extends MessagesInfo {
totalProducedMessages: number;
totalProducedMessagesSincePipelineStart: number;
- static fromData(
- data: ProducedMessagesInfo,
- target?: ProducedMessagesInfo,
- ): ProducedMessagesInfo {
+ static fromData(data: ProducedMessagesInfo, target?: ProducedMessagesInfo): ProducedMessagesInfo {
if (!data) {
return data;
}
const instance = target || new ProducedMessagesInfo();
super.fromData(data, instance);
instance.totalProducedMessages = data.totalProducedMessages;
- instance.totalProducedMessagesSincePipelineStart =
- data.totalProducedMessagesSincePipelineStart;
+ instance.totalProducedMessagesSincePipelineStart = data.totalProducedMessagesSincePipelineStart;
return instance;
}
}
@@ -3048,10 +2418,7 @@ export class PropertyRenameRule {
newRuntimeName: string;
runtimeId: string;
- static fromData(
- data: PropertyRenameRule,
- target?: PropertyRenameRule,
- ): PropertyRenameRule {
+ static fromData(data: PropertyRenameRule, target?: PropertyRenameRule): PropertyRenameRule {
if (!data) {
return data;
}
@@ -3067,10 +2434,7 @@ export class PropertyValueSpecification {
minValue: number;
step: number;
- static fromData(
- data: PropertyValueSpecification,
- target?: PropertyValueSpecification,
- ): PropertyValueSpecification {
+ static fromData(data: PropertyValueSpecification, target?: PropertyValueSpecification): PropertyValueSpecification {
if (!data) {
return data;
}
@@ -3086,38 +2450,28 @@ export class PropertyValueSpecification {
* @deprecated since 0.93.0, for removal
*/
export class ProtocolDescription extends NamedStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.connect.grounding.ProtocolDescription';
- 'category': string[];
- 'config': StaticPropertyUnion[];
- 'sourceType': string;
+ "@class": "org.apache.streampipes.model.connect.grounding.ProtocolDescription";
+ category: string[];
+ config: StaticPropertyUnion[];
+ sourceType: string;
- static 'fromData'(
- data: ProtocolDescription,
- target?: ProtocolDescription,
- ): ProtocolDescription {
+ static fromData(data: ProtocolDescription, target?: ProtocolDescription): ProtocolDescription {
if (!data) {
return data;
}
const instance = target || new ProtocolDescription();
super.fromData(data, instance);
- instance.category = __getCopyArrayFn(__identity<string>())(
- data.category,
- );
- instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(
- data.config,
- );
+ instance.category = __getCopyArrayFn(__identity<string>())(data.category);
+ instance.config = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.config);
instance.sourceType = data.sourceType;
return instance;
}
}
export class PulsarTransportProtocol extends TransportProtocol {
- '@class': 'org.apache.streampipes.model.grounding.PulsarTransportProtocol';
+ "@class": "org.apache.streampipes.model.grounding.PulsarTransportProtocol";
- static 'fromData'(
- data: PulsarTransportProtocol,
- target?: PulsarTransportProtocol,
- ): PulsarTransportProtocol {
+ static fromData(data: PulsarTransportProtocol, target?: PulsarTransportProtocol): PulsarTransportProtocol {
if (!data) {
return data;
}
@@ -3128,15 +2482,12 @@ export class PulsarTransportProtocol extends TransportProtocol {
}
export class QuantitativeValue extends ValueSpecification {
- '@class': 'org.apache.streampipes.model.schema.QuantitativeValue';
- 'maxValue': number;
- 'minValue': number;
- 'step': number;
+ "@class": "org.apache.streampipes.model.schema.QuantitativeValue";
+ maxValue: number;
+ minValue: number;
+ step: number;
- static 'fromData'(
- data: QuantitativeValue,
- target?: QuantitativeValue,
- ): QuantitativeValue {
+ static fromData(data: QuantitativeValue, target?: QuantitativeValue): QuantitativeValue {
if (!data) {
return data;
}
@@ -3150,18 +2501,14 @@ export class QuantitativeValue extends ValueSpecification {
}
export class RemoveDuplicatesTransformationRuleDescription extends StreamTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription';
- 'filterTimeWindow': string;
+ "@class": "org.apache.streampipes.model.connect.rules.stream.RemoveDuplicatesTransformationRuleDescription";
+ filterTimeWindow: string;
- static 'fromData'(
- data: RemoveDuplicatesTransformationRuleDescription,
- target?: RemoveDuplicatesTransformationRuleDescription,
- ): RemoveDuplicatesTransformationRuleDescription {
+ static fromData(data: RemoveDuplicatesTransformationRuleDescription, target?: RemoveDuplicatesTransformationRuleDescription): RemoveDuplicatesTransformationRuleDescription {
if (!data) {
return data;
}
- const instance =
- target || new RemoveDuplicatesTransformationRuleDescription();
+ const instance = target || new RemoveDuplicatesTransformationRuleDescription();
super.fromData(data, instance);
instance.filterTimeWindow = data.filterTimeWindow;
return instance;
@@ -3169,14 +2516,11 @@ export class RemoveDuplicatesTransformationRuleDescription extends StreamTransfo
}
export class RenameRuleDescription extends SchemaTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription';
- 'newRuntimeKey': string;
- 'oldRuntimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.schema.RenameRuleDescription";
+ newRuntimeKey: string;
+ oldRuntimeKey: string;
- static 'fromData'(
- data: RenameRuleDescription,
- target?: RenameRuleDescription,
- ): RenameRuleDescription {
+ static fromData(data: RenameRuleDescription, target?: RenameRuleDescription): RenameRuleDescription {
if (!data) {
return data;
}
@@ -3189,94 +2533,67 @@ export class RenameRuleDescription extends SchemaTransformationRuleDescription {
}
export class RuntimeOptionsRequest {
- '@class':
- | 'org.apache.streampipes.model.runtime.RuntimeOptionsRequest'
- | 'org.apache.streampipes.model.runtime.RuntimeOptionsResponse';
- 'appId': string;
- 'belongsTo': string;
- 'deploymentConfiguration': ExtensionDeploymentConfiguration;
- 'inputStreams': SpDataStream[];
- 'requestId': string;
- 'staticProperties': StaticPropertyUnion[];
+ "@class": "org.apache.streampipes.model.runtime.RuntimeOptionsRequest" | "org.apache.streampipes.model.runtime.RuntimeOptionsResponse";
+ appId: string;
+ belongsTo: string;
+ deploymentConfiguration: ExtensionDeploymentConfiguration;
+ inputStreams: SpDataStream[];
+ requestId: string;
+ staticProperties: StaticPropertyUnion[];
- static 'fromData'(
- data: RuntimeOptionsRequest,
- target?: RuntimeOptionsRequest,
- ): RuntimeOptionsRequest {
+ static fromData(data: RuntimeOptionsRequest, target?: RuntimeOptionsRequest): RuntimeOptionsRequest {
if (!data) {
return data;
}
const instance = target || new RuntimeOptionsRequest();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.appId = data.appId;
instance.belongsTo = data.belongsTo;
- instance.deploymentConfiguration =
- ExtensionDeploymentConfiguration.fromData(
- data.deploymentConfiguration,
- );
- instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(
- data.inputStreams,
- );
+ instance.deploymentConfiguration = ExtensionDeploymentConfiguration.fromData(data.deploymentConfiguration);
+ instance.inputStreams = __getCopyArrayFn(SpDataStream.fromData)(data.inputStreams);
instance.requestId = data.requestId;
- instance.staticProperties = __getCopyArrayFn(
- StaticProperty.fromDataUnion,
- )(data.staticProperties);
+ instance.staticProperties = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.staticProperties);
return instance;
}
}
export class RuntimeOptionsResponse extends RuntimeOptionsRequest {
- '@class': 'org.apache.streampipes.model.runtime.RuntimeOptionsResponse';
- 'staticProperty': StaticPropertyUnion;
+ "@class": "org.apache.streampipes.model.runtime.RuntimeOptionsResponse";
+ staticProperty: StaticPropertyUnion;
- static 'fromData'(
- data: RuntimeOptionsResponse,
- target?: RuntimeOptionsResponse,
- ): RuntimeOptionsResponse {
+ static fromData(data: RuntimeOptionsResponse, target?: RuntimeOptionsResponse): RuntimeOptionsResponse {
if (!data) {
return data;
}
const instance = target || new RuntimeOptionsResponse();
super.fromData(data, instance);
- instance.staticProperty = StaticProperty.fromDataUnion(
- data.staticProperty,
- );
+ instance.staticProperty = StaticProperty.fromDataUnion(data.staticProperty);
return instance;
}
}
export class RuntimeResolvableAnyStaticProperty extends AnyStaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty';
- 'dependsOn': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.RuntimeResolvableAnyStaticProperty";
+ dependsOn: string[];
- static 'fromData'(
- data: RuntimeResolvableAnyStaticProperty,
- target?: RuntimeResolvableAnyStaticProperty,
- ): RuntimeResolvableAnyStaticProperty {
+ static fromData(data: RuntimeResolvableAnyStaticProperty, target?: RuntimeResolvableAnyStaticProperty): RuntimeResolvableAnyStaticProperty {
if (!data) {
return data;
}
const instance = target || new RuntimeResolvableAnyStaticProperty();
super.fromData(data, instance);
- instance.dependsOn = __getCopyArrayFn(__identity<string>())(
- data.dependsOn,
- );
+ instance.dependsOn = __getCopyArrayFn(__identity<string>())(data.dependsOn);
return instance;
}
}
export class StaticPropertyGroup extends StaticProperty {
- '@class':
- | 'org.apache.streampipes.model.staticproperty.StaticPropertyGroup'
- | 'org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty';
- 'horizontalRendering': boolean;
- 'showLabel': boolean;
- 'staticProperties': StaticPropertyUnion[];
+ "@class": "org.apache.streampipes.model.staticproperty.StaticPropertyGroup" | "org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty";
+ horizontalRendering: boolean;
+ showLabel: boolean;
+ staticProperties: StaticPropertyUnion[];
- static 'fromData'(
- data: StaticPropertyGroup,
- target?: StaticPropertyGroup,
- ): StaticPropertyGroup {
+ static fromData(data: StaticPropertyGroup, target?: StaticPropertyGroup): StaticPropertyGroup {
if (!data) {
return data;
}
@@ -3284,99 +2601,74 @@ export class StaticPropertyGroup extends StaticProperty {
super.fromData(data, instance);
instance.horizontalRendering = data.horizontalRendering;
instance.showLabel = data.showLabel;
- instance.staticProperties = __getCopyArrayFn(
- StaticProperty.fromDataUnion,
- )(data.staticProperties);
+ instance.staticProperties = __getCopyArrayFn(StaticProperty.fromDataUnion)(data.staticProperties);
return instance;
}
}
export class RuntimeResolvableGroupStaticProperty extends StaticPropertyGroup {
- '@class': 'org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty';
- 'dependsOn': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.RuntimeResolvableGroupStaticProperty";
+ dependsOn: string[];
- static 'fromData'(
- data: RuntimeResolvableGroupStaticProperty,
- target?: RuntimeResolvableGroupStaticProperty,
- ): RuntimeResolvableGroupStaticProperty {
+ static fromData(data: RuntimeResolvableGroupStaticProperty, target?: RuntimeResolvableGroupStaticProperty): RuntimeResolvableGroupStaticProperty {
if (!data) {
return data;
}
const instance = target || new RuntimeResolvableGroupStaticProperty();
super.fromData(data, instance);
- instance.dependsOn = __getCopyArrayFn(__identity<string>())(
- data.dependsOn,
- );
+ instance.dependsOn = __getCopyArrayFn(__identity<string>())(data.dependsOn);
return instance;
}
}
export class RuntimeResolvableOneOfStaticProperty extends OneOfStaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty';
- 'dependsOn': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.RuntimeResolvableOneOfStaticProperty";
+ dependsOn: string[];
- static 'fromData'(
- data: RuntimeResolvableOneOfStaticProperty,
- target?: RuntimeResolvableOneOfStaticProperty,
- ): RuntimeResolvableOneOfStaticProperty {
+ static fromData(data: RuntimeResolvableOneOfStaticProperty, target?: RuntimeResolvableOneOfStaticProperty): RuntimeResolvableOneOfStaticProperty {
if (!data) {
return data;
}
const instance = target || new RuntimeResolvableOneOfStaticProperty();
super.fromData(data, instance);
- instance.dependsOn = __getCopyArrayFn(__identity<string>())(
- data.dependsOn,
- );
+ instance.dependsOn = __getCopyArrayFn(__identity<string>())(data.dependsOn);
return instance;
}
}
export class RuntimeResolvableTreeInputStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty';
- 'dependsOn': string[];
- 'latestFetchedNodes': TreeInputNode[];
- 'multiSelection': boolean;
- 'nextBaseNodeToResolve': string;
- 'nodes': TreeInputNode[];
- 'resolveDynamically': boolean;
- 'selectedNodesInternalNames': string[];
+ "@class": "org.apache.streampipes.model.staticproperty.RuntimeResolvableTreeInputStaticProperty";
+ dependsOn: string[];
+ latestFetchedNodes: TreeInputNode[];
+ multiSelection: boolean;
+ nextBaseNodeToResolve: string;
+ nodes: TreeInputNode[];
+ resolveDynamically: boolean;
+ selectedNodesInternalNames: string[];
- static 'fromData'(
- data: RuntimeResolvableTreeInputStaticProperty,
- target?: RuntimeResolvableTreeInputStaticProperty,
- ): RuntimeResolvableTreeInputStaticProperty {
+ static fromData(data: RuntimeResolvableTreeInputStaticProperty, target?: RuntimeResolvableTreeInputStaticProperty): RuntimeResolvableTreeInputStaticProperty {
if (!data) {
return data;
}
- const instance =
- target || new RuntimeResolvableTreeInputStaticProperty();
+ const instance = target || new RuntimeResolvableTreeInputStaticProperty();
super.fromData(data, instance);
- instance.dependsOn = __getCopyArrayFn(__identity<string>())(
- data.dependsOn,
- );
- instance.latestFetchedNodes = __getCopyArrayFn(TreeInputNode.fromData)(
- data.latestFetchedNodes,
- );
+ instance.dependsOn = __getCopyArrayFn(__identity<string>())(data.dependsOn);
+ instance.latestFetchedNodes = __getCopyArrayFn(TreeInputNode.fromData)(data.latestFetchedNodes);
instance.multiSelection = data.multiSelection;
instance.nextBaseNodeToResolve = data.nextBaseNodeToResolve;
instance.nodes = __getCopyArrayFn(TreeInputNode.fromData)(data.nodes);
instance.resolveDynamically = data.resolveDynamically;
- instance.selectedNodesInternalNames = __getCopyArrayFn(
- __identity<string>(),
- )(data.selectedNodesInternalNames);
+ instance.selectedNodesInternalNames = __getCopyArrayFn(__identity<string>())(data.selectedNodesInternalNames);
return instance;
}
}
export class SecretStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.SecretStaticProperty';
- 'encrypted': boolean;
- 'value': string;
+ "@class": "org.apache.streampipes.model.staticproperty.SecretStaticProperty";
+ encrypted: boolean;
+ value: string;
- static 'fromData'(
- data: SecretStaticProperty,
- target?: SecretStaticProperty,
- ): SecretStaticProperty {
+ static fromData(data: SecretStaticProperty, target?: SecretStaticProperty): SecretStaticProperty {
if (!data) {
return data;
}
@@ -3393,10 +2685,7 @@ export class ShortUserInfo {
email: string;
principalId: string;
- static fromData(
- data: ShortUserInfo,
- target?: ShortUserInfo,
- ): ShortUserInfo {
+ static fromData(data: ShortUserInfo, target?: ShortUserInfo): ShortUserInfo {
if (!data) {
return data;
}
@@ -3409,44 +2698,36 @@ export class ShortUserInfo {
}
export class TopicDefinition {
- '@class':
- | 'org.apache.streampipes.model.grounding.SimpleTopicDefinition'
- | 'org.apache.streampipes.model.grounding.WildcardTopicDefinition';
- 'actualTopicName': string;
+ "@class": "org.apache.streampipes.model.grounding.SimpleTopicDefinition" | "org.apache.streampipes.model.grounding.WildcardTopicDefinition";
+ actualTopicName: string;
- static 'fromData'(
- data: TopicDefinition,
- target?: TopicDefinition,
- ): TopicDefinition {
+ static fromData(data: TopicDefinition, target?: TopicDefinition): TopicDefinition {
if (!data) {
return data;
}
const instance = target || new TopicDefinition();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.actualTopicName = data.actualTopicName;
return instance;
}
- static 'fromDataUnion'(data: TopicDefinitionUnion): TopicDefinitionUnion {
+ static fromDataUnion(data: TopicDefinitionUnion): TopicDefinitionUnion {
if (!data) {
return data;
}
- switch (data['@class']) {
- case 'org.apache.streampipes.model.grounding.SimpleTopicDefinition':
+ switch (data["@class"]) {
+ case "org.apache.streampipes.model.grounding.SimpleTopicDefinition":
return SimpleTopicDefinition.fromData(data);
- case 'org.apache.streampipes.model.grounding.WildcardTopicDefinition':
+ case "org.apache.streampipes.model.grounding.WildcardTopicDefinition":
return WildcardTopicDefinition.fromData(data);
}
}
}
export class SimpleTopicDefinition extends TopicDefinition {
- '@class': 'org.apache.streampipes.model.grounding.SimpleTopicDefinition';
+ "@class": "org.apache.streampipes.model.grounding.SimpleTopicDefinition";
- static 'fromData'(
- data: SimpleTopicDefinition,
- target?: SimpleTopicDefinition,
- ): SimpleTopicDefinition {
+ static fromData(data: SimpleTopicDefinition, target?: SimpleTopicDefinition): SimpleTopicDefinition {
if (!data) {
return data;
}
@@ -3457,14 +2738,11 @@ export class SimpleTopicDefinition extends TopicDefinition {
}
export class SlideToggleStaticProperty extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty';
- 'defaultValue': boolean;
- 'selected': boolean;
+ "@class": "org.apache.streampipes.model.staticproperty.SlideToggleStaticProperty";
+ defaultValue: boolean;
+ selected: boolean;
- static 'fromData'(
- data: SlideToggleStaticProperty,
- target?: SlideToggleStaticProperty,
- ): SlideToggleStaticProperty {
+ static fromData(data: SlideToggleStaticProperty, target?: SlideToggleStaticProperty): SlideToggleStaticProperty {
if (!data) {
return data;
}
@@ -3477,22 +2755,20 @@ export class SlideToggleStaticProperty extends StaticProperty {
}
export class SpDataStream extends NamedStreamPipesEntity {
- '@class': 'org.apache.streampipes.model.SpDataStream';
- 'category': string[];
- 'correspondingAdapterId': string;
- 'eventGrounding': EventGrounding;
- 'eventSchema': EventSchema;
- 'index': number;
+ "@class": "org.apache.streampipes.model.SpDataStream";
+ category: string[];
+ correspondingAdapterId: string;
+ eventGrounding: EventGrounding;
+ eventSchema: EventSchema;
+ index: number;
- static 'fromData'(data: SpDataStream, target?: SpDataStream): SpDataStream {
+ static fromData(data: SpDataStream, target?: SpDataStream): SpDataStream {
if (!data) {
return data;
}
const instance = target || new SpDataStream();
super.fromData(data, instance);
- instance.category = __getCopyArrayFn(__identity<string>())(
- data.category,
- );
+ instance.category = __getCopyArrayFn(__identity<string>())(data.category);
instance.correspondingAdapterId = data.correspondingAdapterId;
instance.eventGrounding = EventGrounding.fromData(data.eventGrounding);
instance.eventSchema = EventSchema.fromData(data.eventSchema);
@@ -3502,18 +2778,15 @@ export class SpDataStream extends NamedStreamPipesEntity {
}
export class SpDataStreamContainer {
- '@class': 'org.apache.streampipes.model.SpDataStreamContainer';
- 'list': SpDataStream[];
+ "@class": "org.apache.streampipes.model.SpDataStreamContainer";
+ list: SpDataStream[];
- static 'fromData'(
- data: SpDataStreamContainer,
- target?: SpDataStreamContainer,
- ): SpDataStreamContainer {
+ static fromData(data: SpDataStreamContainer, target?: SpDataStreamContainer): SpDataStreamContainer {
if (!data) {
return data;
}
const instance = target || new SpDataStreamContainer();
- instance['@class'] = data['@class'];
+ instance["@class"] = data["@class"];
instance.list = __getCopyArrayFn(SpDataStream.fromData)(data.list);
return instance;
}
@@ -3560,18 +2833,13 @@ export class SpMetricsEntry {
messagesIn: { [index: string]: MessageCounter };
messagesOut: MessageCounter;
- static fromData(
- data: SpMetricsEntry,
- target?: SpMetricsEntry,
- ): SpMetricsEntry {
+ static fromData(data: SpMetricsEntry, target?: SpMetricsEntry): SpMetricsEntry {
if (!data) {
return data;
}
const instance = target || new SpMetricsEntry();
instance.lastTimestamp = data.lastTimestamp;
- instance.messagesIn = __getCopyObjectFn(MessageCounter.fromData)(
- data.messagesIn,
- );
+ instance.messagesIn = __getCopyObjectFn(MessageCounter.fromData)(data.messagesIn);
instance.messagesOut = MessageCounter.fromData(data.messagesOut);
return instance;
}
@@ -3586,17 +2854,12 @@ export class SpQueryResult {
spQueryStatus: SpQueryStatus;
total: number;
- static fromData(
- data: SpQueryResult,
- target?: SpQueryResult,
- ): SpQueryResult {
+ static fromData(data: SpQueryResult, target?: SpQueryResult): SpQueryResult {
if (!data) {
return data;
}
const instance = target || new SpQueryResult();
- instance.allDataSeries = __getCopyArrayFn(DataSeries.fromData)(
- data.allDataSeries,
- );
+ instance.allDataSeries = __getCopyArrayFn(DataSeries.fromData)(data.allDataSeries);
instance.forId = data.forId;
instance.headers = __getCopyArrayFn(__identity<string>())(data.headers);
instance.lastTimestamp = data.lastTimestamp;
@@ -3613,10 +2876,7 @@ export class SpServiceConfiguration {
serviceGroup: string;
serviceName: string;
- static fromData(
- data: SpServiceConfiguration,
- target?: SpServiceConfiguration,
- ): SpServiceConfiguration {
+ static fromData(data: SpServiceConfiguration, target?: SpServiceConfiguration): SpServiceConfiguration {
if (!data) {
return data;
}
@@ -3644,10 +2904,7 @@ export class SpServiceRegistration {
svcType: string;
tags: SpServiceTag[];
- static fromData(
- data: SpServiceRegistration,
- target?: SpServiceRegistration,
- ): SpServiceRegistration {
+ static fromData(data: SpServiceRegistration, target?: SpServiceRegistration): SpServiceRegistration {
if (!data) {
return data;
}
@@ -3656,9 +2913,7 @@ export class SpServiceRegistration {
instance.healthCheckPath = data.healthCheckPath;
instance.host = data.host;
instance.port = data.port;
- instance.providedExtensions = __getCopyArrayFn(
- ExtensionItemDescription.fromData,
- )(data.providedExtensions);
+ instance.providedExtensions = __getCopyArrayFn(ExtensionItemDescription.fromData)(data.providedExtensions);
instance.rev = data.rev;
instance.scheme = data.scheme;
instance.serviceUrl = data.serviceUrl;
@@ -3687,15 +2942,12 @@ export class SpServiceTag {
}
export class StaticPropertyAlternative extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternative';
- 'elementId': string;
- 'selected': boolean;
- 'staticProperty': StaticPropertyUnion;
+ "@class": "org.apache.streampipes.model.staticproperty.StaticPropertyAlternative";
+ elementId: string;
+ selected: boolean;
+ staticProperty: StaticPropertyUnion;
- static 'fromData'(
- data: StaticPropertyAlternative,
- target?: StaticPropertyAlternative,
- ): StaticPropertyAlternative {
+ static fromData(data: StaticPropertyAlternative, target?: StaticPropertyAlternative): StaticPropertyAlternative {
if (!data) {
return data;
}
@@ -3703,29 +2955,22 @@ export class StaticPropertyAlternative extends StaticProperty {
super.fromData(data, instance);
instance.elementId = data.elementId;
instance.selected = data.selected;
- instance.staticProperty = StaticProperty.fromDataUnion(
- data.staticProperty,
- );
+ instance.staticProperty = StaticProperty.fromDataUnion(data.staticProperty);
return instance;
}
}
export class StaticPropertyAlternatives extends StaticProperty {
- '@class': 'org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives';
- 'alternatives': StaticPropertyAlternative[];
+ "@class": "org.apache.streampipes.model.staticproperty.StaticPropertyAlternatives";
+ alternatives: StaticPropertyAlternative[];
- static 'fromData'(
- data: StaticPropertyAlternatives,
- target?: StaticPropertyAlternatives,
- ): StaticPropertyAlternatives {
+ static fromData(data: StaticPropertyAlternatives, target?: StaticPropertyAlternatives): StaticPropertyAlternatives {
if (!data) {
return data;
}
const instance = target || new StaticPropertyAlternatives();
super.fromData(data, instance);
- instance.alternatives = __getCopyArrayFn(
- StaticPropertyAlternative.fromData,
- )(data.alternatives);
+ instance.alternatives = __getCopyArrayFn(StaticPropertyAlternative.fromData)(data.alternatives);
return instance;
}
}
@@ -3745,58 +2990,31 @@ export class StreamPipesApplicationPackage {
requiredDataSinkAppIds: string[];
requiredProcessorAppIds: string[];
- static fromData(
- data: StreamPipesApplicationPackage,
- target?: StreamPipesApplicationPackage,
- ): StreamPipesApplicationPackage {
+ static fromData(data: StreamPipesApplicationPackage, target?: StreamPipesApplicationPackage): StreamPipesApplicationPackage {
if (!data) {
return data;
}
const instance = target || new StreamPipesApplicationPackage();
- instance.adapters = __getCopyArrayFn(__identity<string>())(
- data.adapters,
- );
+ instance.adapters = __getCopyArrayFn(__identity<string>())(data.adapters);
instance.assets = __getCopyArrayFn(__identity<string>())(data.assets);
- instance.dashboardWidgets = __getCopyArrayFn(__identity<string>())(
- data.dashboardWidgets,
- );
- instance.dashboards = __getCopyArrayFn(__identity<string>())(
- data.dashboards,
- );
- instance.dataLakeMeasures = __getCopyArrayFn(__identity<string>())(
- data.dataLakeMeasures,
- );
- instance.dataSources = __getCopyArrayFn(__identity<string>())(
- data.dataSources,
- );
- instance.dataViewWidgets = __getCopyArrayFn(__identity<string>())(
- data.dataViewWidgets,
- );
- instance.dataViews = __getCopyArrayFn(__identity<string>())(
- data.dataViews,
- );
+ instance.dashboardWidgets = __getCopyArrayFn(__identity<string>())(data.dashboardWidgets);
+ instance.dashboards = __getCopyArrayFn(__identity<string>())(data.dashboards);
+ instance.dataLakeMeasures = __getCopyArrayFn(__identity<string>())(data.dataLakeMeasures);
+ instance.dataSources = __getCopyArrayFn(__identity<string>())(data.dataSources);
+ instance.dataViewWidgets = __getCopyArrayFn(__identity<string>())(data.dataViewWidgets);
+ instance.dataViews = __getCopyArrayFn(__identity<string>())(data.dataViews);
instance.files = __getCopyArrayFn(__identity<string>())(data.files);
- instance.pipelines = __getCopyArrayFn(__identity<string>())(
- data.pipelines,
- );
- instance.requiredAdapterAppIds = __getCopyArrayFn(__identity<string>())(
- data.requiredAdapterAppIds,
- );
- instance.requiredDataSinkAppIds = __getCopyArrayFn(
- __identity<string>(),
- )(data.requiredDataSinkAppIds);
- instance.requiredProcessorAppIds = __getCopyArrayFn(
- __identity<string>(),
- )(data.requiredProcessorAppIds);
+ instance.pipelines = __getCopyArrayFn(__identity<string>())(data.pipelines);
+ instance.requiredAdapterAppIds = __getCopyArrayFn(__identity<string>())(data.requiredAdapterAppIds);
+ instance.requiredDataSinkAppIds = __getCopyArrayFn(__identity<string>())(data.requiredDataSinkAppIds);
+ instance.requiredProcessorAppIds = __getCopyArrayFn(__identity<string>())(data.requiredProcessorAppIds);
return instance;
}
}
export class SuccessMessage extends Message {
- static fromData(
- data: SuccessMessage,
- target?: SuccessMessage,
- ): SuccessMessage {
+
+ static fromData(data: SuccessMessage, target?: SuccessMessage): SuccessMessage {
if (!data) {
return data;
}
@@ -3806,42 +3024,18 @@ export class SuccessMessage extends Message {
}
}
-export class SupportedProperty {
- propertyId: string;
- value: string;
- valueRequired: boolean;
-
- static fromData(
- data: SupportedProperty,
- target?: SupportedProperty,
- ): SupportedProperty {
- if (!data) {
- return data;
- }
- const instance = target || new SupportedProperty();
- instance.propertyId = data.propertyId;
- instance.value = data.value;
- instance.valueRequired = data.valueRequired;
- return instance;
- }
-}
-
export class TimestampTranfsformationRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription';
- 'formatString': string;
- 'mode': string;
- 'multiplier': number;
- 'runtimeKey': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.TimestampTranfsformationRuleDescription";
+ formatString: string;
+ mode: string;
+ multiplier: number;
+ runtimeKey: string;
- static 'fromData'(
- data: TimestampTranfsformationRuleDescription,
- target?: TimestampTranfsformationRuleDescription,
- ): TimestampTranfsformationRuleDescription {
+ static fromData(data: TimestampTranfsformationRuleDescription, target?: TimestampTranfsformationRuleDescription): TimestampTranfsformationRuleDescription {
if (!data) {
return data;
}
- const instance =
- target || new TimestampTranfsformationRuleDescription();
+ const instance = target || new TimestampTranfsformationRuleDescription();
super.fromData(data, instance);
instance.formatString = data.formatString;
instance.mode = data.mode;
@@ -3857,10 +3051,7 @@ export class TransformOperation {
targetValue: string;
transformationScope: string;
- static fromData(
- data: TransformOperation,
- target?: TransformOperation,
- ): TransformOperation {
+ static fromData(data: TransformOperation, target?: TransformOperation): TransformOperation {
if (!data) {
return data;
}
@@ -3874,21 +3065,16 @@ export class TransformOperation {
}
export class TransformOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.TransformOutputStrategy';
- 'transformOperations': TransformOperation[];
+ "@class": "org.apache.streampipes.model.output.TransformOutputStrategy";
+ transformOperations: TransformOperation[];
- static 'fromData'(
- data: TransformOutputStrategy,
- target?: TransformOutputStrategy,
- ): TransformOutputStrategy {
+ static fromData(data: TransformOutputStrategy, target?: TransformOutputStrategy): TransformOutputStrategy {
if (!data) {
return data;
}
const instance = target || new TransformOutputStrategy();
super.fromData(data, instance);
- instance.transformOperations = __getCopyArrayFn(
- TransformOperation.fromData,
- )(data.transformOperations);
+ instance.transformOperations = __getCopyArrayFn(TransformOperation.fromData)(data.transformOperations);
return instance;
}
}
@@ -3896,10 +3082,7 @@ export class TransformOutputStrategy extends OutputStrategy {
export class TransportFormat {
rdfType: string[];
- static fromData(
- data: TransportFormat,
- target?: TransportFormat,
- ): TransportFormat {
+ static fromData(data: TransportFormat, target?: TransportFormat): TransportFormat {
if (!data) {
return data;
}
@@ -3917,22 +3100,15 @@ export class TreeInputNode {
nodeName: string;
selected: boolean;
- static fromData(
- data: TreeInputNode,
- target?: TreeInputNode,
- ): TreeInputNode {
+ static fromData(data: TreeInputNode, target?: TreeInputNode): TreeInputNode {
if (!data) {
return data;
}
const instance = target || new TreeInputNode();
- instance.children = __getCopyArrayFn(TreeInputNode.fromData)(
- data.children,
- );
+ instance.children = __getCopyArrayFn(TreeInputNode.fromData)(data.children);
instance.dataNode = data.dataNode;
instance.internalNodeName = data.internalNodeName;
- instance.nodeMetadata = __getCopyObjectFn(__identity<any>())(
- data.nodeMetadata,
- );
+ instance.nodeMetadata = __getCopyObjectFn(__identity<any>())(data.nodeMetadata);
instance.nodeName = data.nodeName;
instance.selected = data.selected;
return instance;
@@ -3940,15 +3116,12 @@ export class TreeInputNode {
}
export class UnitTransformRuleDescription extends ValueTransformationRuleDescription {
- '@class': 'org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription';
- 'fromUnitRessourceURL': string;
- 'runtimeKey': string;
- 'toUnitRessourceURL': string;
+ "@class": "org.apache.streampipes.model.connect.rules.value.UnitTransformRuleDescription";
+ fromUnitRessourceURL: string;
+ runtimeKey: string;
+ toUnitRessourceURL: string;
- static 'fromData'(
- data: UnitTransformRuleDescription,
- target?: UnitTransformRuleDescription,
- ): UnitTransformRuleDescription {
+ static fromData(data: UnitTransformRuleDescription, target?: UnitTransformRuleDescription): UnitTransformRuleDescription {
if (!data) {
return data;
}
@@ -3962,21 +3135,16 @@ export class UnitTransformRuleDescription extends ValueTransformationRuleDescrip
}
export class UserDefinedOutputStrategy extends OutputStrategy {
- '@class': 'org.apache.streampipes.model.output.UserDefinedOutputStrategy';
- 'eventProperties': EventPropertyUnion[];
+ "@class": "org.apache.streampipes.model.output.UserDefinedOutputStrategy";
+ eventProperties: EventPropertyUnion[];
- static 'fromData'(
- data: UserDefinedOutputStrategy,
- target?: UserDefinedOutputStrategy,
- ): UserDefinedOutputStrategy {
+ static fromData(data: UserDefinedOutputStrategy, target?: UserDefinedOutputStrategy): UserDefinedOutputStrategy {
if (!data) {
return data;
}
const instance = target || new UserDefinedOutputStrategy();
super.fromData(data, instance);
- instance.eventProperties = __getCopyArrayFn(
- EventProperty.fromDataUnion,
- )(data.eventProperties);
+ instance.eventProperties = __getCopyArrayFn(EventProperty.fromDataUnion)(data.eventProperties);
return instance;
}
}
@@ -4009,10 +3177,7 @@ export class VisualizablePipeline {
topic: string;
visualizationName: string;
- static fromData(
- data: VisualizablePipeline,
- target?: VisualizablePipeline,
- ): VisualizablePipeline {
+ static fromData(data: VisualizablePipeline, target?: VisualizablePipeline): VisualizablePipeline {
if (!data) {
return data;
}
@@ -4027,22 +3192,17 @@ export class VisualizablePipeline {
}
export class WildcardTopicDefinition extends TopicDefinition {
- '@class': 'org.apache.streampipes.model.grounding.WildcardTopicDefinition';
- 'wildcardTopicMappings': WildcardTopicMapping[];
- 'wildcardTopicName': string;
+ "@class": "org.apache.streampipes.model.grounding.WildcardTopicDefinition";
+ wildcardTopicMappings: WildcardTopicMapping[];
+ wildcardTopicName: string;
- static 'fromData'(
- data: WildcardTopicDefinition,
- target?: WildcardTopicDefinition,
- ): WildcardTopicDefinition {
+ static fromData(data: WildcardTopicDefinition, target?: WildcardTopicDefinition): WildcardTopicDefinition {
if (!data) {
return data;
}
const instance = target || new WildcardTopicDefinition();
super.fromData(data, instance);
- instance.wildcardTopicMappings = __getCopyArrayFn(
- WildcardTopicMapping.fromData,
- )(data.wildcardTopicMappings);
+ instance.wildcardTopicMappings = __getCopyArrayFn(WildcardTopicMapping.fromData)(data.wildcardTopicMappings);
instance.wildcardTopicName = data.wildcardTopicName;
return instance;
}
@@ -4054,10 +3214,7 @@ export class WildcardTopicMapping {
selectedMapping: string;
topicParameterType: string;
- static fromData(
- data: WildcardTopicMapping,
- target?: WildcardTopicMapping,
- ): WildcardTopicMapping {
+ static fromData(data: WildcardTopicMapping, target?: WildcardTopicMapping): WildcardTopicMapping {
if (!data) {
return data;
}
@@ -4070,155 +3227,57 @@ export class WildcardTopicMapping {
}
}
-export type ConfigurationScope =
- | 'CONTAINER_STARTUP_CONFIG'
- | 'CONTAINER_GLOBAL_CONFIG'
- | 'PIPELINE_ELEMENT_CONFIG';
+export type ConfigurationScope = "CONTAINER_STARTUP_CONFIG" | "CONTAINER_GLOBAL_CONFIG" | "PIPELINE_ELEMENT_CONFIG";
-export type DataLakeMeasureSchemaUpdateStrategy =
- | 'UPDATE_SCHEMA'
- | 'EXTEND_EXISTING_SCHEMA';
+export type DataLakeMeasureSchemaUpdateStrategy = "UPDATE_SCHEMA" | "EXTEND_EXISTING_SCHEMA";
-export type EdgeValidationStatusType = 'COMPLETE' | 'INCOMPLETE' | 'INVALID';
+export type EdgeValidationStatusType = "COMPLETE" | "INCOMPLETE" | "INVALID";
-export type EventPropertyUnion =
- | EventPropertyList
- | EventPropertyNested
- | EventPropertyPrimitive;
+export type EventPropertyUnion = EventPropertyList | EventPropertyNested | EventPropertyPrimitive;
-export type FieldStatus = 'GOOD' | 'BAD' | 'ATTENTION';
+export type FieldStatus = "GOOD" | "BAD" | "ATTENTION";
export type MappingPropertyUnion = MappingPropertyNary | MappingPropertyUnary;
export type OneOfStaticPropertyUnion = RuntimeResolvableOneOfStaticProperty;
-export type OutputStrategyUnion =
- | AppendOutputStrategy
- | CustomOutputStrategy
- | CustomTransformOutputStrategy
- | FixedOutputStrategy
- | KeepOutputStrategy
- | ListOutputStrategy
- | TransformOutputStrategy
- | UserDefinedOutputStrategy;
-
-export type PipelineHealthStatus = 'OK' | 'REQUIRES_ATTENTION' | 'FAILURE';
-
-export type PropertyScope =
- | 'HEADER_PROPERTY'
- | 'DIMENSION_PROPERTY'
- | 'MEASUREMENT_PROPERTY'
- | 'NONE';
-
-export type SelectionStaticPropertyUnion =
- | AnyStaticProperty
- | OneOfStaticProperty;
-
-export type SpDataFormat = 'CBOR' | 'JSON' | 'FST' | 'SMILE';
-
-export type SpLogLevel = 'INFO' | 'WARN' | 'ERROR';
-
-export type SpProtocol = 'KAFKA' | 'JMS' | 'MQTT' | 'NATS' | 'PULSAR';
-
-export type SpQueryStatus = 'OK' | 'TOO_MUCH_DATA';
-
-export type SpServiceStatus =
- | 'REGISTERED'
- | 'MIGRATING'
- | 'HEALTHY'
- | 'UNHEALTHY';
-
-export type SpServiceTagPrefix =
- | 'SP_GROUP'
- | 'CUSTOM'
- | 'ADAPTER'
- | 'DATA_STREAM'
- | 'DATA_PROCESSOR'
- | 'DATA_SINK';
-
-export type StaticPropertyType =
- | 'AnyStaticProperty'
- | 'CodeInputStaticProperty'
- | 'CollectionStaticProperty'
- | 'ColorPickerStaticProperty'
- | 'DomainStaticProperty'
- | 'FreeTextStaticProperty'
- | 'FileStaticProperty'
- | 'MappingPropertyUnary'
- | 'MappingPropertyNary'
- | 'MatchingStaticProperty'
- | 'OneOfStaticProperty'
- | 'RuntimeResolvableAnyStaticProperty'
- | 'RuntimeResolvableGroupStaticProperty'
- | 'RuntimeResolvableOneOfStaticProperty'
- | 'RuntimeResolvableTreeInputStaticProperty'
- | 'StaticPropertyGroup'
- | 'StaticPropertyAlternatives'
- | 'StaticPropertyAlternative'
- | 'SecretStaticProperty'
- | 'SlideToggleStaticProperty';
-
-export type StaticPropertyUnion =
- | AnyStaticProperty
- | CodeInputStaticProperty
- | CollectionStaticProperty
- | ColorPickerStaticProperty
- | DomainStaticProperty
- | FileStaticProperty
- | FreeTextStaticProperty
- | MappingPropertyUnary
- | MappingPropertyNary
- | MatchingStaticProperty
- | OneOfStaticProperty
- | RuntimeResolvableAnyStaticProperty
- | RuntimeResolvableOneOfStaticProperty
- | RuntimeResolvableTreeInputStaticProperty
- | SecretStaticProperty
- | StaticPropertyAlternative
- | StaticPropertyAlternatives
- | StaticPropertyGroup
- | SlideToggleStaticProperty
- | RuntimeResolvableGroupStaticProperty;
-
-export type StreamTransformationRuleDescriptionUnion =
- | EventRateTransformationRuleDescription
- | RemoveDuplicatesTransformationRuleDescription;
-
-export type TopicDefinitionUnion =
- | SimpleTopicDefinition
- | WildcardTopicDefinition;
-
-export type TransformationRuleDescriptionUnion =
- | AddTimestampRuleDescription
- | AddValueTransformationRuleDescription
- | TimestampTranfsformationRuleDescription
- | UnitTransformRuleDescription
- | EventRateTransformationRuleDescription
- | RemoveDuplicatesTransformationRuleDescription
- | CreateNestedRuleDescription
- | DeleteRuleDescription
- | RenameRuleDescription
- | MoveRuleDescription
- | ChangeDatatypeTransformationRuleDescription
- | CorrectionValueTransformationRuleDescription;
-
-export type TransportProtocolUnion =
- | JmsTransportProtocol
- | KafkaTransportProtocol
- | MqttTransportProtocol
- | NatsTransportProtocol
- | PulsarTransportProtocol;
-
-export type ValidationInfoLevel = 'INFO' | 'ERROR';
+export type OutputStrategyUnion = AppendOutputStrategy | CustomOutputStrategy | CustomTransformOutputStrategy | FixedOutputStrategy | KeepOutputStrategy | ListOutputStrategy | TransformOutputStrategy | UserDefinedOutputStrategy;
+
+export type PipelineHealthStatus = "OK" | "REQUIRES_ATTENTION" | "FAILURE";
+
+export type PropertyScope = "HEADER_PROPERTY" | "DIMENSION_PROPERTY" | "MEASUREMENT_PROPERTY" | "NONE";
+
+export type SelectionStaticPropertyUnion = AnyStaticProperty | OneOfStaticProperty;
+
+export type SpDataFormat = "CBOR" | "JSON" | "FST" | "SMILE";
+
+export type SpLogLevel = "INFO" | "WARN" | "ERROR";
+
+export type SpProtocol = "KAFKA" | "JMS" | "MQTT" | "NATS" | "PULSAR";
+
+export type SpQueryStatus = "OK" | "TOO_MUCH_DATA";
+
+export type SpServiceStatus = "REGISTERED" | "MIGRATING" | "HEALTHY" | "UNHEALTHY";
+
+export type SpServiceTagPrefix = "SP_GROUP" | "CUSTOM" | "ADAPTER" | "DATA_STREAM" | "DATA_PROCESSOR" | "DATA_SINK";
+
+export type StaticPropertyType = "AnyStaticProperty" | "CodeInputStaticProperty" | "CollectionStaticProperty" | "ColorPickerStaticProperty" | "DomainStaticProperty" | "FreeTextStaticProperty" | "FileStaticProperty" | "MappingPropertyUnary" | "MappingPropertyNary" | "MatchingStaticProperty" | "OneOfStaticProperty" | "RuntimeResolvableAnyStaticProperty" | "RuntimeResolvableGroupStaticProperty" | "RuntimeResolvableOneOfStaticProperty" | "RuntimeResolvableTreeInputStaticProperty" | "StaticPr [...]
+
+export type StaticPropertyUnion = AnyStaticProperty | CodeInputStaticProperty | CollectionStaticProperty | ColorPickerStaticProperty | FileStaticProperty | FreeTextStaticProperty | MappingPropertyUnary | MappingPropertyNary | MatchingStaticProperty | OneOfStaticProperty | RuntimeResolvableAnyStaticProperty | RuntimeResolvableOneOfStaticProperty | RuntimeResolvableTreeInputStaticProperty | SecretStaticProperty | StaticPropertyAlternative | StaticPropertyAlternatives | StaticPropertyGroup [...]
+
+export type StreamTransformationRuleDescriptionUnion = EventRateTransformationRuleDescription | RemoveDuplicatesTransformationRuleDescription;
+
+export type TopicDefinitionUnion = SimpleTopicDefinition | WildcardTopicDefinition;
+
+export type TransformationRuleDescriptionUnion = AddTimestampRuleDescription | AddValueTransformationRuleDescription | TimestampTranfsformationRuleDescription | UnitTransformRuleDescription | EventRateTransformationRuleDescription | RemoveDuplicatesTransformationRuleDescription | CreateNestedRuleDescription | DeleteRuleDescription | RenameRuleDescription | MoveRuleDescription | ChangeDatatypeTransformationRuleDescription | CorrectionValueTransformationRuleDescription;
+
+export type TransportProtocolUnion = JmsTransportProtocol | KafkaTransportProtocol | MqttTransportProtocol | NatsTransportProtocol | PulsarTransportProtocol;
+
+export type ValidationInfoLevel = "INFO" | "ERROR";
export type ValueSpecificationUnion = QuantitativeValue | Enumeration;
-export type ValueTransformationRuleDescriptionUnion =
- | AddTimestampRuleDescription
- | AddValueTransformationRuleDescription
- | TimestampTranfsformationRuleDescription
- | UnitTransformRuleDescription
- | CorrectionValueTransformationRuleDescription;
+export type ValueTransformationRuleDescriptionUnion = AddTimestampRuleDescription | AddValueTransformationRuleDescription | TimestampTranfsformationRuleDescription | UnitTransformRuleDescription | CorrectionValueTransformationRuleDescription;
function __getCopyArrayFn<T>(itemCopyFn: (item: T) => T): (array: T[]) => T[] {
return (array: T[]) => __copyArray(array, itemCopyFn);
@@ -4228,16 +3287,11 @@ function __copyArray<T>(array: T[], itemCopyFn: (item: T) => T): T[] {
return array && array.map(item => item && itemCopyFn(item));
}
-function __getCopyObjectFn<T>(
- itemCopyFn: (item: T) => T,
-): (object: { [index: string]: T }) => { [index: string]: T } {
+function __getCopyObjectFn<T>(itemCopyFn: (item: T) => T): (object: { [index: string]: T }) => { [index: string]: T } {
return (object: { [index: string]: T }) => __copyObject(object, itemCopyFn);
}
-function __copyObject<T>(
- object: { [index: string]: T },
- itemCopyFn: (item: T) => T,
-): { [index: string]: T } {
+function __copyObject<T>(object: { [index: string]: T }, itemCopyFn: (item: T) => T): { [index: string]: T } {
if (!object) {
return object;
}