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