The best way to control Claude Code, Codex and more from any computer or phone
| 1 | // Generated by @effect/graphql-generator from pullRequestReviews.graphql. Do not edit. |
| 2 | import { GraphQL, GraphQLGroup } from "effect/graphql" |
| 3 | import * as Schema from "effect/Schema" |
| 4 | import * 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. */ |
| 7 | export const NodesUser = Schema.Struct({ |
| 8 | __typename: Schema.Literal("User"), |
| 9 | /** The username used to login. */ |
| 10 | login: Schema.String |
| 11 | }) |
| 12 | export interface NodesUser extends Schema.Struct.Type<typeof NodesUser.fields> {} |
| 13 | |
| 14 | /** A special type of user which takes actions on behalf of GitHub Apps. */ |
| 15 | export const NodesBot = Schema.Struct({ |
| 16 | __typename: Schema.Literal("Bot"), |
| 17 | /** The username of the actor. */ |
| 18 | login: Schema.String |
| 19 | }) |
| 20 | export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {} |
| 21 | |
| 22 | /** An account on GitHub, with one or more owners, that has repositories, members and teams. */ |
| 23 | export const Organization = Schema.Struct({ |
| 24 | __typename: Schema.Literal("Organization"), |
| 25 | /** The organization's login name. */ |
| 26 | login: Schema.String |
| 27 | }) |
| 28 | export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {} |
| 29 | |
| 30 | /** A placeholder user for attribution of imported data on GitHub. */ |
| 31 | export const Mannequin = Schema.Struct({ |
| 32 | __typename: Schema.Literal("Mannequin"), |
| 33 | /** The username of the actor. */ |
| 34 | login: Schema.String |
| 35 | }) |
| 36 | export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {} |
| 37 | |
| 38 | /** Types that can be assigned to reactions. */ |
| 39 | export const ReactorOther = Schema.Struct({ |
| 40 | __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"]) |
| 41 | }) |
| 42 | export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {} |
| 43 | |
| 44 | /** The connection type for Reactor. */ |
| 45 | export const ReactorConnection = Schema.Struct({ |
| 46 | /** Identifies the total count of items in the connection. */ |
| 47 | totalCount: Shared.Int, |
| 48 | /** A list of nodes. */ |
| 49 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([ |
| 50 | NodesUser, |
| 51 | NodesBot, |
| 52 | Organization, |
| 53 | Mannequin, |
| 54 | ReactorOther |
| 55 | ])))) |
| 56 | }) |
| 57 | export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {} |
| 58 | |
| 59 | /** A group of emoji reactions to a particular piece of content. */ |
| 60 | export const ReactionGroup = Schema.Struct({ |
| 61 | /** Identifies the emoji reaction. */ |
| 62 | content: GraphQL.enumLiterals(Shared.ReactionContent.literals), |
| 63 | /** Whether or not the authenticated user has left a reaction on the subject. */ |
| 64 | viewerHasReacted: Schema.Boolean, |
| 65 | /** Reactors to the reaction subject with the emotion represented by this reaction group. */ |
| 66 | reactors: ReactorConnection |
| 67 | }) |
| 68 | export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {} |
| 69 | |
| 70 | /** |
| 71 | * `fragment Reactions on Reactable` |
| 72 | * |
| 73 | * Represents a subject that can be reacted on. |
| 74 | */ |
| 75 | export const Reactions = Schema.Struct({ |
| 76 | __typename: GraphQL.otherTypename<Shared.Typename.Reactable>()([]), |
| 77 | /** A list of reactions grouped by content left on the subject. */ |
| 78 | reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)) |
| 79 | }) |
| 80 | export type Reactions = typeof Reactions.Type |
| 81 | |
| 82 | /** Represents an object which can take actions on GitHub. Typically a User or Bot. */ |
| 83 | export const Actor = Schema.Struct({ |
| 84 | __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]), |
| 85 | /** The username of the actor. */ |
| 86 | login: Schema.String, |
| 87 | /** A URL pointing to the actor's public avatar. */ |
| 88 | avatarUrl: Shared.URI |
| 89 | }) |
| 90 | export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {} |
| 91 | |
| 92 | /** A review object for a given pull request. */ |
| 93 | export const PullRequestReviewPullRequestReview = Schema.Struct({ |
| 94 | /** The HTTP URL permalink for this PullRequestReview. */ |
| 95 | url: Shared.URI |
| 96 | }) |
| 97 | export interface PullRequestReviewPullRequestReview extends Schema.Struct.Type<typeof PullRequestReviewPullRequestReview.fields> {} |
| 98 | |
| 99 | /** |
| 100 | * `fragment ThreadComment on PullRequestReviewComment` |
| 101 | * |
| 102 | * A review comment associated with a given repository pull request. |
| 103 | */ |
| 104 | export const ThreadComment = Schema.Struct({ |
| 105 | /** The Node ID of the PullRequestReviewComment object */ |
| 106 | id: Shared.ID, |
| 107 | /** The actor who authored the comment. */ |
| 108 | author: Schema.NullOr(Actor), |
| 109 | /** The comment body of this review comment. */ |
| 110 | body: Schema.String, |
| 111 | /** Identifies when the comment was created. */ |
| 112 | createdAt: Shared.DateTime, |
| 113 | /** The moment the editor made the last edit */ |
| 114 | lastEditedAt: Schema.NullOr(Shared.DateTime), |
| 115 | /** The HTTP URL permalink for this review comment. */ |
| 116 | url: Shared.URI, |
| 117 | /** Returns whether or not a comment has been minimized. */ |
| 118 | isMinimized: Schema.Boolean, |
| 119 | /** The pull request review associated with this review comment. */ |
| 120 | pullRequestReview: Schema.NullOr(PullRequestReviewPullRequestReview), |
| 121 | /** A list of reactions grouped by content left on the subject. */ |
| 122 | reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)) |
| 123 | }) |
| 124 | export interface ThreadComment extends Schema.Struct.Type<typeof ThreadComment.fields> {} |
| 125 | |
| 126 | /** Information about pagination in a connection. */ |
| 127 | export const PageInfo = Schema.Struct({ |
| 128 | /** When paginating forwards, are there more items? */ |
| 129 | hasNextPage: Schema.Boolean, |
| 130 | /** When paginating forwards, the cursor to continue. */ |
| 131 | endCursor: Schema.NullOr(Schema.String) |
| 132 | }) |
| 133 | export interface PageInfo extends Schema.Struct.Type<typeof PageInfo.fields> {} |
| 134 | |
| 135 | /** The connection type for PullRequestReviewComment. */ |
| 136 | export const NodesCommentsPullRequestReviewCommentConnection = Schema.Struct({ |
| 137 | /** Identifies the total count of items in the connection. */ |
| 138 | totalCount: Shared.Int, |
| 139 | /** Information to aid in pagination. */ |
| 140 | pageInfo: PageInfo, |
| 141 | /** A list of nodes. */ |
| 142 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment))) |
| 143 | }) |
| 144 | export interface NodesCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodesCommentsPullRequestReviewCommentConnection.fields> {} |
| 145 | |
| 146 | /** A threaded list of comments for a given pull request. */ |
| 147 | export const NodesPullRequestReviewThread = Schema.Struct({ |
| 148 | /** The Node ID of the PullRequestReviewThread object */ |
| 149 | id: Shared.ID, |
| 150 | /** Whether this thread has been resolved */ |
| 151 | isResolved: Schema.Boolean, |
| 152 | /** Indicates whether this thread was outdated by newer changes. */ |
| 153 | isOutdated: Schema.Boolean, |
| 154 | /** Identifies the file path of this thread. */ |
| 155 | path: Schema.String, |
| 156 | /** The line in the file to which this thread refers */ |
| 157 | line: Schema.NullOr(Shared.Int), |
| 158 | /** The side of the diff on which this thread was placed. */ |
| 159 | diffSide: GraphQL.enumLiterals(Shared.DiffSide.literals), |
| 160 | /** A list of pull request comments associated with the thread. */ |
| 161 | comments: NodesCommentsPullRequestReviewCommentConnection |
| 162 | }) |
| 163 | export interface NodesPullRequestReviewThread extends Schema.Struct.Type<typeof NodesPullRequestReviewThread.fields> {} |
| 164 | |
| 165 | /** |
| 166 | * `fragment ReviewThreadPage on PullRequestReviewThreadConnection` |
| 167 | * |
| 168 | * Review comment threads for a pull request review. |
| 169 | */ |
| 170 | export const ReviewThreadPage = Schema.Struct({ |
| 171 | /** Identifies the total count of items in the connection. */ |
| 172 | totalCount: Shared.Int, |
| 173 | /** Information to aid in pagination. */ |
| 174 | pageInfo: PageInfo, |
| 175 | /** A list of nodes. */ |
| 176 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReviewThread))) |
| 177 | }) |
| 178 | export interface ReviewThreadPage extends Schema.Struct.Type<typeof ReviewThreadPage.fields> {} |
| 179 | |
| 180 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 181 | export const ViewerUser = Schema.Struct({ |
| 182 | /** The username used to login. */ |
| 183 | login: Schema.String |
| 184 | }) |
| 185 | export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {} |
| 186 | |
| 187 | /** Represents a comment on an Issue. */ |
| 188 | export const IssueComment = Schema.Struct({ |
| 189 | /** The Node ID of the IssueComment object */ |
| 190 | id: Shared.ID, |
| 191 | /** The moment the editor made the last edit */ |
| 192 | lastEditedAt: Schema.NullOr(Shared.DateTime), |
| 193 | /** The actor who authored the comment. */ |
| 194 | author: Schema.NullOr(Actor), |
| 195 | /** A list of reactions grouped by content left on the subject. */ |
| 196 | reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)) |
| 197 | }) |
| 198 | export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {} |
| 199 | |
| 200 | /** The connection type for IssueComment. */ |
| 201 | export const IssueCommentConnection = Schema.Struct({ |
| 202 | /** A list of nodes. */ |
| 203 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(IssueComment))) |
| 204 | }) |
| 205 | export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {} |
| 206 | |
| 207 | /** A review object for a given pull request. */ |
| 208 | export const ReviewsNodesPullRequestReview = Schema.Struct({ |
| 209 | /** The Node ID of the PullRequestReview object */ |
| 210 | id: Shared.ID, |
| 211 | /** The moment the editor made the last edit */ |
| 212 | lastEditedAt: Schema.NullOr(Shared.DateTime), |
| 213 | /** The actor who authored the comment. */ |
| 214 | author: Schema.NullOr(Actor), |
| 215 | /** A list of reactions grouped by content left on the subject. */ |
| 216 | reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)) |
| 217 | }) |
| 218 | export interface ReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof ReviewsNodesPullRequestReview.fields> {} |
| 219 | |
| 220 | /** The connection type for PullRequestReview. */ |
| 221 | export const ReviewsPullRequestReviewConnection = Schema.Struct({ |
| 222 | /** A list of nodes. */ |
| 223 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewsNodesPullRequestReview))) |
| 224 | }) |
| 225 | export interface ReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof ReviewsPullRequestReviewConnection.fields> {} |
| 226 | |
| 227 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 228 | export const RequestedReviewerUser = Schema.Struct({ |
| 229 | __typename: Schema.Literal("User"), |
| 230 | /** The username used to login. */ |
| 231 | login: Schema.String, |
| 232 | /** The user's public profile name. */ |
| 233 | name: Schema.NullOr(Schema.String), |
| 234 | /** A URL pointing to the user's public avatar. */ |
| 235 | avatarUrl: Shared.URI |
| 236 | }) |
| 237 | export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {} |
| 238 | |
| 239 | /** A special type of user which takes actions on behalf of GitHub Apps. */ |
| 240 | export const RequestedReviewerBot = Schema.Struct({ |
| 241 | __typename: Schema.Literal("Bot"), |
| 242 | /** The username of the actor. */ |
| 243 | login: Schema.String, |
| 244 | /** A URL pointing to the GitHub App's public avatar. */ |
| 245 | avatarUrl: Shared.URI |
| 246 | }) |
| 247 | export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {} |
| 248 | |
| 249 | /** A team of users in an organization. */ |
| 250 | export const Team = Schema.Struct({ |
| 251 | __typename: Schema.Literal("Team"), |
| 252 | /** The slug corresponding to the organization and team. */ |
| 253 | combinedSlug: Schema.String, |
| 254 | /** The name of the team. */ |
| 255 | teamName: Schema.String, |
| 256 | /** A URL pointing to the team's avatar. */ |
| 257 | teamAvatarUrl: Schema.NullOr(Shared.URI) |
| 258 | }) |
| 259 | export interface Team extends Schema.Struct.Type<typeof Team.fields> {} |
| 260 | |
| 261 | /** Types that can be requested reviewers. */ |
| 262 | export const RequestedReviewerOther = Schema.Struct({ |
| 263 | __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"]) |
| 264 | }) |
| 265 | export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {} |
| 266 | |
| 267 | /** A request for a user to review a pull request. */ |
| 268 | export const ReviewRequest = Schema.Struct({ |
| 269 | /** The reviewer that is requested. */ |
| 270 | requestedReviewer: Schema.NullOr(Schema.Union([ |
| 271 | RequestedReviewerUser, |
| 272 | RequestedReviewerBot, |
| 273 | Team, |
| 274 | RequestedReviewerOther |
| 275 | ])) |
| 276 | }) |
| 277 | export interface ReviewRequest extends Schema.Struct.Type<typeof ReviewRequest.fields> {} |
| 278 | |
| 279 | /** The connection type for ReviewRequest. */ |
| 280 | export const ReviewRequestConnection = Schema.Struct({ |
| 281 | /** A list of nodes. */ |
| 282 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewRequest))) |
| 283 | }) |
| 284 | export interface ReviewRequestConnection extends Schema.Struct.Type<typeof ReviewRequestConnection.fields> {} |
| 285 | |
| 286 | /** A review object for a given pull request. */ |
| 287 | export const LatestReviewsNodesPullRequestReview = Schema.Struct({ |
| 288 | /** Identifies the current state of the pull request review. */ |
| 289 | state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals), |
| 290 | /** Returns whether or not a comment has been minimized. */ |
| 291 | isMinimized: Schema.Boolean, |
| 292 | /** The actor who authored the comment. */ |
| 293 | author: Schema.NullOr(Actor) |
| 294 | }) |
| 295 | export interface LatestReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof LatestReviewsNodesPullRequestReview.fields> {} |
| 296 | |
| 297 | /** The connection type for PullRequestReview. */ |
| 298 | export const LatestReviewsPullRequestReviewConnection = Schema.Struct({ |
| 299 | /** A list of nodes. */ |
| 300 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LatestReviewsNodesPullRequestReview))) |
| 301 | }) |
| 302 | export interface LatestReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof LatestReviewsPullRequestReviewConnection.fields> {} |
| 303 | |
| 304 | /** A review object for a given pull request. */ |
| 305 | export const ReviewPullRequestReview = Schema.Struct({ |
| 306 | /** The Node ID of the PullRequestReview object */ |
| 307 | id: Shared.ID |
| 308 | }) |
| 309 | export interface ReviewPullRequestReview extends Schema.Struct.Type<typeof ReviewPullRequestReview.fields> {} |
| 310 | |
| 311 | /** Represents a 'review_dismissed' event on a given issue or pull request. */ |
| 312 | export const ReviewDismissedEvent = Schema.Struct({ |
| 313 | __typename: Schema.Literal("ReviewDismissedEvent"), |
| 314 | /** Identifies the optional message associated with the 'review_dismissed' event. */ |
| 315 | dismissalMessage: Schema.NullOr(Schema.String), |
| 316 | /** Identifies the review associated with the 'review_dismissed' event. */ |
| 317 | review: Schema.NullOr(ReviewPullRequestReview) |
| 318 | }) |
| 319 | export interface ReviewDismissedEvent extends Schema.Struct.Type<typeof ReviewDismissedEvent.fields> {} |
| 320 | |
| 321 | /** An item in a pull request timeline */ |
| 322 | export const PullRequestTimelineItemsOther = Schema.Struct({ |
| 323 | __typename: GraphQL.otherTypename<Shared.Typename.PullRequestTimelineItems>()(["ReviewDismissedEvent"]) |
| 324 | }) |
| 325 | export interface PullRequestTimelineItemsOther extends Schema.Struct.Type<typeof PullRequestTimelineItemsOther.fields> {} |
| 326 | |
| 327 | /** The connection type for PullRequestTimelineItems. */ |
| 328 | export const PullRequestTimelineItemsConnection = Schema.Struct({ |
| 329 | /** Information to aid in pagination. */ |
| 330 | pageInfo: PageInfo, |
| 331 | /** A list of nodes. */ |
| 332 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([ |
| 333 | ReviewDismissedEvent, |
| 334 | PullRequestTimelineItemsOther |
| 335 | ])))) |
| 336 | }) |
| 337 | export interface PullRequestTimelineItemsConnection extends Schema.Struct.Type<typeof PullRequestTimelineItemsConnection.fields> {} |
| 338 | |
| 339 | /** Represents an actor in a Git commit (ie. an author or committer). */ |
| 340 | export const GitActor = Schema.Struct({ |
| 341 | /** The name in the Git commit. */ |
| 342 | name: Schema.NullOr(Schema.String), |
| 343 | /** A URL pointing to the author's public avatar. */ |
| 344 | avatarUrl: Shared.URI, |
| 345 | /** The GitHub user corresponding to the email field. Null if no such user exists. */ |
| 346 | user: Schema.NullOr(ViewerUser) |
| 347 | }) |
| 348 | export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {} |
| 349 | |
| 350 | /** The connection type for GitActor. */ |
| 351 | export const GitActorConnection = Schema.Struct({ |
| 352 | /** A list of nodes. */ |
| 353 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor))) |
| 354 | }) |
| 355 | export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {} |
| 356 | |
| 357 | /** Represents a Git commit. */ |
| 358 | export const Commit = Schema.Struct({ |
| 359 | /** The Git object ID */ |
| 360 | oid: Shared.GitObjectID, |
| 361 | /** The Git commit message headline */ |
| 362 | messageHeadline: Schema.String, |
| 363 | /** The datetime when this commit was committed. */ |
| 364 | committedDate: Shared.DateTime, |
| 365 | /** |
| 366 | * The list of authors for this commit based on the git author and the Co-authored-by |
| 367 | * message trailer. The git author will always be first. |
| 368 | */ |
| 369 | authors: GitActorConnection |
| 370 | }) |
| 371 | export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {} |
| 372 | |
| 373 | /** Represents a Git commit part of a pull request. */ |
| 374 | export const PullRequestCommit = Schema.Struct({ |
| 375 | /** The Git commit object */ |
| 376 | commit: Commit |
| 377 | }) |
| 378 | export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {} |
| 379 | |
| 380 | /** The connection type for PullRequestCommit. */ |
| 381 | export const PullRequestCommitConnection = Schema.Struct({ |
| 382 | /** A list of nodes. */ |
| 383 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit))) |
| 384 | }) |
| 385 | export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {} |
| 386 | |
| 387 | /** A repository pull request. */ |
| 388 | export const ReviewThreadsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 389 | /** The list of all review threads for this pull request. */ |
| 390 | reviewThreads: ReviewThreadPage, |
| 391 | /** Check if the current viewer can update this object. */ |
| 392 | viewerCanUpdate: Schema.Boolean, |
| 393 | /** Did the viewer author this comment. */ |
| 394 | viewerDidAuthor: Schema.Boolean, |
| 395 | /** The actor who authored the comment. */ |
| 396 | author: Schema.NullOr(Actor), |
| 397 | /** A list of reactions grouped by content left on the subject. */ |
| 398 | reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)), |
| 399 | /** A list of comments associated with the pull request. */ |
| 400 | comments: IssueCommentConnection, |
| 401 | /** A list of reviews associated with the pull request. */ |
| 402 | reviews: Schema.NullOr(ReviewsPullRequestReviewConnection), |
| 403 | /** A list of review requests associated with the pull request. */ |
| 404 | reviewRequests: Schema.NullOr(ReviewRequestConnection), |
| 405 | /** A list of latest reviews per user associated with the pull request that are not also pending review. */ |
| 406 | latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection), |
| 407 | /** A list of events, comments, commits, etc. associated with the pull request. */ |
| 408 | reviewDismissals: PullRequestTimelineItemsConnection, |
| 409 | /** A list of commits present in this pull request's head branch not present in the base branch. */ |
| 410 | commits: PullRequestCommitConnection |
| 411 | }) |
| 412 | export interface ReviewThreadsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadsRepositoryPullRequestPullRequest.fields> {} |
| 413 | |
| 414 | /** A repository contains the content for a project. */ |
| 415 | export const ReviewThreadsRepositoryRepository = Schema.Struct({ |
| 416 | /** Returns a single pull request from the current repository by number. */ |
| 417 | pullRequest: Schema.NullOr(ReviewThreadsRepositoryPullRequestPullRequest) |
| 418 | }) |
| 419 | export interface ReviewThreadsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadsRepositoryRepository.fields> {} |
| 420 | |
| 421 | /** `query ReviewThreads` */ |
| 422 | export const ReviewThreads = GraphQL.query("ReviewThreads", { |
| 423 | document: { |
| 424 | variables: [ |
| 425 | { name: "owner", body: "String!" }, |
| 426 | { name: "name", body: "String!" }, |
| 427 | { name: "number", body: "Int!" }, |
| 428 | { name: "requestedReviewers", body: "Int!" } |
| 429 | ], |
| 430 | selections: [ |
| 431 | { name: "viewer", body: ["{login}"] }, |
| 432 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100){...ReviewThreadPage}viewerCanUpdate viewerDidAuthor author{__typename login avatarUrl}...Reactions comments(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviews(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviewRequests(first:$", "requestedReviewers", "){nodes{requestedReviewer{__typename...on User{login name avatarUrl}...on Bot{login avatarUrl}...on Team{combinedSlug teamName:name teamAvatarUrl:avatarUrl}}}}latestReviews(first:50){nodes{state isMinimized author{__typename login avatarUrl}}}reviewDismissals:timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}commits(last:100){nodes{commit{oid messageHeadline committedDate authors(first:3){nodes{name avatarUrl user{login}}}}}}}}"] } |
| 433 | ], |
| 434 | fragments: [ |
| 435 | { name: "ReviewThreadPage", body: ["on PullRequestReviewThreadConnection{totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }, |
| 436 | { 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}}}}}"] }, |
| 437 | { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url isMinimized pullRequestReview{url}...Reactions}"] } |
| 438 | ] |
| 439 | }, |
| 440 | variables: { |
| 441 | owner: Schema.String, |
| 442 | name: Schema.String, |
| 443 | number: Shared.Int, |
| 444 | requestedReviewers: Shared.Int |
| 445 | }, |
| 446 | result: Schema.Struct({ |
| 447 | /** The currently authenticated user. */ |
| 448 | viewer: ViewerUser, |
| 449 | /** Lookup a given repository by the owner and repository name. */ |
| 450 | repository: Schema.NullOr(ReviewThreadsRepositoryRepository) |
| 451 | }) |
| 452 | }) |
| 453 | export declare namespace ReviewThreads { |
| 454 | export type Variables = typeof ReviewThreads.variables.Type |
| 455 | export type Result = typeof ReviewThreads.result.Type |
| 456 | } |
| 457 | |
| 458 | /** A repository pull request. */ |
| 459 | export const ReviewThreadPagesRepositoryPullRequestPullRequest = Schema.Struct({ |
| 460 | /** The list of all review threads for this pull request. */ |
| 461 | reviewThreads: ReviewThreadPage |
| 462 | }) |
| 463 | export interface ReviewThreadPagesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadPagesRepositoryPullRequestPullRequest.fields> {} |
| 464 | |
| 465 | /** A repository contains the content for a project. */ |
| 466 | export const ReviewThreadPagesRepositoryRepository = Schema.Struct({ |
| 467 | /** Returns a single pull request from the current repository by number. */ |
| 468 | pullRequest: Schema.NullOr(ReviewThreadPagesRepositoryPullRequestPullRequest) |
| 469 | }) |
| 470 | export interface ReviewThreadPagesRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadPagesRepositoryRepository.fields> {} |
| 471 | |
| 472 | /** `query ReviewThreadPages` */ |
| 473 | export const ReviewThreadPages = GraphQL.query("ReviewThreadPages", { |
| 474 | document: { |
| 475 | variables: [ |
| 476 | { name: "owner", body: "String!" }, |
| 477 | { name: "name", body: "String!" }, |
| 478 | { name: "number", body: "Int!" }, |
| 479 | { name: "after", body: "String!" } |
| 480 | ], |
| 481 | selections: [ |
| 482 | { name: "viewer", body: ["{login}"] }, |
| 483 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100 after:$", "after", "){...ReviewThreadPage}}}"] } |
| 484 | ], |
| 485 | fragments: [ |
| 486 | { name: "ReviewThreadPage", body: ["on PullRequestReviewThreadConnection{totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }, |
| 487 | { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url isMinimized pullRequestReview{url}...Reactions}"] }, |
| 488 | { 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}}}}}"] } |
| 489 | ] |
| 490 | }, |
| 491 | variables: { |
| 492 | owner: Schema.String, |
| 493 | name: Schema.String, |
| 494 | number: Shared.Int, |
| 495 | after: Schema.String |
| 496 | }, |
| 497 | result: Schema.Struct({ |
| 498 | /** The currently authenticated user. */ |
| 499 | viewer: ViewerUser, |
| 500 | /** Lookup a given repository by the owner and repository name. */ |
| 501 | repository: Schema.NullOr(ReviewThreadPagesRepositoryRepository) |
| 502 | }) |
| 503 | }) |
| 504 | export declare namespace ReviewThreadPages { |
| 505 | export type Variables = typeof ReviewThreadPages.variables.Type |
| 506 | export type Result = typeof ReviewThreadPages.result.Type |
| 507 | } |
| 508 | |
| 509 | /** A repository pull request. */ |
| 510 | export const ReviewThreadCommentsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 511 | /** The Node ID of the PullRequest object */ |
| 512 | id: Shared.ID |
| 513 | }) |
| 514 | export interface ReviewThreadCommentsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryPullRequestPullRequest.fields> {} |
| 515 | |
| 516 | /** A repository contains the content for a project. */ |
| 517 | export const ReviewThreadCommentsRepositoryRepository = Schema.Struct({ |
| 518 | /** Returns a single pull request from the current repository by number. */ |
| 519 | pullRequest: Schema.NullOr(ReviewThreadCommentsRepositoryPullRequestPullRequest) |
| 520 | }) |
| 521 | export interface ReviewThreadCommentsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryRepository.fields> {} |
| 522 | |
| 523 | /** The connection type for PullRequestReviewComment. */ |
| 524 | export const NodeCommentsPullRequestReviewCommentConnection = Schema.Struct({ |
| 525 | /** Information to aid in pagination. */ |
| 526 | pageInfo: PageInfo, |
| 527 | /** A list of nodes. */ |
| 528 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment))) |
| 529 | }) |
| 530 | export interface NodeCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodeCommentsPullRequestReviewCommentConnection.fields> {} |
| 531 | |
| 532 | /** A threaded list of comments for a given pull request. */ |
| 533 | export const NodePullRequestReviewThread = Schema.Struct({ |
| 534 | __typename: Schema.Literal("PullRequestReviewThread"), |
| 535 | /** Identifies the pull request associated with this thread. */ |
| 536 | pullRequest: ReviewThreadCommentsRepositoryPullRequestPullRequest, |
| 537 | /** A list of pull request comments associated with the thread. */ |
| 538 | comments: NodeCommentsPullRequestReviewCommentConnection |
| 539 | }) |
| 540 | export interface NodePullRequestReviewThread extends Schema.Struct.Type<typeof NodePullRequestReviewThread.fields> {} |
| 541 | |
| 542 | /** An object with an ID. */ |
| 543 | export const NodeOther = Schema.Struct({ |
| 544 | __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["PullRequestReviewThread"]) |
| 545 | }) |
| 546 | export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {} |
| 547 | |
| 548 | /** `query ReviewThreadComments` */ |
| 549 | export const ReviewThreadComments = GraphQL.query("ReviewThreadComments", { |
| 550 | document: { |
| 551 | variables: [ |
| 552 | { name: "owner", body: "String!" }, |
| 553 | { name: "name", body: "String!" }, |
| 554 | { name: "number", body: "Int!" }, |
| 555 | { name: "threadId", body: "ID!" }, |
| 556 | { name: "after", body: "String" } |
| 557 | ], |
| 558 | selections: [ |
| 559 | { name: "viewer", body: ["{login}"] }, |
| 560 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] }, |
| 561 | { name: "node", body: ["(id:$", "threadId", "){__typename...on PullRequestReviewThread{pullRequest{id}comments(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] } |
| 562 | ], |
| 563 | fragments: [ |
| 564 | { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url isMinimized pullRequestReview{url}...Reactions}"] }, |
| 565 | { 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}}}}}"] } |
| 566 | ] |
| 567 | }, |
| 568 | variables: { |
| 569 | owner: Schema.String, |
| 570 | name: Schema.String, |
| 571 | number: Shared.Int, |
| 572 | threadId: Shared.ID, |
| 573 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 574 | }, |
| 575 | result: Schema.Struct({ |
| 576 | /** The currently authenticated user. */ |
| 577 | viewer: ViewerUser, |
| 578 | /** Lookup a given repository by the owner and repository name. */ |
| 579 | repository: Schema.NullOr(ReviewThreadCommentsRepositoryRepository), |
| 580 | /** Fetches an object given its ID. */ |
| 581 | node: Schema.NullOr(Schema.Union([ |
| 582 | NodePullRequestReviewThread, |
| 583 | NodeOther |
| 584 | ])) |
| 585 | }) |
| 586 | }) |
| 587 | export declare namespace ReviewThreadComments { |
| 588 | export type Variables = typeof ReviewThreadComments.variables.Type |
| 589 | export type Result = typeof ReviewThreadComments.result.Type |
| 590 | } |
| 591 | |
| 592 | /** A repository pull request. */ |
| 593 | export const ReviewDismissalsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 594 | /** A list of events, comments, commits, etc. associated with the pull request. */ |
| 595 | timelineItems: PullRequestTimelineItemsConnection |
| 596 | }) |
| 597 | export interface ReviewDismissalsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryPullRequestPullRequest.fields> {} |
| 598 | |
| 599 | /** A repository contains the content for a project. */ |
| 600 | export const ReviewDismissalsRepositoryRepository = Schema.Struct({ |
| 601 | /** Returns a single pull request from the current repository by number. */ |
| 602 | pullRequest: Schema.NullOr(ReviewDismissalsRepositoryPullRequestPullRequest) |
| 603 | }) |
| 604 | export interface ReviewDismissalsRepositoryRepository extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryRepository.fields> {} |
| 605 | |
| 606 | /** `query ReviewDismissals` */ |
| 607 | export const ReviewDismissals = GraphQL.query("ReviewDismissals", { |
| 608 | document: { |
| 609 | variables: [ |
| 610 | { name: "owner", body: "String!" }, |
| 611 | { name: "name", body: "String!" }, |
| 612 | { name: "number", body: "Int!" }, |
| 613 | { name: "after", body: "String" } |
| 614 | ], |
| 615 | selections: [ |
| 616 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}}}"] } |
| 617 | ], |
| 618 | fragments: [] |
| 619 | }, |
| 620 | variables: { |
| 621 | owner: Schema.String, |
| 622 | name: Schema.String, |
| 623 | number: Shared.Int, |
| 624 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 625 | }, |
| 626 | result: Schema.Struct({ |
| 627 | /** Lookup a given repository by the owner and repository name. */ |
| 628 | repository: Schema.NullOr(ReviewDismissalsRepositoryRepository) |
| 629 | }) |
| 630 | }) |
| 631 | export declare namespace ReviewDismissals { |
| 632 | export type Variables = typeof ReviewDismissals.variables.Type |
| 633 | export type Result = typeof ReviewDismissals.result.Type |
| 634 | } |
| 635 | |
| 636 | /** Every operation in pullRequestReviews.graphql. */ |
| 637 | export const PullRequestReviewsGraphQLGroup = GraphQLGroup.make(ReviewThreads, ReviewThreadPages, ReviewThreadComments, ReviewDismissals) |