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 first message of the new 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 EditCommentInput {
 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 new message to be set."""
 53    message: String!
 54    """The collection of file's hash required for the first message."""
 55    files: [Hash!]
 56}
 57
 58type EditCommentPayload {
 59    """A unique identifier for the client performing the mutation."""
 60    clientMutationId: String
 61    """The affected bug."""
 62    bug: Bug!
 63    """The resulting operation."""
 64    operation: EditCommentOperation!
 65}
 66
 67input ChangeLabelInput {
 68    """A unique identifier for the client performing the mutation."""
 69    clientMutationId: String
 70    """"The name of the repository. If not set, the default repository is used."""
 71    repoRef: String
 72    """The bug ID's prefix."""
 73    prefix: String!
 74    """The list of label to add."""
 75    added: [String!]
 76    """The list of label to remove."""
 77    Removed: [String!]
 78}
 79
 80enum LabelChangeStatus {
 81    ADDED
 82    REMOVED
 83    DUPLICATE_IN_OP
 84    ALREADY_EXIST
 85    DOESNT_EXIST
 86}
 87
 88type LabelChangeResult {
 89    """The source label."""
 90    label: Label!
 91    """The effect this label had."""
 92    status: LabelChangeStatus!
 93}
 94
 95type ChangeLabelPayload {
 96    """A unique identifier for the client performing the mutation."""
 97    clientMutationId: String
 98    """The affected bug."""
 99    bug: Bug!
100    """The resulting operation."""
101    operation: LabelChangeOperation!
102    """The effect each source label had."""
103    results: [LabelChangeResult]!
104}
105
106input OpenBugInput {
107    """A unique identifier for the client performing the mutation."""
108    clientMutationId: String
109    """"The name of the repository. If not set, the default repository is used."""
110    repoRef: String
111    """The bug ID's prefix."""
112    prefix: String!
113}
114
115type OpenBugPayload {
116    """A unique identifier for the client performing the mutation."""
117    clientMutationId: String
118    """The affected bug."""
119    bug: Bug!
120    """The resulting operation."""
121    operation: SetStatusOperation!
122}
123
124input CloseBugInput {
125    """A unique identifier for the client performing the mutation."""
126    clientMutationId: String
127    """"The name of the repository. If not set, the default repository is used."""
128    repoRef: String
129    """The bug ID's prefix."""
130    prefix: String!
131}
132
133type CloseBugPayload {
134    """A unique identifier for the client performing the mutation."""
135    clientMutationId: String
136    """The affected bug."""
137    bug: Bug!
138    """The resulting operation."""
139    operation: SetStatusOperation!
140}
141
142input SetTitleInput {
143    """A unique identifier for the client performing the mutation."""
144    clientMutationId: String
145    """"The name of the repository. If not set, the default repository is used."""
146    repoRef: String
147    """The bug ID's prefix."""
148    prefix: String!
149    """The new title."""
150    title: String!
151}
152
153type SetTitlePayload {
154    """A unique identifier for the client performing the mutation."""
155    clientMutationId: String
156    """The affected bug."""
157    bug: Bug!
158    """The resulting operation"""
159    operation: SetTitleOperation!
160}