From 36ebbe0cf4078070c3a6710f2e1f781c03de3d1a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 29 Sep 2018 20:58:25 +0200 Subject: graphql: expose the new Timeline --- graphql/models/gen_models.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'graphql/models/gen_models.go') 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 ( -- cgit