From 99fcc841c86367722097f54497dbc7c856c19251 Mon Sep 17 00:00:00 2001 From: YuanHu Date: Tue, 27 Mar 2018 17:16:49 +0800 Subject: Add model/node-data-type Add model/node-data-type Issue-ID: SDC-1130,SDC-1131 Change-Id: I90b1bf3c63aa02bf8cbbf1a57e0278301f6ecf19 Signed-off-by: YuanHu --- .../src/app/model/node-data-type/display-name.ts | 16 +++++++++++++++ .../src/app/model/node-data-type/icon.ts | 17 +++++++++++++++ .../src/app/model/node-data-type/node-data-type.ts | 24 ++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 sdc-workflow-designer-ui/src/app/model/node-data-type/display-name.ts create mode 100644 sdc-workflow-designer-ui/src/app/model/node-data-type/icon.ts create mode 100644 sdc-workflow-designer-ui/src/app/model/node-data-type/node-data-type.ts 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 -- cgit 1.2.3-korg