aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/src')
-rw-r--r--sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts16
-rw-r--r--sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts17
-rw-r--r--sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts24
3 files changed, 57 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts b/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
new file mode 100644
index 00000000..df624ebc
--- /dev/null
+++ b/sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts
@@ -0,0 +1,16 @@
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+
+export class DisplayName {
+ public zh_CN: string;
+ public en_US: string;
+} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts b/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
new file mode 100644
index 00000000..1bb47298
--- /dev/null
+++ b/sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts
@@ -0,0 +1,17 @@
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+
+export class Icon {
+ public name: string;
+ public width: number;
+ public height: number;
+} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts b/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
new file mode 100644
index 00000000..64dc0e96
--- /dev/null
+++ b/sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts
@@ -0,0 +1,24 @@
+/**
+ * Copyright (c) 2018 ZTE Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and the Apache License 2.0 which both accompany this distribution,
+ * and are available at http://www.eclipse.org/legal/epl-v10.html
+ * and http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Contributors:
+ * ZTE - initial API and implementation and/or initial documentation
+ */
+import { DisplayName } from "./display-name";
+import { Icon } from "./icon";
+import { SwaggerSchema } from "../workflow/swagger/swagger-schema";
+
+export interface NodeDataType {
+ id: string;
+ displayName?: DisplayName;
+ description?: DisplayName;
+ type: string;
+ icon: Icon;
+ content: any;
+ definitions: any;
+} \ No newline at end of file