summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-03-27 17:16:49 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-03-27 17:16:49 +0800
commit99fcc841c86367722097f54497dbc7c856c19251 (patch)
tree2b716812caad7ffccc4c7968621154bf6df003ac
parente0af363ada327ebeecf0f43031fa6b3496d2302f (diff)
Add model/node-data-type
Add model/node-data-type Issue-ID: SDC-1130,SDC-1131 Change-Id: I90b1bf3c63aa02bf8cbbf1a57e0278301f6ecf19 Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
-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