Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

issues.graphql.ts

1,029 lines43.4 KB

1// Generated by @effect/graphql-generator from issues.graphql. Do not edit.
2import { GraphQL, GraphQLGroup } from "effect/graphql"
3import * as Schema from "effect/Schema"
4import * as Shared from "../../schema/github.graphql.ts"
5​
6/** A user is an individual's account on GitHub that owns repositories and can make new content. */
7export const AuthorUser = Schema.Struct({
8 __typename: Schema.Literal("User"),
9 /** The username used to login. */
10 login: Schema.String,
11 /** A URL pointing to the user's public avatar. */
12 avatarUrl: Shared.URI,
13 /** The user's public profile name. */
14 name: Schema.NullOr(Schema.String)
15})
16export interface AuthorUser extends Schema.Struct.Type<typeof AuthorUser.fields> {}
17​
18/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
19export const ActorOther = Schema.Struct({
20 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),
21 /** The username of the actor. */
22 login: Schema.String,
23 /** A URL pointing to the actor's public avatar. */
24 avatarUrl: Shared.URI
25})
26export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}
27​
28/**
29 * `fragment IssueRow on Issue`
30 *
31 * An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
32 */
33export const IssueRow = Schema.Struct({
34 /** Identifies the issue number. */
35 number: Shared.Int,
36 /** Identifies the issue title. */
37 title: Schema.String,
38 /** The HTTP URL for this issue */
39 url: Shared.URI,
40 /** Identifies the state of the issue. */
41 state: GraphQL.enumLiterals(Shared.IssueState.literals),
42 /** Identifies the reason for the issue state. */
43 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals)),
44 /** Identifies the date and time when the object was created. */
45 createdAt: Shared.DateTime,
46 /** Identifies the date and time when the object was last updated. */
47 updatedAt: Shared.DateTime,
48 /** Identifies the date and time when the object was closed. */
49 closedAt: Schema.NullOr(Shared.DateTime),
50 /** The actor who authored the comment. */
51 author: Schema.NullOr(Schema.Union([
52 AuthorUser,
53 ActorOther
54 ]))
55})
56export interface IssueRow extends Schema.Struct.Type<typeof IssueRow.fields> {}
57​
58/** Information about pagination in a connection. */
59export const SearchPageInfoPageInfo = Schema.Struct({
60 /** When paginating forwards, are there more items? */
61 hasNextPage: Schema.Boolean,
62 /** When paginating forwards, the cursor to continue. */
63 endCursor: Schema.NullOr(Schema.String)
64})
65export interface SearchPageInfoPageInfo extends Schema.Struct.Type<typeof SearchPageInfoPageInfo.fields> {}
66​
67/** A user is an individual's account on GitHub that owns repositories and can make new content. */
68export const AssigneesNodesUser = Schema.Struct({
69 /** The username used to login. */
70 login: Schema.String,
71 /** The user's public profile name. */
72 name: Schema.NullOr(Schema.String),
73 /** A URL pointing to the user's public avatar. */
74 avatarUrl: Shared.URI
75})
76export interface AssigneesNodesUser extends Schema.Struct.Type<typeof AssigneesNodesUser.fields> {}
77​
78/** A list of users. */
79export const NodesAssigneesUserConnection = Schema.Struct({
80 /** A list of nodes. */
81 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
82})
83export interface NodesAssigneesUserConnection extends Schema.Struct.Type<typeof NodesAssigneesUserConnection.fields> {}
84​
85/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
86export const NodesLabelsNodesLabel = Schema.Struct({
87 /** Identifies the label name. */
88 name: Schema.String,
89 /** Identifies the label color. */
90 color: Schema.String
91})
92export interface NodesLabelsNodesLabel extends Schema.Struct.Type<typeof NodesLabelsNodesLabel.fields> {}
93​
94/** The connection type for Label. */
95export const NodesLabelsLabelConnection = Schema.Struct({
96 /** A list of nodes. */
97 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
98})
99export interface NodesLabelsLabelConnection extends Schema.Struct.Type<typeof NodesLabelsLabelConnection.fields> {}
100​
101/** The connection type for IssueComment. */
102export const NodesCommentsIssueCommentConnection = Schema.Struct({
103 /** Identifies the total count of items in the connection. */
104 totalCount: Shared.Int
105})
106export interface NodesCommentsIssueCommentConnection extends Schema.Struct.Type<typeof NodesCommentsIssueCommentConnection.fields> {}
107​
108/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
109export const NodesIssue = Schema.Struct({
110 __typename: Schema.Literal("Issue"),
111 ...IssueRow.fields,
112 /** A list of Users assigned to this object. */
113 assignees: NodesAssigneesUserConnection,
114 /** A list of labels associated with the object. */
115 labels: Schema.NullOr(NodesLabelsLabelConnection),
116 /** A list of comments associated with the Issue. */
117 comments: NodesCommentsIssueCommentConnection
118})
119export interface NodesIssue extends Schema.Struct.Type<typeof NodesIssue.fields> {}
120​
121/** The results of a search. */
122export const SearchResultItemOther = Schema.Struct({
123 __typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["Issue"])
124})
125export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {}
126​
127/**
128 * A list of results that matched against a search query. Regardless of the number
129 * of matches, a maximum of 1,000 results will be available across all types,
130 * potentially split across many pages.
131 */
132export const SearchResultItemConnection = Schema.Struct({
133 /** Information to aid in pagination. */
134 pageInfo: SearchPageInfoPageInfo,
135 /** A list of nodes. */
136 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
137 NodesIssue,
138 SearchResultItemOther
139 ]))))
140})
141export interface SearchResultItemConnection extends Schema.Struct.Type<typeof SearchResultItemConnection.fields> {}
142​
143/** `query IssueSearch` */
144export const IssueSearch = GraphQL.query("IssueSearch", {
145 document: {
146 variables: [
147 { name: "q", body: "String!" },
148 { name: "cursor", body: "String" },
149 { name: "rows", body: "Int!" }
150 ],
151 selections: [
152 { name: "search", body: ["(query:$", "q", " type:ISSUE first:$", "rows", " after:$", "cursor", "){pageInfo{hasNextPage endCursor}nodes{__typename...on Issue{...IssueRow assignees(first:20){nodes{login name avatarUrl}}labels(first:20){nodes{name color}}comments{totalCount}}}}"] }
153 ],
154 fragments: [
155 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] }
156 ]
157 },
158 variables: {
159 q: Schema.String,
160 cursor: Schema.optional(Schema.NullOr(Schema.String)),
161 rows: Shared.Int
162 },
163 result: Schema.Struct({
164 /** Perform a search across resources, returning a maximum of 1,000 results. */
165 search: SearchResultItemConnection
166 })
167})
168export declare namespace IssueSearch {
169 export type Variables = typeof IssueSearch.variables.Type
170 export type Result = typeof IssueSearch.result.Type
172​
173/** A user is an individual's account on GitHub that owns repositories and can make new content. */
174export const ViewerUser = Schema.Struct({
175 /** The username used to login. */
176 login: Schema.String
177})
178export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
179​
180/** A list of users. */
181export const IssueAssigneesUserConnection = Schema.Struct({
182 /** Information to aid in pagination. */
183 pageInfo: SearchPageInfoPageInfo,
184 /** A list of nodes. */
185 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
186})
187export interface IssueAssigneesUserConnection extends Schema.Struct.Type<typeof IssueAssigneesUserConnection.fields> {}
188​
189/** The connection type for Label. */
190export const IssueLabelsLabelConnection = Schema.Struct({
191 /** Information to aid in pagination. */
192 pageInfo: SearchPageInfoPageInfo,
193 /** A list of nodes. */
194 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
195})
196export interface IssueLabelsLabelConnection extends Schema.Struct.Type<typeof IssueLabelsLabelConnection.fields> {}
197​
198/** A user is an individual's account on GitHub that owns repositories and can make new content. */
199export const ReactorsNodesUser = Schema.Struct({
200 __typename: Schema.Literal("User"),
201 /** The username used to login. */
202 login: Schema.String
203})
204export interface ReactorsNodesUser extends Schema.Struct.Type<typeof ReactorsNodesUser.fields> {}
205​
206/** A special type of user which takes actions on behalf of GitHub Apps. */
207export const Bot = Schema.Struct({
208 __typename: Schema.Literal("Bot"),
209 /** The username of the actor. */
210 login: Schema.String
211})
212export interface Bot extends Schema.Struct.Type<typeof Bot.fields> {}
213​
214/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
215export const Organization = Schema.Struct({
216 __typename: Schema.Literal("Organization"),
217 /** The organization's login name. */
218 login: Schema.String
219})
220export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
221​
222/** A placeholder user for attribution of imported data on GitHub. */
223export const Mannequin = Schema.Struct({
224 __typename: Schema.Literal("Mannequin"),
225 /** The username of the actor. */
226 login: Schema.String
227})
228export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
229​
230/** Types that can be assigned to reactions. */
231export const ReactorOther = Schema.Struct({
232 __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
233})
234export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
235​
236/** The connection type for Reactor. */
237export const ReactorConnection = Schema.Struct({
238 /** Identifies the total count of items in the connection. */
239 totalCount: Shared.Int,
240 /** A list of nodes. */
241 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
242 ReactorsNodesUser,
243 Bot,
244 Organization,
245 Mannequin,
246 ReactorOther
247 ]))))
248})
249export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
250​
251/** A group of emoji reactions to a particular piece of content. */
252export const ReactionGroup = Schema.Struct({
253 /** Identifies the emoji reaction. */
254 content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
255 /** Whether or not the authenticated user has left a reaction on the subject. */
256 viewerHasReacted: Schema.Boolean,
257 /** Reactors to the reaction subject with the emotion represented by this reaction group. */
258 reactors: ReactorConnection
259})
260export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
261​
262/** Information about pagination in a connection. */
263export const CommentsPageInfoPageInfo = Schema.Struct({
264 /** When paginating backwards, are there more items? */
265 hasPreviousPage: Schema.Boolean,
266 /** When paginating backwards, the cursor to continue. */
267 startCursor: Schema.NullOr(Schema.String)
268})
269export interface CommentsPageInfoPageInfo extends Schema.Struct.Type<typeof CommentsPageInfoPageInfo.fields> {}
270​
271/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
272export const Actor = Schema.Struct({
273 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
274 /** The username of the actor. */
275 login: Schema.String,
276 /** A URL pointing to the actor's public avatar. */
277 avatarUrl: Shared.URI
278})
279export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
280​
281/** Represents a comment on an Issue. */
282export const NodesIssueComment = Schema.Struct({
283 /** The Node ID of the IssueComment object */
284 id: Shared.ID,
285 /** The actor who authored the comment. */
286 author: Schema.NullOr(Actor),
287 /** The body as Markdown. */
288 body: Schema.String,
289 /** Identifies the date and time when the object was created. */
290 createdAt: Shared.DateTime,
291 /** The HTTP URL for this issue comment */
292 url: Shared.URI,
293 /** A list of reactions grouped by content left on the subject. */
294 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
295})
296export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {}
297​
298/** The connection type for IssueComment. */
299export const IssueDetailRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
300 /** Identifies the total count of items in the connection. */
301 totalCount: Shared.Int,
302 /** Information to aid in pagination. */
303 pageInfo: CommentsPageInfoPageInfo,
304 /** A list of nodes. */
305 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
306})
307export interface IssueDetailRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueCommentsIssueCommentConnection.fields> {}
308​
309/** A repository contains the content for a project. */
310export const NodesRepositoryRepository = Schema.Struct({
311 /** The repository's name with owner. */
312 nameWithOwner: Schema.String
313})
314export interface NodesRepositoryRepository extends Schema.Struct.Type<typeof NodesRepositoryRepository.fields> {}
315​
316/** A repository pull request. */
317export const NodesPullRequest = Schema.Struct({
318 /** Identifies the pull request number. */
319 number: Shared.Int,
320 /** Identifies the pull request title. */
321 title: Schema.String,
322 /** The HTTP URL for this pull request. */
323 url: Shared.URI,
324 /** Identifies the state of the pull request. */
325 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
326 /** Identifies if the pull request is a draft. */
327 isDraft: Schema.Boolean,
328 /** The repository associated with this node. */
329 repository: NodesRepositoryRepository
330})
331export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {}
332​
333/** The connection type for PullRequest. */
334export const PullRequestConnection = Schema.Struct({
335 /** A list of nodes. */
336 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest)))
337})
338export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}
339​
340/** Represents a 'closed' event on any `Closable`. */
341export const ClosedEvent = Schema.Struct({
342 __typename: Schema.Literal("ClosedEvent"),
343 /** The Node ID of the ClosedEvent object */
344 id: Shared.ID,
345 /** Identifies the date and time when the object was created. */
346 createdAt: Shared.DateTime,
347 /** Identifies the actor who performed the event. */
348 actor: Schema.NullOr(Actor)
349})
350export interface ClosedEvent extends Schema.Struct.Type<typeof ClosedEvent.fields> {}
351​
352/** Represents a 'reopened' event on any `Closable`. */
353export const ReopenedEvent = Schema.Struct({
354 __typename: Schema.Literal("ReopenedEvent"),
355 /** The Node ID of the ReopenedEvent object */
356 id: Shared.ID,
357 /** Identifies the date and time when the object was created. */
358 createdAt: Shared.DateTime,
359 /** Identifies the actor who performed the event. */
360 actor: Schema.NullOr(Actor)
361})
362export interface ReopenedEvent extends Schema.Struct.Type<typeof ReopenedEvent.fields> {}
363​
364/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
365export const LabelLabel = Schema.Struct({
366 /** Identifies the label name. */
367 name: Schema.String
368})
369export interface LabelLabel extends Schema.Struct.Type<typeof LabelLabel.fields> {}
370​
371/** Represents a 'labeled' event on a given issue or pull request. */
372export const LabeledEvent = Schema.Struct({
373 __typename: Schema.Literal("LabeledEvent"),
374 /** The Node ID of the LabeledEvent object */
375 id: Shared.ID,
376 /** Identifies the date and time when the object was created. */
377 createdAt: Shared.DateTime,
378 /** Identifies the actor who performed the event. */
379 actor: Schema.NullOr(Actor),
380 /** Identifies the label associated with the 'labeled' event. */
381 label: LabelLabel
382})
383export interface LabeledEvent extends Schema.Struct.Type<typeof LabeledEvent.fields> {}
384​
385/** Represents an 'unlabeled' event on a given issue or pull request. */
386export const UnlabeledEvent = Schema.Struct({
387 __typename: Schema.Literal("UnlabeledEvent"),
388 /** The Node ID of the UnlabeledEvent object */
389 id: Shared.ID,
390 /** Identifies the date and time when the object was created. */
391 createdAt: Shared.DateTime,
392 /** Identifies the actor who performed the event. */
393 actor: Schema.NullOr(Actor),
394 /** Identifies the label associated with the 'unlabeled' event. */
395 label: LabelLabel
396})
397export interface UnlabeledEvent extends Schema.Struct.Type<typeof UnlabeledEvent.fields> {}
398​
399/** A user is an individual's account on GitHub that owns repositories and can make new content. */
400export const AssigneeUser = Schema.Struct({
401 __typename: Schema.Literal("User"),
402 /** The username used to login. */
403 login: Schema.String,
404 /** The user's public profile name. */
405 name: Schema.NullOr(Schema.String)
406})
407export interface AssigneeUser extends Schema.Struct.Type<typeof AssigneeUser.fields> {}
408​
409/** Types that can be assigned to issues. */
410export const AssigneeOther = Schema.Struct({
411 __typename: GraphQL.otherTypename<Shared.Typename.Assignee>()(["User", "Bot"])
412})
413export interface AssigneeOther extends Schema.Struct.Type<typeof AssigneeOther.fields> {}
414​
415/** Represents an 'assigned' event on any assignable object. */
416export const AssignedEvent = Schema.Struct({
417 __typename: Schema.Literal("AssignedEvent"),
418 /** The Node ID of the AssignedEvent object */
419 id: Shared.ID,
420 /** Identifies the date and time when the object was created. */
421 createdAt: Shared.DateTime,
422 /** Identifies the actor who performed the event. */
423 actor: Schema.NullOr(Actor),
424 /** Identifies the user or mannequin that was assigned. */
425 assignee: Schema.NullOr(Schema.Union([
426 AssigneeUser,
427 Bot,
428 AssigneeOther
429 ]))
430})
431export interface AssignedEvent extends Schema.Struct.Type<typeof AssignedEvent.fields> {}
432​
433/** Represents an 'unassigned' event on any assignable object. */
434export const UnassignedEvent = Schema.Struct({
435 __typename: Schema.Literal("UnassignedEvent"),
436 /** The Node ID of the UnassignedEvent object */
437 id: Shared.ID,
438 /** Identifies the date and time when the object was created. */
439 createdAt: Shared.DateTime,
440 /** Identifies the actor who performed the event. */
441 actor: Schema.NullOr(Actor),
442 /** Identifies the user or mannequin that was unassigned. */
443 assignee: Schema.NullOr(Schema.Union([
444 AssigneeUser,
445 Bot,
446 AssigneeOther
447 ]))
448})
449export interface UnassignedEvent extends Schema.Struct.Type<typeof UnassignedEvent.fields> {}
450​
451/** Represents a 'renamed' event on a given issue or pull request */
452export const RenamedTitleEvent = Schema.Struct({
453 __typename: Schema.Literal("RenamedTitleEvent"),
454 /** The Node ID of the RenamedTitleEvent object */
455 id: Shared.ID,
456 /** Identifies the date and time when the object was created. */
457 createdAt: Shared.DateTime,
458 /** Identifies the actor who performed the event. */
459 actor: Schema.NullOr(Actor),
460 /** Identifies the current title of the issue or pull request. */
461 currentTitle: Schema.String
462})
463export interface RenamedTitleEvent extends Schema.Struct.Type<typeof RenamedTitleEvent.fields> {}
464​
465/** A repository pull request. */
466export const SourcePullRequest = Schema.Struct({
467 __typename: Schema.Literal("PullRequest"),
468 /** Identifies the pull request number. */
469 number: Shared.Int,
470 /** Identifies the pull request title. */
471 title: Schema.String,
472 /** The HTTP URL for this pull request. */
473 url: Shared.URI,
474 /** Identifies the state of the pull request. */
475 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
476 /** Identifies if the pull request is a draft. */
477 isDraft: Schema.Boolean,
478 /** The repository associated with this node. */
479 repository: NodesRepositoryRepository
480})
481export interface SourcePullRequest extends Schema.Struct.Type<typeof SourcePullRequest.fields> {}
482​
483/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
484export const SourceIssue = Schema.Struct({
485 __typename: Schema.Literal("Issue"),
486 /** Identifies the issue number. */
487 number: Shared.Int,
488 /** The repository associated with this node. */
489 repository: NodesRepositoryRepository
490})
491export interface SourceIssue extends Schema.Struct.Type<typeof SourceIssue.fields> {}
492​
493/** Any referencable object */
494export const ReferencedSubjectOther = Schema.Struct({
495 __typename: GraphQL.otherTypename<Shared.Typename.ReferencedSubject>()(["PullRequest", "Issue"])
496})
497export interface ReferencedSubjectOther extends Schema.Struct.Type<typeof ReferencedSubjectOther.fields> {}
498​
499/** Represents a mention made by one issue or pull request to another. */
500export const CrossReferencedEvent = Schema.Struct({
501 __typename: Schema.Literal("CrossReferencedEvent"),
502 /** The Node ID of the CrossReferencedEvent object */
503 id: Shared.ID,
504 /** Identifies the date and time when the object was created. */
505 createdAt: Shared.DateTime,
506 /** Identifies the actor who performed the event. */
507 actor: Schema.NullOr(Actor),
508 /** Issue or pull request that made the reference. */
509 source: Schema.Union([
510 SourcePullRequest,
511 SourceIssue,
512 ReferencedSubjectOther
513 ])
514})
515export interface CrossReferencedEvent extends Schema.Struct.Type<typeof CrossReferencedEvent.fields> {}
516​
517/** An item in an issue timeline */
518export const IssueTimelineItemsOther = Schema.Struct({
519 __typename: GraphQL.otherTypename<Shared.Typename.IssueTimelineItems>()(["ClosedEvent", "ReopenedEvent", "LabeledEvent", "UnlabeledEvent", "AssignedEvent", "UnassignedEvent", "RenamedTitleEvent", "CrossReferencedEvent"])
520})
521export interface IssueTimelineItemsOther extends Schema.Struct.Type<typeof IssueTimelineItemsOther.fields> {}
522​
523/** The connection type for IssueTimelineItems. */
524export const IssueTimelineItemsConnection = Schema.Struct({
525 /** A list of nodes. */
526 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
527 ClosedEvent,
528 ReopenedEvent,
529 LabeledEvent,
530 UnlabeledEvent,
531 AssignedEvent,
532 UnassignedEvent,
533 RenamedTitleEvent,
534 CrossReferencedEvent,
535 IssueTimelineItemsOther
536 ]))))
537})
538export interface IssueTimelineItemsConnection extends Schema.Struct.Type<typeof IssueTimelineItemsConnection.fields> {}
539​
540/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
541export const IssueDetailRepositoryIssueIssue = Schema.Struct({
542 ...IssueRow.fields,
543 /** A list of Users assigned to this object. */
544 assignees: IssueAssigneesUserConnection,
545 /** A list of labels associated with the object. */
546 labels: Schema.NullOr(IssueLabelsLabelConnection),
547 /** Identifies the body of the issue. */
548 body: Schema.String,
549 /** Check if the current viewer can update this object. */
550 viewerCanUpdate: Schema.Boolean,
551 /** Indicates if the object can be closed by the viewer. */
552 viewerCanClose: Schema.Boolean,
553 /** Indicates if the object can be reopened by the viewer. */
554 viewerCanReopen: Schema.Boolean,
555 /** A list of reactions grouped by content left on the subject. */
556 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
557 /** A list of comments associated with the Issue. */
558 comments: IssueDetailRepositoryIssueCommentsIssueCommentConnection,
559 /** List of open pull requests referenced from this issue */
560 closedByPullRequestsReferences: Schema.NullOr(PullRequestConnection),
561 /** A list of events, comments, commits, etc. associated with the issue. */
562 timelineItems: IssueTimelineItemsConnection
563})
564export interface IssueDetailRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueIssue.fields> {}
565​
566/** A repository contains the content for a project. */
567export const IssueDetailRepositoryRepository = Schema.Struct({
568 /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */
569 viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),
570 /** Returns a single issue from the current repository by number. */
571 issue: Schema.NullOr(IssueDetailRepositoryIssueIssue)
572})
573export interface IssueDetailRepositoryRepository extends Schema.Struct.Type<typeof IssueDetailRepositoryRepository.fields> {}
574​
575/** `query IssueDetail` */
576export const IssueDetail = GraphQL.query("IssueDetail", {
577 document: {
578 variables: [
579 { name: "owner", body: "String!" },
580 { name: "name", body: "String!" },
581 { name: "number", body: "Int!" }
582 ],
583 selections: [
584 { name: "viewer", body: ["{login}"] },
585 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){viewerPermission issue(number:$", "number", "){...IssueRow assignees(first:100){pageInfo{hasNextPage endCursor}nodes{login name avatarUrl}}labels(first:100){pageInfo{hasNextPage endCursor}nodes{name color}}body viewerCanUpdate viewerCanClose viewerCanReopen...Reactions comments(last:100){totalCount pageInfo{hasPreviousPage startCursor}nodes{id author{__typename login avatarUrl}body createdAt url...Reactions}}closedByPullRequestsReferences(first:20 includeClosedPrs:true){nodes{number title url state isDraft repository{nameWithOwner}}}timelineItems(last:100 itemTypes:[CLOSED_EVENT REOPENED_EVENT LABELED_EVENT UNLABELED_EVENT ASSIGNED_EVENT UNASSIGNED_EVENT RENAMED_TITLE_EVENT CROSS_REFERENCED_EVENT]){nodes{__typename...on ClosedEvent{id createdAt actor{__typename login avatarUrl}}...on ReopenedEvent{id createdAt actor{__typename login avatarUrl}}...on LabeledEvent{id createdAt actor{__typename login avatarUrl}label{name}}...on UnlabeledEvent{id createdAt actor{__typename login avatarUrl}label{name}}...on AssignedEvent{id createdAt actor{__typename login avatarUrl}assignee{__typename...on User{login name}...on Bot{login}}}...on UnassignedEvent{id createdAt actor{__typename login avatarUrl}assignee{__typename...on User{login name}...on Bot{login}}}...on RenamedTitleEvent{id createdAt actor{__typename login avatarUrl}currentTitle}...on CrossReferencedEvent{id createdAt actor{__typename login avatarUrl}source{__typename...on PullRequest{number title url state isDraft repository{nameWithOwner}}...on Issue{number repository{nameWithOwner}}}}}}}}"] }
586 ],
587 fragments: [
588 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
589 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
590 ]
591 },
592 variables: {
593 owner: Schema.String,
594 name: Schema.String,
595 number: Shared.Int
596 },
597 result: Schema.Struct({
598 /** The currently authenticated user. */
599 viewer: ViewerUser,
600 /** Lookup a given repository by the owner and repository name. */
601 repository: Schema.NullOr(IssueDetailRepositoryRepository)
602 })
603})
604export declare namespace IssueDetail {
605 export type Variables = typeof IssueDetail.variables.Type
606 export type Result = typeof IssueDetail.result.Type
608​
609/** The connection type for IssueComment. */
610export const IssueCommentsRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
611 /** Information to aid in pagination. */
612 pageInfo: CommentsPageInfoPageInfo,
613 /** A list of nodes. */
614 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
615})
616export interface IssueCommentsRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueCommentsIssueCommentConnection.fields> {}
617​
618/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
619export const IssueCommentsRepositoryIssueIssue = Schema.Struct({
620 /** A list of comments associated with the Issue. */
621 comments: IssueCommentsRepositoryIssueCommentsIssueCommentConnection
622})
623export interface IssueCommentsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueIssue.fields> {}
624​
625/** A repository contains the content for a project. */
626export const IssueCommentsRepositoryRepository = Schema.Struct({
627 /** Returns a single issue from the current repository by number. */
628 issue: Schema.NullOr(IssueCommentsRepositoryIssueIssue)
629})
630export interface IssueCommentsRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentsRepositoryRepository.fields> {}
631​
632/** `query IssueComments` */
633export const IssueComments = GraphQL.query("IssueComments", {
634 document: {
635 variables: [
636 { name: "owner", body: "String!" },
637 { name: "name", body: "String!" },
638 { name: "number", body: "Int!" },
639 { name: "cursor", body: "String!" }
640 ],
641 selections: [
642 { name: "viewer", body: ["{login}"] },
643 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){comments(last:100 before:$", "cursor", "){pageInfo{hasPreviousPage startCursor}nodes{id author{__typename login avatarUrl}body createdAt url...Reactions}}}}"] }
644 ],
645 fragments: [
646 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
647 ]
648 },
649 variables: {
650 owner: Schema.String,
651 name: Schema.String,
652 number: Shared.Int,
653 cursor: Schema.String
654 },
655 result: Schema.Struct({
656 /** The currently authenticated user. */
657 viewer: ViewerUser,
658 /** Lookup a given repository by the owner and repository name. */
659 repository: Schema.NullOr(IssueCommentsRepositoryRepository)
660 })
661})
662export declare namespace IssueComments {
663 export type Variables = typeof IssueComments.variables.Type
664 export type Result = typeof IssueComments.result.Type
666​
667/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
668export const IssueNodeIdRepositoryIssueIssue = Schema.Struct({
669 /** The Node ID of the Issue object */
670 id: Shared.ID,
671 /** Identifies the state of the issue. */
672 state: GraphQL.enumLiterals(Shared.IssueState.literals),
673 /** Identifies the reason for the issue state. */
674 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals))
675})
676export interface IssueNodeIdRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueNodeIdRepositoryIssueIssue.fields> {}
677​
678/** A repository contains the content for a project. */
679export const IssueNodeIdRepositoryRepository = Schema.Struct({
680 /** Returns a single issue from the current repository by number. */
681 issue: Schema.NullOr(IssueNodeIdRepositoryIssueIssue)
682})
683export interface IssueNodeIdRepositoryRepository extends Schema.Struct.Type<typeof IssueNodeIdRepositoryRepository.fields> {}
684​
685/** `query IssueNodeId` */
686export const IssueNodeId = GraphQL.query("IssueNodeId", {
687 document: {
688 variables: [
689 { name: "owner", body: "String!" },
690 { name: "name", body: "String!" },
691 { name: "number", body: "Int!" }
692 ],
693 selections: [
694 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id state stateReason}}"] }
695 ],
696 fragments: []
697 },
698 variables: {
699 owner: Schema.String,
700 name: Schema.String,
701 number: Shared.Int
702 },
703 result: Schema.Struct({
704 /** Lookup a given repository by the owner and repository name. */
705 repository: Schema.NullOr(IssueNodeIdRepositoryRepository)
706 })
707})
708export declare namespace IssueNodeId {
709 export type Variables = typeof IssueNodeId.variables.Type
710 export type Result = typeof IssueNodeId.result.Type
712​
713/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
714export const IssueCommentScopeRepositoryIssueIssue = Schema.Struct({
715 /** The Node ID of the Issue object */
716 id: Shared.ID
717})
718export interface IssueCommentScopeRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryIssueIssue.fields> {}
719​
720/** A repository contains the content for a project. */
721export const IssueCommentScopeRepositoryRepository = Schema.Struct({
722 /** Returns a single issue from the current repository by number. */
723 issue: Schema.NullOr(IssueCommentScopeRepositoryIssueIssue)
724})
725export interface IssueCommentScopeRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryRepository.fields> {}
726​
727/** Represents a comment on an Issue. */
728export const NodeIssueComment = Schema.Struct({
729 __typename: Schema.Literal("IssueComment"),
730 /** Identifies the issue associated with the comment. */
731 issue: IssueCommentScopeRepositoryIssueIssue
732})
733export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {}
734​
735/** An object with an ID. */
736export const NodeOther = Schema.Struct({
737 __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment"])
738})
739export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
740​
741/** `query IssueCommentScope` */
742export const IssueCommentScope = GraphQL.query("IssueCommentScope", {
743 document: {
744 variables: [
745 { name: "owner", body: "String!" },
746 { name: "name", body: "String!" },
747 { name: "number", body: "Int!" },
748 { name: "commentId", body: "ID!" }
749 ],
750 selections: [
751 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id}}"] },
752 { name: "node", body: ["(id:$", "commentId", "){__typename...on IssueComment{issue{id}}}"] }
753 ],
754 fragments: []
755 },
756 variables: {
757 owner: Schema.String,
758 name: Schema.String,
759 number: Shared.Int,
760 commentId: Shared.ID
761 },
762 result: Schema.Struct({
763 /** Lookup a given repository by the owner and repository name. */
764 repository: Schema.NullOr(IssueCommentScopeRepositoryRepository),
765 /** Fetches an object given its ID. */
766 node: Schema.NullOr(Schema.Union([
767 NodeIssueComment,
768 NodeOther
769 ]))
770 })
771})
772export declare namespace IssueCommentScope {
773 export type Variables = typeof IssueCommentScope.variables.Type
774 export type Result = typeof IssueCommentScope.result.Type
776​
777/** Information about pagination in a connection. */
778export const LabelsPageInfoPageInfo = Schema.Struct({
779 /** When paginating forwards, are there more items? */
780 hasNextPage: Schema.Boolean
781})
782export interface LabelsPageInfoPageInfo extends Schema.Struct.Type<typeof LabelsPageInfoPageInfo.fields> {}
783​
784/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
785export const RepositoryLabelsNodesLabel = Schema.Struct({
786 /** Identifies the label name. */
787 name: Schema.String,
788 /** Identifies the label color. */
789 color: Schema.String,
790 /** A brief description of this label. */
791 description: Schema.NullOr(Schema.String)
792})
793export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {}
794​
795/** The connection type for Label. */
796export const RepositoryLabelsLabelConnection = Schema.Struct({
797 /** Information to aid in pagination. */
798 pageInfo: LabelsPageInfoPageInfo,
799 /** A list of nodes. */
800 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel)))
801})
802export interface RepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsLabelConnection.fields> {}
803​
804/** A list of users. */
805export const AssignableUsersUserConnection = Schema.Struct({
806 /** Information to aid in pagination. */
807 pageInfo: LabelsPageInfoPageInfo,
808 /** A list of nodes. */
809 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
810})
811export interface AssignableUsersUserConnection extends Schema.Struct.Type<typeof AssignableUsersUserConnection.fields> {}
812​
813/** A repository contains the content for a project. */
814export const IssueCandidatesRepositoryRepository = Schema.Struct({
815 /** A list of labels associated with the repository. */
816 labels: Schema.NullOr(RepositoryLabelsLabelConnection),
817 /** A list of users that can be assigned to issues in this repository. */
818 assignableUsers: AssignableUsersUserConnection
819})
820export interface IssueCandidatesRepositoryRepository extends Schema.Struct.Type<typeof IssueCandidatesRepositoryRepository.fields> {}
821​
822/** `query IssueCandidates` */
823export const IssueCandidates = GraphQL.query("IssueCandidates", {
824 document: {
825 variables: [
826 { name: "owner", body: "String!" },
827 { name: "name", body: "String!" }
828 ],
829 selections: [
830 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){labels(first:100){pageInfo{hasNextPage}nodes{name color description}}assignableUsers(first:100){pageInfo{hasNextPage}nodes{login name avatarUrl}}}"] }
831 ],
832 fragments: []
833 },
834 variables: {
835 owner: Schema.String,
836 name: Schema.String
837 },
838 result: Schema.Struct({
839 /** Lookup a given repository by the owner and repository name. */
840 repository: Schema.NullOr(IssueCandidatesRepositoryRepository)
841 })
842})
843export declare namespace IssueCandidates {
844 export type Variables = typeof IssueCandidates.variables.Type
845 export type Result = typeof IssueCandidates.result.Type
847​
848/** Represents a Git blob. */
849export const Blob = Schema.Struct({
850 __typename: Schema.Literal("Blob"),
851 /** UTF8 text data or null if the Blob is binary */
852 text: Schema.NullOr(Schema.String),
853 /** Indicates whether the contents is truncated */
854 isTruncated: Schema.Boolean
855})
856export interface Blob extends Schema.Struct.Type<typeof Blob.fields> {}
857​
858/** Represents a Git object. */
859export const ObjectGitObjectOther = Schema.Struct({
860 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Blob"])
861})
862export interface ObjectGitObjectOther extends Schema.Struct.Type<typeof ObjectGitObjectOther.fields> {}
863​
864/** Represents a Git tree entry. */
865export const TreeEntry = Schema.Struct({
866 /** Entry file name. */
867 name: Schema.String,
868 /** Entry file object. */
869 object: Schema.NullOr(Schema.Union([
870 Blob,
871 ObjectGitObjectOther
872 ]))
873})
874export interface TreeEntry extends Schema.Struct.Type<typeof TreeEntry.fields> {}
875​
876/** Represents a Git tree. */
877export const Tree = Schema.Struct({
878 __typename: Schema.Literal("Tree"),
879 /** A list of tree entries. */
880 entries: Schema.NullOr(Schema.Array(TreeEntry))
881})
882export interface Tree extends Schema.Struct.Type<typeof Tree.fields> {}
883​
884/** Represents a Git object. */
885export const TemplateDirectoryGitObjectOther = Schema.Struct({
886 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Tree"])
887})
888export interface TemplateDirectoryGitObjectOther extends Schema.Struct.Type<typeof TemplateDirectoryGitObjectOther.fields> {}
889​
890/** A list of users. */
891export const IssueTemplatesAssigneesUserConnection = Schema.Struct({
892 /** A list of nodes. */
893 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ViewerUser)))
894})
895export interface IssueTemplatesAssigneesUserConnection extends Schema.Struct.Type<typeof IssueTemplatesAssigneesUserConnection.fields> {}
896​
897/** The connection type for Label. */
898export const IssueTemplatesLabelsLabelConnection = Schema.Struct({
899 /** A list of nodes. */
900 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelLabel)))
901})
902export interface IssueTemplatesLabelsLabelConnection extends Schema.Struct.Type<typeof IssueTemplatesLabelsLabelConnection.fields> {}
903​
904/** A repository issue template. */
905export const IssueTemplate = Schema.Struct({
906 /** The template filename. */
907 filename: Schema.String,
908 /** The template name. */
909 name: Schema.String,
910 /** The template purpose. */
911 about: Schema.NullOr(Schema.String),
912 /** The suggested issue title. */
913 title: Schema.NullOr(Schema.String),
914 /** The suggested issue body. */
915 body: Schema.NullOr(Schema.String),
916 /** The suggested assignees. */
917 assignees: IssueTemplatesAssigneesUserConnection,
918 /** The suggested issue labels */
919 labels: Schema.NullOr(IssueTemplatesLabelsLabelConnection)
920})
921export interface IssueTemplate extends Schema.Struct.Type<typeof IssueTemplate.fields> {}
922​
923/** A repository contains the content for a project. */
924export const IssueTemplatesRepositoryRepository = Schema.Struct({
925 /** A Git object in the repository */
926 templateDirectory: Schema.NullOr(Schema.Union([
927 Tree,
928 TemplateDirectoryGitObjectOther
929 ])),
930 /** Returns a list of issue templates associated to the repository */
931 issueTemplates: Schema.NullOr(Schema.Array(IssueTemplate))
932})
933export interface IssueTemplatesRepositoryRepository extends Schema.Struct.Type<typeof IssueTemplatesRepositoryRepository.fields> {}
934​
935/** `query IssueTemplates` */
936export const IssueTemplates = GraphQL.query("IssueTemplates", {
937 document: {
938 variables: [
939 { name: "owner", body: "String!" },
940 { name: "name", body: "String!" }
941 ],
942 selections: [
943 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){templateDirectory:object(expression:\"HEAD:.github/ISSUE_TEMPLATE\"){__typename...on Tree{entries{name object{__typename...on Blob{text isTruncated}}}}}issueTemplates{filename name about title body assignees(first:25){nodes{login}}labels(first:50){nodes{name}}}}"] }
944 ],
945 fragments: []
946 },
947 variables: {
948 owner: Schema.String,
949 name: Schema.String
950 },
951 result: Schema.Struct({
952 /** Lookup a given repository by the owner and repository name. */
953 repository: Schema.NullOr(IssueTemplatesRepositoryRepository)
954 })
955})
956export declare namespace IssueTemplates {
957 export type Variables = typeof IssueTemplates.variables.Type
958 export type Result = typeof IssueTemplates.result.Type
960​
961/** `query IssueViewer` */
962export const IssueViewer = GraphQL.query("IssueViewer", {
963 document: {
964 variables: [],
965 selections: [
966 { name: "viewer", body: ["{login}"] }
967 ],
968 fragments: []
969 },
970 result: Schema.Struct({
971 /** The currently authenticated user. */
972 viewer: ViewerUser
973 })
974})
975export declare namespace IssueViewer {
976 export type Variables = typeof IssueViewer.variables.Type
977 export type Result = typeof IssueViewer.result.Type
979​
980/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
981export const IssueCollectionsRepositoryIssueIssue = Schema.Struct({
982 /** A list of labels associated with the object. */
983 labels: Schema.NullOr(IssueLabelsLabelConnection),
984 /** A list of Users assigned to this object. */
985 assignees: IssueAssigneesUserConnection
986})
987export interface IssueCollectionsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCollectionsRepositoryIssueIssue.fields> {}
988​
989/** A repository contains the content for a project. */
990export const IssueCollectionsRepositoryRepository = Schema.Struct({
991 /** Returns a single issue from the current repository by number. */
992 issue: Schema.NullOr(IssueCollectionsRepositoryIssueIssue)
993})
994export interface IssueCollectionsRepositoryRepository extends Schema.Struct.Type<typeof IssueCollectionsRepositoryRepository.fields> {}
995​
996/** `query IssueCollections` */
997export const IssueCollections = GraphQL.query("IssueCollections", {
998 document: {
999 variables: [
1000 { name: "owner", body: "String!" },
1001 { name: "name", body: "String!" },
1002 { name: "number", body: "Int!" },
1003 { name: "labelsCursor", body: "String" },
1004 { name: "assigneesCursor", body: "String" }
1005 ],
1006 selections: [
1007 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){labels(first:100 after:$", "labelsCursor", "){pageInfo{hasNextPage endCursor}nodes{name color}}assignees(first:100 after:$", "assigneesCursor", "){pageInfo{hasNextPage endCursor}nodes{login name avatarUrl}}}}"] }
1008 ],
1009 fragments: []
1010 },
1011 variables: {
1012 owner: Schema.String,
1013 name: Schema.String,
1014 number: Shared.Int,
1015 labelsCursor: Schema.optional(Schema.NullOr(Schema.String)),
1016 assigneesCursor: Schema.optional(Schema.NullOr(Schema.String))
1017 },
1018 result: Schema.Struct({
1019 /** Lookup a given repository by the owner and repository name. */
1020 repository: Schema.NullOr(IssueCollectionsRepositoryRepository)
1021 })
1023export declare namespace IssueCollections {
1024 export type Variables = typeof IssueCollections.variables.Type
1025 export type Result = typeof IssueCollections.result.Type
1027​
1028/** Every operation in issues.graphql. */
1029export const IssuesGraphQLGroup = GraphQLGroup.make(IssueSearch, IssueDetail, IssueComments, IssueNodeId, IssueCommentScope, IssueCandidates, IssueTemplates, IssueViewer, IssueCollections)