mutations.graphql

  1input NewBugInput {
  2    """A unique identifier for the client performing the mutation."""
  3    clientMutationId: String
  4    """The name of the repository. If not set, the default repository is used."""
  5    repoRef: String
  6    """The title of the new bug."""
  7    title: String!
  8    """The first message of the new bug."""
  9    message: String!
 10    """The collection of file's hash required for the first message."""
 11    files: [Hash!]
 12}
 13
 14type NewBugPayload {
 15    """A unique identifier for the client performing the mutation."""
 16    clientMutationId: String
 17    """The created bug."""
 18    bug: Bug!
 19    """The resulting operation."""
 20    operation: CreateOperation!
 21}
 22
 23input AddCommentInput {
 24    """A unique identifier for the client performing the mutation."""
 25    clientMutationId: String
 26    """The name of the repository. If not set, the default repository is used."""
 27    repoRef: String
 28    """The bug ID's prefix."""
 29    prefix: String!
 30    """The message to be added to the bug."""
 31    message: String!
 32    """The collection of file's hash required for the first message."""
 33    files: [Hash!]
 34}
 35
 36type AddCommentPayload {
 37    """A unique identifier for the client performing the mutation."""
 38    clientMutationId: String
 39    """The affected bug."""
 40    bug: Bug!
 41    """The resulting operation."""
 42    operation: AddCommentOperation!
 43}
 44
 45input AddCommentAndCloseBugInput {
 46    """A unique identifier for the client performing the mutation."""
 47    clientMutationId: String
 48    """The name of the repository. If not set, the default repository is used."""
 49    repoRef: String
 50    """The bug ID's prefix."""
 51    prefix: String!
 52    """The message to be added to the bug."""
 53    message: String!
 54    """The collection of file's hash required for the first message."""
 55    files: [Hash!]
 56}
 57
 58type AddCommentAndCloseBugPayload {
 59    """A unique identifier for the client performing the mutation."""
 60    clientMutationId: String
 61    """The affected bug."""
 62    bug: Bug!
 63    """The resulting AddComment operation."""
 64    commentOperation: AddCommentOperation!
 65    """The resulting SetStatusOperation."""
 66    statusOperation: SetStatusOperation!
 67}
 68
 69input EditCommentInput {
 70    """A unique identifier for the client performing the mutation."""
 71    clientMutationId: String
 72    """The name of the repository. If not set, the default repository is used."""
 73    repoRef: String
 74    """The bug ID's prefix."""
 75    prefix: String!
 76    """The ID of the comment to be changed."""
 77    target: String!
 78    """The new message to be set."""
 79    message: String!
 80    """The collection of file's hash required for the first message."""
 81    files: [Hash!]
 82}
 83
 84type EditCommentPayload {
 85    """A unique identifier for the client performing the mutation."""
 86    clientMutationId: String
 87    """The affected bug."""
 88    bug: Bug!
 89    """The resulting operation."""
 90    operation: EditCommentOperation!
 91}
 92
 93input ChangeLabelInput {
 94    """A unique identifier for the client performing the mutation."""
 95    clientMutationId: String
 96    """The name of the repository. If not set, the default repository is used."""
 97    repoRef: String
 98    """The bug ID's prefix."""
 99    prefix: String!
100    """The list of label to add."""
101    added: [String!]
102    """The list of label to remove."""
103    Removed: [String!]
104}
105
106enum LabelChangeStatus {
107    ADDED
108    REMOVED
109    DUPLICATE_IN_OP
110    ALREADY_EXIST
111    DOESNT_EXIST
112}
113
114type LabelChangeResult {
115    """The source label."""
116    label: Label!
117    """The effect this label had."""
118    status: LabelChangeStatus!
119}
120
121type ChangeLabelPayload {
122    """A unique identifier for the client performing the mutation."""
123    clientMutationId: String
124    """The affected bug."""
125    bug: Bug!
126    """The resulting operation."""
127    operation: LabelChangeOperation!
128    """The effect each source label had."""
129    results: [LabelChangeResult]!
130}
131
132input OpenBugInput {
133    """A unique identifier for the client performing the mutation."""
134    clientMutationId: String
135    """The name of the repository. If not set, the default repository is used."""
136    repoRef: String
137    """The bug ID's prefix."""
138    prefix: String!
139}
140
141type OpenBugPayload {
142    """A unique identifier for the client performing the mutation."""
143    clientMutationId: String
144    """The affected bug."""
145    bug: Bug!
146    """The resulting operation."""
147    operation: SetStatusOperation!
148}
149
150input CloseBugInput {
151    """A unique identifier for the client performing the mutation."""
152    clientMutationId: String
153    """The name of the repository. If not set, the default repository is used."""
154    repoRef: String
155    """The bug ID's prefix."""
156    prefix: String!
157}
158
159type CloseBugPayload {
160    """A unique identifier for the client performing the mutation."""
161    clientMutationId: String
162    """The affected bug."""
163    bug: Bug!
164    """The resulting operation."""
165    operation: SetStatusOperation!
166}
167
168input SetTitleInput {
169    """A unique identifier for the client performing the mutation."""
170    clientMutationId: String
171    """The name of the repository. If not set, the default repository is used."""
172    repoRef: String
173    """The bug ID's prefix."""
174    prefix: String!
175    """The new title."""
176    title: String!
177}
178
179type SetTitlePayload {
180    """A unique identifier for the client performing the mutation."""
181    clientMutationId: String
182    """The affected bug."""
183    bug: Bug!
184    """The resulting operation"""
185    operation: SetTitleOperation!
186}