Skip to content

Commit cc13da3

Browse files
feat: update workflows schema to graph-proxy@v0.1.17
1 parent 520de15 commit cc13da3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

schema/workflows.graphql

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ type Mutation {
5353
submitWorkflowTemplate(name: String!, visit: VisitInput!, parameters: JSON!): Workflow!
5454
}
5555

56+
"""
57+
Represents Relay Node types
58+
"""
59+
union NodeValue = Workflow
60+
5661
"""
5762
Information about pagination in a connection
5863
"""
@@ -79,6 +84,7 @@ type PageInfo @shareable {
7984
The root query of the service
8085
"""
8186
type Query {
87+
node(id: ID!): NodeValue
8288
"""
8389
Get a single [`Workflow`] by proposal, visit, and name
8490
"""
@@ -199,6 +205,24 @@ enum TaskStatus {
199205

200206
scalar Template
201207

208+
"""
209+
Information about where the template is stored
210+
"""
211+
type TemplateSource {
212+
"""
213+
The URL of the GitHub repository
214+
"""
215+
repositoryUrl: String!
216+
"""
217+
The path to the template within the repository
218+
"""
219+
path: String!
220+
"""
221+
The current tracked branch of the repository
222+
"""
223+
targetRevision: String!
224+
}
225+
202226
"""
203227
URL is a String implementing the [URL Standard](http://url.spec.whatwg.org/)
204228
"""
@@ -241,6 +265,10 @@ input VisitInput {
241265
}
242266

243267
type Workflow {
268+
"""
269+
The unique ID derived from the visit and name
270+
"""
271+
id: ID!
244272
"""
245273
The name given to the workflow, unique within a given visit
246274
"""
@@ -458,6 +486,10 @@ type WorkflowTemplate {
458486
A JSON Forms UI Schema describing how to render the arguments of the Workflow Template
459487
"""
460488
uiSchema: JSON
489+
"""
490+
Information about where the template is obtained from
491+
"""
492+
templateSource: TemplateSource
461493
}
462494

463495
type WorkflowTemplateConnection @shareable {

0 commit comments

Comments
 (0)