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 BugAddCommentAndCloseInput 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 BugAddCommentAndClosePayload 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 BugAddCommentAndReopenInput 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 BugAddCommentAndReopenPayload 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 BugAddCommentInput 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 BugAddCommentPayload 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
 87type BugChangeLabelInput struct {
 88	// A unique identifier for the client performing the mutation.
 89	ClientMutationID *string `json:"clientMutationId,omitempty"`
 90	// The name of the repository. If not set, the default repository is used.
 91	RepoRef *string `json:"repoRef,omitempty"`
 92	// The bug ID's prefix.
 93	Prefix string `json:"prefix"`
 94	// The list of label to add.
 95	Added []string `json:"added,omitempty"`
 96	// The list of label to remove.
 97	Removed []string `json:"Removed,omitempty"`
 98}
 99
100type BugChangeLabelPayload struct {
101	// A unique identifier for the client performing the mutation.
102	ClientMutationID *string `json:"clientMutationId,omitempty"`
103	// The affected bug.
104	Bug BugWrapper `json:"bug"`
105	// The resulting operation.
106	Operation *bug.LabelChangeOperation `json:"operation"`
107	// The effect each source label had.
108	Results []*bug.LabelChangeResult `json:"results"`
109}
110
111type BugCommentConnection struct {
112	Edges      []*BugCommentEdge `json:"edges"`
113	Nodes      []*bug.Comment    `json:"nodes"`
114	PageInfo   *PageInfo         `json:"pageInfo"`
115	TotalCount int               `json:"totalCount"`
116}
117
118type BugCommentEdge struct {
119	Cursor string       `json:"cursor"`
120	Node   *bug.Comment `json:"node"`
121}
122
123// The connection type for Bug.
124type BugConnection struct {
125	// A list of edges.
126	Edges []*BugEdge   `json:"edges"`
127	Nodes []BugWrapper `json:"nodes"`
128	// Information to aid in pagination.
129	PageInfo *PageInfo `json:"pageInfo"`
130	// Identifies the total count of items in the connection.
131	TotalCount int `json:"totalCount"`
132}
133
134type BugCreateInput struct {
135	// A unique identifier for the client performing the mutation.
136	ClientMutationID *string `json:"clientMutationId,omitempty"`
137	// The name of the repository. If not set, the default repository is used.
138	RepoRef *string `json:"repoRef,omitempty"`
139	// The title of the new bug.
140	Title string `json:"title"`
141	// The first message of the new bug.
142	Message string `json:"message"`
143	// The collection of file's hash required for the first message.
144	Files []repository.Hash `json:"files,omitempty"`
145}
146
147type BugCreatePayload struct {
148	// A unique identifier for the client performing the mutation.
149	ClientMutationID *string `json:"clientMutationId,omitempty"`
150	// The created bug.
151	Bug BugWrapper `json:"bug"`
152	// The resulting operation.
153	Operation *bug.CreateOperation `json:"operation"`
154}
155
156// An edge in a connection.
157type BugEdge struct {
158	// A cursor for use in pagination.
159	Cursor string `json:"cursor"`
160	// The item at the end of the edge.
161	Node BugWrapper `json:"node"`
162}
163
164type BugEditCommentInput struct {
165	// A unique identifier for the client performing the mutation.
166	ClientMutationID *string `json:"clientMutationId,omitempty"`
167	// The name of the repository. If not set, the default repository is used.
168	RepoRef *string `json:"repoRef,omitempty"`
169	// A prefix of the CombinedId of the comment to be changed.
170	TargetPrefix string `json:"targetPrefix"`
171	// The new message to be set.
172	Message string `json:"message"`
173	// The collection of file's hash required for the first message.
174	Files []repository.Hash `json:"files,omitempty"`
175}
176
177type BugEditCommentPayload struct {
178	// A unique identifier for the client performing the mutation.
179	ClientMutationID *string `json:"clientMutationId,omitempty"`
180	// The affected bug.
181	Bug BugWrapper `json:"bug"`
182	// The resulting operation.
183	Operation *bug.EditCommentOperation `json:"operation"`
184}
185
186type BugSetTitleInput struct {
187	// A unique identifier for the client performing the mutation.
188	ClientMutationID *string `json:"clientMutationId,omitempty"`
189	// The name of the repository. If not set, the default repository is used.
190	RepoRef *string `json:"repoRef,omitempty"`
191	// The bug ID's prefix.
192	Prefix string `json:"prefix"`
193	// The new title.
194	Title string `json:"title"`
195}
196
197type BugSetTitlePayload struct {
198	// A unique identifier for the client performing the mutation.
199	ClientMutationID *string `json:"clientMutationId,omitempty"`
200	// The affected bug.
201	Bug BugWrapper `json:"bug"`
202	// The resulting operation
203	Operation *bug.SetTitleOperation `json:"operation"`
204}
205
206type BugStatusCloseInput struct {
207	// A unique identifier for the client performing the mutation.
208	ClientMutationID *string `json:"clientMutationId,omitempty"`
209	// The name of the repository. If not set, the default repository is used.
210	RepoRef *string `json:"repoRef,omitempty"`
211	// The bug ID's prefix.
212	Prefix string `json:"prefix"`
213}
214
215type BugStatusClosePayload struct {
216	// A unique identifier for the client performing the mutation.
217	ClientMutationID *string `json:"clientMutationId,omitempty"`
218	// The affected bug.
219	Bug BugWrapper `json:"bug"`
220	// The resulting operation.
221	Operation *bug.SetStatusOperation `json:"operation"`
222}
223
224type BugStatusOpenInput struct {
225	// A unique identifier for the client performing the mutation.
226	ClientMutationID *string `json:"clientMutationId,omitempty"`
227	// The name of the repository. If not set, the default repository is used.
228	RepoRef *string `json:"repoRef,omitempty"`
229	// The bug ID's prefix.
230	Prefix string `json:"prefix"`
231}
232
233type BugStatusOpenPayload struct {
234	// A unique identifier for the client performing the mutation.
235	ClientMutationID *string `json:"clientMutationId,omitempty"`
236	// The affected bug.
237	Bug BugWrapper `json:"bug"`
238	// The resulting operation.
239	Operation *bug.SetStatusOperation `json:"operation"`
240}
241
242// The connection type for TimelineItem
243type BugTimelineItemConnection struct {
244	Edges      []*BugTimelineItemEdge `json:"edges"`
245	Nodes      []bug.TimelineItem     `json:"nodes"`
246	PageInfo   *PageInfo              `json:"pageInfo"`
247	TotalCount int                    `json:"totalCount"`
248}
249
250// Represent a TimelineItem
251type BugTimelineItemEdge struct {
252	Cursor string           `json:"cursor"`
253	Node   bug.TimelineItem `json:"node"`
254}
255
256type IdentityConnection struct {
257	Edges      []*IdentityEdge   `json:"edges"`
258	Nodes      []IdentityWrapper `json:"nodes"`
259	PageInfo   *PageInfo         `json:"pageInfo"`
260	TotalCount int               `json:"totalCount"`
261}
262
263type IdentityEdge struct {
264	Cursor string          `json:"cursor"`
265	Node   IdentityWrapper `json:"node"`
266}
267
268type LabelConnection struct {
269	Edges      []*LabelEdge   `json:"edges"`
270	Nodes      []common.Label `json:"nodes"`
271	PageInfo   *PageInfo      `json:"pageInfo"`
272	TotalCount int            `json:"totalCount"`
273}
274
275type LabelEdge struct {
276	Cursor string       `json:"cursor"`
277	Node   common.Label `json:"node"`
278}
279
280type Mutation struct {
281}
282
283// The connection type for an Operation
284type OperationConnection struct {
285	Edges      []*OperationEdge `json:"edges"`
286	Nodes      []dag.Operation  `json:"nodes"`
287	PageInfo   *PageInfo        `json:"pageInfo"`
288	TotalCount int              `json:"totalCount"`
289}
290
291// Represent an Operation
292type OperationEdge struct {
293	Cursor string        `json:"cursor"`
294	Node   dag.Operation `json:"node"`
295}
296
297// Information about pagination in a connection.
298type PageInfo struct {
299	// When paginating forwards, are there more items?
300	HasNextPage bool `json:"hasNextPage"`
301	// When paginating backwards, are there more items?
302	HasPreviousPage bool `json:"hasPreviousPage"`
303	// When paginating backwards, the cursor to continue.
304	StartCursor string `json:"startCursor"`
305	// When paginating forwards, the cursor to continue.
306	EndCursor string `json:"endCursor"`
307}
308
309type Query struct {
310}