1// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
2
3package graph
4
5import (
6 "bytes"
7 "context"
8 "errors"
9
10 "github.com/99designs/gqlgen/graphql"
11 "github.com/99designs/gqlgen/graphql/introspection"
12 "github.com/MichaelMure/git-bug/api/graphql/models"
13 gqlparser "github.com/vektah/gqlparser/v2"
14 "github.com/vektah/gqlparser/v2/ast"
15)
16
17// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
18func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
19 return &executableSchema{
20 resolvers: cfg.Resolvers,
21 directives: cfg.Directives,
22 complexity: cfg.Complexity,
23 }
24}
25
26type Config struct {
27 Resolvers ResolverRoot
28 Directives DirectiveRoot
29 Complexity ComplexityRoot
30}
31
32type ResolverRoot interface {
33 AddCommentOperation() AddCommentOperationResolver
34 AddCommentTimelineItem() AddCommentTimelineItemResolver
35 Bug() BugResolver
36 Color() ColorResolver
37 Comment() CommentResolver
38 CommentHistoryStep() CommentHistoryStepResolver
39 CreateOperation() CreateOperationResolver
40 CreateTimelineItem() CreateTimelineItemResolver
41 EditCommentOperation() EditCommentOperationResolver
42 Identity() IdentityResolver
43 Label() LabelResolver
44 LabelChangeOperation() LabelChangeOperationResolver
45 LabelChangeTimelineItem() LabelChangeTimelineItemResolver
46 Mutation() MutationResolver
47 Query() QueryResolver
48 Repository() RepositoryResolver
49 SetStatusOperation() SetStatusOperationResolver
50 SetStatusTimelineItem() SetStatusTimelineItemResolver
51 SetTitleOperation() SetTitleOperationResolver
52 SetTitleTimelineItem() SetTitleTimelineItemResolver
53}
54
55type DirectiveRoot struct {
56}
57
58type ComplexityRoot struct {
59 AddCommentAndCloseBugPayload struct {
60 Bug func(childComplexity int) int
61 ClientMutationID func(childComplexity int) int
62 CommentOperation func(childComplexity int) int
63 StatusOperation func(childComplexity int) int
64 }
65
66 AddCommentAndReopenBugPayload struct {
67 Bug func(childComplexity int) int
68 ClientMutationID func(childComplexity int) int
69 CommentOperation func(childComplexity int) int
70 StatusOperation func(childComplexity int) int
71 }
72
73 AddCommentOperation struct {
74 Author func(childComplexity int) int
75 Date func(childComplexity int) int
76 Files func(childComplexity int) int
77 ID func(childComplexity int) int
78 Message func(childComplexity int) int
79 }
80
81 AddCommentPayload struct {
82 Bug func(childComplexity int) int
83 ClientMutationID func(childComplexity int) int
84 Operation func(childComplexity int) int
85 }
86
87 AddCommentTimelineItem struct {
88 Author func(childComplexity int) int
89 CreatedAt func(childComplexity int) int
90 Edited func(childComplexity int) int
91 Files func(childComplexity int) int
92 History func(childComplexity int) int
93 ID func(childComplexity int) int
94 LastEdit func(childComplexity int) int
95 Message func(childComplexity int) int
96 MessageIsEmpty func(childComplexity int) int
97 }
98
99 Bug struct {
100 Actors func(childComplexity int, after *string, before *string, first *int, last *int) int
101 Author func(childComplexity int) int
102 Comments func(childComplexity int, after *string, before *string, first *int, last *int) int
103 CreatedAt func(childComplexity int) int
104 HumanID func(childComplexity int) int
105 ID func(childComplexity int) int
106 Labels func(childComplexity int) int
107 LastEdit func(childComplexity int) int
108 Operations func(childComplexity int, after *string, before *string, first *int, last *int) int
109 Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
110 Status func(childComplexity int) int
111 Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int
112 Title func(childComplexity int) int
113 }
114
115 BugConnection struct {
116 Edges func(childComplexity int) int
117 Nodes func(childComplexity int) int
118 PageInfo func(childComplexity int) int
119 TotalCount func(childComplexity int) int
120 }
121
122 BugEdge struct {
123 Cursor func(childComplexity int) int
124 Node func(childComplexity int) int
125 }
126
127 ChangeLabelPayload struct {
128 Bug func(childComplexity int) int
129 ClientMutationID func(childComplexity int) int
130 Operation func(childComplexity int) int
131 Results func(childComplexity int) int
132 }
133
134 CloseBugPayload struct {
135 Bug func(childComplexity int) int
136 ClientMutationID func(childComplexity int) int
137 Operation func(childComplexity int) int
138 }
139
140 Color struct {
141 B func(childComplexity int) int
142 G func(childComplexity int) int
143 R func(childComplexity int) int
144 }
145
146 Comment struct {
147 Author func(childComplexity int) int
148 Files func(childComplexity int) int
149 Message func(childComplexity int) int
150 }
151
152 CommentConnection struct {
153 Edges func(childComplexity int) int
154 Nodes func(childComplexity int) int
155 PageInfo func(childComplexity int) int
156 TotalCount func(childComplexity int) int
157 }
158
159 CommentEdge struct {
160 Cursor func(childComplexity int) int
161 Node func(childComplexity int) int
162 }
163
164 CommentHistoryStep struct {
165 Date func(childComplexity int) int
166 Message func(childComplexity int) int
167 }
168
169 CreateOperation struct {
170 Author func(childComplexity int) int
171 Date func(childComplexity int) int
172 Files func(childComplexity int) int
173 ID func(childComplexity int) int
174 Message func(childComplexity int) int
175 Title func(childComplexity int) int
176 }
177
178 CreateTimelineItem struct {
179 Author func(childComplexity int) int
180 CreatedAt func(childComplexity int) int
181 Edited func(childComplexity int) int
182 Files func(childComplexity int) int
183 History func(childComplexity int) int
184 ID func(childComplexity int) int
185 LastEdit func(childComplexity int) int
186 Message func(childComplexity int) int
187 MessageIsEmpty func(childComplexity int) int
188 }
189
190 EditCommentOperation struct {
191 Author func(childComplexity int) int
192 Date func(childComplexity int) int
193 Files func(childComplexity int) int
194 ID func(childComplexity int) int
195 Message func(childComplexity int) int
196 Target func(childComplexity int) int
197 }
198
199 EditCommentPayload struct {
200 Bug func(childComplexity int) int
201 ClientMutationID func(childComplexity int) int
202 Operation func(childComplexity int) int
203 }
204
205 Identity struct {
206 AvatarUrl func(childComplexity int) int
207 DisplayName func(childComplexity int) int
208 Email func(childComplexity int) int
209 HumanID func(childComplexity int) int
210 ID func(childComplexity int) int
211 IsProtected func(childComplexity int) int
212 Login func(childComplexity int) int
213 Name func(childComplexity int) int
214 }
215
216 IdentityConnection struct {
217 Edges func(childComplexity int) int
218 Nodes func(childComplexity int) int
219 PageInfo func(childComplexity int) int
220 TotalCount func(childComplexity int) int
221 }
222
223 IdentityEdge struct {
224 Cursor func(childComplexity int) int
225 Node func(childComplexity int) int
226 }
227
228 Label struct {
229 Color func(childComplexity int) int
230 Name func(childComplexity int) int
231 }
232
233 LabelChangeOperation struct {
234 Added func(childComplexity int) int
235 Author func(childComplexity int) int
236 Date func(childComplexity int) int
237 ID func(childComplexity int) int
238 Removed func(childComplexity int) int
239 }
240
241 LabelChangeResult struct {
242 Label func(childComplexity int) int
243 Status func(childComplexity int) int
244 }
245
246 LabelChangeTimelineItem struct {
247 Added func(childComplexity int) int
248 Author func(childComplexity int) int
249 Date func(childComplexity int) int
250 ID func(childComplexity int) int
251 Removed func(childComplexity int) int
252 }
253
254 LabelConnection struct {
255 Edges func(childComplexity int) int
256 Nodes func(childComplexity int) int
257 PageInfo func(childComplexity int) int
258 TotalCount func(childComplexity int) int
259 }
260
261 LabelEdge struct {
262 Cursor func(childComplexity int) int
263 Node func(childComplexity int) int
264 }
265
266 Mutation struct {
267 AddComment func(childComplexity int, input models.AddCommentInput) int
268 AddCommentAndClose func(childComplexity int, input models.AddCommentAndCloseBugInput) int
269 AddCommentAndReopen func(childComplexity int, input models.AddCommentAndReopenBugInput) int
270 ChangeLabels func(childComplexity int, input *models.ChangeLabelInput) int
271 CloseBug func(childComplexity int, input models.CloseBugInput) int
272 EditComment func(childComplexity int, input models.EditCommentInput) int
273 NewBug func(childComplexity int, input models.NewBugInput) int
274 OpenBug func(childComplexity int, input models.OpenBugInput) int
275 SetTitle func(childComplexity int, input models.SetTitleInput) int
276 }
277
278 NewBugPayload struct {
279 Bug func(childComplexity int) int
280 ClientMutationID func(childComplexity int) int
281 Operation func(childComplexity int) int
282 }
283
284 OpenBugPayload struct {
285 Bug func(childComplexity int) int
286 ClientMutationID func(childComplexity int) int
287 Operation func(childComplexity int) int
288 }
289
290 OperationConnection struct {
291 Edges func(childComplexity int) int
292 Nodes func(childComplexity int) int
293 PageInfo func(childComplexity int) int
294 TotalCount func(childComplexity int) int
295 }
296
297 OperationEdge struct {
298 Cursor func(childComplexity int) int
299 Node func(childComplexity int) int
300 }
301
302 PageInfo struct {
303 EndCursor func(childComplexity int) int
304 HasNextPage func(childComplexity int) int
305 HasPreviousPage func(childComplexity int) int
306 StartCursor func(childComplexity int) int
307 }
308
309 Query struct {
310 Repository func(childComplexity int, ref *string) int
311 }
312
313 Repository struct {
314 AllBugs func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
315 AllIdentities func(childComplexity int, after *string, before *string, first *int, last *int) int
316 Bug func(childComplexity int, prefix string) int
317 Identity func(childComplexity int, prefix string) int
318 Name func(childComplexity int) int
319 UserIdentity func(childComplexity int) int
320 ValidLabels func(childComplexity int, after *string, before *string, first *int, last *int) int
321 }
322
323 SetStatusOperation struct {
324 Author func(childComplexity int) int
325 Date func(childComplexity int) int
326 ID func(childComplexity int) int
327 Status func(childComplexity int) int
328 }
329
330 SetStatusTimelineItem struct {
331 Author func(childComplexity int) int
332 Date func(childComplexity int) int
333 ID func(childComplexity int) int
334 Status func(childComplexity int) int
335 }
336
337 SetTitleOperation struct {
338 Author func(childComplexity int) int
339 Date func(childComplexity int) int
340 ID func(childComplexity int) int
341 Title func(childComplexity int) int
342 Was func(childComplexity int) int
343 }
344
345 SetTitlePayload struct {
346 Bug func(childComplexity int) int
347 ClientMutationID func(childComplexity int) int
348 Operation func(childComplexity int) int
349 }
350
351 SetTitleTimelineItem struct {
352 Author func(childComplexity int) int
353 Date func(childComplexity int) int
354 ID func(childComplexity int) int
355 Title func(childComplexity int) int
356 Was func(childComplexity int) int
357 }
358
359 TimelineItemConnection struct {
360 Edges func(childComplexity int) int
361 Nodes func(childComplexity int) int
362 PageInfo func(childComplexity int) int
363 TotalCount func(childComplexity int) int
364 }
365
366 TimelineItemEdge struct {
367 Cursor func(childComplexity int) int
368 Node func(childComplexity int) int
369 }
370}
371
372type executableSchema struct {
373 resolvers ResolverRoot
374 directives DirectiveRoot
375 complexity ComplexityRoot
376}
377
378func (e *executableSchema) Schema() *ast.Schema {
379 return parsedSchema
380}
381
382func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
383 ec := executionContext{nil, e}
384 _ = ec
385 switch typeName + "." + field {
386
387 case "AddCommentAndCloseBugPayload.bug":
388 if e.complexity.AddCommentAndCloseBugPayload.Bug == nil {
389 break
390 }
391
392 return e.complexity.AddCommentAndCloseBugPayload.Bug(childComplexity), true
393
394 case "AddCommentAndCloseBugPayload.clientMutationId":
395 if e.complexity.AddCommentAndCloseBugPayload.ClientMutationID == nil {
396 break
397 }
398
399 return e.complexity.AddCommentAndCloseBugPayload.ClientMutationID(childComplexity), true
400
401 case "AddCommentAndCloseBugPayload.commentOperation":
402 if e.complexity.AddCommentAndCloseBugPayload.CommentOperation == nil {
403 break
404 }
405
406 return e.complexity.AddCommentAndCloseBugPayload.CommentOperation(childComplexity), true
407
408 case "AddCommentAndCloseBugPayload.statusOperation":
409 if e.complexity.AddCommentAndCloseBugPayload.StatusOperation == nil {
410 break
411 }
412
413 return e.complexity.AddCommentAndCloseBugPayload.StatusOperation(childComplexity), true
414
415 case "AddCommentAndReopenBugPayload.bug":
416 if e.complexity.AddCommentAndReopenBugPayload.Bug == nil {
417 break
418 }
419
420 return e.complexity.AddCommentAndReopenBugPayload.Bug(childComplexity), true
421
422 case "AddCommentAndReopenBugPayload.clientMutationId":
423 if e.complexity.AddCommentAndReopenBugPayload.ClientMutationID == nil {
424 break
425 }
426
427 return e.complexity.AddCommentAndReopenBugPayload.ClientMutationID(childComplexity), true
428
429 case "AddCommentAndReopenBugPayload.commentOperation":
430 if e.complexity.AddCommentAndReopenBugPayload.CommentOperation == nil {
431 break
432 }
433
434 return e.complexity.AddCommentAndReopenBugPayload.CommentOperation(childComplexity), true
435
436 case "AddCommentAndReopenBugPayload.statusOperation":
437 if e.complexity.AddCommentAndReopenBugPayload.StatusOperation == nil {
438 break
439 }
440
441 return e.complexity.AddCommentAndReopenBugPayload.StatusOperation(childComplexity), true
442
443 case "AddCommentOperation.author":
444 if e.complexity.AddCommentOperation.Author == nil {
445 break
446 }
447
448 return e.complexity.AddCommentOperation.Author(childComplexity), true
449
450 case "AddCommentOperation.date":
451 if e.complexity.AddCommentOperation.Date == nil {
452 break
453 }
454
455 return e.complexity.AddCommentOperation.Date(childComplexity), true
456
457 case "AddCommentOperation.files":
458 if e.complexity.AddCommentOperation.Files == nil {
459 break
460 }
461
462 return e.complexity.AddCommentOperation.Files(childComplexity), true
463
464 case "AddCommentOperation.id":
465 if e.complexity.AddCommentOperation.ID == nil {
466 break
467 }
468
469 return e.complexity.AddCommentOperation.ID(childComplexity), true
470
471 case "AddCommentOperation.message":
472 if e.complexity.AddCommentOperation.Message == nil {
473 break
474 }
475
476 return e.complexity.AddCommentOperation.Message(childComplexity), true
477
478 case "AddCommentPayload.bug":
479 if e.complexity.AddCommentPayload.Bug == nil {
480 break
481 }
482
483 return e.complexity.AddCommentPayload.Bug(childComplexity), true
484
485 case "AddCommentPayload.clientMutationId":
486 if e.complexity.AddCommentPayload.ClientMutationID == nil {
487 break
488 }
489
490 return e.complexity.AddCommentPayload.ClientMutationID(childComplexity), true
491
492 case "AddCommentPayload.operation":
493 if e.complexity.AddCommentPayload.Operation == nil {
494 break
495 }
496
497 return e.complexity.AddCommentPayload.Operation(childComplexity), true
498
499 case "AddCommentTimelineItem.author":
500 if e.complexity.AddCommentTimelineItem.Author == nil {
501 break
502 }
503
504 return e.complexity.AddCommentTimelineItem.Author(childComplexity), true
505
506 case "AddCommentTimelineItem.createdAt":
507 if e.complexity.AddCommentTimelineItem.CreatedAt == nil {
508 break
509 }
510
511 return e.complexity.AddCommentTimelineItem.CreatedAt(childComplexity), true
512
513 case "AddCommentTimelineItem.edited":
514 if e.complexity.AddCommentTimelineItem.Edited == nil {
515 break
516 }
517
518 return e.complexity.AddCommentTimelineItem.Edited(childComplexity), true
519
520 case "AddCommentTimelineItem.files":
521 if e.complexity.AddCommentTimelineItem.Files == nil {
522 break
523 }
524
525 return e.complexity.AddCommentTimelineItem.Files(childComplexity), true
526
527 case "AddCommentTimelineItem.history":
528 if e.complexity.AddCommentTimelineItem.History == nil {
529 break
530 }
531
532 return e.complexity.AddCommentTimelineItem.History(childComplexity), true
533
534 case "AddCommentTimelineItem.id":
535 if e.complexity.AddCommentTimelineItem.ID == nil {
536 break
537 }
538
539 return e.complexity.AddCommentTimelineItem.ID(childComplexity), true
540
541 case "AddCommentTimelineItem.lastEdit":
542 if e.complexity.AddCommentTimelineItem.LastEdit == nil {
543 break
544 }
545
546 return e.complexity.AddCommentTimelineItem.LastEdit(childComplexity), true
547
548 case "AddCommentTimelineItem.message":
549 if e.complexity.AddCommentTimelineItem.Message == nil {
550 break
551 }
552
553 return e.complexity.AddCommentTimelineItem.Message(childComplexity), true
554
555 case "AddCommentTimelineItem.messageIsEmpty":
556 if e.complexity.AddCommentTimelineItem.MessageIsEmpty == nil {
557 break
558 }
559
560 return e.complexity.AddCommentTimelineItem.MessageIsEmpty(childComplexity), true
561
562 case "Bug.actors":
563 if e.complexity.Bug.Actors == nil {
564 break
565 }
566
567 args, err := ec.field_Bug_actors_args(context.TODO(), rawArgs)
568 if err != nil {
569 return 0, false
570 }
571
572 return e.complexity.Bug.Actors(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
573
574 case "Bug.author":
575 if e.complexity.Bug.Author == nil {
576 break
577 }
578
579 return e.complexity.Bug.Author(childComplexity), true
580
581 case "Bug.comments":
582 if e.complexity.Bug.Comments == nil {
583 break
584 }
585
586 args, err := ec.field_Bug_comments_args(context.TODO(), rawArgs)
587 if err != nil {
588 return 0, false
589 }
590
591 return e.complexity.Bug.Comments(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
592
593 case "Bug.createdAt":
594 if e.complexity.Bug.CreatedAt == nil {
595 break
596 }
597
598 return e.complexity.Bug.CreatedAt(childComplexity), true
599
600 case "Bug.humanId":
601 if e.complexity.Bug.HumanID == nil {
602 break
603 }
604
605 return e.complexity.Bug.HumanID(childComplexity), true
606
607 case "Bug.id":
608 if e.complexity.Bug.ID == nil {
609 break
610 }
611
612 return e.complexity.Bug.ID(childComplexity), true
613
614 case "Bug.labels":
615 if e.complexity.Bug.Labels == nil {
616 break
617 }
618
619 return e.complexity.Bug.Labels(childComplexity), true
620
621 case "Bug.lastEdit":
622 if e.complexity.Bug.LastEdit == nil {
623 break
624 }
625
626 return e.complexity.Bug.LastEdit(childComplexity), true
627
628 case "Bug.operations":
629 if e.complexity.Bug.Operations == nil {
630 break
631 }
632
633 args, err := ec.field_Bug_operations_args(context.TODO(), rawArgs)
634 if err != nil {
635 return 0, false
636 }
637
638 return e.complexity.Bug.Operations(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
639
640 case "Bug.participants":
641 if e.complexity.Bug.Participants == nil {
642 break
643 }
644
645 args, err := ec.field_Bug_participants_args(context.TODO(), rawArgs)
646 if err != nil {
647 return 0, false
648 }
649
650 return e.complexity.Bug.Participants(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
651
652 case "Bug.status":
653 if e.complexity.Bug.Status == nil {
654 break
655 }
656
657 return e.complexity.Bug.Status(childComplexity), true
658
659 case "Bug.timeline":
660 if e.complexity.Bug.Timeline == nil {
661 break
662 }
663
664 args, err := ec.field_Bug_timeline_args(context.TODO(), rawArgs)
665 if err != nil {
666 return 0, false
667 }
668
669 return e.complexity.Bug.Timeline(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
670
671 case "Bug.title":
672 if e.complexity.Bug.Title == nil {
673 break
674 }
675
676 return e.complexity.Bug.Title(childComplexity), true
677
678 case "BugConnection.edges":
679 if e.complexity.BugConnection.Edges == nil {
680 break
681 }
682
683 return e.complexity.BugConnection.Edges(childComplexity), true
684
685 case "BugConnection.nodes":
686 if e.complexity.BugConnection.Nodes == nil {
687 break
688 }
689
690 return e.complexity.BugConnection.Nodes(childComplexity), true
691
692 case "BugConnection.pageInfo":
693 if e.complexity.BugConnection.PageInfo == nil {
694 break
695 }
696
697 return e.complexity.BugConnection.PageInfo(childComplexity), true
698
699 case "BugConnection.totalCount":
700 if e.complexity.BugConnection.TotalCount == nil {
701 break
702 }
703
704 return e.complexity.BugConnection.TotalCount(childComplexity), true
705
706 case "BugEdge.cursor":
707 if e.complexity.BugEdge.Cursor == nil {
708 break
709 }
710
711 return e.complexity.BugEdge.Cursor(childComplexity), true
712
713 case "BugEdge.node":
714 if e.complexity.BugEdge.Node == nil {
715 break
716 }
717
718 return e.complexity.BugEdge.Node(childComplexity), true
719
720 case "ChangeLabelPayload.bug":
721 if e.complexity.ChangeLabelPayload.Bug == nil {
722 break
723 }
724
725 return e.complexity.ChangeLabelPayload.Bug(childComplexity), true
726
727 case "ChangeLabelPayload.clientMutationId":
728 if e.complexity.ChangeLabelPayload.ClientMutationID == nil {
729 break
730 }
731
732 return e.complexity.ChangeLabelPayload.ClientMutationID(childComplexity), true
733
734 case "ChangeLabelPayload.operation":
735 if e.complexity.ChangeLabelPayload.Operation == nil {
736 break
737 }
738
739 return e.complexity.ChangeLabelPayload.Operation(childComplexity), true
740
741 case "ChangeLabelPayload.results":
742 if e.complexity.ChangeLabelPayload.Results == nil {
743 break
744 }
745
746 return e.complexity.ChangeLabelPayload.Results(childComplexity), true
747
748 case "CloseBugPayload.bug":
749 if e.complexity.CloseBugPayload.Bug == nil {
750 break
751 }
752
753 return e.complexity.CloseBugPayload.Bug(childComplexity), true
754
755 case "CloseBugPayload.clientMutationId":
756 if e.complexity.CloseBugPayload.ClientMutationID == nil {
757 break
758 }
759
760 return e.complexity.CloseBugPayload.ClientMutationID(childComplexity), true
761
762 case "CloseBugPayload.operation":
763 if e.complexity.CloseBugPayload.Operation == nil {
764 break
765 }
766
767 return e.complexity.CloseBugPayload.Operation(childComplexity), true
768
769 case "Color.B":
770 if e.complexity.Color.B == nil {
771 break
772 }
773
774 return e.complexity.Color.B(childComplexity), true
775
776 case "Color.G":
777 if e.complexity.Color.G == nil {
778 break
779 }
780
781 return e.complexity.Color.G(childComplexity), true
782
783 case "Color.R":
784 if e.complexity.Color.R == nil {
785 break
786 }
787
788 return e.complexity.Color.R(childComplexity), true
789
790 case "Comment.author":
791 if e.complexity.Comment.Author == nil {
792 break
793 }
794
795 return e.complexity.Comment.Author(childComplexity), true
796
797 case "Comment.files":
798 if e.complexity.Comment.Files == nil {
799 break
800 }
801
802 return e.complexity.Comment.Files(childComplexity), true
803
804 case "Comment.message":
805 if e.complexity.Comment.Message == nil {
806 break
807 }
808
809 return e.complexity.Comment.Message(childComplexity), true
810
811 case "CommentConnection.edges":
812 if e.complexity.CommentConnection.Edges == nil {
813 break
814 }
815
816 return e.complexity.CommentConnection.Edges(childComplexity), true
817
818 case "CommentConnection.nodes":
819 if e.complexity.CommentConnection.Nodes == nil {
820 break
821 }
822
823 return e.complexity.CommentConnection.Nodes(childComplexity), true
824
825 case "CommentConnection.pageInfo":
826 if e.complexity.CommentConnection.PageInfo == nil {
827 break
828 }
829
830 return e.complexity.CommentConnection.PageInfo(childComplexity), true
831
832 case "CommentConnection.totalCount":
833 if e.complexity.CommentConnection.TotalCount == nil {
834 break
835 }
836
837 return e.complexity.CommentConnection.TotalCount(childComplexity), true
838
839 case "CommentEdge.cursor":
840 if e.complexity.CommentEdge.Cursor == nil {
841 break
842 }
843
844 return e.complexity.CommentEdge.Cursor(childComplexity), true
845
846 case "CommentEdge.node":
847 if e.complexity.CommentEdge.Node == nil {
848 break
849 }
850
851 return e.complexity.CommentEdge.Node(childComplexity), true
852
853 case "CommentHistoryStep.date":
854 if e.complexity.CommentHistoryStep.Date == nil {
855 break
856 }
857
858 return e.complexity.CommentHistoryStep.Date(childComplexity), true
859
860 case "CommentHistoryStep.message":
861 if e.complexity.CommentHistoryStep.Message == nil {
862 break
863 }
864
865 return e.complexity.CommentHistoryStep.Message(childComplexity), true
866
867 case "CreateOperation.author":
868 if e.complexity.CreateOperation.Author == nil {
869 break
870 }
871
872 return e.complexity.CreateOperation.Author(childComplexity), true
873
874 case "CreateOperation.date":
875 if e.complexity.CreateOperation.Date == nil {
876 break
877 }
878
879 return e.complexity.CreateOperation.Date(childComplexity), true
880
881 case "CreateOperation.files":
882 if e.complexity.CreateOperation.Files == nil {
883 break
884 }
885
886 return e.complexity.CreateOperation.Files(childComplexity), true
887
888 case "CreateOperation.id":
889 if e.complexity.CreateOperation.ID == nil {
890 break
891 }
892
893 return e.complexity.CreateOperation.ID(childComplexity), true
894
895 case "CreateOperation.message":
896 if e.complexity.CreateOperation.Message == nil {
897 break
898 }
899
900 return e.complexity.CreateOperation.Message(childComplexity), true
901
902 case "CreateOperation.title":
903 if e.complexity.CreateOperation.Title == nil {
904 break
905 }
906
907 return e.complexity.CreateOperation.Title(childComplexity), true
908
909 case "CreateTimelineItem.author":
910 if e.complexity.CreateTimelineItem.Author == nil {
911 break
912 }
913
914 return e.complexity.CreateTimelineItem.Author(childComplexity), true
915
916 case "CreateTimelineItem.createdAt":
917 if e.complexity.CreateTimelineItem.CreatedAt == nil {
918 break
919 }
920
921 return e.complexity.CreateTimelineItem.CreatedAt(childComplexity), true
922
923 case "CreateTimelineItem.edited":
924 if e.complexity.CreateTimelineItem.Edited == nil {
925 break
926 }
927
928 return e.complexity.CreateTimelineItem.Edited(childComplexity), true
929
930 case "CreateTimelineItem.files":
931 if e.complexity.CreateTimelineItem.Files == nil {
932 break
933 }
934
935 return e.complexity.CreateTimelineItem.Files(childComplexity), true
936
937 case "CreateTimelineItem.history":
938 if e.complexity.CreateTimelineItem.History == nil {
939 break
940 }
941
942 return e.complexity.CreateTimelineItem.History(childComplexity), true
943
944 case "CreateTimelineItem.id":
945 if e.complexity.CreateTimelineItem.ID == nil {
946 break
947 }
948
949 return e.complexity.CreateTimelineItem.ID(childComplexity), true
950
951 case "CreateTimelineItem.lastEdit":
952 if e.complexity.CreateTimelineItem.LastEdit == nil {
953 break
954 }
955
956 return e.complexity.CreateTimelineItem.LastEdit(childComplexity), true
957
958 case "CreateTimelineItem.message":
959 if e.complexity.CreateTimelineItem.Message == nil {
960 break
961 }
962
963 return e.complexity.CreateTimelineItem.Message(childComplexity), true
964
965 case "CreateTimelineItem.messageIsEmpty":
966 if e.complexity.CreateTimelineItem.MessageIsEmpty == nil {
967 break
968 }
969
970 return e.complexity.CreateTimelineItem.MessageIsEmpty(childComplexity), true
971
972 case "EditCommentOperation.author":
973 if e.complexity.EditCommentOperation.Author == nil {
974 break
975 }
976
977 return e.complexity.EditCommentOperation.Author(childComplexity), true
978
979 case "EditCommentOperation.date":
980 if e.complexity.EditCommentOperation.Date == nil {
981 break
982 }
983
984 return e.complexity.EditCommentOperation.Date(childComplexity), true
985
986 case "EditCommentOperation.files":
987 if e.complexity.EditCommentOperation.Files == nil {
988 break
989 }
990
991 return e.complexity.EditCommentOperation.Files(childComplexity), true
992
993 case "EditCommentOperation.id":
994 if e.complexity.EditCommentOperation.ID == nil {
995 break
996 }
997
998 return e.complexity.EditCommentOperation.ID(childComplexity), true
999
1000 case "EditCommentOperation.message":
1001 if e.complexity.EditCommentOperation.Message == nil {
1002 break
1003 }
1004
1005 return e.complexity.EditCommentOperation.Message(childComplexity), true
1006
1007 case "EditCommentOperation.target":
1008 if e.complexity.EditCommentOperation.Target == nil {
1009 break
1010 }
1011
1012 return e.complexity.EditCommentOperation.Target(childComplexity), true
1013
1014 case "EditCommentPayload.bug":
1015 if e.complexity.EditCommentPayload.Bug == nil {
1016 break
1017 }
1018
1019 return e.complexity.EditCommentPayload.Bug(childComplexity), true
1020
1021 case "EditCommentPayload.clientMutationId":
1022 if e.complexity.EditCommentPayload.ClientMutationID == nil {
1023 break
1024 }
1025
1026 return e.complexity.EditCommentPayload.ClientMutationID(childComplexity), true
1027
1028 case "EditCommentPayload.operation":
1029 if e.complexity.EditCommentPayload.Operation == nil {
1030 break
1031 }
1032
1033 return e.complexity.EditCommentPayload.Operation(childComplexity), true
1034
1035 case "Identity.avatarUrl":
1036 if e.complexity.Identity.AvatarUrl == nil {
1037 break
1038 }
1039
1040 return e.complexity.Identity.AvatarUrl(childComplexity), true
1041
1042 case "Identity.displayName":
1043 if e.complexity.Identity.DisplayName == nil {
1044 break
1045 }
1046
1047 return e.complexity.Identity.DisplayName(childComplexity), true
1048
1049 case "Identity.email":
1050 if e.complexity.Identity.Email == nil {
1051 break
1052 }
1053
1054 return e.complexity.Identity.Email(childComplexity), true
1055
1056 case "Identity.humanId":
1057 if e.complexity.Identity.HumanID == nil {
1058 break
1059 }
1060
1061 return e.complexity.Identity.HumanID(childComplexity), true
1062
1063 case "Identity.id":
1064 if e.complexity.Identity.ID == nil {
1065 break
1066 }
1067
1068 return e.complexity.Identity.ID(childComplexity), true
1069
1070 case "Identity.isProtected":
1071 if e.complexity.Identity.IsProtected == nil {
1072 break
1073 }
1074
1075 return e.complexity.Identity.IsProtected(childComplexity), true
1076
1077 case "Identity.login":
1078 if e.complexity.Identity.Login == nil {
1079 break
1080 }
1081
1082 return e.complexity.Identity.Login(childComplexity), true
1083
1084 case "Identity.name":
1085 if e.complexity.Identity.Name == nil {
1086 break
1087 }
1088
1089 return e.complexity.Identity.Name(childComplexity), true
1090
1091 case "IdentityConnection.edges":
1092 if e.complexity.IdentityConnection.Edges == nil {
1093 break
1094 }
1095
1096 return e.complexity.IdentityConnection.Edges(childComplexity), true
1097
1098 case "IdentityConnection.nodes":
1099 if e.complexity.IdentityConnection.Nodes == nil {
1100 break
1101 }
1102
1103 return e.complexity.IdentityConnection.Nodes(childComplexity), true
1104
1105 case "IdentityConnection.pageInfo":
1106 if e.complexity.IdentityConnection.PageInfo == nil {
1107 break
1108 }
1109
1110 return e.complexity.IdentityConnection.PageInfo(childComplexity), true
1111
1112 case "IdentityConnection.totalCount":
1113 if e.complexity.IdentityConnection.TotalCount == nil {
1114 break
1115 }
1116
1117 return e.complexity.IdentityConnection.TotalCount(childComplexity), true
1118
1119 case "IdentityEdge.cursor":
1120 if e.complexity.IdentityEdge.Cursor == nil {
1121 break
1122 }
1123
1124 return e.complexity.IdentityEdge.Cursor(childComplexity), true
1125
1126 case "IdentityEdge.node":
1127 if e.complexity.IdentityEdge.Node == nil {
1128 break
1129 }
1130
1131 return e.complexity.IdentityEdge.Node(childComplexity), true
1132
1133 case "Label.color":
1134 if e.complexity.Label.Color == nil {
1135 break
1136 }
1137
1138 return e.complexity.Label.Color(childComplexity), true
1139
1140 case "Label.name":
1141 if e.complexity.Label.Name == nil {
1142 break
1143 }
1144
1145 return e.complexity.Label.Name(childComplexity), true
1146
1147 case "LabelChangeOperation.added":
1148 if e.complexity.LabelChangeOperation.Added == nil {
1149 break
1150 }
1151
1152 return e.complexity.LabelChangeOperation.Added(childComplexity), true
1153
1154 case "LabelChangeOperation.author":
1155 if e.complexity.LabelChangeOperation.Author == nil {
1156 break
1157 }
1158
1159 return e.complexity.LabelChangeOperation.Author(childComplexity), true
1160
1161 case "LabelChangeOperation.date":
1162 if e.complexity.LabelChangeOperation.Date == nil {
1163 break
1164 }
1165
1166 return e.complexity.LabelChangeOperation.Date(childComplexity), true
1167
1168 case "LabelChangeOperation.id":
1169 if e.complexity.LabelChangeOperation.ID == nil {
1170 break
1171 }
1172
1173 return e.complexity.LabelChangeOperation.ID(childComplexity), true
1174
1175 case "LabelChangeOperation.removed":
1176 if e.complexity.LabelChangeOperation.Removed == nil {
1177 break
1178 }
1179
1180 return e.complexity.LabelChangeOperation.Removed(childComplexity), true
1181
1182 case "LabelChangeResult.label":
1183 if e.complexity.LabelChangeResult.Label == nil {
1184 break
1185 }
1186
1187 return e.complexity.LabelChangeResult.Label(childComplexity), true
1188
1189 case "LabelChangeResult.status":
1190 if e.complexity.LabelChangeResult.Status == nil {
1191 break
1192 }
1193
1194 return e.complexity.LabelChangeResult.Status(childComplexity), true
1195
1196 case "LabelChangeTimelineItem.added":
1197 if e.complexity.LabelChangeTimelineItem.Added == nil {
1198 break
1199 }
1200
1201 return e.complexity.LabelChangeTimelineItem.Added(childComplexity), true
1202
1203 case "LabelChangeTimelineItem.author":
1204 if e.complexity.LabelChangeTimelineItem.Author == nil {
1205 break
1206 }
1207
1208 return e.complexity.LabelChangeTimelineItem.Author(childComplexity), true
1209
1210 case "LabelChangeTimelineItem.date":
1211 if e.complexity.LabelChangeTimelineItem.Date == nil {
1212 break
1213 }
1214
1215 return e.complexity.LabelChangeTimelineItem.Date(childComplexity), true
1216
1217 case "LabelChangeTimelineItem.id":
1218 if e.complexity.LabelChangeTimelineItem.ID == nil {
1219 break
1220 }
1221
1222 return e.complexity.LabelChangeTimelineItem.ID(childComplexity), true
1223
1224 case "LabelChangeTimelineItem.removed":
1225 if e.complexity.LabelChangeTimelineItem.Removed == nil {
1226 break
1227 }
1228
1229 return e.complexity.LabelChangeTimelineItem.Removed(childComplexity), true
1230
1231 case "LabelConnection.edges":
1232 if e.complexity.LabelConnection.Edges == nil {
1233 break
1234 }
1235
1236 return e.complexity.LabelConnection.Edges(childComplexity), true
1237
1238 case "LabelConnection.nodes":
1239 if e.complexity.LabelConnection.Nodes == nil {
1240 break
1241 }
1242
1243 return e.complexity.LabelConnection.Nodes(childComplexity), true
1244
1245 case "LabelConnection.pageInfo":
1246 if e.complexity.LabelConnection.PageInfo == nil {
1247 break
1248 }
1249
1250 return e.complexity.LabelConnection.PageInfo(childComplexity), true
1251
1252 case "LabelConnection.totalCount":
1253 if e.complexity.LabelConnection.TotalCount == nil {
1254 break
1255 }
1256
1257 return e.complexity.LabelConnection.TotalCount(childComplexity), true
1258
1259 case "LabelEdge.cursor":
1260 if e.complexity.LabelEdge.Cursor == nil {
1261 break
1262 }
1263
1264 return e.complexity.LabelEdge.Cursor(childComplexity), true
1265
1266 case "LabelEdge.node":
1267 if e.complexity.LabelEdge.Node == nil {
1268 break
1269 }
1270
1271 return e.complexity.LabelEdge.Node(childComplexity), true
1272
1273 case "Mutation.addComment":
1274 if e.complexity.Mutation.AddComment == nil {
1275 break
1276 }
1277
1278 args, err := ec.field_Mutation_addComment_args(context.TODO(), rawArgs)
1279 if err != nil {
1280 return 0, false
1281 }
1282
1283 return e.complexity.Mutation.AddComment(childComplexity, args["input"].(models.AddCommentInput)), true
1284
1285 case "Mutation.addCommentAndClose":
1286 if e.complexity.Mutation.AddCommentAndClose == nil {
1287 break
1288 }
1289
1290 args, err := ec.field_Mutation_addCommentAndClose_args(context.TODO(), rawArgs)
1291 if err != nil {
1292 return 0, false
1293 }
1294
1295 return e.complexity.Mutation.AddCommentAndClose(childComplexity, args["input"].(models.AddCommentAndCloseBugInput)), true
1296
1297 case "Mutation.addCommentAndReopen":
1298 if e.complexity.Mutation.AddCommentAndReopen == nil {
1299 break
1300 }
1301
1302 args, err := ec.field_Mutation_addCommentAndReopen_args(context.TODO(), rawArgs)
1303 if err != nil {
1304 return 0, false
1305 }
1306
1307 return e.complexity.Mutation.AddCommentAndReopen(childComplexity, args["input"].(models.AddCommentAndReopenBugInput)), true
1308
1309 case "Mutation.changeLabels":
1310 if e.complexity.Mutation.ChangeLabels == nil {
1311 break
1312 }
1313
1314 args, err := ec.field_Mutation_changeLabels_args(context.TODO(), rawArgs)
1315 if err != nil {
1316 return 0, false
1317 }
1318
1319 return e.complexity.Mutation.ChangeLabels(childComplexity, args["input"].(*models.ChangeLabelInput)), true
1320
1321 case "Mutation.closeBug":
1322 if e.complexity.Mutation.CloseBug == nil {
1323 break
1324 }
1325
1326 args, err := ec.field_Mutation_closeBug_args(context.TODO(), rawArgs)
1327 if err != nil {
1328 return 0, false
1329 }
1330
1331 return e.complexity.Mutation.CloseBug(childComplexity, args["input"].(models.CloseBugInput)), true
1332
1333 case "Mutation.editComment":
1334 if e.complexity.Mutation.EditComment == nil {
1335 break
1336 }
1337
1338 args, err := ec.field_Mutation_editComment_args(context.TODO(), rawArgs)
1339 if err != nil {
1340 return 0, false
1341 }
1342
1343 return e.complexity.Mutation.EditComment(childComplexity, args["input"].(models.EditCommentInput)), true
1344
1345 case "Mutation.newBug":
1346 if e.complexity.Mutation.NewBug == nil {
1347 break
1348 }
1349
1350 args, err := ec.field_Mutation_newBug_args(context.TODO(), rawArgs)
1351 if err != nil {
1352 return 0, false
1353 }
1354
1355 return e.complexity.Mutation.NewBug(childComplexity, args["input"].(models.NewBugInput)), true
1356
1357 case "Mutation.openBug":
1358 if e.complexity.Mutation.OpenBug == nil {
1359 break
1360 }
1361
1362 args, err := ec.field_Mutation_openBug_args(context.TODO(), rawArgs)
1363 if err != nil {
1364 return 0, false
1365 }
1366
1367 return e.complexity.Mutation.OpenBug(childComplexity, args["input"].(models.OpenBugInput)), true
1368
1369 case "Mutation.setTitle":
1370 if e.complexity.Mutation.SetTitle == nil {
1371 break
1372 }
1373
1374 args, err := ec.field_Mutation_setTitle_args(context.TODO(), rawArgs)
1375 if err != nil {
1376 return 0, false
1377 }
1378
1379 return e.complexity.Mutation.SetTitle(childComplexity, args["input"].(models.SetTitleInput)), true
1380
1381 case "NewBugPayload.bug":
1382 if e.complexity.NewBugPayload.Bug == nil {
1383 break
1384 }
1385
1386 return e.complexity.NewBugPayload.Bug(childComplexity), true
1387
1388 case "NewBugPayload.clientMutationId":
1389 if e.complexity.NewBugPayload.ClientMutationID == nil {
1390 break
1391 }
1392
1393 return e.complexity.NewBugPayload.ClientMutationID(childComplexity), true
1394
1395 case "NewBugPayload.operation":
1396 if e.complexity.NewBugPayload.Operation == nil {
1397 break
1398 }
1399
1400 return e.complexity.NewBugPayload.Operation(childComplexity), true
1401
1402 case "OpenBugPayload.bug":
1403 if e.complexity.OpenBugPayload.Bug == nil {
1404 break
1405 }
1406
1407 return e.complexity.OpenBugPayload.Bug(childComplexity), true
1408
1409 case "OpenBugPayload.clientMutationId":
1410 if e.complexity.OpenBugPayload.ClientMutationID == nil {
1411 break
1412 }
1413
1414 return e.complexity.OpenBugPayload.ClientMutationID(childComplexity), true
1415
1416 case "OpenBugPayload.operation":
1417 if e.complexity.OpenBugPayload.Operation == nil {
1418 break
1419 }
1420
1421 return e.complexity.OpenBugPayload.Operation(childComplexity), true
1422
1423 case "OperationConnection.edges":
1424 if e.complexity.OperationConnection.Edges == nil {
1425 break
1426 }
1427
1428 return e.complexity.OperationConnection.Edges(childComplexity), true
1429
1430 case "OperationConnection.nodes":
1431 if e.complexity.OperationConnection.Nodes == nil {
1432 break
1433 }
1434
1435 return e.complexity.OperationConnection.Nodes(childComplexity), true
1436
1437 case "OperationConnection.pageInfo":
1438 if e.complexity.OperationConnection.PageInfo == nil {
1439 break
1440 }
1441
1442 return e.complexity.OperationConnection.PageInfo(childComplexity), true
1443
1444 case "OperationConnection.totalCount":
1445 if e.complexity.OperationConnection.TotalCount == nil {
1446 break
1447 }
1448
1449 return e.complexity.OperationConnection.TotalCount(childComplexity), true
1450
1451 case "OperationEdge.cursor":
1452 if e.complexity.OperationEdge.Cursor == nil {
1453 break
1454 }
1455
1456 return e.complexity.OperationEdge.Cursor(childComplexity), true
1457
1458 case "OperationEdge.node":
1459 if e.complexity.OperationEdge.Node == nil {
1460 break
1461 }
1462
1463 return e.complexity.OperationEdge.Node(childComplexity), true
1464
1465 case "PageInfo.endCursor":
1466 if e.complexity.PageInfo.EndCursor == nil {
1467 break
1468 }
1469
1470 return e.complexity.PageInfo.EndCursor(childComplexity), true
1471
1472 case "PageInfo.hasNextPage":
1473 if e.complexity.PageInfo.HasNextPage == nil {
1474 break
1475 }
1476
1477 return e.complexity.PageInfo.HasNextPage(childComplexity), true
1478
1479 case "PageInfo.hasPreviousPage":
1480 if e.complexity.PageInfo.HasPreviousPage == nil {
1481 break
1482 }
1483
1484 return e.complexity.PageInfo.HasPreviousPage(childComplexity), true
1485
1486 case "PageInfo.startCursor":
1487 if e.complexity.PageInfo.StartCursor == nil {
1488 break
1489 }
1490
1491 return e.complexity.PageInfo.StartCursor(childComplexity), true
1492
1493 case "Query.repository":
1494 if e.complexity.Query.Repository == nil {
1495 break
1496 }
1497
1498 args, err := ec.field_Query_repository_args(context.TODO(), rawArgs)
1499 if err != nil {
1500 return 0, false
1501 }
1502
1503 return e.complexity.Query.Repository(childComplexity, args["ref"].(*string)), true
1504
1505 case "Repository.allBugs":
1506 if e.complexity.Repository.AllBugs == nil {
1507 break
1508 }
1509
1510 args, err := ec.field_Repository_allBugs_args(context.TODO(), rawArgs)
1511 if err != nil {
1512 return 0, false
1513 }
1514
1515 return e.complexity.Repository.AllBugs(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string)), true
1516
1517 case "Repository.allIdentities":
1518 if e.complexity.Repository.AllIdentities == nil {
1519 break
1520 }
1521
1522 args, err := ec.field_Repository_allIdentities_args(context.TODO(), rawArgs)
1523 if err != nil {
1524 return 0, false
1525 }
1526
1527 return e.complexity.Repository.AllIdentities(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1528
1529 case "Repository.bug":
1530 if e.complexity.Repository.Bug == nil {
1531 break
1532 }
1533
1534 args, err := ec.field_Repository_bug_args(context.TODO(), rawArgs)
1535 if err != nil {
1536 return 0, false
1537 }
1538
1539 return e.complexity.Repository.Bug(childComplexity, args["prefix"].(string)), true
1540
1541 case "Repository.identity":
1542 if e.complexity.Repository.Identity == nil {
1543 break
1544 }
1545
1546 args, err := ec.field_Repository_identity_args(context.TODO(), rawArgs)
1547 if err != nil {
1548 return 0, false
1549 }
1550
1551 return e.complexity.Repository.Identity(childComplexity, args["prefix"].(string)), true
1552
1553 case "Repository.name":
1554 if e.complexity.Repository.Name == nil {
1555 break
1556 }
1557
1558 return e.complexity.Repository.Name(childComplexity), true
1559
1560 case "Repository.userIdentity":
1561 if e.complexity.Repository.UserIdentity == nil {
1562 break
1563 }
1564
1565 return e.complexity.Repository.UserIdentity(childComplexity), true
1566
1567 case "Repository.validLabels":
1568 if e.complexity.Repository.ValidLabels == nil {
1569 break
1570 }
1571
1572 args, err := ec.field_Repository_validLabels_args(context.TODO(), rawArgs)
1573 if err != nil {
1574 return 0, false
1575 }
1576
1577 return e.complexity.Repository.ValidLabels(childComplexity, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int)), true
1578
1579 case "SetStatusOperation.author":
1580 if e.complexity.SetStatusOperation.Author == nil {
1581 break
1582 }
1583
1584 return e.complexity.SetStatusOperation.Author(childComplexity), true
1585
1586 case "SetStatusOperation.date":
1587 if e.complexity.SetStatusOperation.Date == nil {
1588 break
1589 }
1590
1591 return e.complexity.SetStatusOperation.Date(childComplexity), true
1592
1593 case "SetStatusOperation.id":
1594 if e.complexity.SetStatusOperation.ID == nil {
1595 break
1596 }
1597
1598 return e.complexity.SetStatusOperation.ID(childComplexity), true
1599
1600 case "SetStatusOperation.status":
1601 if e.complexity.SetStatusOperation.Status == nil {
1602 break
1603 }
1604
1605 return e.complexity.SetStatusOperation.Status(childComplexity), true
1606
1607 case "SetStatusTimelineItem.author":
1608 if e.complexity.SetStatusTimelineItem.Author == nil {
1609 break
1610 }
1611
1612 return e.complexity.SetStatusTimelineItem.Author(childComplexity), true
1613
1614 case "SetStatusTimelineItem.date":
1615 if e.complexity.SetStatusTimelineItem.Date == nil {
1616 break
1617 }
1618
1619 return e.complexity.SetStatusTimelineItem.Date(childComplexity), true
1620
1621 case "SetStatusTimelineItem.id":
1622 if e.complexity.SetStatusTimelineItem.ID == nil {
1623 break
1624 }
1625
1626 return e.complexity.SetStatusTimelineItem.ID(childComplexity), true
1627
1628 case "SetStatusTimelineItem.status":
1629 if e.complexity.SetStatusTimelineItem.Status == nil {
1630 break
1631 }
1632
1633 return e.complexity.SetStatusTimelineItem.Status(childComplexity), true
1634
1635 case "SetTitleOperation.author":
1636 if e.complexity.SetTitleOperation.Author == nil {
1637 break
1638 }
1639
1640 return e.complexity.SetTitleOperation.Author(childComplexity), true
1641
1642 case "SetTitleOperation.date":
1643 if e.complexity.SetTitleOperation.Date == nil {
1644 break
1645 }
1646
1647 return e.complexity.SetTitleOperation.Date(childComplexity), true
1648
1649 case "SetTitleOperation.id":
1650 if e.complexity.SetTitleOperation.ID == nil {
1651 break
1652 }
1653
1654 return e.complexity.SetTitleOperation.ID(childComplexity), true
1655
1656 case "SetTitleOperation.title":
1657 if e.complexity.SetTitleOperation.Title == nil {
1658 break
1659 }
1660
1661 return e.complexity.SetTitleOperation.Title(childComplexity), true
1662
1663 case "SetTitleOperation.was":
1664 if e.complexity.SetTitleOperation.Was == nil {
1665 break
1666 }
1667
1668 return e.complexity.SetTitleOperation.Was(childComplexity), true
1669
1670 case "SetTitlePayload.bug":
1671 if e.complexity.SetTitlePayload.Bug == nil {
1672 break
1673 }
1674
1675 return e.complexity.SetTitlePayload.Bug(childComplexity), true
1676
1677 case "SetTitlePayload.clientMutationId":
1678 if e.complexity.SetTitlePayload.ClientMutationID == nil {
1679 break
1680 }
1681
1682 return e.complexity.SetTitlePayload.ClientMutationID(childComplexity), true
1683
1684 case "SetTitlePayload.operation":
1685 if e.complexity.SetTitlePayload.Operation == nil {
1686 break
1687 }
1688
1689 return e.complexity.SetTitlePayload.Operation(childComplexity), true
1690
1691 case "SetTitleTimelineItem.author":
1692 if e.complexity.SetTitleTimelineItem.Author == nil {
1693 break
1694 }
1695
1696 return e.complexity.SetTitleTimelineItem.Author(childComplexity), true
1697
1698 case "SetTitleTimelineItem.date":
1699 if e.complexity.SetTitleTimelineItem.Date == nil {
1700 break
1701 }
1702
1703 return e.complexity.SetTitleTimelineItem.Date(childComplexity), true
1704
1705 case "SetTitleTimelineItem.id":
1706 if e.complexity.SetTitleTimelineItem.ID == nil {
1707 break
1708 }
1709
1710 return e.complexity.SetTitleTimelineItem.ID(childComplexity), true
1711
1712 case "SetTitleTimelineItem.title":
1713 if e.complexity.SetTitleTimelineItem.Title == nil {
1714 break
1715 }
1716
1717 return e.complexity.SetTitleTimelineItem.Title(childComplexity), true
1718
1719 case "SetTitleTimelineItem.was":
1720 if e.complexity.SetTitleTimelineItem.Was == nil {
1721 break
1722 }
1723
1724 return e.complexity.SetTitleTimelineItem.Was(childComplexity), true
1725
1726 case "TimelineItemConnection.edges":
1727 if e.complexity.TimelineItemConnection.Edges == nil {
1728 break
1729 }
1730
1731 return e.complexity.TimelineItemConnection.Edges(childComplexity), true
1732
1733 case "TimelineItemConnection.nodes":
1734 if e.complexity.TimelineItemConnection.Nodes == nil {
1735 break
1736 }
1737
1738 return e.complexity.TimelineItemConnection.Nodes(childComplexity), true
1739
1740 case "TimelineItemConnection.pageInfo":
1741 if e.complexity.TimelineItemConnection.PageInfo == nil {
1742 break
1743 }
1744
1745 return e.complexity.TimelineItemConnection.PageInfo(childComplexity), true
1746
1747 case "TimelineItemConnection.totalCount":
1748 if e.complexity.TimelineItemConnection.TotalCount == nil {
1749 break
1750 }
1751
1752 return e.complexity.TimelineItemConnection.TotalCount(childComplexity), true
1753
1754 case "TimelineItemEdge.cursor":
1755 if e.complexity.TimelineItemEdge.Cursor == nil {
1756 break
1757 }
1758
1759 return e.complexity.TimelineItemEdge.Cursor(childComplexity), true
1760
1761 case "TimelineItemEdge.node":
1762 if e.complexity.TimelineItemEdge.Node == nil {
1763 break
1764 }
1765
1766 return e.complexity.TimelineItemEdge.Node(childComplexity), true
1767
1768 }
1769 return 0, false
1770}
1771
1772func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
1773 rc := graphql.GetOperationContext(ctx)
1774 ec := executionContext{rc, e}
1775 inputUnmarshalMap := graphql.BuildUnmarshalerMap(
1776 ec.unmarshalInputAddCommentAndCloseBugInput,
1777 ec.unmarshalInputAddCommentAndReopenBugInput,
1778 ec.unmarshalInputAddCommentInput,
1779 ec.unmarshalInputChangeLabelInput,
1780 ec.unmarshalInputCloseBugInput,
1781 ec.unmarshalInputEditCommentInput,
1782 ec.unmarshalInputNewBugInput,
1783 ec.unmarshalInputOpenBugInput,
1784 ec.unmarshalInputSetTitleInput,
1785 )
1786 first := true
1787
1788 switch rc.Operation.Operation {
1789 case ast.Query:
1790 return func(ctx context.Context) *graphql.Response {
1791 if !first {
1792 return nil
1793 }
1794 first = false
1795 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
1796 data := ec._Query(ctx, rc.Operation.SelectionSet)
1797 var buf bytes.Buffer
1798 data.MarshalGQL(&buf)
1799
1800 return &graphql.Response{
1801 Data: buf.Bytes(),
1802 }
1803 }
1804 case ast.Mutation:
1805 return func(ctx context.Context) *graphql.Response {
1806 if !first {
1807 return nil
1808 }
1809 first = false
1810 ctx = graphql.WithUnmarshalerMap(ctx, inputUnmarshalMap)
1811 data := ec._Mutation(ctx, rc.Operation.SelectionSet)
1812 var buf bytes.Buffer
1813 data.MarshalGQL(&buf)
1814
1815 return &graphql.Response{
1816 Data: buf.Bytes(),
1817 }
1818 }
1819
1820 default:
1821 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
1822 }
1823}
1824
1825type executionContext struct {
1826 *graphql.OperationContext
1827 *executableSchema
1828}
1829
1830func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
1831 if ec.DisableIntrospection {
1832 return nil, errors.New("introspection disabled")
1833 }
1834 return introspection.WrapSchema(parsedSchema), nil
1835}
1836
1837func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
1838 if ec.DisableIntrospection {
1839 return nil, errors.New("introspection disabled")
1840 }
1841 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
1842}
1843
1844var sources = []*ast.Source{
1845 {Name: "../schema/bug.graphql", Input: `"""Represents a comment on a bug."""
1846type Comment implements Authored {
1847 """The author of this comment."""
1848 author: Identity!
1849
1850 """The message of this comment."""
1851 message: String!
1852
1853 """All media's hash referenced in this comment"""
1854 files: [Hash!]!
1855}
1856
1857type CommentConnection {
1858 edges: [CommentEdge!]!
1859 nodes: [Comment!]!
1860 pageInfo: PageInfo!
1861 totalCount: Int!
1862}
1863
1864type CommentEdge {
1865 cursor: String!
1866 node: Comment!
1867}
1868
1869enum Status {
1870 OPEN
1871 CLOSED
1872}
1873
1874type Bug implements Authored {
1875 """The identifier for this bug"""
1876 id: String!
1877 """The human version (truncated) identifier for this bug"""
1878 humanId: String!
1879 status: Status!
1880 title: String!
1881 labels: [Label!]!
1882 author: Identity!
1883 createdAt: Time!
1884 lastEdit: Time!
1885
1886 """The actors of the bug. Actors are Identity that have interacted with the bug."""
1887 actors(
1888 """Returns the elements in the list that come after the specified cursor."""
1889 after: String
1890 """Returns the elements in the list that come before the specified cursor."""
1891 before: String
1892 """Returns the first _n_ elements from the list."""
1893 first: Int
1894 """Returns the last _n_ elements from the list."""
1895 last: Int
1896 ): IdentityConnection!
1897
1898 """The participants of the bug. Participants are Identity that have created or
1899 added a comment on the bug."""
1900 participants(
1901 """Returns the elements in the list that come after the specified cursor."""
1902 after: String
1903 """Returns the elements in the list that come before the specified cursor."""
1904 before: String
1905 """Returns the first _n_ elements from the list."""
1906 first: Int
1907 """Returns the last _n_ elements from the list."""
1908 last: Int
1909 ): IdentityConnection!
1910
1911 comments(
1912 """Returns the elements in the list that come after the specified cursor."""
1913 after: String
1914 """Returns the elements in the list that come before the specified cursor."""
1915 before: String
1916 """Returns the first _n_ elements from the list."""
1917 first: Int
1918 """Returns the last _n_ elements from the list."""
1919 last: Int
1920 ): CommentConnection!
1921
1922 timeline(
1923 """Returns the elements in the list that come after the specified cursor."""
1924 after: String
1925 """Returns the elements in the list that come before the specified cursor."""
1926 before: String
1927 """Returns the first _n_ elements from the list."""
1928 first: Int
1929 """Returns the last _n_ elements from the list."""
1930 last: Int
1931 ): TimelineItemConnection!
1932
1933 operations(
1934 """Returns the elements in the list that come after the specified cursor."""
1935 after: String
1936 """Returns the elements in the list that come before the specified cursor."""
1937 before: String
1938 """Returns the first _n_ elements from the list."""
1939 first: Int
1940 """Returns the last _n_ elements from the list."""
1941 last: Int
1942 ): OperationConnection!
1943}
1944
1945"""The connection type for Bug."""
1946type BugConnection {
1947 """A list of edges."""
1948 edges: [BugEdge!]!
1949 nodes: [Bug!]!
1950 """Information to aid in pagination."""
1951 pageInfo: PageInfo!
1952 """Identifies the total count of items in the connection."""
1953 totalCount: Int!
1954}
1955
1956"""An edge in a connection."""
1957type BugEdge {
1958 """A cursor for use in pagination."""
1959 cursor: String!
1960 """The item at the end of the edge."""
1961 node: Bug!
1962}
1963`, BuiltIn: false},
1964 {Name: "../schema/identity.graphql", Input: `"""Represents an identity"""
1965type Identity {
1966 """The identifier for this identity"""
1967 id: String!
1968 """The human version (truncated) identifier for this identity"""
1969 humanId: String!
1970 """The name of the person, if known."""
1971 name: String
1972 """The email of the person, if known."""
1973 email: String
1974 """The login of the person, if known."""
1975 login: String
1976 """A non-empty string to display, representing the identity, based on the non-empty values."""
1977 displayName: String!
1978 """An url to an avatar"""
1979 avatarUrl: String
1980 """isProtected is true if the chain of git commits started to be signed.
1981 If that's the case, only signed commit with a valid key for this identity can be added."""
1982 isProtected: Boolean!
1983}
1984
1985type IdentityConnection {
1986 edges: [IdentityEdge!]!
1987 nodes: [Identity!]!
1988 pageInfo: PageInfo!
1989 totalCount: Int!
1990}
1991
1992type IdentityEdge {
1993 cursor: String!
1994 node: Identity!
1995}`, BuiltIn: false},
1996 {Name: "../schema/label.graphql", Input: `"""Label for a bug."""
1997type Label {
1998 """The name of the label."""
1999 name: String!
2000 """Color of the label."""
2001 color: Color!
2002}
2003
2004type LabelConnection {
2005 edges: [LabelEdge!]!
2006 nodes: [Label!]!
2007 pageInfo: PageInfo!
2008 totalCount: Int!
2009}
2010
2011type LabelEdge {
2012 cursor: String!
2013 node: Label!
2014}`, BuiltIn: false},
2015 {Name: "../schema/mutations.graphql", Input: `input NewBugInput {
2016 """A unique identifier for the client performing the mutation."""
2017 clientMutationId: String
2018 """The name of the repository. If not set, the default repository is used."""
2019 repoRef: String
2020 """The title of the new bug."""
2021 title: String!
2022 """The first message of the new bug."""
2023 message: String!
2024 """The collection of file's hash required for the first message."""
2025 files: [Hash!]
2026}
2027
2028type NewBugPayload {
2029 """A unique identifier for the client performing the mutation."""
2030 clientMutationId: String
2031 """The created bug."""
2032 bug: Bug!
2033 """The resulting operation."""
2034 operation: CreateOperation!
2035}
2036
2037input AddCommentInput {
2038 """A unique identifier for the client performing the mutation."""
2039 clientMutationId: String
2040 """The name of the repository. If not set, the default repository is used."""
2041 repoRef: String
2042 """The bug ID's prefix."""
2043 prefix: String!
2044 """The message to be added to the bug."""
2045 message: String!
2046 """The collection of file's hash required for the first message."""
2047 files: [Hash!]
2048}
2049
2050type AddCommentPayload {
2051 """A unique identifier for the client performing the mutation."""
2052 clientMutationId: String
2053 """The affected bug."""
2054 bug: Bug!
2055 """The resulting operation."""
2056 operation: AddCommentOperation!
2057}
2058
2059input AddCommentAndCloseBugInput {
2060 """A unique identifier for the client performing the mutation."""
2061 clientMutationId: String
2062 """The name of the repository. If not set, the default repository is used."""
2063 repoRef: String
2064 """The bug ID's prefix."""
2065 prefix: String!
2066 """The message to be added to the bug."""
2067 message: String!
2068 """The collection of file's hash required for the first message."""
2069 files: [Hash!]
2070}
2071
2072type AddCommentAndCloseBugPayload {
2073 """A unique identifier for the client performing the mutation."""
2074 clientMutationId: String
2075 """The affected bug."""
2076 bug: Bug!
2077 """The resulting AddComment operation."""
2078 commentOperation: AddCommentOperation!
2079 """The resulting SetStatusOperation."""
2080 statusOperation: SetStatusOperation!
2081}
2082
2083input AddCommentAndReopenBugInput {
2084 """A unique identifier for the client performing the mutation."""
2085 clientMutationId: String
2086 """The name of the repository. If not set, the default repository is used."""
2087 repoRef: String
2088 """The bug ID's prefix."""
2089 prefix: String!
2090 """The message to be added to the bug."""
2091 message: String!
2092 """The collection of file's hash required for the first message."""
2093 files: [Hash!]
2094}
2095
2096type AddCommentAndReopenBugPayload {
2097 """A unique identifier for the client performing the mutation."""
2098 clientMutationId: String
2099 """The affected bug."""
2100 bug: Bug!
2101 """The resulting AddComment operation."""
2102 commentOperation: AddCommentOperation!
2103 """The resulting SetStatusOperation."""
2104 statusOperation: SetStatusOperation!
2105}
2106
2107input EditCommentInput {
2108 """A unique identifier for the client performing the mutation."""
2109 clientMutationId: String
2110 """The name of the repository. If not set, the default repository is used."""
2111 repoRef: String
2112 """The bug ID's prefix."""
2113 prefix: String!
2114 """The ID of the comment to be changed."""
2115 target: String!
2116 """The new message to be set."""
2117 message: String!
2118 """The collection of file's hash required for the first message."""
2119 files: [Hash!]
2120}
2121
2122type EditCommentPayload {
2123 """A unique identifier for the client performing the mutation."""
2124 clientMutationId: String
2125 """The affected bug."""
2126 bug: Bug!
2127 """The resulting operation."""
2128 operation: EditCommentOperation!
2129}
2130
2131input ChangeLabelInput {
2132 """A unique identifier for the client performing the mutation."""
2133 clientMutationId: String
2134 """The name of the repository. If not set, the default repository is used."""
2135 repoRef: String
2136 """The bug ID's prefix."""
2137 prefix: String!
2138 """The list of label to add."""
2139 added: [String!]
2140 """The list of label to remove."""
2141 Removed: [String!]
2142}
2143
2144enum LabelChangeStatus {
2145 ADDED
2146 REMOVED
2147 DUPLICATE_IN_OP
2148 ALREADY_SET
2149 DOESNT_EXIST
2150}
2151
2152type LabelChangeResult {
2153 """The source label."""
2154 label: Label!
2155 """The effect this label had."""
2156 status: LabelChangeStatus!
2157}
2158
2159type ChangeLabelPayload {
2160 """A unique identifier for the client performing the mutation."""
2161 clientMutationId: String
2162 """The affected bug."""
2163 bug: Bug!
2164 """The resulting operation."""
2165 operation: LabelChangeOperation!
2166 """The effect each source label had."""
2167 results: [LabelChangeResult]!
2168}
2169
2170input OpenBugInput {
2171 """A unique identifier for the client performing the mutation."""
2172 clientMutationId: String
2173 """The name of the repository. If not set, the default repository is used."""
2174 repoRef: String
2175 """The bug ID's prefix."""
2176 prefix: String!
2177}
2178
2179type OpenBugPayload {
2180 """A unique identifier for the client performing the mutation."""
2181 clientMutationId: String
2182 """The affected bug."""
2183 bug: Bug!
2184 """The resulting operation."""
2185 operation: SetStatusOperation!
2186}
2187
2188input CloseBugInput {
2189 """A unique identifier for the client performing the mutation."""
2190 clientMutationId: String
2191 """The name of the repository. If not set, the default repository is used."""
2192 repoRef: String
2193 """The bug ID's prefix."""
2194 prefix: String!
2195}
2196
2197type CloseBugPayload {
2198 """A unique identifier for the client performing the mutation."""
2199 clientMutationId: String
2200 """The affected bug."""
2201 bug: Bug!
2202 """The resulting operation."""
2203 operation: SetStatusOperation!
2204}
2205
2206input SetTitleInput {
2207 """A unique identifier for the client performing the mutation."""
2208 clientMutationId: String
2209 """The name of the repository. If not set, the default repository is used."""
2210 repoRef: String
2211 """The bug ID's prefix."""
2212 prefix: String!
2213 """The new title."""
2214 title: String!
2215}
2216
2217type SetTitlePayload {
2218 """A unique identifier for the client performing the mutation."""
2219 clientMutationId: String
2220 """The affected bug."""
2221 bug: Bug!
2222 """The resulting operation"""
2223 operation: SetTitleOperation!
2224}
2225`, BuiltIn: false},
2226 {Name: "../schema/operations.graphql", Input: `"""An operation applied to a bug."""
2227interface Operation {
2228 """The identifier of the operation"""
2229 id: String!
2230 """The operations author."""
2231 author: Identity!
2232 """The datetime when this operation was issued."""
2233 date: Time!
2234}
2235
2236# Connection
2237
2238"""The connection type for an Operation"""
2239type OperationConnection {
2240 edges: [OperationEdge!]!
2241 nodes: [Operation!]!
2242 pageInfo: PageInfo!
2243 totalCount: Int!
2244}
2245
2246"""Represent an Operation"""
2247type OperationEdge {
2248 cursor: String!
2249 node: Operation!
2250}
2251
2252# Operations
2253
2254type CreateOperation implements Operation & Authored {
2255 """The identifier of the operation"""
2256 id: String!
2257 """The author of this object."""
2258 author: Identity!
2259 """The datetime when this operation was issued."""
2260 date: Time!
2261
2262 title: String!
2263 message: String!
2264 files: [Hash!]!
2265}
2266
2267type SetTitleOperation implements Operation & Authored {
2268 """The identifier of the operation"""
2269 id: String!
2270 """The author of this object."""
2271 author: Identity!
2272 """The datetime when this operation was issued."""
2273 date: Time!
2274
2275 title: String!
2276 was: String!
2277}
2278
2279type AddCommentOperation implements Operation & Authored {
2280 """The identifier of the operation"""
2281 id: String!
2282 """The author of this object."""
2283 author: Identity!
2284 """The datetime when this operation was issued."""
2285 date: Time!
2286
2287 message: String!
2288 files: [Hash!]!
2289}
2290
2291type EditCommentOperation implements Operation & Authored {
2292 """The identifier of the operation"""
2293 id: String!
2294 """The author of this object."""
2295 author: Identity!
2296 """The datetime when this operation was issued."""
2297 date: Time!
2298
2299 target: String!
2300 message: String!
2301 files: [Hash!]!
2302}
2303
2304type SetStatusOperation implements Operation & Authored {
2305 """The identifier of the operation"""
2306 id: String!
2307 """The author of this object."""
2308 author: Identity!
2309 """The datetime when this operation was issued."""
2310 date: Time!
2311
2312 status: Status!
2313}
2314
2315type LabelChangeOperation implements Operation & Authored {
2316 """The identifier of the operation"""
2317 id: String!
2318 """The author of this object."""
2319 author: Identity!
2320 """The datetime when this operation was issued."""
2321 date: Time!
2322
2323 added: [Label!]!
2324 removed: [Label!]!
2325}
2326`, BuiltIn: false},
2327 {Name: "../schema/repository.graphql", Input: `
2328type Repository {
2329 """The name of the repository"""
2330 name: String
2331
2332 """All the bugs"""
2333 allBugs(
2334 """Returns the elements in the list that come after the specified cursor."""
2335 after: String
2336 """Returns the elements in the list that come before the specified cursor."""
2337 before: String
2338 """Returns the first _n_ elements from the list."""
2339 first: Int
2340 """Returns the last _n_ elements from the list."""
2341 last: Int
2342 """A query to select and order bugs."""
2343 query: String
2344 ): BugConnection!
2345
2346 bug(prefix: String!): Bug
2347
2348 """All the identities"""
2349 allIdentities(
2350 """Returns the elements in the list that come after the specified cursor."""
2351 after: String
2352 """Returns the elements in the list that come before the specified cursor."""
2353 before: String
2354 """Returns the first _n_ elements from the list."""
2355 first: Int
2356 """Returns the last _n_ elements from the list."""
2357 last: Int
2358 ): IdentityConnection!
2359
2360 identity(prefix: String!): Identity
2361
2362 """The identity created or selected by the user as its own"""
2363 userIdentity: Identity
2364
2365 """List of valid labels."""
2366 validLabels(
2367 """Returns the elements in the list that come after the specified cursor."""
2368 after: String
2369 """Returns the elements in the list that come before the specified cursor."""
2370 before: String
2371 """Returns the first _n_ elements from the list."""
2372 first: Int
2373 """Returns the last _n_ elements from the list."""
2374 last: Int
2375 ): LabelConnection!
2376}
2377`, BuiltIn: false},
2378 {Name: "../schema/root.graphql", Input: `type Query {
2379 """Access a repository by reference/name. If no ref is given, the default repository is returned if any."""
2380 repository(ref: String): Repository
2381}
2382
2383type Mutation {
2384 """Create a new bug"""
2385 newBug(input: NewBugInput!): NewBugPayload!
2386 """Add a new comment to a bug"""
2387 addComment(input: AddCommentInput!): AddCommentPayload!
2388 """Add a new comment to a bug and close it"""
2389 addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload!
2390 """Add a new comment to a bug and reopen it"""
2391 addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload!
2392 """Change a comment of a bug"""
2393 editComment(input: EditCommentInput!): EditCommentPayload!
2394 """Add or remove a set of label on a bug"""
2395 changeLabels(input: ChangeLabelInput): ChangeLabelPayload!
2396 """Change a bug's status to open"""
2397 openBug(input: OpenBugInput!): OpenBugPayload!
2398 """Change a bug's status to closed"""
2399 closeBug(input: CloseBugInput!): CloseBugPayload!
2400 """Change a bug's title"""
2401 setTitle(input: SetTitleInput!): SetTitlePayload!
2402}
2403`, BuiltIn: false},
2404 {Name: "../schema/timeline.graphql", Input: `"""An item in the timeline of events"""
2405interface TimelineItem {
2406 """The identifier of the source operation"""
2407 id: String!
2408}
2409
2410"""CommentHistoryStep hold one version of a message in the history"""
2411type CommentHistoryStep {
2412 message: String!
2413 date: Time!
2414}
2415
2416# Connection
2417
2418"""The connection type for TimelineItem"""
2419type TimelineItemConnection {
2420 edges: [TimelineItemEdge!]!
2421 nodes: [TimelineItem!]!
2422 pageInfo: PageInfo!
2423 totalCount: Int!
2424}
2425
2426"""Represent a TimelineItem"""
2427type TimelineItemEdge {
2428 cursor: String!
2429 node: TimelineItem!
2430}
2431
2432# Items
2433
2434"""CreateTimelineItem is a TimelineItem that represent the creation of a bug and its message edition history"""
2435type CreateTimelineItem implements TimelineItem & Authored {
2436 """The identifier of the source operation"""
2437 id: String!
2438 author: Identity!
2439 message: String!
2440 messageIsEmpty: Boolean!
2441 files: [Hash!]!
2442 createdAt: Time!
2443 lastEdit: Time!
2444 edited: Boolean!
2445 history: [CommentHistoryStep!]!
2446}
2447
2448"""AddCommentTimelineItem is a TimelineItem that represent a Comment and its edition history"""
2449type AddCommentTimelineItem implements TimelineItem & Authored {
2450 """The identifier of the source operation"""
2451 id: String!
2452 author: Identity!
2453 message: String!
2454 messageIsEmpty: Boolean!
2455 files: [Hash!]!
2456 createdAt: Time!
2457 lastEdit: Time!
2458 edited: Boolean!
2459 history: [CommentHistoryStep!]!
2460}
2461
2462"""LabelChangeTimelineItem is a TimelineItem that represent a change in the labels of a bug"""
2463type LabelChangeTimelineItem implements TimelineItem & Authored {
2464 """The identifier of the source operation"""
2465 id: String!
2466 author: Identity!
2467 date: Time!
2468 added: [Label!]!
2469 removed: [Label!]!
2470}
2471
2472"""SetStatusTimelineItem is a TimelineItem that represent a change in the status of a bug"""
2473type SetStatusTimelineItem implements TimelineItem & Authored {
2474 """The identifier of the source operation"""
2475 id: String!
2476 author: Identity!
2477 date: Time!
2478 status: Status!
2479}
2480
2481"""LabelChangeTimelineItem is a TimelineItem that represent a change in the title of a bug"""
2482type SetTitleTimelineItem implements TimelineItem & Authored {
2483 """The identifier of the source operation"""
2484 id: String!
2485 author: Identity!
2486 date: Time!
2487 title: String!
2488 was: String!
2489}
2490`, BuiltIn: false},
2491 {Name: "../schema/types.graphql", Input: `scalar Time
2492scalar Hash
2493
2494"""Defines a color by red, green and blue components."""
2495type Color {
2496 """Red component of the color."""
2497 R: Int!
2498 """Green component of the color."""
2499 G: Int!
2500 """Blue component of the color."""
2501 B: Int!
2502}
2503
2504"""Information about pagination in a connection."""
2505type PageInfo {
2506 """When paginating forwards, are there more items?"""
2507 hasNextPage: Boolean!
2508 """When paginating backwards, are there more items?"""
2509 hasPreviousPage: Boolean!
2510 """When paginating backwards, the cursor to continue."""
2511 startCursor: String!
2512 """When paginating forwards, the cursor to continue."""
2513 endCursor: String!
2514}
2515
2516"""An object that has an author."""
2517interface Authored {
2518 """The author of this object."""
2519 author: Identity!
2520}
2521`, BuiltIn: false},
2522}
2523var parsedSchema = gqlparser.MustLoadSchema(sources...)