mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-23 05:52:02 +00:00
1042 lines
44 KiB
TypeScript
Generated
1042 lines
44 KiB
TypeScript
Generated
// Generated by @effect/graphql-generator from issues.graphql. Do not edit.
|
|
import { GraphQL, GraphQLGroup } from "effect/graphql"
|
|
import * as Schema from "effect/Schema"
|
|
import * as Shared from "../../schema/github.graphql.ts"
|
|
|
|
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
|
|
export const AuthorUser = Schema.Struct({
|
|
__typename: Schema.Literal("User"),
|
|
/** The username used to login. */
|
|
login: Schema.String,
|
|
/** A URL pointing to the user's public avatar. */
|
|
avatarUrl: Shared.URI,
|
|
/** The user's public profile name. */
|
|
name: Schema.NullOr(Schema.String)
|
|
})
|
|
export interface AuthorUser extends Schema.Struct.Type<typeof AuthorUser.fields> {}
|
|
|
|
/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
|
|
export const ActorOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),
|
|
/** The username of the actor. */
|
|
login: Schema.String,
|
|
/** A URL pointing to the actor's public avatar. */
|
|
avatarUrl: Shared.URI
|
|
})
|
|
export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}
|
|
|
|
/**
|
|
* `fragment IssueRow on Issue`
|
|
*
|
|
* An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
|
|
*/
|
|
export const IssueRow = Schema.Struct({
|
|
/** Identifies the issue number. */
|
|
number: Shared.Int,
|
|
/** Identifies the issue title. */
|
|
title: Schema.String,
|
|
/** The HTTP URL for this issue */
|
|
url: Shared.URI,
|
|
/** Identifies the state of the issue. */
|
|
state: GraphQL.enumLiterals(Shared.IssueState.literals),
|
|
/** Identifies the reason for the issue state. */
|
|
stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals)),
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the date and time when the object was last updated. */
|
|
updatedAt: Shared.DateTime,
|
|
/** Identifies the date and time when the object was closed. */
|
|
closedAt: Schema.NullOr(Shared.DateTime),
|
|
/** The actor who authored the comment. */
|
|
author: Schema.NullOr(Schema.Union([
|
|
AuthorUser,
|
|
ActorOther
|
|
]))
|
|
})
|
|
export interface IssueRow extends Schema.Struct.Type<typeof IssueRow.fields> {}
|
|
|
|
/** Information about pagination in a connection. */
|
|
export const SearchPageInfoPageInfo = Schema.Struct({
|
|
/** When paginating forwards, are there more items? */
|
|
hasNextPage: Schema.Boolean,
|
|
/** When paginating forwards, the cursor to continue. */
|
|
endCursor: Schema.NullOr(Schema.String)
|
|
})
|
|
export interface SearchPageInfoPageInfo extends Schema.Struct.Type<typeof SearchPageInfoPageInfo.fields> {}
|
|
|
|
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
|
|
export const AssigneesNodesUser = Schema.Struct({
|
|
/** The username used to login. */
|
|
login: Schema.String,
|
|
/** The user's public profile name. */
|
|
name: Schema.NullOr(Schema.String),
|
|
/** A URL pointing to the user's public avatar. */
|
|
avatarUrl: Shared.URI
|
|
})
|
|
export interface AssigneesNodesUser extends Schema.Struct.Type<typeof AssigneesNodesUser.fields> {}
|
|
|
|
/** A list of users. */
|
|
export const NodesAssigneesUserConnection = Schema.Struct({
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
|
|
})
|
|
export interface NodesAssigneesUserConnection extends Schema.Struct.Type<typeof NodesAssigneesUserConnection.fields> {}
|
|
|
|
/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
|
|
export const NodesLabelsNodesLabel = Schema.Struct({
|
|
/** Identifies the label name. */
|
|
name: Schema.String,
|
|
/** Identifies the label color. */
|
|
color: Schema.String
|
|
})
|
|
export interface NodesLabelsNodesLabel extends Schema.Struct.Type<typeof NodesLabelsNodesLabel.fields> {}
|
|
|
|
/** The connection type for Label. */
|
|
export const NodesLabelsLabelConnection = Schema.Struct({
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
|
|
})
|
|
export interface NodesLabelsLabelConnection extends Schema.Struct.Type<typeof NodesLabelsLabelConnection.fields> {}
|
|
|
|
/** The connection type for IssueComment. */
|
|
export const NodesCommentsIssueCommentConnection = Schema.Struct({
|
|
/** Identifies the total count of items in the connection. */
|
|
totalCount: Shared.Int
|
|
})
|
|
export interface NodesCommentsIssueCommentConnection extends Schema.Struct.Type<typeof NodesCommentsIssueCommentConnection.fields> {}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const NodesIssue = Schema.Struct({
|
|
__typename: Schema.Literal("Issue"),
|
|
...IssueRow.fields,
|
|
/** A list of Users assigned to this object. */
|
|
assignees: NodesAssigneesUserConnection,
|
|
/** A list of labels associated with the object. */
|
|
labels: Schema.NullOr(NodesLabelsLabelConnection),
|
|
/** A list of comments associated with the Issue. */
|
|
comments: NodesCommentsIssueCommentConnection
|
|
})
|
|
export interface NodesIssue extends Schema.Struct.Type<typeof NodesIssue.fields> {}
|
|
|
|
/** The results of a search. */
|
|
export const SearchResultItemOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["Issue"])
|
|
})
|
|
export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {}
|
|
|
|
/**
|
|
* A list of results that matched against a search query. Regardless of the number
|
|
* of matches, a maximum of 1,000 results will be available across all types,
|
|
* potentially split across many pages.
|
|
*/
|
|
export const SearchResultItemConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: SearchPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
|
|
NodesIssue,
|
|
SearchResultItemOther
|
|
]))))
|
|
})
|
|
export interface SearchResultItemConnection extends Schema.Struct.Type<typeof SearchResultItemConnection.fields> {}
|
|
|
|
/** `query IssueSearch` */
|
|
export const IssueSearch = GraphQL.query("IssueSearch", {
|
|
document: {
|
|
variables: [
|
|
{ name: "q", body: "String!" },
|
|
{ name: "cursor", body: "String" },
|
|
{ name: "rows", body: "Int!" }
|
|
],
|
|
selections: [
|
|
{ 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}}}}"] }
|
|
],
|
|
fragments: [
|
|
{ name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] }
|
|
]
|
|
},
|
|
variables: {
|
|
q: Schema.String,
|
|
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
rows: Shared.Int
|
|
},
|
|
result: Schema.Struct({
|
|
/** Perform a search across resources, returning a maximum of 1,000 results. */
|
|
search: SearchResultItemConnection
|
|
})
|
|
})
|
|
export declare namespace IssueSearch {
|
|
export type Variables = typeof IssueSearch.variables.Type
|
|
export type Result = typeof IssueSearch.result.Type
|
|
}
|
|
|
|
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
|
|
export const ViewerUser = Schema.Struct({
|
|
/** The username used to login. */
|
|
login: Schema.String
|
|
})
|
|
export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
|
|
|
|
/** A list of users. */
|
|
export const IssueAssigneesUserConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: SearchPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
|
|
})
|
|
export interface IssueAssigneesUserConnection extends Schema.Struct.Type<typeof IssueAssigneesUserConnection.fields> {}
|
|
|
|
/** The connection type for Label. */
|
|
export const IssueLabelsLabelConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: SearchPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
|
|
})
|
|
export interface IssueLabelsLabelConnection extends Schema.Struct.Type<typeof IssueLabelsLabelConnection.fields> {}
|
|
|
|
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
|
|
export const ReactorsNodesUser = Schema.Struct({
|
|
__typename: Schema.Literal("User"),
|
|
/** The username used to login. */
|
|
login: Schema.String
|
|
})
|
|
export interface ReactorsNodesUser extends Schema.Struct.Type<typeof ReactorsNodesUser.fields> {}
|
|
|
|
/** A special type of user which takes actions on behalf of GitHub Apps. */
|
|
export const Bot = Schema.Struct({
|
|
__typename: Schema.Literal("Bot"),
|
|
/** The username of the actor. */
|
|
login: Schema.String
|
|
})
|
|
export interface Bot extends Schema.Struct.Type<typeof Bot.fields> {}
|
|
|
|
/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
|
|
export const Organization = Schema.Struct({
|
|
__typename: Schema.Literal("Organization"),
|
|
/** The organization's login name. */
|
|
login: Schema.String
|
|
})
|
|
export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
|
|
|
|
/** A placeholder user for attribution of imported data on GitHub. */
|
|
export const Mannequin = Schema.Struct({
|
|
__typename: Schema.Literal("Mannequin"),
|
|
/** The username of the actor. */
|
|
login: Schema.String
|
|
})
|
|
export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
|
|
|
|
/** Types that can be assigned to reactions. */
|
|
export const ReactorOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
|
|
})
|
|
export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
|
|
|
|
/** The connection type for Reactor. */
|
|
export const ReactorConnection = Schema.Struct({
|
|
/** Identifies the total count of items in the connection. */
|
|
totalCount: Shared.Int,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
|
|
ReactorsNodesUser,
|
|
Bot,
|
|
Organization,
|
|
Mannequin,
|
|
ReactorOther
|
|
]))))
|
|
})
|
|
export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
|
|
|
|
/** A group of emoji reactions to a particular piece of content. */
|
|
export const ReactionGroup = Schema.Struct({
|
|
/** Identifies the emoji reaction. */
|
|
content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
|
|
/** Whether or not the authenticated user has left a reaction on the subject. */
|
|
viewerHasReacted: Schema.Boolean,
|
|
/** Reactors to the reaction subject with the emotion represented by this reaction group. */
|
|
reactors: ReactorConnection
|
|
})
|
|
export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
|
|
|
|
/** Information about pagination in a connection. */
|
|
export const CommentsPageInfoPageInfo = Schema.Struct({
|
|
/** When paginating backwards, are there more items? */
|
|
hasPreviousPage: Schema.Boolean,
|
|
/** When paginating backwards, the cursor to continue. */
|
|
startCursor: Schema.NullOr(Schema.String)
|
|
})
|
|
export interface CommentsPageInfoPageInfo extends Schema.Struct.Type<typeof CommentsPageInfoPageInfo.fields> {}
|
|
|
|
/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
|
|
export const Actor = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
|
|
/** The username of the actor. */
|
|
login: Schema.String,
|
|
/** A URL pointing to the actor's public avatar. */
|
|
avatarUrl: Shared.URI
|
|
})
|
|
export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
|
|
|
|
/** Represents a comment on an Issue. */
|
|
export const NodesIssueComment = Schema.Struct({
|
|
/** The Node ID of the IssueComment object */
|
|
id: Shared.ID,
|
|
/** The actor who authored the comment. */
|
|
author: Schema.NullOr(Actor),
|
|
/** The body as Markdown. */
|
|
body: Schema.String,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** The HTTP URL for this issue comment */
|
|
url: Shared.URI,
|
|
/** A list of reactions grouped by content left on the subject. */
|
|
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
|
|
})
|
|
export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {}
|
|
|
|
/** The connection type for IssueComment. */
|
|
export const IssueDetailRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
|
|
/** Identifies the total count of items in the connection. */
|
|
totalCount: Shared.Int,
|
|
/** Information to aid in pagination. */
|
|
pageInfo: CommentsPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
|
|
})
|
|
export interface IssueDetailRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueCommentsIssueCommentConnection.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const NodesRepositoryRepository = Schema.Struct({
|
|
/** The repository's name with owner. */
|
|
nameWithOwner: Schema.String
|
|
})
|
|
export interface NodesRepositoryRepository extends Schema.Struct.Type<typeof NodesRepositoryRepository.fields> {}
|
|
|
|
/** A repository pull request. */
|
|
export const NodesPullRequest = Schema.Struct({
|
|
/** Identifies the pull request number. */
|
|
number: Shared.Int,
|
|
/** Identifies the pull request title. */
|
|
title: Schema.String,
|
|
/** The HTTP URL for this pull request. */
|
|
url: Shared.URI,
|
|
/** Identifies the state of the pull request. */
|
|
state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
|
|
/** Identifies if the pull request is a draft. */
|
|
isDraft: Schema.Boolean,
|
|
/** The repository associated with this node. */
|
|
repository: NodesRepositoryRepository
|
|
})
|
|
export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {}
|
|
|
|
/** The connection type for PullRequest. */
|
|
export const PullRequestConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: SearchPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest)))
|
|
})
|
|
export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}
|
|
|
|
/** Represents a 'closed' event on any `Closable`. */
|
|
export const ClosedEvent = Schema.Struct({
|
|
__typename: Schema.Literal("ClosedEvent"),
|
|
/** The Node ID of the ClosedEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor)
|
|
})
|
|
export interface ClosedEvent extends Schema.Struct.Type<typeof ClosedEvent.fields> {}
|
|
|
|
/** Represents a 'reopened' event on any `Closable`. */
|
|
export const ReopenedEvent = Schema.Struct({
|
|
__typename: Schema.Literal("ReopenedEvent"),
|
|
/** The Node ID of the ReopenedEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor)
|
|
})
|
|
export interface ReopenedEvent extends Schema.Struct.Type<typeof ReopenedEvent.fields> {}
|
|
|
|
/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
|
|
export const LabelLabel = Schema.Struct({
|
|
/** Identifies the label name. */
|
|
name: Schema.String
|
|
})
|
|
export interface LabelLabel extends Schema.Struct.Type<typeof LabelLabel.fields> {}
|
|
|
|
/** Represents a 'labeled' event on a given issue or pull request. */
|
|
export const LabeledEvent = Schema.Struct({
|
|
__typename: Schema.Literal("LabeledEvent"),
|
|
/** The Node ID of the LabeledEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Identifies the label associated with the 'labeled' event. */
|
|
label: LabelLabel
|
|
})
|
|
export interface LabeledEvent extends Schema.Struct.Type<typeof LabeledEvent.fields> {}
|
|
|
|
/** Represents an 'unlabeled' event on a given issue or pull request. */
|
|
export const UnlabeledEvent = Schema.Struct({
|
|
__typename: Schema.Literal("UnlabeledEvent"),
|
|
/** The Node ID of the UnlabeledEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Identifies the label associated with the 'unlabeled' event. */
|
|
label: LabelLabel
|
|
})
|
|
export interface UnlabeledEvent extends Schema.Struct.Type<typeof UnlabeledEvent.fields> {}
|
|
|
|
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
|
|
export const AssigneeUser = Schema.Struct({
|
|
__typename: Schema.Literal("User"),
|
|
/** The username used to login. */
|
|
login: Schema.String,
|
|
/** The user's public profile name. */
|
|
name: Schema.NullOr(Schema.String)
|
|
})
|
|
export interface AssigneeUser extends Schema.Struct.Type<typeof AssigneeUser.fields> {}
|
|
|
|
/** Types that can be assigned to issues. */
|
|
export const AssigneeOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.Assignee>()(["User", "Bot"])
|
|
})
|
|
export interface AssigneeOther extends Schema.Struct.Type<typeof AssigneeOther.fields> {}
|
|
|
|
/** Represents an 'assigned' event on any assignable object. */
|
|
export const AssignedEvent = Schema.Struct({
|
|
__typename: Schema.Literal("AssignedEvent"),
|
|
/** The Node ID of the AssignedEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Identifies the user or mannequin that was assigned. */
|
|
assignee: Schema.NullOr(Schema.Union([
|
|
AssigneeUser,
|
|
Bot,
|
|
AssigneeOther
|
|
]))
|
|
})
|
|
export interface AssignedEvent extends Schema.Struct.Type<typeof AssignedEvent.fields> {}
|
|
|
|
/** Represents an 'unassigned' event on any assignable object. */
|
|
export const UnassignedEvent = Schema.Struct({
|
|
__typename: Schema.Literal("UnassignedEvent"),
|
|
/** The Node ID of the UnassignedEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Identifies the user or mannequin that was unassigned. */
|
|
assignee: Schema.NullOr(Schema.Union([
|
|
AssigneeUser,
|
|
Bot,
|
|
AssigneeOther
|
|
]))
|
|
})
|
|
export interface UnassignedEvent extends Schema.Struct.Type<typeof UnassignedEvent.fields> {}
|
|
|
|
/** Represents a 'renamed' event on a given issue or pull request */
|
|
export const RenamedTitleEvent = Schema.Struct({
|
|
__typename: Schema.Literal("RenamedTitleEvent"),
|
|
/** The Node ID of the RenamedTitleEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Identifies the current title of the issue or pull request. */
|
|
currentTitle: Schema.String
|
|
})
|
|
export interface RenamedTitleEvent extends Schema.Struct.Type<typeof RenamedTitleEvent.fields> {}
|
|
|
|
/** A repository pull request. */
|
|
export const SourcePullRequest = Schema.Struct({
|
|
__typename: Schema.Literal("PullRequest"),
|
|
/** Identifies the pull request number. */
|
|
number: Shared.Int,
|
|
/** Identifies the pull request title. */
|
|
title: Schema.String,
|
|
/** The HTTP URL for this pull request. */
|
|
url: Shared.URI,
|
|
/** Identifies the state of the pull request. */
|
|
state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
|
|
/** Identifies if the pull request is a draft. */
|
|
isDraft: Schema.Boolean,
|
|
/** The repository associated with this node. */
|
|
repository: NodesRepositoryRepository
|
|
})
|
|
export interface SourcePullRequest extends Schema.Struct.Type<typeof SourcePullRequest.fields> {}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const SourceIssue = Schema.Struct({
|
|
__typename: Schema.Literal("Issue"),
|
|
/** Identifies the issue number. */
|
|
number: Shared.Int,
|
|
/** The repository associated with this node. */
|
|
repository: NodesRepositoryRepository
|
|
})
|
|
export interface SourceIssue extends Schema.Struct.Type<typeof SourceIssue.fields> {}
|
|
|
|
/** Any referencable object */
|
|
export const ReferencedSubjectOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.ReferencedSubject>()(["PullRequest", "Issue"])
|
|
})
|
|
export interface ReferencedSubjectOther extends Schema.Struct.Type<typeof ReferencedSubjectOther.fields> {}
|
|
|
|
/** Represents a mention made by one issue or pull request to another. */
|
|
export const CrossReferencedEvent = Schema.Struct({
|
|
__typename: Schema.Literal("CrossReferencedEvent"),
|
|
/** The Node ID of the CrossReferencedEvent object */
|
|
id: Shared.ID,
|
|
/** Identifies the date and time when the object was created. */
|
|
createdAt: Shared.DateTime,
|
|
/** Identifies the actor who performed the event. */
|
|
actor: Schema.NullOr(Actor),
|
|
/** Issue or pull request that made the reference. */
|
|
source: Schema.Union([
|
|
SourcePullRequest,
|
|
SourceIssue,
|
|
ReferencedSubjectOther
|
|
])
|
|
})
|
|
export interface CrossReferencedEvent extends Schema.Struct.Type<typeof CrossReferencedEvent.fields> {}
|
|
|
|
/** An item in an issue timeline */
|
|
export const IssueTimelineItemsOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.IssueTimelineItems>()(["ClosedEvent", "ReopenedEvent", "LabeledEvent", "UnlabeledEvent", "AssignedEvent", "UnassignedEvent", "RenamedTitleEvent", "CrossReferencedEvent"])
|
|
})
|
|
export interface IssueTimelineItemsOther extends Schema.Struct.Type<typeof IssueTimelineItemsOther.fields> {}
|
|
|
|
/** The connection type for IssueTimelineItems. */
|
|
export const IssueTimelineItemsConnection = Schema.Struct({
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
|
|
ClosedEvent,
|
|
ReopenedEvent,
|
|
LabeledEvent,
|
|
UnlabeledEvent,
|
|
AssignedEvent,
|
|
UnassignedEvent,
|
|
RenamedTitleEvent,
|
|
CrossReferencedEvent,
|
|
IssueTimelineItemsOther
|
|
]))))
|
|
})
|
|
export interface IssueTimelineItemsConnection extends Schema.Struct.Type<typeof IssueTimelineItemsConnection.fields> {}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const IssueDetailRepositoryIssueIssue = Schema.Struct({
|
|
...IssueRow.fields,
|
|
/** A list of Users assigned to this object. */
|
|
assignees: IssueAssigneesUserConnection,
|
|
/** A list of labels associated with the object. */
|
|
labels: Schema.NullOr(IssueLabelsLabelConnection),
|
|
/** Identifies the body of the issue. */
|
|
body: Schema.String,
|
|
/** Check if the current viewer can update this object. */
|
|
viewerCanUpdate: Schema.Boolean,
|
|
/** Indicates if the object can be closed by the viewer. */
|
|
viewerCanClose: Schema.Boolean,
|
|
/** Indicates if the object can be reopened by the viewer. */
|
|
viewerCanReopen: Schema.Boolean,
|
|
/** A list of reactions grouped by content left on the subject. */
|
|
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
|
|
/** A list of comments associated with the Issue. */
|
|
comments: IssueDetailRepositoryIssueCommentsIssueCommentConnection,
|
|
/** List of open pull requests referenced from this issue */
|
|
closedByPullRequestsReferences: Schema.NullOr(PullRequestConnection),
|
|
/** A list of events, comments, commits, etc. associated with the issue. */
|
|
timelineItems: IssueTimelineItemsConnection
|
|
})
|
|
export interface IssueDetailRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueIssue.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueDetailRepositoryRepository = Schema.Struct({
|
|
/** The users permission level on the repository. Will return null if authenticated as an GitHub App. */
|
|
viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),
|
|
/** Returns a single issue from the current repository by number. */
|
|
issue: Schema.NullOr(IssueDetailRepositoryIssueIssue)
|
|
})
|
|
export interface IssueDetailRepositoryRepository extends Schema.Struct.Type<typeof IssueDetailRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueDetail` */
|
|
export const IssueDetail = GraphQL.query("IssueDetail", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" },
|
|
{ name: "number", body: "Int!" }
|
|
],
|
|
selections: [
|
|
{ name: "viewer", body: ["{login}"] },
|
|
{ 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){pageInfo{hasNextPage endCursor}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}}}}}}}}"] }
|
|
],
|
|
fragments: [
|
|
{ name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
|
|
{ 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}}}}}"] }
|
|
]
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String,
|
|
number: Shared.Int
|
|
},
|
|
result: Schema.Struct({
|
|
/** The currently authenticated user. */
|
|
viewer: ViewerUser,
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueDetailRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueDetail {
|
|
export type Variables = typeof IssueDetail.variables.Type
|
|
export type Result = typeof IssueDetail.result.Type
|
|
}
|
|
|
|
/** The connection type for IssueComment. */
|
|
export const IssueCommentsRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: CommentsPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
|
|
})
|
|
export interface IssueCommentsRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueCommentsIssueCommentConnection.fields> {}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const IssueCommentsRepositoryIssueIssue = Schema.Struct({
|
|
/** A list of comments associated with the Issue. */
|
|
comments: IssueCommentsRepositoryIssueCommentsIssueCommentConnection
|
|
})
|
|
export interface IssueCommentsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueIssue.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueCommentsRepositoryRepository = Schema.Struct({
|
|
/** Returns a single issue from the current repository by number. */
|
|
issue: Schema.NullOr(IssueCommentsRepositoryIssueIssue)
|
|
})
|
|
export interface IssueCommentsRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentsRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueComments` */
|
|
export const IssueComments = GraphQL.query("IssueComments", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" },
|
|
{ name: "number", body: "Int!" },
|
|
{ name: "cursor", body: "String!" }
|
|
],
|
|
selections: [
|
|
{ name: "viewer", body: ["{login}"] },
|
|
{ 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}}}}"] }
|
|
],
|
|
fragments: [
|
|
{ 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}}}}}"] }
|
|
]
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String,
|
|
number: Shared.Int,
|
|
cursor: Schema.String
|
|
},
|
|
result: Schema.Struct({
|
|
/** The currently authenticated user. */
|
|
viewer: ViewerUser,
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueCommentsRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueComments {
|
|
export type Variables = typeof IssueComments.variables.Type
|
|
export type Result = typeof IssueComments.result.Type
|
|
}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const IssueNodeIdRepositoryIssueIssue = Schema.Struct({
|
|
/** The Node ID of the Issue object */
|
|
id: Shared.ID,
|
|
/** Identifies the state of the issue. */
|
|
state: GraphQL.enumLiterals(Shared.IssueState.literals),
|
|
/** Identifies the reason for the issue state. */
|
|
stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals))
|
|
})
|
|
export interface IssueNodeIdRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueNodeIdRepositoryIssueIssue.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueNodeIdRepositoryRepository = Schema.Struct({
|
|
/** Returns a single issue from the current repository by number. */
|
|
issue: Schema.NullOr(IssueNodeIdRepositoryIssueIssue)
|
|
})
|
|
export interface IssueNodeIdRepositoryRepository extends Schema.Struct.Type<typeof IssueNodeIdRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueNodeId` */
|
|
export const IssueNodeId = GraphQL.query("IssueNodeId", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" },
|
|
{ name: "number", body: "Int!" }
|
|
],
|
|
selections: [
|
|
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id state stateReason}}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String,
|
|
number: Shared.Int
|
|
},
|
|
result: Schema.Struct({
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueNodeIdRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueNodeId {
|
|
export type Variables = typeof IssueNodeId.variables.Type
|
|
export type Result = typeof IssueNodeId.result.Type
|
|
}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const IssueCommentScopeRepositoryIssueIssue = Schema.Struct({
|
|
/** The Node ID of the Issue object */
|
|
id: Shared.ID
|
|
})
|
|
export interface IssueCommentScopeRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryIssueIssue.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueCommentScopeRepositoryRepository = Schema.Struct({
|
|
/** Returns a single issue from the current repository by number. */
|
|
issue: Schema.NullOr(IssueCommentScopeRepositoryIssueIssue)
|
|
})
|
|
export interface IssueCommentScopeRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryRepository.fields> {}
|
|
|
|
/** Represents a comment on an Issue. */
|
|
export const NodeIssueComment = Schema.Struct({
|
|
__typename: Schema.Literal("IssueComment"),
|
|
/** Identifies the issue associated with the comment. */
|
|
issue: IssueCommentScopeRepositoryIssueIssue
|
|
})
|
|
export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {}
|
|
|
|
/** An object with an ID. */
|
|
export const NodeOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment"])
|
|
})
|
|
export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
|
|
|
|
/** `query IssueCommentScope` */
|
|
export const IssueCommentScope = GraphQL.query("IssueCommentScope", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" },
|
|
{ name: "number", body: "Int!" },
|
|
{ name: "commentId", body: "ID!" }
|
|
],
|
|
selections: [
|
|
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id}}"] },
|
|
{ name: "node", body: ["(id:$", "commentId", "){__typename...on IssueComment{issue{id}}}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String,
|
|
number: Shared.Int,
|
|
commentId: Shared.ID
|
|
},
|
|
result: Schema.Struct({
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueCommentScopeRepositoryRepository),
|
|
/** Fetches an object given its ID. */
|
|
node: Schema.NullOr(Schema.Union([
|
|
NodeIssueComment,
|
|
NodeOther
|
|
]))
|
|
})
|
|
})
|
|
export declare namespace IssueCommentScope {
|
|
export type Variables = typeof IssueCommentScope.variables.Type
|
|
export type Result = typeof IssueCommentScope.result.Type
|
|
}
|
|
|
|
/** Information about pagination in a connection. */
|
|
export const LabelsPageInfoPageInfo = Schema.Struct({
|
|
/** When paginating forwards, are there more items? */
|
|
hasNextPage: Schema.Boolean
|
|
})
|
|
export interface LabelsPageInfoPageInfo extends Schema.Struct.Type<typeof LabelsPageInfoPageInfo.fields> {}
|
|
|
|
/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
|
|
export const RepositoryLabelsNodesLabel = Schema.Struct({
|
|
/** Identifies the label name. */
|
|
name: Schema.String,
|
|
/** Identifies the label color. */
|
|
color: Schema.String,
|
|
/** A brief description of this label. */
|
|
description: Schema.NullOr(Schema.String)
|
|
})
|
|
export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {}
|
|
|
|
/** The connection type for Label. */
|
|
export const RepositoryLabelsLabelConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: LabelsPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel)))
|
|
})
|
|
export interface RepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsLabelConnection.fields> {}
|
|
|
|
/** A list of users. */
|
|
export const AssignableUsersUserConnection = Schema.Struct({
|
|
/** Information to aid in pagination. */
|
|
pageInfo: LabelsPageInfoPageInfo,
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
|
|
})
|
|
export interface AssignableUsersUserConnection extends Schema.Struct.Type<typeof AssignableUsersUserConnection.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueCandidatesRepositoryRepository = Schema.Struct({
|
|
/** A list of labels associated with the repository. */
|
|
labels: Schema.NullOr(RepositoryLabelsLabelConnection),
|
|
/** A list of users that can be assigned to issues in this repository. */
|
|
assignableUsers: AssignableUsersUserConnection
|
|
})
|
|
export interface IssueCandidatesRepositoryRepository extends Schema.Struct.Type<typeof IssueCandidatesRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueCandidates` */
|
|
export const IssueCandidates = GraphQL.query("IssueCandidates", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" }
|
|
],
|
|
selections: [
|
|
{ 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}}}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String
|
|
},
|
|
result: Schema.Struct({
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueCandidatesRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueCandidates {
|
|
export type Variables = typeof IssueCandidates.variables.Type
|
|
export type Result = typeof IssueCandidates.result.Type
|
|
}
|
|
|
|
/** Represents a Git blob. */
|
|
export const Blob = Schema.Struct({
|
|
__typename: Schema.Literal("Blob"),
|
|
/** UTF8 text data or null if the Blob is binary */
|
|
text: Schema.NullOr(Schema.String),
|
|
/** Indicates whether the contents is truncated */
|
|
isTruncated: Schema.Boolean
|
|
})
|
|
export interface Blob extends Schema.Struct.Type<typeof Blob.fields> {}
|
|
|
|
/** Represents a Git object. */
|
|
export const ObjectGitObjectOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Blob"])
|
|
})
|
|
export interface ObjectGitObjectOther extends Schema.Struct.Type<typeof ObjectGitObjectOther.fields> {}
|
|
|
|
/** Represents a Git tree entry. */
|
|
export const TreeEntry = Schema.Struct({
|
|
/** Entry file name. */
|
|
name: Schema.String,
|
|
/** Entry file object. */
|
|
object: Schema.NullOr(Schema.Union([
|
|
Blob,
|
|
ObjectGitObjectOther
|
|
]))
|
|
})
|
|
export interface TreeEntry extends Schema.Struct.Type<typeof TreeEntry.fields> {}
|
|
|
|
/** Represents a Git tree. */
|
|
export const Tree = Schema.Struct({
|
|
__typename: Schema.Literal("Tree"),
|
|
/** A list of tree entries. */
|
|
entries: Schema.NullOr(Schema.Array(TreeEntry))
|
|
})
|
|
export interface Tree extends Schema.Struct.Type<typeof Tree.fields> {}
|
|
|
|
/** Represents a Git object. */
|
|
export const TemplateDirectoryGitObjectOther = Schema.Struct({
|
|
__typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Tree"])
|
|
})
|
|
export interface TemplateDirectoryGitObjectOther extends Schema.Struct.Type<typeof TemplateDirectoryGitObjectOther.fields> {}
|
|
|
|
/** A list of users. */
|
|
export const IssueTemplatesAssigneesUserConnection = Schema.Struct({
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ViewerUser)))
|
|
})
|
|
export interface IssueTemplatesAssigneesUserConnection extends Schema.Struct.Type<typeof IssueTemplatesAssigneesUserConnection.fields> {}
|
|
|
|
/** The connection type for Label. */
|
|
export const IssueTemplatesLabelsLabelConnection = Schema.Struct({
|
|
/** A list of nodes. */
|
|
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelLabel)))
|
|
})
|
|
export interface IssueTemplatesLabelsLabelConnection extends Schema.Struct.Type<typeof IssueTemplatesLabelsLabelConnection.fields> {}
|
|
|
|
/** A repository issue template. */
|
|
export const IssueTemplate = Schema.Struct({
|
|
/** The template filename. */
|
|
filename: Schema.String,
|
|
/** The template name. */
|
|
name: Schema.String,
|
|
/** The template purpose. */
|
|
about: Schema.NullOr(Schema.String),
|
|
/** The suggested issue title. */
|
|
title: Schema.NullOr(Schema.String),
|
|
/** The suggested issue body. */
|
|
body: Schema.NullOr(Schema.String),
|
|
/** The suggested assignees. */
|
|
assignees: IssueTemplatesAssigneesUserConnection,
|
|
/** The suggested issue labels */
|
|
labels: Schema.NullOr(IssueTemplatesLabelsLabelConnection)
|
|
})
|
|
export interface IssueTemplate extends Schema.Struct.Type<typeof IssueTemplate.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueTemplatesRepositoryRepository = Schema.Struct({
|
|
/** A Git object in the repository */
|
|
templateDirectory: Schema.NullOr(Schema.Union([
|
|
Tree,
|
|
TemplateDirectoryGitObjectOther
|
|
])),
|
|
/** Returns a list of issue templates associated to the repository */
|
|
issueTemplates: Schema.NullOr(Schema.Array(IssueTemplate))
|
|
})
|
|
export interface IssueTemplatesRepositoryRepository extends Schema.Struct.Type<typeof IssueTemplatesRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueTemplates` */
|
|
export const IssueTemplates = GraphQL.query("IssueTemplates", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" }
|
|
],
|
|
selections: [
|
|
{ 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}}}}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String
|
|
},
|
|
result: Schema.Struct({
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueTemplatesRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueTemplates {
|
|
export type Variables = typeof IssueTemplates.variables.Type
|
|
export type Result = typeof IssueTemplates.result.Type
|
|
}
|
|
|
|
/** `query IssueViewer` */
|
|
export const IssueViewer = GraphQL.query("IssueViewer", {
|
|
document: {
|
|
variables: [],
|
|
selections: [
|
|
{ name: "viewer", body: ["{login}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
result: Schema.Struct({
|
|
/** The currently authenticated user. */
|
|
viewer: ViewerUser
|
|
})
|
|
})
|
|
export declare namespace IssueViewer {
|
|
export type Variables = typeof IssueViewer.variables.Type
|
|
export type Result = typeof IssueViewer.result.Type
|
|
}
|
|
|
|
/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
|
|
export const IssueCollectionsRepositoryIssueIssue = Schema.Struct({
|
|
/** A list of labels associated with the object. */
|
|
labels: Schema.optionalKey(Schema.NullOr(IssueLabelsLabelConnection)),
|
|
/** A list of Users assigned to this object. */
|
|
assignees: Schema.optionalKey(IssueAssigneesUserConnection),
|
|
/** List of open pull requests referenced from this issue */
|
|
closedByPullRequestsReferences: Schema.optionalKey(Schema.NullOr(PullRequestConnection))
|
|
})
|
|
export interface IssueCollectionsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCollectionsRepositoryIssueIssue.fields> {}
|
|
|
|
/** A repository contains the content for a project. */
|
|
export const IssueCollectionsRepositoryRepository = Schema.Struct({
|
|
/** Returns a single issue from the current repository by number. */
|
|
issue: Schema.NullOr(IssueCollectionsRepositoryIssueIssue)
|
|
})
|
|
export interface IssueCollectionsRepositoryRepository extends Schema.Struct.Type<typeof IssueCollectionsRepositoryRepository.fields> {}
|
|
|
|
/** `query IssueCollections` */
|
|
export const IssueCollections = GraphQL.query("IssueCollections", {
|
|
document: {
|
|
variables: [
|
|
{ name: "owner", body: "String!" },
|
|
{ name: "name", body: "String!" },
|
|
{ name: "number", body: "Int!" },
|
|
{ name: "labelsCursor", body: "String" },
|
|
{ name: "assigneesCursor", body: "String" },
|
|
{ name: "closingPullRequestsCursor", body: "String" },
|
|
{ name: "withLabels", body: "Boolean!" },
|
|
{ name: "withAssignees", body: "Boolean!" },
|
|
{ name: "withClosingPullRequests", body: "Boolean!" }
|
|
],
|
|
selections: [
|
|
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){labels(first:100 after:$", "labelsCursor", ")@include(if:$", "withLabels", "){pageInfo{hasNextPage endCursor}nodes{name color}}assignees(first:100 after:$", "assigneesCursor", ")@include(if:$", "withAssignees", "){pageInfo{hasNextPage endCursor}nodes{login name avatarUrl}}closedByPullRequestsReferences(first:100 after:$", "closingPullRequestsCursor", " includeClosedPrs:true)@include(if:$", "withClosingPullRequests", "){pageInfo{hasNextPage endCursor}nodes{number title url state isDraft repository{nameWithOwner}}}}}"] }
|
|
],
|
|
fragments: []
|
|
},
|
|
variables: {
|
|
owner: Schema.String,
|
|
name: Schema.String,
|
|
number: Shared.Int,
|
|
labelsCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
assigneesCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
closingPullRequestsCursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
withLabels: Schema.Boolean,
|
|
withAssignees: Schema.Boolean,
|
|
withClosingPullRequests: Schema.Boolean
|
|
},
|
|
result: Schema.Struct({
|
|
/** Lookup a given repository by the owner and repository name. */
|
|
repository: Schema.NullOr(IssueCollectionsRepositoryRepository)
|
|
})
|
|
})
|
|
export declare namespace IssueCollections {
|
|
export type Variables = typeof IssueCollections.variables.Type
|
|
export type Result = typeof IssueCollections.result.Type
|
|
}
|
|
|
|
/** Every operation in issues.graphql. */
|
|
export const IssuesGraphQLGroup = GraphQLGroup.make(IssueSearch, IssueDetail, IssueComments, IssueNodeId, IssueCommentScope, IssueCandidates, IssueTemplates, IssueViewer, IssueCollections)
|