summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/work_items/graphql/typedefs.graphql
blob: 36ffba8a540e9e3c668e507eccccfdaae28ea25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
enum LocalWidgetType {
  ASSIGNEES
  LABELS
}

interface LocalWorkItemWidget {
  type: LocalWidgetType!
}

type LocalWorkItemAssignees implements LocalWorkItemWidget {
  type: LocalWidgetType!
  nodes: [UserCore]
}

type LocalWorkItemLabels implements LocalWorkItemWidget {
  type: LocalWidgetType!
  allowScopedLabels: Boolean!
  nodes: [Label!]
}

extend type WorkItem {
  mockWidgets: [LocalWorkItemWidget]
}

input LocalUserInput {
  id: ID!
  name: String
  username: String
  webUrl: String
  avatarUrl: String
}

input LocalLabelInput {
  id: ID!
  title: String!
  color: String
  description: String
}

input LocalUpdateWorkItemInput {
  id: WorkItemID!
  assignees: [LocalUserInput!]
  labels: [LocalLabelInput]
}

type LocalWorkItemPayload {
  workItem: WorkItem!
  errors: [String!]
}

extend type Mutation {
  localUpdateWorkItem(input: LocalUpdateWorkItemInput!): LocalWorkItemPayload
}