master
1// DO NOT EDIT. This is a generated file. Instead of this file, edit "comments.graphql".
2
3const DiscussionComment = `#graphql
4fragment DiscussionComment on DiscussionComment {
5 id
6 url
7 author {
8 login
9 }
10 discussion {
11 number
12 repository {
13 nameWithOwner
14 }
15 author {
16 login
17 }
18 }
19 body
20 createdAt
21 updatedAt
22 editor {
23 login
24 }
25 reactionsTotal: reactions {
26 totalCount
27 }
28}`
29
30export type DiscussionComment = {
31 id: string
32 url: string
33 author: {
34 login: string
35 } | null
36 discussion: {
37 number: number
38 repository: {
39 nameWithOwner: string
40 }
41 author: {
42 login: string
43 } | null
44 } | null
45 body: string
46 createdAt: string
47 updatedAt: string
48 editor: {
49 login: string
50 } | null
51 reactionsTotal: {
52 totalCount: number
53 }
54}
55
56const IssueComment = `#graphql
57fragment IssueComment on IssueComment {
58 id
59 url
60 author {
61 login
62 }
63 repository {
64 nameWithOwner
65 }
66 issue {
67 number
68 author {
69 login
70 }
71 }
72 body
73 createdAt
74 updatedAt
75 editor {
76 login
77 }
78 reactionsTotal: reactions {
79 totalCount
80 }
81}`
82
83export type IssueComment = {
84 id: string
85 url: string
86 author: {
87 login: string
88 } | null
89 repository: {
90 nameWithOwner: string
91 }
92 issue: {
93 number: number
94 author: {
95 login: string
96 } | null
97 }
98 body: string
99 createdAt: string
100 updatedAt: string
101 editor: {
102 login: string
103 } | null
104 reactionsTotal: {
105 totalCount: number
106 }
107}
108
109export const DiscussionCommentsQuery = `#graphql
110${DiscussionComment}
111query DiscussionCommentsQuery($login: String!, $num: Int = 100, $cursor: String) {
112 user(login: $login) {
113 repositoryDiscussionComments(first: $num, after: $cursor) {
114 totalCount
115 nodes {
116 ...DiscussionComment
117 }
118 pageInfo {
119 hasNextPage
120 endCursor
121 }
122 }
123 }
124 rateLimit {
125 limit
126 cost
127 remaining
128 resetAt
129 }
130}` as string & DiscussionCommentsQuery
131
132export type DiscussionCommentsQuery = (vars: {
133 login: string
134 num?: number | null
135 cursor?: string | null
136}) => {
137 user: {
138 repositoryDiscussionComments: {
139 totalCount: number
140 nodes: Array<{} & DiscussionComment> | null
141 pageInfo: {
142 hasNextPage: boolean
143 endCursor: string | null
144 }
145 }
146 } | null
147 rateLimit: {
148 limit: number
149 cost: number
150 remaining: number
151 resetAt: string
152 } | null
153}
154
155export const IssueCommentsQuery = `#graphql
156${IssueComment}
157query IssueCommentsQuery($login: String!, $num: Int = 100, $cursor: String) {
158 user(login: $login) {
159 issueComments(first: $num, after: $cursor) {
160 totalCount
161 nodes {
162 ...IssueComment
163 }
164 pageInfo {
165 hasNextPage
166 endCursor
167 }
168 }
169 }
170 rateLimit {
171 limit
172 cost
173 remaining
174 resetAt
175 }
176}` as string & IssueCommentsQuery
177
178export type IssueCommentsQuery = (vars: {
179 login: string
180 num?: number | null
181 cursor?: string | null
182}) => {
183 user: {
184 issueComments: {
185 totalCount: number
186 nodes: Array<{} & IssueComment> | null
187 pageInfo: {
188 hasNextPage: boolean
189 endCursor: string | null
190 }
191 }
192 } | null
193 rateLimit: {
194 limit: number
195 cost: number
196 remaining: number
197 resetAt: string
198 } | null
199}