Add model/node-data-type 85/38985/1
authorYuanHu <yuan.hu1@zte.com.cn>
Tue, 27 Mar 2018 09:16:49 +0000 (17:16 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Tue, 27 Mar 2018 09:16:49 +0000 (17:16 +0800)
Add model/node-data-type

Issue-ID: SDC-1130,SDC-1131

Change-Id: I90b1bf3c63aa02bf8cbbf1a57e0278301f6ecf19
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts [new file with mode: 0644]
sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts [new file with mode: 0644]
sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts [new file with mode: 0644]

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 (file)
index 0000000..df624eb
--- /dev/null
@@ -0,0 +1,16 @@
+/**\r
+ * Copyright (c) 2018 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+\r
+export class DisplayName {\r
+    public zh_CN: string;\r
+    public en_US: string;\r
+}
\ 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 (file)
index 0000000..1bb4729
--- /dev/null
@@ -0,0 +1,17 @@
+/**\r
+ * Copyright (c) 2018 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+\r
+export class Icon {\r
+    public name: string;\r
+    public width: number;\r
+    public height: number;\r
+}
\ 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 (file)
index 0000000..64dc0e9
--- /dev/null
@@ -0,0 +1,24 @@
+/**\r
+ * Copyright (c) 2018 ZTE Corporation.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * and the Apache License 2.0 which both accompany this distribution,\r
+ * and are available at http://www.eclipse.org/legal/epl-v10.html\r
+ * and http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Contributors:\r
+ *     ZTE - initial API and implementation and/or initial documentation\r
+ */\r
+import { DisplayName } from "./display-name";\r
+import { Icon } from "./icon";\r
+import { SwaggerSchema } from "../workflow/swagger/swagger-schema";\r
+\r
+export interface NodeDataType {\r
+    id: string;\r
+    displayName?: DisplayName;\r
+    description?: DisplayName;\r
+    type: string;\r
+    icon: Icon;\r
+    content: any;\r
+    definitions: any;\r
+}
\ No newline at end of file