diff options
Diffstat (limited to 'deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow')
29 files changed, 0 insertions, 595 deletions
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts deleted file mode 100644 index e3fbcad3..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/end-event.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017 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 {WorkflowNode} from './workflow-node'; - -export interface EndEvent extends WorkflowNode { -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts deleted file mode 100644 index 96ba0e7d..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/error-event.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2017 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 { ValueSource } from '../value-source.enum'; -import { Parameter } from './parameter'; -import { WorkflowNode } from './workflow-node'; - -export interface ErrorEvent extends WorkflowNode { - parameter?: Parameter; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts deleted file mode 100644 index 6db7bcfd..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/exclusive-gateway.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017 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 {WorkflowNode} from './workflow-node'; - -export interface ExclusiveGateway extends WorkflowNode { -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts deleted file mode 100644 index 653e627f..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/intermediate-catch-event.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2017 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 { TimerEventDefinition, TimerEventDefinitionType } from './timer-event-definition'; -import { WorkflowNode } from './workflow-node'; - -export interface IntermediateCatchEvent extends WorkflowNode { - timerEventDefinition?: TimerEventDefinition; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts deleted file mode 100644 index c02816e8..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/node-type.enum.ts +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 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 enum NodeType { - startEvent, - endEvent, - errorStartEvent, - errorEndEvent, - intermediateCatchEvent, - toscaNodeManagementTask, - serviceTask, - scriptTask, - restTask, - exclusiveGateway, - parallelGateway, - subProcess, - callActivity -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts deleted file mode 100644 index 7a904005..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/parameter.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Copyright (c) 2017 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 { ValueSource } from '../value-source.enum'; -import { ValueType } from '../value-type.enum'; - -export class Parameter { - constructor(public name: string, public value: any, public valueSource: string, - public type = ValueType[ValueType.string], public required = false, - public show = true, public errorMsg = '') { - } -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts deleted file mode 100644 index 8ec4ed56..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/position.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017 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 Position { - constructor(public left: number, public top: number, public width = 56, public height = 56) { } -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts deleted file mode 100644 index a7e4eeea..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-parameter.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Copyright (c) 2017 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 { Parameter } from './parameter'; -import { WorkflowNode } from './workflow-node'; - -export class RestParameter extends Parameter { - constructor(name: string, value: string, valueSource: string, type: string, - public position: string, public schema: any, public required: boolean) { - super(name, value, valueSource, type, required); - } -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts deleted file mode 100644 index 1235a479..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/rest-task.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright (c) 2017 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 { SwaggerResponseClass } from "../swagger"; -import { RestParameter } from './rest-parameter'; -import { WorkflowNode } from './workflow-node'; -import { SwaggerBaseParameter } from "./swagger/swagger-base-parameter"; - -export interface RestTask extends WorkflowNode { - restConfigId?: string; - baseUrl?: string; - serviceName?: string; - serviceVersion?: string; - path?: string; - method?: string; - operationId?: string; - produces?: string[]; // do not support non json MIME types, maybe use this later. - consumes?: string[]; - parameters?: any[]; - responses?: SwaggerResponseClass[]; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts deleted file mode 100644 index 75d86f5a..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/script-task.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowNode } from './workflow-node'; - -export interface ScriptTask extends WorkflowNode { - scriptFormat: string; - script: string; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts deleted file mode 100644 index 53c09a31..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sequence-flow.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowElement } from './workflow-element'; -import { Position } from './position'; - -export interface SequenceFlow extends WorkflowElement { - sourceRef: string; - // sourcePosition: Position; - targetRef: string; - // targetPosition: Position; - name?: string; - condition?: string; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts deleted file mode 100644 index c0ce6412..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/service-task.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowNode } from './workflow-node'; -import { Parameter } from './parameter'; - -export interface ServiceTask extends WorkflowNode { - className: string; - inputs: Parameter[]; - outputs: Parameter[]; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts deleted file mode 100644 index a8f6444c..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/start-event.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2017 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 { Parameter } from './parameter'; -import { WorkflowNode } from './workflow-node'; - -export interface StartEvent extends WorkflowNode { - parameters?: Parameter[]; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts deleted file mode 100644 index e000ed25..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/sub-process.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowNode } from './workflow-node'; -export interface SubProcess extends WorkflowNode { - children?: WorkflowNode[]; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts deleted file mode 100644 index 82103458..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-base-parameter.ts +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * 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 interface SwaggerBaseParameter { - name: string; - in: string; //SwaggerIn - description?: string; - required?: boolean;//default value is false - show?: boolean;//default value is true; - value?: string; - valueSource?: string; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts deleted file mode 100644 index f676b83d..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-body-parameter.ts +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * 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 { SwaggerBaseParameter } from "./swagger-base-parameter"; -import { SwaggerSchema } from "./swagger-schema"; - -export interface SwaggerBodyParameter extends SwaggerBaseParameter { - $ref: string; - schema: SwaggerSchema; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts deleted file mode 100644 index f8df2536..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-collection-format.enum.ts +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * 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 enum SwaggerCollectionFormat { - csv,//comma separated values foo,bar. - ssv,//space separated values foo bar. - tsv,//tab separated values foo\tbar. - pipes//pipe separated values foo|bar. -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts deleted file mode 100644 index d8eaaa76..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-format.enum.ts +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * 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 enum SwaggerDataFormat { - int32, - int64, - float, - double, - byte, - binary, - date, - 'date-time', - password -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts deleted file mode 100644 index 54634901..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-data-type.enum.ts +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * 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 enum SwaggerDataType { - integer, number, string, boolean -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts deleted file mode 100644 index dc695da6..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-in.enum.ts +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * 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 enum SwaggerIn { - query, header, path, formData, body -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts deleted file mode 100644 index 0661d034..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-items.ts +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * 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 interface SwaggerItems { - $ref?: string; - type?: string; - format?: string; - items?: SwaggerItems; - collectionFormat?: string;//Default value is csv - default?: any; - maximum?: number; - exclusiveMaximum?: boolean; - minimum?: number; - exclusiveMinimum?: boolean; - maxLength?: number;//integer - minLength?: number;//integer - pattern?: string; - maxItems?: number;//integer - minItems?: number;//integer - uniqueItems?: boolean; - enum?: any[]; - multipleOf?: number; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts deleted file mode 100644 index 3c28803b..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-normal-parameter.ts +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * 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 { SwaggerBaseParameter } from "./swagger-base-parameter"; -import { SwaggerItems } from "./swagger-items"; - -export interface SwaggerNormalParameter extends SwaggerBaseParameter { - type: string;//"string", "number", "integer", "boolean", "array" or "file" - format?: string;//https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#dataTypeFormat - allowEmptyValue?: boolean; - items?: SwaggerItems; - collectionFormat?: string; - default?: any; - maximum?: number; - exclusiveMaximum?: boolean; - minimum?: number; - exclusiveMinimum?: boolean; - maxLength?: number;//integer; - minLength?: number;//integer; - pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3. - maxItems?: number;//integer; - minItems?: number;//integer; - uniqueItems?: boolean; - enum?: any[]; - multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1. -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts deleted file mode 100644 index a87d4bf3..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-parameter.ts +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * 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 interface SwaggerParameter { -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts deleted file mode 100644 index 5896905d..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-response.ts +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * 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 { SwaggerSchema } from "./swagger-schema"; - -export interface SwaggerResponse { - description: string; - schema?: SwaggerSchema; - headers?: any;//todo: add define object - examples?: any;//todo: add define - $ref?: string; - name?: string; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts deleted file mode 100644 index c152830c..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/swagger/swagger-schema.ts +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * 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 interface SwaggerSchema { - $ref?: string; - format?: string; - title?: string; - description?: string; - default?: any; - multipleOf?: number;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.1.1. - maximum?: number; - exclusiveMaximum?: boolean; - minimum?: number; - exclusiveMinimum?: boolean; - maxLength?: number;//integer; - minLength?: number;//integer; - pattern?: string;//https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3. - maxItems?: number;//integer; - minItems?: number;//integer; - uniqueItems?: boolean; - maxProperties?: number;//integer; - minPropertiesnumber?: number;//integer; - required?: boolean | string[]; - enum?: any[]; - type?: string; - items?: SwaggerSchema | SwaggerSchema[]; - allOf?: any;//every property is a SwaggerSchema; - properties?: any;//every property is a SwaggerSchema; - additionalProperties?: any;//every property is a SwaggerSchema;//boolean | SwaggerSchema; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts deleted file mode 100644 index 101ef46c..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/timer-event-definition.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowNode } from './workflow-node'; - -export enum TimerEventDefinitionType { - timeDate, - timeDuration, - timeCycle, -} - -export interface TimerEventDefinition extends WorkflowNode { - type: string; // 'timeDate', 'timeCycle', 'timeDuration' - timeDate?: string; // 2007-04-05T12:30-02:00 - timeDuration?: string; // ISO 8601 P1Y3M5DT6H7M30S - timeCycle?: string; // ISO 8601 R5/P1Y2M10DT2H30M -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts deleted file mode 100644 index 7767b640..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/tosca-node-task.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2017 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 { NodeTemplate } from '../topology/node-template'; -import { Parameter } from './parameter'; -import { WorkflowNode } from './workflow-node'; - -export interface ToscaNodeTask extends WorkflowNode { - input?: Parameter[]; - output?: Parameter[]; - nodeInterface?: string; - operation?: string; - template?: NodeTemplate; -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts deleted file mode 100644 index e41fc93a..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-element.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2017 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 interface WorkflowElement { -} diff --git a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts b/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts deleted file mode 100644 index f278d188..00000000 --- a/deprecated-workflow-designer/sdc-workflow-designer-ui/src/app/model/workflow/workflow-node.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2017 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 { WorkflowElement } from './workflow-element'; -import { Position } from './position'; -import { SequenceFlow } from './sequence-flow'; - -export interface WorkflowNode extends WorkflowElement { - connection: SequenceFlow[]; - id: string; - name: string; - icon?: string; - parentId: string; - position: Position; - type: string; - typeId?: string; -} |