aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/models')
-rw-r--r--graphql/models/edges.go5
-rw-r--r--graphql/models/gen_models.go12
2 files changed, 17 insertions, 0 deletions
diff --git a/graphql/models/edges.go b/graphql/models/edges.go
index 7de76edf..1dc42583 100644
--- a/graphql/models/edges.go
+++ b/graphql/models/edges.go
@@ -14,3 +14,8 @@ func (e BugEdge) GetCursor() string {
func (e CommentEdge) GetCursor() string {
return e.Cursor
}
+
+// GetCursor return the cursor entry of an edge
+func (e TimelineItemEdge) GetCursor() string {
+ return e.Cursor
+}
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index 23a25814..849b1842 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -59,6 +59,18 @@ type PageInfo struct {
EndCursor string `json:"endCursor"`
}
+type TimelineItemConnection struct {
+ Edges []TimelineItemEdge `json:"edges"`
+ Nodes []bug.TimelineItem `json:"nodes"`
+ PageInfo PageInfo `json:"pageInfo"`
+ TotalCount int `json:"totalCount"`
+}
+
+type TimelineItemEdge struct {
+ Cursor string `json:"cursor"`
+ Node bug.TimelineItem `json:"node"`
+}
+
type Status string
const (