1// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3package models
4
5import (
6 "github.com/git-bug/git-bug/entities/bug"
7 "github.com/git-bug/git-bug/entities/common"
8 "github.com/git-bug/git-bug/entity/dag"
9 "github.com/git-bug/git-bug/repository"
10)
11
12// An object that has an author.
13type Authored interface {
14 IsAuthored()
15}
16
17type AddCommentAndCloseBugInput struct {
18 // A unique identifier for the client performing the mutation.
19 ClientMutationID *string `json:"clientMutationId,omitempty"`
20 // The name of the repository. If not set, the default repository is used.
21 RepoRef *string `json:"repoRef,omitempty"`
22 // The bug ID's prefix.
23 Prefix string `json:"prefix"`
24 // The message to be added to the bug.
25 Message string `json:"message"`
26 // The collection of file's hash required for the first message.
27 Files []repository.Hash `json:"files,omitempty"`
28}
29
30type AddCommentAndCloseBugPayload struct {
31 // A unique identifier for the client performing the mutation.
32 ClientMutationID *string `json:"clientMutationId,omitempty"`
33 // The affected bug.
34 Bug BugWrapper `json:"bug"`
35 // The resulting AddComment operation.
36 CommentOperation *bug.AddCommentOperation `json:"commentOperation"`
37 // The resulting SetStatusOperation.
38 StatusOperation *bug.SetStatusOperation `json:"statusOperation"`
39}
40
41type AddCommentAndReopenBugInput struct {
42 // A unique identifier for the client performing the mutation.
43 ClientMutationID *string `json:"clientMutationId,omitempty"`
44 // The name of the repository. If not set, the default repository is used.
45 RepoRef *string `json:"repoRef,omitempty"`
46 // The bug ID's prefix.
47 Prefix string `json:"prefix"`
48 // The message to be added to the bug.
49 Message string `json:"message"`
50 // The collection of file's hash required for the first message.
51 Files []repository.Hash `json:"files,omitempty"`
52}
53
54type AddCommentAndReopenBugPayload struct {
55 // A unique identifier for the client performing the mutation.
56 ClientMutationID *string `json:"clientMutationId,omitempty"`
57 // The affected bug.
58 Bug BugWrapper `json:"bug"`
59 // The resulting AddComment operation.
60 CommentOperation *bug.AddCommentOperation `json:"commentOperation"`
61 // The resulting SetStatusOperation.
62 StatusOperation *bug.SetStatusOperation `json:"statusOperation"`
63}
64
65type AddCommentInput struct {
66 // A unique identifier for the client performing the mutation.
67 ClientMutationID *string `json:"clientMutationId,omitempty"`
68 // The name of the repository. If not set, the default repository is used.
69 RepoRef *string `json:"repoRef,omitempty"`
70 // The bug ID's prefix.
71 Prefix string `json:"prefix"`
72 // The message to be added to the bug.
73 Message string `json:"message"`
74 // The collection of file's hash required for the first message.
75 Files []repository.Hash `json:"files,omitempty"`
76}
77
78type AddCommentPayload struct {
79 // A unique identifier for the client performing the mutation.
80 ClientMutationID *string `json:"clientMutationId,omitempty"`
81 // The affected bug.
82 Bug BugWrapper `json:"bug"`
83 // The resulting operation.
84 Operation *bug.AddCommentOperation `json:"operation"`
85}
86
87// The connection type for Bug.
88type BugConnection struct {
89 // A list of edges.
90 Edges []*BugEdge `json:"edges"`
91 Nodes []BugWrapper `json:"nodes"`
92 // Information to aid in pagination.
93 PageInfo *PageInfo `json:"pageInfo"`
94 // Identifies the total count of items in the connection.
95 TotalCount int `json:"totalCount"`
96}
97
98// An edge in a connection.
99type BugEdge struct {
100 // A cursor for use in pagination.
101 Cursor string `json:"cursor"`
102 // The item at the end of the edge.
103 Node BugWrapper `json:"node"`
104}
105
106type ChangeLabelInput struct {
107 // A unique identifier for the client performing the mutation.
108 ClientMutationID *string `json:"clientMutationId,omitempty"`
109 // The name of the repository. If not set, the default repository is used.
110 RepoRef *string `json:"repoRef,omitempty"`
111 // The bug ID's prefix.
112 Prefix string `json:"prefix"`
113 // The list of label to add.
114 Added []string `json:"added,omitempty"`
115 // The list of label to remove.
116 Removed []string `json:"Removed,omitempty"`
117}
118
119type ChangeLabelPayload struct {
120 // A unique identifier for the client performing the mutation.
121 ClientMutationID *string `json:"clientMutationId,omitempty"`
122 // The affected bug.
123 Bug BugWrapper `json:"bug"`
124 // The resulting operation.
125 Operation *bug.LabelChangeOperation `json:"operation"`
126 // The effect each source label had.
127 Results []*bug.LabelChangeResult `json:"results"`
128}
129
130type CloseBugInput struct {
131 // A unique identifier for the client performing the mutation.
132 ClientMutationID *string `json:"clientMutationId,omitempty"`
133 // The name of the repository. If not set, the default repository is used.
134 RepoRef *string `json:"repoRef,omitempty"`
135 // The bug ID's prefix.
136 Prefix string `json:"prefix"`
137}
138
139type CloseBugPayload struct {
140 // A unique identifier for the client performing the mutation.
141 ClientMutationID *string `json:"clientMutationId,omitempty"`
142 // The affected bug.
143 Bug BugWrapper `json:"bug"`
144 // The resulting operation.
145 Operation *bug.SetStatusOperation `json:"operation"`
146}
147
148type CommentConnection struct {
149 Edges []*CommentEdge `json:"edges"`
150 Nodes []*bug.Comment `json:"nodes"`
151 PageInfo *PageInfo `json:"pageInfo"`
152 TotalCount int `json:"totalCount"`
153}
154
155type CommentEdge struct {
156 Cursor string `json:"cursor"`
157 Node *bug.Comment `json:"node"`
158}
159
160type EditCommentInput struct {
161 // A unique identifier for the client performing the mutation.
162 ClientMutationID *string `json:"clientMutationId,omitempty"`
163 // The name of the repository. If not set, the default repository is used.
164 RepoRef *string `json:"repoRef,omitempty"`
165 // A prefix of the CombinedId of the comment to be changed.
166 TargetPrefix string `json:"targetPrefix"`
167 // The new message to be set.
168 Message string `json:"message"`
169 // The collection of file's hash required for the first message.
170 Files []repository.Hash `json:"files,omitempty"`
171}
172
173type EditCommentPayload struct {
174 // A unique identifier for the client performing the mutation.
175 ClientMutationID *string `json:"clientMutationId,omitempty"`
176 // The affected bug.
177 Bug BugWrapper `json:"bug"`
178 // The resulting operation.
179 Operation *bug.EditCommentOperation `json:"operation"`
180}
181
182type IdentityConnection struct {
183 Edges []*IdentityEdge `json:"edges"`
184 Nodes []IdentityWrapper `json:"nodes"`
185 PageInfo *PageInfo `json:"pageInfo"`
186 TotalCount int `json:"totalCount"`
187}
188
189type IdentityEdge struct {
190 Cursor string `json:"cursor"`
191 Node IdentityWrapper `json:"node"`
192}
193
194type LabelConnection struct {
195 Edges []*LabelEdge `json:"edges"`
196 Nodes []common.Label `json:"nodes"`
197 PageInfo *PageInfo `json:"pageInfo"`
198 TotalCount int `json:"totalCount"`
199}
200
201type LabelEdge struct {
202 Cursor string `json:"cursor"`
203 Node common.Label `json:"node"`
204}
205
206type Mutation struct {
207}
208
209type NewBugInput struct {
210 // A unique identifier for the client performing the mutation.
211 ClientMutationID *string `json:"clientMutationId,omitempty"`
212 // The name of the repository. If not set, the default repository is used.
213 RepoRef *string `json:"repoRef,omitempty"`
214 // The title of the new bug.
215 Title string `json:"title"`
216 // The first message of the new bug.
217 Message string `json:"message"`
218 // The collection of file's hash required for the first message.
219 Files []repository.Hash `json:"files,omitempty"`
220}
221
222type NewBugPayload struct {
223 // A unique identifier for the client performing the mutation.
224 ClientMutationID *string `json:"clientMutationId,omitempty"`
225 // The created bug.
226 Bug BugWrapper `json:"bug"`
227 // The resulting operation.
228 Operation *bug.CreateOperation `json:"operation"`
229}
230
231type OpenBugInput struct {
232 // A unique identifier for the client performing the mutation.
233 ClientMutationID *string `json:"clientMutationId,omitempty"`
234 // The name of the repository. If not set, the default repository is used.
235 RepoRef *string `json:"repoRef,omitempty"`
236 // The bug ID's prefix.
237 Prefix string `json:"prefix"`
238}
239
240type OpenBugPayload struct {
241 // A unique identifier for the client performing the mutation.
242 ClientMutationID *string `json:"clientMutationId,omitempty"`
243 // The affected bug.
244 Bug BugWrapper `json:"bug"`
245 // The resulting operation.
246 Operation *bug.SetStatusOperation `json:"operation"`
247}
248
249// The connection type for an Operation
250type OperationConnection struct {
251 Edges []*OperationEdge `json:"edges"`
252 Nodes []dag.Operation `json:"nodes"`
253 PageInfo *PageInfo `json:"pageInfo"`
254 TotalCount int `json:"totalCount"`
255}
256
257// Represent an Operation
258type OperationEdge struct {
259 Cursor string `json:"cursor"`
260 Node dag.Operation `json:"node"`
261}
262
263// Information about pagination in a connection.
264type PageInfo struct {
265 // When paginating forwards, are there more items?
266 HasNextPage bool `json:"hasNextPage"`
267 // When paginating backwards, are there more items?
268 HasPreviousPage bool `json:"hasPreviousPage"`
269 // When paginating backwards, the cursor to continue.
270 StartCursor string `json:"startCursor"`
271 // When paginating forwards, the cursor to continue.
272 EndCursor string `json:"endCursor"`
273}
274
275type Query struct {
276}
277
278type SetTitleInput struct {
279 // A unique identifier for the client performing the mutation.
280 ClientMutationID *string `json:"clientMutationId,omitempty"`
281 // The name of the repository. If not set, the default repository is used.
282 RepoRef *string `json:"repoRef,omitempty"`
283 // The bug ID's prefix.
284 Prefix string `json:"prefix"`
285 // The new title.
286 Title string `json:"title"`
287}
288
289type SetTitlePayload struct {
290 // A unique identifier for the client performing the mutation.
291 ClientMutationID *string `json:"clientMutationId,omitempty"`
292 // The affected bug.
293 Bug BugWrapper `json:"bug"`
294 // The resulting operation
295 Operation *bug.SetTitleOperation `json:"operation"`
296}
297
298// The connection type for TimelineItem
299type TimelineItemConnection struct {
300 Edges []*TimelineItemEdge `json:"edges"`
301 Nodes []bug.TimelineItem `json:"nodes"`
302 PageInfo *PageInfo `json:"pageInfo"`
303 TotalCount int `json:"totalCount"`
304}
305
306// Represent a TimelineItem
307type TimelineItemEdge struct {
308 Cursor string `json:"cursor"`
309 Node bug.TimelineItem `json:"node"`
310}