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