File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ type Project implements Node {
6
6
basicAuthPassword : String !
7
7
createdAt : DateTime !
8
8
updatedAt : DateTime !
9
+ version : Int !
9
10
name : String !
10
11
description : String !
11
12
workspaceId : ID !
@@ -35,6 +36,11 @@ input DeleteProjectInput {
35
36
projectId : ID !
36
37
}
37
38
39
+ input ExecuteWorkflowRunInput {
40
+ projectId : ID !
41
+ workflows : [Workflow ! ]!
42
+ }
43
+
38
44
# Payload
39
45
40
46
type ProjectPayload {
@@ -45,6 +51,11 @@ type DeleteProjectPayload {
45
51
projectId : ID !
46
52
}
47
53
54
+ type WorkflowRunPayload {
55
+ projectId : ID !
56
+ started : Boolean !
57
+ }
58
+
48
59
# Connection
49
60
50
61
type ProjectConnection {
@@ -67,4 +78,5 @@ extend type Mutation {
67
78
createProject (input : CreateProjectInput ! ): ProjectPayload
68
79
updateProject (input : UpdateProjectInput ! ): ProjectPayload
69
80
deleteProject (input : DeleteProjectInput ! ): DeleteProjectPayload
81
+ executeWorkflowRun (input : ExecuteWorkflowRunInput ! ): WorkflowRunPayload
70
82
}
Original file line number Diff line number Diff line change
1
+ type Workflow implements Node {
2
+ id : ID !
3
+ name : String !
4
+ createdAt : DateTime !
5
+ updatedAt : DateTime !
6
+ nodes : [NodeType ]
7
+ edges : [Edge ]
8
+ isMain : Boolean
9
+ version : Int !
10
+ projectId : ID !
11
+ workspaceId : ID !
12
+ }
13
+
14
+ type NodeType {
15
+ id : ID !
16
+ data : Data !
17
+ }
18
+
19
+ type Data {
20
+ name : String
21
+ inputs : [Input ]!
22
+ outputs : [Output ]!
23
+ status : Status
24
+ content : String
25
+ transformerId : ID
26
+ params : [Param ]
27
+ }
28
+
29
+ type Param {
30
+ id : ID !
31
+ name : String !
32
+ value : ParamValue !
33
+ }
34
+
35
+ enum ParamValue {
36
+ STRING
37
+ NUMBER
38
+ BOOLEAN
39
+ OBJECT
40
+ ARRAY
41
+ }
42
+
43
+ type Edge {
44
+ id : ID !
45
+ source : [ID ! ]!
46
+ target : [ID ! ]!
47
+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ export type Workflow = {
6
6
name ?: string ;
7
7
nodes ?: Node [ ] ;
8
8
edges ?: Edge [ ] ;
9
+ createdAt ?: string ;
10
+ updatedAt ?: string ;
11
+ // projectId?: string;
12
+ // workspaceId?: string;
9
13
// status??
10
14
// params?: any;
11
15
} ;
You can’t perform that action at this time.
0 commit comments