From fe1a1136dd0b488b623f9b837ee14ca1f05356a8 Mon Sep 17 00:00:00 2001 From: Tim Kendall Date: Thu, 25 Nov 2021 12:53:28 -0800 Subject: [PATCH] Ast rewrite (#88) * Star rewriting on standard graphql-js AST * Add result 3 * Use Node 16 * Add pnpm-lock.yaml * Fix intelliscence nullability * Fix Result type nullability * Rename type tests * Refactor Result type * Fix example add critical comment * Helpful comment * Implement fragment support idea * Simplify inline fragment implementation * Fix simple-scalar type test * Actually implement SpreadFragments correctly * Fix union test * Add a little complexity to union test * Get deep Variables working * Add variables in fragments test * Patch type tests * Implement Selection runtime class * Add simple parameterized schema type test * Remove unneeded comments * Re-implement most of codegen * Implement codegen extends * Pass through variable type parameters * Update .gitignore * Support ReadonlyArray in schemas * Remove unneeded files * Generate inline fragment selectior fns * Use TypedDocumentNode from @apollo/client * Comment out codegen test * Update readme and docs * Split codegen into seperate package * Uncomment Variables tests * Remove codegen prepublish and prepush cmds * Set tql-gen to 1.0.0-rc.1 * Add description to tql-gen * Remove prepublish and prepush cmds * Add sideEffects false to package.json * Update README and limitations doc --- .github/workflows/ci.yml | 2 +- .github/workflows/manual.yml | 20 - .github/workflows/publish.yml | 2 +- .github/workflows/release.yml | 2 +- .gitignore | 5 +- .nvmrc | 2 +- CURRENT_LIMITATIONS.md | 14 +- README.md | 34 +- __tests__/README.md | 7 + __tests__/__snapshots__/schemas.test.ts.snap | 174 - __tests__/github/github.schema.graphql | 38145 ------- __tests__/github/github.sdk.ts | 95128 ---------------- __tests__/github/operations.ts | 22 - __tests__/hasura/hasura.schema.graphql | 2713 - __tests__/hasura/hasura.sdk.ts | 8318 -- __tests__/hasura/operationts.ts | 23 - __tests__/schemas.test.ts | 94 - .../{starwars => }/starwars.schema.graphql | 0 __tests__/starwars/client.test.ts | 15 - __tests__/starwars/operations.ts | 34 - __tests__/starwars/starwars.schema.ts | 512 - __tests__/starwars/starwars.sdk.ts | 1223 - codegen/__tests__/.gitkeep | 0 {bin => codegen/bin}/index | 0 codegen/package.json | 55 + codegen/src/CLI.ts | 48 + codegen/src/__tests__/render.test.ts | 132 + codegen/src/index.ts | 3 + codegen/src/render.ts | 69 + codegen/src/transforms/index.ts | 2 + codegen/src/transforms/selectors.ts | 387 + codegen/src/transforms/types.ts | 265 + codegen/src/utils.ts | 62 + codegen/tsconfig.json | 24 + codegen/tsconfig.release.json | 10 + examples/apollo-client/index.ts | 36 - examples/apollo-client/package-lock.json | 513 - examples/apollo-client/package.json | 20 - examples/graphql-request/index.ts | 19 - examples/graphql-request/package-lock.json | 196 - examples/graphql-request/package.json | 16 - index.d.ts | 1 + jest.config.js | 4 +- lefthook.yml | 2 +- package.json | 49 +- pnpm-lock.yaml | 4321 + pnpm-workspace.yaml | 2 + src/AST.ts | 372 +- src/CLI.ts | 83 - src/Client.ts | 81 - src/Codegen.ts | 935 - src/Operation.ts | 231 - src/Query.ts | 48 - src/Result.ts | 128 +- src/Selection.ts | 113 + src/Selector.ts | 61 - src/Variables.ts | 106 + src/__tests__/Client.test.ts | 79 - src/__tests__/Operation.test.ts | 70 - src/__tests__/Selected.test.ts | 9 + src/__tests__/Selector.test.ts | 86 - src/__tests__/Variables.test.ts | 81 + src/index.ts | 7 +- starwars.api.ts | 1044 - starwars.example.ts | 20 - test-d/fragments.test-d.ts | 92 + test-d/interface.test-d.ts | 96 + test-d/nested-objects.ts | 73 + test-d/nested-variables.test-d.ts | 46 + test-d/optional-variables.test-d.ts | 0 test-d/parameterized.test-d.ts | 19 + test-d/simple-object.ts | 53 + test-d/simple-scalar.test-d.ts | 19 + test-d/union.test-d.ts | 104 + .../variables-nested-in-fragments.test-d.ts | 66 + test-d/variables.test-d.ts | 28 + tsconfig.json | 10 +- tsconfig.release.json | 1 + yarn.lock | 4082 - 79 files changed, 6703 insertions(+), 154265 deletions(-) delete mode 100644 .github/workflows/manual.yml create mode 100644 __tests__/README.md delete mode 100644 __tests__/__snapshots__/schemas.test.ts.snap delete mode 100644 __tests__/github/github.schema.graphql delete mode 100644 __tests__/github/github.sdk.ts delete mode 100644 __tests__/github/operations.ts delete mode 100644 __tests__/hasura/hasura.schema.graphql delete mode 100644 __tests__/hasura/hasura.sdk.ts delete mode 100644 __tests__/hasura/operationts.ts delete mode 100644 __tests__/schemas.test.ts rename __tests__/{starwars => }/starwars.schema.graphql (100%) delete mode 100644 __tests__/starwars/client.test.ts delete mode 100644 __tests__/starwars/operations.ts delete mode 100644 __tests__/starwars/starwars.schema.ts delete mode 100644 __tests__/starwars/starwars.sdk.ts create mode 100644 codegen/__tests__/.gitkeep rename {bin => codegen/bin}/index (100%) create mode 100644 codegen/package.json create mode 100644 codegen/src/CLI.ts create mode 100644 codegen/src/__tests__/render.test.ts create mode 100644 codegen/src/index.ts create mode 100644 codegen/src/render.ts create mode 100644 codegen/src/transforms/index.ts create mode 100644 codegen/src/transforms/selectors.ts create mode 100644 codegen/src/transforms/types.ts create mode 100644 codegen/src/utils.ts create mode 100644 codegen/tsconfig.json create mode 100644 codegen/tsconfig.release.json delete mode 100644 examples/apollo-client/index.ts delete mode 100644 examples/apollo-client/package-lock.json delete mode 100644 examples/apollo-client/package.json delete mode 100644 examples/graphql-request/index.ts delete mode 100644 examples/graphql-request/package-lock.json delete mode 100644 examples/graphql-request/package.json create mode 100644 index.d.ts create mode 100644 pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml delete mode 100644 src/CLI.ts delete mode 100644 src/Client.ts delete mode 100644 src/Codegen.ts delete mode 100644 src/Operation.ts delete mode 100644 src/Query.ts create mode 100644 src/Selection.ts delete mode 100644 src/Selector.ts create mode 100644 src/Variables.ts delete mode 100644 src/__tests__/Client.test.ts delete mode 100644 src/__tests__/Operation.test.ts create mode 100644 src/__tests__/Selected.test.ts delete mode 100644 src/__tests__/Selector.test.ts create mode 100644 src/__tests__/Variables.test.ts delete mode 100644 starwars.api.ts delete mode 100644 starwars.example.ts create mode 100644 test-d/fragments.test-d.ts create mode 100644 test-d/interface.test-d.ts create mode 100644 test-d/nested-objects.ts create mode 100644 test-d/nested-variables.test-d.ts create mode 100644 test-d/optional-variables.test-d.ts create mode 100644 test-d/parameterized.test-d.ts create mode 100644 test-d/simple-object.ts create mode 100644 test-d/simple-scalar.test-d.ts create mode 100644 test-d/union.test-d.ts create mode 100644 test-d/variables-nested-in-fragments.test-d.ts create mode 100644 test-d/variables.test-d.ts delete mode 100644 yarn.lock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09cf092..c2aa2fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: '14' + node-version: '16' - name: 'Cache node_modules' uses: actions/cache@v2 diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml deleted file mode 100644 index 7c3b454..0000000 --- a/.github/workflows/manual.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Manually triggered workflow -on: - workflow_dispatch: - inputs: - name: - description: 'Person to greet' - required: true - default: 'Mona the Octocat' - home: - description: 'location' - required: false - default: 'The Octoverse' - -jobs: - say_hello: - runs-on: ubuntu-latest - steps: - - run: | - echo "Hello ${{ github.event.inputs.name }}!" - echo "- in ${{ github.event.inputs.home }}!" \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d0a8b28..c318ac5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: '14' + node-version: '16' - name: 'Cache node_modules' uses: actions/cache@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3bba6b..e4456c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: '14' + node-version: '16' - uses: olegtarasov/get-tag@v2.1 id: tagName diff --git a/.gitignore b/.gitignore index a5cb6c5..5b01939 100644 --- a/.gitignore +++ b/.gitignore @@ -105,4 +105,7 @@ dist notes.txt -failing-examples \ No newline at end of file +failing-examples + +sdk.ts +*_test.ts \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 61fc687..5edcff0 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v14.15.0 \ No newline at end of file +v16 \ No newline at end of file diff --git a/CURRENT_LIMITATIONS.md b/CURRENT_LIMITATIONS.md index 1e53af5..574b4a9 100644 --- a/CURRENT_LIMITATIONS.md +++ b/CURRENT_LIMITATIONS.md @@ -1,15 +1,19 @@ # Current Limitations -## required for 1.0 +## Required for 1.0 - [x] Interface type support - [x] Nested input object support - [x] Union type support - [x] `mutation` or `subscription` operation support - [x] Nullable field support -- [ ] Variable definition support - -## perhaps in 1.x +- [x] Variable definition support +- [x] Rewrite `Result` and `Variable` types +- [x] Type-level testing +- [x] Default unknown scalars to `string`'s +- [ ] Restricing `Selection`'s in selector function returns +- [ ] Finish rewriting unit tests - [ ] Field alias support - [ ] Directive support +- [ ] Custom scalar support yet (e.g no `Date` objects), limited to JS built-ins (custom scalars default to `string`'s) - [ ] Named fragments -- [ ] Custom scalar support yet (e.g no `Date` objects), limited to JS built-ins. \ No newline at end of file +- [ ] Documentation \ No newline at end of file diff --git a/README.md b/README.md index 9409b3d..5270853 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # TQL -> Note: this is **pre-production software** at this point, see the **[current limitations](./CURRENT_LIMITATIONS.md)**. +> 🚧 We are getting close to `1.0` but this is still **pre-production software** at this point, see the **[current limitations](./CURRENT_LIMITATIONS.md)**. **tql** is a TypeScript GraphQL query builder. @@ -8,34 +8,36 @@ - **Fully type-safe** - take advantage of the full power of TypeScript's advanced type-system. - **Backendless** - integrate with any existing GraphQL client. -## [Try it Out](https://repl.it/@timkendall/TQL-Starwars) +## [Try it Out](https://codesandbox.io/s/tql-starwars-wlfg9?file=/src/index.ts&runonclick=1) -Try out our pre-compiled Star Wars GraphQL client on [Repl.it](https://repl.it/)! +Try out our pre-compiled Star Wars GraphQL SDK on [CodeSandbox](https://codesandbox.io/s/tql-starwars-wlfg9?file=/src/index.ts&runonclick=1)! ## Installation -`npm install @timkendall/tql` or `yarn add @timkendall/tql` +1. `npm install @timkendall/tql@beta` -* **TypeScript 4.1+** is required for [Recursive Conditional Type](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#recursive-conditional-types) support + * **TypeScript 4.1+** is required for [Recursive Conditional Type](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#recursive-conditional-types) support +2. Generate an SDK with `npx @timkendall/tql-gen > sdk.ts` -## Usage - -You will need to compile a type-safe client one time before using. Do this with the provided CLI: -`yarn --silent tql > example.api.ts`. +## Usage +Import selector functions to start defining queries 🎉 ```typescript -import { query } from './example.api' +import { useQuery } from '@apollo/client' -const operation = query("Example", (t) => [ +// SDK generated in previous setup +import { query, $ } from './starwars' + +const QUERY = query((t) => [ t.reviews({ episode: Episode.EMPIRE }, (t) => [ t.stars(), t.commentary(), ]), - t.human({ id: "1002" }, (t) => [ + t.human({ id: $('id') }, (t) => [ t.__typename(), t.id(), t.name(), @@ -45,7 +47,7 @@ const operation = query("Example", (t) => [ // @note Deprecated field should be properly picked-up by VSCode! t.mass(), - t.friends((t) => [ + t.friends((t) => [ t.__typename(), t.id(), t.name(), @@ -57,7 +59,11 @@ const operation = query("Example", (t) => [ t.starships((t) => [t.id(), t.name()]), ]), -]); +]).toQuery({ name: 'Example' }) + +// type-safe result and variables 👍 +const { data } = useQuery(QUERY, { variables: { id: '1011' }}) + ``` ## Inspiration diff --git a/__tests__/README.md b/__tests__/README.md new file mode 100644 index 0000000..04c925b --- /dev/null +++ b/__tests__/README.md @@ -0,0 +1,7 @@ +# Integration Tests + +We use the canonical [graphql/swapi-graphql](https://github.com/graphql/swapi-graphql) API as our top-level integration tests. You can configure the test suite to run against your own schema by following the instructions below. If you find a bug please [open an issue](https://github.com/timkendall/tql/issues/new)!. + +## Running + +`yarn test:int ` (defaults to the Starwars schema defined here) \ No newline at end of file diff --git a/__tests__/__snapshots__/schemas.test.ts.snap b/__tests__/__snapshots__/schemas.test.ts.snap deleted file mode 100644 index 62da80b..0000000 --- a/__tests__/__snapshots__/schemas.test.ts.snap +++ /dev/null @@ -1,174 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Schemas GitHub Viewer renders the expected operation 1`] = ` -"query Viewer { - viewer { - name - twitterUsername - status { - emoji - expiresAt - } - repositories(first: 3) { - pageInfo { - endCursor - startCursor - hasNextPage - hasPreviousPage - } - nodes { - __typename - id - name - createdAt - } - edges { - cursor - node { - id - } - } - } - } -}" -`; - -exports[`Schemas Hasura Bookmarks renders the expected operation 1`] = ` -"query Bookmarks { - bookmarks(limit: 10) { - id - name - children_aggregate(distinct_on: createdUtc) { - aggregate { - min { - id - } - max { - id - } - } - nodes { - id - createdUtc - } - } - } - playlist_items_by_pk(id: 1) { - __typename - id - position - } -}" -`; - -exports[`Schemas Star Wars Example renders an executable operation 1`] = ` -Object { - "data": Object { - "human": Object { - "__typename": "Human", - "appearsIn": Array [ - "NEWHOPE", - "EMPIRE", - "JEDI", - ], - "friends": Array [ - Object { - "__typename": "Human", - "appearsIn": Array [ - "NEWHOPE", - "EMPIRE", - "JEDI", - ], - "homePlanet": "Tatooine", - "id": "1000", - "name": "Luke Skywalker", - }, - Object { - "__typename": "Human", - "appearsIn": Array [ - "NEWHOPE", - "EMPIRE", - "JEDI", - ], - "homePlanet": "Alderaan", - "id": "1003", - "name": "Leia Organa", - }, - Object { - "__typename": "Droid", - "appearsIn": Array [ - "NEWHOPE", - "EMPIRE", - "JEDI", - ], - "id": "2001", - "name": "R2-D2", - "primaryFunction": "Astromech", - }, - ], - "homePlanet": null, - "id": "1002", - "mass": 80, - "name": "Han Solo", - "starships": Array [ - Object { - "id": "3000", - "name": "Millenium Falcon", - }, - Object { - "id": "3003", - "name": "Imperial shuttle", - }, - ], - }, - "reviews": Array [], - "search": Array [ - Object { - "__typename": "Human", - "id": "1002", - "name": "Han Solo", - }, - ], - }, -} -`; - -exports[`Schemas Star Wars Example renders the expected operation 1`] = ` -"query Example { - search(text: \\"han\\") { - __typename - ... on Human { - id - name - } - } - reviews(episode: EMPIRE) { - stars - commentary - } - human(id: \\"1002\\") { - __typename - id - name - appearsIn - homePlanet - mass - friends { - __typename - id - name - appearsIn - ... on Human { - homePlanet - } - ... on Droid { - primaryFunction - } - } - starships { - id - name - } - } -}" -`; diff --git a/__tests__/github/github.schema.graphql b/__tests__/github/github.schema.graphql deleted file mode 100644 index 74b7564..0000000 --- a/__tests__/github/github.schema.graphql +++ /dev/null @@ -1,38145 +0,0 @@ -""" -Autogenerated input type of AcceptEnterpriseAdministratorInvitation -""" -input AcceptEnterpriseAdministratorInvitationInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the invitation being accepted - """ - invitationId: ID! -} - -""" -Autogenerated return type of AcceptEnterpriseAdministratorInvitation -""" -type AcceptEnterpriseAdministratorInvitationPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The invitation that was accepted. - """ - invitation: EnterpriseAdministratorInvitation - - """ - A message confirming the result of accepting an administrator invitation. - """ - message: String -} - -""" -Autogenerated input type of AcceptTopicSuggestion -""" -input AcceptTopicSuggestionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of the suggested topic. - """ - name: String! - - """ - The Node ID of the repository. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of AcceptTopicSuggestion -""" -type AcceptTopicSuggestionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The accepted topic. - """ - topic: Topic -} - -""" -Represents an object which can take actions on GitHub. Typically a User or Bot. -""" -interface Actor { - """ - A URL pointing to the actor's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - The username of the actor. - """ - login: String! - - """ - The HTTP path for this actor. - """ - resourcePath: URI! - - """ - The HTTP URL for this actor. - """ - url: URI! -} - -""" -Location information for an actor -""" -type ActorLocation { - """ - City - """ - city: String - - """ - Country name - """ - country: String - - """ - Country code - """ - countryCode: String - - """ - Region name - """ - region: String - - """ - Region or state code - """ - regionCode: String -} - -""" -Autogenerated input type of AddAssigneesToAssignable -""" -input AddAssigneesToAssignableInput { - """ - The id of the assignable object to add assignees to. - """ - assignableId: ID! - - """ - The id of users to add as assignees. - """ - assigneeIds: [ID!]! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated return type of AddAssigneesToAssignable -""" -type AddAssigneesToAssignablePayload { - """ - The item that was assigned. - """ - assignable: Assignable - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of AddComment -""" -input AddCommentInput { - """ - The contents of the comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the subject to modify. - """ - subjectId: ID! -} - -""" -Autogenerated return type of AddComment -""" -type AddCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The edge from the subject's comment connection. - """ - commentEdge: IssueCommentEdge - - """ - The subject - """ - subject: Node - - """ - The edge from the subject's timeline connection. - """ - timelineEdge: IssueTimelineItemEdge -} - -""" -Autogenerated input type of AddLabelsToLabelable -""" -input AddLabelsToLabelableInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ids of the labels to add. - """ - labelIds: [ID!]! - - """ - The id of the labelable object to add labels to. - """ - labelableId: ID! -} - -""" -Autogenerated return type of AddLabelsToLabelable -""" -type AddLabelsToLabelablePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The item that was labeled. - """ - labelable: Labelable -} - -""" -Autogenerated input type of AddProjectCard -""" -input AddProjectCardInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The content of the card. Must be a member of the ProjectCardItem union - """ - contentId: ID - - """ - The note on the card. - """ - note: String - - """ - The Node ID of the ProjectColumn. - """ - projectColumnId: ID! -} - -""" -Autogenerated return type of AddProjectCard -""" -type AddProjectCardPayload { - """ - The edge from the ProjectColumn's card connection. - """ - cardEdge: ProjectCardEdge - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ProjectColumn - """ - projectColumn: ProjectColumn -} - -""" -Autogenerated input type of AddProjectColumn -""" -input AddProjectColumnInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of the column. - """ - name: String! - - """ - The Node ID of the project. - """ - projectId: ID! -} - -""" -Autogenerated return type of AddProjectColumn -""" -type AddProjectColumnPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The edge from the project's column connection. - """ - columnEdge: ProjectColumnEdge - - """ - The project - """ - project: Project -} - -""" -Autogenerated input type of AddPullRequestReviewComment -""" -input AddPullRequestReviewCommentInput { - """ - The text of the comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The SHA of the commit to comment on. - """ - commitOID: GitObjectID - - """ - The comment id to reply to. - """ - inReplyTo: ID - - """ - The relative path of the file to comment on. - """ - path: String - - """ - The line index in the diff to comment on. - """ - position: Int - - """ - The node ID of the pull request reviewing - """ - pullRequestId: ID - - """ - The Node ID of the review to modify. - """ - pullRequestReviewId: ID -} - -""" -Autogenerated return type of AddPullRequestReviewComment -""" -type AddPullRequestReviewCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The newly created comment. - """ - comment: PullRequestReviewComment - - """ - The edge from the review's comment connection. - """ - commentEdge: PullRequestReviewCommentEdge -} - -""" -Autogenerated input type of AddPullRequestReview -""" -input AddPullRequestReviewInput { - """ - The contents of the review body comment. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The review line comments. - """ - comments: [DraftPullRequestReviewComment] - - """ - The commit OID the review pertains to. - """ - commitOID: GitObjectID - - """ - The event to perform on the pull request review. - """ - event: PullRequestReviewEvent - - """ - The Node ID of the pull request to modify. - """ - pullRequestId: ID! - - """ - The review line comment threads. - """ - threads: [DraftPullRequestReviewThread] -} - -""" -Autogenerated return type of AddPullRequestReview -""" -type AddPullRequestReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The newly created pull request review. - """ - pullRequestReview: PullRequestReview - - """ - The edge from the pull request's review connection. - """ - reviewEdge: PullRequestReviewEdge -} - -""" -Autogenerated input type of AddPullRequestReviewThread -""" -input AddPullRequestReviewThreadInput { - """ - Body of the thread's first comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The line of the blob to which the thread refers. The end of the line range for multi-line comments. - """ - line: Int! - - """ - Path to the file being commented on. - """ - path: String! - - """ - The node ID of the pull request reviewing - """ - pullRequestId: ID - - """ - The Node ID of the review to modify. - """ - pullRequestReviewId: ID - - """ - The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. - """ - side: DiffSide = RIGHT - - """ - The first line of the range to which the comment refers. - """ - startLine: Int - - """ - The side of the diff on which the start line resides. - """ - startSide: DiffSide = RIGHT -} - -""" -Autogenerated return type of AddPullRequestReviewThread -""" -type AddPullRequestReviewThreadPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The newly created thread. - """ - thread: PullRequestReviewThread -} - -""" -Autogenerated input type of AddReaction -""" -input AddReactionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of the emoji to react with. - """ - content: ReactionContent! - - """ - The Node ID of the subject to modify. - """ - subjectId: ID! -} - -""" -Autogenerated return type of AddReaction -""" -type AddReactionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The reaction object. - """ - reaction: Reaction - - """ - The reactable subject. - """ - subject: Reactable -} - -""" -Autogenerated input type of AddStar -""" -input AddStarInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Starrable ID to star. - """ - starrableId: ID! -} - -""" -Autogenerated return type of AddStar -""" -type AddStarPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The starrable. - """ - starrable: Starrable -} - -""" -Represents a 'added_to_project' event on a given issue or pull request. -""" -type AddedToProjectEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! -} - -""" -A GitHub App. -""" -type App implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The description of the app. - """ - description: String - id: ID! - - """ - The hex color code, without the leading '#', for the logo background. - """ - logoBackgroundColor: String! - - """ - A URL pointing to the app's logo. - """ - logoUrl( - """ - The size of the resulting image. - """ - size: Int - ): URI! - - """ - The name of the app. - """ - name: String! - - """ - A slug based on the name of the app for use in URLs. - """ - slug: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The URL to the app's homepage. - """ - url: URI! -} - -""" -Autogenerated input type of ArchiveRepository -""" -input ArchiveRepositoryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the repository to mark as archived. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of ArchiveRepository -""" -type ArchiveRepositoryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The repository that was marked as archived. - """ - repository: Repository -} - -""" -An object that can have users assigned to it. -""" -interface Assignable { - """ - A list of Users assigned to this object. - """ - assignees( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! -} - -""" -Represents an 'assigned' event on any assignable object. -""" -type AssignedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the assignable associated with the event. - """ - assignable: Assignable! - - """ - Identifies the user or mannequin that was assigned. - """ - assignee: Assignee - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the user who was assigned. - """ - user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") -} - -""" -Types that can be assigned to issues. -""" -union Assignee = Bot | Mannequin | Organization | User - -""" -An entry in the audit log. -""" -interface AuditEntry { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Types that can initiate an audit log event. -""" -union AuditEntryActor = Bot | Organization | User - -""" -Ordering options for Audit Log connections. -""" -input AuditLogOrder { - """ - The ordering direction. - """ - direction: OrderDirection - - """ - The field to order Audit Logs by. - """ - field: AuditLogOrderField -} - -""" -Properties by which Audit Log connections can be ordered. -""" -enum AuditLogOrderField { - """ - Order audit log entries by timestamp - """ - CREATED_AT -} - -""" -Represents a 'automatic_base_change_failed' event on a given pull request. -""" -type AutomaticBaseChangeFailedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The new base for this PR - """ - newBase: String! - - """ - The old base for this PR - """ - oldBase: String! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Represents a 'automatic_base_change_succeeded' event on a given pull request. -""" -type AutomaticBaseChangeSucceededEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The new base for this PR - """ - newBase: String! - - """ - The old base for this PR - """ - oldBase: String! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Represents a 'base_ref_changed' event on a given issue or pull request. -""" -type BaseRefChangedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the name of the base ref for the pull request after it was changed. - """ - currentRefName: String! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - Identifies the name of the base ref for the pull request before it was changed. - """ - previousRefName: String! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Represents a 'base_ref_deleted' event on a given pull request. -""" -type BaseRefDeletedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the name of the Ref associated with the `base_ref_deleted` event. - """ - baseRefName: String - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest -} - -""" -Represents a 'base_ref_force_pushed' event on a given pull request. -""" -type BaseRefForcePushedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the after commit SHA for the 'base_ref_force_pushed' event. - """ - afterCommit: Commit - - """ - Identifies the before commit SHA for the 'base_ref_force_pushed' event. - """ - beforeCommit: Commit - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. - """ - ref: Ref -} - -""" -Represents a Git blame. -""" -type Blame { - """ - The list of ranges from a Git blame. - """ - ranges: [BlameRange!]! -} - -""" -Represents a range of information from a Git blame. -""" -type BlameRange { - """ - Identifies the recency of the change, from 1 (new) to 10 (old). This is - calculated as a 2-quantile and determines the length of distance between the - median age of all the changes in the file and the recency of the current - range's change. - """ - age: Int! - - """ - Identifies the line author - """ - commit: Commit! - - """ - The ending line for the range - """ - endingLine: Int! - - """ - The starting line for the range - """ - startingLine: Int! -} - -""" -Represents a Git blob. -""" -type Blob implements GitObject & Node { - """ - An abbreviated version of the Git object ID - """ - abbreviatedOid: String! - - """ - Byte size of Blob object - """ - byteSize: Int! - - """ - The HTTP path for this Git object - """ - commitResourcePath: URI! - - """ - The HTTP URL for this Git object - """ - commitUrl: URI! - id: ID! - - """ - Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. - """ - isBinary: Boolean - - """ - Indicates whether the contents is truncated - """ - isTruncated: Boolean! - - """ - The Git object ID - """ - oid: GitObjectID! - - """ - The Repository the Git object belongs to - """ - repository: Repository! - - """ - UTF8 text data or null if the Blob is binary - """ - text: String -} - -""" -A special type of user which takes actions on behalf of GitHub Apps. -""" -type Bot implements Actor & Node & UniformResourceLocatable { - """ - A URL pointing to the GitHub App's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - The username of the actor. - """ - login: String! - - """ - The HTTP path for this bot - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this bot - """ - url: URI! -} - -""" -A branch protection rule. -""" -type BranchProtectionRule implements Node { - """ - Can this branch be deleted. - """ - allowsDeletions: Boolean! - - """ - Are force pushes allowed on this branch. - """ - allowsForcePushes: Boolean! - - """ - A list of conflicts matching branches protection rule and other branch protection rules - """ - branchProtectionRuleConflicts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): BranchProtectionRuleConflictConnection! - - """ - The actor who created this branch protection rule. - """ - creator: Actor - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - Will new commits pushed to matching branches dismiss pull request review approvals. - """ - dismissesStaleReviews: Boolean! - id: ID! - - """ - Can admins overwrite branch protection. - """ - isAdminEnforced: Boolean! - - """ - Repository refs that are protected by this rule - """ - matchingRefs( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filters refs with query on name - """ - query: String - ): RefConnection! - - """ - Identifies the protection rule pattern. - """ - pattern: String! - - """ - A list push allowances for this branch protection rule. - """ - pushAllowances( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PushAllowanceConnection! - - """ - The repository associated with this branch protection rule. - """ - repository: Repository - - """ - Number of approving reviews required to update matching branches. - """ - requiredApprovingReviewCount: Int - - """ - List of required status check contexts that must pass for commits to be accepted to matching branches. - """ - requiredStatusCheckContexts: [String] - - """ - Are approving reviews required to update matching branches. - """ - requiresApprovingReviews: Boolean! - - """ - Are reviews from code owners required to update matching branches. - """ - requiresCodeOwnerReviews: Boolean! - - """ - Are commits required to be signed. - """ - requiresCommitSignatures: Boolean! - - """ - Are merge commits prohibited from being pushed to this branch. - """ - requiresLinearHistory: Boolean! - - """ - Are status checks required to update matching branches. - """ - requiresStatusChecks: Boolean! - - """ - Are branches required to be up to date before merging. - """ - requiresStrictStatusChecks: Boolean! - - """ - Is pushing to matching branches restricted. - """ - restrictsPushes: Boolean! - - """ - Is dismissal of pull request reviews restricted. - """ - restrictsReviewDismissals: Boolean! - - """ - A list review dismissal allowances for this branch protection rule. - """ - reviewDismissalAllowances( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ReviewDismissalAllowanceConnection! -} - -""" -A conflict between two branch protection rules. -""" -type BranchProtectionRuleConflict { - """ - Identifies the branch protection rule. - """ - branchProtectionRule: BranchProtectionRule - - """ - Identifies the conflicting branch protection rule. - """ - conflictingBranchProtectionRule: BranchProtectionRule - - """ - Identifies the branch ref that has conflicting rules - """ - ref: Ref -} - -""" -The connection type for BranchProtectionRuleConflict. -""" -type BranchProtectionRuleConflictConnection { - """ - A list of edges. - """ - edges: [BranchProtectionRuleConflictEdge] - - """ - A list of nodes. - """ - nodes: [BranchProtectionRuleConflict] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type BranchProtectionRuleConflictEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: BranchProtectionRuleConflict -} - -""" -The connection type for BranchProtectionRule. -""" -type BranchProtectionRuleConnection { - """ - A list of edges. - """ - edges: [BranchProtectionRuleEdge] - - """ - A list of nodes. - """ - nodes: [BranchProtectionRule] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type BranchProtectionRuleEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: BranchProtectionRule -} - -""" -Autogenerated input type of CancelEnterpriseAdminInvitation -""" -input CancelEnterpriseAdminInvitationInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the pending enterprise administrator invitation. - """ - invitationId: ID! -} - -""" -Autogenerated return type of CancelEnterpriseAdminInvitation -""" -type CancelEnterpriseAdminInvitationPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The invitation that was canceled. - """ - invitation: EnterpriseAdministratorInvitation - - """ - A message confirming the result of canceling an administrator invitation. - """ - message: String -} - -""" -Autogenerated input type of ChangeUserStatus -""" -input ChangeUserStatusInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The emoji to represent your status. Can either be a native Unicode emoji or an emoji name with colons, e.g., :grinning:. - """ - emoji: String - - """ - If set, the user status will not be shown after this date. - """ - expiresAt: DateTime - - """ - Whether this status should indicate you are not fully available on GitHub, e.g., you are away. - """ - limitedAvailability: Boolean = false - - """ - A short description of your current status. - """ - message: String - - """ - The ID of the organization whose members will be allowed to see the status. If - omitted, the status will be publicly visible. - """ - organizationId: ID -} - -""" -Autogenerated return type of ChangeUserStatus -""" -type ChangeUserStatusPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Your updated status. - """ - status: UserStatus -} - -""" -A single check annotation. -""" -type CheckAnnotation { - """ - The annotation's severity level. - """ - annotationLevel: CheckAnnotationLevel - - """ - The path to the file that this annotation was made on. - """ - blobUrl: URI! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The position of this annotation. - """ - location: CheckAnnotationSpan! - - """ - The annotation's message. - """ - message: String! - - """ - The path that this annotation was made on. - """ - path: String! - - """ - Additional information about the annotation. - """ - rawDetails: String - - """ - The annotation's title - """ - title: String -} - -""" -The connection type for CheckAnnotation. -""" -type CheckAnnotationConnection { - """ - A list of edges. - """ - edges: [CheckAnnotationEdge] - - """ - A list of nodes. - """ - nodes: [CheckAnnotation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Information from a check run analysis to specific lines of code. -""" -input CheckAnnotationData { - """ - Represents an annotation's information level - """ - annotationLevel: CheckAnnotationLevel! - - """ - The location of the annotation - """ - location: CheckAnnotationRange! - - """ - A short description of the feedback for these lines of code. - """ - message: String! - - """ - The path of the file to add an annotation to. - """ - path: String! - - """ - Details about this annotation. - """ - rawDetails: String - - """ - The title that represents the annotation. - """ - title: String -} - -""" -An edge in a connection. -""" -type CheckAnnotationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CheckAnnotation -} - -""" -Represents an annotation's information level. -""" -enum CheckAnnotationLevel { - """ - An annotation indicating an inescapable error. - """ - FAILURE - - """ - An annotation indicating some information. - """ - NOTICE - - """ - An annotation indicating an ignorable error. - """ - WARNING -} - -""" -A character position in a check annotation. -""" -type CheckAnnotationPosition { - """ - Column number (1 indexed). - """ - column: Int - - """ - Line number (1 indexed). - """ - line: Int! -} - -""" -Information from a check run analysis to specific lines of code. -""" -input CheckAnnotationRange { - """ - The ending column of the range. - """ - endColumn: Int - - """ - The ending line of the range. - """ - endLine: Int! - - """ - The starting column of the range. - """ - startColumn: Int - - """ - The starting line of the range. - """ - startLine: Int! -} - -""" -An inclusive pair of positions for a check annotation. -""" -type CheckAnnotationSpan { - """ - End position (inclusive). - """ - end: CheckAnnotationPosition! - - """ - Start position (inclusive). - """ - start: CheckAnnotationPosition! -} - -""" -The possible states for a check suite or run conclusion. -""" -enum CheckConclusionState { - """ - The check suite or run requires action. - """ - ACTION_REQUIRED - - """ - The check suite or run has been cancelled. - """ - CANCELLED - - """ - The check suite or run has failed. - """ - FAILURE - - """ - The check suite or run was neutral. - """ - NEUTRAL - - """ - The check suite or run was skipped. - """ - SKIPPED - - """ - The check suite or run was marked stale by GitHub. Only GitHub can use this conclusion. - """ - STALE - - """ - The check suite or run has failed at startup. - """ - STARTUP_FAILURE - - """ - The check suite or run has succeeded. - """ - SUCCESS - - """ - The check suite or run has timed out. - """ - TIMED_OUT -} - -""" -A check run. -""" -type CheckRun implements Node & UniformResourceLocatable { - """ - The check run's annotations - """ - annotations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CheckAnnotationConnection - - """ - The check suite that this run is a part of. - """ - checkSuite: CheckSuite! - - """ - Identifies the date and time when the check run was completed. - """ - completedAt: DateTime - - """ - The conclusion of the check run. - """ - conclusion: CheckConclusionState - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The URL from which to find full details of the check run on the integrator's site. - """ - detailsUrl: URI - - """ - A reference for the check run on the integrator's system. - """ - externalId: String - id: ID! - - """ - The name of the check for this check run. - """ - name: String! - - """ - The permalink to the check run summary. - """ - permalink: URI! - - """ - The repository associated with this check run. - """ - repository: Repository! - - """ - The HTTP path for this check run. - """ - resourcePath: URI! - - """ - Identifies the date and time when the check run was started. - """ - startedAt: DateTime - - """ - The current status of the check run. - """ - status: CheckStatusState! - - """ - A string representing the check run's summary - """ - summary: String - - """ - A string representing the check run's text - """ - text: String - - """ - A string representing the check run - """ - title: String - - """ - The HTTP URL for this check run. - """ - url: URI! -} - -""" -Possible further actions the integrator can perform. -""" -input CheckRunAction { - """ - A short explanation of what this action would do. - """ - description: String! - - """ - A reference for the action on the integrator's system. - """ - identifier: String! - - """ - The text to be displayed on a button in the web UI. - """ - label: String! -} - -""" -The connection type for CheckRun. -""" -type CheckRunConnection { - """ - A list of edges. - """ - edges: [CheckRunEdge] - - """ - A list of nodes. - """ - nodes: [CheckRun] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CheckRunEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CheckRun -} - -""" -The filters that are available when fetching check runs. -""" -input CheckRunFilter { - """ - Filters the check runs created by this application ID. - """ - appId: Int - - """ - Filters the check runs by this name. - """ - checkName: String - - """ - Filters the check runs by this type. - """ - checkType: CheckRunType - - """ - Filters the check runs by this status. - """ - status: CheckStatusState -} - -""" -Descriptive details about the check run. -""" -input CheckRunOutput { - """ - The annotations that are made as part of the check run. - """ - annotations: [CheckAnnotationData!] - - """ - Images attached to the check run output displayed in the GitHub pull request UI. - """ - images: [CheckRunOutputImage!] - - """ - The summary of the check run (supports Commonmark). - """ - summary: String! - - """ - The details of the check run (supports Commonmark). - """ - text: String - - """ - A title to provide for this check run. - """ - title: String! -} - -""" -Images attached to the check run output displayed in the GitHub pull request UI. -""" -input CheckRunOutputImage { - """ - The alternative text for the image. - """ - alt: String! - - """ - A short image description. - """ - caption: String - - """ - The full URL of the image. - """ - imageUrl: URI! -} - -""" -The possible types of check runs. -""" -enum CheckRunType { - """ - Every check run available. - """ - ALL - - """ - The latest check run. - """ - LATEST -} - -""" -The possible states for a check suite or run status. -""" -enum CheckStatusState { - """ - The check suite or run has been completed. - """ - COMPLETED - - """ - The check suite or run is in progress. - """ - IN_PROGRESS - - """ - The check suite or run has been queued. - """ - QUEUED - - """ - The check suite or run has been requested. - """ - REQUESTED -} - -""" -A check suite. -""" -type CheckSuite implements Node { - """ - The GitHub App which created this check suite. - """ - app: App - - """ - The name of the branch for this check suite. - """ - branch: Ref - - """ - The check runs associated with a check suite. - """ - checkRuns( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filters the check runs by this type. - """ - filterBy: CheckRunFilter - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CheckRunConnection - - """ - The commit for this check suite - """ - commit: Commit! - - """ - The conclusion of this check suite. - """ - conclusion: CheckConclusionState - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - A list of open pull requests matching the check suite. - """ - matchingPullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection - - """ - The push that triggered this check suite. - """ - push: Push - - """ - The repository associated with this check suite. - """ - repository: Repository! - - """ - The HTTP path for this check suite - """ - resourcePath: URI! - - """ - The status of this check suite. - """ - status: CheckStatusState! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this check suite - """ - url: URI! -} - -""" -The auto-trigger preferences that are available for check suites. -""" -input CheckSuiteAutoTriggerPreference { - """ - The node ID of the application that owns the check suite. - """ - appId: ID! - - """ - Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository. - """ - setting: Boolean! -} - -""" -The connection type for CheckSuite. -""" -type CheckSuiteConnection { - """ - A list of edges. - """ - edges: [CheckSuiteEdge] - - """ - A list of nodes. - """ - nodes: [CheckSuite] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CheckSuiteEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CheckSuite -} - -""" -The filters that are available when fetching check suites. -""" -input CheckSuiteFilter { - """ - Filters the check suites created by this application ID. - """ - appId: Int - - """ - Filters the check suites by this name. - """ - checkName: String -} - -""" -Autogenerated input type of ClearLabelsFromLabelable -""" -input ClearLabelsFromLabelableInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the labelable object to clear the labels from. - """ - labelableId: ID! -} - -""" -Autogenerated return type of ClearLabelsFromLabelable -""" -type ClearLabelsFromLabelablePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The item that was unlabeled. - """ - labelable: Labelable -} - -""" -Autogenerated input type of CloneProject -""" -input CloneProjectInput { - """ - The description of the project. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Whether or not to clone the source project's workflows. - """ - includeWorkflows: Boolean! - - """ - The name of the project. - """ - name: String! - - """ - The visibility of the project, defaults to false (private). - """ - public: Boolean - - """ - The source project to clone. - """ - sourceId: ID! - - """ - The owner ID to create the project under. - """ - targetOwnerId: ID! -} - -""" -Autogenerated return type of CloneProject -""" -type CloneProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the JobStatus for populating cloned fields. - """ - jobStatusId: String - - """ - The new cloned project. - """ - project: Project -} - -""" -Autogenerated input type of CloneTemplateRepository -""" -input CloneTemplateRepositoryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - A short description of the new repository. - """ - description: String - - """ - Whether to copy all branches from the template to the new repository. Defaults - to copying only the default branch of the template. - """ - includeAllBranches: Boolean = false - - """ - The name of the new repository. - """ - name: String! - - """ - The ID of the owner for the new repository. - """ - ownerId: ID! - - """ - The Node ID of the template repository. - """ - repositoryId: ID! - - """ - Indicates the repository's visibility level. - """ - visibility: RepositoryVisibility! -} - -""" -Autogenerated return type of CloneTemplateRepository -""" -type CloneTemplateRepositoryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new repository. - """ - repository: Repository -} - -""" -An object that can be closed -""" -interface Closable { - """ - `true` if the object is closed (definition of closed may depend on type) - """ - closed: Boolean! - - """ - Identifies the date and time when the object was closed. - """ - closedAt: DateTime -} - -""" -Autogenerated input type of CloseIssue -""" -input CloseIssueInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the issue to be closed. - """ - issueId: ID! -} - -""" -Autogenerated return type of CloseIssue -""" -type CloseIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The issue that was closed. - """ - issue: Issue -} - -""" -Autogenerated input type of ClosePullRequest -""" -input ClosePullRequestInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the pull request to be closed. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of ClosePullRequest -""" -type ClosePullRequestPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request that was closed. - """ - pullRequest: PullRequest -} - -""" -Represents a 'closed' event on any `Closable`. -""" -type ClosedEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Object that was closed. - """ - closable: Closable! - - """ - Object which triggered the creation of this event. - """ - closer: Closer - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The HTTP path for this closed event. - """ - resourcePath: URI! - - """ - The HTTP URL for this closed event. - """ - url: URI! -} - -""" -The object which triggered a `ClosedEvent`. -""" -union Closer = Commit | PullRequest - -""" -The Code of Conduct for a repository -""" -type CodeOfConduct implements Node { - """ - The body of the Code of Conduct - """ - body: String - id: ID! - - """ - The key for the Code of Conduct - """ - key: String! - - """ - The formal name of the Code of Conduct - """ - name: String! - - """ - The HTTP path for this Code of Conduct - """ - resourcePath: URI - - """ - The HTTP URL for this Code of Conduct - """ - url: URI -} - -""" -Collaborators affiliation level with a subject. -""" -enum CollaboratorAffiliation { - """ - All collaborators the authenticated user can see. - """ - ALL - - """ - All collaborators with permissions to an organization-owned subject, regardless of organization membership status. - """ - DIRECT - - """ - All outside collaborators of an organization-owned subject. - """ - OUTSIDE -} - -""" -Represents a comment. -""" -interface Comment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - The body as Markdown. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -A comment author association with repository. -""" -enum CommentAuthorAssociation { - """ - Author has been invited to collaborate on the repository. - """ - COLLABORATOR - - """ - Author has previously committed to the repository. - """ - CONTRIBUTOR - - """ - Author has not previously committed to GitHub. - """ - FIRST_TIMER - - """ - Author has not previously committed to the repository. - """ - FIRST_TIME_CONTRIBUTOR - - """ - Author is a placeholder for an unclaimed user. - """ - MANNEQUIN - - """ - Author is a member of the organization that owns the repository. - """ - MEMBER - - """ - Author has no association with the repository. - """ - NONE - - """ - Author is the owner of the repository. - """ - OWNER -} - -""" -The possible errors that will prevent a user from updating a comment. -""" -enum CommentCannotUpdateReason { - """ - Unable to create comment because repository is archived. - """ - ARCHIVED - - """ - You cannot update this comment - """ - DENIED - - """ - You must be the author or have write access to this repository to update this comment. - """ - INSUFFICIENT_ACCESS - - """ - Unable to create comment because issue is locked. - """ - LOCKED - - """ - You must be logged in to update this comment. - """ - LOGIN_REQUIRED - - """ - Repository is under maintenance. - """ - MAINTENANCE - - """ - At least one email address must be verified to update this comment. - """ - VERIFIED_EMAIL_REQUIRED -} - -""" -Represents a 'comment_deleted' event on a given issue or pull request. -""" -type CommentDeletedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The user who authored the deleted comment. - """ - deletedCommentAuthor: Actor - id: ID! -} - -""" -Represents a Git commit. -""" -type Commit implements GitObject & Node & Subscribable & UniformResourceLocatable { - """ - An abbreviated version of the Git object ID - """ - abbreviatedOid: String! - - """ - The number of additions in this commit. - """ - additions: Int! - - """ - The pull requests associated with a commit - """ - associatedPullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests. - """ - orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} - ): PullRequestConnection - - """ - Authorship details of the commit. - """ - author: GitActor - - """ - Check if the committer and the author match. - """ - authoredByCommitter: Boolean! - - """ - The datetime when this commit was authored. - """ - authoredDate: DateTime! - - """ - The list of authors for this commit based on the git author and the Co-authored-by - message trailer. The git author will always be first. - """ - authors( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): GitActorConnection! - - """ - Fetches `git blame` information. - """ - blame( - """ - The file whose Git blame information you want. - """ - path: String! - ): Blame! - - """ - The number of changed files in this commit. - """ - changedFiles: Int! - - """ - The check suites associated with a commit. - """ - checkSuites( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filters the check suites by this type. - """ - filterBy: CheckSuiteFilter - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CheckSuiteConnection - - """ - Comments made on the commit. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitCommentConnection! - - """ - The HTTP path for this Git object - """ - commitResourcePath: URI! - - """ - The HTTP URL for this Git object - """ - commitUrl: URI! - - """ - The datetime when this commit was committed. - """ - committedDate: DateTime! - - """ - Check if commited via GitHub web UI. - """ - committedViaWeb: Boolean! - - """ - Committership details of the commit. - """ - committer: GitActor - - """ - The number of deletions in this commit. - """ - deletions: Int! - - """ - The deployments associated with a commit. - """ - deployments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Environments to list deployments for - """ - environments: [String!] - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for deployments returned from the connection. - """ - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} - ): DeploymentConnection - - """ - The tree entry representing the file located at the given path. - """ - file( - """ - The path for the file - """ - path: String! - ): TreeEntry - - """ - The linear commit history starting from (and including) this commit, in the same order as `git log`. - """ - history( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - If non-null, filters history to only show commits with matching authorship. - """ - author: CommitAuthor - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - If non-null, filters history to only show commits touching files under this path. - """ - path: String - - """ - Allows specifying a beginning time or date for fetching commits. - """ - since: GitTimestamp - - """ - Allows specifying an ending time or date for fetching commits. - """ - until: GitTimestamp - ): CommitHistoryConnection! - id: ID! - - """ - The Git commit message - """ - message: String! - - """ - The Git commit message body - """ - messageBody: String! - - """ - The commit message body rendered to HTML. - """ - messageBodyHTML: HTML! - - """ - The Git commit message headline - """ - messageHeadline: String! - - """ - The commit message headline rendered to HTML. - """ - messageHeadlineHTML: HTML! - - """ - The Git object ID - """ - oid: GitObjectID! - - """ - The organization this commit was made on behalf of. - """ - onBehalfOf: Organization - - """ - The parents of a commit. - """ - parents( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitConnection! - - """ - The datetime when this commit was pushed. - """ - pushedDate: DateTime - - """ - The Repository this commit belongs to - """ - repository: Repository! - - """ - The HTTP path for this commit - """ - resourcePath: URI! - - """ - Commit signing information, if present. - """ - signature: GitSignature - - """ - Status information for this commit - """ - status: Status - - """ - Check and Status rollup information for this commit. - """ - statusCheckRollup: StatusCheckRollup - - """ - Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. - """ - submodules( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): SubmoduleConnection! - - """ - Returns a URL to download a tarball archive for a repository. - Note: For private repositories, these links are temporary and expire after five minutes. - """ - tarballUrl: URI! - - """ - Commit's root Tree - """ - tree: Tree! - - """ - The HTTP path for the tree of this commit - """ - treeResourcePath: URI! - - """ - The HTTP URL for the tree of this commit - """ - treeUrl: URI! - - """ - The HTTP URL for this commit - """ - url: URI! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState - - """ - Returns a URL to download a zipball archive for a repository. - Note: For private repositories, these links are temporary and expire after five minutes. - """ - zipballUrl: URI! -} - -""" -Specifies an author for filtering Git commits. -""" -input CommitAuthor { - """ - Email addresses to filter by. Commits authored by any of the specified email addresses will be returned. - """ - emails: [String!] - - """ - ID of a User to filter by. If non-null, only commits authored by this user - will be returned. This field takes precedence over emails. - """ - id: ID -} - -""" -Represents a comment on a given Commit. -""" -type CommitComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - Identifies the comment body. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - Identifies the commit associated with the comment, if the commit exists. - """ - commit: Commit - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Returns whether or not a comment has been minimized. - """ - isMinimized: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Returns why the comment was minimized. - """ - minimizedReason: String - - """ - Identifies the file path associated with the comment. - """ - path: String - - """ - Identifies the line position associated with the comment. - """ - position: Int - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path permalink for this commit comment. - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL permalink for this commit comment. - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Check if the current viewer can minimize this object. - """ - viewerCanMinimize: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -The connection type for CommitComment. -""" -type CommitCommentConnection { - """ - A list of edges. - """ - edges: [CommitCommentEdge] - - """ - A list of nodes. - """ - nodes: [CommitComment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CommitCommentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CommitComment -} - -""" -A thread of comments on a commit. -""" -type CommitCommentThread implements Node & RepositoryNode { - """ - The comments that exist in this thread. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitCommentConnection! - - """ - The commit the comments were made on. - """ - commit: Commit - id: ID! - - """ - The file the comments were made on. - """ - path: String - - """ - The position in the diff for the commit that the comment was made on. - """ - position: Int - - """ - The repository associated with this node. - """ - repository: Repository! -} - -""" -The connection type for Commit. -""" -type CommitConnection { - """ - A list of edges. - """ - edges: [CommitEdge] - - """ - A list of nodes. - """ - nodes: [Commit] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Ordering options for commit contribution connections. -""" -input CommitContributionOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field by which to order commit contributions. - """ - field: CommitContributionOrderField! -} - -""" -Properties by which commit contribution connections can be ordered. -""" -enum CommitContributionOrderField { - """ - Order commit contributions by how many commits they represent. - """ - COMMIT_COUNT - - """ - Order commit contributions by when they were made. - """ - OCCURRED_AT -} - -""" -This aggregates commits made by a user within one repository. -""" -type CommitContributionsByRepository { - """ - The commit contributions, each representing a day. - """ - contributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for commit contributions returned from the connection. - """ - orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC} - ): CreatedCommitContributionConnection! - - """ - The repository in which the commits were made. - """ - repository: Repository! - - """ - The HTTP path for the user's commits to the repository in this time range. - """ - resourcePath: URI! - - """ - The HTTP URL for the user's commits to the repository in this time range. - """ - url: URI! -} - -""" -An edge in a connection. -""" -type CommitEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Commit -} - -""" -The connection type for Commit. -""" -type CommitHistoryConnection { - """ - A list of edges. - """ - edges: [CommitEdge] - - """ - A list of nodes. - """ - nodes: [Commit] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a 'connected' event on a given issue or pull request. -""" -type ConnectedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Reference originated in a different repository. - """ - isCrossRepository: Boolean! - - """ - Issue or pull request that made the reference. - """ - source: ReferencedSubject! - - """ - Issue or pull request which was connected. - """ - subject: ReferencedSubject! -} - -""" -Represents a contribution a user made on GitHub, such as opening an issue. -""" -interface Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -A calendar of contributions made on GitHub by a user. -""" -type ContributionCalendar { - """ - A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. - """ - colors: [String!]! - - """ - Determine if the color set was chosen because it's currently Halloween. - """ - isHalloween: Boolean! - - """ - A list of the months of contributions in this calendar. - """ - months: [ContributionCalendarMonth!]! - - """ - The count of total contributions in the calendar. - """ - totalContributions: Int! - - """ - A list of the weeks of contributions in this calendar. - """ - weeks: [ContributionCalendarWeek!]! -} - -""" -Represents a single day of contributions on GitHub by a user. -""" -type ContributionCalendarDay { - """ - The hex color code that represents how many contributions were made on this day compared to others in the calendar. - """ - color: String! - - """ - How many contributions were made by the user on this day. - """ - contributionCount: Int! - - """ - The day this square represents. - """ - date: Date! - - """ - A number representing which day of the week this square represents, e.g., 1 is Monday. - """ - weekday: Int! -} - -""" -A month of contributions in a user's contribution graph. -""" -type ContributionCalendarMonth { - """ - The date of the first day of this month. - """ - firstDay: Date! - - """ - The name of the month. - """ - name: String! - - """ - How many weeks started in this month. - """ - totalWeeks: Int! - - """ - The year the month occurred in. - """ - year: Int! -} - -""" -A week of contributions in a user's contribution graph. -""" -type ContributionCalendarWeek { - """ - The days of contributions in this week. - """ - contributionDays: [ContributionCalendarDay!]! - - """ - The date of the earliest square in this week. - """ - firstDay: Date! -} - -""" -Ordering options for contribution connections. -""" -input ContributionOrder { - """ - The ordering direction. - """ - direction: OrderDirection! -} - -""" -A contributions collection aggregates contributions such as opened issues and commits created by a user. -""" -type ContributionsCollection { - """ - Commit contributions made by the user, grouped by repository. - """ - commitContributionsByRepository( - """ - How many repositories should be included. - """ - maxRepositories: Int = 25 - ): [CommitContributionsByRepository!]! - - """ - A calendar of this user's contributions on GitHub. - """ - contributionCalendar: ContributionCalendar! - - """ - The years the user has been making contributions with the most recent year first. - """ - contributionYears: [Int!]! - - """ - Determine if this collection's time span ends in the current month. - """ - doesEndInCurrentMonth: Boolean! - - """ - The date of the first restricted contribution the user made in this time - period. Can only be non-null when the user has enabled private contribution counts. - """ - earliestRestrictedContributionDate: Date - - """ - The ending date and time of this collection. - """ - endedAt: DateTime! - - """ - The first issue the user opened on GitHub. This will be null if that issue was - opened outside the collection's time range and ignoreTimeRange is false. If - the issue is not visible but the user has opted to show private contributions, - a RestrictedContribution will be returned. - """ - firstIssueContribution: CreatedIssueOrRestrictedContribution - - """ - The first pull request the user opened on GitHub. This will be null if that - pull request was opened outside the collection's time range and - ignoreTimeRange is not true. If the pull request is not visible but the user - has opted to show private contributions, a RestrictedContribution will be returned. - """ - firstPullRequestContribution: CreatedPullRequestOrRestrictedContribution - - """ - The first repository the user created on GitHub. This will be null if that - first repository was created outside the collection's time range and - ignoreTimeRange is false. If the repository is not visible, then a - RestrictedContribution is returned. - """ - firstRepositoryContribution: CreatedRepositoryOrRestrictedContribution - - """ - Does the user have any more activity in the timeline that occurred prior to the collection's time range? - """ - hasActivityInThePast: Boolean! - - """ - Determine if there are any contributions in this collection. - """ - hasAnyContributions: Boolean! - - """ - Determine if the user made any contributions in this time frame whose details - are not visible because they were made in a private repository. Can only be - true if the user enabled private contribution counts. - """ - hasAnyRestrictedContributions: Boolean! - - """ - Whether or not the collector's time span is all within the same day. - """ - isSingleDay: Boolean! - - """ - A list of issues the user opened. - """ - issueContributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Should the user's first issue ever be excluded from the result. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented issue be excluded from the result. - """ - excludePopular: Boolean = false - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedIssueContributionConnection! - - """ - Issue contributions made by the user, grouped by repository. - """ - issueContributionsByRepository( - """ - Should the user's first issue ever be excluded from the result. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented issue be excluded from the result. - """ - excludePopular: Boolean = false - - """ - How many repositories should be included. - """ - maxRepositories: Int = 25 - ): [IssueContributionsByRepository!]! - - """ - When the user signed up for GitHub. This will be null if that sign up date - falls outside the collection's time range and ignoreTimeRange is false. - """ - joinedGitHubContribution: JoinedGitHubContribution - - """ - The date of the most recent restricted contribution the user made in this time - period. Can only be non-null when the user has enabled private contribution counts. - """ - latestRestrictedContributionDate: Date - - """ - When this collection's time range does not include any activity from the user, use this - to get a different collection from an earlier time range that does have activity. - """ - mostRecentCollectionWithActivity: ContributionsCollection - - """ - Returns a different contributions collection from an earlier time range than this one - that does not have any contributions. - """ - mostRecentCollectionWithoutActivity: ContributionsCollection - - """ - The issue the user opened on GitHub that received the most comments in the specified - time frame. - """ - popularIssueContribution: CreatedIssueContribution - - """ - The pull request the user opened on GitHub that received the most comments in the - specified time frame. - """ - popularPullRequestContribution: CreatedPullRequestContribution - - """ - Pull request contributions made by the user. - """ - pullRequestContributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Should the user's first pull request ever be excluded from the result. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented pull request be excluded from the result. - """ - excludePopular: Boolean = false - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedPullRequestContributionConnection! - - """ - Pull request contributions made by the user, grouped by repository. - """ - pullRequestContributionsByRepository( - """ - Should the user's first pull request ever be excluded from the result. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented pull request be excluded from the result. - """ - excludePopular: Boolean = false - - """ - How many repositories should be included. - """ - maxRepositories: Int = 25 - ): [PullRequestContributionsByRepository!]! - - """ - Pull request review contributions made by the user. - """ - pullRequestReviewContributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedPullRequestReviewContributionConnection! - - """ - Pull request review contributions made by the user, grouped by repository. - """ - pullRequestReviewContributionsByRepository( - """ - How many repositories should be included. - """ - maxRepositories: Int = 25 - ): [PullRequestReviewContributionsByRepository!]! - - """ - A list of repositories owned by the user that the user created in this time range. - """ - repositoryContributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Should the user's first repository ever be excluded from the result. - """ - excludeFirst: Boolean = false - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedRepositoryContributionConnection! - - """ - A count of contributions made by the user that the viewer cannot access. Only - non-zero when the user has chosen to share their private contribution counts. - """ - restrictedContributionsCount: Int! - - """ - The beginning date and time of this collection. - """ - startedAt: DateTime! - - """ - How many commits were made by the user in this time span. - """ - totalCommitContributions: Int! - - """ - How many issues the user opened. - """ - totalIssueContributions( - """ - Should the user's first issue ever be excluded from this count. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented issue be excluded from this count. - """ - excludePopular: Boolean = false - ): Int! - - """ - How many pull requests the user opened. - """ - totalPullRequestContributions( - """ - Should the user's first pull request ever be excluded from this count. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented pull request be excluded from this count. - """ - excludePopular: Boolean = false - ): Int! - - """ - How many pull request reviews the user left. - """ - totalPullRequestReviewContributions: Int! - - """ - How many different repositories the user committed to. - """ - totalRepositoriesWithContributedCommits: Int! - - """ - How many different repositories the user opened issues in. - """ - totalRepositoriesWithContributedIssues( - """ - Should the user's first issue ever be excluded from this count. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented issue be excluded from this count. - """ - excludePopular: Boolean = false - ): Int! - - """ - How many different repositories the user left pull request reviews in. - """ - totalRepositoriesWithContributedPullRequestReviews: Int! - - """ - How many different repositories the user opened pull requests in. - """ - totalRepositoriesWithContributedPullRequests( - """ - Should the user's first pull request ever be excluded from this count. - """ - excludeFirst: Boolean = false - - """ - Should the user's most commented pull request be excluded from this count. - """ - excludePopular: Boolean = false - ): Int! - - """ - How many repositories the user created. - """ - totalRepositoryContributions( - """ - Should the user's first repository ever be excluded from this count. - """ - excludeFirst: Boolean = false - ): Int! - - """ - The user who made the contributions in this collection. - """ - user: User! -} - -""" -Autogenerated input type of ConvertProjectCardNoteToIssue -""" -input ConvertProjectCardNoteToIssueInput { - """ - The body of the newly created issue. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ProjectCard ID to convert. - """ - projectCardId: ID! - - """ - The ID of the repository to create the issue in. - """ - repositoryId: ID! - - """ - The title of the newly created issue. Defaults to the card's note text. - """ - title: String -} - -""" -Autogenerated return type of ConvertProjectCardNoteToIssue -""" -type ConvertProjectCardNoteToIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated ProjectCard. - """ - projectCard: ProjectCard -} - -""" -Represents a 'convert_to_draft' event on a given pull request. -""" -type ConvertToDraftEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - The HTTP path for this convert to draft event. - """ - resourcePath: URI! - - """ - The HTTP URL for this convert to draft event. - """ - url: URI! -} - -""" -Represents a 'converted_note_to_issue' event on a given issue or pull request. -""" -type ConvertedNoteToIssueEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! -} - -""" -Autogenerated input type of CreateBranchProtectionRule -""" -input CreateBranchProtectionRuleInput { - """ - Can this branch be deleted. - """ - allowsDeletions: Boolean - - """ - Are force pushes allowed on this branch. - """ - allowsForcePushes: Boolean - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Will new commits pushed to matching branches dismiss pull request review approvals. - """ - dismissesStaleReviews: Boolean - - """ - Can admins overwrite branch protection. - """ - isAdminEnforced: Boolean - - """ - The glob-like pattern used to determine matching branches. - """ - pattern: String! - - """ - A list of User, Team or App IDs allowed to push to matching branches. - """ - pushActorIds: [ID!] - - """ - The global relay id of the repository in which a new branch protection rule should be created in. - """ - repositoryId: ID! - - """ - Number of approving reviews required to update matching branches. - """ - requiredApprovingReviewCount: Int - - """ - List of required status check contexts that must pass for commits to be accepted to matching branches. - """ - requiredStatusCheckContexts: [String!] - - """ - Are approving reviews required to update matching branches. - """ - requiresApprovingReviews: Boolean - - """ - Are reviews from code owners required to update matching branches. - """ - requiresCodeOwnerReviews: Boolean - - """ - Are commits required to be signed. - """ - requiresCommitSignatures: Boolean - - """ - Are merge commits prohibited from being pushed to this branch. - """ - requiresLinearHistory: Boolean - - """ - Are status checks required to update matching branches. - """ - requiresStatusChecks: Boolean - - """ - Are branches required to be up to date before merging. - """ - requiresStrictStatusChecks: Boolean - - """ - Is pushing to matching branches restricted. - """ - restrictsPushes: Boolean - - """ - Is dismissal of pull request reviews restricted. - """ - restrictsReviewDismissals: Boolean - - """ - A list of User or Team IDs allowed to dismiss reviews on pull requests targeting matching branches. - """ - reviewDismissalActorIds: [ID!] -} - -""" -Autogenerated return type of CreateBranchProtectionRule -""" -type CreateBranchProtectionRulePayload { - """ - The newly created BranchProtectionRule. - """ - branchProtectionRule: BranchProtectionRule - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of CreateCheckRun -""" -input CreateCheckRunInput { - """ - Possible further actions the integrator can perform, which a user may trigger. - """ - actions: [CheckRunAction!] - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The time that the check run finished. - """ - completedAt: DateTime - - """ - The final conclusion of the check. - """ - conclusion: CheckConclusionState - - """ - The URL of the integrator's site that has the full details of the check. - """ - detailsUrl: URI - - """ - A reference for the run on the integrator's system. - """ - externalId: String - - """ - The SHA of the head commit. - """ - headSha: GitObjectID! - - """ - The name of the check. - """ - name: String! - - """ - Descriptive details about the run. - """ - output: CheckRunOutput - - """ - The node ID of the repository. - """ - repositoryId: ID! - - """ - The time that the check run began. - """ - startedAt: DateTime - - """ - The current status. - """ - status: RequestableCheckStatusState -} - -""" -Autogenerated return type of CreateCheckRun -""" -type CreateCheckRunPayload { - """ - The newly created check run. - """ - checkRun: CheckRun - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of CreateCheckSuite -""" -input CreateCheckSuiteInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The SHA of the head commit. - """ - headSha: GitObjectID! - - """ - The Node ID of the repository. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of CreateCheckSuite -""" -type CreateCheckSuitePayload { - """ - The newly created check suite. - """ - checkSuite: CheckSuite - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of CreateEnterpriseOrganization -""" -input CreateEnterpriseOrganizationInput { - """ - The logins for the administrators of the new organization. - """ - adminLogins: [String!]! - - """ - The email used for sending billing receipts. - """ - billingEmail: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise owning the new organization. - """ - enterpriseId: ID! - - """ - The login of the new organization. - """ - login: String! - - """ - The profile name of the new organization. - """ - profileName: String! -} - -""" -Autogenerated return type of CreateEnterpriseOrganization -""" -type CreateEnterpriseOrganizationPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise that owns the created organization. - """ - enterprise: Enterprise - - """ - The organization that was created. - """ - organization: Organization -} - -""" -Autogenerated input type of CreateIpAllowListEntry -""" -input CreateIpAllowListEntryInput { - """ - An IP address or range of addresses in CIDR notation. - """ - allowListValue: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Whether the IP allow list entry is active when an IP allow list is enabled. - """ - isActive: Boolean! - - """ - An optional name for the IP allow list entry. - """ - name: String - - """ - The ID of the owner for which to create the new IP allow list entry. - """ - ownerId: ID! -} - -""" -Autogenerated return type of CreateIpAllowListEntry -""" -type CreateIpAllowListEntryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The IP allow list entry that was created. - """ - ipAllowListEntry: IpAllowListEntry -} - -""" -Autogenerated input type of CreateIssue -""" -input CreateIssueInput { - """ - The Node ID for the user assignee for this issue. - """ - assigneeIds: [ID!] - - """ - The body for the issue description. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of an issue template in the repository, assigns labels and assignees from the template to the issue - """ - issueTemplate: String - - """ - An array of Node IDs of labels for this issue. - """ - labelIds: [ID!] - - """ - The Node ID of the milestone for this issue. - """ - milestoneId: ID - - """ - An array of Node IDs for projects associated with this issue. - """ - projectIds: [ID!] - - """ - The Node ID of the repository. - """ - repositoryId: ID! - - """ - The title for the issue. - """ - title: String! -} - -""" -Autogenerated return type of CreateIssue -""" -type CreateIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new issue. - """ - issue: Issue -} - -""" -Autogenerated input type of CreateProject -""" -input CreateProjectInput { - """ - The description of project. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of project. - """ - name: String! - - """ - The owner ID to create the project under. - """ - ownerId: ID! - - """ - A list of repository IDs to create as linked repositories for the project - """ - repositoryIds: [ID!] - - """ - The name of the GitHub-provided template. - """ - template: ProjectTemplate -} - -""" -Autogenerated return type of CreateProject -""" -type CreateProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new project. - """ - project: Project -} - -""" -Autogenerated input type of CreatePullRequest -""" -input CreatePullRequestInput { - """ - The name of the branch you want your changes pulled into. This should be an existing branch - on the current repository. You cannot update the base branch on a pull request to point - to another repository. - """ - baseRefName: String! - - """ - The contents of the pull request. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Indicates whether this pull request should be a draft. - """ - draft: Boolean = false - - """ - The name of the branch where your changes are implemented. For cross-repository pull requests - in the same network, namespace `head_ref_name` with a user like this: `username:branch`. - """ - headRefName: String! - - """ - Indicates whether maintainers can modify the pull request. - """ - maintainerCanModify: Boolean = true - - """ - The Node ID of the repository. - """ - repositoryId: ID! - - """ - The title of the pull request. - """ - title: String! -} - -""" -Autogenerated return type of CreatePullRequest -""" -type CreatePullRequestPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new pull request. - """ - pullRequest: PullRequest -} - -""" -Autogenerated input type of CreateRef -""" -input CreateRefInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The fully qualified name of the new Ref (ie: `refs/heads/my_new_branch`). - """ - name: String! - - """ - The GitObjectID that the new Ref shall target. Must point to a commit. - """ - oid: GitObjectID! - - """ - The Node ID of the Repository to create the Ref in. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of CreateRef -""" -type CreateRefPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The newly created ref. - """ - ref: Ref -} - -""" -Autogenerated input type of CreateRepository -""" -input CreateRepositoryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - A short description of the new repository. - """ - description: String - - """ - Indicates if the repository should have the issues feature enabled. - """ - hasIssuesEnabled: Boolean = true - - """ - Indicates if the repository should have the wiki feature enabled. - """ - hasWikiEnabled: Boolean = false - - """ - The URL for a web page about this repository. - """ - homepageUrl: URI - - """ - The name of the new repository. - """ - name: String! - - """ - The ID of the owner for the new repository. - """ - ownerId: ID - - """ - When an organization is specified as the owner, this ID identifies the team - that should be granted access to the new repository. - """ - teamId: ID - - """ - Whether this repository should be marked as a template such that anyone who - can access it can create new repositories with the same files and directory structure. - """ - template: Boolean = false - - """ - Indicates the repository's visibility level. - """ - visibility: RepositoryVisibility! -} - -""" -Autogenerated return type of CreateRepository -""" -type CreateRepositoryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new repository. - """ - repository: Repository -} - -""" -Autogenerated input type of CreateTeamDiscussionComment -""" -input CreateTeamDiscussionCommentInput { - """ - The content of the comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the discussion to which the comment belongs. - """ - discussionId: ID! -} - -""" -Autogenerated return type of CreateTeamDiscussionComment -""" -type CreateTeamDiscussionCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new comment. - """ - teamDiscussionComment: TeamDiscussionComment -} - -""" -Autogenerated input type of CreateTeamDiscussion -""" -input CreateTeamDiscussionInput { - """ - The content of the discussion. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - If true, restricts the visiblity of this discussion to team members and - organization admins. If false or not specified, allows any organization member - to view this discussion. - """ - private: Boolean - - """ - The ID of the team to which the discussion belongs. - """ - teamId: ID! - - """ - The title of the discussion. - """ - title: String! -} - -""" -Autogenerated return type of CreateTeamDiscussion -""" -type CreateTeamDiscussionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new discussion. - """ - teamDiscussion: TeamDiscussion -} - -""" -Represents the contribution a user made by committing to a repository. -""" -type CreatedCommitContribution implements Contribution { - """ - How many commits were made on this day to this repository by the user. - """ - commitCount: Int! - - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The repository the user made a commit in. - """ - repository: Repository! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -The connection type for CreatedCommitContribution. -""" -type CreatedCommitContributionConnection { - """ - A list of edges. - """ - edges: [CreatedCommitContributionEdge] - - """ - A list of nodes. - """ - nodes: [CreatedCommitContribution] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of commits across days and repositories in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CreatedCommitContributionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CreatedCommitContribution -} - -""" -Represents the contribution a user made on GitHub by opening an issue. -""" -type CreatedIssueContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - The issue that was opened. - """ - issue: Issue! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -The connection type for CreatedIssueContribution. -""" -type CreatedIssueContributionConnection { - """ - A list of edges. - """ - edges: [CreatedIssueContributionEdge] - - """ - A list of nodes. - """ - nodes: [CreatedIssueContribution] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CreatedIssueContributionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CreatedIssueContribution -} - -""" -Represents either a issue the viewer can access or a restricted contribution. -""" -union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution - -""" -Represents the contribution a user made on GitHub by opening a pull request. -""" -type CreatedPullRequestContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The pull request that was opened. - """ - pullRequest: PullRequest! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -The connection type for CreatedPullRequestContribution. -""" -type CreatedPullRequestContributionConnection { - """ - A list of edges. - """ - edges: [CreatedPullRequestContributionEdge] - - """ - A list of nodes. - """ - nodes: [CreatedPullRequestContribution] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CreatedPullRequestContributionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CreatedPullRequestContribution -} - -""" -Represents either a pull request the viewer can access or a restricted contribution. -""" -union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution - -""" -Represents the contribution a user made by leaving a review on a pull request. -""" -type CreatedPullRequestReviewContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The pull request the user reviewed. - """ - pullRequest: PullRequest! - - """ - The review the user left on the pull request. - """ - pullRequestReview: PullRequestReview! - - """ - The repository containing the pull request that the user reviewed. - """ - repository: Repository! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -The connection type for CreatedPullRequestReviewContribution. -""" -type CreatedPullRequestReviewContributionConnection { - """ - A list of edges. - """ - edges: [CreatedPullRequestReviewContributionEdge] - - """ - A list of nodes. - """ - nodes: [CreatedPullRequestReviewContribution] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CreatedPullRequestReviewContributionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CreatedPullRequestReviewContribution -} - -""" -Represents the contribution a user made on GitHub by creating a repository. -""" -type CreatedRepositoryContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The repository that was created. - """ - repository: Repository! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -The connection type for CreatedRepositoryContribution. -""" -type CreatedRepositoryContributionConnection { - """ - A list of edges. - """ - edges: [CreatedRepositoryContributionEdge] - - """ - A list of nodes. - """ - nodes: [CreatedRepositoryContribution] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type CreatedRepositoryContributionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: CreatedRepositoryContribution -} - -""" -Represents either a repository the viewer can access or a restricted contribution. -""" -union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution - -""" -Represents a mention made by one issue or pull request to another. -""" -type CrossReferencedEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Reference originated in a different repository. - """ - isCrossRepository: Boolean! - - """ - Identifies when the reference was made. - """ - referencedAt: DateTime! - - """ - The HTTP path for this pull request. - """ - resourcePath: URI! - - """ - Issue or pull request that made the reference. - """ - source: ReferencedSubject! - - """ - Issue or pull request to which the reference was made. - """ - target: ReferencedSubject! - - """ - The HTTP URL for this pull request. - """ - url: URI! - - """ - Checks if the target will be closed when the source is merged. - """ - willCloseTarget: Boolean! -} - -""" -An ISO-8601 encoded date string. -""" -scalar Date - -""" -An ISO-8601 encoded UTC date string. -""" -scalar DateTime - -""" -Autogenerated input type of DeclineTopicSuggestion -""" -input DeclineTopicSuggestionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of the suggested topic. - """ - name: String! - - """ - The reason why the suggested topic is declined. - """ - reason: TopicSuggestionDeclineReason! - - """ - The Node ID of the repository. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of DeclineTopicSuggestion -""" -type DeclineTopicSuggestionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The declined topic. - """ - topic: Topic -} - -""" -The possible default permissions for repositories. -""" -enum DefaultRepositoryPermissionField { - """ - Can read, write, and administrate repos by default - """ - ADMIN - - """ - No access - """ - NONE - - """ - Can read repos by default - """ - READ - - """ - Can read and write repos by default - """ - WRITE -} - -""" -Entities that can be deleted. -""" -interface Deletable { - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! -} - -""" -Autogenerated input type of DeleteBranchProtectionRule -""" -input DeleteBranchProtectionRuleInput { - """ - The global relay id of the branch protection rule to be deleted. - """ - branchProtectionRuleId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated return type of DeleteBranchProtectionRule -""" -type DeleteBranchProtectionRulePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of DeleteDeployment -""" -input DeleteDeploymentInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the deployment to be deleted. - """ - id: ID! -} - -""" -Autogenerated return type of DeleteDeployment -""" -type DeleteDeploymentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of DeleteIpAllowListEntry -""" -input DeleteIpAllowListEntryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the IP allow list entry to delete. - """ - ipAllowListEntryId: ID! -} - -""" -Autogenerated return type of DeleteIpAllowListEntry -""" -type DeleteIpAllowListEntryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The IP allow list entry that was deleted. - """ - ipAllowListEntry: IpAllowListEntry -} - -""" -Autogenerated input type of DeleteIssueComment -""" -input DeleteIssueCommentInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the comment to delete. - """ - id: ID! -} - -""" -Autogenerated return type of DeleteIssueComment -""" -type DeleteIssueCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of DeleteIssue -""" -input DeleteIssueInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the issue to delete. - """ - issueId: ID! -} - -""" -Autogenerated return type of DeleteIssue -""" -type DeleteIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The repository the issue belonged to - """ - repository: Repository -} - -""" -Autogenerated input type of DeleteProjectCard -""" -input DeleteProjectCardInput { - """ - The id of the card to delete. - """ - cardId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated return type of DeleteProjectCard -""" -type DeleteProjectCardPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The column the deleted card was in. - """ - column: ProjectColumn - - """ - The deleted card ID. - """ - deletedCardId: ID -} - -""" -Autogenerated input type of DeleteProjectColumn -""" -input DeleteProjectColumnInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the column to delete. - """ - columnId: ID! -} - -""" -Autogenerated return type of DeleteProjectColumn -""" -type DeleteProjectColumnPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The deleted column ID. - """ - deletedColumnId: ID - - """ - The project the deleted column was in. - """ - project: Project -} - -""" -Autogenerated input type of DeleteProject -""" -input DeleteProjectInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Project ID to update. - """ - projectId: ID! -} - -""" -Autogenerated return type of DeleteProject -""" -type DeleteProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The repository or organization the project was removed from. - """ - owner: ProjectOwner -} - -""" -Autogenerated input type of DeletePullRequestReviewComment -""" -input DeletePullRequestReviewCommentInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the comment to delete. - """ - id: ID! -} - -""" -Autogenerated return type of DeletePullRequestReviewComment -""" -type DeletePullRequestReviewCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request review the deleted comment belonged to. - """ - pullRequestReview: PullRequestReview -} - -""" -Autogenerated input type of DeletePullRequestReview -""" -input DeletePullRequestReviewInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the pull request review to delete. - """ - pullRequestReviewId: ID! -} - -""" -Autogenerated return type of DeletePullRequestReview -""" -type DeletePullRequestReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The deleted pull request review. - """ - pullRequestReview: PullRequestReview -} - -""" -Autogenerated input type of DeleteRef -""" -input DeleteRefInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the Ref to be deleted. - """ - refId: ID! -} - -""" -Autogenerated return type of DeleteRef -""" -type DeleteRefPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of DeleteTeamDiscussionComment -""" -input DeleteTeamDiscussionCommentInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the comment to delete. - """ - id: ID! -} - -""" -Autogenerated return type of DeleteTeamDiscussionComment -""" -type DeleteTeamDiscussionCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of DeleteTeamDiscussion -""" -input DeleteTeamDiscussionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The discussion ID to delete. - """ - id: ID! -} - -""" -Autogenerated return type of DeleteTeamDiscussion -""" -type DeleteTeamDiscussionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Represents a 'demilestoned' event on a given issue or pull request. -""" -type DemilestonedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the milestone title associated with the 'demilestoned' event. - """ - milestoneTitle: String! - - """ - Object referenced by event. - """ - subject: MilestoneItem! -} - -""" -A repository deploy key. -""" -type DeployKey implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The deploy key. - """ - key: String! - - """ - Whether or not the deploy key is read only. - """ - readOnly: Boolean! - - """ - The deploy key title. - """ - title: String! - - """ - Whether or not the deploy key has been verified. - """ - verified: Boolean! -} - -""" -The connection type for DeployKey. -""" -type DeployKeyConnection { - """ - A list of edges. - """ - edges: [DeployKeyEdge] - - """ - A list of nodes. - """ - nodes: [DeployKey] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type DeployKeyEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: DeployKey -} - -""" -Represents a 'deployed' event on a given pull request. -""" -type DeployedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The deployment associated with the 'deployed' event. - """ - deployment: Deployment! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - The ref associated with the 'deployed' event. - """ - ref: Ref -} - -""" -Represents triggered deployment instance. -""" -type Deployment implements Node { - """ - Identifies the commit sha of the deployment. - """ - commit: Commit - - """ - Identifies the oid of the deployment commit, even if the commit has been deleted. - """ - commitOid: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the actor who triggered the deployment. - """ - creator: Actor! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The deployment description. - """ - description: String - - """ - The latest environment to which this deployment was made. - """ - environment: String - id: ID! - - """ - The latest environment to which this deployment was made. - """ - latestEnvironment: String - - """ - The latest status of this deployment. - """ - latestStatus: DeploymentStatus - - """ - The original environment to which this deployment was made. - """ - originalEnvironment: String - - """ - Extra information that a deployment system might need. - """ - payload: String - - """ - Identifies the Ref of the deployment, if the deployment was created by ref. - """ - ref: Ref - - """ - Identifies the repository associated with the deployment. - """ - repository: Repository! - - """ - The current state of the deployment. - """ - state: DeploymentState - - """ - A list of statuses associated with the deployment. - """ - statuses( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): DeploymentStatusConnection - - """ - The deployment task. - """ - task: String - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -The connection type for Deployment. -""" -type DeploymentConnection { - """ - A list of edges. - """ - edges: [DeploymentEdge] - - """ - A list of nodes. - """ - nodes: [Deployment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type DeploymentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Deployment -} - -""" -Represents a 'deployment_environment_changed' event on a given pull request. -""" -type DeploymentEnvironmentChangedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The deployment status that updated the deployment environment. - """ - deploymentStatus: DeploymentStatus! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Ordering options for deployment connections -""" -input DeploymentOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order deployments by. - """ - field: DeploymentOrderField! -} - -""" -Properties by which deployment connections can be ordered. -""" -enum DeploymentOrderField { - """ - Order collection by creation time - """ - CREATED_AT -} - -""" -The possible states in which a deployment can be. -""" -enum DeploymentState { - """ - The pending deployment was not updated after 30 minutes. - """ - ABANDONED - - """ - The deployment is currently active. - """ - ACTIVE - - """ - An inactive transient deployment. - """ - DESTROYED - - """ - The deployment experienced an error. - """ - ERROR - - """ - The deployment has failed. - """ - FAILURE - - """ - The deployment is inactive. - """ - INACTIVE - - """ - The deployment is in progress. - """ - IN_PROGRESS - - """ - The deployment is pending. - """ - PENDING - - """ - The deployment has queued - """ - QUEUED - - """ - The deployment is waiting. - """ - WAITING -} - -""" -Describes the status of a given deployment attempt. -""" -type DeploymentStatus implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the actor who triggered the deployment. - """ - creator: Actor! - - """ - Identifies the deployment associated with status. - """ - deployment: Deployment! - - """ - Identifies the description of the deployment. - """ - description: String - - """ - Identifies the environment URL of the deployment. - """ - environmentUrl: URI - id: ID! - - """ - Identifies the log URL of the deployment. - """ - logUrl: URI - - """ - Identifies the current state of the deployment. - """ - state: DeploymentStatusState! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -The connection type for DeploymentStatus. -""" -type DeploymentStatusConnection { - """ - A list of edges. - """ - edges: [DeploymentStatusEdge] - - """ - A list of nodes. - """ - nodes: [DeploymentStatus] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type DeploymentStatusEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: DeploymentStatus -} - -""" -The possible states for a deployment status. -""" -enum DeploymentStatusState { - """ - The deployment experienced an error. - """ - ERROR - - """ - The deployment has failed. - """ - FAILURE - - """ - The deployment is inactive. - """ - INACTIVE - - """ - The deployment is in progress. - """ - IN_PROGRESS - - """ - The deployment is pending. - """ - PENDING - - """ - The deployment is queued - """ - QUEUED - - """ - The deployment was successful. - """ - SUCCESS -} - -""" -The possible sides of a diff. -""" -enum DiffSide { - """ - The left side of the diff. - """ - LEFT - - """ - The right side of the diff. - """ - RIGHT -} - -""" -Represents a 'disconnected' event on a given issue or pull request. -""" -type DisconnectedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Reference originated in a different repository. - """ - isCrossRepository: Boolean! - - """ - Issue or pull request from which the issue was disconnected. - """ - source: ReferencedSubject! - - """ - Issue or pull request which was disconnected. - """ - subject: ReferencedSubject! -} - -""" -Autogenerated input type of DismissPullRequestReview -""" -input DismissPullRequestReviewInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The contents of the pull request review dismissal message. - """ - message: String! - - """ - The Node ID of the pull request review to modify. - """ - pullRequestReviewId: ID! -} - -""" -Autogenerated return type of DismissPullRequestReview -""" -type DismissPullRequestReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The dismissed pull request review. - """ - pullRequestReview: PullRequestReview -} - -""" -Specifies a review comment to be left with a Pull Request Review. -""" -input DraftPullRequestReviewComment { - """ - Body of the comment to leave. - """ - body: String! - - """ - Path to the file being commented on. - """ - path: String! - - """ - Position in the file to leave a comment on. - """ - position: Int! -} - -""" -Specifies a review comment thread to be left with a Pull Request Review. -""" -input DraftPullRequestReviewThread { - """ - Body of the comment to leave. - """ - body: String! - - """ - The line of the blob to which the thread refers. The end of the line range for multi-line comments. - """ - line: Int! - - """ - Path to the file being commented on. - """ - path: String! - - """ - The side of the diff on which the line resides. For multi-line comments, this is the side for the end of the line range. - """ - side: DiffSide = RIGHT - - """ - The first line of the range to which the comment refers. - """ - startLine: Int - - """ - The side of the diff on which the start line resides. - """ - startSide: DiffSide = RIGHT -} - -""" -An account to manage multiple organizations with consolidated policy and billing. -""" -type Enterprise implements Node { - """ - A URL pointing to the enterprise's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - Enterprise billing information visible to enterprise billing managers. - """ - billingInfo: EnterpriseBillingInfo - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The description of the enterprise. - """ - description: String - - """ - The description of the enterprise as HTML. - """ - descriptionHTML: HTML! - id: ID! - - """ - The location of the enterprise. - """ - location: String - - """ - A list of users who are members of this enterprise. - """ - members( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Only return members within the selected GitHub Enterprise deployment - """ - deployment: EnterpriseUserDeployment - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for members returned from the connection. - """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - - """ - Only return members within the organizations with these logins - """ - organizationLogins: [String!] - - """ - The search string to look for. - """ - query: String - - """ - The role of the user in the enterprise organization or server. - """ - role: EnterpriseUserAccountMembershipRole - ): EnterpriseMemberConnection! - - """ - The name of the enterprise. - """ - name: String! - - """ - A list of organizations that belong to this enterprise. - """ - organizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations returned from the connection. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The search string to look for. - """ - query: String - ): OrganizationConnection! - - """ - Enterprise information only visible to enterprise owners. - """ - ownerInfo: EnterpriseOwnerInfo - - """ - The HTTP path for this enterprise. - """ - resourcePath: URI! - - """ - The URL-friendly identifier for the enterprise. - """ - slug: String! - - """ - The HTTP URL for this enterprise. - """ - url: URI! - - """ - A list of user accounts on this enterprise. - """ - userAccounts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): EnterpriseUserAccountConnection! - - """ - Is the current viewer an admin of this enterprise? - """ - viewerIsAdmin: Boolean! - - """ - The URL of the enterprise website. - """ - websiteUrl: URI -} - -""" -The connection type for User. -""" -type EnterpriseAdministratorConnection { - """ - A list of edges. - """ - edges: [EnterpriseAdministratorEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A User who is an administrator of an enterprise. -""" -type EnterpriseAdministratorEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: User - - """ - The role of the administrator. - """ - role: EnterpriseAdministratorRole! -} - -""" -An invitation for a user to become an owner or billing manager of an enterprise. -""" -type EnterpriseAdministratorInvitation implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The email of the person who was invited to the enterprise. - """ - email: String - - """ - The enterprise the invitation is for. - """ - enterprise: Enterprise! - id: ID! - - """ - The user who was invited to the enterprise. - """ - invitee: User - - """ - The user who created the invitation. - """ - inviter: User - - """ - The invitee's pending role in the enterprise (owner or billing_manager). - """ - role: EnterpriseAdministratorRole! -} - -""" -The connection type for EnterpriseAdministratorInvitation. -""" -type EnterpriseAdministratorInvitationConnection { - """ - A list of edges. - """ - edges: [EnterpriseAdministratorInvitationEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseAdministratorInvitation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseAdministratorInvitationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseAdministratorInvitation -} - -""" -Ordering options for enterprise administrator invitation connections -""" -input EnterpriseAdministratorInvitationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order enterprise administrator invitations by. - """ - field: EnterpriseAdministratorInvitationOrderField! -} - -""" -Properties by which enterprise administrator invitation connections can be ordered. -""" -enum EnterpriseAdministratorInvitationOrderField { - """ - Order enterprise administrator member invitations by creation time - """ - CREATED_AT -} - -""" -The possible administrator roles in an enterprise account. -""" -enum EnterpriseAdministratorRole { - """ - Represents a billing manager of the enterprise account. - """ - BILLING_MANAGER - - """ - Represents an owner of the enterprise account. - """ - OWNER -} - -""" -Metadata for an audit entry containing enterprise account information. -""" -interface EnterpriseAuditEntryData { - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI -} - -""" -Enterprise billing information visible to enterprise billing managers and owners. -""" -type EnterpriseBillingInfo { - """ - The number of licenseable users/emails across the enterprise. - """ - allLicensableUsersCount: Int! - - """ - The number of data packs used by all organizations owned by the enterprise. - """ - assetPacks: Int! - - """ - The number of available seats across all owned organizations based on the unique number of billable users. - """ - availableSeats: Int! @deprecated(reason: "`availableSeats` will be replaced with `totalAvailableLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalAvailableLicenses instead. Removal on 2020-01-01 UTC.") - - """ - The bandwidth quota in GB for all organizations owned by the enterprise. - """ - bandwidthQuota: Float! - - """ - The bandwidth usage in GB for all organizations owned by the enterprise. - """ - bandwidthUsage: Float! - - """ - The bandwidth usage as a percentage of the bandwidth quota. - """ - bandwidthUsagePercentage: Int! - - """ - The total seats across all organizations owned by the enterprise. - """ - seats: Int! @deprecated(reason: "`seats` will be replaced with `totalLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalLicenses instead. Removal on 2020-01-01 UTC.") - - """ - The storage quota in GB for all organizations owned by the enterprise. - """ - storageQuota: Float! - - """ - The storage usage in GB for all organizations owned by the enterprise. - """ - storageUsage: Float! - - """ - The storage usage as a percentage of the storage quota. - """ - storageUsagePercentage: Int! - - """ - The number of available licenses across all owned organizations based on the unique number of billable users. - """ - totalAvailableLicenses: Int! - - """ - The total number of licenses allocated. - """ - totalLicenses: Int! -} - -""" -The possible values for the enterprise default repository permission setting. -""" -enum EnterpriseDefaultRepositoryPermissionSettingValue { - """ - Organization members will be able to clone, pull, push, and add new collaborators to all organization repositories. - """ - ADMIN - - """ - Organization members will only be able to clone and pull public repositories. - """ - NONE - - """ - Organizations in the enterprise choose default repository permissions for their members. - """ - NO_POLICY - - """ - Organization members will be able to clone and pull all organization repositories. - """ - READ - - """ - Organization members will be able to clone, pull, and push all organization repositories. - """ - WRITE -} - -""" -The possible values for an enabled/disabled enterprise setting. -""" -enum EnterpriseEnabledDisabledSettingValue { - """ - The setting is disabled for organizations in the enterprise. - """ - DISABLED - - """ - The setting is enabled for organizations in the enterprise. - """ - ENABLED - - """ - There is no policy set for organizations in the enterprise. - """ - NO_POLICY -} - -""" -The possible values for an enabled/no policy enterprise setting. -""" -enum EnterpriseEnabledSettingValue { - """ - The setting is enabled for organizations in the enterprise. - """ - ENABLED - - """ - There is no policy set for organizations in the enterprise. - """ - NO_POLICY -} - -""" -An identity provider configured to provision identities for an enterprise. -""" -type EnterpriseIdentityProvider implements Node { - """ - The digest algorithm used to sign SAML requests for the identity provider. - """ - digestMethod: SamlDigestAlgorithm - - """ - The enterprise this identity provider belongs to. - """ - enterprise: Enterprise - - """ - ExternalIdentities provisioned by this identity provider. - """ - externalIdentities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ExternalIdentityConnection! - id: ID! - - """ - The x509 certificate used by the identity provider to sign assertions and responses. - """ - idpCertificate: X509Certificate - - """ - The Issuer Entity ID for the SAML identity provider. - """ - issuer: String - - """ - Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. - """ - recoveryCodes: [String!] - - """ - The signature algorithm used to sign SAML requests for the identity provider. - """ - signatureMethod: SamlSignatureAlgorithm - - """ - The URL endpoint for the identity provider's SAML SSO. - """ - ssoUrl: URI -} - -""" -An object that is a member of an enterprise. -""" -union EnterpriseMember = EnterpriseUserAccount | User - -""" -The connection type for EnterpriseMember. -""" -type EnterpriseMemberConnection { - """ - A list of edges. - """ - edges: [EnterpriseMemberEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseMember] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A User who is a member of an enterprise through one or more organizations. -""" -type EnterpriseMemberEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - Whether the user does not have a license for the enterprise. - """ - isUnlicensed: Boolean! @deprecated(reason: "All members consume a license Removal on 2021-01-01 UTC.") - - """ - The item at the end of the edge. - """ - node: EnterpriseMember -} - -""" -Ordering options for enterprise member connections. -""" -input EnterpriseMemberOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order enterprise members by. - """ - field: EnterpriseMemberOrderField! -} - -""" -Properties by which enterprise member connections can be ordered. -""" -enum EnterpriseMemberOrderField { - """ - Order enterprise members by creation time - """ - CREATED_AT - - """ - Order enterprise members by login - """ - LOGIN -} - -""" -The possible values for the enterprise members can create repositories setting. -""" -enum EnterpriseMembersCanCreateRepositoriesSettingValue { - """ - Members will be able to create public and private repositories. - """ - ALL - - """ - Members will not be able to create public or private repositories. - """ - DISABLED - - """ - Organization administrators choose whether to allow members to create repositories. - """ - NO_POLICY - - """ - Members will be able to create only private repositories. - """ - PRIVATE - - """ - Members will be able to create only public repositories. - """ - PUBLIC -} - -""" -The possible values for the members can make purchases setting. -""" -enum EnterpriseMembersCanMakePurchasesSettingValue { - """ - The setting is disabled for organizations in the enterprise. - """ - DISABLED - - """ - The setting is enabled for organizations in the enterprise. - """ - ENABLED -} - -""" -The connection type for Organization. -""" -type EnterpriseOrganizationMembershipConnection { - """ - A list of edges. - """ - edges: [EnterpriseOrganizationMembershipEdge] - - """ - A list of nodes. - """ - nodes: [Organization] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An enterprise organization that a user is a member of. -""" -type EnterpriseOrganizationMembershipEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Organization - - """ - The role of the user in the enterprise membership. - """ - role: EnterpriseUserAccountMembershipRole! -} - -""" -The connection type for User. -""" -type EnterpriseOutsideCollaboratorConnection { - """ - A list of edges. - """ - edges: [EnterpriseOutsideCollaboratorEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A User who is an outside collaborator of an enterprise through one or more organizations. -""" -type EnterpriseOutsideCollaboratorEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - Whether the outside collaborator does not have a license for the enterprise. - """ - isUnlicensed: Boolean! @deprecated(reason: "All outside collaborators consume a license Removal on 2021-01-01 UTC.") - - """ - The item at the end of the edge. - """ - node: User - - """ - The enterprise organization repositories this user is a member of. - """ - repositories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories. - """ - orderBy: RepositoryOrder = {field: NAME, direction: ASC} - ): EnterpriseRepositoryInfoConnection! -} - -""" -Enterprise information only visible to enterprise owners. -""" -type EnterpriseOwnerInfo { - """ - A list of all of the administrators for this enterprise. - """ - admins( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for administrators returned from the connection. - """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - - """ - The search string to look for. - """ - query: String - - """ - The role to filter by. - """ - role: EnterpriseAdministratorRole - ): EnterpriseAdministratorConnection! - - """ - A list of users in the enterprise who currently have two-factor authentication disabled. - """ - affiliatedUsersWithTwoFactorDisabled( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. - """ - affiliatedUsersWithTwoFactorDisabledExist: Boolean! - - """ - The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. - """ - allowPrivateRepositoryForkingSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided private repository forking setting value. - """ - allowPrivateRepositoryForkingSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for base repository permissions for organizations in this enterprise. - """ - defaultRepositoryPermissionSetting: EnterpriseDefaultRepositoryPermissionSettingValue! - - """ - A list of enterprise organizations configured with the provided default repository permission. - """ - defaultRepositoryPermissionSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The permission to find organizations for. - """ - value: DefaultRepositoryPermissionField! - ): OrganizationConnection! - - """ - Enterprise Server installations owned by the enterprise. - """ - enterpriseServerInstallations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Whether or not to only return installations discovered via GitHub Connect. - """ - connectedOnly: Boolean = false - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Enterprise Server installations returned. - """ - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} - ): EnterpriseServerInstallationConnection! - - """ - The setting value for whether the enterprise has an IP allow list enabled. - """ - ipAllowListEnabledSetting: IpAllowListEnabledSettingValue! - - """ - The IP addresses that are allowed to access resources owned by the enterprise. - """ - ipAllowListEntries( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for IP allow list entries returned. - """ - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} - ): IpAllowListEntryConnection! - - """ - Whether or not the default repository permission is currently being updated. - """ - isUpdatingDefaultRepositoryPermission: Boolean! - - """ - Whether the two-factor authentication requirement is currently being enforced. - """ - isUpdatingTwoFactorRequirement: Boolean! - - """ - The setting value for whether organization members with admin permissions on a - repository can change repository visibility. - """ - membersCanChangeRepositoryVisibilitySetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided can change repository visibility setting value. - """ - membersCanChangeRepositoryVisibilitySettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether members of organizations in the enterprise can create internal repositories. - """ - membersCanCreateInternalRepositoriesSetting: Boolean - - """ - The setting value for whether members of organizations in the enterprise can create private repositories. - """ - membersCanCreatePrivateRepositoriesSetting: Boolean - - """ - The setting value for whether members of organizations in the enterprise can create public repositories. - """ - membersCanCreatePublicRepositoriesSetting: Boolean - - """ - The setting value for whether members of organizations in the enterprise can create repositories. - """ - membersCanCreateRepositoriesSetting: EnterpriseMembersCanCreateRepositoriesSettingValue - - """ - A list of enterprise organizations configured with the provided repository creation setting value. - """ - membersCanCreateRepositoriesSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting to find organizations for. - """ - value: OrganizationMembersCanCreateRepositoriesSettingValue! - ): OrganizationConnection! - - """ - The setting value for whether members with admin permissions for repositories can delete issues. - """ - membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided members can delete issues setting value. - """ - membersCanDeleteIssuesSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether members with admin permissions for repositories can delete or transfer repositories. - """ - membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided members can delete repositories setting value. - """ - membersCanDeleteRepositoriesSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether members of organizations in the enterprise can invite outside collaborators. - """ - membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided members can invite collaborators setting value. - """ - membersCanInviteCollaboratorsSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. - """ - membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue! - - """ - The setting value for whether members with admin permissions for repositories can update protected branches. - """ - membersCanUpdateProtectedBranchesSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided members can update protected branches setting value. - """ - membersCanUpdateProtectedBranchesSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether members can view dependency insights. - """ - membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided members can view dependency insights setting value. - """ - membersCanViewDependencyInsightsSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether organization projects are enabled for organizations in this enterprise. - """ - organizationProjectsSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided organization projects setting value. - """ - organizationProjectsSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - A list of outside collaborators across the repositories in the enterprise. - """ - outsideCollaborators( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - The login of one specific outside collaborator. - """ - login: String - - """ - Ordering options for outside collaborators returned from the connection. - """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} - - """ - The search string to look for. - """ - query: String - - """ - Only return outside collaborators on repositories with this visibility. - """ - visibility: RepositoryVisibility - ): EnterpriseOutsideCollaboratorConnection! - - """ - A list of pending administrator invitations for the enterprise. - """ - pendingAdminInvitations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pending enterprise administrator invitations returned from the connection. - """ - orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC} - - """ - The search string to look for. - """ - query: String - - """ - The role to filter by. - """ - role: EnterpriseAdministratorRole - ): EnterpriseAdministratorInvitationConnection! - - """ - A list of pending collaborator invitations across the repositories in the enterprise. - """ - pendingCollaboratorInvitations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pending repository collaborator invitations returned from the connection. - """ - orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} - - """ - The search string to look for. - """ - query: String - ): RepositoryInvitationConnection! - - """ - A list of pending collaborators across the repositories in the enterprise. - """ - pendingCollaborators( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pending repository collaborator invitations returned from the connection. - """ - orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} - - """ - The search string to look for. - """ - query: String - ): EnterprisePendingCollaboratorConnection! @deprecated(reason: "Repository invitations can now be associated with an email, not only an invitee. Use the `pendingCollaboratorInvitations` field instead. Removal on 2020-10-01 UTC.") - - """ - A list of pending member invitations for organizations in the enterprise. - """ - pendingMemberInvitations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - The search string to look for. - """ - query: String - ): EnterprisePendingMemberInvitationConnection! - - """ - The setting value for whether repository projects are enabled in this enterprise. - """ - repositoryProjectsSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided repository projects setting value. - """ - repositoryProjectsSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The SAML Identity Provider for the enterprise. - """ - samlIdentityProvider: EnterpriseIdentityProvider - - """ - A list of enterprise organizations configured with the SAML single sign-on setting value. - """ - samlIdentityProviderSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: IdentityProviderConfigurationState! - ): OrganizationConnection! - - """ - The setting value for whether team discussions are enabled for organizations in this enterprise. - """ - teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue! - - """ - A list of enterprise organizations configured with the provided team discussions setting value. - """ - teamDiscussionsSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! - - """ - The setting value for whether the enterprise requires two-factor authentication for its organizations and users. - """ - twoFactorRequiredSetting: EnterpriseEnabledSettingValue! - - """ - A list of enterprise organizations configured with the two-factor authentication setting value. - """ - twoFactorRequiredSettingOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations with this setting. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The setting value to find organizations for. - """ - value: Boolean! - ): OrganizationConnection! -} - -""" -The connection type for User. -""" -type EnterprisePendingCollaboratorConnection { - """ - A list of edges. - """ - edges: [EnterprisePendingCollaboratorEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A user with an invitation to be a collaborator on a repository owned by an organization in an enterprise. -""" -type EnterprisePendingCollaboratorEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - Whether the invited collaborator does not have a license for the enterprise. - """ - isUnlicensed: Boolean! @deprecated(reason: "All pending collaborators consume a license Removal on 2021-01-01 UTC.") - - """ - The item at the end of the edge. - """ - node: User - - """ - The enterprise organization repositories this user is a member of. - """ - repositories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories. - """ - orderBy: RepositoryOrder = {field: NAME, direction: ASC} - ): EnterpriseRepositoryInfoConnection! -} - -""" -The connection type for OrganizationInvitation. -""" -type EnterprisePendingMemberInvitationConnection { - """ - A list of edges. - """ - edges: [EnterprisePendingMemberInvitationEdge] - - """ - A list of nodes. - """ - nodes: [OrganizationInvitation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - Identifies the total count of unique users in the connection. - """ - totalUniqueUserCount: Int! -} - -""" -An invitation to be a member in an enterprise organization. -""" -type EnterprisePendingMemberInvitationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - Whether the invitation has a license for the enterprise. - """ - isUnlicensed: Boolean! @deprecated(reason: "All pending members consume a license Removal on 2020-07-01 UTC.") - - """ - The item at the end of the edge. - """ - node: OrganizationInvitation -} - -""" -A subset of repository information queryable from an enterprise. -""" -type EnterpriseRepositoryInfo implements Node { - id: ID! - - """ - Identifies if the repository is private. - """ - isPrivate: Boolean! - - """ - The repository's name. - """ - name: String! - - """ - The repository's name with owner. - """ - nameWithOwner: String! -} - -""" -The connection type for EnterpriseRepositoryInfo. -""" -type EnterpriseRepositoryInfoConnection { - """ - A list of edges. - """ - edges: [EnterpriseRepositoryInfoEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseRepositoryInfo] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseRepositoryInfoEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseRepositoryInfo -} - -""" -An Enterprise Server installation. -""" -type EnterpriseServerInstallation implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The customer name to which the Enterprise Server installation belongs. - """ - customerName: String! - - """ - The host name of the Enterprise Server installation. - """ - hostName: String! - id: ID! - - """ - Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. - """ - isConnected: Boolean! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - User accounts on this Enterprise Server installation. - """ - userAccounts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Enterprise Server user accounts returned from the connection. - """ - orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC} - ): EnterpriseServerUserAccountConnection! - - """ - User accounts uploads for the Enterprise Server installation. - """ - userAccountsUploads( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Enterprise Server user accounts uploads returned from the connection. - """ - orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC} - ): EnterpriseServerUserAccountsUploadConnection! -} - -""" -The connection type for EnterpriseServerInstallation. -""" -type EnterpriseServerInstallationConnection { - """ - A list of edges. - """ - edges: [EnterpriseServerInstallationEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseServerInstallation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseServerInstallationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseServerInstallation -} - -""" -Ordering options for Enterprise Server installation connections. -""" -input EnterpriseServerInstallationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order Enterprise Server installations by. - """ - field: EnterpriseServerInstallationOrderField! -} - -""" -Properties by which Enterprise Server installation connections can be ordered. -""" -enum EnterpriseServerInstallationOrderField { - """ - Order Enterprise Server installations by creation time - """ - CREATED_AT - - """ - Order Enterprise Server installations by customer name - """ - CUSTOMER_NAME - - """ - Order Enterprise Server installations by host name - """ - HOST_NAME -} - -""" -A user account on an Enterprise Server installation. -""" -type EnterpriseServerUserAccount implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - User emails belonging to this user account. - """ - emails( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Enterprise Server user account emails returned from the connection. - """ - orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC} - ): EnterpriseServerUserAccountEmailConnection! - - """ - The Enterprise Server installation on which this user account exists. - """ - enterpriseServerInstallation: EnterpriseServerInstallation! - id: ID! - - """ - Whether the user account is a site administrator on the Enterprise Server installation. - """ - isSiteAdmin: Boolean! - - """ - The login of the user account on the Enterprise Server installation. - """ - login: String! - - """ - The profile name of the user account on the Enterprise Server installation. - """ - profileName: String - - """ - The date and time when the user account was created on the Enterprise Server installation. - """ - remoteCreatedAt: DateTime! - - """ - The ID of the user account on the Enterprise Server installation. - """ - remoteUserId: Int! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -The connection type for EnterpriseServerUserAccount. -""" -type EnterpriseServerUserAccountConnection { - """ - A list of edges. - """ - edges: [EnterpriseServerUserAccountEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseServerUserAccount] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseServerUserAccountEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseServerUserAccount -} - -""" -An email belonging to a user account on an Enterprise Server installation. -""" -type EnterpriseServerUserAccountEmail implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The email address. - """ - email: String! - id: ID! - - """ - Indicates whether this is the primary email of the associated user account. - """ - isPrimary: Boolean! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The user account to which the email belongs. - """ - userAccount: EnterpriseServerUserAccount! -} - -""" -The connection type for EnterpriseServerUserAccountEmail. -""" -type EnterpriseServerUserAccountEmailConnection { - """ - A list of edges. - """ - edges: [EnterpriseServerUserAccountEmailEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseServerUserAccountEmail] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseServerUserAccountEmailEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseServerUserAccountEmail -} - -""" -Ordering options for Enterprise Server user account email connections. -""" -input EnterpriseServerUserAccountEmailOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order emails by. - """ - field: EnterpriseServerUserAccountEmailOrderField! -} - -""" -Properties by which Enterprise Server user account email connections can be ordered. -""" -enum EnterpriseServerUserAccountEmailOrderField { - """ - Order emails by email - """ - EMAIL -} - -""" -Ordering options for Enterprise Server user account connections. -""" -input EnterpriseServerUserAccountOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order user accounts by. - """ - field: EnterpriseServerUserAccountOrderField! -} - -""" -Properties by which Enterprise Server user account connections can be ordered. -""" -enum EnterpriseServerUserAccountOrderField { - """ - Order user accounts by login - """ - LOGIN - - """ - Order user accounts by creation time on the Enterprise Server installation - """ - REMOTE_CREATED_AT -} - -""" -A user accounts upload from an Enterprise Server installation. -""" -type EnterpriseServerUserAccountsUpload implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The enterprise to which this upload belongs. - """ - enterprise: Enterprise! - - """ - The Enterprise Server installation for which this upload was generated. - """ - enterpriseServerInstallation: EnterpriseServerInstallation! - id: ID! - - """ - The name of the file uploaded. - """ - name: String! - - """ - The synchronization state of the upload - """ - syncState: EnterpriseServerUserAccountsUploadSyncState! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -The connection type for EnterpriseServerUserAccountsUpload. -""" -type EnterpriseServerUserAccountsUploadConnection { - """ - A list of edges. - """ - edges: [EnterpriseServerUserAccountsUploadEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseServerUserAccountsUpload] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseServerUserAccountsUploadEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseServerUserAccountsUpload -} - -""" -Ordering options for Enterprise Server user accounts upload connections. -""" -input EnterpriseServerUserAccountsUploadOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order user accounts uploads by. - """ - field: EnterpriseServerUserAccountsUploadOrderField! -} - -""" -Properties by which Enterprise Server user accounts upload connections can be ordered. -""" -enum EnterpriseServerUserAccountsUploadOrderField { - """ - Order user accounts uploads by creation time - """ - CREATED_AT -} - -""" -Synchronization state of the Enterprise Server user accounts upload -""" -enum EnterpriseServerUserAccountsUploadSyncState { - """ - The synchronization of the upload failed. - """ - FAILURE - - """ - The synchronization of the upload is pending. - """ - PENDING - - """ - The synchronization of the upload succeeded. - """ - SUCCESS -} - -""" -An account for a user who is an admin of an enterprise or a member of an enterprise through one or more organizations. -""" -type EnterpriseUserAccount implements Actor & Node { - """ - A URL pointing to the enterprise user account's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The enterprise in which this user account exists. - """ - enterprise: Enterprise! - id: ID! - - """ - An identifier for the enterprise user account, a login or email address - """ - login: String! - - """ - The name of the enterprise user account - """ - name: String - - """ - A list of enterprise organizations this user is a member of. - """ - organizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for organizations returned from the connection. - """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} - - """ - The search string to look for. - """ - query: String - - """ - The role of the user in the enterprise organization. - """ - role: EnterpriseUserAccountMembershipRole - ): EnterpriseOrganizationMembershipConnection! - - """ - The HTTP path for this user. - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this user. - """ - url: URI! - - """ - The user within the enterprise. - """ - user: User -} - -""" -The connection type for EnterpriseUserAccount. -""" -type EnterpriseUserAccountConnection { - """ - A list of edges. - """ - edges: [EnterpriseUserAccountEdge] - - """ - A list of nodes. - """ - nodes: [EnterpriseUserAccount] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type EnterpriseUserAccountEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: EnterpriseUserAccount -} - -""" -The possible roles for enterprise membership. -""" -enum EnterpriseUserAccountMembershipRole { - """ - The user is a member of the enterprise membership. - """ - MEMBER - - """ - The user is an owner of the enterprise membership. - """ - OWNER -} - -""" -The possible GitHub Enterprise deployments where this user can exist. -""" -enum EnterpriseUserDeployment { - """ - The user is part of a GitHub Enterprise Cloud deployment. - """ - CLOUD - - """ - The user is part of a GitHub Enterprise Server deployment. - """ - SERVER -} - -""" -An external identity provisioned by SAML SSO or SCIM. -""" -type ExternalIdentity implements Node { - """ - The GUID for this identity - """ - guid: String! - id: ID! - - """ - Organization invitation for this SCIM-provisioned external identity - """ - organizationInvitation: OrganizationInvitation - - """ - SAML Identity attributes - """ - samlIdentity: ExternalIdentitySamlAttributes - - """ - SCIM Identity attributes - """ - scimIdentity: ExternalIdentityScimAttributes - - """ - User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. - """ - user: User -} - -""" -The connection type for ExternalIdentity. -""" -type ExternalIdentityConnection { - """ - A list of edges. - """ - edges: [ExternalIdentityEdge] - - """ - A list of nodes. - """ - nodes: [ExternalIdentity] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ExternalIdentityEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ExternalIdentity -} - -""" -SAML attributes for the External Identity -""" -type ExternalIdentitySamlAttributes { - """ - The emails associated with the SAML identity - """ - emails: [UserEmailMetadata!] - - """ - Family name of the SAML identity - """ - familyName: String - - """ - Given name of the SAML identity - """ - givenName: String - - """ - The groups linked to this identity in IDP - """ - groups: [String!] - - """ - The NameID of the SAML identity - """ - nameId: String - - """ - The userName of the SAML identity - """ - username: String -} - -""" -SCIM attributes for the External Identity -""" -type ExternalIdentityScimAttributes { - """ - The emails associated with the SCIM identity - """ - emails: [UserEmailMetadata!] - - """ - Family name of the SCIM identity - """ - familyName: String - - """ - Given name of the SCIM identity - """ - givenName: String - - """ - The groups linked to this identity in IDP - """ - groups: [String!] - - """ - The userName of the SCIM identity - """ - username: String -} - -""" -The possible viewed states of a file . -""" -enum FileViewedState { - """ - The file has new changes since last viewed. - """ - DISMISSED - - """ - The file has not been marked as viewed. - """ - UNVIEWED - - """ - The file has been marked as viewed. - """ - VIEWED -} - -""" -Autogenerated input type of FollowUser -""" -input FollowUserInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the user to follow. - """ - userId: ID! -} - -""" -Autogenerated return type of FollowUser -""" -type FollowUserPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The user that was followed. - """ - user: User -} - -""" -The connection type for User. -""" -type FollowerConnection { - """ - A list of edges. - """ - edges: [UserEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -The connection type for User. -""" -type FollowingConnection { - """ - A list of edges. - """ - edges: [UserEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A funding platform link for a repository. -""" -type FundingLink { - """ - The funding platform this link is for. - """ - platform: FundingPlatform! - - """ - The configured URL for this funding link. - """ - url: URI! -} - -""" -The possible funding platforms for repository funding links. -""" -enum FundingPlatform { - """ - Community Bridge funding platform. - """ - COMMUNITY_BRIDGE - - """ - Custom funding platform. - """ - CUSTOM - - """ - GitHub funding platform. - """ - GITHUB - - """ - IssueHunt funding platform. - """ - ISSUEHUNT - - """ - Ko-fi funding platform. - """ - KO_FI - - """ - Liberapay funding platform. - """ - LIBERAPAY - - """ - Open Collective funding platform. - """ - OPEN_COLLECTIVE - - """ - Otechie funding platform. - """ - OTECHIE - - """ - Patreon funding platform. - """ - PATREON - - """ - Tidelift funding platform. - """ - TIDELIFT -} - -""" -A generic hovercard context with a message and icon -""" -type GenericHovercardContext implements HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! -} - -""" -A Gist. -""" -type Gist implements Node & Starrable & UniformResourceLocatable { - """ - A list of comments associated with the gist - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): GistCommentConnection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The gist description. - """ - description: String - - """ - The files in this gist. - """ - files( - """ - The maximum number of files to return. - """ - limit: Int = 10 - - """ - The oid of the files to return - """ - oid: GitObjectID - ): [GistFile] - - """ - A list of forks associated with the gist - """ - forks( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for gists returned from the connection - """ - orderBy: GistOrder - ): GistConnection! - id: ID! - - """ - Identifies if the gist is a fork. - """ - isFork: Boolean! - - """ - Whether the gist is public or not. - """ - isPublic: Boolean! - - """ - The gist name. - """ - name: String! - - """ - The gist owner. - """ - owner: RepositoryOwner - - """ - Identifies when the gist was last pushed to. - """ - pushedAt: DateTime - - """ - The HTML path to this resource. - """ - resourcePath: URI! - - """ - Returns a count of how many stargazers there are on this object - """ - stargazerCount: Int! - - """ - A list of users who have starred this starrable. - """ - stargazers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: StarOrder - ): StargazerConnection! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this Gist. - """ - url: URI! - - """ - Returns a boolean indicating whether the viewing user has starred this starrable. - """ - viewerHasStarred: Boolean! -} - -""" -Represents a comment on an Gist. -""" -type GistComment implements Comment & Deletable & Minimizable & Node & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the gist. - """ - authorAssociation: CommentAuthorAssociation! - - """ - Identifies the comment body. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - - """ - The associated gist. - """ - gist: Gist! - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Returns whether or not a comment has been minimized. - """ - isMinimized: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Returns why the comment was minimized. - """ - minimizedReason: String - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Check if the current viewer can minimize this object. - """ - viewerCanMinimize: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -The connection type for GistComment. -""" -type GistCommentConnection { - """ - A list of edges. - """ - edges: [GistCommentEdge] - - """ - A list of nodes. - """ - nodes: [GistComment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type GistCommentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: GistComment -} - -""" -The connection type for Gist. -""" -type GistConnection { - """ - A list of edges. - """ - edges: [GistEdge] - - """ - A list of nodes. - """ - nodes: [Gist] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type GistEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Gist -} - -""" -A file in a gist. -""" -type GistFile { - """ - The file name encoded to remove characters that are invalid in URL paths. - """ - encodedName: String - - """ - The gist file encoding. - """ - encoding: String - - """ - The file extension from the file name. - """ - extension: String - - """ - Indicates if this file is an image. - """ - isImage: Boolean! - - """ - Whether the file's contents were truncated. - """ - isTruncated: Boolean! - - """ - The programming language this file is written in. - """ - language: Language - - """ - The gist file name. - """ - name: String - - """ - The gist file size in bytes. - """ - size: Int - - """ - UTF8 text data or null if the file is binary - """ - text( - """ - Optionally truncate the returned file to this length. - """ - truncate: Int - ): String -} - -""" -Ordering options for gist connections -""" -input GistOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order repositories by. - """ - field: GistOrderField! -} - -""" -Properties by which gist connections can be ordered. -""" -enum GistOrderField { - """ - Order gists by creation time - """ - CREATED_AT - - """ - Order gists by push time - """ - PUSHED_AT - - """ - Order gists by update time - """ - UPDATED_AT -} - -""" -The privacy of a Gist -""" -enum GistPrivacy { - """ - Gists that are public and secret - """ - ALL - - """ - Public - """ - PUBLIC - - """ - Secret - """ - SECRET -} - -""" -Represents an actor in a Git commit (ie. an author or committer). -""" -type GitActor { - """ - A URL pointing to the author's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - The timestamp of the Git action (authoring or committing). - """ - date: GitTimestamp - - """ - The email in the Git commit. - """ - email: String - - """ - The name in the Git commit. - """ - name: String - - """ - The GitHub user corresponding to the email field. Null if no such user exists. - """ - user: User -} - -""" -The connection type for GitActor. -""" -type GitActorConnection { - """ - A list of edges. - """ - edges: [GitActorEdge] - - """ - A list of nodes. - """ - nodes: [GitActor] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type GitActorEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: GitActor -} - -""" -Represents information about the GitHub instance. -""" -type GitHubMetadata { - """ - Returns a String that's a SHA of `github-services` - """ - gitHubServicesSha: GitObjectID! - - """ - IP addresses that users connect to for git operations - """ - gitIpAddresses: [String!] - - """ - IP addresses that service hooks are sent from - """ - hookIpAddresses: [String!] - - """ - IP addresses that the importer connects from - """ - importerIpAddresses: [String!] - - """ - Whether or not users are verified - """ - isPasswordAuthenticationVerifiable: Boolean! - - """ - IP addresses for GitHub Pages' A records - """ - pagesIpAddresses: [String!] -} - -""" -Represents a Git object. -""" -interface GitObject { - """ - An abbreviated version of the Git object ID - """ - abbreviatedOid: String! - - """ - The HTTP path for this Git object - """ - commitResourcePath: URI! - - """ - The HTTP URL for this Git object - """ - commitUrl: URI! - id: ID! - - """ - The Git object ID - """ - oid: GitObjectID! - - """ - The Repository the Git object belongs to - """ - repository: Repository! -} - -""" -A Git object ID. -""" -scalar GitObjectID - -""" -Git SSH string -""" -scalar GitSSHRemote - -""" -Information about a signature (GPG or S/MIME) on a Commit or Tag. -""" -interface GitSignature { - """ - Email used to sign this object. - """ - email: String! - - """ - True if the signature is valid and verified by GitHub. - """ - isValid: Boolean! - - """ - Payload for GPG signing object. Raw ODB object without the signature header. - """ - payload: String! - - """ - ASCII-armored signature header from object. - """ - signature: String! - - """ - GitHub user corresponding to the email signing this commit. - """ - signer: User - - """ - The state of this signature. `VALID` if signature is valid and verified by - GitHub, otherwise represents reason why signature is considered invalid. - """ - state: GitSignatureState! - - """ - True if the signature was made with GitHub's signing key. - """ - wasSignedByGitHub: Boolean! -} - -""" -The state of a Git signature. -""" -enum GitSignatureState { - """ - The signing certificate or its chain could not be verified - """ - BAD_CERT - - """ - Invalid email used for signing - """ - BAD_EMAIL - - """ - Signing key expired - """ - EXPIRED_KEY - - """ - Internal error - the GPG verification service misbehaved - """ - GPGVERIFY_ERROR - - """ - Internal error - the GPG verification service is unavailable at the moment - """ - GPGVERIFY_UNAVAILABLE - - """ - Invalid signature - """ - INVALID - - """ - Malformed signature - """ - MALFORMED_SIG - - """ - The usage flags for the key that signed this don't allow signing - """ - NOT_SIGNING_KEY - - """ - Email used for signing not known to GitHub - """ - NO_USER - - """ - Valid siganture, though certificate revocation check failed - """ - OCSP_ERROR - - """ - Valid signature, pending certificate revocation checking - """ - OCSP_PENDING - - """ - One or more certificates in chain has been revoked - """ - OCSP_REVOKED - - """ - Key used for signing not known to GitHub - """ - UNKNOWN_KEY - - """ - Unknown signature type - """ - UNKNOWN_SIG_TYPE - - """ - Unsigned - """ - UNSIGNED - - """ - Email used for signing unverified on GitHub - """ - UNVERIFIED_EMAIL - - """ - Valid signature and verified by GitHub - """ - VALID -} - -""" -An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC. -""" -scalar GitTimestamp - -""" -Represents a GPG signature on a Commit or Tag. -""" -type GpgSignature implements GitSignature { - """ - Email used to sign this object. - """ - email: String! - - """ - True if the signature is valid and verified by GitHub. - """ - isValid: Boolean! - - """ - Hex-encoded ID of the key that signed this object. - """ - keyId: String - - """ - Payload for GPG signing object. Raw ODB object without the signature header. - """ - payload: String! - - """ - ASCII-armored signature header from object. - """ - signature: String! - - """ - GitHub user corresponding to the email signing this commit. - """ - signer: User - - """ - The state of this signature. `VALID` if signature is valid and verified by - GitHub, otherwise represents reason why signature is considered invalid. - """ - state: GitSignatureState! - - """ - True if the signature was made with GitHub's signing key. - """ - wasSignedByGitHub: Boolean! -} - -""" -A string containing HTML code. -""" -scalar HTML - -""" -Represents a 'head_ref_deleted' event on a given pull request. -""" -type HeadRefDeletedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the Ref associated with the `head_ref_deleted` event. - """ - headRef: Ref - - """ - Identifies the name of the Ref associated with the `head_ref_deleted` event. - """ - headRefName: String! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Represents a 'head_ref_force_pushed' event on a given pull request. -""" -type HeadRefForcePushedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the after commit SHA for the 'head_ref_force_pushed' event. - """ - afterCommit: Commit - - """ - Identifies the before commit SHA for the 'head_ref_force_pushed' event. - """ - beforeCommit: Commit - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. - """ - ref: Ref -} - -""" -Represents a 'head_ref_restored' event on a given pull request. -""" -type HeadRefRestoredEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! -} - -""" -Detail needed to display a hovercard for a user -""" -type Hovercard { - """ - Each of the contexts for this hovercard - """ - contexts: [HovercardContext!]! -} - -""" -An individual line of a hovercard -""" -interface HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! -} - -""" -The possible states in which authentication can be configured with an identity provider. -""" -enum IdentityProviderConfigurationState { - """ - Authentication with an identity provider is configured but not enforced. - """ - CONFIGURED - - """ - Authentication with an identity provider is configured and enforced. - """ - ENFORCED - - """ - Authentication with an identity provider is not configured. - """ - UNCONFIGURED -} - -""" -Autogenerated input type of InviteEnterpriseAdmin -""" -input InviteEnterpriseAdminInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The email of the person to invite as an administrator. - """ - email: String - - """ - The ID of the enterprise to which you want to invite an administrator. - """ - enterpriseId: ID! - - """ - The login of a user to invite as an administrator. - """ - invitee: String - - """ - The role of the administrator. - """ - role: EnterpriseAdministratorRole -} - -""" -Autogenerated return type of InviteEnterpriseAdmin -""" -type InviteEnterpriseAdminPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The created enterprise administrator invitation. - """ - invitation: EnterpriseAdministratorInvitation -} - -""" -The possible values for the IP allow list enabled setting. -""" -enum IpAllowListEnabledSettingValue { - """ - The setting is disabled for the owner. - """ - DISABLED - - """ - The setting is enabled for the owner. - """ - ENABLED -} - -""" -An IP address or range of addresses that is allowed to access an owner's resources. -""" -type IpAllowListEntry implements Node { - """ - A single IP address or range of IP addresses in CIDR notation. - """ - allowListValue: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Whether the entry is currently active. - """ - isActive: Boolean! - - """ - The name of the IP allow list entry. - """ - name: String - - """ - The owner of the IP allow list entry. - """ - owner: IpAllowListOwner! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -The connection type for IpAllowListEntry. -""" -type IpAllowListEntryConnection { - """ - A list of edges. - """ - edges: [IpAllowListEntryEdge] - - """ - A list of nodes. - """ - nodes: [IpAllowListEntry] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type IpAllowListEntryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: IpAllowListEntry -} - -""" -Ordering options for IP allow list entry connections. -""" -input IpAllowListEntryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order IP allow list entries by. - """ - field: IpAllowListEntryOrderField! -} - -""" -Properties by which IP allow list entry connections can be ordered. -""" -enum IpAllowListEntryOrderField { - """ - Order IP allow list entries by the allow list value. - """ - ALLOW_LIST_VALUE - - """ - Order IP allow list entries by creation time. - """ - CREATED_AT -} - -""" -Types that can own an IP allow list. -""" -union IpAllowListOwner = Enterprise | Organization - -""" -An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. -""" -type Issue implements Assignable & Closable & Comment & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { - """ - Reason that the conversation was locked. - """ - activeLockReason: LockReason - - """ - A list of Users assigned to this object. - """ - assignees( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - Identifies the body of the issue. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The http path for this issue body - """ - bodyResourcePath: URI! - - """ - Identifies the body of the issue rendered to text. - """ - bodyText: String! - - """ - The http URL for this issue body - """ - bodyUrl: URI! - - """ - `true` if the object is closed (definition of closed may depend on type) - """ - closed: Boolean! - - """ - Identifies the date and time when the object was closed. - """ - closedAt: DateTime - - """ - A list of comments associated with the Issue. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issue comments returned from the connection. - """ - orderBy: IssueCommentOrder - ): IssueCommentConnection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - - """ - The hovercard information for this issue - """ - hovercard( - """ - Whether or not to include notification contexts - """ - includeNotificationContexts: Boolean = true - ): Hovercard! - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Is this issue read by the viewer - """ - isReadByViewer: Boolean - - """ - A list of labels associated with the object. - """ - labels( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for labels returned from the connection. - """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - ): LabelConnection - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - `true` if the object is locked - """ - locked: Boolean! - - """ - Identifies the milestone associated with the issue. - """ - milestone: Milestone - - """ - Identifies the issue number. - """ - number: Int! - - """ - A list of Users that are participating in the Issue conversation. - """ - participants( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - List of project cards associated with this issue. - """ - projectCards( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - A list of archived states to filter the cards by - """ - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ProjectCardConnection! - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path for this issue - """ - resourcePath: URI! - - """ - Identifies the state of the issue. - """ - state: IssueState! - - """ - A list of events, comments, commits, etc. associated with the issue. - """ - timeline( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows filtering timeline events by a `since` timestamp. - """ - since: DateTime - ): IssueTimelineConnection! @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") - - """ - A list of events, comments, commits, etc. associated with the issue. - """ - timelineItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Filter timeline items by type. - """ - itemTypes: [IssueTimelineItemsItemType!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter timeline items by a `since` timestamp. - """ - since: DateTime - - """ - Skips the first _n_ elements in the list. - """ - skip: Int - ): IssueTimelineItemsConnection! - - """ - Identifies the issue title. - """ - title: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this issue - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState -} - -""" -Represents a comment on an Issue. -""" -type IssueComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - The body as Markdown. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Returns whether or not a comment has been minimized. - """ - isMinimized: Boolean! - - """ - Identifies the issue associated with the comment. - """ - issue: Issue! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Returns why the comment was minimized. - """ - minimizedReason: String - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - Returns the pull request associated with the comment, if this comment was made on a - pull request. - """ - pullRequest: PullRequest - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path for this issue comment - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this issue comment - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Check if the current viewer can minimize this object. - """ - viewerCanMinimize: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -The connection type for IssueComment. -""" -type IssueCommentConnection { - """ - A list of edges. - """ - edges: [IssueCommentEdge] - - """ - A list of nodes. - """ - nodes: [IssueComment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type IssueCommentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: IssueComment -} - -""" -Ways in which lists of issue comments can be ordered upon return. -""" -input IssueCommentOrder { - """ - The direction in which to order issue comments by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order issue comments by. - """ - field: IssueCommentOrderField! -} - -""" -Properties by which issue comment connections can be ordered. -""" -enum IssueCommentOrderField { - """ - Order issue comments by update time - """ - UPDATED_AT -} - -""" -The connection type for Issue. -""" -type IssueConnection { - """ - A list of edges. - """ - edges: [IssueEdge] - - """ - A list of nodes. - """ - nodes: [Issue] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -This aggregates issues opened by a user within one repository. -""" -type IssueContributionsByRepository { - """ - The issue contributions. - """ - contributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedIssueContributionConnection! - - """ - The repository in which the issues were opened. - """ - repository: Repository! -} - -""" -An edge in a connection. -""" -type IssueEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Issue -} - -""" -Ways in which to filter lists of issues. -""" -input IssueFilters { - """ - List issues assigned to given name. Pass in `null` for issues with no assigned - user, and `*` for issues assigned to any user. - """ - assignee: String - - """ - List issues created by given name. - """ - createdBy: String - - """ - List issues where the list of label names exist on the issue. - """ - labels: [String!] - - """ - List issues where the given name is mentioned in the issue. - """ - mentioned: String - - """ - List issues by given milestone argument. If an string representation of an - integer is passed, it should refer to a milestone by its number field. Pass in - `null` for issues with no milestone, and `*` for issues that are assigned to any milestone. - """ - milestone: String - - """ - List issues that have been updated at or after the given date. - """ - since: DateTime - - """ - List issues filtered by the list of states given. - """ - states: [IssueState!] - - """ - List issues subscribed to by viewer. - """ - viewerSubscribed: Boolean = false -} - -""" -Used for return value of Repository.issueOrPullRequest. -""" -union IssueOrPullRequest = Issue | PullRequest - -""" -Ways in which lists of issues can be ordered upon return. -""" -input IssueOrder { - """ - The direction in which to order issues by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order issues by. - """ - field: IssueOrderField! -} - -""" -Properties by which issue connections can be ordered. -""" -enum IssueOrderField { - """ - Order issues by comment count - """ - COMMENTS - - """ - Order issues by creation time - """ - CREATED_AT - - """ - Order issues by update time - """ - UPDATED_AT -} - -""" -The possible states of an issue. -""" -enum IssueState { - """ - An issue that has been closed - """ - CLOSED - - """ - An issue that is still open - """ - OPEN -} - -""" -A repository issue template. -""" -type IssueTemplate { - """ - The template purpose. - """ - about: String - - """ - The suggested issue body. - """ - body: String - - """ - The template name. - """ - name: String! - - """ - The suggested issue title. - """ - title: String -} - -""" -The connection type for IssueTimelineItem. -""" -type IssueTimelineConnection { - """ - A list of edges. - """ - edges: [IssueTimelineItemEdge] - - """ - A list of nodes. - """ - nodes: [IssueTimelineItem] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An item in an issue timeline -""" -union IssueTimelineItem = AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent | DemilestonedEvent | IssueComment | LabeledEvent | LockedEvent | MilestonedEvent | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent - -""" -An edge in a connection. -""" -type IssueTimelineItemEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: IssueTimelineItem -} - -""" -An item in an issue timeline -""" -union IssueTimelineItems = AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertedNoteToIssueEvent | CrossReferencedEvent | DemilestonedEvent | DisconnectedEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent - -""" -The connection type for IssueTimelineItems. -""" -type IssueTimelineItemsConnection { - """ - A list of edges. - """ - edges: [IssueTimelineItemsEdge] - - """ - Identifies the count of items after applying `before` and `after` filters. - """ - filteredCount: Int! - - """ - A list of nodes. - """ - nodes: [IssueTimelineItems] - - """ - Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - """ - pageCount: Int! - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - Identifies the date and time when the timeline was last updated. - """ - updatedAt: DateTime! -} - -""" -An edge in a connection. -""" -type IssueTimelineItemsEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: IssueTimelineItems -} - -""" -The possible item types found in a timeline. -""" -enum IssueTimelineItemsItemType { - """ - Represents a 'added_to_project' event on a given issue or pull request. - """ - ADDED_TO_PROJECT_EVENT - - """ - Represents an 'assigned' event on any assignable object. - """ - ASSIGNED_EVENT - - """ - Represents a 'closed' event on any `Closable`. - """ - CLOSED_EVENT - - """ - Represents a 'comment_deleted' event on a given issue or pull request. - """ - COMMENT_DELETED_EVENT - - """ - Represents a 'connected' event on a given issue or pull request. - """ - CONNECTED_EVENT - - """ - Represents a 'converted_note_to_issue' event on a given issue or pull request. - """ - CONVERTED_NOTE_TO_ISSUE_EVENT - - """ - Represents a mention made by one issue or pull request to another. - """ - CROSS_REFERENCED_EVENT - - """ - Represents a 'demilestoned' event on a given issue or pull request. - """ - DEMILESTONED_EVENT - - """ - Represents a 'disconnected' event on a given issue or pull request. - """ - DISCONNECTED_EVENT - - """ - Represents a comment on an Issue. - """ - ISSUE_COMMENT - - """ - Represents a 'labeled' event on a given issue or pull request. - """ - LABELED_EVENT - - """ - Represents a 'locked' event on a given issue or pull request. - """ - LOCKED_EVENT - - """ - Represents a 'marked_as_duplicate' event on a given issue or pull request. - """ - MARKED_AS_DUPLICATE_EVENT - - """ - Represents a 'mentioned' event on a given issue or pull request. - """ - MENTIONED_EVENT - - """ - Represents a 'milestoned' event on a given issue or pull request. - """ - MILESTONED_EVENT - - """ - Represents a 'moved_columns_in_project' event on a given issue or pull request. - """ - MOVED_COLUMNS_IN_PROJECT_EVENT - - """ - Represents a 'pinned' event on a given issue or pull request. - """ - PINNED_EVENT - - """ - Represents a 'referenced' event on a given `ReferencedSubject`. - """ - REFERENCED_EVENT - - """ - Represents a 'removed_from_project' event on a given issue or pull request. - """ - REMOVED_FROM_PROJECT_EVENT - - """ - Represents a 'renamed' event on a given issue or pull request - """ - RENAMED_TITLE_EVENT - - """ - Represents a 'reopened' event on any `Closable`. - """ - REOPENED_EVENT - - """ - Represents a 'subscribed' event on a given `Subscribable`. - """ - SUBSCRIBED_EVENT - - """ - Represents a 'transferred' event on a given issue or pull request. - """ - TRANSFERRED_EVENT - - """ - Represents an 'unassigned' event on any assignable object. - """ - UNASSIGNED_EVENT - - """ - Represents an 'unlabeled' event on a given issue or pull request. - """ - UNLABELED_EVENT - - """ - Represents an 'unlocked' event on a given issue or pull request. - """ - UNLOCKED_EVENT - - """ - Represents an 'unmarked_as_duplicate' event on a given issue or pull request. - """ - UNMARKED_AS_DUPLICATE_EVENT - - """ - Represents an 'unpinned' event on a given issue or pull request. - """ - UNPINNED_EVENT - - """ - Represents an 'unsubscribed' event on a given `Subscribable`. - """ - UNSUBSCRIBED_EVENT - - """ - Represents a 'user_blocked' event on a given user. - """ - USER_BLOCKED_EVENT -} - -""" -Represents a user signing up for a GitHub account. -""" -type JoinedGitHubContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -A label for categorizing Issues or Milestones with a given Repository. -""" -type Label implements Node { - """ - Identifies the label color. - """ - color: String! - - """ - Identifies the date and time when the label was created. - """ - createdAt: DateTime - - """ - A brief description of this label. - """ - description: String - id: ID! - - """ - Indicates whether or not this is a default label. - """ - isDefault: Boolean! - - """ - A list of issues associated with this label. - """ - issues( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filtering options for issues returned from the connection. - """ - filterBy: IssueFilters - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issues returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the issues by. - """ - states: [IssueState!] - ): IssueConnection! - - """ - Identifies the label name. - """ - name: String! - - """ - A list of pull requests associated with this label. - """ - pullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection! - - """ - The repository associated with this label. - """ - repository: Repository! - - """ - The HTTP path for this label. - """ - resourcePath: URI! - - """ - Identifies the date and time when the label was last updated. - """ - updatedAt: DateTime - - """ - The HTTP URL for this label. - """ - url: URI! -} - -""" -The connection type for Label. -""" -type LabelConnection { - """ - A list of edges. - """ - edges: [LabelEdge] - - """ - A list of nodes. - """ - nodes: [Label] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type LabelEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Label -} - -""" -Ways in which lists of labels can be ordered upon return. -""" -input LabelOrder { - """ - The direction in which to order labels by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order labels by. - """ - field: LabelOrderField! -} - -""" -Properties by which label connections can be ordered. -""" -enum LabelOrderField { - """ - Order labels by creation time - """ - CREATED_AT - - """ - Order labels by name - """ - NAME -} - -""" -An object that can have labels assigned to it. -""" -interface Labelable { - """ - A list of labels associated with the object. - """ - labels( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for labels returned from the connection. - """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - ): LabelConnection -} - -""" -Represents a 'labeled' event on a given issue or pull request. -""" -type LabeledEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the label associated with the 'labeled' event. - """ - label: Label! - - """ - Identifies the `Labelable` associated with the event. - """ - labelable: Labelable! -} - -""" -Represents a given language found in repositories. -""" -type Language implements Node { - """ - The color defined for the current language. - """ - color: String - id: ID! - - """ - The name of the current language. - """ - name: String! -} - -""" -A list of languages associated with the parent. -""" -type LanguageConnection { - """ - A list of edges. - """ - edges: [LanguageEdge] - - """ - A list of nodes. - """ - nodes: [Language] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - The total size in bytes of files written in that language. - """ - totalSize: Int! -} - -""" -Represents the language of a repository. -""" -type LanguageEdge { - cursor: String! - node: Language! - - """ - The number of bytes of code written in the language. - """ - size: Int! -} - -""" -Ordering options for language connections. -""" -input LanguageOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order languages by. - """ - field: LanguageOrderField! -} - -""" -Properties by which language connections can be ordered. -""" -enum LanguageOrderField { - """ - Order languages by the size of all files containing the language - """ - SIZE -} - -""" -A repository's open source license -""" -type License implements Node { - """ - The full text of the license - """ - body: String! - - """ - The conditions set by the license - """ - conditions: [LicenseRule]! - - """ - A human-readable description of the license - """ - description: String - - """ - Whether the license should be featured - """ - featured: Boolean! - - """ - Whether the license should be displayed in license pickers - """ - hidden: Boolean! - id: ID! - - """ - Instructions on how to implement the license - """ - implementation: String - - """ - The lowercased SPDX ID of the license - """ - key: String! - - """ - The limitations set by the license - """ - limitations: [LicenseRule]! - - """ - The license full name specified by - """ - name: String! - - """ - Customary short name if applicable (e.g, GPLv3) - """ - nickname: String - - """ - The permissions set by the license - """ - permissions: [LicenseRule]! - - """ - Whether the license is a pseudo-license placeholder (e.g., other, no-license) - """ - pseudoLicense: Boolean! - - """ - Short identifier specified by - """ - spdxId: String - - """ - URL to the license on - """ - url: URI -} - -""" -Describes a License's conditions, permissions, and limitations -""" -type LicenseRule { - """ - A description of the rule - """ - description: String! - - """ - The machine-readable rule key - """ - key: String! - - """ - The human-readable rule label - """ - label: String! -} - -""" -Autogenerated input type of LinkRepositoryToProject -""" -input LinkRepositoryToProjectInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the Project to link to a Repository - """ - projectId: ID! - - """ - The ID of the Repository to link to a Project. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of LinkRepositoryToProject -""" -type LinkRepositoryToProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The linked Project. - """ - project: Project - - """ - The linked Repository. - """ - repository: Repository -} - -""" -Autogenerated input type of LockLockable -""" -input LockLockableInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - A reason for why the item will be locked. - """ - lockReason: LockReason - - """ - ID of the item to be locked. - """ - lockableId: ID! -} - -""" -Autogenerated return type of LockLockable -""" -type LockLockablePayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The item that was locked. - """ - lockedRecord: Lockable -} - -""" -The possible reasons that an issue or pull request was locked. -""" -enum LockReason { - """ - The issue or pull request was locked because the conversation was off-topic. - """ - OFF_TOPIC - - """ - The issue or pull request was locked because the conversation was resolved. - """ - RESOLVED - - """ - The issue or pull request was locked because the conversation was spam. - """ - SPAM - - """ - The issue or pull request was locked because the conversation was too heated. - """ - TOO_HEATED -} - -""" -An object that can be locked. -""" -interface Lockable { - """ - Reason that the conversation was locked. - """ - activeLockReason: LockReason - - """ - `true` if the object is locked - """ - locked: Boolean! -} - -""" -Represents a 'locked' event on a given issue or pull request. -""" -type LockedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Reason that the conversation was locked (optional). - """ - lockReason: LockReason - - """ - Object that was locked. - """ - lockable: Lockable! -} - -""" -A placeholder user for attribution of imported data on GitHub. -""" -type Mannequin implements Actor & Node & UniformResourceLocatable { - """ - A URL pointing to the GitHub App's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The mannequin's email on the source instance. - """ - email: String - id: ID! - - """ - The username of the actor. - """ - login: String! - - """ - The HTML path to this resource. - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The URL to this resource. - """ - url: URI! -} - -""" -Autogenerated input type of MarkFileAsViewed -""" -input MarkFileAsViewedInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The path of the file to mark as viewed - """ - path: String! - - """ - The Node ID of the pull request. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of MarkFileAsViewed -""" -type MarkFileAsViewedPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated pull request. - """ - pullRequest: PullRequest -} - -""" -Autogenerated input type of MarkPullRequestReadyForReview -""" -input MarkPullRequestReadyForReviewInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the pull request to be marked as ready for review. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of MarkPullRequestReadyForReview -""" -type MarkPullRequestReadyForReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request that is ready for review. - """ - pullRequest: PullRequest -} - -""" -Represents a 'marked_as_duplicate' event on a given issue or pull request. -""" -type MarkedAsDuplicateEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - The authoritative issue or pull request which has been duplicated by another. - """ - canonical: IssueOrPullRequest - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The issue or pull request which has been marked as a duplicate of another. - """ - duplicate: IssueOrPullRequest - id: ID! - - """ - Canonical and duplicate belong to different repositories. - """ - isCrossRepository: Boolean! -} - -""" -A public description of a Marketplace category. -""" -type MarketplaceCategory implements Node { - """ - The category's description. - """ - description: String - - """ - The technical description of how apps listed in this category work with GitHub. - """ - howItWorks: String - id: ID! - - """ - The category's name. - """ - name: String! - - """ - How many Marketplace listings have this as their primary category. - """ - primaryListingCount: Int! - - """ - The HTTP path for this Marketplace category. - """ - resourcePath: URI! - - """ - How many Marketplace listings have this as their secondary category. - """ - secondaryListingCount: Int! - - """ - The short name of the category used in its URL. - """ - slug: String! - - """ - The HTTP URL for this Marketplace category. - """ - url: URI! -} - -""" -A listing in the GitHub integration marketplace. -""" -type MarketplaceListing implements Node { - """ - The GitHub App this listing represents. - """ - app: App - - """ - URL to the listing owner's company site. - """ - companyUrl: URI - - """ - The HTTP path for configuring access to the listing's integration or OAuth app - """ - configurationResourcePath: URI! - - """ - The HTTP URL for configuring access to the listing's integration or OAuth app - """ - configurationUrl: URI! - - """ - URL to the listing's documentation. - """ - documentationUrl: URI - - """ - The listing's detailed description. - """ - extendedDescription: String - - """ - The listing's detailed description rendered to HTML. - """ - extendedDescriptionHTML: HTML! - - """ - The listing's introductory description. - """ - fullDescription: String! - - """ - The listing's introductory description rendered to HTML. - """ - fullDescriptionHTML: HTML! - - """ - Does this listing have any plans with a free trial? - """ - hasPublishedFreeTrialPlans: Boolean! - - """ - Does this listing have a terms of service link? - """ - hasTermsOfService: Boolean! - - """ - Whether the creator of the app is a verified org - """ - hasVerifiedOwner: Boolean! - - """ - A technical description of how this app works with GitHub. - """ - howItWorks: String - - """ - The listing's technical description rendered to HTML. - """ - howItWorksHTML: HTML! - id: ID! - - """ - URL to install the product to the viewer's account or organization. - """ - installationUrl: URI - - """ - Whether this listing's app has been installed for the current viewer - """ - installedForViewer: Boolean! - - """ - Whether this listing has been removed from the Marketplace. - """ - isArchived: Boolean! - - """ - Whether this listing is still an editable draft that has not been submitted - for review and is not publicly visible in the Marketplace. - """ - isDraft: Boolean! - - """ - Whether the product this listing represents is available as part of a paid plan. - """ - isPaid: Boolean! - - """ - Whether this listing has been approved for display in the Marketplace. - """ - isPublic: Boolean! - - """ - Whether this listing has been rejected by GitHub for display in the Marketplace. - """ - isRejected: Boolean! - - """ - Whether this listing has been approved for unverified display in the Marketplace. - """ - isUnverified: Boolean! - - """ - Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace. - """ - isUnverifiedPending: Boolean! - - """ - Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - """ - isVerificationPendingFromDraft: Boolean! - - """ - Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - """ - isVerificationPendingFromUnverified: Boolean! - - """ - Whether this listing has been approved for verified display in the Marketplace. - """ - isVerified: Boolean! - - """ - The hex color code, without the leading '#', for the logo background. - """ - logoBackgroundColor: String! - - """ - URL for the listing's logo image. - """ - logoUrl( - """ - The size in pixels of the resulting square image. - """ - size: Int = 400 - ): URI - - """ - The listing's full name. - """ - name: String! - - """ - The listing's very short description without a trailing period or ampersands. - """ - normalizedShortDescription: String! - - """ - URL to the listing's detailed pricing. - """ - pricingUrl: URI - - """ - The category that best describes the listing. - """ - primaryCategory: MarketplaceCategory! - - """ - URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL. - """ - privacyPolicyUrl: URI! - - """ - The HTTP path for the Marketplace listing. - """ - resourcePath: URI! - - """ - The URLs for the listing's screenshots. - """ - screenshotUrls: [String]! - - """ - An alternate category that describes the listing. - """ - secondaryCategory: MarketplaceCategory - - """ - The listing's very short description. - """ - shortDescription: String! - - """ - The short name of the listing used in its URL. - """ - slug: String! - - """ - URL to the listing's status page. - """ - statusUrl: URI - - """ - An email address for support for this listing's app. - """ - supportEmail: String - - """ - Either a URL or an email address for support for this listing's app, may - return an empty string for listings that do not require a support URL. - """ - supportUrl: URI! - - """ - URL to the listing's terms of service. - """ - termsOfServiceUrl: URI - - """ - The HTTP URL for the Marketplace listing. - """ - url: URI! - - """ - Can the current viewer add plans for this Marketplace listing. - """ - viewerCanAddPlans: Boolean! - - """ - Can the current viewer approve this Marketplace listing. - """ - viewerCanApprove: Boolean! - - """ - Can the current viewer delist this Marketplace listing. - """ - viewerCanDelist: Boolean! - - """ - Can the current viewer edit this Marketplace listing. - """ - viewerCanEdit: Boolean! - - """ - Can the current viewer edit the primary and secondary category of this - Marketplace listing. - """ - viewerCanEditCategories: Boolean! - - """ - Can the current viewer edit the plans for this Marketplace listing. - """ - viewerCanEditPlans: Boolean! - - """ - Can the current viewer return this Marketplace listing to draft state - so it becomes editable again. - """ - viewerCanRedraft: Boolean! - - """ - Can the current viewer reject this Marketplace listing by returning it to - an editable draft state or rejecting it entirely. - """ - viewerCanReject: Boolean! - - """ - Can the current viewer request this listing be reviewed for display in - the Marketplace as verified. - """ - viewerCanRequestApproval: Boolean! - - """ - Indicates whether the current user has an active subscription to this Marketplace listing. - """ - viewerHasPurchased: Boolean! - - """ - Indicates if the current user has purchased a subscription to this Marketplace listing - for all of the organizations the user owns. - """ - viewerHasPurchasedForAllOrganizations: Boolean! - - """ - Does the current viewer role allow them to administer this Marketplace listing. - """ - viewerIsListingAdmin: Boolean! -} - -""" -Look up Marketplace Listings -""" -type MarketplaceListingConnection { - """ - A list of edges. - """ - edges: [MarketplaceListingEdge] - - """ - A list of nodes. - """ - nodes: [MarketplaceListing] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type MarketplaceListingEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: MarketplaceListing -} - -""" -Entities that have members who can set status messages. -""" -interface MemberStatusable { - """ - Get the status messages members of this entity have set that are either public or visible only to the organization. - """ - memberStatuses( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for user statuses returned from the connection. - """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} - ): UserStatusConnection! -} - -""" -Audit log entry for a members_can_delete_repos.clear event. -""" -type MembersCanDeleteReposClearAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a members_can_delete_repos.disable event. -""" -type MembersCanDeleteReposDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a members_can_delete_repos.enable event. -""" -type MembersCanDeleteReposEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Represents a 'mentioned' event on a given issue or pull request. -""" -type MentionedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! -} - -""" -Autogenerated input type of MergeBranch -""" -input MergeBranchInput { - """ - The email address to associate with this commit. - """ - authorEmail: String - - """ - The name of the base branch that the provided head will be merged into. - """ - base: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Message to use for the merge commit. If omitted, a default will be used. - """ - commitMessage: String - - """ - The head to merge into the base branch. This can be a branch name or a commit GitObjectID. - """ - head: String! - - """ - The Node ID of the Repository containing the base branch that will be modified. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of MergeBranch -""" -type MergeBranchPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The resulting merge Commit. - """ - mergeCommit: Commit -} - -""" -Autogenerated input type of MergePullRequest -""" -input MergePullRequestInput { - """ - The email address to associate with this merge. - """ - authorEmail: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Commit body to use for the merge commit; if omitted, a default message will be used - """ - commitBody: String - - """ - Commit headline to use for the merge commit; if omitted, a default message will be used. - """ - commitHeadline: String - - """ - OID that the pull request head ref must match to allow merge; if omitted, no check is performed. - """ - expectedHeadOid: GitObjectID - - """ - The merge method to use. If omitted, defaults to 'MERGE' - """ - mergeMethod: PullRequestMergeMethod = MERGE - - """ - ID of the pull request to be merged. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of MergePullRequest -""" -type MergePullRequestPayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request that was merged. - """ - pullRequest: PullRequest -} - -""" -Whether or not a PullRequest can be merged. -""" -enum MergeableState { - """ - The pull request cannot be merged due to merge conflicts. - """ - CONFLICTING - - """ - The pull request can be merged. - """ - MERGEABLE - - """ - The mergeability of the pull request is still being calculated. - """ - UNKNOWN -} - -""" -Represents a 'merged' event on a given pull request. -""" -type MergedEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the commit associated with the `merge` event. - """ - commit: Commit - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the Ref associated with the `merge` event. - """ - mergeRef: Ref - - """ - Identifies the name of the Ref associated with the `merge` event. - """ - mergeRefName: String! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - The HTTP path for this merged event. - """ - resourcePath: URI! - - """ - The HTTP URL for this merged event. - """ - url: URI! -} - -""" -Represents a Milestone object on a given repository. -""" -type Milestone implements Closable & Node & UniformResourceLocatable { - """ - `true` if the object is closed (definition of closed may depend on type) - """ - closed: Boolean! - - """ - Identifies the date and time when the object was closed. - """ - closedAt: DateTime - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the actor who created the milestone. - """ - creator: Actor - - """ - Identifies the description of the milestone. - """ - description: String - - """ - Identifies the due date of the milestone. - """ - dueOn: DateTime - id: ID! - - """ - A list of issues associated with the milestone. - """ - issues( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filtering options for issues returned from the connection. - """ - filterBy: IssueFilters - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issues returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the issues by. - """ - states: [IssueState!] - ): IssueConnection! - - """ - Identifies the number of the milestone. - """ - number: Int! - - """ - Indentifies the percentage complete for the milestone - """ - progressPercentage: Float! - - """ - A list of pull requests associated with the milestone. - """ - pullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection! - - """ - The repository associated with this milestone. - """ - repository: Repository! - - """ - The HTTP path for this milestone - """ - resourcePath: URI! - - """ - Identifies the state of the milestone. - """ - state: MilestoneState! - - """ - Identifies the title of the milestone. - """ - title: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this milestone - """ - url: URI! -} - -""" -The connection type for Milestone. -""" -type MilestoneConnection { - """ - A list of edges. - """ - edges: [MilestoneEdge] - - """ - A list of nodes. - """ - nodes: [Milestone] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type MilestoneEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Milestone -} - -""" -Types that can be inside a Milestone. -""" -union MilestoneItem = Issue | PullRequest - -""" -Ordering options for milestone connections. -""" -input MilestoneOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order milestones by. - """ - field: MilestoneOrderField! -} - -""" -Properties by which milestone connections can be ordered. -""" -enum MilestoneOrderField { - """ - Order milestones by when they were created. - """ - CREATED_AT - - """ - Order milestones by when they are due. - """ - DUE_DATE - - """ - Order milestones by their number. - """ - NUMBER - - """ - Order milestones by when they were last updated. - """ - UPDATED_AT -} - -""" -The possible states of a milestone. -""" -enum MilestoneState { - """ - A milestone that has been closed. - """ - CLOSED - - """ - A milestone that is still open. - """ - OPEN -} - -""" -Represents a 'milestoned' event on a given issue or pull request. -""" -type MilestonedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the milestone title associated with the 'milestoned' event. - """ - milestoneTitle: String! - - """ - Object referenced by event. - """ - subject: MilestoneItem! -} - -""" -Entities that can be minimized. -""" -interface Minimizable { - """ - Returns whether or not a comment has been minimized. - """ - isMinimized: Boolean! - - """ - Returns why the comment was minimized. - """ - minimizedReason: String - - """ - Check if the current viewer can minimize this object. - """ - viewerCanMinimize: Boolean! -} - -""" -Autogenerated input type of MinimizeComment -""" -input MinimizeCommentInput { - """ - The classification of comment - """ - classifier: ReportedContentClassifiers! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the subject to modify. - """ - subjectId: ID! -} - -""" -Autogenerated return type of MinimizeComment -""" -type MinimizeCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The comment that was minimized. - """ - minimizedComment: Minimizable -} - -""" -Autogenerated input type of MoveProjectCard -""" -input MoveProjectCardInput { - """ - Place the new card after the card with this id. Pass null to place it at the top. - """ - afterCardId: ID - - """ - The id of the card to move. - """ - cardId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the column to move it into. - """ - columnId: ID! -} - -""" -Autogenerated return type of MoveProjectCard -""" -type MoveProjectCardPayload { - """ - The new edge of the moved card. - """ - cardEdge: ProjectCardEdge - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of MoveProjectColumn -""" -input MoveProjectColumnInput { - """ - Place the new column after the column with this id. Pass null to place it at the front. - """ - afterColumnId: ID - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The id of the column to move. - """ - columnId: ID! -} - -""" -Autogenerated return type of MoveProjectColumn -""" -type MoveProjectColumnPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new edge of the moved column. - """ - columnEdge: ProjectColumnEdge -} - -""" -Represents a 'moved_columns_in_project' event on a given issue or pull request. -""" -type MovedColumnsInProjectEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! -} - -""" -The root query for implementing GraphQL mutations. -""" -type Mutation { - """ - Accepts a pending invitation for a user to become an administrator of an enterprise. - """ - acceptEnterpriseAdministratorInvitation(input: AcceptEnterpriseAdministratorInvitationInput!): AcceptEnterpriseAdministratorInvitationPayload - - """ - Applies a suggested topic to the repository. - """ - acceptTopicSuggestion(input: AcceptTopicSuggestionInput!): AcceptTopicSuggestionPayload - - """ - Adds assignees to an assignable object. - """ - addAssigneesToAssignable(input: AddAssigneesToAssignableInput!): AddAssigneesToAssignablePayload - - """ - Adds a comment to an Issue or Pull Request. - """ - addComment(input: AddCommentInput!): AddCommentPayload - - """ - Adds labels to a labelable object. - """ - addLabelsToLabelable(input: AddLabelsToLabelableInput!): AddLabelsToLabelablePayload - - """ - Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. - """ - addProjectCard(input: AddProjectCardInput!): AddProjectCardPayload - - """ - Adds a column to a Project. - """ - addProjectColumn(input: AddProjectColumnInput!): AddProjectColumnPayload - - """ - Adds a review to a Pull Request. - """ - addPullRequestReview(input: AddPullRequestReviewInput!): AddPullRequestReviewPayload - - """ - Adds a comment to a review. - """ - addPullRequestReviewComment(input: AddPullRequestReviewCommentInput!): AddPullRequestReviewCommentPayload - - """ - Adds a new thread to a pending Pull Request Review. - """ - addPullRequestReviewThread(input: AddPullRequestReviewThreadInput!): AddPullRequestReviewThreadPayload - - """ - Adds a reaction to a subject. - """ - addReaction(input: AddReactionInput!): AddReactionPayload - - """ - Adds a star to a Starrable. - """ - addStar(input: AddStarInput!): AddStarPayload - - """ - Marks a repository as archived. - """ - archiveRepository(input: ArchiveRepositoryInput!): ArchiveRepositoryPayload - - """ - Cancels a pending invitation for an administrator to join an enterprise. - """ - cancelEnterpriseAdminInvitation(input: CancelEnterpriseAdminInvitationInput!): CancelEnterpriseAdminInvitationPayload - - """ - Update your status on GitHub. - """ - changeUserStatus(input: ChangeUserStatusInput!): ChangeUserStatusPayload - - """ - Clears all labels from a labelable object. - """ - clearLabelsFromLabelable(input: ClearLabelsFromLabelableInput!): ClearLabelsFromLabelablePayload - - """ - Creates a new project by cloning configuration from an existing project. - """ - cloneProject(input: CloneProjectInput!): CloneProjectPayload - - """ - Create a new repository with the same files and directory structure as a template repository. - """ - cloneTemplateRepository(input: CloneTemplateRepositoryInput!): CloneTemplateRepositoryPayload - - """ - Close an issue. - """ - closeIssue(input: CloseIssueInput!): CloseIssuePayload - - """ - Close a pull request. - """ - closePullRequest(input: ClosePullRequestInput!): ClosePullRequestPayload - - """ - Convert a project note card to one associated with a newly created issue. - """ - convertProjectCardNoteToIssue(input: ConvertProjectCardNoteToIssueInput!): ConvertProjectCardNoteToIssuePayload - - """ - Create a new branch protection rule - """ - createBranchProtectionRule(input: CreateBranchProtectionRuleInput!): CreateBranchProtectionRulePayload - - """ - Create a check run. - """ - createCheckRun(input: CreateCheckRunInput!): CreateCheckRunPayload - - """ - Create a check suite - """ - createCheckSuite(input: CreateCheckSuiteInput!): CreateCheckSuitePayload - - """ - Creates an organization as part of an enterprise account. - """ - createEnterpriseOrganization(input: CreateEnterpriseOrganizationInput!): CreateEnterpriseOrganizationPayload - - """ - Creates a new IP allow list entry. - """ - createIpAllowListEntry(input: CreateIpAllowListEntryInput!): CreateIpAllowListEntryPayload - - """ - Creates a new issue. - """ - createIssue(input: CreateIssueInput!): CreateIssuePayload - - """ - Creates a new project. - """ - createProject(input: CreateProjectInput!): CreateProjectPayload - - """ - Create a new pull request - """ - createPullRequest(input: CreatePullRequestInput!): CreatePullRequestPayload - - """ - Create a new Git Ref. - """ - createRef(input: CreateRefInput!): CreateRefPayload - - """ - Create a new repository. - """ - createRepository(input: CreateRepositoryInput!): CreateRepositoryPayload - - """ - Creates a new team discussion. - """ - createTeamDiscussion(input: CreateTeamDiscussionInput!): CreateTeamDiscussionPayload - - """ - Creates a new team discussion comment. - """ - createTeamDiscussionComment(input: CreateTeamDiscussionCommentInput!): CreateTeamDiscussionCommentPayload - - """ - Rejects a suggested topic for the repository. - """ - declineTopicSuggestion(input: DeclineTopicSuggestionInput!): DeclineTopicSuggestionPayload - - """ - Delete a branch protection rule - """ - deleteBranchProtectionRule(input: DeleteBranchProtectionRuleInput!): DeleteBranchProtectionRulePayload - - """ - Deletes a deployment. - """ - deleteDeployment(input: DeleteDeploymentInput!): DeleteDeploymentPayload - - """ - Deletes an IP allow list entry. - """ - deleteIpAllowListEntry(input: DeleteIpAllowListEntryInput!): DeleteIpAllowListEntryPayload - - """ - Deletes an Issue object. - """ - deleteIssue(input: DeleteIssueInput!): DeleteIssuePayload - - """ - Deletes an IssueComment object. - """ - deleteIssueComment(input: DeleteIssueCommentInput!): DeleteIssueCommentPayload - - """ - Deletes a project. - """ - deleteProject(input: DeleteProjectInput!): DeleteProjectPayload - - """ - Deletes a project card. - """ - deleteProjectCard(input: DeleteProjectCardInput!): DeleteProjectCardPayload - - """ - Deletes a project column. - """ - deleteProjectColumn(input: DeleteProjectColumnInput!): DeleteProjectColumnPayload - - """ - Deletes a pull request review. - """ - deletePullRequestReview(input: DeletePullRequestReviewInput!): DeletePullRequestReviewPayload - - """ - Deletes a pull request review comment. - """ - deletePullRequestReviewComment(input: DeletePullRequestReviewCommentInput!): DeletePullRequestReviewCommentPayload - - """ - Delete a Git Ref. - """ - deleteRef(input: DeleteRefInput!): DeleteRefPayload - - """ - Deletes a team discussion. - """ - deleteTeamDiscussion(input: DeleteTeamDiscussionInput!): DeleteTeamDiscussionPayload - - """ - Deletes a team discussion comment. - """ - deleteTeamDiscussionComment(input: DeleteTeamDiscussionCommentInput!): DeleteTeamDiscussionCommentPayload - - """ - Dismisses an approved or rejected pull request review. - """ - dismissPullRequestReview(input: DismissPullRequestReviewInput!): DismissPullRequestReviewPayload - - """ - Follow a user. - """ - followUser(input: FollowUserInput!): FollowUserPayload - - """ - Invite someone to become an administrator of the enterprise. - """ - inviteEnterpriseAdmin(input: InviteEnterpriseAdminInput!): InviteEnterpriseAdminPayload - - """ - Creates a repository link for a project. - """ - linkRepositoryToProject(input: LinkRepositoryToProjectInput!): LinkRepositoryToProjectPayload - - """ - Lock a lockable object - """ - lockLockable(input: LockLockableInput!): LockLockablePayload - - """ - Mark a pull request file as viewed - """ - markFileAsViewed(input: MarkFileAsViewedInput!): MarkFileAsViewedPayload - - """ - Marks a pull request ready for review. - """ - markPullRequestReadyForReview(input: MarkPullRequestReadyForReviewInput!): MarkPullRequestReadyForReviewPayload - - """ - Merge a head into a branch. - """ - mergeBranch(input: MergeBranchInput!): MergeBranchPayload - - """ - Merge a pull request. - """ - mergePullRequest(input: MergePullRequestInput!): MergePullRequestPayload - - """ - Minimizes a comment on an Issue, Commit, Pull Request, or Gist - """ - minimizeComment(input: MinimizeCommentInput!): MinimizeCommentPayload - - """ - Moves a project card to another place. - """ - moveProjectCard(input: MoveProjectCardInput!): MoveProjectCardPayload - - """ - Moves a project column to another place. - """ - moveProjectColumn(input: MoveProjectColumnInput!): MoveProjectColumnPayload - - """ - Regenerates the identity provider recovery codes for an enterprise - """ - regenerateEnterpriseIdentityProviderRecoveryCodes(input: RegenerateEnterpriseIdentityProviderRecoveryCodesInput!): RegenerateEnterpriseIdentityProviderRecoveryCodesPayload - - """ - Removes assignees from an assignable object. - """ - removeAssigneesFromAssignable(input: RemoveAssigneesFromAssignableInput!): RemoveAssigneesFromAssignablePayload - - """ - Removes an administrator from the enterprise. - """ - removeEnterpriseAdmin(input: RemoveEnterpriseAdminInput!): RemoveEnterpriseAdminPayload - - """ - Removes the identity provider from an enterprise - """ - removeEnterpriseIdentityProvider(input: RemoveEnterpriseIdentityProviderInput!): RemoveEnterpriseIdentityProviderPayload - - """ - Removes an organization from the enterprise - """ - removeEnterpriseOrganization(input: RemoveEnterpriseOrganizationInput!): RemoveEnterpriseOrganizationPayload - - """ - Removes labels from a Labelable object. - """ - removeLabelsFromLabelable(input: RemoveLabelsFromLabelableInput!): RemoveLabelsFromLabelablePayload - - """ - Removes outside collaborator from all repositories in an organization. - """ - removeOutsideCollaborator(input: RemoveOutsideCollaboratorInput!): RemoveOutsideCollaboratorPayload - - """ - Removes a reaction from a subject. - """ - removeReaction(input: RemoveReactionInput!): RemoveReactionPayload - - """ - Removes a star from a Starrable. - """ - removeStar(input: RemoveStarInput!): RemoveStarPayload - - """ - Reopen a issue. - """ - reopenIssue(input: ReopenIssueInput!): ReopenIssuePayload - - """ - Reopen a pull request. - """ - reopenPullRequest(input: ReopenPullRequestInput!): ReopenPullRequestPayload - - """ - Set review requests on a pull request. - """ - requestReviews(input: RequestReviewsInput!): RequestReviewsPayload - - """ - Rerequests an existing check suite. - """ - rerequestCheckSuite(input: RerequestCheckSuiteInput!): RerequestCheckSuitePayload - - """ - Marks a review thread as resolved. - """ - resolveReviewThread(input: ResolveReviewThreadInput!): ResolveReviewThreadPayload - - """ - Creates or updates the identity provider for an enterprise. - """ - setEnterpriseIdentityProvider(input: SetEnterpriseIdentityProviderInput!): SetEnterpriseIdentityProviderPayload - - """ - Set an organization level interaction limit for an organization's public repositories. - """ - setOrganizationInteractionLimit(input: SetOrganizationInteractionLimitInput!): SetOrganizationInteractionLimitPayload - - """ - Sets an interaction limit setting for a repository. - """ - setRepositoryInteractionLimit(input: SetRepositoryInteractionLimitInput!): SetRepositoryInteractionLimitPayload - - """ - Set a user level interaction limit for an user's public repositories. - """ - setUserInteractionLimit(input: SetUserInteractionLimitInput!): SetUserInteractionLimitPayload - - """ - Submits a pending pull request review. - """ - submitPullRequestReview(input: SubmitPullRequestReviewInput!): SubmitPullRequestReviewPayload - - """ - Transfer an issue to a different repository - """ - transferIssue(input: TransferIssueInput!): TransferIssuePayload - - """ - Unarchives a repository. - """ - unarchiveRepository(input: UnarchiveRepositoryInput!): UnarchiveRepositoryPayload - - """ - Unfollow a user. - """ - unfollowUser(input: UnfollowUserInput!): UnfollowUserPayload - - """ - Deletes a repository link from a project. - """ - unlinkRepositoryFromProject(input: UnlinkRepositoryFromProjectInput!): UnlinkRepositoryFromProjectPayload - - """ - Unlock a lockable object - """ - unlockLockable(input: UnlockLockableInput!): UnlockLockablePayload - - """ - Unmark a pull request file as viewed - """ - unmarkFileAsViewed(input: UnmarkFileAsViewedInput!): UnmarkFileAsViewedPayload - - """ - Unmark an issue as a duplicate of another issue. - """ - unmarkIssueAsDuplicate(input: UnmarkIssueAsDuplicateInput!): UnmarkIssueAsDuplicatePayload - - """ - Unminimizes a comment on an Issue, Commit, Pull Request, or Gist - """ - unminimizeComment(input: UnminimizeCommentInput!): UnminimizeCommentPayload - - """ - Marks a review thread as unresolved. - """ - unresolveReviewThread(input: UnresolveReviewThreadInput!): UnresolveReviewThreadPayload - - """ - Create a new branch protection rule - """ - updateBranchProtectionRule(input: UpdateBranchProtectionRuleInput!): UpdateBranchProtectionRulePayload - - """ - Update a check run - """ - updateCheckRun(input: UpdateCheckRunInput!): UpdateCheckRunPayload - - """ - Modifies the settings of an existing check suite - """ - updateCheckSuitePreferences(input: UpdateCheckSuitePreferencesInput!): UpdateCheckSuitePreferencesPayload - - """ - Updates the role of an enterprise administrator. - """ - updateEnterpriseAdministratorRole(input: UpdateEnterpriseAdministratorRoleInput!): UpdateEnterpriseAdministratorRolePayload - - """ - Sets whether private repository forks are enabled for an enterprise. - """ - updateEnterpriseAllowPrivateRepositoryForkingSetting(input: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput!): UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload - - """ - Sets the default repository permission for organizations in an enterprise. - """ - updateEnterpriseDefaultRepositoryPermissionSetting(input: UpdateEnterpriseDefaultRepositoryPermissionSettingInput!): UpdateEnterpriseDefaultRepositoryPermissionSettingPayload - - """ - Sets whether organization members with admin permissions on a repository can change repository visibility. - """ - updateEnterpriseMembersCanChangeRepositoryVisibilitySetting(input: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput!): UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload - - """ - Sets the members can create repositories setting for an enterprise. - """ - updateEnterpriseMembersCanCreateRepositoriesSetting(input: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput!): UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload - - """ - Sets the members can delete issues setting for an enterprise. - """ - updateEnterpriseMembersCanDeleteIssuesSetting(input: UpdateEnterpriseMembersCanDeleteIssuesSettingInput!): UpdateEnterpriseMembersCanDeleteIssuesSettingPayload - - """ - Sets the members can delete repositories setting for an enterprise. - """ - updateEnterpriseMembersCanDeleteRepositoriesSetting(input: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput!): UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload - - """ - Sets whether members can invite collaborators are enabled for an enterprise. - """ - updateEnterpriseMembersCanInviteCollaboratorsSetting(input: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput!): UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload - - """ - Sets whether or not an organization admin can make purchases. - """ - updateEnterpriseMembersCanMakePurchasesSetting(input: UpdateEnterpriseMembersCanMakePurchasesSettingInput!): UpdateEnterpriseMembersCanMakePurchasesSettingPayload - - """ - Sets the members can update protected branches setting for an enterprise. - """ - updateEnterpriseMembersCanUpdateProtectedBranchesSetting(input: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput!): UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload - - """ - Sets the members can view dependency insights for an enterprise. - """ - updateEnterpriseMembersCanViewDependencyInsightsSetting(input: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput!): UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload - - """ - Sets whether organization projects are enabled for an enterprise. - """ - updateEnterpriseOrganizationProjectsSetting(input: UpdateEnterpriseOrganizationProjectsSettingInput!): UpdateEnterpriseOrganizationProjectsSettingPayload - - """ - Updates an enterprise's profile. - """ - updateEnterpriseProfile(input: UpdateEnterpriseProfileInput!): UpdateEnterpriseProfilePayload - - """ - Sets whether repository projects are enabled for a enterprise. - """ - updateEnterpriseRepositoryProjectsSetting(input: UpdateEnterpriseRepositoryProjectsSettingInput!): UpdateEnterpriseRepositoryProjectsSettingPayload - - """ - Sets whether team discussions are enabled for an enterprise. - """ - updateEnterpriseTeamDiscussionsSetting(input: UpdateEnterpriseTeamDiscussionsSettingInput!): UpdateEnterpriseTeamDiscussionsSettingPayload - - """ - Sets whether two factor authentication is required for all users in an enterprise. - """ - updateEnterpriseTwoFactorAuthenticationRequiredSetting(input: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput!): UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload - - """ - Sets whether an IP allow list is enabled on an owner. - """ - updateIpAllowListEnabledSetting(input: UpdateIpAllowListEnabledSettingInput!): UpdateIpAllowListEnabledSettingPayload - - """ - Updates an IP allow list entry. - """ - updateIpAllowListEntry(input: UpdateIpAllowListEntryInput!): UpdateIpAllowListEntryPayload - - """ - Updates an Issue. - """ - updateIssue(input: UpdateIssueInput!): UpdateIssuePayload - - """ - Updates an IssueComment object. - """ - updateIssueComment(input: UpdateIssueCommentInput!): UpdateIssueCommentPayload - - """ - Updates an existing project. - """ - updateProject(input: UpdateProjectInput!): UpdateProjectPayload - - """ - Updates an existing project card. - """ - updateProjectCard(input: UpdateProjectCardInput!): UpdateProjectCardPayload - - """ - Updates an existing project column. - """ - updateProjectColumn(input: UpdateProjectColumnInput!): UpdateProjectColumnPayload - - """ - Update a pull request - """ - updatePullRequest(input: UpdatePullRequestInput!): UpdatePullRequestPayload - - """ - Updates the body of a pull request review. - """ - updatePullRequestReview(input: UpdatePullRequestReviewInput!): UpdatePullRequestReviewPayload - - """ - Updates a pull request review comment. - """ - updatePullRequestReviewComment(input: UpdatePullRequestReviewCommentInput!): UpdatePullRequestReviewCommentPayload - - """ - Update a Git Ref. - """ - updateRef(input: UpdateRefInput!): UpdateRefPayload - - """ - Update information about a repository. - """ - updateRepository(input: UpdateRepositoryInput!): UpdateRepositoryPayload - - """ - Updates the state for subscribable subjects. - """ - updateSubscription(input: UpdateSubscriptionInput!): UpdateSubscriptionPayload - - """ - Updates a team discussion. - """ - updateTeamDiscussion(input: UpdateTeamDiscussionInput!): UpdateTeamDiscussionPayload - - """ - Updates a discussion comment. - """ - updateTeamDiscussionComment(input: UpdateTeamDiscussionCommentInput!): UpdateTeamDiscussionCommentPayload - - """ - Replaces the repository's topics with the given topics. - """ - updateTopics(input: UpdateTopicsInput!): UpdateTopicsPayload -} - -""" -An object with an ID. -""" -interface Node { - """ - ID of the object. - """ - id: ID! -} - -""" -Metadata for an audit entry with action oauth_application.* -""" -interface OauthApplicationAuditEntryData { - """ - The name of the OAuth Application. - """ - oauthApplicationName: String - - """ - The HTTP path for the OAuth Application - """ - oauthApplicationResourcePath: URI - - """ - The HTTP URL for the OAuth Application - """ - oauthApplicationUrl: URI -} - -""" -Audit log entry for a oauth_application.create event. -""" -type OauthApplicationCreateAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The application URL of the OAuth Application. - """ - applicationUrl: URI - - """ - The callback URL of the OAuth Application. - """ - callbackUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The name of the OAuth Application. - """ - oauthApplicationName: String - - """ - The HTTP path for the OAuth Application - """ - oauthApplicationResourcePath: URI - - """ - The HTTP URL for the OAuth Application - """ - oauthApplicationUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The rate limit of the OAuth Application. - """ - rateLimit: Int - - """ - The state of the OAuth Application. - """ - state: OauthApplicationCreateAuditEntryState - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The state of an OAuth Application when it was created. -""" -enum OauthApplicationCreateAuditEntryState { - """ - The OAuth Application was active and allowed to have OAuth Accesses. - """ - ACTIVE - - """ - The OAuth Application was in the process of being deleted. - """ - PENDING_DELETION - - """ - The OAuth Application was suspended from generating OAuth Accesses due to abuse or security concerns. - """ - SUSPENDED -} - -""" -The corresponding operation type for the action -""" -enum OperationType { - """ - An existing resource was accessed - """ - ACCESS - - """ - A resource performed an authentication event - """ - AUTHENTICATION - - """ - A new resource was created - """ - CREATE - - """ - An existing resource was modified - """ - MODIFY - - """ - An existing resource was removed - """ - REMOVE - - """ - An existing resource was restored - """ - RESTORE - - """ - An existing resource was transferred between multiple resources - """ - TRANSFER -} - -""" -Possible directions in which to order a list of items when provided an `orderBy` argument. -""" -enum OrderDirection { - """ - Specifies an ascending order for a given `orderBy` argument. - """ - ASC - - """ - Specifies a descending order for a given `orderBy` argument. - """ - DESC -} - -""" -Audit log entry for a org.add_billing_manager -""" -type OrgAddBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The email address used to invite a billing manager for the organization. - """ - invitationEmail: String - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.add_member -""" -type OrgAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The permission level of the member added to the organization. - """ - permission: OrgAddMemberAuditEntryPermission - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The permissions available to members on an Organization. -""" -enum OrgAddMemberAuditEntryPermission { - """ - Can read, clone, push, and add collaborators to repositories. - """ - ADMIN - - """ - Can read and clone repositories. - """ - READ -} - -""" -Audit log entry for a org.block_user -""" -type OrgBlockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The blocked user. - """ - blockedUser: User - - """ - The username of the blocked user. - """ - blockedUserName: String - - """ - The HTTP path for the blocked user. - """ - blockedUserResourcePath: URI - - """ - The HTTP URL for the blocked user. - """ - blockedUserUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.config.disable_collaborators_only event. -""" -type OrgConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.config.enable_collaborators_only event. -""" -type OrgConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.create event. -""" -type OrgCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The billing plan for the Organization. - """ - billingPlan: OrgCreateAuditEntryBillingPlan - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The billing plans available for organizations. -""" -enum OrgCreateAuditEntryBillingPlan { - """ - Team Plan - """ - BUSINESS - - """ - Enterprise Cloud Plan - """ - BUSINESS_PLUS - - """ - Free Plan - """ - FREE - - """ - Tiered Per Seat Plan - """ - TIERED_PER_SEAT - - """ - Legacy Unlimited Plan - """ - UNLIMITED -} - -""" -Audit log entry for a org.disable_oauth_app_restrictions event. -""" -type OrgDisableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.disable_saml event. -""" -type OrgDisableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The SAML provider's digest algorithm URL. - """ - digestMethodUrl: URI - id: ID! - - """ - The SAML provider's issuer URL. - """ - issuerUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The SAML provider's signature algorithm URL. - """ - signatureMethodUrl: URI - - """ - The SAML provider's single sign-on URL. - """ - singleSignOnUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.disable_two_factor_requirement event. -""" -type OrgDisableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.enable_oauth_app_restrictions event. -""" -type OrgEnableOauthAppRestrictionsAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.enable_saml event. -""" -type OrgEnableSamlAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The SAML provider's digest algorithm URL. - """ - digestMethodUrl: URI - id: ID! - - """ - The SAML provider's issuer URL. - """ - issuerUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The SAML provider's signature algorithm URL. - """ - signatureMethodUrl: URI - - """ - The SAML provider's single sign-on URL. - """ - singleSignOnUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.enable_two_factor_requirement event. -""" -type OrgEnableTwoFactorRequirementAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.invite_member event. -""" -type OrgInviteMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The email address of the organization invitation. - """ - email: String - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The organization invitation. - """ - organizationInvitation: OrganizationInvitation - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.invite_to_business event. -""" -type OrgInviteToBusinessAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.oauth_app_access_approved event. -""" -type OrgOauthAppAccessApprovedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The name of the OAuth Application. - """ - oauthApplicationName: String - - """ - The HTTP path for the OAuth Application - """ - oauthApplicationResourcePath: URI - - """ - The HTTP URL for the OAuth Application - """ - oauthApplicationUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.oauth_app_access_denied event. -""" -type OrgOauthAppAccessDeniedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The name of the OAuth Application. - """ - oauthApplicationName: String - - """ - The HTTP path for the OAuth Application - """ - oauthApplicationResourcePath: URI - - """ - The HTTP URL for the OAuth Application - """ - oauthApplicationUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.oauth_app_access_requested event. -""" -type OrgOauthAppAccessRequestedAuditEntry implements AuditEntry & Node & OauthApplicationAuditEntryData & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The name of the OAuth Application. - """ - oauthApplicationName: String - - """ - The HTTP path for the OAuth Application - """ - oauthApplicationResourcePath: URI - - """ - The HTTP URL for the OAuth Application - """ - oauthApplicationUrl: URI - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.remove_billing_manager event. -""" -type OrgRemoveBillingManagerAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The reason for the billing manager being removed. - """ - reason: OrgRemoveBillingManagerAuditEntryReason - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The reason a billing manager was removed from an Organization. -""" -enum OrgRemoveBillingManagerAuditEntryReason { - """ - SAML external identity missing - """ - SAML_EXTERNAL_IDENTITY_MISSING - - """ - SAML SSO enforcement requires an external identity - """ - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY - - """ - The organization required 2FA of its billing managers and this user did not have 2FA enabled. - """ - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE -} - -""" -Audit log entry for a org.remove_member event. -""" -type OrgRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The types of membership the member has with the organization. - """ - membershipTypes: [OrgRemoveMemberAuditEntryMembershipType!] - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The reason for the member being removed. - """ - reason: OrgRemoveMemberAuditEntryReason - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The type of membership a user has with an Organization. -""" -enum OrgRemoveMemberAuditEntryMembershipType { - """ - Organization administrators have full access and can change several settings, - including the names of repositories that belong to the Organization and Owners - team membership. In addition, organization admins can delete the organization - and all of its repositories. - """ - ADMIN - - """ - A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. - """ - BILLING_MANAGER - - """ - A direct member is a user that is a member of the Organization. - """ - DIRECT_MEMBER - - """ - An outside collaborator is a person who isn't explicitly a member of the - Organization, but who has Read, Write, or Admin permissions to one or more - repositories in the organization. - """ - OUTSIDE_COLLABORATOR - - """ - An unaffiliated collaborator is a person who is not a member of the - Organization and does not have access to any repositories in the Organization. - """ - UNAFFILIATED -} - -""" -The reason a member was removed from an Organization. -""" -enum OrgRemoveMemberAuditEntryReason { - """ - SAML external identity missing - """ - SAML_EXTERNAL_IDENTITY_MISSING - - """ - SAML SSO enforcement requires an external identity - """ - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY - - """ - User was removed from organization during account recovery - """ - TWO_FACTOR_ACCOUNT_RECOVERY - - """ - The organization required 2FA of its billing managers and this user did not have 2FA enabled. - """ - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE - - """ - User account has been deleted - """ - USER_ACCOUNT_DELETED -} - -""" -Audit log entry for a org.remove_outside_collaborator event. -""" -type OrgRemoveOutsideCollaboratorAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The types of membership the outside collaborator has with the organization. - """ - membershipTypes: [OrgRemoveOutsideCollaboratorAuditEntryMembershipType!] - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The reason for the outside collaborator being removed from the Organization. - """ - reason: OrgRemoveOutsideCollaboratorAuditEntryReason - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The type of membership a user has with an Organization. -""" -enum OrgRemoveOutsideCollaboratorAuditEntryMembershipType { - """ - A billing manager is a user who manages the billing settings for the Organization, such as updating payment information. - """ - BILLING_MANAGER - - """ - An outside collaborator is a person who isn't explicitly a member of the - Organization, but who has Read, Write, or Admin permissions to one or more - repositories in the organization. - """ - OUTSIDE_COLLABORATOR - - """ - An unaffiliated collaborator is a person who is not a member of the - Organization and does not have access to any repositories in the organization. - """ - UNAFFILIATED -} - -""" -The reason an outside collaborator was removed from an Organization. -""" -enum OrgRemoveOutsideCollaboratorAuditEntryReason { - """ - SAML external identity missing - """ - SAML_EXTERNAL_IDENTITY_MISSING - - """ - The organization required 2FA of its billing managers and this user did not have 2FA enabled. - """ - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE -} - -""" -Audit log entry for a org.restore_member event. -""" -type OrgRestoreMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The number of custom email routings for the restored member. - """ - restoredCustomEmailRoutingsCount: Int - - """ - The number of issue assignemnts for the restored member. - """ - restoredIssueAssignmentsCount: Int - - """ - Restored organization membership objects. - """ - restoredMemberships: [OrgRestoreMemberAuditEntryMembership!] - - """ - The number of restored memberships. - """ - restoredMembershipsCount: Int - - """ - The number of repositories of the restored member. - """ - restoredRepositoriesCount: Int - - """ - The number of starred repositories for the restored member. - """ - restoredRepositoryStarsCount: Int - - """ - The number of watched repositories for the restored member. - """ - restoredRepositoryWatchesCount: Int - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Types of memberships that can be restored for an Organization member. -""" -union OrgRestoreMemberAuditEntryMembership = OrgRestoreMemberMembershipOrganizationAuditEntryData | OrgRestoreMemberMembershipRepositoryAuditEntryData | OrgRestoreMemberMembershipTeamAuditEntryData - -""" -Metadata for an organization membership for org.restore_member actions -""" -type OrgRestoreMemberMembershipOrganizationAuditEntryData implements OrganizationAuditEntryData { - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI -} - -""" -Metadata for a repository membership for org.restore_member actions -""" -type OrgRestoreMemberMembershipRepositoryAuditEntryData implements RepositoryAuditEntryData { - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI -} - -""" -Metadata for a team membership for org.restore_member actions -""" -type OrgRestoreMemberMembershipTeamAuditEntryData implements TeamAuditEntryData { - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI -} - -""" -Audit log entry for a org.unblock_user -""" -type OrgUnblockUserAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The user being unblocked by the organization. - """ - blockedUser: User - - """ - The username of the blocked user. - """ - blockedUserName: String - - """ - The HTTP path for the blocked user. - """ - blockedUserResourcePath: URI - - """ - The HTTP URL for the blocked user. - """ - blockedUserUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a org.update_default_repository_permission -""" -type OrgUpdateDefaultRepositoryPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The new default repository permission level for the organization. - """ - permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission - - """ - The former default repository permission level for the organization. - """ - permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The default permission a repository can have in an Organization. -""" -enum OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { - """ - Can read, clone, push, and add collaborators to repositories. - """ - ADMIN - - """ - No default permission value. - """ - NONE - - """ - Can read and clone repositories. - """ - READ - - """ - Can read, clone and push to repositories. - """ - WRITE -} - -""" -Audit log entry for a org.update_member event. -""" -type OrgUpdateMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The new member permission level for the organization. - """ - permission: OrgUpdateMemberAuditEntryPermission - - """ - The former member permission level for the organization. - """ - permissionWas: OrgUpdateMemberAuditEntryPermission - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The permissions available to members on an Organization. -""" -enum OrgUpdateMemberAuditEntryPermission { - """ - Can read, clone, push, and add collaborators to repositories. - """ - ADMIN - - """ - Can read and clone repositories. - """ - READ -} - -""" -Audit log entry for a org.update_member_repository_creation_permission event. -""" -type OrgUpdateMemberRepositoryCreationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - Can members create repositories in the organization. - """ - canCreateRepositories: Boolean - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The permission for visibility level of repositories for this organization. - """ - visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility -} - -""" -The permissions available for repository creation on an Organization. -""" -enum OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility { - """ - All organization members are restricted from creating any repositories. - """ - ALL - - """ - All organization members are restricted from creating internal repositories. - """ - INTERNAL - - """ - All organization members are allowed to create any repositories. - """ - NONE - - """ - All organization members are restricted from creating private repositories. - """ - PRIVATE - - """ - All organization members are restricted from creating private or internal repositories. - """ - PRIVATE_INTERNAL - - """ - All organization members are restricted from creating public repositories. - """ - PUBLIC - - """ - All organization members are restricted from creating public or internal repositories. - """ - PUBLIC_INTERNAL - - """ - All organization members are restricted from creating public or private repositories. - """ - PUBLIC_PRIVATE -} - -""" -Audit log entry for a org.update_member_repository_invitation_permission event. -""" -type OrgUpdateMemberRepositoryInvitationPermissionAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - Can outside collaborators be invited to repositories in the organization. - """ - canInviteOutsideCollaboratorsToRepositories: Boolean - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -An account on GitHub, with one or more owners, that has repositories, members and teams. -""" -type Organization implements Actor & MemberStatusable & Node & PackageOwner & ProfileOwner & ProjectOwner & RepositoryOwner & Sponsorable & UniformResourceLocatable { - """ - Determine if this repository owner has any items that can be pinned to their profile. - """ - anyPinnableItems( - """ - Filter to only a particular kind of pinnable item. - """ - type: PinnableItemType - ): Boolean! - - """ - Audit log entries of the organization - """ - auditLog( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for the returned audit log entries. - """ - orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} - - """ - The query string to filter audit entries - """ - query: String - ): OrganizationAuditEntryConnection! - - """ - A URL pointing to the organization's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The organization's public profile description. - """ - description: String - - """ - The organization's public profile description rendered to HTML. - """ - descriptionHTML: String - - """ - The organization's public email. - """ - email: String - - """ - True if this user/organization has a GitHub Sponsors listing. - """ - hasSponsorsListing: Boolean! - id: ID! - - """ - The interaction ability settings for this organization. - """ - interactionAbility: RepositoryInteractionAbility - - """ - The setting value for whether the organization has an IP allow list enabled. - """ - ipAllowListEnabledSetting: IpAllowListEnabledSettingValue! - - """ - The IP addresses that are allowed to access resources owned by the organization. - """ - ipAllowListEntries( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for IP allow list entries returned. - """ - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} - ): IpAllowListEntryConnection! - - """ - True if the viewer is sponsored by this user/organization. - """ - isSponsoringViewer: Boolean! - - """ - Whether the organization has verified its profile email and website, always false on Enterprise. - """ - isVerified: Boolean! - - """ - Showcases a selection of repositories and gists that the profile owner has - either curated or that have been selected automatically based on popularity. - """ - itemShowcase: ProfileItemShowcase! - - """ - The organization's public profile location. - """ - location: String - - """ - The organization's login name. - """ - login: String! - - """ - Get the status messages members of this entity have set that are either public or visible only to the organization. - """ - memberStatuses( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for user statuses returned from the connection. - """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} - ): UserStatusConnection! - - """ - A list of users who are members of this organization. - """ - membersWithRole( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): OrganizationMemberConnection! - - """ - The organization's public profile name. - """ - name: String - - """ - The HTTP path creating a new team - """ - newTeamResourcePath: URI! - - """ - The HTTP URL creating a new team - """ - newTeamUrl: URI! - - """ - The billing email for the organization. - """ - organizationBillingEmail: String - - """ - A list of packages under the owner. - """ - packages( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Find packages by their names. - """ - names: [String] - - """ - Ordering of the returned packages. - """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - - """ - Filter registry package by type. - """ - packageType: PackageType - - """ - Find packages in a repository by ID. - """ - repositoryId: ID - ): PackageConnection! - - """ - A list of users who have been invited to join this organization. - """ - pendingMembers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - A list of repositories and gists this profile owner can pin to their profile. - """ - pinnableItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinnable items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - A list of repositories and gists this profile owner has pinned to their profile - """ - pinnedItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinned items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - Returns how many more items this profile owner can pin to their profile. - """ - pinnedItemsRemaining: Int! - - """ - Find project by number. - """ - project( - """ - The project number to find. - """ - number: Int! - ): Project - - """ - A list of projects under the owner. - """ - projects( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for projects returned from the connection - """ - orderBy: ProjectOrder - - """ - Query to search projects by, currently only searching by name. - """ - search: String - - """ - A list of states to filter the projects by. - """ - states: [ProjectState!] - ): ProjectConnection! - - """ - The HTTP path listing organization's projects - """ - projectsResourcePath: URI! - - """ - The HTTP URL listing organization's projects - """ - projectsUrl: URI! - - """ - A list of repositories that the user owns. - """ - repositories( - """ - Array of viewer's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - current viewer owns. - """ - affiliations: [RepositoryAffiliation] - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If non-null, filters repositories according to whether they are forks of another repository - """ - isFork: Boolean - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - Array of owner's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - organization or user being viewed owns. - """ - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - Find Repository. - """ - repository( - """ - Name of Repository to find. - """ - name: String! - ): Repository - - """ - When true the organization requires all members, billing managers, and outside - collaborators to enable two-factor authentication. - """ - requiresTwoFactorAuthentication: Boolean - - """ - The HTTP path for this organization. - """ - resourcePath: URI! - - """ - The Organization's SAML identity providers - """ - samlIdentityProvider: OrganizationIdentityProvider - - """ - The GitHub Sponsors listing for this user or organization. - """ - sponsorsListing: SponsorsListing - - """ - This object's sponsorships as the maintainer. - """ - sponsorshipsAsMaintainer( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Whether or not to include private sponsorships in the result set - """ - includePrivate: Boolean = false - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - This object's sponsorships as the sponsor. - """ - sponsorshipsAsSponsor( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - Find an organization's team by its slug. - """ - team( - """ - The name or slug of the team to find. - """ - slug: String! - ): Team - - """ - A list of teams in this organization. - """ - teams( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - If true, filters teams that are mapped to an LDAP Group (Enterprise only) - """ - ldapMapped: Boolean - - """ - Ordering options for teams returned from the connection - """ - orderBy: TeamOrder - - """ - If non-null, filters teams according to privacy - """ - privacy: TeamPrivacy - - """ - If non-null, filters teams with query on team name and team slug - """ - query: String - - """ - If non-null, filters teams according to whether the viewer is an admin or member on team - """ - role: TeamRole - - """ - If true, restrict to only root teams - """ - rootTeamsOnly: Boolean = false - - """ - User logins to filter by - """ - userLogins: [String!] - ): TeamConnection! - - """ - The HTTP path listing organization's teams - """ - teamsResourcePath: URI! - - """ - The HTTP URL listing organization's teams - """ - teamsUrl: URI! - - """ - The organization's Twitter username. - """ - twitterUsername: String - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this organization. - """ - url: URI! - - """ - Organization is adminable by the viewer. - """ - viewerCanAdminister: Boolean! - - """ - Can the viewer pin repositories and gists to the profile? - """ - viewerCanChangePinnedItems: Boolean! - - """ - Can the current viewer create new projects on this owner. - """ - viewerCanCreateProjects: Boolean! - - """ - Viewer can create repositories on this organization - """ - viewerCanCreateRepositories: Boolean! - - """ - Viewer can create teams on this organization. - """ - viewerCanCreateTeams: Boolean! - - """ - Whether or not the viewer is able to sponsor this user/organization. - """ - viewerCanSponsor: Boolean! - - """ - Viewer is an active member of this organization. - """ - viewerIsAMember: Boolean! - - """ - True if the viewer is sponsoring this user/organization. - """ - viewerIsSponsoring: Boolean! - - """ - The organization's public profile URL. - """ - websiteUrl: URI -} - -""" -An audit entry in an organization audit log. -""" -union OrganizationAuditEntry = MembersCanDeleteReposClearAuditEntry | MembersCanDeleteReposDisableAuditEntry | MembersCanDeleteReposEnableAuditEntry | OauthApplicationCreateAuditEntry | OrgAddBillingManagerAuditEntry | OrgAddMemberAuditEntry | OrgBlockUserAuditEntry | OrgConfigDisableCollaboratorsOnlyAuditEntry | OrgConfigEnableCollaboratorsOnlyAuditEntry | OrgCreateAuditEntry | OrgDisableOauthAppRestrictionsAuditEntry | OrgDisableSamlAuditEntry | OrgDisableTwoFactorRequirementAuditEntry | OrgEnableOauthAppRestrictionsAuditEntry | OrgEnableSamlAuditEntry | OrgEnableTwoFactorRequirementAuditEntry | OrgInviteMemberAuditEntry | OrgInviteToBusinessAuditEntry | OrgOauthAppAccessApprovedAuditEntry | OrgOauthAppAccessDeniedAuditEntry | OrgOauthAppAccessRequestedAuditEntry | OrgRemoveBillingManagerAuditEntry | OrgRemoveMemberAuditEntry | OrgRemoveOutsideCollaboratorAuditEntry | OrgRestoreMemberAuditEntry | OrgUnblockUserAuditEntry | OrgUpdateDefaultRepositoryPermissionAuditEntry | OrgUpdateMemberAuditEntry | OrgUpdateMemberRepositoryCreationPermissionAuditEntry | OrgUpdateMemberRepositoryInvitationPermissionAuditEntry | PrivateRepositoryForkingDisableAuditEntry | PrivateRepositoryForkingEnableAuditEntry | RepoAccessAuditEntry | RepoAddMemberAuditEntry | RepoAddTopicAuditEntry | RepoArchivedAuditEntry | RepoChangeMergeSettingAuditEntry | RepoConfigDisableAnonymousGitAccessAuditEntry | RepoConfigDisableCollaboratorsOnlyAuditEntry | RepoConfigDisableContributorsOnlyAuditEntry | RepoConfigDisableSockpuppetDisallowedAuditEntry | RepoConfigEnableAnonymousGitAccessAuditEntry | RepoConfigEnableCollaboratorsOnlyAuditEntry | RepoConfigEnableContributorsOnlyAuditEntry | RepoConfigEnableSockpuppetDisallowedAuditEntry | RepoConfigLockAnonymousGitAccessAuditEntry | RepoConfigUnlockAnonymousGitAccessAuditEntry | RepoCreateAuditEntry | RepoDestroyAuditEntry | RepoRemoveMemberAuditEntry | RepoRemoveTopicAuditEntry | RepositoryVisibilityChangeDisableAuditEntry | RepositoryVisibilityChangeEnableAuditEntry | TeamAddMemberAuditEntry | TeamAddRepositoryAuditEntry | TeamChangeParentTeamAuditEntry | TeamRemoveMemberAuditEntry | TeamRemoveRepositoryAuditEntry - -""" -The connection type for OrganizationAuditEntry. -""" -type OrganizationAuditEntryConnection { - """ - A list of edges. - """ - edges: [OrganizationAuditEntryEdge] - - """ - A list of nodes. - """ - nodes: [OrganizationAuditEntry] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Metadata for an audit entry with action org.* -""" -interface OrganizationAuditEntryData { - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI -} - -""" -An edge in a connection. -""" -type OrganizationAuditEntryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: OrganizationAuditEntry -} - -""" -The connection type for Organization. -""" -type OrganizationConnection { - """ - A list of edges. - """ - edges: [OrganizationEdge] - - """ - A list of nodes. - """ - nodes: [Organization] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type OrganizationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Organization -} - -""" -An Identity Provider configured to provision SAML and SCIM identities for Organizations -""" -type OrganizationIdentityProvider implements Node { - """ - The digest algorithm used to sign SAML requests for the Identity Provider. - """ - digestMethod: URI - - """ - External Identities provisioned by this Identity Provider - """ - externalIdentities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ExternalIdentityConnection! - id: ID! - - """ - The x509 certificate used by the Identity Provder to sign assertions and responses. - """ - idpCertificate: X509Certificate - - """ - The Issuer Entity ID for the SAML Identity Provider - """ - issuer: String - - """ - Organization this Identity Provider belongs to - """ - organization: Organization - - """ - The signature algorithm used to sign SAML requests for the Identity Provider. - """ - signatureMethod: URI - - """ - The URL endpoint for the Identity Provider's SAML SSO. - """ - ssoUrl: URI -} - -""" -An Invitation for a user to an organization. -""" -type OrganizationInvitation implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The email address of the user invited to the organization. - """ - email: String - id: ID! - - """ - The type of invitation that was sent (e.g. email, user). - """ - invitationType: OrganizationInvitationType! - - """ - The user who was invited to the organization. - """ - invitee: User - - """ - The user who created the invitation. - """ - inviter: User! - - """ - The organization the invite is for - """ - organization: Organization! - - """ - The user's pending role in the organization (e.g. member, owner). - """ - role: OrganizationInvitationRole! -} - -""" -The connection type for OrganizationInvitation. -""" -type OrganizationInvitationConnection { - """ - A list of edges. - """ - edges: [OrganizationInvitationEdge] - - """ - A list of nodes. - """ - nodes: [OrganizationInvitation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type OrganizationInvitationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: OrganizationInvitation -} - -""" -The possible organization invitation roles. -""" -enum OrganizationInvitationRole { - """ - The user is invited to be an admin of the organization. - """ - ADMIN - - """ - The user is invited to be a billing manager of the organization. - """ - BILLING_MANAGER - - """ - The user is invited to be a direct member of the organization. - """ - DIRECT_MEMBER - - """ - The user's previous role will be reinstated. - """ - REINSTATE -} - -""" -The possible organization invitation types. -""" -enum OrganizationInvitationType { - """ - The invitation was to an email address. - """ - EMAIL - - """ - The invitation was to an existing user. - """ - USER -} - -""" -The connection type for User. -""" -type OrganizationMemberConnection { - """ - A list of edges. - """ - edges: [OrganizationMemberEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a user within an organization. -""" -type OrganizationMemberEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. - """ - hasTwoFactorEnabled: Boolean - - """ - The item at the end of the edge. - """ - node: User - - """ - The role this user has in the organization. - """ - role: OrganizationMemberRole -} - -""" -The possible roles within an organization for its members. -""" -enum OrganizationMemberRole { - """ - The user is an administrator of the organization. - """ - ADMIN - - """ - The user is a member of the organization. - """ - MEMBER -} - -""" -The possible values for the members can create repositories setting on an organization. -""" -enum OrganizationMembersCanCreateRepositoriesSettingValue { - """ - Members will be able to create public and private repositories. - """ - ALL - - """ - Members will not be able to create public or private repositories. - """ - DISABLED - - """ - Members will be able to create only private repositories. - """ - PRIVATE -} - -""" -Ordering options for organization connections. -""" -input OrganizationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order organizations by. - """ - field: OrganizationOrderField! -} - -""" -Properties by which organization connections can be ordered. -""" -enum OrganizationOrderField { - """ - Order organizations by creation time - """ - CREATED_AT - - """ - Order organizations by login - """ - LOGIN -} - -""" -An organization teams hovercard context -""" -type OrganizationTeamsHovercardContext implements HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! - - """ - Teams in this organization the user is a member of that are relevant - """ - relevantTeams( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): TeamConnection! - - """ - The path for the full team list for this user - """ - teamsResourcePath: URI! - - """ - The URL for the full team list for this user - """ - teamsUrl: URI! - - """ - The total number of teams the user is on in the organization - """ - totalTeamCount: Int! -} - -""" -An organization list hovercard context -""" -type OrganizationsHovercardContext implements HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! - - """ - Organizations this user is a member of that are relevant - """ - relevantOrganizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): OrganizationConnection! - - """ - The total number of organizations this user is in - """ - totalOrganizationCount: Int! -} - -""" -Information for an uploaded package. -""" -type Package implements Node { - id: ID! - - """ - Find the latest version for the package. - """ - latestVersion: PackageVersion - - """ - Identifies the name of the package. - """ - name: String! - - """ - Identifies the type of the package. - """ - packageType: PackageType! - - """ - The repository this package belongs to. - """ - repository: Repository - - """ - Statistics about package activity. - """ - statistics: PackageStatistics - - """ - Find package version by version string. - """ - version( - """ - The package version. - """ - version: String! - ): PackageVersion - - """ - list of versions for this package - """ - versions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering of the returned packages. - """ - orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC} - ): PackageVersionConnection! -} - -""" -The connection type for Package. -""" -type PackageConnection { - """ - A list of edges. - """ - edges: [PackageEdge] - - """ - A list of nodes. - """ - nodes: [Package] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PackageEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Package -} - -""" -A file in a package version. -""" -type PackageFile implements Node { - id: ID! - - """ - MD5 hash of the file. - """ - md5: String - - """ - Name of the file. - """ - name: String! - - """ - The package version this file belongs to. - """ - packageVersion: PackageVersion - - """ - SHA1 hash of the file. - """ - sha1: String - - """ - SHA256 hash of the file. - """ - sha256: String - - """ - Size of the file in bytes. - """ - size: Int - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - URL to download the asset. - """ - url: URI -} - -""" -The connection type for PackageFile. -""" -type PackageFileConnection { - """ - A list of edges. - """ - edges: [PackageFileEdge] - - """ - A list of nodes. - """ - nodes: [PackageFile] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PackageFileEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PackageFile -} - -""" -Ways in which lists of package files can be ordered upon return. -""" -input PackageFileOrder { - """ - The direction in which to order package files by the specified field. - """ - direction: OrderDirection - - """ - The field in which to order package files by. - """ - field: PackageFileOrderField -} - -""" -Properties by which package file connections can be ordered. -""" -enum PackageFileOrderField { - """ - Order package files by creation time - """ - CREATED_AT -} - -""" -Ways in which lists of packages can be ordered upon return. -""" -input PackageOrder { - """ - The direction in which to order packages by the specified field. - """ - direction: OrderDirection - - """ - The field in which to order packages by. - """ - field: PackageOrderField -} - -""" -Properties by which package connections can be ordered. -""" -enum PackageOrderField { - """ - Order packages by creation time - """ - CREATED_AT -} - -""" -Represents an owner of a package. -""" -interface PackageOwner { - id: ID! - - """ - A list of packages under the owner. - """ - packages( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Find packages by their names. - """ - names: [String] - - """ - Ordering of the returned packages. - """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - - """ - Filter registry package by type. - """ - packageType: PackageType - - """ - Find packages in a repository by ID. - """ - repositoryId: ID - ): PackageConnection! -} - -""" -Represents a object that contains package activity statistics such as downloads. -""" -type PackageStatistics { - """ - Number of times the package was downloaded since it was created. - """ - downloadsTotalCount: Int! -} - -""" -A version tag contains the mapping between a tag name and a version. -""" -type PackageTag implements Node { - id: ID! - - """ - Identifies the tag name of the version. - """ - name: String! - - """ - Version that the tag is associated with. - """ - version: PackageVersion -} - -""" -The possible types of a package. -""" -enum PackageType { - """ - A debian package. - """ - DEBIAN - - """ - A docker image. - """ - DOCKER - - """ - A maven package. - """ - MAVEN - - """ - An npm package. - """ - NPM - - """ - A nuget package. - """ - NUGET - - """ - A python package. - """ - PYPI - - """ - A rubygems package. - """ - RUBYGEMS -} - -""" -Information about a specific package version. -""" -type PackageVersion implements Node { - """ - List of files associated with this package version - """ - files( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering of the returned package files. - """ - orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC} - ): PackageFileConnection! - id: ID! - - """ - The package associated with this version. - """ - package: Package - - """ - The platform this version was built for. - """ - platform: String - - """ - Whether or not this version is a pre-release. - """ - preRelease: Boolean! - - """ - The README of this package version. - """ - readme: String - - """ - The release associated with this package version. - """ - release: Release - - """ - Statistics about package activity. - """ - statistics: PackageVersionStatistics - - """ - The package version summary. - """ - summary: String - - """ - The version string. - """ - version: String! -} - -""" -The connection type for PackageVersion. -""" -type PackageVersionConnection { - """ - A list of edges. - """ - edges: [PackageVersionEdge] - - """ - A list of nodes. - """ - nodes: [PackageVersion] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PackageVersionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PackageVersion -} - -""" -Ways in which lists of package versions can be ordered upon return. -""" -input PackageVersionOrder { - """ - The direction in which to order package versions by the specified field. - """ - direction: OrderDirection - - """ - The field in which to order package versions by. - """ - field: PackageVersionOrderField -} - -""" -Properties by which package version connections can be ordered. -""" -enum PackageVersionOrderField { - """ - Order package versions by creation time - """ - CREATED_AT -} - -""" -Represents a object that contains package version activity statistics such as downloads. -""" -type PackageVersionStatistics { - """ - Number of times the package was downloaded since it was created. - """ - downloadsTotalCount: Int! -} - -""" -Information about pagination in a connection. -""" -type PageInfo { - """ - When paginating forwards, the cursor to continue. - """ - endCursor: String - - """ - When paginating forwards, are there more items? - """ - hasNextPage: Boolean! - - """ - When paginating backwards, are there more items? - """ - hasPreviousPage: Boolean! - - """ - When paginating backwards, the cursor to continue. - """ - startCursor: String -} - -""" -Types that can grant permissions on a repository to a user -""" -union PermissionGranter = Organization | Repository | Team - -""" -A level of permission and source for a user's access to a repository. -""" -type PermissionSource { - """ - The organization the repository belongs to. - """ - organization: Organization! - - """ - The level of access this source has granted to the user. - """ - permission: DefaultRepositoryPermissionField! - - """ - The source of this permission. - """ - source: PermissionGranter! -} - -""" -Types that can be pinned to a profile page. -""" -union PinnableItem = Gist | Repository - -""" -The connection type for PinnableItem. -""" -type PinnableItemConnection { - """ - A list of edges. - """ - edges: [PinnableItemEdge] - - """ - A list of nodes. - """ - nodes: [PinnableItem] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PinnableItemEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PinnableItem -} - -""" -Represents items that can be pinned to a profile page or dashboard. -""" -enum PinnableItemType { - """ - A gist. - """ - GIST - - """ - An issue. - """ - ISSUE - - """ - An organization. - """ - ORGANIZATION - - """ - A project. - """ - PROJECT - - """ - A pull request. - """ - PULL_REQUEST - - """ - A repository. - """ - REPOSITORY - - """ - A team. - """ - TEAM - - """ - A user. - """ - USER -} - -""" -Represents a 'pinned' event on a given issue or pull request. -""" -type PinnedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the issue associated with the event. - """ - issue: Issue! -} - -""" -An ISO-8601 encoded UTC date string with millisecond precison. -""" -scalar PreciseDateTime - -""" -Audit log entry for a private_repository_forking.disable event. -""" -type PrivateRepositoryForkingDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a private_repository_forking.enable event. -""" -type PrivateRepositoryForkingEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -A curatable list of repositories relating to a repository owner, which defaults -to showing the most popular repositories they own. -""" -type ProfileItemShowcase { - """ - Whether or not the owner has pinned any repositories or gists. - """ - hasPinnedItems: Boolean! - - """ - The repositories and gists in the showcase. If the profile owner has any - pinned items, those will be returned. Otherwise, the profile owner's popular - repositories will be returned. - """ - items( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PinnableItemConnection! -} - -""" -Represents any entity on GitHub that has a profile page. -""" -interface ProfileOwner { - """ - Determine if this repository owner has any items that can be pinned to their profile. - """ - anyPinnableItems( - """ - Filter to only a particular kind of pinnable item. - """ - type: PinnableItemType - ): Boolean! - - """ - The public profile email. - """ - email: String - id: ID! - - """ - Showcases a selection of repositories and gists that the profile owner has - either curated or that have been selected automatically based on popularity. - """ - itemShowcase: ProfileItemShowcase! - - """ - The public profile location. - """ - location: String - - """ - The username used to login. - """ - login: String! - - """ - The public profile name. - """ - name: String - - """ - A list of repositories and gists this profile owner can pin to their profile. - """ - pinnableItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinnable items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - A list of repositories and gists this profile owner has pinned to their profile - """ - pinnedItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinned items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - Returns how many more items this profile owner can pin to their profile. - """ - pinnedItemsRemaining: Int! - - """ - Can the viewer pin repositories and gists to the profile? - """ - viewerCanChangePinnedItems: Boolean! - - """ - The public profile website URL. - """ - websiteUrl: URI -} - -""" -Projects manage issues, pull requests and notes within a project owner. -""" -type Project implements Closable & Node & Updatable { - """ - The project's description body. - """ - body: String - - """ - The projects description body rendered to HTML. - """ - bodyHTML: HTML! - - """ - `true` if the object is closed (definition of closed may depend on type) - """ - closed: Boolean! - - """ - Identifies the date and time when the object was closed. - """ - closedAt: DateTime - - """ - List of columns in the project - """ - columns( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ProjectColumnConnection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The actor who originally created the project. - """ - creator: Actor - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - The project's name. - """ - name: String! - - """ - The project's number. - """ - number: Int! - - """ - The project's owner. Currently limited to repositories, organizations, and users. - """ - owner: ProjectOwner! - - """ - List of pending cards in this project - """ - pendingCards( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - A list of archived states to filter the cards by - """ - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ProjectCardConnection! - - """ - Project progress details. - """ - progress: ProjectProgress! - - """ - The HTTP path for this project - """ - resourcePath: URI! - - """ - Whether the project is open or closed. - """ - state: ProjectState! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this project - """ - url: URI! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! -} - -""" -A card in a project. -""" -type ProjectCard implements Node { - """ - The project column this card is associated under. A card may only belong to one - project column at a time. The column field will be null if the card is created - in a pending state and has yet to be associated with a column. Once cards are - associated with a column, they will not become pending in the future. - """ - column: ProjectColumn - - """ - The card content item - """ - content: ProjectCardItem - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The actor who created this card - """ - creator: Actor - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - Whether the card is archived - """ - isArchived: Boolean! - - """ - The card note - """ - note: String - - """ - The project that contains this card. - """ - project: Project! - - """ - The HTTP path for this card - """ - resourcePath: URI! - - """ - The state of ProjectCard - """ - state: ProjectCardState - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this card - """ - url: URI! -} - -""" -The possible archived states of a project card. -""" -enum ProjectCardArchivedState { - """ - A project card that is archived - """ - ARCHIVED - - """ - A project card that is not archived - """ - NOT_ARCHIVED -} - -""" -The connection type for ProjectCard. -""" -type ProjectCardConnection { - """ - A list of edges. - """ - edges: [ProjectCardEdge] - - """ - A list of nodes. - """ - nodes: [ProjectCard] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ProjectCardEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ProjectCard -} - -""" -Types that can be inside Project Cards. -""" -union ProjectCardItem = Issue | PullRequest - -""" -Various content states of a ProjectCard -""" -enum ProjectCardState { - """ - The card has content only. - """ - CONTENT_ONLY - - """ - The card has a note only. - """ - NOTE_ONLY - - """ - The card is redacted. - """ - REDACTED -} - -""" -A column inside a project. -""" -type ProjectColumn implements Node { - """ - List of cards in the column - """ - cards( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - A list of archived states to filter the cards by - """ - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ProjectCardConnection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - The project column's name. - """ - name: String! - - """ - The project that contains this column. - """ - project: Project! - - """ - The semantic purpose of the column - """ - purpose: ProjectColumnPurpose - - """ - The HTTP path for this project column - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this project column - """ - url: URI! -} - -""" -The connection type for ProjectColumn. -""" -type ProjectColumnConnection { - """ - A list of edges. - """ - edges: [ProjectColumnEdge] - - """ - A list of nodes. - """ - nodes: [ProjectColumn] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ProjectColumnEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ProjectColumn -} - -""" -The semantic purpose of the column - todo, in progress, or done. -""" -enum ProjectColumnPurpose { - """ - The column contains cards which are complete - """ - DONE - - """ - The column contains cards which are currently being worked on - """ - IN_PROGRESS - - """ - The column contains cards still to be worked on - """ - TODO -} - -""" -A list of projects associated with the owner. -""" -type ProjectConnection { - """ - A list of edges. - """ - edges: [ProjectEdge] - - """ - A list of nodes. - """ - nodes: [Project] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ProjectEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Project -} - -""" -Ways in which lists of projects can be ordered upon return. -""" -input ProjectOrder { - """ - The direction in which to order projects by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order projects by. - """ - field: ProjectOrderField! -} - -""" -Properties by which project connections can be ordered. -""" -enum ProjectOrderField { - """ - Order projects by creation time - """ - CREATED_AT - - """ - Order projects by name - """ - NAME - - """ - Order projects by update time - """ - UPDATED_AT -} - -""" -Represents an owner of a Project. -""" -interface ProjectOwner { - id: ID! - - """ - Find project by number. - """ - project( - """ - The project number to find. - """ - number: Int! - ): Project - - """ - A list of projects under the owner. - """ - projects( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for projects returned from the connection - """ - orderBy: ProjectOrder - - """ - Query to search projects by, currently only searching by name. - """ - search: String - - """ - A list of states to filter the projects by. - """ - states: [ProjectState!] - ): ProjectConnection! - - """ - The HTTP path listing owners projects - """ - projectsResourcePath: URI! - - """ - The HTTP URL listing owners projects - """ - projectsUrl: URI! - - """ - Can the current viewer create new projects on this owner. - """ - viewerCanCreateProjects: Boolean! -} - -""" -Project progress stats. -""" -type ProjectProgress { - """ - The number of done cards. - """ - doneCount: Int! - - """ - The percentage of done cards. - """ - donePercentage: Float! - - """ - Whether progress tracking is enabled and cards with purpose exist for this project - """ - enabled: Boolean! - - """ - The number of in-progress cards. - """ - inProgressCount: Int! - - """ - The percentage of in-progress cards. - """ - inProgressPercentage: Float! - - """ - The number of to do cards. - """ - todoCount: Int! - - """ - The percentage of to do cards. - """ - todoPercentage: Float! -} - -""" -State of the project; either 'open' or 'closed' -""" -enum ProjectState { - """ - The project is closed. - """ - CLOSED - - """ - The project is open. - """ - OPEN -} - -""" -GitHub-provided templates for Projects -""" -enum ProjectTemplate { - """ - Create a board with v2 triggers to automatically move cards across To do, In progress and Done columns. - """ - AUTOMATED_KANBAN_V2 - - """ - Create a board with triggers to automatically move cards across columns with review automation. - """ - AUTOMATED_REVIEWS_KANBAN - - """ - Create a board with columns for To do, In progress and Done. - """ - BASIC_KANBAN - - """ - Create a board to triage and prioritize bugs with To do, priority, and Done columns. - """ - BUG_TRIAGE -} - -""" -A user's public key. -""" -type PublicKey implements Node { - """ - The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. - """ - accessedAt: DateTime - - """ - Identifies the date and time when the key was created. Keys created before - March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. - """ - createdAt: DateTime - - """ - The fingerprint for this PublicKey. - """ - fingerprint: String! - id: ID! - - """ - Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. - """ - isReadOnly: Boolean - - """ - The public key string. - """ - key: String! - - """ - Identifies the date and time when the key was updated. Keys created before - March 5th, 2014 may have inaccurate values. Values will be null for keys not - owned by the user. - """ - updatedAt: DateTime -} - -""" -The connection type for PublicKey. -""" -type PublicKeyConnection { - """ - A list of edges. - """ - edges: [PublicKeyEdge] - - """ - A list of nodes. - """ - nodes: [PublicKey] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PublicKeyEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PublicKey -} - -""" -A repository pull request. -""" -type PullRequest implements Assignable & Closable & Comment & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { - """ - Reason that the conversation was locked. - """ - activeLockReason: LockReason - - """ - The number of additions in this pull request. - """ - additions: Int! - - """ - A list of Users assigned to this object. - """ - assignees( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - Identifies the base Ref associated with the pull request. - """ - baseRef: Ref - - """ - Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. - """ - baseRefName: String! - - """ - Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted. - """ - baseRefOid: GitObjectID! - - """ - The repository associated with this pull request's base Ref. - """ - baseRepository: Repository - - """ - The body as Markdown. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - The number of changed files in this pull request. - """ - changedFiles: Int! - - """ - The HTTP path for the checks of this pull request. - """ - checksResourcePath: URI! - - """ - The HTTP URL for the checks of this pull request. - """ - checksUrl: URI! - - """ - `true` if the pull request is closed - """ - closed: Boolean! - - """ - Identifies the date and time when the object was closed. - """ - closedAt: DateTime - - """ - A list of comments associated with the pull request. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issue comments returned from the connection. - """ - orderBy: IssueCommentOrder - ): IssueCommentConnection! - - """ - A list of commits present in this pull request's head branch not present in the base branch. - """ - commits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PullRequestCommitConnection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The number of deletions in this pull request. - """ - deletions: Int! - - """ - The actor who edited this pull request's body. - """ - editor: Actor - - """ - Lists the files changed within this pull request. - """ - files( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PullRequestChangedFileConnection - - """ - Identifies the head Ref associated with the pull request. - """ - headRef: Ref - - """ - Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. - """ - headRefName: String! - - """ - Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. - """ - headRefOid: GitObjectID! - - """ - The repository associated with this pull request's head Ref. - """ - headRepository: Repository - - """ - The owner of the repository associated with this pull request's head Ref. - """ - headRepositoryOwner: RepositoryOwner - - """ - The hovercard information for this issue - """ - hovercard( - """ - Whether or not to include notification contexts - """ - includeNotificationContexts: Boolean = true - ): Hovercard! - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - The head and base repositories are different. - """ - isCrossRepository: Boolean! - - """ - Identifies if the pull request is a draft. - """ - isDraft: Boolean! - - """ - Is this pull request read by the viewer - """ - isReadByViewer: Boolean - - """ - A list of labels associated with the object. - """ - labels( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for labels returned from the connection. - """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - ): LabelConnection - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - A list of latest reviews per user associated with the pull request. - """ - latestOpinionatedReviews( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Only return reviews from user who have write access to the repository - """ - writersOnly: Boolean = false - ): PullRequestReviewConnection - - """ - A list of latest reviews per user associated with the pull request that are not also pending review. - """ - latestReviews( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PullRequestReviewConnection - - """ - `true` if the pull request is locked - """ - locked: Boolean! - - """ - Indicates whether maintainers can modify the pull request. - """ - maintainerCanModify: Boolean! - - """ - The commit that was created when this pull request was merged. - """ - mergeCommit: Commit - - """ - Whether or not the pull request can be merged based on the existence of merge conflicts. - """ - mergeable: MergeableState! - - """ - Whether or not the pull request was merged. - """ - merged: Boolean! - - """ - The date and time that the pull request was merged. - """ - mergedAt: DateTime - - """ - The actor who merged the pull request. - """ - mergedBy: Actor - - """ - Identifies the milestone associated with the pull request. - """ - milestone: Milestone - - """ - Identifies the pull request number. - """ - number: Int! - - """ - A list of Users that are participating in the Pull Request conversation. - """ - participants( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! - - """ - The permalink to the pull request. - """ - permalink: URI! - - """ - The commit that GitHub automatically generated to test if this pull request - could be merged. This field will not return a value if the pull request is - merged, or if the test merge commit is still being generated. See the - `mergeable` field for more details on the mergeability of the pull request. - """ - potentialMergeCommit: Commit - - """ - List of project cards associated with this pull request. - """ - projectCards( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - A list of archived states to filter the cards by - """ - archivedStates: [ProjectCardArchivedState] = [ARCHIVED, NOT_ARCHIVED] - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ProjectCardConnection! - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path for this pull request. - """ - resourcePath: URI! - - """ - The HTTP path for reverting this pull request. - """ - revertResourcePath: URI! - - """ - The HTTP URL for reverting this pull request. - """ - revertUrl: URI! - - """ - The current status of this pull request with respect to code review. - """ - reviewDecision: PullRequestReviewDecision - - """ - A list of review requests associated with the pull request. - """ - reviewRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ReviewRequestConnection - - """ - The list of all review threads for this pull request. - """ - reviewThreads( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PullRequestReviewThreadConnection! - - """ - A list of reviews associated with the pull request. - """ - reviews( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Filter by author of the review. - """ - author: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - A list of states to filter the reviews. - """ - states: [PullRequestReviewState!] - ): PullRequestReviewConnection - - """ - Identifies the state of the pull request. - """ - state: PullRequestState! - - """ - A list of reviewer suggestions based on commit history and past review comments. - """ - suggestedReviewers: [SuggestedReviewer]! - - """ - A list of events, comments, commits, etc. associated with the pull request. - """ - timeline( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows filtering timeline events by a `since` timestamp. - """ - since: DateTime - ): PullRequestTimelineConnection! @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") - - """ - A list of events, comments, commits, etc. associated with the pull request. - """ - timelineItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Filter timeline items by type. - """ - itemTypes: [PullRequestTimelineItemsItemType!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter timeline items by a `since` timestamp. - """ - since: DateTime - - """ - Skips the first _n_ elements in the list. - """ - skip: Int - ): PullRequestTimelineItemsConnection! - - """ - Identifies the pull request title. - """ - title: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this pull request. - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Whether or not the viewer can apply suggestion. - """ - viewerCanApplySuggestion: Boolean! - - """ - Check if the viewer can restore the deleted head ref. - """ - viewerCanDeleteHeadRef: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! - - """ - The merge body text for the viewer and method. - """ - viewerMergeBodyText( - """ - The merge method for the message. - """ - mergeType: PullRequestMergeMethod - ): String! - - """ - The merge headline text for the viewer and method. - """ - viewerMergeHeadlineText( - """ - The merge method for the message. - """ - mergeType: PullRequestMergeMethod - ): String! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState -} - -""" -A file changed in a pull request. -""" -type PullRequestChangedFile { - """ - The number of additions to the file. - """ - additions: Int! - - """ - The number of deletions to the file. - """ - deletions: Int! - - """ - The path of the file. - """ - path: String! - - """ - The state of the file for the viewer. - """ - viewerViewedState: FileViewedState! -} - -""" -The connection type for PullRequestChangedFile. -""" -type PullRequestChangedFileConnection { - """ - A list of edges. - """ - edges: [PullRequestChangedFileEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestChangedFile] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PullRequestChangedFileEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestChangedFile -} - -""" -Represents a Git commit part of a pull request. -""" -type PullRequestCommit implements Node & UniformResourceLocatable { - """ - The Git commit object - """ - commit: Commit! - id: ID! - - """ - The pull request this commit belongs to - """ - pullRequest: PullRequest! - - """ - The HTTP path for this pull request commit - """ - resourcePath: URI! - - """ - The HTTP URL for this pull request commit - """ - url: URI! -} - -""" -Represents a commit comment thread part of a pull request. -""" -type PullRequestCommitCommentThread implements Node & RepositoryNode { - """ - The comments that exist in this thread. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitCommentConnection! - - """ - The commit the comments were made on. - """ - commit: Commit! - id: ID! - - """ - The file the comments were made on. - """ - path: String - - """ - The position in the diff for the commit that the comment was made on. - """ - position: Int - - """ - The pull request this commit comment thread belongs to - """ - pullRequest: PullRequest! - - """ - The repository associated with this node. - """ - repository: Repository! -} - -""" -The connection type for PullRequestCommit. -""" -type PullRequestCommitConnection { - """ - A list of edges. - """ - edges: [PullRequestCommitEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestCommit] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PullRequestCommitEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestCommit -} - -""" -The connection type for PullRequest. -""" -type PullRequestConnection { - """ - A list of edges. - """ - edges: [PullRequestEdge] - - """ - A list of nodes. - """ - nodes: [PullRequest] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -This aggregates pull requests opened by a user within one repository. -""" -type PullRequestContributionsByRepository { - """ - The pull request contributions. - """ - contributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedPullRequestContributionConnection! - - """ - The repository in which the pull requests were opened. - """ - repository: Repository! -} - -""" -An edge in a connection. -""" -type PullRequestEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequest -} - -""" -Represents available types of methods to use when merging a pull request. -""" -enum PullRequestMergeMethod { - """ - Add all commits from the head branch to the base branch with a merge commit. - """ - MERGE - - """ - Add all commits from the head branch onto the base branch individually. - """ - REBASE - - """ - Combine all commits from the head branch into a single commit in the base branch. - """ - SQUASH -} - -""" -Ways in which lists of issues can be ordered upon return. -""" -input PullRequestOrder { - """ - The direction in which to order pull requests by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order pull requests by. - """ - field: PullRequestOrderField! -} - -""" -Properties by which pull_requests connections can be ordered. -""" -enum PullRequestOrderField { - """ - Order pull_requests by creation time - """ - CREATED_AT - - """ - Order pull_requests by update time - """ - UPDATED_AT -} - -""" -A review object for a given pull request. -""" -type PullRequestReview implements Comment & Deletable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - Indicates whether the author of this review has push access to the repository. - """ - authorCanPushToRepository: Boolean! - - """ - Identifies the pull request review body. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body of this review rendered as plain text. - """ - bodyText: String! - - """ - A list of review comments for the current pull request review. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PullRequestReviewCommentConnection! - - """ - Identifies the commit associated with this pull request review. - """ - commit: Commit - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - A list of teams that this review was made on behalf of. - """ - onBehalfOf( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): TeamConnection! - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - Identifies the pull request associated with this pull request review. - """ - pullRequest: PullRequest! - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path permalink for this PullRequestReview. - """ - resourcePath: URI! - - """ - Identifies the current state of the pull request review. - """ - state: PullRequestReviewState! - - """ - Identifies when the Pull Request Review was submitted - """ - submittedAt: DateTime - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL permalink for this PullRequestReview. - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -A review comment associated with a given repository pull request. -""" -type PullRequestReviewComment implements Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the subject of the comment. - """ - authorAssociation: CommentAuthorAssociation! - - """ - The comment body of this review comment. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The comment body of this review comment rendered as plain text. - """ - bodyText: String! - - """ - Identifies the commit associated with the comment. - """ - commit: Commit - - """ - Identifies when the comment was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The diff hunk to which the comment applies. - """ - diffHunk: String! - - """ - Identifies when the comment was created in a draft state. - """ - draftedAt: DateTime! - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Returns whether or not a comment has been minimized. - """ - isMinimized: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Returns why the comment was minimized. - """ - minimizedReason: String - - """ - Identifies the original commit associated with the comment. - """ - originalCommit: Commit - - """ - The original line index in the diff to which the comment applies. - """ - originalPosition: Int! - - """ - Identifies when the comment body is outdated - """ - outdated: Boolean! - - """ - The path to which the comment applies. - """ - path: String! - - """ - The line index in the diff to which the comment applies. - """ - position: Int - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - The pull request associated with this review comment. - """ - pullRequest: PullRequest! - - """ - The pull request review associated with this review comment. - """ - pullRequestReview: PullRequestReview - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The comment this is a reply to. - """ - replyTo: PullRequestReviewComment - - """ - The repository associated with this node. - """ - repository: Repository! - - """ - The HTTP path permalink for this review comment. - """ - resourcePath: URI! - - """ - Identifies the state of the comment. - """ - state: PullRequestReviewCommentState! - - """ - Identifies when the comment was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL permalink for this review comment. - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Check if the current viewer can minimize this object. - """ - viewerCanMinimize: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -The connection type for PullRequestReviewComment. -""" -type PullRequestReviewCommentConnection { - """ - A list of edges. - """ - edges: [PullRequestReviewCommentEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestReviewComment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PullRequestReviewCommentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestReviewComment -} - -""" -The possible states of a pull request review comment. -""" -enum PullRequestReviewCommentState { - """ - A comment that is part of a pending review - """ - PENDING - - """ - A comment that is part of a submitted review - """ - SUBMITTED -} - -""" -The connection type for PullRequestReview. -""" -type PullRequestReviewConnection { - """ - A list of edges. - """ - edges: [PullRequestReviewEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestReview] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -This aggregates pull request reviews made by a user within one repository. -""" -type PullRequestReviewContributionsByRepository { - """ - The pull request review contributions. - """ - contributions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for contributions returned from the connection. - """ - orderBy: ContributionOrder = {direction: DESC} - ): CreatedPullRequestReviewContributionConnection! - - """ - The repository in which the pull request reviews were made. - """ - repository: Repository! -} - -""" -The review status of a pull request. -""" -enum PullRequestReviewDecision { - """ - The pull request has received an approving review. - """ - APPROVED - - """ - Changes have been requested on the pull request. - """ - CHANGES_REQUESTED - - """ - A review is required before the pull request can be merged. - """ - REVIEW_REQUIRED -} - -""" -An edge in a connection. -""" -type PullRequestReviewEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestReview -} - -""" -The possible events to perform on a pull request review. -""" -enum PullRequestReviewEvent { - """ - Submit feedback and approve merging these changes. - """ - APPROVE - - """ - Submit general feedback without explicit approval. - """ - COMMENT - - """ - Dismiss review so it now longer effects merging. - """ - DISMISS - - """ - Submit feedback that must be addressed before merging. - """ - REQUEST_CHANGES -} - -""" -The possible states of a pull request review. -""" -enum PullRequestReviewState { - """ - A review allowing the pull request to merge. - """ - APPROVED - - """ - A review blocking the pull request from merging. - """ - CHANGES_REQUESTED - - """ - An informational review. - """ - COMMENTED - - """ - A review that has been dismissed. - """ - DISMISSED - - """ - A review that has not yet been submitted. - """ - PENDING -} - -""" -A threaded list of comments for a given pull request. -""" -type PullRequestReviewThread implements Node { - """ - A list of pull request comments associated with the thread. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Skips the first _n_ elements in the list. - """ - skip: Int - ): PullRequestReviewCommentConnection! - - """ - The side of the diff on which this thread was placed. - """ - diffSide: DiffSide! - id: ID! - - """ - Whether or not the thread has been collapsed (outdated or resolved) - """ - isCollapsed: Boolean! - - """ - Indicates whether this thread was outdated by newer changes. - """ - isOutdated: Boolean! - - """ - Whether this thread has been resolved - """ - isResolved: Boolean! - - """ - The line in the file to which this thread refers - """ - line: Int - - """ - The original line in the file to which this thread refers. - """ - originalLine: Int - - """ - The original start line in the file to which this thread refers (multi-line only). - """ - originalStartLine: Int - - """ - Identifies the file path of this thread. - """ - path: String! - - """ - Identifies the pull request associated with this thread. - """ - pullRequest: PullRequest! - - """ - Identifies the repository associated with this thread. - """ - repository: Repository! - - """ - The user who resolved this thread - """ - resolvedBy: User - - """ - The side of the diff that the first line of the thread starts on (multi-line only) - """ - startDiffSide: DiffSide - - """ - The start line in the file to which this thread refers (multi-line only) - """ - startLine: Int - - """ - Indicates whether the current viewer can reply to this thread. - """ - viewerCanReply: Boolean! - - """ - Whether or not the viewer can resolve this thread - """ - viewerCanResolve: Boolean! - - """ - Whether or not the viewer can unresolve this thread - """ - viewerCanUnresolve: Boolean! -} - -""" -Review comment threads for a pull request review. -""" -type PullRequestReviewThreadConnection { - """ - A list of edges. - """ - edges: [PullRequestReviewThreadEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestReviewThread] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PullRequestReviewThreadEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestReviewThread -} - -""" -Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. -""" -type PullRequestRevisionMarker { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The last commit the viewer has seen. - """ - lastSeenCommit: Commit! - - """ - The pull request to which the marker belongs. - """ - pullRequest: PullRequest! -} - -""" -The possible states of a pull request. -""" -enum PullRequestState { - """ - A pull request that has been closed without being merged. - """ - CLOSED - - """ - A pull request that has been closed by being merged. - """ - MERGED - - """ - A pull request that is still open. - """ - OPEN -} - -""" -The connection type for PullRequestTimelineItem. -""" -type PullRequestTimelineConnection { - """ - A list of edges. - """ - edges: [PullRequestTimelineItemEdge] - - """ - A list of nodes. - """ - nodes: [PullRequestTimelineItem] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An item in an pull request timeline -""" -union PullRequestTimelineItem = AssignedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit | CommitCommentThread | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MergedEvent | MilestonedEvent | PullRequestReview | PullRequestReviewComment | PullRequestReviewThread | ReferencedEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnsubscribedEvent | UserBlockedEvent - -""" -An edge in a connection. -""" -type PullRequestTimelineItemEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestTimelineItem -} - -""" -An item in a pull request timeline -""" -union PullRequestTimelineItems = AddedToProjectEvent | AssignedEvent | AutomaticBaseChangeFailedEvent | AutomaticBaseChangeSucceededEvent | BaseRefChangedEvent | BaseRefDeletedEvent | BaseRefForcePushedEvent | ClosedEvent | CommentDeletedEvent | ConnectedEvent | ConvertToDraftEvent | ConvertedNoteToIssueEvent | CrossReferencedEvent | DemilestonedEvent | DeployedEvent | DeploymentEnvironmentChangedEvent | DisconnectedEvent | HeadRefDeletedEvent | HeadRefForcePushedEvent | HeadRefRestoredEvent | IssueComment | LabeledEvent | LockedEvent | MarkedAsDuplicateEvent | MentionedEvent | MergedEvent | MilestonedEvent | MovedColumnsInProjectEvent | PinnedEvent | PullRequestCommit | PullRequestCommitCommentThread | PullRequestReview | PullRequestReviewThread | PullRequestRevisionMarker | ReadyForReviewEvent | ReferencedEvent | RemovedFromProjectEvent | RenamedTitleEvent | ReopenedEvent | ReviewDismissedEvent | ReviewRequestRemovedEvent | ReviewRequestedEvent | SubscribedEvent | TransferredEvent | UnassignedEvent | UnlabeledEvent | UnlockedEvent | UnmarkedAsDuplicateEvent | UnpinnedEvent | UnsubscribedEvent | UserBlockedEvent - -""" -The connection type for PullRequestTimelineItems. -""" -type PullRequestTimelineItemsConnection { - """ - A list of edges. - """ - edges: [PullRequestTimelineItemsEdge] - - """ - Identifies the count of items after applying `before` and `after` filters. - """ - filteredCount: Int! - - """ - A list of nodes. - """ - nodes: [PullRequestTimelineItems] - - """ - Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - """ - pageCount: Int! - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - Identifies the date and time when the timeline was last updated. - """ - updatedAt: DateTime! -} - -""" -An edge in a connection. -""" -type PullRequestTimelineItemsEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PullRequestTimelineItems -} - -""" -The possible item types found in a timeline. -""" -enum PullRequestTimelineItemsItemType { - """ - Represents a 'added_to_project' event on a given issue or pull request. - """ - ADDED_TO_PROJECT_EVENT - - """ - Represents an 'assigned' event on any assignable object. - """ - ASSIGNED_EVENT - - """ - Represents a 'automatic_base_change_failed' event on a given pull request. - """ - AUTOMATIC_BASE_CHANGE_FAILED_EVENT - - """ - Represents a 'automatic_base_change_succeeded' event on a given pull request. - """ - AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT - - """ - Represents a 'base_ref_changed' event on a given issue or pull request. - """ - BASE_REF_CHANGED_EVENT - - """ - Represents a 'base_ref_deleted' event on a given pull request. - """ - BASE_REF_DELETED_EVENT - - """ - Represents a 'base_ref_force_pushed' event on a given pull request. - """ - BASE_REF_FORCE_PUSHED_EVENT - - """ - Represents a 'closed' event on any `Closable`. - """ - CLOSED_EVENT - - """ - Represents a 'comment_deleted' event on a given issue or pull request. - """ - COMMENT_DELETED_EVENT - - """ - Represents a 'connected' event on a given issue or pull request. - """ - CONNECTED_EVENT - - """ - Represents a 'converted_note_to_issue' event on a given issue or pull request. - """ - CONVERTED_NOTE_TO_ISSUE_EVENT - - """ - Represents a 'convert_to_draft' event on a given pull request. - """ - CONVERT_TO_DRAFT_EVENT - - """ - Represents a mention made by one issue or pull request to another. - """ - CROSS_REFERENCED_EVENT - - """ - Represents a 'demilestoned' event on a given issue or pull request. - """ - DEMILESTONED_EVENT - - """ - Represents a 'deployed' event on a given pull request. - """ - DEPLOYED_EVENT - - """ - Represents a 'deployment_environment_changed' event on a given pull request. - """ - DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT - - """ - Represents a 'disconnected' event on a given issue or pull request. - """ - DISCONNECTED_EVENT - - """ - Represents a 'head_ref_deleted' event on a given pull request. - """ - HEAD_REF_DELETED_EVENT - - """ - Represents a 'head_ref_force_pushed' event on a given pull request. - """ - HEAD_REF_FORCE_PUSHED_EVENT - - """ - Represents a 'head_ref_restored' event on a given pull request. - """ - HEAD_REF_RESTORED_EVENT - - """ - Represents a comment on an Issue. - """ - ISSUE_COMMENT - - """ - Represents a 'labeled' event on a given issue or pull request. - """ - LABELED_EVENT - - """ - Represents a 'locked' event on a given issue or pull request. - """ - LOCKED_EVENT - - """ - Represents a 'marked_as_duplicate' event on a given issue or pull request. - """ - MARKED_AS_DUPLICATE_EVENT - - """ - Represents a 'mentioned' event on a given issue or pull request. - """ - MENTIONED_EVENT - - """ - Represents a 'merged' event on a given pull request. - """ - MERGED_EVENT - - """ - Represents a 'milestoned' event on a given issue or pull request. - """ - MILESTONED_EVENT - - """ - Represents a 'moved_columns_in_project' event on a given issue or pull request. - """ - MOVED_COLUMNS_IN_PROJECT_EVENT - - """ - Represents a 'pinned' event on a given issue or pull request. - """ - PINNED_EVENT - - """ - Represents a Git commit part of a pull request. - """ - PULL_REQUEST_COMMIT - - """ - Represents a commit comment thread part of a pull request. - """ - PULL_REQUEST_COMMIT_COMMENT_THREAD - - """ - A review object for a given pull request. - """ - PULL_REQUEST_REVIEW - - """ - A threaded list of comments for a given pull request. - """ - PULL_REQUEST_REVIEW_THREAD - - """ - Represents the latest point in the pull request timeline for which the viewer has seen the pull request's commits. - """ - PULL_REQUEST_REVISION_MARKER - - """ - Represents a 'ready_for_review' event on a given pull request. - """ - READY_FOR_REVIEW_EVENT - - """ - Represents a 'referenced' event on a given `ReferencedSubject`. - """ - REFERENCED_EVENT - - """ - Represents a 'removed_from_project' event on a given issue or pull request. - """ - REMOVED_FROM_PROJECT_EVENT - - """ - Represents a 'renamed' event on a given issue or pull request - """ - RENAMED_TITLE_EVENT - - """ - Represents a 'reopened' event on any `Closable`. - """ - REOPENED_EVENT - - """ - Represents a 'review_dismissed' event on a given issue or pull request. - """ - REVIEW_DISMISSED_EVENT - - """ - Represents an 'review_requested' event on a given pull request. - """ - REVIEW_REQUESTED_EVENT - - """ - Represents an 'review_request_removed' event on a given pull request. - """ - REVIEW_REQUEST_REMOVED_EVENT - - """ - Represents a 'subscribed' event on a given `Subscribable`. - """ - SUBSCRIBED_EVENT - - """ - Represents a 'transferred' event on a given issue or pull request. - """ - TRANSFERRED_EVENT - - """ - Represents an 'unassigned' event on any assignable object. - """ - UNASSIGNED_EVENT - - """ - Represents an 'unlabeled' event on a given issue or pull request. - """ - UNLABELED_EVENT - - """ - Represents an 'unlocked' event on a given issue or pull request. - """ - UNLOCKED_EVENT - - """ - Represents an 'unmarked_as_duplicate' event on a given issue or pull request. - """ - UNMARKED_AS_DUPLICATE_EVENT - - """ - Represents an 'unpinned' event on a given issue or pull request. - """ - UNPINNED_EVENT - - """ - Represents an 'unsubscribed' event on a given `Subscribable`. - """ - UNSUBSCRIBED_EVENT - - """ - Represents a 'user_blocked' event on a given user. - """ - USER_BLOCKED_EVENT -} - -""" -The possible target states when updating a pull request. -""" -enum PullRequestUpdateState { - """ - A pull request that has been closed without being merged. - """ - CLOSED - - """ - A pull request that is still open. - """ - OPEN -} - -""" -A Git push. -""" -type Push implements Node { - id: ID! - - """ - The SHA after the push - """ - nextSha: GitObjectID - - """ - The permalink for this push. - """ - permalink: URI! - - """ - The SHA before the push - """ - previousSha: GitObjectID - - """ - The user who pushed - """ - pusher: User! - - """ - The repository that was pushed to - """ - repository: Repository! -} - -""" -A team, user or app who has the ability to push to a protected branch. -""" -type PushAllowance implements Node { - """ - The actor that can push. - """ - actor: PushAllowanceActor - - """ - Identifies the branch protection rule associated with the allowed user or team. - """ - branchProtectionRule: BranchProtectionRule - id: ID! -} - -""" -Types that can be an actor. -""" -union PushAllowanceActor = App | Team | User - -""" -The connection type for PushAllowance. -""" -type PushAllowanceConnection { - """ - A list of edges. - """ - edges: [PushAllowanceEdge] - - """ - A list of nodes. - """ - nodes: [PushAllowance] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type PushAllowanceEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: PushAllowance -} - -""" -The query root of GitHub's GraphQL interface. -""" -type Query { - """ - Look up a code of conduct by its key - """ - codeOfConduct( - """ - The code of conduct's key - """ - key: String! - ): CodeOfConduct - - """ - Look up a code of conduct by its key - """ - codesOfConduct: [CodeOfConduct] - - """ - Look up an enterprise by URL slug. - """ - enterprise( - """ - The enterprise invitation token. - """ - invitationToken: String - - """ - The enterprise URL slug. - """ - slug: String! - ): Enterprise - - """ - Look up a pending enterprise administrator invitation by invitee, enterprise and role. - """ - enterpriseAdministratorInvitation( - """ - The slug of the enterprise the user was invited to join. - """ - enterpriseSlug: String! - - """ - The role for the business member invitation. - """ - role: EnterpriseAdministratorRole! - - """ - The login of the user invited to join the business. - """ - userLogin: String! - ): EnterpriseAdministratorInvitation - - """ - Look up a pending enterprise administrator invitation by invitation token. - """ - enterpriseAdministratorInvitationByToken( - """ - The invitation token sent with the invitation email. - """ - invitationToken: String! - ): EnterpriseAdministratorInvitation - - """ - Look up an open source license by its key - """ - license( - """ - The license's downcased SPDX ID - """ - key: String! - ): License - - """ - Return a list of known open source licenses - """ - licenses: [License]! - - """ - Get alphabetically sorted list of Marketplace categories - """ - marketplaceCategories( - """ - Exclude categories with no listings. - """ - excludeEmpty: Boolean - - """ - Returns top level categories only, excluding any subcategories. - """ - excludeSubcategories: Boolean - - """ - Return only the specified categories. - """ - includeCategories: [String!] - ): [MarketplaceCategory!]! - - """ - Look up a Marketplace category by its slug. - """ - marketplaceCategory( - """ - The URL slug of the category. - """ - slug: String! - - """ - Also check topic aliases for the category slug - """ - useTopicAliases: Boolean - ): MarketplaceCategory - - """ - Look up a single Marketplace listing - """ - marketplaceListing( - """ - Select the listing that matches this slug. It's the short name of the listing used in its URL. - """ - slug: String! - ): MarketplaceListing - - """ - Look up Marketplace listings - """ - marketplaceListings( - """ - Select listings that can be administered by the specified user. - """ - adminId: ID - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Select listings visible to the viewer even if they are not approved. If omitted or - false, only approved listings will be returned. - """ - allStates: Boolean - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Select only listings with the given category. - """ - categorySlug: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Select listings for products owned by the specified organization. - """ - organizationId: ID - - """ - Select only listings where the primary category matches the given category slug. - """ - primaryCategoryOnly: Boolean = false - - """ - Select the listings with these slugs, if they are visible to the viewer. - """ - slugs: [String] - - """ - Also check topic aliases for the category slug - """ - useTopicAliases: Boolean - - """ - Select listings to which user has admin access. If omitted, listings visible to the - viewer are returned. - """ - viewerCanAdmin: Boolean - - """ - Select only listings that offer a free trial. - """ - withFreeTrialsOnly: Boolean = false - ): MarketplaceListingConnection! - - """ - Return information about the GitHub instance - """ - meta: GitHubMetadata! - - """ - Fetches an object given its ID. - """ - node( - """ - ID of the object. - """ - id: ID! - ): Node - - """ - Lookup nodes by a list of IDs. - """ - nodes( - """ - The list of node IDs. - """ - ids: [ID!]! - ): [Node]! - - """ - Lookup a organization by login. - """ - organization( - """ - The organization's login. - """ - login: String! - ): Organization - - """ - The client's rate limit information. - """ - rateLimit( - """ - If true, calculate the cost for the query without evaluating it - """ - dryRun: Boolean = false - ): RateLimit - - """ - Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object - """ - relay: Query! - - """ - Lookup a given repository by the owner and repository name. - """ - repository( - """ - The name of the repository - """ - name: String! - - """ - The login field of a user or organization - """ - owner: String! - ): Repository - - """ - Lookup a repository owner (ie. either a User or an Organization) by login. - """ - repositoryOwner( - """ - The username to lookup the owner by. - """ - login: String! - ): RepositoryOwner - - """ - Lookup resource by a URL. - """ - resource( - """ - The URL. - """ - url: URI! - ): UniformResourceLocatable - - """ - Perform a search across resources. - """ - search( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - The search string to look for. - """ - query: String! - - """ - The types of search items to search within. - """ - type: SearchType! - ): SearchResultItemConnection! - - """ - GitHub Security Advisories - """ - securityAdvisories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Filter advisories by identifier, e.g. GHSA or CVE. - """ - identifier: SecurityAdvisoryIdentifierFilter - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for the returned topics. - """ - orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC} - - """ - Filter advisories to those published since a time in the past. - """ - publishedSince: DateTime - - """ - Filter advisories to those updated since a time in the past. - """ - updatedSince: DateTime - ): SecurityAdvisoryConnection! - - """ - Fetch a Security Advisory by its GHSA ID - """ - securityAdvisory( - """ - GitHub Security Advisory ID. - """ - ghsaId: String! - ): SecurityAdvisory - - """ - Software Vulnerabilities documented by GitHub Security Advisories - """ - securityVulnerabilities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - An ecosystem to filter vulnerabilities by. - """ - ecosystem: SecurityAdvisoryEcosystem - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for the returned topics. - """ - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} - - """ - A package name to filter vulnerabilities by. - """ - package: String - - """ - A list of severities to filter vulnerabilities by. - """ - severities: [SecurityAdvisorySeverity!] - ): SecurityVulnerabilityConnection! - - """ - Look up a single Sponsors Listing - """ - sponsorsListing( - """ - Select the Sponsors listing which matches this slug - """ - slug: String! - ): SponsorsListing @deprecated(reason: "`Query.sponsorsListing` will be removed. Use `Sponsorable.sponsorsListing` instead. Removal on 2020-04-01 UTC.") - - """ - Look up a topic by name. - """ - topic( - """ - The topic's name. - """ - name: String! - ): Topic - - """ - Lookup a user by login. - """ - user( - """ - The user's login. - """ - login: String! - ): User - - """ - The currently authenticated user. - """ - viewer: User! -} - -""" -Represents the client's rate limit. -""" -type RateLimit { - """ - The point cost for the current query counting against the rate limit. - """ - cost: Int! - - """ - The maximum number of points the client is permitted to consume in a 60 minute window. - """ - limit: Int! - - """ - The maximum number of nodes this query may return - """ - nodeCount: Int! - - """ - The number of points remaining in the current rate limit window. - """ - remaining: Int! - - """ - The time at which the current rate limit window resets in UTC epoch seconds. - """ - resetAt: DateTime! - - """ - The number of points used in the current rate limit window. - """ - used: Int! -} - -""" -Represents a subject that can be reacted on. -""" -interface Reactable { - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! -} - -""" -The connection type for User. -""" -type ReactingUserConnection { - """ - A list of edges. - """ - edges: [ReactingUserEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a user that's made a reaction. -""" -type ReactingUserEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - node: User! - - """ - The moment when the user made the reaction. - """ - reactedAt: DateTime! -} - -""" -An emoji reaction to a particular piece of content. -""" -type Reaction implements Node { - """ - Identifies the emoji reaction. - """ - content: ReactionContent! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - The reactable piece of content - """ - reactable: Reactable! - - """ - Identifies the user who created this reaction. - """ - user: User -} - -""" -A list of reactions that have been left on the subject. -""" -type ReactionConnection { - """ - A list of edges. - """ - edges: [ReactionEdge] - - """ - A list of nodes. - """ - nodes: [Reaction] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - Whether or not the authenticated user has left a reaction on the subject. - """ - viewerHasReacted: Boolean! -} - -""" -Emojis that can be attached to Issues, Pull Requests and Comments. -""" -enum ReactionContent { - """ - Represents the `:confused:` emoji. - """ - CONFUSED - - """ - Represents the `:eyes:` emoji. - """ - EYES - - """ - Represents the `:heart:` emoji. - """ - HEART - - """ - Represents the `:hooray:` emoji. - """ - HOORAY - - """ - Represents the `:laugh:` emoji. - """ - LAUGH - - """ - Represents the `:rocket:` emoji. - """ - ROCKET - - """ - Represents the `:-1:` emoji. - """ - THUMBS_DOWN - - """ - Represents the `:+1:` emoji. - """ - THUMBS_UP -} - -""" -An edge in a connection. -""" -type ReactionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Reaction -} - -""" -A group of emoji reactions to a particular piece of content. -""" -type ReactionGroup { - """ - Identifies the emoji reaction. - """ - content: ReactionContent! - - """ - Identifies when the reaction was created. - """ - createdAt: DateTime - - """ - The subject that was reacted to. - """ - subject: Reactable! - - """ - Users who have reacted to the reaction subject with the emotion represented by this reaction group - """ - users( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): ReactingUserConnection! - - """ - Whether or not the authenticated user has left a reaction on the subject. - """ - viewerHasReacted: Boolean! -} - -""" -Ways in which lists of reactions can be ordered upon return. -""" -input ReactionOrder { - """ - The direction in which to order reactions by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order reactions by. - """ - field: ReactionOrderField! -} - -""" -A list of fields that reactions can be ordered by. -""" -enum ReactionOrderField { - """ - Allows ordering a list of reactions by when they were created. - """ - CREATED_AT -} - -""" -Represents a 'ready_for_review' event on a given pull request. -""" -type ReadyForReviewEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - The HTTP path for this ready for review event. - """ - resourcePath: URI! - - """ - The HTTP URL for this ready for review event. - """ - url: URI! -} - -""" -Represents a Git reference. -""" -type Ref implements Node { - """ - A list of pull requests with this ref as the head ref. - """ - associatedPullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection! - - """ - Branch protection rules for this ref - """ - branchProtectionRule: BranchProtectionRule - id: ID! - - """ - The ref name. - """ - name: String! - - """ - The ref's prefix, such as `refs/heads/` or `refs/tags/`. - """ - prefix: String! - - """ - Branch protection rules that are viewable by non-admins - """ - refUpdateRule: RefUpdateRule - - """ - The repository the ref belongs to. - """ - repository: Repository! - - """ - The object the ref points to. Returns null when object does not exist. - """ - target: GitObject -} - -""" -The connection type for Ref. -""" -type RefConnection { - """ - A list of edges. - """ - edges: [RefEdge] - - """ - A list of nodes. - """ - nodes: [Ref] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type RefEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Ref -} - -""" -Ways in which lists of git refs can be ordered upon return. -""" -input RefOrder { - """ - The direction in which to order refs by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order refs by. - """ - field: RefOrderField! -} - -""" -Properties by which ref connections can be ordered. -""" -enum RefOrderField { - """ - Order refs by their alphanumeric name - """ - ALPHABETICAL - - """ - Order refs by underlying commit date if the ref prefix is refs/tags/ - """ - TAG_COMMIT_DATE -} - -""" -A ref update rules for a viewer. -""" -type RefUpdateRule { - """ - Can this branch be deleted. - """ - allowsDeletions: Boolean! - - """ - Are force pushes allowed on this branch. - """ - allowsForcePushes: Boolean! - - """ - Identifies the protection rule pattern. - """ - pattern: String! - - """ - Number of approving reviews required to update matching branches. - """ - requiredApprovingReviewCount: Int - - """ - List of required status check contexts that must pass for commits to be accepted to matching branches. - """ - requiredStatusCheckContexts: [String] - - """ - Are merge commits prohibited from being pushed to this branch. - """ - requiresLinearHistory: Boolean! - - """ - Are commits required to be signed. - """ - requiresSignatures: Boolean! - - """ - Can the viewer push to the branch - """ - viewerCanPush: Boolean! -} - -""" -Represents a 'referenced' event on a given `ReferencedSubject`. -""" -type ReferencedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the commit associated with the 'referenced' event. - """ - commit: Commit - - """ - Identifies the repository associated with the 'referenced' event. - """ - commitRepository: Repository! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Reference originated in a different repository. - """ - isCrossRepository: Boolean! - - """ - Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference. - """ - isDirectReference: Boolean! - - """ - Object referenced by event. - """ - subject: ReferencedSubject! -} - -""" -Any referencable object -""" -union ReferencedSubject = Issue | PullRequest - -""" -Autogenerated input type of RegenerateEnterpriseIdentityProviderRecoveryCodes -""" -input RegenerateEnterpriseIdentityProviderRecoveryCodesInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set an identity provider. - """ - enterpriseId: ID! -} - -""" -Autogenerated return type of RegenerateEnterpriseIdentityProviderRecoveryCodes -""" -type RegenerateEnterpriseIdentityProviderRecoveryCodesPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The identity provider for the enterprise. - """ - identityProvider: EnterpriseIdentityProvider -} - -""" -A release contains the content for a release. -""" -type Release implements Node & UniformResourceLocatable { - """ - The author of the release - """ - author: User - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The description of the release. - """ - description: String - - """ - The description of this release rendered to HTML. - """ - descriptionHTML: HTML - id: ID! - - """ - Whether or not the release is a draft - """ - isDraft: Boolean! - - """ - Whether or not the release is a prerelease - """ - isPrerelease: Boolean! - - """ - The title of the release. - """ - name: String - - """ - Identifies the date and time when the release was created. - """ - publishedAt: DateTime - - """ - List of releases assets which are dependent on this release. - """ - releaseAssets( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - A list of names to filter the assets by. - """ - name: String - ): ReleaseAssetConnection! - - """ - The HTTP path for this issue - """ - resourcePath: URI! - - """ - A description of the release, rendered to HTML without any links in it. - """ - shortDescriptionHTML( - """ - How many characters to return. - """ - limit: Int = 200 - ): HTML - - """ - The Git tag the release points to - """ - tag: Ref - - """ - The name of the release's Git tag - """ - tagName: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this issue - """ - url: URI! -} - -""" -A release asset contains the content for a release asset. -""" -type ReleaseAsset implements Node { - """ - The asset's content-type - """ - contentType: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The number of times this asset was downloaded - """ - downloadCount: Int! - - """ - Identifies the URL where you can download the release asset via the browser. - """ - downloadUrl: URI! - id: ID! - - """ - Identifies the title of the release asset. - """ - name: String! - - """ - Release that the asset is associated with - """ - release: Release - - """ - The size (in bytes) of the asset - """ - size: Int! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The user that performed the upload - """ - uploadedBy: User! - - """ - Identifies the URL of the release asset. - """ - url: URI! -} - -""" -The connection type for ReleaseAsset. -""" -type ReleaseAssetConnection { - """ - A list of edges. - """ - edges: [ReleaseAssetEdge] - - """ - A list of nodes. - """ - nodes: [ReleaseAsset] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ReleaseAssetEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ReleaseAsset -} - -""" -The connection type for Release. -""" -type ReleaseConnection { - """ - A list of edges. - """ - edges: [ReleaseEdge] - - """ - A list of nodes. - """ - nodes: [Release] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ReleaseEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Release -} - -""" -Ways in which lists of releases can be ordered upon return. -""" -input ReleaseOrder { - """ - The direction in which to order releases by the specified field. - """ - direction: OrderDirection! - - """ - The field in which to order releases by. - """ - field: ReleaseOrderField! -} - -""" -Properties by which release connections can be ordered. -""" -enum ReleaseOrderField { - """ - Order releases by creation time - """ - CREATED_AT - - """ - Order releases alphabetically by name - """ - NAME -} - -""" -Autogenerated input type of RemoveAssigneesFromAssignable -""" -input RemoveAssigneesFromAssignableInput { - """ - The id of the assignable object to remove assignees from. - """ - assignableId: ID! - - """ - The id of users to remove as assignees. - """ - assigneeIds: [ID!]! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated return type of RemoveAssigneesFromAssignable -""" -type RemoveAssigneesFromAssignablePayload { - """ - The item that was unassigned. - """ - assignable: Assignable - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of RemoveEnterpriseAdmin -""" -input RemoveEnterpriseAdminInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Enterprise ID from which to remove the administrator. - """ - enterpriseId: ID! - - """ - The login of the user to remove as an administrator. - """ - login: String! -} - -""" -Autogenerated return type of RemoveEnterpriseAdmin -""" -type RemoveEnterpriseAdminPayload { - """ - The user who was removed as an administrator. - """ - admin: User - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated enterprise. - """ - enterprise: Enterprise - - """ - A message confirming the result of removing an administrator. - """ - message: String - - """ - The viewer performing the mutation. - """ - viewer: User -} - -""" -Autogenerated input type of RemoveEnterpriseIdentityProvider -""" -input RemoveEnterpriseIdentityProviderInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise from which to remove the identity provider. - """ - enterpriseId: ID! -} - -""" -Autogenerated return type of RemoveEnterpriseIdentityProvider -""" -type RemoveEnterpriseIdentityProviderPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The identity provider that was removed from the enterprise. - """ - identityProvider: EnterpriseIdentityProvider -} - -""" -Autogenerated input type of RemoveEnterpriseOrganization -""" -input RemoveEnterpriseOrganizationInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise from which the organization should be removed. - """ - enterpriseId: ID! - - """ - The ID of the organization to remove from the enterprise. - """ - organizationId: ID! -} - -""" -Autogenerated return type of RemoveEnterpriseOrganization -""" -type RemoveEnterpriseOrganizationPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated enterprise. - """ - enterprise: Enterprise - - """ - The organization that was removed from the enterprise. - """ - organization: Organization - - """ - The viewer performing the mutation. - """ - viewer: User -} - -""" -Autogenerated input type of RemoveLabelsFromLabelable -""" -input RemoveLabelsFromLabelableInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ids of labels to remove. - """ - labelIds: [ID!]! - - """ - The id of the Labelable to remove labels from. - """ - labelableId: ID! -} - -""" -Autogenerated return type of RemoveLabelsFromLabelable -""" -type RemoveLabelsFromLabelablePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Labelable the labels were removed from. - """ - labelable: Labelable -} - -""" -Autogenerated input type of RemoveOutsideCollaborator -""" -input RemoveOutsideCollaboratorInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the organization to remove the outside collaborator from. - """ - organizationId: ID! - - """ - The ID of the outside collaborator to remove. - """ - userId: ID! -} - -""" -Autogenerated return type of RemoveOutsideCollaborator -""" -type RemoveOutsideCollaboratorPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The user that was removed as an outside collaborator. - """ - removedUser: User -} - -""" -Autogenerated input type of RemoveReaction -""" -input RemoveReactionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of the emoji reaction to remove. - """ - content: ReactionContent! - - """ - The Node ID of the subject to modify. - """ - subjectId: ID! -} - -""" -Autogenerated return type of RemoveReaction -""" -type RemoveReactionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The reaction object. - """ - reaction: Reaction - - """ - The reactable subject. - """ - subject: Reactable -} - -""" -Autogenerated input type of RemoveStar -""" -input RemoveStarInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Starrable ID to unstar. - """ - starrableId: ID! -} - -""" -Autogenerated return type of RemoveStar -""" -type RemoveStarPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The starrable. - """ - starrable: Starrable -} - -""" -Represents a 'removed_from_project' event on a given issue or pull request. -""" -type RemovedFromProjectEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! -} - -""" -Represents a 'renamed' event on a given issue or pull request -""" -type RenamedTitleEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the current title of the issue or pull request. - """ - currentTitle: String! - id: ID! - - """ - Identifies the previous title of the issue or pull request. - """ - previousTitle: String! - - """ - Subject that was renamed. - """ - subject: RenamedTitleSubject! -} - -""" -An object which has a renamable title -""" -union RenamedTitleSubject = Issue | PullRequest - -""" -Autogenerated input type of ReopenIssue -""" -input ReopenIssueInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the issue to be opened. - """ - issueId: ID! -} - -""" -Autogenerated return type of ReopenIssue -""" -type ReopenIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The issue that was opened. - """ - issue: Issue -} - -""" -Autogenerated input type of ReopenPullRequest -""" -input ReopenPullRequestInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the pull request to be reopened. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of ReopenPullRequest -""" -type ReopenPullRequestPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request that was reopened. - """ - pullRequest: PullRequest -} - -""" -Represents a 'reopened' event on any `Closable`. -""" -type ReopenedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Object that was reopened. - """ - closable: Closable! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! -} - -""" -Audit log entry for a repo.access event. -""" -type RepoAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoAccessAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoAccessAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.add_member event. -""" -type RepoAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoAddMemberAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoAddMemberAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.add_topic event. -""" -type RepoAddTopicAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TopicAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The name of the topic added to the repository - """ - topic: Topic - - """ - The name of the topic added to the repository - """ - topicName: String - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.archived event. -""" -type RepoArchivedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoArchivedAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoArchivedAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.change_merge_setting event. -""" -type RepoChangeMergeSettingAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the change was to enable (true) or disable (false) the merge type - """ - isEnabled: Boolean - - """ - The merge method affected by the change - """ - mergeType: RepoChangeMergeSettingAuditEntryMergeType - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The merge options available for pull requests to this repository. -""" -enum RepoChangeMergeSettingAuditEntryMergeType { - """ - The pull request is added to the base branch in a merge commit. - """ - MERGE - - """ - Commits from the pull request are added onto the base branch individually without a merge commit. - """ - REBASE - - """ - The pull request's commits are squashed into a single commit before they are merged to the base branch. - """ - SQUASH -} - -""" -Audit log entry for a repo.config.disable_anonymous_git_access event. -""" -type RepoConfigDisableAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.disable_collaborators_only event. -""" -type RepoConfigDisableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.disable_contributors_only event. -""" -type RepoConfigDisableContributorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.disable_sockpuppet_disallowed event. -""" -type RepoConfigDisableSockpuppetDisallowedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.enable_anonymous_git_access event. -""" -type RepoConfigEnableAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.enable_collaborators_only event. -""" -type RepoConfigEnableCollaboratorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.enable_contributors_only event. -""" -type RepoConfigEnableContributorsOnlyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.enable_sockpuppet_disallowed event. -""" -type RepoConfigEnableSockpuppetDisallowedAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.lock_anonymous_git_access event. -""" -type RepoConfigLockAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.config.unlock_anonymous_git_access event. -""" -type RepoConfigUnlockAnonymousGitAccessAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repo.create event. -""" -type RepoCreateAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The name of the parent repository for this forked repository. - """ - forkParentName: String - - """ - The name of the root repository for this netork. - """ - forkSourceName: String - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoCreateAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoCreateAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.destroy event. -""" -type RepoDestroyAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoDestroyAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoDestroyAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.remove_member event. -""" -type RepoRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI - - """ - The visibility of the repository - """ - visibility: RepoRemoveMemberAuditEntryVisibility -} - -""" -The privacy of a repository -""" -enum RepoRemoveMemberAuditEntryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repo.remove_topic event. -""" -type RepoRemoveTopicAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TopicAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The name of the topic added to the repository - """ - topic: Topic - - """ - The name of the topic added to the repository - """ - topicName: String - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The reasons a piece of content can be reported or minimized. -""" -enum ReportedContentClassifiers { - """ - An abusive or harassing piece of content - """ - ABUSE - - """ - A duplicated piece of content - """ - DUPLICATE - - """ - An irrelevant piece of content - """ - OFF_TOPIC - - """ - An outdated piece of content - """ - OUTDATED - - """ - The content has been resolved - """ - RESOLVED - - """ - A spammy piece of content - """ - SPAM -} - -""" -A repository contains the content for a project. -""" -type Repository implements Node & PackageOwner & ProjectOwner & RepositoryInfo & Starrable & Subscribable & UniformResourceLocatable { - """ - A list of users that can be assigned to issues in this repository. - """ - assignableUsers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filters users with query on user name and login - """ - query: String - ): UserConnection! - - """ - A list of branch protection rules for this repository. - """ - branchProtectionRules( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): BranchProtectionRuleConnection! - - """ - Returns the code of conduct for this repository - """ - codeOfConduct: CodeOfConduct - - """ - A list of collaborators associated with the repository. - """ - collaborators( - """ - Collaborators affiliation level with a repository. - """ - affiliation: CollaboratorAffiliation - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filters users with query on user name and login - """ - query: String - ): RepositoryCollaboratorConnection - - """ - A list of commit comments associated with the repository. - """ - commitComments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitCommentConnection! - - """ - Returns a list of contact links associated to the repository - """ - contactLinks: [RepositoryContactLink!] - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The Ref associated with the repository's default branch. - """ - defaultBranchRef: Ref - - """ - Whether or not branches are automatically deleted when merged in this repository. - """ - deleteBranchOnMerge: Boolean! - - """ - A list of deploy keys that are on this repository. - """ - deployKeys( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): DeployKeyConnection! - - """ - Deployments associated with the repository - """ - deployments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Environments to list deployments for - """ - environments: [String!] - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for deployments returned from the connection. - """ - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} - ): DeploymentConnection! - - """ - The description of the repository. - """ - description: String - - """ - The description of the repository rendered to HTML. - """ - descriptionHTML: HTML! - - """ - The number of kilobytes this repository occupies on disk. - """ - diskUsage: Int - - """ - Returns how many forks there are of this repository in the whole network. - """ - forkCount: Int! - - """ - A list of direct forked repositories. - """ - forks( - """ - Array of viewer's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - current viewer owns. - """ - affiliations: [RepositoryAffiliation] - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - Array of owner's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - organization or user being viewed owns. - """ - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - The funding links for this repository - """ - fundingLinks: [FundingLink!]! - - """ - Indicates if the repository has issues feature enabled. - """ - hasIssuesEnabled: Boolean! - - """ - Indicates if the repository has the Projects feature enabled. - """ - hasProjectsEnabled: Boolean! - - """ - Indicates if the repository has wiki feature enabled. - """ - hasWikiEnabled: Boolean! - - """ - The repository's URL. - """ - homepageUrl: URI - id: ID! - - """ - The interaction ability settings for this repository. - """ - interactionAbility: RepositoryInteractionAbility - - """ - Indicates if the repository is unmaintained. - """ - isArchived: Boolean! - - """ - Returns true if blank issue creation is allowed - """ - isBlankIssuesEnabled: Boolean! - - """ - Returns whether or not this repository disabled. - """ - isDisabled: Boolean! - - """ - Returns whether or not this repository is empty. - """ - isEmpty: Boolean! - - """ - Identifies if the repository is a fork. - """ - isFork: Boolean! - - """ - Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - """ - isInOrganization: Boolean! - - """ - Indicates if the repository has been locked or not. - """ - isLocked: Boolean! - - """ - Identifies if the repository is a mirror. - """ - isMirror: Boolean! - - """ - Identifies if the repository is private. - """ - isPrivate: Boolean! - - """ - Returns true if this repository has a security policy - """ - isSecurityPolicyEnabled: Boolean - - """ - Identifies if the repository is a template that can be used to generate new repositories. - """ - isTemplate: Boolean! - - """ - Is this repository a user configuration repository? - """ - isUserConfigurationRepository: Boolean! - - """ - Returns a single issue from the current repository by number. - """ - issue( - """ - The number for the issue to be returned. - """ - number: Int! - ): Issue - - """ - Returns a single issue-like object from the current repository by number. - """ - issueOrPullRequest( - """ - The number for the issue to be returned. - """ - number: Int! - ): IssueOrPullRequest - - """ - Returns a list of issue templates associated to the repository - """ - issueTemplates: [IssueTemplate!] - - """ - A list of issues that have been opened in the repository. - """ - issues( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filtering options for issues returned from the connection. - """ - filterBy: IssueFilters - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issues returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the issues by. - """ - states: [IssueState!] - ): IssueConnection! - - """ - Returns a single label by name - """ - label( - """ - Label name - """ - name: String! - ): Label - - """ - A list of labels associated with the repository. - """ - labels( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for labels returned from the connection. - """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} - - """ - If provided, searches labels by name and description. - """ - query: String - ): LabelConnection - - """ - A list containing a breakdown of the language composition of the repository. - """ - languages( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: LanguageOrder - ): LanguageConnection - - """ - The license associated with the repository - """ - licenseInfo: License - - """ - The reason the repository has been locked. - """ - lockReason: RepositoryLockReason - - """ - A list of Users that can be mentioned in the context of the repository. - """ - mentionableUsers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filters users with query on user name and login - """ - query: String - ): UserConnection! - - """ - Whether or not PRs are merged with a merge commit on this repository. - """ - mergeCommitAllowed: Boolean! - - """ - Returns a single milestone from the current repository by number. - """ - milestone( - """ - The number for the milestone to be returned. - """ - number: Int! - ): Milestone - - """ - A list of milestones associated with the repository. - """ - milestones( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for milestones. - """ - orderBy: MilestoneOrder - - """ - Filters milestones with a query on the title - """ - query: String - - """ - Filter by the state of the milestones. - """ - states: [MilestoneState!] - ): MilestoneConnection - - """ - The repository's original mirror URL. - """ - mirrorUrl: URI - - """ - The name of the repository. - """ - name: String! - - """ - The repository's name with owner. - """ - nameWithOwner: String! - - """ - A Git object in the repository - """ - object( - """ - A Git revision expression suitable for rev-parse - """ - expression: String - - """ - The Git object ID - """ - oid: GitObjectID - ): GitObject - - """ - The image used to represent this repository in Open Graph data. - """ - openGraphImageUrl: URI! - - """ - The User owner of the repository. - """ - owner: RepositoryOwner! - - """ - A list of packages under the owner. - """ - packages( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Find packages by their names. - """ - names: [String] - - """ - Ordering of the returned packages. - """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - - """ - Filter registry package by type. - """ - packageType: PackageType - - """ - Find packages in a repository by ID. - """ - repositoryId: ID - ): PackageConnection! - - """ - The repository parent, if this is a fork. - """ - parent: Repository - - """ - The primary language of the repository's code. - """ - primaryLanguage: Language - - """ - Find project by number. - """ - project( - """ - The project number to find. - """ - number: Int! - ): Project - - """ - A list of projects under the owner. - """ - projects( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for projects returned from the connection - """ - orderBy: ProjectOrder - - """ - Query to search projects by, currently only searching by name. - """ - search: String - - """ - A list of states to filter the projects by. - """ - states: [ProjectState!] - ): ProjectConnection! - - """ - The HTTP path listing the repository's projects - """ - projectsResourcePath: URI! - - """ - The HTTP URL listing the repository's projects - """ - projectsUrl: URI! - - """ - Returns a single pull request from the current repository by number. - """ - pullRequest( - """ - The number for the pull request to be returned. - """ - number: Int! - ): PullRequest - - """ - A list of pull requests that have been opened in the repository. - """ - pullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection! - - """ - Identifies when the repository was last pushed to. - """ - pushedAt: DateTime - - """ - Whether or not rebase-merging is enabled on this repository. - """ - rebaseMergeAllowed: Boolean! - - """ - Fetch a given ref from the repository - """ - ref( - """ - The ref to retrieve. Fully qualified matches are checked in order - (`refs/heads/master`) before falling back onto checks for short name matches (`master`). - """ - qualifiedName: String! - ): Ref - - """ - Fetch a list of refs from the repository - """ - refs( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - DEPRECATED: use orderBy. The ordering direction. - """ - direction: OrderDirection - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for refs returned from the connection. - """ - orderBy: RefOrder - - """ - Filters refs with query on name - """ - query: String - - """ - A ref name prefix like `refs/heads/`, `refs/tags/`, etc. - """ - refPrefix: String! - ): RefConnection - - """ - Lookup a single release given various criteria. - """ - release( - """ - The name of the Tag the Release was created from - """ - tagName: String! - ): Release - - """ - List of releases which are dependent on this repository. - """ - releases( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: ReleaseOrder - ): ReleaseConnection! - - """ - A list of applied repository-topic associations for this repository. - """ - repositoryTopics( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): RepositoryTopicConnection! - - """ - The HTTP path for this repository - """ - resourcePath: URI! - - """ - The security policy URL. - """ - securityPolicyUrl: URI - - """ - A description of the repository, rendered to HTML without any links in it. - """ - shortDescriptionHTML( - """ - How many characters to return. - """ - limit: Int = 200 - ): HTML! - - """ - Whether or not squash-merging is enabled on this repository. - """ - squashMergeAllowed: Boolean! - - """ - The SSH URL to clone this repository - """ - sshUrl: GitSSHRemote! - - """ - Returns a count of how many stargazers there are on this object - """ - stargazerCount: Int! - - """ - A list of users who have starred this starrable. - """ - stargazers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: StarOrder - ): StargazerConnection! - - """ - Returns a list of all submodules in this repository parsed from the - .gitmodules file as of the default branch's HEAD commit. - """ - submodules( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): SubmoduleConnection! - - """ - Temporary authentication token for cloning this repository. - """ - tempCloneToken: String - - """ - The repository from which this repository was generated, if any. - """ - templateRepository: Repository - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this repository - """ - url: URI! - - """ - Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - """ - usesCustomOpenGraphImage: Boolean! - - """ - Indicates whether the viewer has admin permissions on this repository. - """ - viewerCanAdminister: Boolean! - - """ - Can the current viewer create new projects on this owner. - """ - viewerCanCreateProjects: Boolean! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Indicates whether the viewer can update the topics of this repository. - """ - viewerCanUpdateTopics: Boolean! - - """ - The last commit email for the viewer. - """ - viewerDefaultCommitEmail: String - - """ - The last used merge method by the viewer or the default for the repository. - """ - viewerDefaultMergeMethod: PullRequestMergeMethod! - - """ - Returns a boolean indicating whether the viewing user has starred this starrable. - """ - viewerHasStarred: Boolean! - - """ - The users permission level on the repository. Will return null if authenticated as an GitHub App. - """ - viewerPermission: RepositoryPermission - - """ - A list of emails this viewer can commit with. - """ - viewerPossibleCommitEmails: [String!] - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState - - """ - A list of vulnerability alerts that are on this repository. - """ - vulnerabilityAlerts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): RepositoryVulnerabilityAlertConnection - - """ - A list of users watching the repository. - """ - watchers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserConnection! -} - -""" -The affiliation of a user to a repository -""" -enum RepositoryAffiliation { - """ - Repositories that the user has been added to as a collaborator. - """ - COLLABORATOR - - """ - Repositories that the user has access to through being a member of an - organization. This includes every repository on every team that the user is on. - """ - ORGANIZATION_MEMBER - - """ - Repositories that are owned by the authenticated user. - """ - OWNER -} - -""" -Metadata for an audit entry with action repo.* -""" -interface RepositoryAuditEntryData { - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI -} - -""" -The connection type for User. -""" -type RepositoryCollaboratorConnection { - """ - A list of edges. - """ - edges: [RepositoryCollaboratorEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a user who is a collaborator of a repository. -""" -type RepositoryCollaboratorEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - node: User! - - """ - The permission the user has on the repository. - """ - permission: RepositoryPermission! - - """ - A list of sources for the user's access to the repository. - """ - permissionSources: [PermissionSource!] -} - -""" -A list of repositories owned by the subject. -""" -type RepositoryConnection { - """ - A list of edges. - """ - edges: [RepositoryEdge] - - """ - A list of nodes. - """ - nodes: [Repository] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! - - """ - The total size in kilobytes of all repositories in the connection. - """ - totalDiskUsage: Int! -} - -""" -A repository contact link. -""" -type RepositoryContactLink { - """ - The contact link purpose. - """ - about: String! - - """ - The contact link name. - """ - name: String! - - """ - The contact link URL. - """ - url: URI! -} - -""" -The reason a repository is listed as 'contributed'. -""" -enum RepositoryContributionType { - """ - Created a commit - """ - COMMIT - - """ - Created an issue - """ - ISSUE - - """ - Created a pull request - """ - PULL_REQUEST - - """ - Reviewed a pull request - """ - PULL_REQUEST_REVIEW - - """ - Created the repository - """ - REPOSITORY -} - -""" -An edge in a connection. -""" -type RepositoryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Repository -} - -""" -A subset of repository info. -""" -interface RepositoryInfo { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The description of the repository. - """ - description: String - - """ - The description of the repository rendered to HTML. - """ - descriptionHTML: HTML! - - """ - Returns how many forks there are of this repository in the whole network. - """ - forkCount: Int! - - """ - Indicates if the repository has issues feature enabled. - """ - hasIssuesEnabled: Boolean! - - """ - Indicates if the repository has the Projects feature enabled. - """ - hasProjectsEnabled: Boolean! - - """ - Indicates if the repository has wiki feature enabled. - """ - hasWikiEnabled: Boolean! - - """ - The repository's URL. - """ - homepageUrl: URI - - """ - Indicates if the repository is unmaintained. - """ - isArchived: Boolean! - - """ - Identifies if the repository is a fork. - """ - isFork: Boolean! - - """ - Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - """ - isInOrganization: Boolean! - - """ - Indicates if the repository has been locked or not. - """ - isLocked: Boolean! - - """ - Identifies if the repository is a mirror. - """ - isMirror: Boolean! - - """ - Identifies if the repository is private. - """ - isPrivate: Boolean! - - """ - Identifies if the repository is a template that can be used to generate new repositories. - """ - isTemplate: Boolean! - - """ - The license associated with the repository - """ - licenseInfo: License - - """ - The reason the repository has been locked. - """ - lockReason: RepositoryLockReason - - """ - The repository's original mirror URL. - """ - mirrorUrl: URI - - """ - The name of the repository. - """ - name: String! - - """ - The repository's name with owner. - """ - nameWithOwner: String! - - """ - The image used to represent this repository in Open Graph data. - """ - openGraphImageUrl: URI! - - """ - The User owner of the repository. - """ - owner: RepositoryOwner! - - """ - Identifies when the repository was last pushed to. - """ - pushedAt: DateTime - - """ - The HTTP path for this repository - """ - resourcePath: URI! - - """ - A description of the repository, rendered to HTML without any links in it. - """ - shortDescriptionHTML( - """ - How many characters to return. - """ - limit: Int = 200 - ): HTML! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this repository - """ - url: URI! - - """ - Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - """ - usesCustomOpenGraphImage: Boolean! -} - -""" -Repository interaction limit that applies to this object. -""" -type RepositoryInteractionAbility { - """ - The time the currently active limit expires. - """ - expiresAt: DateTime - - """ - The current limit that is enabled on this object. - """ - limit: RepositoryInteractionLimit! - - """ - The origin of the currently active interaction limit. - """ - origin: RepositoryInteractionLimitOrigin! -} - -""" -A repository interaction limit. -""" -enum RepositoryInteractionLimit { - """ - Users that are not collaborators will not be able to interact with the repository. - """ - COLLABORATORS_ONLY - - """ - Users that have not previously committed to a repository’s default branch will be unable to interact with the repository. - """ - CONTRIBUTORS_ONLY - - """ - Users that have recently created their account will be unable to interact with the repository. - """ - EXISTING_USERS - - """ - No interaction limits are enabled. - """ - NO_LIMIT -} - -""" -The length for a repository interaction limit to be enabled for. -""" -enum RepositoryInteractionLimitExpiry { - """ - The interaction limit will expire after 1 day. - """ - ONE_DAY - - """ - The interaction limit will expire after 1 month. - """ - ONE_MONTH - - """ - The interaction limit will expire after 1 week. - """ - ONE_WEEK - - """ - The interaction limit will expire after 6 months. - """ - SIX_MONTHS - - """ - The interaction limit will expire after 3 days. - """ - THREE_DAYS -} - -""" -Indicates where an interaction limit is configured. -""" -enum RepositoryInteractionLimitOrigin { - """ - A limit that is configured at the organization level. - """ - ORGANIZATION - - """ - A limit that is configured at the repository level. - """ - REPOSITORY - - """ - A limit that is configured at the user-wide level. - """ - USER -} - -""" -An invitation for a user to be added to a repository. -""" -type RepositoryInvitation implements Node { - """ - The email address that received the invitation. - """ - email: String - id: ID! - - """ - The user who received the invitation. - """ - invitee: User - - """ - The user who created the invitation. - """ - inviter: User! - - """ - The permalink for this repository invitation. - """ - permalink: URI! - - """ - The permission granted on this repository by this invitation. - """ - permission: RepositoryPermission! - - """ - The Repository the user is invited to. - """ - repository: RepositoryInfo -} - -""" -The connection type for RepositoryInvitation. -""" -type RepositoryInvitationConnection { - """ - A list of edges. - """ - edges: [RepositoryInvitationEdge] - - """ - A list of nodes. - """ - nodes: [RepositoryInvitation] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type RepositoryInvitationEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: RepositoryInvitation -} - -""" -Ordering options for repository invitation connections. -""" -input RepositoryInvitationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order repository invitations by. - """ - field: RepositoryInvitationOrderField! -} - -""" -Properties by which repository invitation connections can be ordered. -""" -enum RepositoryInvitationOrderField { - """ - Order repository invitations by creation time - """ - CREATED_AT - - """ - Order repository invitations by invitee login - """ - INVITEE_LOGIN @deprecated(reason: "`INVITEE_LOGIN` is no longer a valid field value. Repository invitations can now be associated with an email, not only an invitee. Removal on 2020-10-01 UTC.") -} - -""" -The possible reasons a given repository could be in a locked state. -""" -enum RepositoryLockReason { - """ - The repository is locked due to a billing related reason. - """ - BILLING - - """ - The repository is locked due to a migration. - """ - MIGRATING - - """ - The repository is locked due to a move. - """ - MOVING - - """ - The repository is locked due to a rename. - """ - RENAME -} - -""" -Represents a object that belongs to a repository. -""" -interface RepositoryNode { - """ - The repository associated with this node. - """ - repository: Repository! -} - -""" -Ordering options for repository connections -""" -input RepositoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order repositories by. - """ - field: RepositoryOrderField! -} - -""" -Properties by which repository connections can be ordered. -""" -enum RepositoryOrderField { - """ - Order repositories by creation time - """ - CREATED_AT - - """ - Order repositories by name - """ - NAME - - """ - Order repositories by push time - """ - PUSHED_AT - - """ - Order repositories by number of stargazers - """ - STARGAZERS - - """ - Order repositories by update time - """ - UPDATED_AT -} - -""" -Represents an owner of a Repository. -""" -interface RepositoryOwner { - """ - A URL pointing to the owner's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - id: ID! - - """ - The username used to login. - """ - login: String! - - """ - A list of repositories that the user owns. - """ - repositories( - """ - Array of viewer's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - current viewer owns. - """ - affiliations: [RepositoryAffiliation] - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If non-null, filters repositories according to whether they are forks of another repository - """ - isFork: Boolean - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - Array of owner's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - organization or user being viewed owns. - """ - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - Find Repository. - """ - repository( - """ - Name of Repository to find. - """ - name: String! - ): Repository - - """ - The HTTP URL for the owner. - """ - resourcePath: URI! - - """ - The HTTP URL for the owner. - """ - url: URI! -} - -""" -The access level to a repository -""" -enum RepositoryPermission { - """ - Can read, clone, and push to this repository. Can also manage issues, pull - requests, and repository settings, including adding collaborators - """ - ADMIN - - """ - Can read, clone, and push to this repository. They can also manage issues, pull requests, and some repository settings - """ - MAINTAIN - - """ - Can read and clone this repository. Can also open and comment on issues and pull requests - """ - READ - - """ - Can read and clone this repository. Can also manage issues and pull requests - """ - TRIAGE - - """ - Can read, clone, and push to this repository. Can also manage issues and pull requests - """ - WRITE -} - -""" -The privacy of a repository -""" -enum RepositoryPrivacy { - """ - Private - """ - PRIVATE - - """ - Public - """ - PUBLIC -} - -""" -A repository-topic connects a repository to a topic. -""" -type RepositoryTopic implements Node & UniformResourceLocatable { - id: ID! - - """ - The HTTP path for this repository-topic. - """ - resourcePath: URI! - - """ - The topic. - """ - topic: Topic! - - """ - The HTTP URL for this repository-topic. - """ - url: URI! -} - -""" -The connection type for RepositoryTopic. -""" -type RepositoryTopicConnection { - """ - A list of edges. - """ - edges: [RepositoryTopicEdge] - - """ - A list of nodes. - """ - nodes: [RepositoryTopic] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type RepositoryTopicEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: RepositoryTopic -} - -""" -The repository's visibility level. -""" -enum RepositoryVisibility { - """ - The repository is visible only to users in the same business. - """ - INTERNAL - - """ - The repository is visible only to those with explicit access. - """ - PRIVATE - - """ - The repository is visible to everyone. - """ - PUBLIC -} - -""" -Audit log entry for a repository_visibility_change.disable event. -""" -type RepositoryVisibilityChangeDisableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a repository_visibility_change.enable event. -""" -type RepositoryVisibilityChangeEnableAuditEntry implements AuditEntry & EnterpriseAuditEntryData & Node & OrganizationAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - - """ - The HTTP path for this enterprise. - """ - enterpriseResourcePath: URI - - """ - The slug of the enterprise. - """ - enterpriseSlug: String - - """ - The HTTP URL for this enterprise. - """ - enterpriseUrl: URI - id: ID! - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -A alert for a repository with an affected vulnerability. -""" -type RepositoryVulnerabilityAlert implements Node & RepositoryNode { - """ - When was the alert created? - """ - createdAt: DateTime! - - """ - The reason the alert was dismissed - """ - dismissReason: String - - """ - When was the alert dimissed? - """ - dismissedAt: DateTime - - """ - The user who dismissed the alert - """ - dismisser: User - id: ID! - - """ - The associated repository - """ - repository: Repository! - - """ - The associated security advisory - """ - securityAdvisory: SecurityAdvisory - - """ - The associated security vulnerablity - """ - securityVulnerability: SecurityVulnerability - - """ - The vulnerable manifest filename - """ - vulnerableManifestFilename: String! - - """ - The vulnerable manifest path - """ - vulnerableManifestPath: String! - - """ - The vulnerable requirements - """ - vulnerableRequirements: String -} - -""" -The connection type for RepositoryVulnerabilityAlert. -""" -type RepositoryVulnerabilityAlertConnection { - """ - A list of edges. - """ - edges: [RepositoryVulnerabilityAlertEdge] - - """ - A list of nodes. - """ - nodes: [RepositoryVulnerabilityAlert] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type RepositoryVulnerabilityAlertEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: RepositoryVulnerabilityAlert -} - -""" -Autogenerated input type of RequestReviews -""" -input RequestReviewsInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the pull request to modify. - """ - pullRequestId: ID! - - """ - The Node IDs of the team to request. - """ - teamIds: [ID!] - - """ - Add users to the set rather than replace. - """ - union: Boolean - - """ - The Node IDs of the user to request. - """ - userIds: [ID!] -} - -""" -Autogenerated return type of RequestReviews -""" -type RequestReviewsPayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The pull request that is getting requests. - """ - pullRequest: PullRequest - - """ - The edge from the pull request to the requested reviewers. - """ - requestedReviewersEdge: UserEdge -} - -""" -The possible states that can be requested when creating a check run. -""" -enum RequestableCheckStatusState { - """ - The check suite or run has been completed. - """ - COMPLETED - - """ - The check suite or run is in progress. - """ - IN_PROGRESS - - """ - The check suite or run has been queued. - """ - QUEUED -} - -""" -Types that can be requested reviewers. -""" -union RequestedReviewer = Mannequin | Team | User - -""" -Autogenerated input type of RerequestCheckSuite -""" -input RerequestCheckSuiteInput { - """ - The Node ID of the check suite. - """ - checkSuiteId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the repository. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of RerequestCheckSuite -""" -type RerequestCheckSuitePayload { - """ - The requested check suite. - """ - checkSuite: CheckSuite - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of ResolveReviewThread -""" -input ResolveReviewThreadInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the thread to resolve - """ - threadId: ID! -} - -""" -Autogenerated return type of ResolveReviewThread -""" -type ResolveReviewThreadPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The thread to resolve. - """ - thread: PullRequestReviewThread -} - -""" -Represents a private contribution a user made on GitHub. -""" -type RestrictedContribution implements Contribution { - """ - Whether this contribution is associated with a record you do not have access to. For - example, your own 'first issue' contribution may have been made on a repository you can no - longer access. - """ - isRestricted: Boolean! - - """ - When this contribution was made. - """ - occurredAt: DateTime! - - """ - The HTTP path for this contribution. - """ - resourcePath: URI! - - """ - The HTTP URL for this contribution. - """ - url: URI! - - """ - The user who made this contribution. - """ - user: User! -} - -""" -A team or user who has the ability to dismiss a review on a protected branch. -""" -type ReviewDismissalAllowance implements Node { - """ - The actor that can dismiss. - """ - actor: ReviewDismissalAllowanceActor - - """ - Identifies the branch protection rule associated with the allowed user or team. - """ - branchProtectionRule: BranchProtectionRule - id: ID! -} - -""" -Types that can be an actor. -""" -union ReviewDismissalAllowanceActor = Team | User - -""" -The connection type for ReviewDismissalAllowance. -""" -type ReviewDismissalAllowanceConnection { - """ - A list of edges. - """ - edges: [ReviewDismissalAllowanceEdge] - - """ - A list of nodes. - """ - nodes: [ReviewDismissalAllowance] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ReviewDismissalAllowanceEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ReviewDismissalAllowance -} - -""" -Represents a 'review_dismissed' event on a given issue or pull request. -""" -type ReviewDismissedEvent implements Node & UniformResourceLocatable { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - Identifies the optional message associated with the 'review_dismissed' event. - """ - dismissalMessage: String - - """ - Identifies the optional message associated with the event, rendered to HTML. - """ - dismissalMessageHTML: String - id: ID! - - """ - Identifies the previous state of the review with the 'review_dismissed' event. - """ - previousReviewState: PullRequestReviewState! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - Identifies the commit which caused the review to become stale. - """ - pullRequestCommit: PullRequestCommit - - """ - The HTTP path for this review dismissed event. - """ - resourcePath: URI! - - """ - Identifies the review associated with the 'review_dismissed' event. - """ - review: PullRequestReview - - """ - The HTTP URL for this review dismissed event. - """ - url: URI! -} - -""" -A request for a user to review a pull request. -""" -type ReviewRequest implements Node { - """ - Whether this request was created for a code owner - """ - asCodeOwner: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - Identifies the pull request associated with this review request. - """ - pullRequest: PullRequest! - - """ - The reviewer that is requested. - """ - requestedReviewer: RequestedReviewer -} - -""" -The connection type for ReviewRequest. -""" -type ReviewRequestConnection { - """ - A list of edges. - """ - edges: [ReviewRequestEdge] - - """ - A list of nodes. - """ - nodes: [ReviewRequest] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type ReviewRequestEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: ReviewRequest -} - -""" -Represents an 'review_request_removed' event on a given pull request. -""" -type ReviewRequestRemovedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - Identifies the reviewer whose review request was removed. - """ - requestedReviewer: RequestedReviewer -} - -""" -Represents an 'review_requested' event on a given pull request. -""" -type ReviewRequestedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - PullRequest referenced by event. - """ - pullRequest: PullRequest! - - """ - Identifies the reviewer whose review was requested. - """ - requestedReviewer: RequestedReviewer -} - -""" -A hovercard context with a message describing the current code review state of the pull -request. -""" -type ReviewStatusHovercardContext implements HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! - - """ - The current status of the pull request with respect to code review. - """ - reviewDecision: PullRequestReviewDecision -} - -""" -The possible digest algorithms used to sign SAML requests for an identity provider. -""" -enum SamlDigestAlgorithm { - """ - SHA1 - """ - SHA1 - - """ - SHA256 - """ - SHA256 - - """ - SHA384 - """ - SHA384 - - """ - SHA512 - """ - SHA512 -} - -""" -The possible signature algorithms used to sign SAML requests for a Identity Provider. -""" -enum SamlSignatureAlgorithm { - """ - RSA-SHA1 - """ - RSA_SHA1 - - """ - RSA-SHA256 - """ - RSA_SHA256 - - """ - RSA-SHA384 - """ - RSA_SHA384 - - """ - RSA-SHA512 - """ - RSA_SHA512 -} - -""" -A Saved Reply is text a user can use to reply quickly. -""" -type SavedReply implements Node { - """ - The body of the saved reply. - """ - body: String! - - """ - The saved reply body rendered to HTML. - """ - bodyHTML: HTML! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - id: ID! - - """ - The title of the saved reply. - """ - title: String! - - """ - The user that saved this reply. - """ - user: Actor -} - -""" -The connection type for SavedReply. -""" -type SavedReplyConnection { - """ - A list of edges. - """ - edges: [SavedReplyEdge] - - """ - A list of nodes. - """ - nodes: [SavedReply] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type SavedReplyEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: SavedReply -} - -""" -Ordering options for saved reply connections. -""" -input SavedReplyOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order saved replies by. - """ - field: SavedReplyOrderField! -} - -""" -Properties by which saved reply connections can be ordered. -""" -enum SavedReplyOrderField { - """ - Order saved reply by when they were updated. - """ - UPDATED_AT -} - -""" -The results of a search. -""" -union SearchResultItem = App | Issue | MarketplaceListing | Organization | PullRequest | Repository | User - -""" -A list of results that matched against a search query. -""" -type SearchResultItemConnection { - """ - The number of pieces of code that matched the search query. - """ - codeCount: Int! - - """ - A list of edges. - """ - edges: [SearchResultItemEdge] - - """ - The number of issues that matched the search query. - """ - issueCount: Int! - - """ - A list of nodes. - """ - nodes: [SearchResultItem] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - The number of repositories that matched the search query. - """ - repositoryCount: Int! - - """ - The number of users that matched the search query. - """ - userCount: Int! - - """ - The number of wiki pages that matched the search query. - """ - wikiCount: Int! -} - -""" -An edge in a connection. -""" -type SearchResultItemEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: SearchResultItem - - """ - Text matches on the result found. - """ - textMatches: [TextMatch] -} - -""" -Represents the individual results of a search. -""" -enum SearchType { - """ - Returns results matching issues in repositories. - """ - ISSUE - - """ - Returns results matching repositories. - """ - REPOSITORY - - """ - Returns results matching users and organizations on GitHub. - """ - USER -} - -""" -A GitHub Security Advisory -""" -type SecurityAdvisory implements Node { - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - This is a long plaintext description of the advisory - """ - description: String! - - """ - The GitHub Security Advisory ID - """ - ghsaId: String! - id: ID! - - """ - A list of identifiers for this advisory - """ - identifiers: [SecurityAdvisoryIdentifier!]! - - """ - The organization that originated the advisory - """ - origin: String! - - """ - The permalink for the advisory - """ - permalink: URI - - """ - When the advisory was published - """ - publishedAt: DateTime! - - """ - A list of references for this advisory - """ - references: [SecurityAdvisoryReference!]! - - """ - The severity of the advisory - """ - severity: SecurityAdvisorySeverity! - - """ - A short plaintext summary of the advisory - """ - summary: String! - - """ - When the advisory was last updated - """ - updatedAt: DateTime! - - """ - Vulnerabilities associated with this Advisory - """ - vulnerabilities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - An ecosystem to filter vulnerabilities by. - """ - ecosystem: SecurityAdvisoryEcosystem - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for the returned topics. - """ - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} - - """ - A package name to filter vulnerabilities by. - """ - package: String - - """ - A list of severities to filter vulnerabilities by. - """ - severities: [SecurityAdvisorySeverity!] - ): SecurityVulnerabilityConnection! - - """ - When the advisory was withdrawn, if it has been withdrawn - """ - withdrawnAt: DateTime -} - -""" -The connection type for SecurityAdvisory. -""" -type SecurityAdvisoryConnection { - """ - A list of edges. - """ - edges: [SecurityAdvisoryEdge] - - """ - A list of nodes. - """ - nodes: [SecurityAdvisory] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -The possible ecosystems of a security vulnerability's package. -""" -enum SecurityAdvisoryEcosystem { - """ - PHP packages hosted at packagist.org - """ - COMPOSER - - """ - Java artifacts hosted at the Maven central repository - """ - MAVEN - - """ - JavaScript packages hosted at npmjs.com - """ - NPM - - """ - .NET packages hosted at the NuGet Gallery - """ - NUGET - - """ - Python packages hosted at PyPI.org - """ - PIP - - """ - Ruby gems hosted at RubyGems.org - """ - RUBYGEMS -} - -""" -An edge in a connection. -""" -type SecurityAdvisoryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: SecurityAdvisory -} - -""" -A GitHub Security Advisory Identifier -""" -type SecurityAdvisoryIdentifier { - """ - The identifier type, e.g. GHSA, CVE - """ - type: String! - - """ - The identifier - """ - value: String! -} - -""" -An advisory identifier to filter results on. -""" -input SecurityAdvisoryIdentifierFilter { - """ - The identifier type. - """ - type: SecurityAdvisoryIdentifierType! - - """ - The identifier string. Supports exact or partial matching. - """ - value: String! -} - -""" -Identifier formats available for advisories. -""" -enum SecurityAdvisoryIdentifierType { - """ - Common Vulnerabilities and Exposures Identifier. - """ - CVE - - """ - GitHub Security Advisory ID. - """ - GHSA -} - -""" -Ordering options for security advisory connections -""" -input SecurityAdvisoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order security advisories by. - """ - field: SecurityAdvisoryOrderField! -} - -""" -Properties by which security advisory connections can be ordered. -""" -enum SecurityAdvisoryOrderField { - """ - Order advisories by publication time - """ - PUBLISHED_AT - - """ - Order advisories by update time - """ - UPDATED_AT -} - -""" -An individual package -""" -type SecurityAdvisoryPackage { - """ - The ecosystem the package belongs to, e.g. RUBYGEMS, NPM - """ - ecosystem: SecurityAdvisoryEcosystem! - - """ - The package name - """ - name: String! -} - -""" -An individual package version -""" -type SecurityAdvisoryPackageVersion { - """ - The package name or version - """ - identifier: String! -} - -""" -A GitHub Security Advisory Reference -""" -type SecurityAdvisoryReference { - """ - A publicly accessible reference - """ - url: URI! -} - -""" -Severity of the vulnerability. -""" -enum SecurityAdvisorySeverity { - """ - Critical. - """ - CRITICAL - - """ - High. - """ - HIGH - - """ - Low. - """ - LOW - - """ - Moderate. - """ - MODERATE -} - -""" -An individual vulnerability within an Advisory -""" -type SecurityVulnerability { - """ - The Advisory associated with this Vulnerability - """ - advisory: SecurityAdvisory! - - """ - The first version containing a fix for the vulnerability - """ - firstPatchedVersion: SecurityAdvisoryPackageVersion - - """ - A description of the vulnerable package - """ - package: SecurityAdvisoryPackage! - - """ - The severity of the vulnerability within this package - """ - severity: SecurityAdvisorySeverity! - - """ - When the vulnerability was last updated - """ - updatedAt: DateTime! - - """ - A string that describes the vulnerable package versions. - This string follows a basic syntax with a few forms. - + `= 0.2.0` denotes a single vulnerable version. - + `<= 1.0.8` denotes a version range up to and including the specified version - + `< 0.1.11` denotes a version range up to, but excluding, the specified version - + `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version. - + `>= 0.0.1` denotes a version range with a known minimum, but no known maximum - """ - vulnerableVersionRange: String! -} - -""" -The connection type for SecurityVulnerability. -""" -type SecurityVulnerabilityConnection { - """ - A list of edges. - """ - edges: [SecurityVulnerabilityEdge] - - """ - A list of nodes. - """ - nodes: [SecurityVulnerability] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type SecurityVulnerabilityEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: SecurityVulnerability -} - -""" -Ordering options for security vulnerability connections -""" -input SecurityVulnerabilityOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order security vulnerabilities by. - """ - field: SecurityVulnerabilityOrderField! -} - -""" -Properties by which security vulnerability connections can be ordered. -""" -enum SecurityVulnerabilityOrderField { - """ - Order vulnerability by update time - """ - UPDATED_AT -} - -""" -Autogenerated input type of SetEnterpriseIdentityProvider -""" -input SetEnterpriseIdentityProviderInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The digest algorithm used to sign SAML requests for the identity provider. - """ - digestMethod: SamlDigestAlgorithm! - - """ - The ID of the enterprise on which to set an identity provider. - """ - enterpriseId: ID! - - """ - The x509 certificate used by the identity provider to sign assertions and responses. - """ - idpCertificate: String! - - """ - The Issuer Entity ID for the SAML identity provider - """ - issuer: String - - """ - The signature algorithm used to sign SAML requests for the identity provider. - """ - signatureMethod: SamlSignatureAlgorithm! - - """ - The URL endpoint for the identity provider's SAML SSO. - """ - ssoUrl: URI! -} - -""" -Autogenerated return type of SetEnterpriseIdentityProvider -""" -type SetEnterpriseIdentityProviderPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The identity provider for the enterprise. - """ - identityProvider: EnterpriseIdentityProvider -} - -""" -Autogenerated input type of SetOrganizationInteractionLimit -""" -input SetOrganizationInteractionLimitInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - When this limit should expire. - """ - expiry: RepositoryInteractionLimitExpiry - - """ - The limit to set. - """ - limit: RepositoryInteractionLimit! - - """ - The ID of the organization to set a limit for. - """ - organizationId: ID! -} - -""" -Autogenerated return type of SetOrganizationInteractionLimit -""" -type SetOrganizationInteractionLimitPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The organization that the interaction limit was set for. - """ - organization: Organization -} - -""" -Autogenerated input type of SetRepositoryInteractionLimit -""" -input SetRepositoryInteractionLimitInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - When this limit should expire. - """ - expiry: RepositoryInteractionLimitExpiry - - """ - The limit to set. - """ - limit: RepositoryInteractionLimit! - - """ - The ID of the repository to set a limit for. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of SetRepositoryInteractionLimit -""" -type SetRepositoryInteractionLimitPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The repository that the interaction limit was set for. - """ - repository: Repository -} - -""" -Autogenerated input type of SetUserInteractionLimit -""" -input SetUserInteractionLimitInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - When this limit should expire. - """ - expiry: RepositoryInteractionLimitExpiry - - """ - The limit to set. - """ - limit: RepositoryInteractionLimit! - - """ - The ID of the user to set a limit for. - """ - userId: ID! -} - -""" -Autogenerated return type of SetUserInteractionLimit -""" -type SetUserInteractionLimitPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The user that the interaction limit was set for. - """ - user: User -} - -""" -Represents an S/MIME signature on a Commit or Tag. -""" -type SmimeSignature implements GitSignature { - """ - Email used to sign this object. - """ - email: String! - - """ - True if the signature is valid and verified by GitHub. - """ - isValid: Boolean! - - """ - Payload for GPG signing object. Raw ODB object without the signature header. - """ - payload: String! - - """ - ASCII-armored signature header from object. - """ - signature: String! - - """ - GitHub user corresponding to the email signing this commit. - """ - signer: User - - """ - The state of this signature. `VALID` if signature is valid and verified by - GitHub, otherwise represents reason why signature is considered invalid. - """ - state: GitSignatureState! - - """ - True if the signature was made with GitHub's signing key. - """ - wasSignedByGitHub: Boolean! -} - -""" -Entites that can sponsor others via GitHub Sponsors -""" -union Sponsor = Organization | User - -""" -Entities that can be sponsored through GitHub Sponsors -""" -interface Sponsorable { - """ - True if this user/organization has a GitHub Sponsors listing. - """ - hasSponsorsListing: Boolean! - - """ - True if the viewer is sponsored by this user/organization. - """ - isSponsoringViewer: Boolean! - - """ - The GitHub Sponsors listing for this user or organization. - """ - sponsorsListing: SponsorsListing - - """ - This object's sponsorships as the maintainer. - """ - sponsorshipsAsMaintainer( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Whether or not to include private sponsorships in the result set - """ - includePrivate: Boolean = false - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - This object's sponsorships as the sponsor. - """ - sponsorshipsAsSponsor( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - Whether or not the viewer is able to sponsor this user/organization. - """ - viewerCanSponsor: Boolean! - - """ - True if the viewer is sponsoring this user/organization. - """ - viewerIsSponsoring: Boolean! -} - -""" -A GitHub Sponsors listing. -""" -type SponsorsListing implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The full description of the listing. - """ - fullDescription: String! - - """ - The full description of the listing rendered to HTML. - """ - fullDescriptionHTML: HTML! - id: ID! - - """ - The listing's full name. - """ - name: String! - - """ - The short description of the listing. - """ - shortDescription: String! - - """ - The short name of the listing. - """ - slug: String! - - """ - The published tiers for this GitHub Sponsors listing. - """ - tiers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Sponsors tiers returned from the connection. - """ - orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC} - ): SponsorsTierConnection -} - -""" -A GitHub Sponsors tier associated with a GitHub Sponsors listing. -""" -type SponsorsTier implements Node { - """ - SponsorsTier information only visible to users that can administer the associated Sponsors listing. - """ - adminInfo: SponsorsTierAdminInfo - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The description of the tier. - """ - description: String! - - """ - The tier description rendered to HTML - """ - descriptionHTML: HTML! - id: ID! - - """ - How much this tier costs per month in cents. - """ - monthlyPriceInCents: Int! - - """ - How much this tier costs per month in dollars. - """ - monthlyPriceInDollars: Int! - - """ - The name of the tier. - """ - name: String! - - """ - The sponsors listing that this tier belongs to. - """ - sponsorsListing: SponsorsListing! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -SponsorsTier information only visible to users that can administer the associated Sponsors listing. -""" -type SponsorsTierAdminInfo { - """ - The sponsorships associated with this tier. - """ - sponsorships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Whether or not to include private sponsorships in the result set - """ - includePrivate: Boolean = false - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! -} - -""" -The connection type for SponsorsTier. -""" -type SponsorsTierConnection { - """ - A list of edges. - """ - edges: [SponsorsTierEdge] - - """ - A list of nodes. - """ - nodes: [SponsorsTier] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type SponsorsTierEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: SponsorsTier -} - -""" -Ordering options for Sponsors tiers connections. -""" -input SponsorsTierOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order tiers by. - """ - field: SponsorsTierOrderField! -} - -""" -Properties by which Sponsors tiers connections can be ordered. -""" -enum SponsorsTierOrderField { - """ - Order tiers by creation time. - """ - CREATED_AT - - """ - Order tiers by their monthly price in cents - """ - MONTHLY_PRICE_IN_CENTS -} - -""" -A sponsorship relationship between a sponsor and a maintainer -""" -type Sponsorship implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The entity that is being sponsored - """ - maintainer: User! @deprecated(reason: "`Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC.") - - """ - The privacy level for this sponsorship. - """ - privacyLevel: SponsorshipPrivacy! - - """ - The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. - """ - sponsor: User @deprecated(reason: "`Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC.") - - """ - The user or organization that is sponsoring, if you have permission to view them. - """ - sponsorEntity: Sponsor - - """ - The entity that is being sponsored - """ - sponsorable: Sponsorable! - - """ - The associated sponsorship tier - """ - tier: SponsorsTier -} - -""" -The connection type for Sponsorship. -""" -type SponsorshipConnection { - """ - A list of edges. - """ - edges: [SponsorshipEdge] - - """ - A list of nodes. - """ - nodes: [Sponsorship] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type SponsorshipEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Sponsorship -} - -""" -Ordering options for sponsorship connections. -""" -input SponsorshipOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order sponsorship by. - """ - field: SponsorshipOrderField! -} - -""" -Properties by which sponsorship connections can be ordered. -""" -enum SponsorshipOrderField { - """ - Order sponsorship by creation time. - """ - CREATED_AT -} - -""" -The privacy of a sponsorship -""" -enum SponsorshipPrivacy { - """ - Private - """ - PRIVATE - - """ - Public - """ - PUBLIC -} - -""" -Ways in which star connections can be ordered. -""" -input StarOrder { - """ - The direction in which to order nodes. - """ - direction: OrderDirection! - - """ - The field in which to order nodes by. - """ - field: StarOrderField! -} - -""" -Properties by which star connections can be ordered. -""" -enum StarOrderField { - """ - Allows ordering a list of stars by when they were created. - """ - STARRED_AT -} - -""" -The connection type for User. -""" -type StargazerConnection { - """ - A list of edges. - """ - edges: [StargazerEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a user that's starred a repository. -""" -type StargazerEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - node: User! - - """ - Identifies when the item was starred. - """ - starredAt: DateTime! -} - -""" -Things that can be starred. -""" -interface Starrable { - id: ID! - - """ - Returns a count of how many stargazers there are on this object - """ - stargazerCount: Int! - - """ - A list of users who have starred this starrable. - """ - stargazers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: StarOrder - ): StargazerConnection! - - """ - Returns a boolean indicating whether the viewing user has starred this starrable. - """ - viewerHasStarred: Boolean! -} - -""" -The connection type for Repository. -""" -type StarredRepositoryConnection { - """ - A list of edges. - """ - edges: [StarredRepositoryEdge] - - """ - Is the list of stars for this user truncated? This is true for users that have many stars. - """ - isOverLimit: Boolean! - - """ - A list of nodes. - """ - nodes: [Repository] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a starred repository. -""" -type StarredRepositoryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - node: Repository! - - """ - Identifies when the item was starred. - """ - starredAt: DateTime! -} - -""" -Represents a commit status. -""" -type Status implements Node { - """ - A list of status contexts and check runs for this commit. - """ - combinedContexts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): StatusCheckRollupContextConnection! - - """ - The commit this status is attached to. - """ - commit: Commit - - """ - Looks up an individual status context by context name. - """ - context( - """ - The context name. - """ - name: String! - ): StatusContext - - """ - The individual status contexts for this commit. - """ - contexts: [StatusContext!]! - id: ID! - - """ - The combined commit status. - """ - state: StatusState! -} - -""" -Represents the rollup for both the check runs and status for a commit. -""" -type StatusCheckRollup implements Node { - """ - The commit the status and check runs are attached to. - """ - commit: Commit - - """ - A list of status contexts and check runs for this commit. - """ - contexts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): StatusCheckRollupContextConnection! - id: ID! - - """ - The combined status for the commit. - """ - state: StatusState! -} - -""" -Types that can be inside a StatusCheckRollup context. -""" -union StatusCheckRollupContext = CheckRun | StatusContext - -""" -The connection type for StatusCheckRollupContext. -""" -type StatusCheckRollupContextConnection { - """ - A list of edges. - """ - edges: [StatusCheckRollupContextEdge] - - """ - A list of nodes. - """ - nodes: [StatusCheckRollupContext] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type StatusCheckRollupContextEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: StatusCheckRollupContext -} - -""" -Represents an individual commit status context -""" -type StatusContext implements Node { - """ - The avatar of the OAuth application or the user that created the status - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int = 40 - ): URI - - """ - This commit this status context is attached to. - """ - commit: Commit - - """ - The name of this status context. - """ - context: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The actor who created this status context. - """ - creator: Actor - - """ - The description for this status context. - """ - description: String - id: ID! - - """ - The state of this status context. - """ - state: StatusState! - - """ - The URL for this status context. - """ - targetUrl: URI -} - -""" -The possible commit status states. -""" -enum StatusState { - """ - Status is errored. - """ - ERROR - - """ - Status is expected. - """ - EXPECTED - - """ - Status is failing. - """ - FAILURE - - """ - Status is pending. - """ - PENDING - - """ - Status is successful. - """ - SUCCESS -} - -""" -Autogenerated input type of SubmitPullRequestReview -""" -input SubmitPullRequestReviewInput { - """ - The text field to set on the Pull Request Review. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The event to send to the Pull Request Review. - """ - event: PullRequestReviewEvent! - - """ - The Pull Request ID to submit any pending reviews. - """ - pullRequestId: ID - - """ - The Pull Request Review ID to submit. - """ - pullRequestReviewId: ID -} - -""" -Autogenerated return type of SubmitPullRequestReview -""" -type SubmitPullRequestReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The submitted pull request review. - """ - pullRequestReview: PullRequestReview -} - -""" -A pointer to a repository at a specific revision embedded inside another repository. -""" -type Submodule { - """ - The branch of the upstream submodule for tracking updates - """ - branch: String - - """ - The git URL of the submodule repository - """ - gitUrl: URI! - - """ - The name of the submodule in .gitmodules - """ - name: String! - - """ - The path in the superproject that this submodule is located in - """ - path: String! - - """ - The commit revision of the subproject repository being tracked by the submodule - """ - subprojectCommitOid: GitObjectID -} - -""" -The connection type for Submodule. -""" -type SubmoduleConnection { - """ - A list of edges. - """ - edges: [SubmoduleEdge] - - """ - A list of nodes. - """ - nodes: [Submodule] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type SubmoduleEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Submodule -} - -""" -Entities that can be subscribed to for web and email notifications. -""" -interface Subscribable { - id: ID! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState -} - -""" -Represents a 'subscribed' event on a given `Subscribable`. -""" -type SubscribedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Object referenced by event. - """ - subscribable: Subscribable! -} - -""" -The possible states of a subscription. -""" -enum SubscriptionState { - """ - The User is never notified. - """ - IGNORED - - """ - The User is notified of all conversations. - """ - SUBSCRIBED - - """ - The User is only notified when participating or @mentioned. - """ - UNSUBSCRIBED -} - -""" -A suggestion to review a pull request based on a user's commit history and review comments. -""" -type SuggestedReviewer { - """ - Is this suggestion based on past commits? - """ - isAuthor: Boolean! - - """ - Is this suggestion based on past review comments? - """ - isCommenter: Boolean! - - """ - Identifies the user suggested to review the pull request. - """ - reviewer: User! -} - -""" -Represents a Git tag. -""" -type Tag implements GitObject & Node { - """ - An abbreviated version of the Git object ID - """ - abbreviatedOid: String! - - """ - The HTTP path for this Git object - """ - commitResourcePath: URI! - - """ - The HTTP URL for this Git object - """ - commitUrl: URI! - id: ID! - - """ - The Git tag message. - """ - message: String - - """ - The Git tag name. - """ - name: String! - - """ - The Git object ID - """ - oid: GitObjectID! - - """ - The Repository the Git object belongs to - """ - repository: Repository! - - """ - Details about the tag author. - """ - tagger: GitActor - - """ - The Git object the tag points to. - """ - target: GitObject! -} - -""" -A team of users in an organization. -""" -type Team implements MemberStatusable & Node & Subscribable { - """ - A list of teams that are ancestors of this team. - """ - ancestors( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): TeamConnection! - - """ - A URL pointing to the team's avatar. - """ - avatarUrl( - """ - The size in pixels of the resulting square image. - """ - size: Int = 400 - ): URI - - """ - List of child teams belonging to this team - """ - childTeams( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Whether to list immediate child teams or all descendant child teams. - """ - immediateOnly: Boolean = true - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: TeamOrder - - """ - User logins to filter by - """ - userLogins: [String!] - ): TeamConnection! - - """ - The slug corresponding to the organization and team. - """ - combinedSlug: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The description of the team. - """ - description: String - - """ - Find a team discussion by its number. - """ - discussion( - """ - The sequence number of the discussion to find. - """ - number: Int! - ): TeamDiscussion - - """ - A list of team discussions. - """ - discussions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If provided, filters discussions according to whether or not they are pinned. - """ - isPinned: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: TeamDiscussionOrder - ): TeamDiscussionConnection! - - """ - The HTTP path for team discussions - """ - discussionsResourcePath: URI! - - """ - The HTTP URL for team discussions - """ - discussionsUrl: URI! - - """ - The HTTP path for editing this team - """ - editTeamResourcePath: URI! - - """ - The HTTP URL for editing this team - """ - editTeamUrl: URI! - id: ID! - - """ - A list of pending invitations for users to this team - """ - invitations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): OrganizationInvitationConnection - - """ - Get the status messages members of this entity have set that are either public or visible only to the organization. - """ - memberStatuses( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for user statuses returned from the connection. - """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} - ): UserStatusConnection! - - """ - A list of users who are members of this team. - """ - members( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter by membership type - """ - membership: TeamMembershipType = ALL - - """ - Order for the connection. - """ - orderBy: TeamMemberOrder - - """ - The search string to look for. - """ - query: String - - """ - Filter by team member role - """ - role: TeamMemberRole - ): TeamMemberConnection! - - """ - The HTTP path for the team' members - """ - membersResourcePath: URI! - - """ - The HTTP URL for the team' members - """ - membersUrl: URI! - - """ - The name of the team. - """ - name: String! - - """ - The HTTP path creating a new team - """ - newTeamResourcePath: URI! - - """ - The HTTP URL creating a new team - """ - newTeamUrl: URI! - - """ - The organization that owns this team. - """ - organization: Organization! - - """ - The parent team of the team. - """ - parentTeam: Team - - """ - The level of privacy the team has. - """ - privacy: TeamPrivacy! - - """ - A list of repositories this team has access to. - """ - repositories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for the connection. - """ - orderBy: TeamRepositoryOrder - - """ - The search string to look for. - """ - query: String - ): TeamRepositoryConnection! - - """ - The HTTP path for this team's repositories - """ - repositoriesResourcePath: URI! - - """ - The HTTP URL for this team's repositories - """ - repositoriesUrl: URI! - - """ - The HTTP path for this team - """ - resourcePath: URI! - - """ - The slug corresponding to the team. - """ - slug: String! - - """ - The HTTP path for this team's teams - """ - teamsResourcePath: URI! - - """ - The HTTP URL for this team's teams - """ - teamsUrl: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this team - """ - url: URI! - - """ - Team is adminable by the viewer. - """ - viewerCanAdminister: Boolean! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState -} - -""" -Audit log entry for a team.add_member event. -""" -type TeamAddMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the team was mapped to an LDAP Group. - """ - isLdapMapped: Boolean - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a team.add_repository event. -""" -type TeamAddRepositoryAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the team was mapped to an LDAP Group. - """ - isLdapMapped: Boolean - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Metadata for an audit entry with action team.* -""" -interface TeamAuditEntryData { - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI -} - -""" -Audit log entry for a team.change_parent_team event. -""" -type TeamChangeParentTeamAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the team was mapped to an LDAP Group. - """ - isLdapMapped: Boolean - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The new parent team. - """ - parentTeam: Team - - """ - The name of the new parent team - """ - parentTeamName: String - - """ - The name of the former parent team - """ - parentTeamNameWas: String - - """ - The HTTP path for the parent team - """ - parentTeamResourcePath: URI - - """ - The HTTP URL for the parent team - """ - parentTeamUrl: URI - - """ - The former parent team. - """ - parentTeamWas: Team - - """ - The HTTP path for the previous parent team - """ - parentTeamWasResourcePath: URI - - """ - The HTTP URL for the previous parent team - """ - parentTeamWasUrl: URI - - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The connection type for Team. -""" -type TeamConnection { - """ - A list of edges. - """ - edges: [TeamEdge] - - """ - A list of nodes. - """ - nodes: [Team] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -A team discussion. -""" -type TeamDiscussion implements Comment & Deletable & Node & Reactable & Subscribable & UniformResourceLocatable & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the discussion's team. - """ - authorAssociation: CommentAuthorAssociation! - - """ - The body as Markdown. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - Identifies the discussion body hash. - """ - bodyVersion: String! - - """ - A list of comments on this discussion. - """ - comments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - When provided, filters the connection such that results begin with the comment with this number. - """ - fromComment: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: TeamDiscussionCommentOrder - ): TeamDiscussionCommentConnection! - - """ - The HTTP path for discussion comments - """ - commentsResourcePath: URI! - - """ - The HTTP URL for discussion comments - """ - commentsUrl: URI! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - Whether or not the discussion is pinned. - """ - isPinned: Boolean! - - """ - Whether or not the discussion is only visible to team members and org admins. - """ - isPrivate: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Identifies the discussion within its team. - """ - number: Int! - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The HTTP path for this discussion - """ - resourcePath: URI! - - """ - The team that defines the context of this discussion. - """ - team: Team! - - """ - The title of the discussion - """ - title: String! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this discussion - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Whether or not the current viewer can pin this discussion. - """ - viewerCanPin: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the viewer is able to change their subscription status for the repository. - """ - viewerCanSubscribe: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! - - """ - Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - """ - viewerSubscription: SubscriptionState -} - -""" -A comment on a team discussion. -""" -type TeamDiscussionComment implements Comment & Deletable & Node & Reactable & UniformResourceLocatable & Updatable & UpdatableComment { - """ - The actor who authored the comment. - """ - author: Actor - - """ - Author's association with the comment's team. - """ - authorAssociation: CommentAuthorAssociation! - - """ - The body as Markdown. - """ - body: String! - - """ - The body rendered to HTML. - """ - bodyHTML: HTML! - - """ - The body rendered to text. - """ - bodyText: String! - - """ - The current version of the body content. - """ - bodyVersion: String! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Check if this comment was created via an email reply. - """ - createdViaEmail: Boolean! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The discussion this comment is about. - """ - discussion: TeamDiscussion! - - """ - The actor who edited the comment. - """ - editor: Actor - id: ID! - - """ - Check if this comment was edited and includes an edit with the creation data - """ - includesCreatedEdit: Boolean! - - """ - The moment the editor made the last edit - """ - lastEditedAt: DateTime - - """ - Identifies the comment number. - """ - number: Int! - - """ - Identifies when the comment was published at. - """ - publishedAt: DateTime - - """ - A list of reactions grouped by content left on the subject. - """ - reactionGroups: [ReactionGroup!] - - """ - A list of Reactions left on the Issue. - """ - reactions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Allows filtering Reactions by emoji. - """ - content: ReactionContent - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Allows specifying the order in which reactions are returned. - """ - orderBy: ReactionOrder - ): ReactionConnection! - - """ - The HTTP path for this comment - """ - resourcePath: URI! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this comment - """ - url: URI! - - """ - A list of edits to this content. - """ - userContentEdits( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): UserContentEditConnection - - """ - Check if the current viewer can delete this object. - """ - viewerCanDelete: Boolean! - - """ - Can user react to this subject - """ - viewerCanReact: Boolean! - - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! - - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! - - """ - Did the viewer author this comment. - """ - viewerDidAuthor: Boolean! -} - -""" -The connection type for TeamDiscussionComment. -""" -type TeamDiscussionCommentConnection { - """ - A list of edges. - """ - edges: [TeamDiscussionCommentEdge] - - """ - A list of nodes. - """ - nodes: [TeamDiscussionComment] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type TeamDiscussionCommentEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: TeamDiscussionComment -} - -""" -Ways in which team discussion comment connections can be ordered. -""" -input TeamDiscussionCommentOrder { - """ - The direction in which to order nodes. - """ - direction: OrderDirection! - - """ - The field by which to order nodes. - """ - field: TeamDiscussionCommentOrderField! -} - -""" -Properties by which team discussion comment connections can be ordered. -""" -enum TeamDiscussionCommentOrderField { - """ - Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering). - """ - NUMBER -} - -""" -The connection type for TeamDiscussion. -""" -type TeamDiscussionConnection { - """ - A list of edges. - """ - edges: [TeamDiscussionEdge] - - """ - A list of nodes. - """ - nodes: [TeamDiscussion] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type TeamDiscussionEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: TeamDiscussion -} - -""" -Ways in which team discussion connections can be ordered. -""" -input TeamDiscussionOrder { - """ - The direction in which to order nodes. - """ - direction: OrderDirection! - - """ - The field by which to order nodes. - """ - field: TeamDiscussionOrderField! -} - -""" -Properties by which team discussion connections can be ordered. -""" -enum TeamDiscussionOrderField { - """ - Allows chronological ordering of team discussions. - """ - CREATED_AT -} - -""" -An edge in a connection. -""" -type TeamEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Team -} - -""" -The connection type for User. -""" -type TeamMemberConnection { - """ - A list of edges. - """ - edges: [TeamMemberEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a user who is a member of a team. -""" -type TeamMemberEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The HTTP path to the organization's member access page. - """ - memberAccessResourcePath: URI! - - """ - The HTTP URL to the organization's member access page. - """ - memberAccessUrl: URI! - node: User! - - """ - The role the member has on the team. - """ - role: TeamMemberRole! -} - -""" -Ordering options for team member connections -""" -input TeamMemberOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order team members by. - """ - field: TeamMemberOrderField! -} - -""" -Properties by which team member connections can be ordered. -""" -enum TeamMemberOrderField { - """ - Order team members by creation time - """ - CREATED_AT - - """ - Order team members by login - """ - LOGIN -} - -""" -The possible team member roles; either 'maintainer' or 'member'. -""" -enum TeamMemberRole { - """ - A team maintainer has permission to add and remove team members. - """ - MAINTAINER - - """ - A team member has no administrative permissions on the team. - """ - MEMBER -} - -""" -Defines which types of team members are included in the returned list. Can be one of IMMEDIATE, CHILD_TEAM or ALL. -""" -enum TeamMembershipType { - """ - Includes immediate and child team members for the team. - """ - ALL - - """ - Includes only child team members for the team. - """ - CHILD_TEAM - - """ - Includes only immediate members of the team. - """ - IMMEDIATE -} - -""" -Ways in which team connections can be ordered. -""" -input TeamOrder { - """ - The direction in which to order nodes. - """ - direction: OrderDirection! - - """ - The field in which to order nodes by. - """ - field: TeamOrderField! -} - -""" -Properties by which team connections can be ordered. -""" -enum TeamOrderField { - """ - Allows ordering a list of teams by name. - """ - NAME -} - -""" -The possible team privacy values. -""" -enum TeamPrivacy { - """ - A secret team can only be seen by its members. - """ - SECRET - - """ - A visible team can be seen and @mentioned by every member of the organization. - """ - VISIBLE -} - -""" -Audit log entry for a team.remove_member event. -""" -type TeamRemoveMemberAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & TeamAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the team was mapped to an LDAP Group. - """ - isLdapMapped: Boolean - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -Audit log entry for a team.remove_repository event. -""" -type TeamRemoveRepositoryAuditEntry implements AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & TeamAuditEntryData { - """ - The action name - """ - action: String! - - """ - The user who initiated the action - """ - actor: AuditEntryActor - - """ - The IP address of the actor - """ - actorIp: String - - """ - A readable representation of the actor's location - """ - actorLocation: ActorLocation - - """ - The username of the user who initiated the action - """ - actorLogin: String - - """ - The HTTP path for the actor. - """ - actorResourcePath: URI - - """ - The HTTP URL for the actor. - """ - actorUrl: URI - - """ - The time the action was initiated - """ - createdAt: PreciseDateTime! - id: ID! - - """ - Whether the team was mapped to an LDAP Group. - """ - isLdapMapped: Boolean - - """ - The corresponding operation type for the action - """ - operationType: OperationType - - """ - The Organization associated with the Audit Entry. - """ - organization: Organization - - """ - The name of the Organization. - """ - organizationName: String - - """ - The HTTP path for the organization - """ - organizationResourcePath: URI - - """ - The HTTP URL for the organization - """ - organizationUrl: URI - - """ - The repository associated with the action - """ - repository: Repository - - """ - The name of the repository - """ - repositoryName: String - - """ - The HTTP path for the repository - """ - repositoryResourcePath: URI - - """ - The HTTP URL for the repository - """ - repositoryUrl: URI - - """ - The team associated with the action - """ - team: Team - - """ - The name of the team - """ - teamName: String - - """ - The HTTP path for this team - """ - teamResourcePath: URI - - """ - The HTTP URL for this team - """ - teamUrl: URI - - """ - The user affected by the action - """ - user: User - - """ - For actions involving two users, the actor is the initiator and the user is the affected user. - """ - userLogin: String - - """ - The HTTP path for the user. - """ - userResourcePath: URI - - """ - The HTTP URL for the user. - """ - userUrl: URI -} - -""" -The connection type for Repository. -""" -type TeamRepositoryConnection { - """ - A list of edges. - """ - edges: [TeamRepositoryEdge] - - """ - A list of nodes. - """ - nodes: [Repository] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -Represents a team repository. -""" -type TeamRepositoryEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - node: Repository! - - """ - The permission level the team has on the repository - """ - permission: RepositoryPermission! -} - -""" -Ordering options for team repository connections -""" -input TeamRepositoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order repositories by. - """ - field: TeamRepositoryOrderField! -} - -""" -Properties by which team repository connections can be ordered. -""" -enum TeamRepositoryOrderField { - """ - Order repositories by creation time - """ - CREATED_AT - - """ - Order repositories by name - """ - NAME - - """ - Order repositories by permission - """ - PERMISSION - - """ - Order repositories by push time - """ - PUSHED_AT - - """ - Order repositories by number of stargazers - """ - STARGAZERS - - """ - Order repositories by update time - """ - UPDATED_AT -} - -""" -The role of a user on a team. -""" -enum TeamRole { - """ - User has admin rights on the team. - """ - ADMIN - - """ - User is a member of the team. - """ - MEMBER -} - -""" -A text match within a search result. -""" -type TextMatch { - """ - The specific text fragment within the property matched on. - """ - fragment: String! - - """ - Highlights within the matched fragment. - """ - highlights: [TextMatchHighlight!]! - - """ - The property matched on. - """ - property: String! -} - -""" -Represents a single highlight in a search result match. -""" -type TextMatchHighlight { - """ - The indice in the fragment where the matched text begins. - """ - beginIndice: Int! - - """ - The indice in the fragment where the matched text ends. - """ - endIndice: Int! - - """ - The text matched. - """ - text: String! -} - -""" -A topic aggregates entities that are related to a subject. -""" -type Topic implements Node & Starrable { - id: ID! - - """ - The topic's name. - """ - name: String! - - """ - A list of related topics, including aliases of this topic, sorted with the most relevant - first. Returns up to 10 Topics. - """ - relatedTopics( - """ - How many topics to return. - """ - first: Int = 3 - ): [Topic!]! - - """ - Returns a count of how many stargazers there are on this object - """ - stargazerCount: Int! - - """ - A list of users who have starred this starrable. - """ - stargazers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: StarOrder - ): StargazerConnection! - - """ - Returns a boolean indicating whether the viewing user has starred this starrable. - """ - viewerHasStarred: Boolean! -} - -""" -Metadata for an audit entry with a topic. -""" -interface TopicAuditEntryData { - """ - The name of the topic added to the repository - """ - topic: Topic - - """ - The name of the topic added to the repository - """ - topicName: String -} - -""" -Reason that the suggested topic is declined. -""" -enum TopicSuggestionDeclineReason { - """ - The suggested topic is not relevant to the repository. - """ - NOT_RELEVANT - - """ - The viewer does not like the suggested topic. - """ - PERSONAL_PREFERENCE - - """ - The suggested topic is too general for the repository. - """ - TOO_GENERAL - - """ - The suggested topic is too specific for the repository (e.g. #ruby-on-rails-version-4-2-1). - """ - TOO_SPECIFIC -} - -""" -Autogenerated input type of TransferIssue -""" -input TransferIssueInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the issue to be transferred - """ - issueId: ID! - - """ - The Node ID of the repository the issue should be transferred to - """ - repositoryId: ID! -} - -""" -Autogenerated return type of TransferIssue -""" -type TransferIssuePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The issue that was transferred - """ - issue: Issue -} - -""" -Represents a 'transferred' event on a given issue or pull request. -""" -type TransferredEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The repository this came from - """ - fromRepository: Repository - id: ID! - - """ - Identifies the issue associated with the event. - """ - issue: Issue! -} - -""" -Represents a Git tree. -""" -type Tree implements GitObject & Node { - """ - An abbreviated version of the Git object ID - """ - abbreviatedOid: String! - - """ - The HTTP path for this Git object - """ - commitResourcePath: URI! - - """ - The HTTP URL for this Git object - """ - commitUrl: URI! - - """ - A list of tree entries. - """ - entries: [TreeEntry!] - id: ID! - - """ - The Git object ID - """ - oid: GitObjectID! - - """ - The Repository the Git object belongs to - """ - repository: Repository! -} - -""" -Represents a Git tree entry. -""" -type TreeEntry { - """ - The extension of the file - """ - extension: String - - """ - Whether or not this tree entry is generated - """ - isGenerated: Boolean! - - """ - Entry file mode. - """ - mode: Int! - - """ - Entry file name. - """ - name: String! - - """ - Entry file object. - """ - object: GitObject - - """ - Entry file Git object ID. - """ - oid: GitObjectID! - - """ - The full path of the file. - """ - path: String - - """ - The Repository the tree entry belongs to - """ - repository: Repository! - - """ - If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule - """ - submodule: Submodule - - """ - Entry file type. - """ - type: String! -} - -""" -An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string. -""" -scalar URI - -""" -Autogenerated input type of UnarchiveRepository -""" -input UnarchiveRepositoryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the repository to unarchive. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of UnarchiveRepository -""" -type UnarchiveRepositoryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The repository that was unarchived. - """ - repository: Repository -} - -""" -Represents an 'unassigned' event on any assignable object. -""" -type UnassignedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the assignable associated with the event. - """ - assignable: Assignable! - - """ - Identifies the user or mannequin that was unassigned. - """ - assignee: Assignee - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the subject (user) who was unassigned. - """ - user: User @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") -} - -""" -Autogenerated input type of UnfollowUser -""" -input UnfollowUserInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the user to unfollow. - """ - userId: ID! -} - -""" -Autogenerated return type of UnfollowUser -""" -type UnfollowUserPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The user that was unfollowed. - """ - user: User -} - -""" -Represents a type that can be retrieved by a URL. -""" -interface UniformResourceLocatable { - """ - The HTML path to this resource. - """ - resourcePath: URI! - - """ - The URL to this resource. - """ - url: URI! -} - -""" -Represents an unknown signature on a Commit or Tag. -""" -type UnknownSignature implements GitSignature { - """ - Email used to sign this object. - """ - email: String! - - """ - True if the signature is valid and verified by GitHub. - """ - isValid: Boolean! - - """ - Payload for GPG signing object. Raw ODB object without the signature header. - """ - payload: String! - - """ - ASCII-armored signature header from object. - """ - signature: String! - - """ - GitHub user corresponding to the email signing this commit. - """ - signer: User - - """ - The state of this signature. `VALID` if signature is valid and verified by - GitHub, otherwise represents reason why signature is considered invalid. - """ - state: GitSignatureState! - - """ - True if the signature was made with GitHub's signing key. - """ - wasSignedByGitHub: Boolean! -} - -""" -Represents an 'unlabeled' event on a given issue or pull request. -""" -type UnlabeledEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the label associated with the 'unlabeled' event. - """ - label: Label! - - """ - Identifies the `Labelable` associated with the event. - """ - labelable: Labelable! -} - -""" -Autogenerated input type of UnlinkRepositoryFromProject -""" -input UnlinkRepositoryFromProjectInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the Project linked to the Repository. - """ - projectId: ID! - - """ - The ID of the Repository linked to the Project. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of UnlinkRepositoryFromProject -""" -type UnlinkRepositoryFromProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The linked Project. - """ - project: Project - - """ - The linked Repository. - """ - repository: Repository -} - -""" -Autogenerated input type of UnlockLockable -""" -input UnlockLockableInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the item to be unlocked. - """ - lockableId: ID! -} - -""" -Autogenerated return type of UnlockLockable -""" -type UnlockLockablePayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The item that was unlocked. - """ - unlockedRecord: Lockable -} - -""" -Represents an 'unlocked' event on a given issue or pull request. -""" -type UnlockedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Object that was unlocked. - """ - lockable: Lockable! -} - -""" -Autogenerated input type of UnmarkFileAsViewed -""" -input UnmarkFileAsViewedInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The path of the file to mark as unviewed - """ - path: String! - - """ - The Node ID of the pull request. - """ - pullRequestId: ID! -} - -""" -Autogenerated return type of UnmarkFileAsViewed -""" -type UnmarkFileAsViewedPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated pull request. - """ - pullRequest: PullRequest -} - -""" -Autogenerated input type of UnmarkIssueAsDuplicate -""" -input UnmarkIssueAsDuplicateInput { - """ - ID of the issue or pull request currently considered canonical/authoritative/original. - """ - canonicalId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - ID of the issue or pull request currently marked as a duplicate. - """ - duplicateId: ID! -} - -""" -Autogenerated return type of UnmarkIssueAsDuplicate -""" -type UnmarkIssueAsDuplicatePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The issue or pull request that was marked as a duplicate. - """ - duplicate: IssueOrPullRequest -} - -""" -Represents an 'unmarked_as_duplicate' event on a given issue or pull request. -""" -type UnmarkedAsDuplicateEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - The authoritative issue or pull request which has been duplicated by another. - """ - canonical: IssueOrPullRequest - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - The issue or pull request which has been marked as a duplicate of another. - """ - duplicate: IssueOrPullRequest - id: ID! - - """ - Canonical and duplicate belong to different repositories. - """ - isCrossRepository: Boolean! -} - -""" -Autogenerated input type of UnminimizeComment -""" -input UnminimizeCommentInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the subject to modify. - """ - subjectId: ID! -} - -""" -Autogenerated return type of UnminimizeComment -""" -type UnminimizeCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The comment that was unminimized. - """ - unminimizedComment: Minimizable -} - -""" -Represents an 'unpinned' event on a given issue or pull request. -""" -type UnpinnedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Identifies the issue associated with the event. - """ - issue: Issue! -} - -""" -Autogenerated input type of UnresolveReviewThread -""" -input UnresolveReviewThreadInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the thread to unresolve - """ - threadId: ID! -} - -""" -Autogenerated return type of UnresolveReviewThread -""" -type UnresolveReviewThreadPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The thread to resolve. - """ - thread: PullRequestReviewThread -} - -""" -Represents an 'unsubscribed' event on a given `Subscribable`. -""" -type UnsubscribedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - Object referenced by event. - """ - subscribable: Subscribable! -} - -""" -Entities that can be updated. -""" -interface Updatable { - """ - Check if the current viewer can update this object. - """ - viewerCanUpdate: Boolean! -} - -""" -Comments that can be updated. -""" -interface UpdatableComment { - """ - Reasons why the current viewer can not update this comment. - """ - viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! -} - -""" -Autogenerated input type of UpdateBranchProtectionRule -""" -input UpdateBranchProtectionRuleInput { - """ - Can this branch be deleted. - """ - allowsDeletions: Boolean - - """ - Are force pushes allowed on this branch. - """ - allowsForcePushes: Boolean - - """ - The global relay id of the branch protection rule to be updated. - """ - branchProtectionRuleId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Will new commits pushed to matching branches dismiss pull request review approvals. - """ - dismissesStaleReviews: Boolean - - """ - Can admins overwrite branch protection. - """ - isAdminEnforced: Boolean - - """ - The glob-like pattern used to determine matching branches. - """ - pattern: String - - """ - A list of User, Team or App IDs allowed to push to matching branches. - """ - pushActorIds: [ID!] - - """ - Number of approving reviews required to update matching branches. - """ - requiredApprovingReviewCount: Int - - """ - List of required status check contexts that must pass for commits to be accepted to matching branches. - """ - requiredStatusCheckContexts: [String!] - - """ - Are approving reviews required to update matching branches. - """ - requiresApprovingReviews: Boolean - - """ - Are reviews from code owners required to update matching branches. - """ - requiresCodeOwnerReviews: Boolean - - """ - Are commits required to be signed. - """ - requiresCommitSignatures: Boolean - - """ - Are merge commits prohibited from being pushed to this branch. - """ - requiresLinearHistory: Boolean - - """ - Are status checks required to update matching branches. - """ - requiresStatusChecks: Boolean - - """ - Are branches required to be up to date before merging. - """ - requiresStrictStatusChecks: Boolean - - """ - Is pushing to matching branches restricted. - """ - restrictsPushes: Boolean - - """ - Is dismissal of pull request reviews restricted. - """ - restrictsReviewDismissals: Boolean - - """ - A list of User or Team IDs allowed to dismiss reviews on pull requests targeting matching branches. - """ - reviewDismissalActorIds: [ID!] -} - -""" -Autogenerated return type of UpdateBranchProtectionRule -""" -type UpdateBranchProtectionRulePayload { - """ - The newly created BranchProtectionRule. - """ - branchProtectionRule: BranchProtectionRule - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of UpdateCheckRun -""" -input UpdateCheckRunInput { - """ - Possible further actions the integrator can perform, which a user may trigger. - """ - actions: [CheckRunAction!] - - """ - The node of the check. - """ - checkRunId: ID! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The time that the check run finished. - """ - completedAt: DateTime - - """ - The final conclusion of the check. - """ - conclusion: CheckConclusionState - - """ - The URL of the integrator's site that has the full details of the check. - """ - detailsUrl: URI - - """ - A reference for the run on the integrator's system. - """ - externalId: String - - """ - The name of the check. - """ - name: String - - """ - Descriptive details about the run. - """ - output: CheckRunOutput - - """ - The node ID of the repository. - """ - repositoryId: ID! - - """ - The time that the check run began. - """ - startedAt: DateTime - - """ - The current status. - """ - status: RequestableCheckStatusState -} - -""" -Autogenerated return type of UpdateCheckRun -""" -type UpdateCheckRunPayload { - """ - The updated check run. - """ - checkRun: CheckRun - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String -} - -""" -Autogenerated input type of UpdateCheckSuitePreferences -""" -input UpdateCheckSuitePreferencesInput { - """ - The check suite preferences to modify. - """ - autoTriggerPreferences: [CheckSuiteAutoTriggerPreference!]! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the repository. - """ - repositoryId: ID! -} - -""" -Autogenerated return type of UpdateCheckSuitePreferences -""" -type UpdateCheckSuitePreferencesPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated repository. - """ - repository: Repository -} - -""" -Autogenerated input type of UpdateEnterpriseAdministratorRole -""" -input UpdateEnterpriseAdministratorRoleInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the Enterprise which the admin belongs to. - """ - enterpriseId: ID! - - """ - The login of a administrator whose role is being changed. - """ - login: String! - - """ - The new role for the Enterprise administrator. - """ - role: EnterpriseAdministratorRole! -} - -""" -Autogenerated return type of UpdateEnterpriseAdministratorRole -""" -type UpdateEnterpriseAdministratorRolePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - A message confirming the result of changing the administrator's role. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting -""" -input UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the allow private repository forking setting. - """ - enterpriseId: ID! - - """ - The value for the allow private repository forking setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseAllowPrivateRepositoryForkingSetting -""" -type UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated allow private repository forking setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the allow private repository forking setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseDefaultRepositoryPermissionSetting -""" -input UpdateEnterpriseDefaultRepositoryPermissionSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the default repository permission setting. - """ - enterpriseId: ID! - - """ - The value for the default repository permission setting on the enterprise. - """ - settingValue: EnterpriseDefaultRepositoryPermissionSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseDefaultRepositoryPermissionSetting -""" -type UpdateEnterpriseDefaultRepositoryPermissionSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated default repository permission setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the default repository permission setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting -""" -input UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can change repository visibility setting. - """ - enterpriseId: ID! - - """ - The value for the members can change repository visibility setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanChangeRepositoryVisibilitySetting -""" -type UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can change repository visibility setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can change repository visibility setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanCreateRepositoriesSetting -""" -input UpdateEnterpriseMembersCanCreateRepositoriesSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can create repositories setting. - """ - enterpriseId: ID! - - """ - Allow members to create internal repositories. Defaults to current value. - """ - membersCanCreateInternalRepositories: Boolean - - """ - Allow members to create private repositories. Defaults to current value. - """ - membersCanCreatePrivateRepositories: Boolean - - """ - Allow members to create public repositories. Defaults to current value. - """ - membersCanCreatePublicRepositories: Boolean - - """ - When false, allow member organizations to set their own repository creation member privileges. - """ - membersCanCreateRepositoriesPolicyEnabled: Boolean - - """ - Value for the members can create repositories setting on the enterprise. This - or the granular public/private/internal allowed fields (but not both) must be provided. - """ - settingValue: EnterpriseMembersCanCreateRepositoriesSettingValue -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanCreateRepositoriesSetting -""" -type UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can create repositories setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can create repositories setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanDeleteIssuesSetting -""" -input UpdateEnterpriseMembersCanDeleteIssuesSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can delete issues setting. - """ - enterpriseId: ID! - - """ - The value for the members can delete issues setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanDeleteIssuesSetting -""" -type UpdateEnterpriseMembersCanDeleteIssuesSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can delete issues setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can delete issues setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting -""" -input UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can delete repositories setting. - """ - enterpriseId: ID! - - """ - The value for the members can delete repositories setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanDeleteRepositoriesSetting -""" -type UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can delete repositories setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can delete repositories setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting -""" -input UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can invite collaborators setting. - """ - enterpriseId: ID! - - """ - The value for the members can invite collaborators setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanInviteCollaboratorsSetting -""" -type UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can invite collaborators setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can invite collaborators setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanMakePurchasesSetting -""" -input UpdateEnterpriseMembersCanMakePurchasesSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can make purchases setting. - """ - enterpriseId: ID! - - """ - The value for the members can make purchases setting on the enterprise. - """ - settingValue: EnterpriseMembersCanMakePurchasesSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanMakePurchasesSetting -""" -type UpdateEnterpriseMembersCanMakePurchasesSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can make purchases setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can make purchases setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting -""" -input UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can update protected branches setting. - """ - enterpriseId: ID! - - """ - The value for the members can update protected branches setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanUpdateProtectedBranchesSetting -""" -type UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can update protected branches setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can update protected branches setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting -""" -input UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the members can view dependency insights setting. - """ - enterpriseId: ID! - - """ - The value for the members can view dependency insights setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseMembersCanViewDependencyInsightsSetting -""" -type UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated members can view dependency insights setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the members can view dependency insights setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseOrganizationProjectsSetting -""" -input UpdateEnterpriseOrganizationProjectsSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the organization projects setting. - """ - enterpriseId: ID! - - """ - The value for the organization projects setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseOrganizationProjectsSetting -""" -type UpdateEnterpriseOrganizationProjectsSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated organization projects setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the organization projects setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseProfile -""" -input UpdateEnterpriseProfileInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The description of the enterprise. - """ - description: String - - """ - The Enterprise ID to update. - """ - enterpriseId: ID! - - """ - The location of the enterprise. - """ - location: String - - """ - The name of the enterprise. - """ - name: String - - """ - The URL of the enterprise's website. - """ - websiteUrl: String -} - -""" -Autogenerated return type of UpdateEnterpriseProfile -""" -type UpdateEnterpriseProfilePayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated enterprise. - """ - enterprise: Enterprise -} - -""" -Autogenerated input type of UpdateEnterpriseRepositoryProjectsSetting -""" -input UpdateEnterpriseRepositoryProjectsSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the repository projects setting. - """ - enterpriseId: ID! - - """ - The value for the repository projects setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseRepositoryProjectsSetting -""" -type UpdateEnterpriseRepositoryProjectsSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated repository projects setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the repository projects setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseTeamDiscussionsSetting -""" -input UpdateEnterpriseTeamDiscussionsSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the team discussions setting. - """ - enterpriseId: ID! - - """ - The value for the team discussions setting on the enterprise. - """ - settingValue: EnterpriseEnabledDisabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseTeamDiscussionsSetting -""" -type UpdateEnterpriseTeamDiscussionsSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated team discussions setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the team discussions setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting -""" -input UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the enterprise on which to set the two factor authentication required setting. - """ - enterpriseId: ID! - - """ - The value for the two factor authentication required setting on the enterprise. - """ - settingValue: EnterpriseEnabledSettingValue! -} - -""" -Autogenerated return type of UpdateEnterpriseTwoFactorAuthenticationRequiredSetting -""" -type UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The enterprise with the updated two factor authentication required setting. - """ - enterprise: Enterprise - - """ - A message confirming the result of updating the two factor authentication required setting. - """ - message: String -} - -""" -Autogenerated input type of UpdateIpAllowListEnabledSetting -""" -input UpdateIpAllowListEnabledSettingInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the owner on which to set the IP allow list enabled setting. - """ - ownerId: ID! - - """ - The value for the IP allow list enabled setting. - """ - settingValue: IpAllowListEnabledSettingValue! -} - -""" -Autogenerated return type of UpdateIpAllowListEnabledSetting -""" -type UpdateIpAllowListEnabledSettingPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The IP allow list owner on which the setting was updated. - """ - owner: IpAllowListOwner -} - -""" -Autogenerated input type of UpdateIpAllowListEntry -""" -input UpdateIpAllowListEntryInput { - """ - An IP address or range of addresses in CIDR notation. - """ - allowListValue: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the IP allow list entry to update. - """ - ipAllowListEntryId: ID! - - """ - Whether the IP allow list entry is active when an IP allow list is enabled. - """ - isActive: Boolean! - - """ - An optional name for the IP allow list entry. - """ - name: String -} - -""" -Autogenerated return type of UpdateIpAllowListEntry -""" -type UpdateIpAllowListEntryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The IP allow list entry that was updated. - """ - ipAllowListEntry: IpAllowListEntry -} - -""" -Autogenerated input type of UpdateIssueComment -""" -input UpdateIssueCommentInput { - """ - The updated text of the comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the IssueComment to modify. - """ - id: ID! -} - -""" -Autogenerated return type of UpdateIssueComment -""" -type UpdateIssueCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated comment. - """ - issueComment: IssueComment -} - -""" -Autogenerated input type of UpdateIssue -""" -input UpdateIssueInput { - """ - An array of Node IDs of users for this issue. - """ - assigneeIds: [ID!] - - """ - The body for the issue description. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the Issue to modify. - """ - id: ID! - - """ - An array of Node IDs of labels for this issue. - """ - labelIds: [ID!] - - """ - The Node ID of the milestone for this issue. - """ - milestoneId: ID - - """ - An array of Node IDs for projects associated with this issue. - """ - projectIds: [ID!] - - """ - The desired issue state. - """ - state: IssueState - - """ - The title for the issue. - """ - title: String -} - -""" -Autogenerated return type of UpdateIssue -""" -type UpdateIssuePayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The issue. - """ - issue: Issue -} - -""" -Autogenerated input type of UpdateProjectCard -""" -input UpdateProjectCardInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Whether or not the ProjectCard should be archived - """ - isArchived: Boolean - - """ - The note of ProjectCard. - """ - note: String - - """ - The ProjectCard ID to update. - """ - projectCardId: ID! -} - -""" -Autogenerated return type of UpdateProjectCard -""" -type UpdateProjectCardPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated ProjectCard. - """ - projectCard: ProjectCard -} - -""" -Autogenerated input type of UpdateProjectColumn -""" -input UpdateProjectColumnInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of project column. - """ - name: String! - - """ - The ProjectColumn ID to update. - """ - projectColumnId: ID! -} - -""" -Autogenerated return type of UpdateProjectColumn -""" -type UpdateProjectColumnPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated project column. - """ - projectColumn: ProjectColumn -} - -""" -Autogenerated input type of UpdateProject -""" -input UpdateProjectInput { - """ - The description of project. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The name of project. - """ - name: String - - """ - The Project ID to update. - """ - projectId: ID! - - """ - Whether the project is public or not. - """ - public: Boolean - - """ - Whether the project is open or closed. - """ - state: ProjectState -} - -""" -Autogenerated return type of UpdateProject -""" -type UpdateProjectPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated project. - """ - project: Project -} - -""" -Autogenerated input type of UpdatePullRequest -""" -input UpdatePullRequestInput { - """ - An array of Node IDs of users for this pull request. - """ - assigneeIds: [ID!] - - """ - The name of the branch you want your changes pulled into. This should be an existing branch - on the current repository. - """ - baseRefName: String - - """ - The contents of the pull request. - """ - body: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - An array of Node IDs of labels for this pull request. - """ - labelIds: [ID!] - - """ - Indicates whether maintainers can modify the pull request. - """ - maintainerCanModify: Boolean - - """ - The Node ID of the milestone for this pull request. - """ - milestoneId: ID - - """ - An array of Node IDs for projects associated with this pull request. - """ - projectIds: [ID!] - - """ - The Node ID of the pull request. - """ - pullRequestId: ID! - - """ - The target state of the pull request. - """ - state: PullRequestUpdateState - - """ - The title of the pull request. - """ - title: String -} - -""" -Autogenerated return type of UpdatePullRequest -""" -type UpdatePullRequestPayload { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated pull request. - """ - pullRequest: PullRequest -} - -""" -Autogenerated input type of UpdatePullRequestReviewComment -""" -input UpdatePullRequestReviewCommentInput { - """ - The text of the comment. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the comment to modify. - """ - pullRequestReviewCommentId: ID! -} - -""" -Autogenerated return type of UpdatePullRequestReviewComment -""" -type UpdatePullRequestReviewCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated comment. - """ - pullRequestReviewComment: PullRequestReviewComment -} - -""" -Autogenerated input type of UpdatePullRequestReview -""" -input UpdatePullRequestReviewInput { - """ - The contents of the pull request review body. - """ - body: String! - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the pull request review to modify. - """ - pullRequestReviewId: ID! -} - -""" -Autogenerated return type of UpdatePullRequestReview -""" -type UpdatePullRequestReviewPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated pull request review. - """ - pullRequestReview: PullRequestReview -} - -""" -Autogenerated input type of UpdateRef -""" -input UpdateRefInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Permit updates of branch Refs that are not fast-forwards? - """ - force: Boolean = false - - """ - The GitObjectID that the Ref shall be updated to target. - """ - oid: GitObjectID! - - """ - The Node ID of the Ref to be updated. - """ - refId: ID! -} - -""" -Autogenerated return type of UpdateRef -""" -type UpdateRefPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated Ref. - """ - ref: Ref -} - -""" -Autogenerated input type of UpdateRepository -""" -input UpdateRepositoryInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - A new description for the repository. Pass an empty string to erase the existing description. - """ - description: String - - """ - Indicates if the repository should have the issues feature enabled. - """ - hasIssuesEnabled: Boolean - - """ - Indicates if the repository should have the project boards feature enabled. - """ - hasProjectsEnabled: Boolean - - """ - Indicates if the repository should have the wiki feature enabled. - """ - hasWikiEnabled: Boolean - - """ - The URL for a web page about this repository. Pass an empty string to erase the existing URL. - """ - homepageUrl: URI - - """ - The new name of the repository. - """ - name: String - - """ - The ID of the repository to update. - """ - repositoryId: ID! - - """ - Whether this repository should be marked as a template such that anyone who - can access it can create new repositories with the same files and directory structure. - """ - template: Boolean -} - -""" -Autogenerated return type of UpdateRepository -""" -type UpdateRepositoryPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated repository. - """ - repository: Repository -} - -""" -Autogenerated input type of UpdateSubscription -""" -input UpdateSubscriptionInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The new state of the subscription. - """ - state: SubscriptionState! - - """ - The Node ID of the subscribable object to modify. - """ - subscribableId: ID! -} - -""" -Autogenerated return type of UpdateSubscription -""" -type UpdateSubscriptionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The input subscribable entity. - """ - subscribable: Subscribable -} - -""" -Autogenerated input type of UpdateTeamDiscussionComment -""" -input UpdateTeamDiscussionCommentInput { - """ - The updated text of the comment. - """ - body: String! - - """ - The current version of the body content. - """ - bodyVersion: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The ID of the comment to modify. - """ - id: ID! -} - -""" -Autogenerated return type of UpdateTeamDiscussionComment -""" -type UpdateTeamDiscussionCommentPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated comment. - """ - teamDiscussionComment: TeamDiscussionComment -} - -""" -Autogenerated input type of UpdateTeamDiscussion -""" -input UpdateTeamDiscussionInput { - """ - The updated text of the discussion. - """ - body: String - - """ - The current version of the body content. If provided, this update operation - will be rejected if the given version does not match the latest version on the server. - """ - bodyVersion: String - - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the discussion to modify. - """ - id: ID! - - """ - If provided, sets the pinned state of the updated discussion. - """ - pinned: Boolean - - """ - The updated title of the discussion. - """ - title: String -} - -""" -Autogenerated return type of UpdateTeamDiscussion -""" -type UpdateTeamDiscussionPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The updated discussion. - """ - teamDiscussion: TeamDiscussion -} - -""" -Autogenerated input type of UpdateTopics -""" -input UpdateTopicsInput { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - The Node ID of the repository. - """ - repositoryId: ID! - - """ - An array of topic names. - """ - topicNames: [String!]! -} - -""" -Autogenerated return type of UpdateTopics -""" -type UpdateTopicsPayload { - """ - A unique identifier for the client performing the mutation. - """ - clientMutationId: String - - """ - Names of the provided topics that are not valid. - """ - invalidTopicNames: [String!] - - """ - The updated repository. - """ - repository: Repository -} - -""" -A user is an individual's account on GitHub that owns repositories and can make new content. -""" -type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & RepositoryOwner & Sponsorable & UniformResourceLocatable { - """ - Determine if this repository owner has any items that can be pinned to their profile. - """ - anyPinnableItems( - """ - Filter to only a particular kind of pinnable item. - """ - type: PinnableItemType - ): Boolean! - - """ - A URL pointing to the user's public avatar. - """ - avatarUrl( - """ - The size of the resulting square image. - """ - size: Int - ): URI! - - """ - The user's public profile bio. - """ - bio: String - - """ - The user's public profile bio as HTML. - """ - bioHTML: HTML! - - """ - A list of commit comments made by this user. - """ - commitComments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): CommitCommentConnection! - - """ - The user's public profile company. - """ - company: String - - """ - The user's public profile company as HTML. - """ - companyHTML: HTML! - - """ - The collection of contributions this user has made to different repositories. - """ - contributionsCollection( - """ - Only contributions made at this time or later will be counted. If omitted, defaults to a year ago. - """ - from: DateTime - - """ - The ID of the organization used to filter contributions. - """ - organizationID: ID - - """ - Only contributions made before and up to and including this time will be - counted. If omitted, defaults to the current time. - """ - to: DateTime - ): ContributionsCollection! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the primary key from the database. - """ - databaseId: Int - - """ - The user's publicly visible profile email. - """ - email: String! - - """ - A list of users the given user is followed by. - """ - followers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): FollowerConnection! - - """ - A list of users the given user is following. - """ - following( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): FollowingConnection! - - """ - Find gist by repo name. - """ - gist( - """ - The gist name to find. - """ - name: String! - ): Gist - - """ - A list of gist comments made by this user. - """ - gistComments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): GistCommentConnection! - - """ - A list of the Gists the user has created. - """ - gists( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for gists returned from the connection - """ - orderBy: GistOrder - - """ - Filters Gists according to privacy. - """ - privacy: GistPrivacy - ): GistConnection! - - """ - True if this user/organization has a GitHub Sponsors listing. - """ - hasSponsorsListing: Boolean! - - """ - The hovercard information for this user in a given context - """ - hovercard( - """ - The ID of the subject to get the hovercard in the context of - """ - primarySubjectId: ID - ): Hovercard! - id: ID! - - """ - The interaction ability settings for this user. - """ - interactionAbility: RepositoryInteractionAbility - - """ - Whether or not this user is a participant in the GitHub Security Bug Bounty. - """ - isBountyHunter: Boolean! - - """ - Whether or not this user is a participant in the GitHub Campus Experts Program. - """ - isCampusExpert: Boolean! - - """ - Whether or not this user is a GitHub Developer Program member. - """ - isDeveloperProgramMember: Boolean! - - """ - Whether or not this user is a GitHub employee. - """ - isEmployee: Boolean! - - """ - Whether or not the user has marked themselves as for hire. - """ - isHireable: Boolean! - - """ - Whether or not this user is a site administrator. - """ - isSiteAdmin: Boolean! - - """ - True if the viewer is sponsored by this user/organization. - """ - isSponsoringViewer: Boolean! - - """ - Whether or not this user is the viewing user. - """ - isViewer: Boolean! - - """ - A list of issue comments made by this user. - """ - issueComments( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issue comments returned from the connection. - """ - orderBy: IssueCommentOrder - ): IssueCommentConnection! - - """ - A list of issues associated with this user. - """ - issues( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Filtering options for issues returned from the connection. - """ - filterBy: IssueFilters - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for issues returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the issues by. - """ - states: [IssueState!] - ): IssueConnection! - - """ - Showcases a selection of repositories and gists that the profile owner has - either curated or that have been selected automatically based on popularity. - """ - itemShowcase: ProfileItemShowcase! - - """ - The user's public profile location. - """ - location: String - - """ - The username used to login. - """ - login: String! - - """ - The user's public profile name. - """ - name: String - - """ - Find an organization by its login that the user belongs to. - """ - organization( - """ - The login of the organization to find. - """ - login: String! - ): Organization - - """ - Verified email addresses that match verified domains for a specified organization the user is a member of. - """ - organizationVerifiedDomainEmails( - """ - The login of the organization to match verified domains from. - """ - login: String! - ): [String!]! - - """ - A list of organizations the user belongs to. - """ - organizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): OrganizationConnection! - - """ - A list of packages under the owner. - """ - packages( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Find packages by their names. - """ - names: [String] - - """ - Ordering of the returned packages. - """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} - - """ - Filter registry package by type. - """ - packageType: PackageType - - """ - Find packages in a repository by ID. - """ - repositoryId: ID - ): PackageConnection! - - """ - A list of repositories and gists this profile owner can pin to their profile. - """ - pinnableItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinnable items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - A list of repositories and gists this profile owner has pinned to their profile - """ - pinnedItems( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filter the types of pinned items that are returned. - """ - types: [PinnableItemType!] - ): PinnableItemConnection! - - """ - Returns how many more items this profile owner can pin to their profile. - """ - pinnedItemsRemaining: Int! - - """ - Find project by number. - """ - project( - """ - The project number to find. - """ - number: Int! - ): Project - - """ - A list of projects under the owner. - """ - projects( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for projects returned from the connection - """ - orderBy: ProjectOrder - - """ - Query to search projects by, currently only searching by name. - """ - search: String - - """ - A list of states to filter the projects by. - """ - states: [ProjectState!] - ): ProjectConnection! - - """ - The HTTP path listing user's projects - """ - projectsResourcePath: URI! - - """ - The HTTP URL listing user's projects - """ - projectsUrl: URI! - - """ - A list of public keys associated with this user. - """ - publicKeys( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - ): PublicKeyConnection! - - """ - A list of pull requests associated with this user. - """ - pullRequests( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - The base ref name to filter the pull requests by. - """ - baseRefName: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - The head ref name to filter the pull requests by. - """ - headRefName: String - - """ - A list of label names to filter the pull requests by. - """ - labels: [String!] - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for pull requests returned from the connection. - """ - orderBy: IssueOrder - - """ - A list of states to filter the pull requests by. - """ - states: [PullRequestState!] - ): PullRequestConnection! - - """ - A list of repositories that the user owns. - """ - repositories( - """ - Array of viewer's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - current viewer owns. - """ - affiliations: [RepositoryAffiliation] - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If non-null, filters repositories according to whether they are forks of another repository - """ - isFork: Boolean - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - Array of owner's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - organization or user being viewed owns. - """ - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - A list of repositories that the user recently contributed to. - """ - repositoriesContributedTo( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - If non-null, include only the specified types of contributions. The - GitHub.com UI uses [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY] - """ - contributionTypes: [RepositoryContributionType] - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If true, include user repositories - """ - includeUserRepositories: Boolean - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - Find Repository. - """ - repository( - """ - Name of Repository to find. - """ - name: String! - ): Repository - - """ - The HTTP path for this user - """ - resourcePath: URI! - - """ - Replies this user has saved - """ - savedReplies( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - The field to order saved replies by. - """ - orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC} - ): SavedReplyConnection - - """ - The GitHub Sponsors listing for this user or organization. - """ - sponsorsListing: SponsorsListing - - """ - This object's sponsorships as the maintainer. - """ - sponsorshipsAsMaintainer( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Whether or not to include private sponsorships in the result set - """ - includePrivate: Boolean = false - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - This object's sponsorships as the sponsor. - """ - sponsorshipsAsSponsor( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for sponsorships returned from this connection. If left - blank, the sponsorships will be ordered based on relevancy to the viewer. - """ - orderBy: SponsorshipOrder - ): SponsorshipConnection! - - """ - Repositories the user has starred. - """ - starredRepositories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Order for connection - """ - orderBy: StarOrder - - """ - Filters starred repositories to only return repositories owned by the viewer. - """ - ownedByViewer: Boolean - ): StarredRepositoryConnection! - - """ - The user's description of what they're currently doing. - """ - status: UserStatus - - """ - Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created - """ - topRepositories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder! - - """ - How far back in time to fetch contributed repositories - """ - since: DateTime - ): RepositoryConnection! - - """ - The user's Twitter username. - """ - twitterUsername: String - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The HTTP URL for this user - """ - url: URI! - - """ - Can the viewer pin repositories and gists to the profile? - """ - viewerCanChangePinnedItems: Boolean! - - """ - Can the current viewer create new projects on this owner. - """ - viewerCanCreateProjects: Boolean! - - """ - Whether or not the viewer is able to follow the user. - """ - viewerCanFollow: Boolean! - - """ - Whether or not the viewer is able to sponsor this user/organization. - """ - viewerCanSponsor: Boolean! - - """ - Whether or not this user is followed by the viewer. - """ - viewerIsFollowing: Boolean! - - """ - True if the viewer is sponsoring this user/organization. - """ - viewerIsSponsoring: Boolean! - - """ - A list of repositories the given user is watching. - """ - watching( - """ - Affiliation options for repositories returned from the connection. If none - specified, the results will include repositories for which the current - viewer is an owner or collaborator, or member. - """ - affiliations: [RepositoryAffiliation] - - """ - Returns the elements in the list that come after the specified cursor. - """ - after: String - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: String - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - If non-null, filters repositories according to whether they have been locked - """ - isLocked: Boolean - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for repositories returned from the connection - """ - orderBy: RepositoryOrder - - """ - Array of owner's affiliation options for repositories returned from the - connection. For example, OWNER will include only repositories that the - organization or user being viewed owns. - """ - ownerAffiliations: [RepositoryAffiliation] = [OWNER, COLLABORATOR] - - """ - If non-null, filters repositories according to privacy - """ - privacy: RepositoryPrivacy - ): RepositoryConnection! - - """ - A URL pointing to the user's public website/blog. - """ - websiteUrl: URI -} - -""" -The possible durations that a user can be blocked for. -""" -enum UserBlockDuration { - """ - The user was blocked for 1 day - """ - ONE_DAY - - """ - The user was blocked for 30 days - """ - ONE_MONTH - - """ - The user was blocked for 7 days - """ - ONE_WEEK - - """ - The user was blocked permanently - """ - PERMANENT - - """ - The user was blocked for 3 days - """ - THREE_DAYS -} - -""" -Represents a 'user_blocked' event on a given user. -""" -type UserBlockedEvent implements Node { - """ - Identifies the actor who performed the event. - """ - actor: Actor - - """ - Number of days that the user was blocked for. - """ - blockDuration: UserBlockDuration! - - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - id: ID! - - """ - The user who was blocked. - """ - subject: User -} - -""" -The connection type for User. -""" -type UserConnection { - """ - A list of edges. - """ - edges: [UserEdge] - - """ - A list of nodes. - """ - nodes: [User] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edit on user content -""" -type UserContentEdit implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - Identifies the date and time when the object was deleted. - """ - deletedAt: DateTime - - """ - The actor who deleted this content - """ - deletedBy: Actor - - """ - A summary of the changes for this edit - """ - diff: String - - """ - When this content was edited - """ - editedAt: DateTime! - - """ - The actor who edited this content - """ - editor: Actor - id: ID! - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! -} - -""" -A list of edits to content. -""" -type UserContentEditConnection { - """ - A list of edges. - """ - edges: [UserContentEditEdge] - - """ - A list of nodes. - """ - nodes: [UserContentEdit] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type UserContentEditEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: UserContentEdit -} - -""" -Represents a user. -""" -type UserEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: User -} - -""" -Email attributes from External Identity -""" -type UserEmailMetadata { - """ - Boolean to identify primary emails - """ - primary: Boolean - - """ - Type of email - """ - type: String - - """ - Email id - """ - value: String! -} - -""" -The user's description of what they're currently doing. -""" -type UserStatus implements Node { - """ - Identifies the date and time when the object was created. - """ - createdAt: DateTime! - - """ - An emoji summarizing the user's status. - """ - emoji: String - - """ - The status emoji as HTML. - """ - emojiHTML: HTML - - """ - If set, the status will not be shown after this date. - """ - expiresAt: DateTime - - """ - ID of the object. - """ - id: ID! - - """ - Whether this status indicates the user is not fully available on GitHub. - """ - indicatesLimitedAvailability: Boolean! - - """ - A brief message describing what the user is doing. - """ - message: String - - """ - The organization whose members can see this status. If null, this status is publicly visible. - """ - organization: Organization - - """ - Identifies the date and time when the object was last updated. - """ - updatedAt: DateTime! - - """ - The user who has this status. - """ - user: User! -} - -""" -The connection type for UserStatus. -""" -type UserStatusConnection { - """ - A list of edges. - """ - edges: [UserStatusEdge] - - """ - A list of nodes. - """ - nodes: [UserStatus] - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type UserStatusEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: UserStatus -} - -""" -Ordering options for user status connections. -""" -input UserStatusOrder { - """ - The ordering direction. - """ - direction: OrderDirection! - - """ - The field to order user statuses by. - """ - field: UserStatusOrderField! -} - -""" -Properties by which user status connections can be ordered. -""" -enum UserStatusOrderField { - """ - Order user statuses by when they were updated. - """ - UPDATED_AT -} - -""" -A hovercard context with a message describing how the viewer is related. -""" -type ViewerHovercardContext implements HovercardContext { - """ - A string describing this context - """ - message: String! - - """ - An octicon to accompany this context - """ - octicon: String! - - """ - Identifies the user who is related to this context. - """ - viewer: User! -} - -""" -A valid x509 certificate string -""" -scalar X509Certificate \ No newline at end of file diff --git a/__tests__/github/github.sdk.ts b/__tests__/github/github.sdk.ts deleted file mode 100644 index 5a3daba..0000000 --- a/__tests__/github/github.sdk.ts +++ /dev/null @@ -1,95128 +0,0 @@ -import { - NamedType, - Argument, - Field, - InlineFragment, - Operation, - Selection, - SelectionSet, - Variable, - Executor, - Client, - TypeConditionError, - ExecutionError, -} from "../../src"; - -export const VERSION = "unversioned"; - -export const SCHEMA_SHA = "6b2a2be"; - -const _ENUM_VALUES = { - CREATED_AT: true, - FAILURE: true, - NOTICE: true, - WARNING: true, - ACTION_REQUIRED: true, - CANCELLED: true, - NEUTRAL: true, - SKIPPED: true, - STALE: true, - STARTUP_FAILURE: true, - SUCCESS: true, - TIMED_OUT: true, - ALL: true, - LATEST: true, - COMPLETED: true, - IN_PROGRESS: true, - QUEUED: true, - REQUESTED: true, - DIRECT: true, - OUTSIDE: true, - COLLABORATOR: true, - CONTRIBUTOR: true, - FIRST_TIMER: true, - FIRST_TIME_CONTRIBUTOR: true, - MANNEQUIN: true, - MEMBER: true, - NONE: true, - OWNER: true, - ARCHIVED: true, - DENIED: true, - INSUFFICIENT_ACCESS: true, - LOCKED: true, - LOGIN_REQUIRED: true, - MAINTENANCE: true, - VERIFIED_EMAIL_REQUIRED: true, - COMMIT_COUNT: true, - OCCURRED_AT: true, - ADMIN: true, - READ: true, - WRITE: true, - ABANDONED: true, - ACTIVE: true, - DESTROYED: true, - ERROR: true, - INACTIVE: true, - PENDING: true, - WAITING: true, - LEFT: true, - RIGHT: true, - BILLING_MANAGER: true, - NO_POLICY: true, - DISABLED: true, - ENABLED: true, - LOGIN: true, - PRIVATE: true, - PUBLIC: true, - CUSTOMER_NAME: true, - HOST_NAME: true, - EMAIL: true, - REMOTE_CREATED_AT: true, - CLOUD: true, - SERVER: true, - DISMISSED: true, - UNVIEWED: true, - VIEWED: true, - COMMUNITY_BRIDGE: true, - CUSTOM: true, - GITHUB: true, - ISSUEHUNT: true, - KO_FI: true, - LIBERAPAY: true, - OPEN_COLLECTIVE: true, - OTECHIE: true, - PATREON: true, - TIDELIFT: true, - PUSHED_AT: true, - UPDATED_AT: true, - SECRET: true, - BAD_CERT: true, - BAD_EMAIL: true, - EXPIRED_KEY: true, - GPGVERIFY_ERROR: true, - GPGVERIFY_UNAVAILABLE: true, - INVALID: true, - MALFORMED_SIG: true, - NOT_SIGNING_KEY: true, - NO_USER: true, - OCSP_ERROR: true, - OCSP_PENDING: true, - OCSP_REVOKED: true, - UNKNOWN_KEY: true, - UNKNOWN_SIG_TYPE: true, - UNSIGNED: true, - UNVERIFIED_EMAIL: true, - VALID: true, - CONFIGURED: true, - ENFORCED: true, - UNCONFIGURED: true, - ALLOW_LIST_VALUE: true, - COMMENTS: true, - CLOSED: true, - OPEN: true, - ADDED_TO_PROJECT_EVENT: true, - ASSIGNED_EVENT: true, - CLOSED_EVENT: true, - COMMENT_DELETED_EVENT: true, - CONNECTED_EVENT: true, - CONVERTED_NOTE_TO_ISSUE_EVENT: true, - CROSS_REFERENCED_EVENT: true, - DEMILESTONED_EVENT: true, - DISCONNECTED_EVENT: true, - ISSUE_COMMENT: true, - LABELED_EVENT: true, - LOCKED_EVENT: true, - MARKED_AS_DUPLICATE_EVENT: true, - MENTIONED_EVENT: true, - MILESTONED_EVENT: true, - MOVED_COLUMNS_IN_PROJECT_EVENT: true, - PINNED_EVENT: true, - REFERENCED_EVENT: true, - REMOVED_FROM_PROJECT_EVENT: true, - RENAMED_TITLE_EVENT: true, - REOPENED_EVENT: true, - SUBSCRIBED_EVENT: true, - TRANSFERRED_EVENT: true, - UNASSIGNED_EVENT: true, - UNLABELED_EVENT: true, - UNLOCKED_EVENT: true, - UNMARKED_AS_DUPLICATE_EVENT: true, - UNPINNED_EVENT: true, - UNSUBSCRIBED_EVENT: true, - USER_BLOCKED_EVENT: true, - NAME: true, - SIZE: true, - OFF_TOPIC: true, - RESOLVED: true, - SPAM: true, - TOO_HEATED: true, - CONFLICTING: true, - MERGEABLE: true, - UNKNOWN: true, - DUE_DATE: true, - NUMBER: true, - PENDING_DELETION: true, - SUSPENDED: true, - ACCESS: true, - AUTHENTICATION: true, - CREATE: true, - MODIFY: true, - REMOVE: true, - RESTORE: true, - TRANSFER: true, - ASC: true, - DESC: true, - BUSINESS: true, - BUSINESS_PLUS: true, - FREE: true, - TIERED_PER_SEAT: true, - UNLIMITED: true, - SAML_EXTERNAL_IDENTITY_MISSING: true, - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY: true, - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE: true, - DIRECT_MEMBER: true, - OUTSIDE_COLLABORATOR: true, - UNAFFILIATED: true, - TWO_FACTOR_ACCOUNT_RECOVERY: true, - USER_ACCOUNT_DELETED: true, - INTERNAL: true, - PRIVATE_INTERNAL: true, - PUBLIC_INTERNAL: true, - PUBLIC_PRIVATE: true, - REINSTATE: true, - USER: true, - DEBIAN: true, - DOCKER: true, - MAVEN: true, - NPM: true, - NUGET: true, - PYPI: true, - RUBYGEMS: true, - GIST: true, - ISSUE: true, - ORGANIZATION: true, - PROJECT: true, - PULL_REQUEST: true, - REPOSITORY: true, - TEAM: true, - NOT_ARCHIVED: true, - CONTENT_ONLY: true, - NOTE_ONLY: true, - REDACTED: true, - DONE: true, - TODO: true, - AUTOMATED_KANBAN_V2: true, - AUTOMATED_REVIEWS_KANBAN: true, - BASIC_KANBAN: true, - BUG_TRIAGE: true, - MERGE: true, - REBASE: true, - SQUASH: true, - SUBMITTED: true, - APPROVED: true, - CHANGES_REQUESTED: true, - REVIEW_REQUIRED: true, - APPROVE: true, - COMMENT: true, - DISMISS: true, - REQUEST_CHANGES: true, - COMMENTED: true, - MERGED: true, - AUTOMATIC_BASE_CHANGE_FAILED_EVENT: true, - AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT: true, - BASE_REF_CHANGED_EVENT: true, - BASE_REF_DELETED_EVENT: true, - BASE_REF_FORCE_PUSHED_EVENT: true, - CONVERT_TO_DRAFT_EVENT: true, - DEPLOYED_EVENT: true, - DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT: true, - HEAD_REF_DELETED_EVENT: true, - HEAD_REF_FORCE_PUSHED_EVENT: true, - HEAD_REF_RESTORED_EVENT: true, - MERGED_EVENT: true, - PULL_REQUEST_COMMIT: true, - PULL_REQUEST_COMMIT_COMMENT_THREAD: true, - PULL_REQUEST_REVIEW: true, - PULL_REQUEST_REVIEW_THREAD: true, - PULL_REQUEST_REVISION_MARKER: true, - READY_FOR_REVIEW_EVENT: true, - REVIEW_DISMISSED_EVENT: true, - REVIEW_REQUESTED_EVENT: true, - REVIEW_REQUEST_REMOVED_EVENT: true, - CONFUSED: true, - EYES: true, - HEART: true, - HOORAY: true, - LAUGH: true, - ROCKET: true, - THUMBS_DOWN: true, - THUMBS_UP: true, - ALPHABETICAL: true, - TAG_COMMIT_DATE: true, - ABUSE: true, - DUPLICATE: true, - OUTDATED: true, - ORGANIZATION_MEMBER: true, - COMMIT: true, - COLLABORATORS_ONLY: true, - CONTRIBUTORS_ONLY: true, - EXISTING_USERS: true, - NO_LIMIT: true, - ONE_DAY: true, - ONE_MONTH: true, - ONE_WEEK: true, - SIX_MONTHS: true, - THREE_DAYS: true, - INVITEE_LOGIN: true, - BILLING: true, - MIGRATING: true, - MOVING: true, - RENAME: true, - STARGAZERS: true, - MAINTAIN: true, - TRIAGE: true, - SHA1: true, - SHA256: true, - SHA384: true, - SHA512: true, - RSA_SHA1: true, - RSA_SHA256: true, - RSA_SHA384: true, - RSA_SHA512: true, - COMPOSER: true, - PIP: true, - CVE: true, - GHSA: true, - PUBLISHED_AT: true, - CRITICAL: true, - HIGH: true, - LOW: true, - MODERATE: true, - MONTHLY_PRICE_IN_CENTS: true, - STARRED_AT: true, - EXPECTED: true, - IGNORED: true, - SUBSCRIBED: true, - UNSUBSCRIBED: true, - MAINTAINER: true, - CHILD_TEAM: true, - IMMEDIATE: true, - VISIBLE: true, - PERMISSION: true, - NOT_RELEVANT: true, - PERSONAL_PREFERENCE: true, - TOO_GENERAL: true, - TOO_SPECIFIC: true, - PERMANENT: true, - SCALAR: true, - OBJECT: true, - INTERFACE: true, - UNION: true, - ENUM: true, - INPUT_OBJECT: true, - LIST: true, - NON_NULL: true, - QUERY: true, - MUTATION: true, - SUBSCRIPTION: true, - FIELD: true, - FRAGMENT_DEFINITION: true, - FRAGMENT_SPREAD: true, - INLINE_FRAGMENT: true, - VARIABLE_DEFINITION: true, - SCHEMA: true, - FIELD_DEFINITION: true, - ARGUMENT_DEFINITION: true, - ENUM_VALUE: true, - INPUT_FIELD_DEFINITION: true, -} as const; - -export enum AuditLogOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum CheckAnnotationLevel { - FAILURE = "FAILURE", - NOTICE = "NOTICE", - WARNING = "WARNING", -} - -export enum CheckConclusionState { - ACTION_REQUIRED = "ACTION_REQUIRED", - CANCELLED = "CANCELLED", - FAILURE = "FAILURE", - NEUTRAL = "NEUTRAL", - SKIPPED = "SKIPPED", - STALE = "STALE", - STARTUP_FAILURE = "STARTUP_FAILURE", - SUCCESS = "SUCCESS", - TIMED_OUT = "TIMED_OUT", -} - -export enum CheckRunType { - ALL = "ALL", - LATEST = "LATEST", -} - -export enum CheckStatusState { - COMPLETED = "COMPLETED", - IN_PROGRESS = "IN_PROGRESS", - QUEUED = "QUEUED", - REQUESTED = "REQUESTED", -} - -export enum CollaboratorAffiliation { - ALL = "ALL", - DIRECT = "DIRECT", - OUTSIDE = "OUTSIDE", -} - -export enum CommentAuthorAssociation { - COLLABORATOR = "COLLABORATOR", - CONTRIBUTOR = "CONTRIBUTOR", - FIRST_TIMER = "FIRST_TIMER", - FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR", - MANNEQUIN = "MANNEQUIN", - MEMBER = "MEMBER", - NONE = "NONE", - OWNER = "OWNER", -} - -export enum CommentCannotUpdateReason { - ARCHIVED = "ARCHIVED", - DENIED = "DENIED", - INSUFFICIENT_ACCESS = "INSUFFICIENT_ACCESS", - LOCKED = "LOCKED", - LOGIN_REQUIRED = "LOGIN_REQUIRED", - MAINTENANCE = "MAINTENANCE", - VERIFIED_EMAIL_REQUIRED = "VERIFIED_EMAIL_REQUIRED", -} - -export enum CommitContributionOrderField { - COMMIT_COUNT = "COMMIT_COUNT", - OCCURRED_AT = "OCCURRED_AT", -} - -export enum DefaultRepositoryPermissionField { - ADMIN = "ADMIN", - NONE = "NONE", - READ = "READ", - WRITE = "WRITE", -} - -export enum DeploymentOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum DeploymentState { - ABANDONED = "ABANDONED", - ACTIVE = "ACTIVE", - DESTROYED = "DESTROYED", - ERROR = "ERROR", - FAILURE = "FAILURE", - INACTIVE = "INACTIVE", - IN_PROGRESS = "IN_PROGRESS", - PENDING = "PENDING", - QUEUED = "QUEUED", - WAITING = "WAITING", -} - -export enum DeploymentStatusState { - ERROR = "ERROR", - FAILURE = "FAILURE", - INACTIVE = "INACTIVE", - IN_PROGRESS = "IN_PROGRESS", - PENDING = "PENDING", - QUEUED = "QUEUED", - SUCCESS = "SUCCESS", -} - -export enum DiffSide { - LEFT = "LEFT", - RIGHT = "RIGHT", -} - -export enum EnterpriseAdministratorInvitationOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum EnterpriseAdministratorRole { - BILLING_MANAGER = "BILLING_MANAGER", - OWNER = "OWNER", -} - -export enum EnterpriseDefaultRepositoryPermissionSettingValue { - ADMIN = "ADMIN", - NONE = "NONE", - NO_POLICY = "NO_POLICY", - READ = "READ", - WRITE = "WRITE", -} - -export enum EnterpriseEnabledDisabledSettingValue { - DISABLED = "DISABLED", - ENABLED = "ENABLED", - NO_POLICY = "NO_POLICY", -} - -export enum EnterpriseEnabledSettingValue { - ENABLED = "ENABLED", - NO_POLICY = "NO_POLICY", -} - -export enum EnterpriseMemberOrderField { - CREATED_AT = "CREATED_AT", - LOGIN = "LOGIN", -} - -export enum EnterpriseMembersCanCreateRepositoriesSettingValue { - ALL = "ALL", - DISABLED = "DISABLED", - NO_POLICY = "NO_POLICY", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum EnterpriseMembersCanMakePurchasesSettingValue { - DISABLED = "DISABLED", - ENABLED = "ENABLED", -} - -export enum EnterpriseServerInstallationOrderField { - CREATED_AT = "CREATED_AT", - CUSTOMER_NAME = "CUSTOMER_NAME", - HOST_NAME = "HOST_NAME", -} - -export enum EnterpriseServerUserAccountEmailOrderField { - EMAIL = "EMAIL", -} - -export enum EnterpriseServerUserAccountOrderField { - LOGIN = "LOGIN", - REMOTE_CREATED_AT = "REMOTE_CREATED_AT", -} - -export enum EnterpriseServerUserAccountsUploadOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum EnterpriseServerUserAccountsUploadSyncState { - FAILURE = "FAILURE", - PENDING = "PENDING", - SUCCESS = "SUCCESS", -} - -export enum EnterpriseUserAccountMembershipRole { - MEMBER = "MEMBER", - OWNER = "OWNER", -} - -export enum EnterpriseUserDeployment { - CLOUD = "CLOUD", - SERVER = "SERVER", -} - -export enum FileViewedState { - DISMISSED = "DISMISSED", - UNVIEWED = "UNVIEWED", - VIEWED = "VIEWED", -} - -export enum FundingPlatform { - COMMUNITY_BRIDGE = "COMMUNITY_BRIDGE", - CUSTOM = "CUSTOM", - GITHUB = "GITHUB", - ISSUEHUNT = "ISSUEHUNT", - KO_FI = "KO_FI", - LIBERAPAY = "LIBERAPAY", - OPEN_COLLECTIVE = "OPEN_COLLECTIVE", - OTECHIE = "OTECHIE", - PATREON = "PATREON", - TIDELIFT = "TIDELIFT", -} - -export enum GistOrderField { - CREATED_AT = "CREATED_AT", - PUSHED_AT = "PUSHED_AT", - UPDATED_AT = "UPDATED_AT", -} - -export enum GistPrivacy { - ALL = "ALL", - PUBLIC = "PUBLIC", - SECRET = "SECRET", -} - -export enum GitSignatureState { - BAD_CERT = "BAD_CERT", - BAD_EMAIL = "BAD_EMAIL", - EXPIRED_KEY = "EXPIRED_KEY", - GPGVERIFY_ERROR = "GPGVERIFY_ERROR", - GPGVERIFY_UNAVAILABLE = "GPGVERIFY_UNAVAILABLE", - INVALID = "INVALID", - MALFORMED_SIG = "MALFORMED_SIG", - NOT_SIGNING_KEY = "NOT_SIGNING_KEY", - NO_USER = "NO_USER", - OCSP_ERROR = "OCSP_ERROR", - OCSP_PENDING = "OCSP_PENDING", - OCSP_REVOKED = "OCSP_REVOKED", - UNKNOWN_KEY = "UNKNOWN_KEY", - UNKNOWN_SIG_TYPE = "UNKNOWN_SIG_TYPE", - UNSIGNED = "UNSIGNED", - UNVERIFIED_EMAIL = "UNVERIFIED_EMAIL", - VALID = "VALID", -} - -export enum IdentityProviderConfigurationState { - CONFIGURED = "CONFIGURED", - ENFORCED = "ENFORCED", - UNCONFIGURED = "UNCONFIGURED", -} - -export enum IpAllowListEnabledSettingValue { - DISABLED = "DISABLED", - ENABLED = "ENABLED", -} - -export enum IpAllowListEntryOrderField { - ALLOW_LIST_VALUE = "ALLOW_LIST_VALUE", - CREATED_AT = "CREATED_AT", -} - -export enum IssueCommentOrderField { - UPDATED_AT = "UPDATED_AT", -} - -export enum IssueOrderField { - COMMENTS = "COMMENTS", - CREATED_AT = "CREATED_AT", - UPDATED_AT = "UPDATED_AT", -} - -export enum IssueState { - CLOSED = "CLOSED", - OPEN = "OPEN", -} - -export enum IssueTimelineItemsItemType { - ADDED_TO_PROJECT_EVENT = "ADDED_TO_PROJECT_EVENT", - ASSIGNED_EVENT = "ASSIGNED_EVENT", - CLOSED_EVENT = "CLOSED_EVENT", - COMMENT_DELETED_EVENT = "COMMENT_DELETED_EVENT", - CONNECTED_EVENT = "CONNECTED_EVENT", - CONVERTED_NOTE_TO_ISSUE_EVENT = "CONVERTED_NOTE_TO_ISSUE_EVENT", - CROSS_REFERENCED_EVENT = "CROSS_REFERENCED_EVENT", - DEMILESTONED_EVENT = "DEMILESTONED_EVENT", - DISCONNECTED_EVENT = "DISCONNECTED_EVENT", - ISSUE_COMMENT = "ISSUE_COMMENT", - LABELED_EVENT = "LABELED_EVENT", - LOCKED_EVENT = "LOCKED_EVENT", - MARKED_AS_DUPLICATE_EVENT = "MARKED_AS_DUPLICATE_EVENT", - MENTIONED_EVENT = "MENTIONED_EVENT", - MILESTONED_EVENT = "MILESTONED_EVENT", - MOVED_COLUMNS_IN_PROJECT_EVENT = "MOVED_COLUMNS_IN_PROJECT_EVENT", - PINNED_EVENT = "PINNED_EVENT", - REFERENCED_EVENT = "REFERENCED_EVENT", - REMOVED_FROM_PROJECT_EVENT = "REMOVED_FROM_PROJECT_EVENT", - RENAMED_TITLE_EVENT = "RENAMED_TITLE_EVENT", - REOPENED_EVENT = "REOPENED_EVENT", - SUBSCRIBED_EVENT = "SUBSCRIBED_EVENT", - TRANSFERRED_EVENT = "TRANSFERRED_EVENT", - UNASSIGNED_EVENT = "UNASSIGNED_EVENT", - UNLABELED_EVENT = "UNLABELED_EVENT", - UNLOCKED_EVENT = "UNLOCKED_EVENT", - UNMARKED_AS_DUPLICATE_EVENT = "UNMARKED_AS_DUPLICATE_EVENT", - UNPINNED_EVENT = "UNPINNED_EVENT", - UNSUBSCRIBED_EVENT = "UNSUBSCRIBED_EVENT", - USER_BLOCKED_EVENT = "USER_BLOCKED_EVENT", -} - -export enum LabelOrderField { - CREATED_AT = "CREATED_AT", - NAME = "NAME", -} - -export enum LanguageOrderField { - SIZE = "SIZE", -} - -export enum LockReason { - OFF_TOPIC = "OFF_TOPIC", - RESOLVED = "RESOLVED", - SPAM = "SPAM", - TOO_HEATED = "TOO_HEATED", -} - -export enum MergeableState { - CONFLICTING = "CONFLICTING", - MERGEABLE = "MERGEABLE", - UNKNOWN = "UNKNOWN", -} - -export enum MilestoneOrderField { - CREATED_AT = "CREATED_AT", - DUE_DATE = "DUE_DATE", - NUMBER = "NUMBER", - UPDATED_AT = "UPDATED_AT", -} - -export enum MilestoneState { - CLOSED = "CLOSED", - OPEN = "OPEN", -} - -export enum OauthApplicationCreateAuditEntryState { - ACTIVE = "ACTIVE", - PENDING_DELETION = "PENDING_DELETION", - SUSPENDED = "SUSPENDED", -} - -export enum OperationType { - ACCESS = "ACCESS", - AUTHENTICATION = "AUTHENTICATION", - CREATE = "CREATE", - MODIFY = "MODIFY", - REMOVE = "REMOVE", - RESTORE = "RESTORE", - TRANSFER = "TRANSFER", -} - -export enum OrderDirection { - ASC = "ASC", - DESC = "DESC", -} - -export enum OrgAddMemberAuditEntryPermission { - ADMIN = "ADMIN", - READ = "READ", -} - -export enum OrgCreateAuditEntryBillingPlan { - BUSINESS = "BUSINESS", - BUSINESS_PLUS = "BUSINESS_PLUS", - FREE = "FREE", - TIERED_PER_SEAT = "TIERED_PER_SEAT", - UNLIMITED = "UNLIMITED", -} - -export enum OrgRemoveBillingManagerAuditEntryReason { - SAML_EXTERNAL_IDENTITY_MISSING = "SAML_EXTERNAL_IDENTITY_MISSING", - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY", - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE", -} - -export enum OrgRemoveMemberAuditEntryMembershipType { - ADMIN = "ADMIN", - BILLING_MANAGER = "BILLING_MANAGER", - DIRECT_MEMBER = "DIRECT_MEMBER", - OUTSIDE_COLLABORATOR = "OUTSIDE_COLLABORATOR", - UNAFFILIATED = "UNAFFILIATED", -} - -export enum OrgRemoveMemberAuditEntryReason { - SAML_EXTERNAL_IDENTITY_MISSING = "SAML_EXTERNAL_IDENTITY_MISSING", - SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY = "SAML_SSO_ENFORCEMENT_REQUIRES_EXTERNAL_IDENTITY", - TWO_FACTOR_ACCOUNT_RECOVERY = "TWO_FACTOR_ACCOUNT_RECOVERY", - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE", - USER_ACCOUNT_DELETED = "USER_ACCOUNT_DELETED", -} - -export enum OrgRemoveOutsideCollaboratorAuditEntryMembershipType { - BILLING_MANAGER = "BILLING_MANAGER", - OUTSIDE_COLLABORATOR = "OUTSIDE_COLLABORATOR", - UNAFFILIATED = "UNAFFILIATED", -} - -export enum OrgRemoveOutsideCollaboratorAuditEntryReason { - SAML_EXTERNAL_IDENTITY_MISSING = "SAML_EXTERNAL_IDENTITY_MISSING", - TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE = "TWO_FACTOR_REQUIREMENT_NON_COMPLIANCE", -} - -export enum OrgUpdateDefaultRepositoryPermissionAuditEntryPermission { - ADMIN = "ADMIN", - NONE = "NONE", - READ = "READ", - WRITE = "WRITE", -} - -export enum OrgUpdateMemberAuditEntryPermission { - ADMIN = "ADMIN", - READ = "READ", -} - -export enum OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility { - ALL = "ALL", - INTERNAL = "INTERNAL", - NONE = "NONE", - PRIVATE = "PRIVATE", - PRIVATE_INTERNAL = "PRIVATE_INTERNAL", - PUBLIC = "PUBLIC", - PUBLIC_INTERNAL = "PUBLIC_INTERNAL", - PUBLIC_PRIVATE = "PUBLIC_PRIVATE", -} - -export enum OrganizationInvitationRole { - ADMIN = "ADMIN", - BILLING_MANAGER = "BILLING_MANAGER", - DIRECT_MEMBER = "DIRECT_MEMBER", - REINSTATE = "REINSTATE", -} - -export enum OrganizationInvitationType { - EMAIL = "EMAIL", - USER = "USER", -} - -export enum OrganizationMemberRole { - ADMIN = "ADMIN", - MEMBER = "MEMBER", -} - -export enum OrganizationMembersCanCreateRepositoriesSettingValue { - ALL = "ALL", - DISABLED = "DISABLED", - PRIVATE = "PRIVATE", -} - -export enum OrganizationOrderField { - CREATED_AT = "CREATED_AT", - LOGIN = "LOGIN", -} - -export enum PackageFileOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum PackageOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum PackageType { - DEBIAN = "DEBIAN", - DOCKER = "DOCKER", - MAVEN = "MAVEN", - NPM = "NPM", - NUGET = "NUGET", - PYPI = "PYPI", - RUBYGEMS = "RUBYGEMS", -} - -export enum PackageVersionOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum PinnableItemType { - GIST = "GIST", - ISSUE = "ISSUE", - ORGANIZATION = "ORGANIZATION", - PROJECT = "PROJECT", - PULL_REQUEST = "PULL_REQUEST", - REPOSITORY = "REPOSITORY", - TEAM = "TEAM", - USER = "USER", -} - -export enum ProjectCardArchivedState { - ARCHIVED = "ARCHIVED", - NOT_ARCHIVED = "NOT_ARCHIVED", -} - -export enum ProjectCardState { - CONTENT_ONLY = "CONTENT_ONLY", - NOTE_ONLY = "NOTE_ONLY", - REDACTED = "REDACTED", -} - -export enum ProjectColumnPurpose { - DONE = "DONE", - IN_PROGRESS = "IN_PROGRESS", - TODO = "TODO", -} - -export enum ProjectOrderField { - CREATED_AT = "CREATED_AT", - NAME = "NAME", - UPDATED_AT = "UPDATED_AT", -} - -export enum ProjectState { - CLOSED = "CLOSED", - OPEN = "OPEN", -} - -export enum ProjectTemplate { - AUTOMATED_KANBAN_V2 = "AUTOMATED_KANBAN_V2", - AUTOMATED_REVIEWS_KANBAN = "AUTOMATED_REVIEWS_KANBAN", - BASIC_KANBAN = "BASIC_KANBAN", - BUG_TRIAGE = "BUG_TRIAGE", -} - -export enum PullRequestMergeMethod { - MERGE = "MERGE", - REBASE = "REBASE", - SQUASH = "SQUASH", -} - -export enum PullRequestOrderField { - CREATED_AT = "CREATED_AT", - UPDATED_AT = "UPDATED_AT", -} - -export enum PullRequestReviewCommentState { - PENDING = "PENDING", - SUBMITTED = "SUBMITTED", -} - -export enum PullRequestReviewDecision { - APPROVED = "APPROVED", - CHANGES_REQUESTED = "CHANGES_REQUESTED", - REVIEW_REQUIRED = "REVIEW_REQUIRED", -} - -export enum PullRequestReviewEvent { - APPROVE = "APPROVE", - COMMENT = "COMMENT", - DISMISS = "DISMISS", - REQUEST_CHANGES = "REQUEST_CHANGES", -} - -export enum PullRequestReviewState { - APPROVED = "APPROVED", - CHANGES_REQUESTED = "CHANGES_REQUESTED", - COMMENTED = "COMMENTED", - DISMISSED = "DISMISSED", - PENDING = "PENDING", -} - -export enum PullRequestState { - CLOSED = "CLOSED", - MERGED = "MERGED", - OPEN = "OPEN", -} - -export enum PullRequestTimelineItemsItemType { - ADDED_TO_PROJECT_EVENT = "ADDED_TO_PROJECT_EVENT", - ASSIGNED_EVENT = "ASSIGNED_EVENT", - AUTOMATIC_BASE_CHANGE_FAILED_EVENT = "AUTOMATIC_BASE_CHANGE_FAILED_EVENT", - AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT = "AUTOMATIC_BASE_CHANGE_SUCCEEDED_EVENT", - BASE_REF_CHANGED_EVENT = "BASE_REF_CHANGED_EVENT", - BASE_REF_DELETED_EVENT = "BASE_REF_DELETED_EVENT", - BASE_REF_FORCE_PUSHED_EVENT = "BASE_REF_FORCE_PUSHED_EVENT", - CLOSED_EVENT = "CLOSED_EVENT", - COMMENT_DELETED_EVENT = "COMMENT_DELETED_EVENT", - CONNECTED_EVENT = "CONNECTED_EVENT", - CONVERTED_NOTE_TO_ISSUE_EVENT = "CONVERTED_NOTE_TO_ISSUE_EVENT", - CONVERT_TO_DRAFT_EVENT = "CONVERT_TO_DRAFT_EVENT", - CROSS_REFERENCED_EVENT = "CROSS_REFERENCED_EVENT", - DEMILESTONED_EVENT = "DEMILESTONED_EVENT", - DEPLOYED_EVENT = "DEPLOYED_EVENT", - DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT = "DEPLOYMENT_ENVIRONMENT_CHANGED_EVENT", - DISCONNECTED_EVENT = "DISCONNECTED_EVENT", - HEAD_REF_DELETED_EVENT = "HEAD_REF_DELETED_EVENT", - HEAD_REF_FORCE_PUSHED_EVENT = "HEAD_REF_FORCE_PUSHED_EVENT", - HEAD_REF_RESTORED_EVENT = "HEAD_REF_RESTORED_EVENT", - ISSUE_COMMENT = "ISSUE_COMMENT", - LABELED_EVENT = "LABELED_EVENT", - LOCKED_EVENT = "LOCKED_EVENT", - MARKED_AS_DUPLICATE_EVENT = "MARKED_AS_DUPLICATE_EVENT", - MENTIONED_EVENT = "MENTIONED_EVENT", - MERGED_EVENT = "MERGED_EVENT", - MILESTONED_EVENT = "MILESTONED_EVENT", - MOVED_COLUMNS_IN_PROJECT_EVENT = "MOVED_COLUMNS_IN_PROJECT_EVENT", - PINNED_EVENT = "PINNED_EVENT", - PULL_REQUEST_COMMIT = "PULL_REQUEST_COMMIT", - PULL_REQUEST_COMMIT_COMMENT_THREAD = "PULL_REQUEST_COMMIT_COMMENT_THREAD", - PULL_REQUEST_REVIEW = "PULL_REQUEST_REVIEW", - PULL_REQUEST_REVIEW_THREAD = "PULL_REQUEST_REVIEW_THREAD", - PULL_REQUEST_REVISION_MARKER = "PULL_REQUEST_REVISION_MARKER", - READY_FOR_REVIEW_EVENT = "READY_FOR_REVIEW_EVENT", - REFERENCED_EVENT = "REFERENCED_EVENT", - REMOVED_FROM_PROJECT_EVENT = "REMOVED_FROM_PROJECT_EVENT", - RENAMED_TITLE_EVENT = "RENAMED_TITLE_EVENT", - REOPENED_EVENT = "REOPENED_EVENT", - REVIEW_DISMISSED_EVENT = "REVIEW_DISMISSED_EVENT", - REVIEW_REQUESTED_EVENT = "REVIEW_REQUESTED_EVENT", - REVIEW_REQUEST_REMOVED_EVENT = "REVIEW_REQUEST_REMOVED_EVENT", - SUBSCRIBED_EVENT = "SUBSCRIBED_EVENT", - TRANSFERRED_EVENT = "TRANSFERRED_EVENT", - UNASSIGNED_EVENT = "UNASSIGNED_EVENT", - UNLABELED_EVENT = "UNLABELED_EVENT", - UNLOCKED_EVENT = "UNLOCKED_EVENT", - UNMARKED_AS_DUPLICATE_EVENT = "UNMARKED_AS_DUPLICATE_EVENT", - UNPINNED_EVENT = "UNPINNED_EVENT", - UNSUBSCRIBED_EVENT = "UNSUBSCRIBED_EVENT", - USER_BLOCKED_EVENT = "USER_BLOCKED_EVENT", -} - -export enum PullRequestUpdateState { - CLOSED = "CLOSED", - OPEN = "OPEN", -} - -export enum ReactionContent { - CONFUSED = "CONFUSED", - EYES = "EYES", - HEART = "HEART", - HOORAY = "HOORAY", - LAUGH = "LAUGH", - ROCKET = "ROCKET", - THUMBS_DOWN = "THUMBS_DOWN", - THUMBS_UP = "THUMBS_UP", -} - -export enum ReactionOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum RefOrderField { - ALPHABETICAL = "ALPHABETICAL", - TAG_COMMIT_DATE = "TAG_COMMIT_DATE", -} - -export enum ReleaseOrderField { - CREATED_AT = "CREATED_AT", - NAME = "NAME", -} - -export enum RepoAccessAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepoAddMemberAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepoArchivedAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepoChangeMergeSettingAuditEntryMergeType { - MERGE = "MERGE", - REBASE = "REBASE", - SQUASH = "SQUASH", -} - -export enum RepoCreateAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepoDestroyAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepoRemoveMemberAuditEntryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum ReportedContentClassifiers { - ABUSE = "ABUSE", - DUPLICATE = "DUPLICATE", - OFF_TOPIC = "OFF_TOPIC", - OUTDATED = "OUTDATED", - RESOLVED = "RESOLVED", - SPAM = "SPAM", -} - -export enum RepositoryAffiliation { - COLLABORATOR = "COLLABORATOR", - ORGANIZATION_MEMBER = "ORGANIZATION_MEMBER", - OWNER = "OWNER", -} - -export enum RepositoryContributionType { - COMMIT = "COMMIT", - ISSUE = "ISSUE", - PULL_REQUEST = "PULL_REQUEST", - PULL_REQUEST_REVIEW = "PULL_REQUEST_REVIEW", - REPOSITORY = "REPOSITORY", -} - -export enum RepositoryInteractionLimit { - COLLABORATORS_ONLY = "COLLABORATORS_ONLY", - CONTRIBUTORS_ONLY = "CONTRIBUTORS_ONLY", - EXISTING_USERS = "EXISTING_USERS", - NO_LIMIT = "NO_LIMIT", -} - -export enum RepositoryInteractionLimitExpiry { - ONE_DAY = "ONE_DAY", - ONE_MONTH = "ONE_MONTH", - ONE_WEEK = "ONE_WEEK", - SIX_MONTHS = "SIX_MONTHS", - THREE_DAYS = "THREE_DAYS", -} - -export enum RepositoryInteractionLimitOrigin { - ORGANIZATION = "ORGANIZATION", - REPOSITORY = "REPOSITORY", - USER = "USER", -} - -export enum RepositoryInvitationOrderField { - CREATED_AT = "CREATED_AT", - INVITEE_LOGIN = "INVITEE_LOGIN", -} - -export enum RepositoryLockReason { - BILLING = "BILLING", - MIGRATING = "MIGRATING", - MOVING = "MOVING", - RENAME = "RENAME", -} - -export enum RepositoryOrderField { - CREATED_AT = "CREATED_AT", - NAME = "NAME", - PUSHED_AT = "PUSHED_AT", - STARGAZERS = "STARGAZERS", - UPDATED_AT = "UPDATED_AT", -} - -export enum RepositoryPermission { - ADMIN = "ADMIN", - MAINTAIN = "MAINTAIN", - READ = "READ", - TRIAGE = "TRIAGE", - WRITE = "WRITE", -} - -export enum RepositoryPrivacy { - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RepositoryVisibility { - INTERNAL = "INTERNAL", - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum RequestableCheckStatusState { - COMPLETED = "COMPLETED", - IN_PROGRESS = "IN_PROGRESS", - QUEUED = "QUEUED", -} - -export enum SamlDigestAlgorithm { - SHA1 = "SHA1", - SHA256 = "SHA256", - SHA384 = "SHA384", - SHA512 = "SHA512", -} - -export enum SamlSignatureAlgorithm { - RSA_SHA1 = "RSA_SHA1", - RSA_SHA256 = "RSA_SHA256", - RSA_SHA384 = "RSA_SHA384", - RSA_SHA512 = "RSA_SHA512", -} - -export enum SavedReplyOrderField { - UPDATED_AT = "UPDATED_AT", -} - -export enum SearchType { - ISSUE = "ISSUE", - REPOSITORY = "REPOSITORY", - USER = "USER", -} - -export enum SecurityAdvisoryEcosystem { - COMPOSER = "COMPOSER", - MAVEN = "MAVEN", - NPM = "NPM", - NUGET = "NUGET", - PIP = "PIP", - RUBYGEMS = "RUBYGEMS", -} - -export enum SecurityAdvisoryIdentifierType { - CVE = "CVE", - GHSA = "GHSA", -} - -export enum SecurityAdvisoryOrderField { - PUBLISHED_AT = "PUBLISHED_AT", - UPDATED_AT = "UPDATED_AT", -} - -export enum SecurityAdvisorySeverity { - CRITICAL = "CRITICAL", - HIGH = "HIGH", - LOW = "LOW", - MODERATE = "MODERATE", -} - -export enum SecurityVulnerabilityOrderField { - UPDATED_AT = "UPDATED_AT", -} - -export enum SponsorsTierOrderField { - CREATED_AT = "CREATED_AT", - MONTHLY_PRICE_IN_CENTS = "MONTHLY_PRICE_IN_CENTS", -} - -export enum SponsorshipOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum SponsorshipPrivacy { - PRIVATE = "PRIVATE", - PUBLIC = "PUBLIC", -} - -export enum StarOrderField { - STARRED_AT = "STARRED_AT", -} - -export enum StatusState { - ERROR = "ERROR", - EXPECTED = "EXPECTED", - FAILURE = "FAILURE", - PENDING = "PENDING", - SUCCESS = "SUCCESS", -} - -export enum SubscriptionState { - IGNORED = "IGNORED", - SUBSCRIBED = "SUBSCRIBED", - UNSUBSCRIBED = "UNSUBSCRIBED", -} - -export enum TeamDiscussionCommentOrderField { - NUMBER = "NUMBER", -} - -export enum TeamDiscussionOrderField { - CREATED_AT = "CREATED_AT", -} - -export enum TeamMemberOrderField { - CREATED_AT = "CREATED_AT", - LOGIN = "LOGIN", -} - -export enum TeamMemberRole { - MAINTAINER = "MAINTAINER", - MEMBER = "MEMBER", -} - -export enum TeamMembershipType { - ALL = "ALL", - CHILD_TEAM = "CHILD_TEAM", - IMMEDIATE = "IMMEDIATE", -} - -export enum TeamOrderField { - NAME = "NAME", -} - -export enum TeamPrivacy { - SECRET = "SECRET", - VISIBLE = "VISIBLE", -} - -export enum TeamRepositoryOrderField { - CREATED_AT = "CREATED_AT", - NAME = "NAME", - PERMISSION = "PERMISSION", - PUSHED_AT = "PUSHED_AT", - STARGAZERS = "STARGAZERS", - UPDATED_AT = "UPDATED_AT", -} - -export enum TeamRole { - ADMIN = "ADMIN", - MEMBER = "MEMBER", -} - -export enum TopicSuggestionDeclineReason { - NOT_RELEVANT = "NOT_RELEVANT", - PERSONAL_PREFERENCE = "PERSONAL_PREFERENCE", - TOO_GENERAL = "TOO_GENERAL", - TOO_SPECIFIC = "TOO_SPECIFIC", -} - -export enum UserBlockDuration { - ONE_DAY = "ONE_DAY", - ONE_MONTH = "ONE_MONTH", - ONE_WEEK = "ONE_WEEK", - PERMANENT = "PERMANENT", - THREE_DAYS = "THREE_DAYS", -} - -export enum UserStatusOrderField { - UPDATED_AT = "UPDATED_AT", -} - -export interface AcceptEnterpriseAdministratorInvitationInput { - readonly clientMutationId?: string; - readonly invitationId: string; -} - -export interface AcceptTopicSuggestionInput { - readonly clientMutationId?: string; - readonly name: string; - readonly repositoryId: string; -} - -export interface AddAssigneesToAssignableInput { - readonly assignableId: string; - readonly assigneeIds: string; - readonly clientMutationId?: string; -} - -export interface AddCommentInput { - readonly body: string; - readonly clientMutationId?: string; - readonly subjectId: string; -} - -export interface AddLabelsToLabelableInput { - readonly clientMutationId?: string; - readonly labelIds: string; - readonly labelableId: string; -} - -export interface AddProjectCardInput { - readonly clientMutationId?: string; - readonly contentId?: string; - readonly note?: string; - readonly projectColumnId: string; -} - -export interface AddProjectColumnInput { - readonly clientMutationId?: string; - readonly name: string; - readonly projectId: string; -} - -export interface AddPullRequestReviewCommentInput { - readonly body: string; - readonly clientMutationId?: string; - readonly commitOID?: unknown; - readonly inReplyTo?: string; - readonly path?: string; - readonly position?: number; - readonly pullRequestId?: string; - readonly pullRequestReviewId?: string; -} - -export interface AddPullRequestReviewInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly comments?: DraftPullRequestReviewComment[]; - readonly commitOID?: unknown; - readonly event?: PullRequestReviewEvent; - readonly pullRequestId: string; - readonly threads?: DraftPullRequestReviewThread[]; -} - -export interface AddPullRequestReviewThreadInput { - readonly body: string; - readonly clientMutationId?: string; - readonly line: number; - readonly path: string; - readonly pullRequestId?: string; - readonly pullRequestReviewId?: string; - readonly side?: DiffSide; - readonly startLine?: number; - readonly startSide?: DiffSide; -} - -export interface AddReactionInput { - readonly clientMutationId?: string; - readonly content: ReactionContent; - readonly subjectId: string; -} - -export interface AddStarInput { - readonly clientMutationId?: string; - readonly starrableId: string; -} - -export interface ArchiveRepositoryInput { - readonly clientMutationId?: string; - readonly repositoryId: string; -} - -export interface AuditLogOrder { - readonly direction?: OrderDirection; - readonly field?: AuditLogOrderField; -} - -export interface CancelEnterpriseAdminInvitationInput { - readonly clientMutationId?: string; - readonly invitationId: string; -} - -export interface ChangeUserStatusInput { - readonly clientMutationId?: string; - readonly emoji?: string; - readonly expiresAt?: unknown; - readonly limitedAvailability?: boolean; - readonly message?: string; - readonly organizationId?: string; -} - -export interface CheckAnnotationData { - readonly annotationLevel: CheckAnnotationLevel; - readonly location: CheckAnnotationRange; - readonly message: string; - readonly path: string; - readonly rawDetails?: string; - readonly title?: string; -} - -export interface CheckAnnotationRange { - readonly endColumn?: number; - readonly endLine: number; - readonly startColumn?: number; - readonly startLine: number; -} - -export interface CheckRunAction { - readonly description: string; - readonly identifier: string; - readonly label: string; -} - -export interface CheckRunFilter { - readonly appId?: number; - readonly checkName?: string; - readonly checkType?: CheckRunType; - readonly status?: CheckStatusState; -} - -export interface CheckRunOutput { - readonly annotations?: CheckAnnotationData[]; - readonly images?: CheckRunOutputImage[]; - readonly summary: string; - readonly text?: string; - readonly title: string; -} - -export interface CheckRunOutputImage { - readonly alt: string; - readonly caption?: string; - readonly imageUrl: unknown; -} - -export interface CheckSuiteAutoTriggerPreference { - readonly appId: string; - readonly setting: boolean; -} - -export interface CheckSuiteFilter { - readonly appId?: number; - readonly checkName?: string; -} - -export interface ClearLabelsFromLabelableInput { - readonly clientMutationId?: string; - readonly labelableId: string; -} - -export interface CloneProjectInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly includeWorkflows: boolean; - readonly name: string; - readonly public?: boolean; - readonly sourceId: string; - readonly targetOwnerId: string; -} - -export interface CloneTemplateRepositoryInput { - readonly clientMutationId?: string; - readonly description?: string; - readonly includeAllBranches?: boolean; - readonly name: string; - readonly ownerId: string; - readonly repositoryId: string; - readonly visibility: RepositoryVisibility; -} - -export interface CloseIssueInput { - readonly clientMutationId?: string; - readonly issueId: string; -} - -export interface ClosePullRequestInput { - readonly clientMutationId?: string; - readonly pullRequestId: string; -} - -export interface CommitAuthor { - readonly emails?: string[]; - readonly id?: string; -} - -export interface CommitContributionOrder { - readonly direction: OrderDirection; - readonly field: CommitContributionOrderField; -} - -export interface ContributionOrder { - readonly direction: OrderDirection; -} - -export interface ConvertProjectCardNoteToIssueInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly projectCardId: string; - readonly repositoryId: string; - readonly title?: string; -} - -export interface CreateBranchProtectionRuleInput { - readonly allowsDeletions?: boolean; - readonly allowsForcePushes?: boolean; - readonly clientMutationId?: string; - readonly dismissesStaleReviews?: boolean; - readonly isAdminEnforced?: boolean; - readonly pattern: string; - readonly pushActorIds?: string[]; - readonly repositoryId: string; - readonly requiredApprovingReviewCount?: number; - readonly requiredStatusCheckContexts?: string[]; - readonly requiresApprovingReviews?: boolean; - readonly requiresCodeOwnerReviews?: boolean; - readonly requiresCommitSignatures?: boolean; - readonly requiresLinearHistory?: boolean; - readonly requiresStatusChecks?: boolean; - readonly requiresStrictStatusChecks?: boolean; - readonly restrictsPushes?: boolean; - readonly restrictsReviewDismissals?: boolean; - readonly reviewDismissalActorIds?: string[]; -} - -export interface CreateCheckRunInput { - readonly actions?: CheckRunAction[]; - readonly clientMutationId?: string; - readonly completedAt?: unknown; - readonly conclusion?: CheckConclusionState; - readonly detailsUrl?: unknown; - readonly externalId?: string; - readonly headSha: unknown; - readonly name: string; - readonly output?: CheckRunOutput; - readonly repositoryId: string; - readonly startedAt?: unknown; - readonly status?: RequestableCheckStatusState; -} - -export interface CreateCheckSuiteInput { - readonly clientMutationId?: string; - readonly headSha: unknown; - readonly repositoryId: string; -} - -export interface CreateEnterpriseOrganizationInput { - readonly adminLogins: string; - readonly billingEmail: string; - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly login: string; - readonly profileName: string; -} - -export interface CreateIpAllowListEntryInput { - readonly allowListValue: string; - readonly clientMutationId?: string; - readonly isActive: boolean; - readonly name?: string; - readonly ownerId: string; -} - -export interface CreateIssueInput { - readonly assigneeIds?: string[]; - readonly body?: string; - readonly clientMutationId?: string; - readonly issueTemplate?: string; - readonly labelIds?: string[]; - readonly milestoneId?: string; - readonly projectIds?: string[]; - readonly repositoryId: string; - readonly title: string; -} - -export interface CreateProjectInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly name: string; - readonly ownerId: string; - readonly repositoryIds?: string[]; - readonly template?: ProjectTemplate; -} - -export interface CreatePullRequestInput { - readonly baseRefName: string; - readonly body?: string; - readonly clientMutationId?: string; - readonly draft?: boolean; - readonly headRefName: string; - readonly maintainerCanModify?: boolean; - readonly repositoryId: string; - readonly title: string; -} - -export interface CreateRefInput { - readonly clientMutationId?: string; - readonly name: string; - readonly oid: unknown; - readonly repositoryId: string; -} - -export interface CreateRepositoryInput { - readonly clientMutationId?: string; - readonly description?: string; - readonly hasIssuesEnabled?: boolean; - readonly hasWikiEnabled?: boolean; - readonly homepageUrl?: unknown; - readonly name: string; - readonly ownerId?: string; - readonly teamId?: string; - readonly template?: boolean; - readonly visibility: RepositoryVisibility; -} - -export interface CreateTeamDiscussionCommentInput { - readonly body: string; - readonly clientMutationId?: string; - readonly discussionId: string; -} - -export interface CreateTeamDiscussionInput { - readonly body: string; - readonly clientMutationId?: string; - readonly private?: boolean; - readonly teamId: string; - readonly title: string; -} - -export interface DeclineTopicSuggestionInput { - readonly clientMutationId?: string; - readonly name: string; - readonly reason: TopicSuggestionDeclineReason; - readonly repositoryId: string; -} - -export interface DeleteBranchProtectionRuleInput { - readonly branchProtectionRuleId: string; - readonly clientMutationId?: string; -} - -export interface DeleteDeploymentInput { - readonly clientMutationId?: string; - readonly id: string; -} - -export interface DeleteIpAllowListEntryInput { - readonly clientMutationId?: string; - readonly ipAllowListEntryId: string; -} - -export interface DeleteIssueCommentInput { - readonly clientMutationId?: string; - readonly id: string; -} - -export interface DeleteIssueInput { - readonly clientMutationId?: string; - readonly issueId: string; -} - -export interface DeleteProjectCardInput { - readonly cardId: string; - readonly clientMutationId?: string; -} - -export interface DeleteProjectColumnInput { - readonly clientMutationId?: string; - readonly columnId: string; -} - -export interface DeleteProjectInput { - readonly clientMutationId?: string; - readonly projectId: string; -} - -export interface DeletePullRequestReviewCommentInput { - readonly clientMutationId?: string; - readonly id: string; -} - -export interface DeletePullRequestReviewInput { - readonly clientMutationId?: string; - readonly pullRequestReviewId: string; -} - -export interface DeleteRefInput { - readonly clientMutationId?: string; - readonly refId: string; -} - -export interface DeleteTeamDiscussionCommentInput { - readonly clientMutationId?: string; - readonly id: string; -} - -export interface DeleteTeamDiscussionInput { - readonly clientMutationId?: string; - readonly id: string; -} - -export interface DeploymentOrder { - readonly direction: OrderDirection; - readonly field: DeploymentOrderField; -} - -export interface DismissPullRequestReviewInput { - readonly clientMutationId?: string; - readonly message: string; - readonly pullRequestReviewId: string; -} - -export interface DraftPullRequestReviewComment { - readonly body: string; - readonly path: string; - readonly position: number; -} - -export interface DraftPullRequestReviewThread { - readonly body: string; - readonly line: number; - readonly path: string; - readonly side?: DiffSide; - readonly startLine?: number; - readonly startSide?: DiffSide; -} - -export interface EnterpriseAdministratorInvitationOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseAdministratorInvitationOrderField; -} - -export interface EnterpriseMemberOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseMemberOrderField; -} - -export interface EnterpriseServerInstallationOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseServerInstallationOrderField; -} - -export interface EnterpriseServerUserAccountEmailOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseServerUserAccountEmailOrderField; -} - -export interface EnterpriseServerUserAccountOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseServerUserAccountOrderField; -} - -export interface EnterpriseServerUserAccountsUploadOrder { - readonly direction: OrderDirection; - readonly field: EnterpriseServerUserAccountsUploadOrderField; -} - -export interface FollowUserInput { - readonly clientMutationId?: string; - readonly userId: string; -} - -export interface GistOrder { - readonly direction: OrderDirection; - readonly field: GistOrderField; -} - -export interface InviteEnterpriseAdminInput { - readonly clientMutationId?: string; - readonly email?: string; - readonly enterpriseId: string; - readonly invitee?: string; - readonly role?: EnterpriseAdministratorRole; -} - -export interface IpAllowListEntryOrder { - readonly direction: OrderDirection; - readonly field: IpAllowListEntryOrderField; -} - -export interface IssueCommentOrder { - readonly direction: OrderDirection; - readonly field: IssueCommentOrderField; -} - -export interface IssueFilters { - readonly assignee?: string; - readonly createdBy?: string; - readonly labels?: string[]; - readonly mentioned?: string; - readonly milestone?: string; - readonly since?: unknown; - readonly states?: IssueState[]; - readonly viewerSubscribed?: boolean; -} - -export interface IssueOrder { - readonly direction: OrderDirection; - readonly field: IssueOrderField; -} - -export interface LabelOrder { - readonly direction: OrderDirection; - readonly field: LabelOrderField; -} - -export interface LanguageOrder { - readonly direction: OrderDirection; - readonly field: LanguageOrderField; -} - -export interface LinkRepositoryToProjectInput { - readonly clientMutationId?: string; - readonly projectId: string; - readonly repositoryId: string; -} - -export interface LockLockableInput { - readonly clientMutationId?: string; - readonly lockReason?: LockReason; - readonly lockableId: string; -} - -export interface MarkFileAsViewedInput { - readonly clientMutationId?: string; - readonly path: string; - readonly pullRequestId: string; -} - -export interface MarkPullRequestReadyForReviewInput { - readonly clientMutationId?: string; - readonly pullRequestId: string; -} - -export interface MergeBranchInput { - readonly authorEmail?: string; - readonly base: string; - readonly clientMutationId?: string; - readonly commitMessage?: string; - readonly head: string; - readonly repositoryId: string; -} - -export interface MergePullRequestInput { - readonly authorEmail?: string; - readonly clientMutationId?: string; - readonly commitBody?: string; - readonly commitHeadline?: string; - readonly expectedHeadOid?: unknown; - readonly mergeMethod?: PullRequestMergeMethod; - readonly pullRequestId: string; -} - -export interface MilestoneOrder { - readonly direction: OrderDirection; - readonly field: MilestoneOrderField; -} - -export interface MinimizeCommentInput { - readonly classifier: ReportedContentClassifiers; - readonly clientMutationId?: string; - readonly subjectId: string; -} - -export interface MoveProjectCardInput { - readonly afterCardId?: string; - readonly cardId: string; - readonly clientMutationId?: string; - readonly columnId: string; -} - -export interface MoveProjectColumnInput { - readonly afterColumnId?: string; - readonly clientMutationId?: string; - readonly columnId: string; -} - -export interface OrganizationOrder { - readonly direction: OrderDirection; - readonly field: OrganizationOrderField; -} - -export interface PackageFileOrder { - readonly direction?: OrderDirection; - readonly field?: PackageFileOrderField; -} - -export interface PackageOrder { - readonly direction?: OrderDirection; - readonly field?: PackageOrderField; -} - -export interface PackageVersionOrder { - readonly direction?: OrderDirection; - readonly field?: PackageVersionOrderField; -} - -export interface ProjectOrder { - readonly direction: OrderDirection; - readonly field: ProjectOrderField; -} - -export interface PullRequestOrder { - readonly direction: OrderDirection; - readonly field: PullRequestOrderField; -} - -export interface ReactionOrder { - readonly direction: OrderDirection; - readonly field: ReactionOrderField; -} - -export interface RefOrder { - readonly direction: OrderDirection; - readonly field: RefOrderField; -} - -export interface RegenerateEnterpriseIdentityProviderRecoveryCodesInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; -} - -export interface ReleaseOrder { - readonly direction: OrderDirection; - readonly field: ReleaseOrderField; -} - -export interface RemoveAssigneesFromAssignableInput { - readonly assignableId: string; - readonly assigneeIds: string; - readonly clientMutationId?: string; -} - -export interface RemoveEnterpriseAdminInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly login: string; -} - -export interface RemoveEnterpriseIdentityProviderInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; -} - -export interface RemoveEnterpriseOrganizationInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly organizationId: string; -} - -export interface RemoveLabelsFromLabelableInput { - readonly clientMutationId?: string; - readonly labelIds: string; - readonly labelableId: string; -} - -export interface RemoveOutsideCollaboratorInput { - readonly clientMutationId?: string; - readonly organizationId: string; - readonly userId: string; -} - -export interface RemoveReactionInput { - readonly clientMutationId?: string; - readonly content: ReactionContent; - readonly subjectId: string; -} - -export interface RemoveStarInput { - readonly clientMutationId?: string; - readonly starrableId: string; -} - -export interface ReopenIssueInput { - readonly clientMutationId?: string; - readonly issueId: string; -} - -export interface ReopenPullRequestInput { - readonly clientMutationId?: string; - readonly pullRequestId: string; -} - -export interface RepositoryInvitationOrder { - readonly direction: OrderDirection; - readonly field: RepositoryInvitationOrderField; -} - -export interface RepositoryOrder { - readonly direction: OrderDirection; - readonly field: RepositoryOrderField; -} - -export interface RequestReviewsInput { - readonly clientMutationId?: string; - readonly pullRequestId: string; - readonly teamIds?: string[]; - readonly union?: boolean; - readonly userIds?: string[]; -} - -export interface RerequestCheckSuiteInput { - readonly checkSuiteId: string; - readonly clientMutationId?: string; - readonly repositoryId: string; -} - -export interface ResolveReviewThreadInput { - readonly clientMutationId?: string; - readonly threadId: string; -} - -export interface SavedReplyOrder { - readonly direction: OrderDirection; - readonly field: SavedReplyOrderField; -} - -export interface SecurityAdvisoryIdentifierFilter { - readonly type: SecurityAdvisoryIdentifierType; - readonly value: string; -} - -export interface SecurityAdvisoryOrder { - readonly direction: OrderDirection; - readonly field: SecurityAdvisoryOrderField; -} - -export interface SecurityVulnerabilityOrder { - readonly direction: OrderDirection; - readonly field: SecurityVulnerabilityOrderField; -} - -export interface SetEnterpriseIdentityProviderInput { - readonly clientMutationId?: string; - readonly digestMethod: SamlDigestAlgorithm; - readonly enterpriseId: string; - readonly idpCertificate: string; - readonly issuer?: string; - readonly signatureMethod: SamlSignatureAlgorithm; - readonly ssoUrl: unknown; -} - -export interface SetOrganizationInteractionLimitInput { - readonly clientMutationId?: string; - readonly expiry?: RepositoryInteractionLimitExpiry; - readonly limit: RepositoryInteractionLimit; - readonly organizationId: string; -} - -export interface SetRepositoryInteractionLimitInput { - readonly clientMutationId?: string; - readonly expiry?: RepositoryInteractionLimitExpiry; - readonly limit: RepositoryInteractionLimit; - readonly repositoryId: string; -} - -export interface SetUserInteractionLimitInput { - readonly clientMutationId?: string; - readonly expiry?: RepositoryInteractionLimitExpiry; - readonly limit: RepositoryInteractionLimit; - readonly userId: string; -} - -export interface SponsorsTierOrder { - readonly direction: OrderDirection; - readonly field: SponsorsTierOrderField; -} - -export interface SponsorshipOrder { - readonly direction: OrderDirection; - readonly field: SponsorshipOrderField; -} - -export interface StarOrder { - readonly direction: OrderDirection; - readonly field: StarOrderField; -} - -export interface SubmitPullRequestReviewInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly event: PullRequestReviewEvent; - readonly pullRequestId?: string; - readonly pullRequestReviewId?: string; -} - -export interface TeamDiscussionCommentOrder { - readonly direction: OrderDirection; - readonly field: TeamDiscussionCommentOrderField; -} - -export interface TeamDiscussionOrder { - readonly direction: OrderDirection; - readonly field: TeamDiscussionOrderField; -} - -export interface TeamMemberOrder { - readonly direction: OrderDirection; - readonly field: TeamMemberOrderField; -} - -export interface TeamOrder { - readonly direction: OrderDirection; - readonly field: TeamOrderField; -} - -export interface TeamRepositoryOrder { - readonly direction: OrderDirection; - readonly field: TeamRepositoryOrderField; -} - -export interface TransferIssueInput { - readonly clientMutationId?: string; - readonly issueId: string; - readonly repositoryId: string; -} - -export interface UnarchiveRepositoryInput { - readonly clientMutationId?: string; - readonly repositoryId: string; -} - -export interface UnfollowUserInput { - readonly clientMutationId?: string; - readonly userId: string; -} - -export interface UnlinkRepositoryFromProjectInput { - readonly clientMutationId?: string; - readonly projectId: string; - readonly repositoryId: string; -} - -export interface UnlockLockableInput { - readonly clientMutationId?: string; - readonly lockableId: string; -} - -export interface UnmarkFileAsViewedInput { - readonly clientMutationId?: string; - readonly path: string; - readonly pullRequestId: string; -} - -export interface UnmarkIssueAsDuplicateInput { - readonly canonicalId: string; - readonly clientMutationId?: string; - readonly duplicateId: string; -} - -export interface UnminimizeCommentInput { - readonly clientMutationId?: string; - readonly subjectId: string; -} - -export interface UnresolveReviewThreadInput { - readonly clientMutationId?: string; - readonly threadId: string; -} - -export interface UpdateBranchProtectionRuleInput { - readonly allowsDeletions?: boolean; - readonly allowsForcePushes?: boolean; - readonly branchProtectionRuleId: string; - readonly clientMutationId?: string; - readonly dismissesStaleReviews?: boolean; - readonly isAdminEnforced?: boolean; - readonly pattern?: string; - readonly pushActorIds?: string[]; - readonly requiredApprovingReviewCount?: number; - readonly requiredStatusCheckContexts?: string[]; - readonly requiresApprovingReviews?: boolean; - readonly requiresCodeOwnerReviews?: boolean; - readonly requiresCommitSignatures?: boolean; - readonly requiresLinearHistory?: boolean; - readonly requiresStatusChecks?: boolean; - readonly requiresStrictStatusChecks?: boolean; - readonly restrictsPushes?: boolean; - readonly restrictsReviewDismissals?: boolean; - readonly reviewDismissalActorIds?: string[]; -} - -export interface UpdateCheckRunInput { - readonly actions?: CheckRunAction[]; - readonly checkRunId: string; - readonly clientMutationId?: string; - readonly completedAt?: unknown; - readonly conclusion?: CheckConclusionState; - readonly detailsUrl?: unknown; - readonly externalId?: string; - readonly name?: string; - readonly output?: CheckRunOutput; - readonly repositoryId: string; - readonly startedAt?: unknown; - readonly status?: RequestableCheckStatusState; -} - -export interface UpdateCheckSuitePreferencesInput { - readonly autoTriggerPreferences: CheckSuiteAutoTriggerPreference; - readonly clientMutationId?: string; - readonly repositoryId: string; -} - -export interface UpdateEnterpriseAdministratorRoleInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly login: string; - readonly role: EnterpriseAdministratorRole; -} - -export interface UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseDefaultRepositoryPermissionSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseDefaultRepositoryPermissionSettingValue; -} - -export interface UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseMembersCanCreateRepositoriesSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly membersCanCreateInternalRepositories?: boolean; - readonly membersCanCreatePrivateRepositories?: boolean; - readonly membersCanCreatePublicRepositories?: boolean; - readonly membersCanCreateRepositoriesPolicyEnabled?: boolean; - readonly settingValue?: EnterpriseMembersCanCreateRepositoriesSettingValue; -} - -export interface UpdateEnterpriseMembersCanDeleteIssuesSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseMembersCanMakePurchasesSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseMembersCanMakePurchasesSettingValue; -} - -export interface UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseOrganizationProjectsSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseProfileInput { - readonly clientMutationId?: string; - readonly description?: string; - readonly enterpriseId: string; - readonly location?: string; - readonly name?: string; - readonly websiteUrl?: string; -} - -export interface UpdateEnterpriseRepositoryProjectsSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseTeamDiscussionsSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledDisabledSettingValue; -} - -export interface UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput { - readonly clientMutationId?: string; - readonly enterpriseId: string; - readonly settingValue: EnterpriseEnabledSettingValue; -} - -export interface UpdateIpAllowListEnabledSettingInput { - readonly clientMutationId?: string; - readonly ownerId: string; - readonly settingValue: IpAllowListEnabledSettingValue; -} - -export interface UpdateIpAllowListEntryInput { - readonly allowListValue: string; - readonly clientMutationId?: string; - readonly ipAllowListEntryId: string; - readonly isActive: boolean; - readonly name?: string; -} - -export interface UpdateIssueCommentInput { - readonly body: string; - readonly clientMutationId?: string; - readonly id: string; -} - -export interface UpdateIssueInput { - readonly assigneeIds?: string[]; - readonly body?: string; - readonly clientMutationId?: string; - readonly id: string; - readonly labelIds?: string[]; - readonly milestoneId?: string; - readonly projectIds?: string[]; - readonly state?: IssueState; - readonly title?: string; -} - -export interface UpdateProjectCardInput { - readonly clientMutationId?: string; - readonly isArchived?: boolean; - readonly note?: string; - readonly projectCardId: string; -} - -export interface UpdateProjectColumnInput { - readonly clientMutationId?: string; - readonly name: string; - readonly projectColumnId: string; -} - -export interface UpdateProjectInput { - readonly body?: string; - readonly clientMutationId?: string; - readonly name?: string; - readonly projectId: string; - readonly public?: boolean; - readonly state?: ProjectState; -} - -export interface UpdatePullRequestInput { - readonly assigneeIds?: string[]; - readonly baseRefName?: string; - readonly body?: string; - readonly clientMutationId?: string; - readonly labelIds?: string[]; - readonly maintainerCanModify?: boolean; - readonly milestoneId?: string; - readonly projectIds?: string[]; - readonly pullRequestId: string; - readonly state?: PullRequestUpdateState; - readonly title?: string; -} - -export interface UpdatePullRequestReviewCommentInput { - readonly body: string; - readonly clientMutationId?: string; - readonly pullRequestReviewCommentId: string; -} - -export interface UpdatePullRequestReviewInput { - readonly body: string; - readonly clientMutationId?: string; - readonly pullRequestReviewId: string; -} - -export interface UpdateRefInput { - readonly clientMutationId?: string; - readonly force?: boolean; - readonly oid: unknown; - readonly refId: string; -} - -export interface UpdateRepositoryInput { - readonly clientMutationId?: string; - readonly description?: string; - readonly hasIssuesEnabled?: boolean; - readonly hasProjectsEnabled?: boolean; - readonly hasWikiEnabled?: boolean; - readonly homepageUrl?: unknown; - readonly name?: string; - readonly repositoryId: string; - readonly template?: boolean; -} - -export interface UpdateSubscriptionInput { - readonly clientMutationId?: string; - readonly state: SubscriptionState; - readonly subscribableId: string; -} - -export interface UpdateTeamDiscussionCommentInput { - readonly body: string; - readonly bodyVersion?: string; - readonly clientMutationId?: string; - readonly id: string; -} - -export interface UpdateTeamDiscussionInput { - readonly body?: string; - readonly bodyVersion?: string; - readonly clientMutationId?: string; - readonly id: string; - readonly pinned?: boolean; - readonly title?: string; -} - -export interface UpdateTopicsInput { - readonly clientMutationId?: string; - readonly repositoryId: string; - readonly topicNames: string; -} - -export interface UserStatusOrder { - readonly direction: OrderDirection; - readonly field: UserStatusOrderField; -} - -type IAssignee = IBot | IMannequin | IOrganization | IUser; - -export const isAssignee = ( - object: Record -): object is Partial => { - return object.__typename === "Assignee"; -}; - -interface AssigneeSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Bot" | "Mannequin" | "Organization" | "User" - >( - type: F, - select: ( - t: F extends "Bot" - ? BotSelector - : F extends "Mannequin" - ? MannequinSelector - : F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Bot" - ? IBot - : F extends "Mannequin" - ? IMannequin - : F extends "Organization" - ? IOrganization - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const Assignee: AssigneeSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Bot": { - return new InlineFragment( - new NamedType("Bot") as any, - new SelectionSet(select(Bot as any)) - ); - } - - case "Mannequin": { - return new InlineFragment( - new NamedType("Mannequin") as any, - new SelectionSet(select(Mannequin as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Assignee", - }); - } - }, -}; - -type IAuditEntryActor = IBot | IOrganization | IUser; - -export const isAuditEntryActor = ( - object: Record -): object is Partial => { - return object.__typename === "AuditEntryActor"; -}; - -interface AuditEntryActorSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Bot" | "Organization" | "User" - >( - type: F, - select: ( - t: F extends "Bot" - ? BotSelector - : F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Bot" - ? IBot - : F extends "Organization" - ? IOrganization - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const AuditEntryActor: AuditEntryActorSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Bot": { - return new InlineFragment( - new NamedType("Bot") as any, - new SelectionSet(select(Bot as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "AuditEntryActor", - }); - } - }, -}; - -type ICloser = ICommit | IPullRequest; - -export const isCloser = ( - object: Record -): object is Partial => { - return object.__typename === "Closer"; -}; - -interface CloserSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Commit" | "PullRequest">( - type: F, - select: ( - t: F extends "Commit" - ? CommitSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Commit" - ? ICommit - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const Closer: CloserSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Closer", - }); - } - }, -}; - -type ICreatedIssueOrRestrictedContribution = - | ICreatedIssueContribution - | IRestrictedContribution; - -export const isCreatedIssueOrRestrictedContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedIssueOrRestrictedContribution"; -}; - -interface CreatedIssueOrRestrictedContributionSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "CreatedIssueContribution" | "RestrictedContribution" - >( - type: F, - select: ( - t: F extends "CreatedIssueContribution" - ? CreatedIssueContributionSelector - : F extends "RestrictedContribution" - ? RestrictedContributionSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "CreatedIssueContribution" - ? ICreatedIssueContribution - : F extends "RestrictedContribution" - ? IRestrictedContribution - : never - >, - SelectionSet - >; -} - -export const CreatedIssueOrRestrictedContribution: CreatedIssueOrRestrictedContributionSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "CreatedIssueContribution": { - return new InlineFragment( - new NamedType("CreatedIssueContribution") as any, - new SelectionSet(select(CreatedIssueContribution as any)) - ); - } - - case "RestrictedContribution": { - return new InlineFragment( - new NamedType("RestrictedContribution") as any, - new SelectionSet(select(RestrictedContribution as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "CreatedIssueOrRestrictedContribution", - }); - } - }, -}; - -type ICreatedPullRequestOrRestrictedContribution = - | ICreatedPullRequestContribution - | IRestrictedContribution; - -export const isCreatedPullRequestOrRestrictedContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedPullRequestOrRestrictedContribution"; -}; - -interface CreatedPullRequestOrRestrictedContributionSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "CreatedPullRequestContribution" | "RestrictedContribution" - >( - type: F, - select: ( - t: F extends "CreatedPullRequestContribution" - ? CreatedPullRequestContributionSelector - : F extends "RestrictedContribution" - ? RestrictedContributionSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "CreatedPullRequestContribution" - ? ICreatedPullRequestContribution - : F extends "RestrictedContribution" - ? IRestrictedContribution - : never - >, - SelectionSet - >; -} - -export const CreatedPullRequestOrRestrictedContribution: CreatedPullRequestOrRestrictedContributionSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "CreatedPullRequestContribution": { - return new InlineFragment( - new NamedType("CreatedPullRequestContribution") as any, - new SelectionSet(select(CreatedPullRequestContribution as any)) - ); - } - - case "RestrictedContribution": { - return new InlineFragment( - new NamedType("RestrictedContribution") as any, - new SelectionSet(select(RestrictedContribution as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "CreatedPullRequestOrRestrictedContribution", - }); - } - }, -}; - -type ICreatedRepositoryOrRestrictedContribution = - | ICreatedRepositoryContribution - | IRestrictedContribution; - -export const isCreatedRepositoryOrRestrictedContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedRepositoryOrRestrictedContribution"; -}; - -interface CreatedRepositoryOrRestrictedContributionSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "CreatedRepositoryContribution" | "RestrictedContribution" - >( - type: F, - select: ( - t: F extends "CreatedRepositoryContribution" - ? CreatedRepositoryContributionSelector - : F extends "RestrictedContribution" - ? RestrictedContributionSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "CreatedRepositoryContribution" - ? ICreatedRepositoryContribution - : F extends "RestrictedContribution" - ? IRestrictedContribution - : never - >, - SelectionSet - >; -} - -export const CreatedRepositoryOrRestrictedContribution: CreatedRepositoryOrRestrictedContributionSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "CreatedRepositoryContribution": { - return new InlineFragment( - new NamedType("CreatedRepositoryContribution") as any, - new SelectionSet(select(CreatedRepositoryContribution as any)) - ); - } - - case "RestrictedContribution": { - return new InlineFragment( - new NamedType("RestrictedContribution") as any, - new SelectionSet(select(RestrictedContribution as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "CreatedRepositoryOrRestrictedContribution", - }); - } - }, -}; - -type IEnterpriseMember = IEnterpriseUserAccount | IUser; - -export const isEnterpriseMember = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseMember"; -}; - -interface EnterpriseMemberSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "EnterpriseUserAccount" | "User" - >( - type: F, - select: ( - t: F extends "EnterpriseUserAccount" - ? EnterpriseUserAccountSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "EnterpriseUserAccount" - ? IEnterpriseUserAccount - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const EnterpriseMember: EnterpriseMemberSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "EnterpriseUserAccount": { - return new InlineFragment( - new NamedType("EnterpriseUserAccount") as any, - new SelectionSet(select(EnterpriseUserAccount as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "EnterpriseMember", - }); - } - }, -}; - -type IIpAllowListOwner = IEnterprise | IOrganization; - -export const isIpAllowListOwner = ( - object: Record -): object is Partial => { - return object.__typename === "IpAllowListOwner"; -}; - -interface IpAllowListOwnerSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Enterprise" | "Organization" - >( - type: F, - select: ( - t: F extends "Enterprise" - ? EnterpriseSelector - : F extends "Organization" - ? OrganizationSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Enterprise" - ? IEnterprise - : F extends "Organization" - ? IOrganization - : never - >, - SelectionSet - >; -} - -export const IpAllowListOwner: IpAllowListOwnerSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Enterprise": { - return new InlineFragment( - new NamedType("Enterprise") as any, - new SelectionSet(select(Enterprise as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "IpAllowListOwner", - }); - } - }, -}; - -type IIssueOrPullRequest = IIssue | IPullRequest; - -export const isIssueOrPullRequest = ( - object: Record -): object is Partial => { - return object.__typename === "IssueOrPullRequest"; -}; - -interface IssueOrPullRequestSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Issue" - ? IIssue - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const IssueOrPullRequest: IssueOrPullRequestSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "IssueOrPullRequest", - }); - } - }, -}; - -type IIssueTimelineItem = - | IAssignedEvent - | IClosedEvent - | ICommit - | ICrossReferencedEvent - | IDemilestonedEvent - | IIssueComment - | ILabeledEvent - | ILockedEvent - | IMilestonedEvent - | IReferencedEvent - | IRenamedTitleEvent - | IReopenedEvent - | ISubscribedEvent - | ITransferredEvent - | IUnassignedEvent - | IUnlabeledEvent - | IUnlockedEvent - | IUnsubscribedEvent - | IUserBlockedEvent; - -export const isIssueTimelineItem = ( - object: Record -): object is Partial => { - return object.__typename === "IssueTimelineItem"; -}; - -interface IssueTimelineItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "AssignedEvent" - | "ClosedEvent" - | "Commit" - | "CrossReferencedEvent" - | "DemilestonedEvent" - | "IssueComment" - | "LabeledEvent" - | "LockedEvent" - | "MilestonedEvent" - | "ReferencedEvent" - | "RenamedTitleEvent" - | "ReopenedEvent" - | "SubscribedEvent" - | "TransferredEvent" - | "UnassignedEvent" - | "UnlabeledEvent" - | "UnlockedEvent" - | "UnsubscribedEvent" - | "UserBlockedEvent" - >( - type: F, - select: ( - t: F extends "AssignedEvent" - ? AssignedEventSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "Commit" - ? CommitSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "DemilestonedEvent" - ? DemilestonedEventSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "LabeledEvent" - ? LabeledEventSelector - : F extends "LockedEvent" - ? LockedEventSelector - : F extends "MilestonedEvent" - ? MilestonedEventSelector - : F extends "ReferencedEvent" - ? ReferencedEventSelector - : F extends "RenamedTitleEvent" - ? RenamedTitleEventSelector - : F extends "ReopenedEvent" - ? ReopenedEventSelector - : F extends "SubscribedEvent" - ? SubscribedEventSelector - : F extends "TransferredEvent" - ? TransferredEventSelector - : F extends "UnassignedEvent" - ? UnassignedEventSelector - : F extends "UnlabeledEvent" - ? UnlabeledEventSelector - : F extends "UnlockedEvent" - ? UnlockedEventSelector - : F extends "UnsubscribedEvent" - ? UnsubscribedEventSelector - : F extends "UserBlockedEvent" - ? UserBlockedEventSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "AssignedEvent" - ? IAssignedEvent - : F extends "ClosedEvent" - ? IClosedEvent - : F extends "Commit" - ? ICommit - : F extends "CrossReferencedEvent" - ? ICrossReferencedEvent - : F extends "DemilestonedEvent" - ? IDemilestonedEvent - : F extends "IssueComment" - ? IIssueComment - : F extends "LabeledEvent" - ? ILabeledEvent - : F extends "LockedEvent" - ? ILockedEvent - : F extends "MilestonedEvent" - ? IMilestonedEvent - : F extends "ReferencedEvent" - ? IReferencedEvent - : F extends "RenamedTitleEvent" - ? IRenamedTitleEvent - : F extends "ReopenedEvent" - ? IReopenedEvent - : F extends "SubscribedEvent" - ? ISubscribedEvent - : F extends "TransferredEvent" - ? ITransferredEvent - : F extends "UnassignedEvent" - ? IUnassignedEvent - : F extends "UnlabeledEvent" - ? IUnlabeledEvent - : F extends "UnlockedEvent" - ? IUnlockedEvent - : F extends "UnsubscribedEvent" - ? IUnsubscribedEvent - : F extends "UserBlockedEvent" - ? IUserBlockedEvent - : never - >, - SelectionSet - >; -} - -export const IssueTimelineItem: IssueTimelineItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "AssignedEvent": { - return new InlineFragment( - new NamedType("AssignedEvent") as any, - new SelectionSet(select(AssignedEvent as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "DemilestonedEvent": { - return new InlineFragment( - new NamedType("DemilestonedEvent") as any, - new SelectionSet(select(DemilestonedEvent as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "LabeledEvent": { - return new InlineFragment( - new NamedType("LabeledEvent") as any, - new SelectionSet(select(LabeledEvent as any)) - ); - } - - case "LockedEvent": { - return new InlineFragment( - new NamedType("LockedEvent") as any, - new SelectionSet(select(LockedEvent as any)) - ); - } - - case "MilestonedEvent": { - return new InlineFragment( - new NamedType("MilestonedEvent") as any, - new SelectionSet(select(MilestonedEvent as any)) - ); - } - - case "ReferencedEvent": { - return new InlineFragment( - new NamedType("ReferencedEvent") as any, - new SelectionSet(select(ReferencedEvent as any)) - ); - } - - case "RenamedTitleEvent": { - return new InlineFragment( - new NamedType("RenamedTitleEvent") as any, - new SelectionSet(select(RenamedTitleEvent as any)) - ); - } - - case "ReopenedEvent": { - return new InlineFragment( - new NamedType("ReopenedEvent") as any, - new SelectionSet(select(ReopenedEvent as any)) - ); - } - - case "SubscribedEvent": { - return new InlineFragment( - new NamedType("SubscribedEvent") as any, - new SelectionSet(select(SubscribedEvent as any)) - ); - } - - case "TransferredEvent": { - return new InlineFragment( - new NamedType("TransferredEvent") as any, - new SelectionSet(select(TransferredEvent as any)) - ); - } - - case "UnassignedEvent": { - return new InlineFragment( - new NamedType("UnassignedEvent") as any, - new SelectionSet(select(UnassignedEvent as any)) - ); - } - - case "UnlabeledEvent": { - return new InlineFragment( - new NamedType("UnlabeledEvent") as any, - new SelectionSet(select(UnlabeledEvent as any)) - ); - } - - case "UnlockedEvent": { - return new InlineFragment( - new NamedType("UnlockedEvent") as any, - new SelectionSet(select(UnlockedEvent as any)) - ); - } - - case "UnsubscribedEvent": { - return new InlineFragment( - new NamedType("UnsubscribedEvent") as any, - new SelectionSet(select(UnsubscribedEvent as any)) - ); - } - - case "UserBlockedEvent": { - return new InlineFragment( - new NamedType("UserBlockedEvent") as any, - new SelectionSet(select(UserBlockedEvent as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "IssueTimelineItem", - }); - } - }, -}; - -type IIssueTimelineItems = - | IAddedToProjectEvent - | IAssignedEvent - | IClosedEvent - | ICommentDeletedEvent - | IConnectedEvent - | IConvertedNoteToIssueEvent - | ICrossReferencedEvent - | IDemilestonedEvent - | IDisconnectedEvent - | IIssueComment - | ILabeledEvent - | ILockedEvent - | IMarkedAsDuplicateEvent - | IMentionedEvent - | IMilestonedEvent - | IMovedColumnsInProjectEvent - | IPinnedEvent - | IReferencedEvent - | IRemovedFromProjectEvent - | IRenamedTitleEvent - | IReopenedEvent - | ISubscribedEvent - | ITransferredEvent - | IUnassignedEvent - | IUnlabeledEvent - | IUnlockedEvent - | IUnmarkedAsDuplicateEvent - | IUnpinnedEvent - | IUnsubscribedEvent - | IUserBlockedEvent; - -export const isIssueTimelineItems = ( - object: Record -): object is Partial => { - return object.__typename === "IssueTimelineItems"; -}; - -interface IssueTimelineItemsSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "AddedToProjectEvent" - | "AssignedEvent" - | "ClosedEvent" - | "CommentDeletedEvent" - | "ConnectedEvent" - | "ConvertedNoteToIssueEvent" - | "CrossReferencedEvent" - | "DemilestonedEvent" - | "DisconnectedEvent" - | "IssueComment" - | "LabeledEvent" - | "LockedEvent" - | "MarkedAsDuplicateEvent" - | "MentionedEvent" - | "MilestonedEvent" - | "MovedColumnsInProjectEvent" - | "PinnedEvent" - | "ReferencedEvent" - | "RemovedFromProjectEvent" - | "RenamedTitleEvent" - | "ReopenedEvent" - | "SubscribedEvent" - | "TransferredEvent" - | "UnassignedEvent" - | "UnlabeledEvent" - | "UnlockedEvent" - | "UnmarkedAsDuplicateEvent" - | "UnpinnedEvent" - | "UnsubscribedEvent" - | "UserBlockedEvent" - >( - type: F, - select: ( - t: F extends "AddedToProjectEvent" - ? AddedToProjectEventSelector - : F extends "AssignedEvent" - ? AssignedEventSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "CommentDeletedEvent" - ? CommentDeletedEventSelector - : F extends "ConnectedEvent" - ? ConnectedEventSelector - : F extends "ConvertedNoteToIssueEvent" - ? ConvertedNoteToIssueEventSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "DemilestonedEvent" - ? DemilestonedEventSelector - : F extends "DisconnectedEvent" - ? DisconnectedEventSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "LabeledEvent" - ? LabeledEventSelector - : F extends "LockedEvent" - ? LockedEventSelector - : F extends "MarkedAsDuplicateEvent" - ? MarkedAsDuplicateEventSelector - : F extends "MentionedEvent" - ? MentionedEventSelector - : F extends "MilestonedEvent" - ? MilestonedEventSelector - : F extends "MovedColumnsInProjectEvent" - ? MovedColumnsInProjectEventSelector - : F extends "PinnedEvent" - ? PinnedEventSelector - : F extends "ReferencedEvent" - ? ReferencedEventSelector - : F extends "RemovedFromProjectEvent" - ? RemovedFromProjectEventSelector - : F extends "RenamedTitleEvent" - ? RenamedTitleEventSelector - : F extends "ReopenedEvent" - ? ReopenedEventSelector - : F extends "SubscribedEvent" - ? SubscribedEventSelector - : F extends "TransferredEvent" - ? TransferredEventSelector - : F extends "UnassignedEvent" - ? UnassignedEventSelector - : F extends "UnlabeledEvent" - ? UnlabeledEventSelector - : F extends "UnlockedEvent" - ? UnlockedEventSelector - : F extends "UnmarkedAsDuplicateEvent" - ? UnmarkedAsDuplicateEventSelector - : F extends "UnpinnedEvent" - ? UnpinnedEventSelector - : F extends "UnsubscribedEvent" - ? UnsubscribedEventSelector - : F extends "UserBlockedEvent" - ? UserBlockedEventSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "AddedToProjectEvent" - ? IAddedToProjectEvent - : F extends "AssignedEvent" - ? IAssignedEvent - : F extends "ClosedEvent" - ? IClosedEvent - : F extends "CommentDeletedEvent" - ? ICommentDeletedEvent - : F extends "ConnectedEvent" - ? IConnectedEvent - : F extends "ConvertedNoteToIssueEvent" - ? IConvertedNoteToIssueEvent - : F extends "CrossReferencedEvent" - ? ICrossReferencedEvent - : F extends "DemilestonedEvent" - ? IDemilestonedEvent - : F extends "DisconnectedEvent" - ? IDisconnectedEvent - : F extends "IssueComment" - ? IIssueComment - : F extends "LabeledEvent" - ? ILabeledEvent - : F extends "LockedEvent" - ? ILockedEvent - : F extends "MarkedAsDuplicateEvent" - ? IMarkedAsDuplicateEvent - : F extends "MentionedEvent" - ? IMentionedEvent - : F extends "MilestonedEvent" - ? IMilestonedEvent - : F extends "MovedColumnsInProjectEvent" - ? IMovedColumnsInProjectEvent - : F extends "PinnedEvent" - ? IPinnedEvent - : F extends "ReferencedEvent" - ? IReferencedEvent - : F extends "RemovedFromProjectEvent" - ? IRemovedFromProjectEvent - : F extends "RenamedTitleEvent" - ? IRenamedTitleEvent - : F extends "ReopenedEvent" - ? IReopenedEvent - : F extends "SubscribedEvent" - ? ISubscribedEvent - : F extends "TransferredEvent" - ? ITransferredEvent - : F extends "UnassignedEvent" - ? IUnassignedEvent - : F extends "UnlabeledEvent" - ? IUnlabeledEvent - : F extends "UnlockedEvent" - ? IUnlockedEvent - : F extends "UnmarkedAsDuplicateEvent" - ? IUnmarkedAsDuplicateEvent - : F extends "UnpinnedEvent" - ? IUnpinnedEvent - : F extends "UnsubscribedEvent" - ? IUnsubscribedEvent - : F extends "UserBlockedEvent" - ? IUserBlockedEvent - : never - >, - SelectionSet - >; -} - -export const IssueTimelineItems: IssueTimelineItemsSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "AddedToProjectEvent": { - return new InlineFragment( - new NamedType("AddedToProjectEvent") as any, - new SelectionSet(select(AddedToProjectEvent as any)) - ); - } - - case "AssignedEvent": { - return new InlineFragment( - new NamedType("AssignedEvent") as any, - new SelectionSet(select(AssignedEvent as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "CommentDeletedEvent": { - return new InlineFragment( - new NamedType("CommentDeletedEvent") as any, - new SelectionSet(select(CommentDeletedEvent as any)) - ); - } - - case "ConnectedEvent": { - return new InlineFragment( - new NamedType("ConnectedEvent") as any, - new SelectionSet(select(ConnectedEvent as any)) - ); - } - - case "ConvertedNoteToIssueEvent": { - return new InlineFragment( - new NamedType("ConvertedNoteToIssueEvent") as any, - new SelectionSet(select(ConvertedNoteToIssueEvent as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "DemilestonedEvent": { - return new InlineFragment( - new NamedType("DemilestonedEvent") as any, - new SelectionSet(select(DemilestonedEvent as any)) - ); - } - - case "DisconnectedEvent": { - return new InlineFragment( - new NamedType("DisconnectedEvent") as any, - new SelectionSet(select(DisconnectedEvent as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "LabeledEvent": { - return new InlineFragment( - new NamedType("LabeledEvent") as any, - new SelectionSet(select(LabeledEvent as any)) - ); - } - - case "LockedEvent": { - return new InlineFragment( - new NamedType("LockedEvent") as any, - new SelectionSet(select(LockedEvent as any)) - ); - } - - case "MarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("MarkedAsDuplicateEvent") as any, - new SelectionSet(select(MarkedAsDuplicateEvent as any)) - ); - } - - case "MentionedEvent": { - return new InlineFragment( - new NamedType("MentionedEvent") as any, - new SelectionSet(select(MentionedEvent as any)) - ); - } - - case "MilestonedEvent": { - return new InlineFragment( - new NamedType("MilestonedEvent") as any, - new SelectionSet(select(MilestonedEvent as any)) - ); - } - - case "MovedColumnsInProjectEvent": { - return new InlineFragment( - new NamedType("MovedColumnsInProjectEvent") as any, - new SelectionSet(select(MovedColumnsInProjectEvent as any)) - ); - } - - case "PinnedEvent": { - return new InlineFragment( - new NamedType("PinnedEvent") as any, - new SelectionSet(select(PinnedEvent as any)) - ); - } - - case "ReferencedEvent": { - return new InlineFragment( - new NamedType("ReferencedEvent") as any, - new SelectionSet(select(ReferencedEvent as any)) - ); - } - - case "RemovedFromProjectEvent": { - return new InlineFragment( - new NamedType("RemovedFromProjectEvent") as any, - new SelectionSet(select(RemovedFromProjectEvent as any)) - ); - } - - case "RenamedTitleEvent": { - return new InlineFragment( - new NamedType("RenamedTitleEvent") as any, - new SelectionSet(select(RenamedTitleEvent as any)) - ); - } - - case "ReopenedEvent": { - return new InlineFragment( - new NamedType("ReopenedEvent") as any, - new SelectionSet(select(ReopenedEvent as any)) - ); - } - - case "SubscribedEvent": { - return new InlineFragment( - new NamedType("SubscribedEvent") as any, - new SelectionSet(select(SubscribedEvent as any)) - ); - } - - case "TransferredEvent": { - return new InlineFragment( - new NamedType("TransferredEvent") as any, - new SelectionSet(select(TransferredEvent as any)) - ); - } - - case "UnassignedEvent": { - return new InlineFragment( - new NamedType("UnassignedEvent") as any, - new SelectionSet(select(UnassignedEvent as any)) - ); - } - - case "UnlabeledEvent": { - return new InlineFragment( - new NamedType("UnlabeledEvent") as any, - new SelectionSet(select(UnlabeledEvent as any)) - ); - } - - case "UnlockedEvent": { - return new InlineFragment( - new NamedType("UnlockedEvent") as any, - new SelectionSet(select(UnlockedEvent as any)) - ); - } - - case "UnmarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("UnmarkedAsDuplicateEvent") as any, - new SelectionSet(select(UnmarkedAsDuplicateEvent as any)) - ); - } - - case "UnpinnedEvent": { - return new InlineFragment( - new NamedType("UnpinnedEvent") as any, - new SelectionSet(select(UnpinnedEvent as any)) - ); - } - - case "UnsubscribedEvent": { - return new InlineFragment( - new NamedType("UnsubscribedEvent") as any, - new SelectionSet(select(UnsubscribedEvent as any)) - ); - } - - case "UserBlockedEvent": { - return new InlineFragment( - new NamedType("UserBlockedEvent") as any, - new SelectionSet(select(UserBlockedEvent as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "IssueTimelineItems", - }); - } - }, -}; - -type IMilestoneItem = IIssue | IPullRequest; - -export const isMilestoneItem = ( - object: Record -): object is Partial => { - return object.__typename === "MilestoneItem"; -}; - -interface MilestoneItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Issue" - ? IIssue - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const MilestoneItem: MilestoneItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "MilestoneItem", - }); - } - }, -}; - -type IOrgRestoreMemberAuditEntryMembership = - | IOrgRestoreMemberMembershipOrganizationAuditEntryData - | IOrgRestoreMemberMembershipRepositoryAuditEntryData - | IOrgRestoreMemberMembershipTeamAuditEntryData; - -export const isOrgRestoreMemberAuditEntryMembership = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRestoreMemberAuditEntryMembership"; -}; - -interface OrgRestoreMemberAuditEntryMembershipSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "OrgRestoreMemberMembershipOrganizationAuditEntryData" - | "OrgRestoreMemberMembershipRepositoryAuditEntryData" - | "OrgRestoreMemberMembershipTeamAuditEntryData" - >( - type: F, - select: ( - t: F extends "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ? OrgRestoreMemberMembershipOrganizationAuditEntryDataSelector - : F extends "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ? OrgRestoreMemberMembershipRepositoryAuditEntryDataSelector - : F extends "OrgRestoreMemberMembershipTeamAuditEntryData" - ? OrgRestoreMemberMembershipTeamAuditEntryDataSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ? IOrgRestoreMemberMembershipOrganizationAuditEntryData - : F extends "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ? IOrgRestoreMemberMembershipRepositoryAuditEntryData - : F extends "OrgRestoreMemberMembershipTeamAuditEntryData" - ? IOrgRestoreMemberMembershipTeamAuditEntryData - : never - >, - SelectionSet - >; -} - -export const OrgRestoreMemberAuditEntryMembership: OrgRestoreMemberAuditEntryMembershipSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "OrgRestoreMemberMembershipOrganizationAuditEntryData": { - return new InlineFragment( - new NamedType( - "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ) as any, - new SelectionSet( - select(OrgRestoreMemberMembershipOrganizationAuditEntryData as any) - ) - ); - } - - case "OrgRestoreMemberMembershipRepositoryAuditEntryData": { - return new InlineFragment( - new NamedType( - "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ) as any, - new SelectionSet( - select(OrgRestoreMemberMembershipRepositoryAuditEntryData as any) - ) - ); - } - - case "OrgRestoreMemberMembershipTeamAuditEntryData": { - return new InlineFragment( - new NamedType("OrgRestoreMemberMembershipTeamAuditEntryData") as any, - new SelectionSet( - select(OrgRestoreMemberMembershipTeamAuditEntryData as any) - ) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "OrgRestoreMemberAuditEntryMembership", - }); - } - }, -}; - -type IOrganizationAuditEntry = - | IMembersCanDeleteReposClearAuditEntry - | IMembersCanDeleteReposDisableAuditEntry - | IMembersCanDeleteReposEnableAuditEntry - | IOauthApplicationCreateAuditEntry - | IOrgAddBillingManagerAuditEntry - | IOrgAddMemberAuditEntry - | IOrgBlockUserAuditEntry - | IOrgConfigDisableCollaboratorsOnlyAuditEntry - | IOrgConfigEnableCollaboratorsOnlyAuditEntry - | IOrgCreateAuditEntry - | IOrgDisableOauthAppRestrictionsAuditEntry - | IOrgDisableSamlAuditEntry - | IOrgDisableTwoFactorRequirementAuditEntry - | IOrgEnableOauthAppRestrictionsAuditEntry - | IOrgEnableSamlAuditEntry - | IOrgEnableTwoFactorRequirementAuditEntry - | IOrgInviteMemberAuditEntry - | IOrgInviteToBusinessAuditEntry - | IOrgOauthAppAccessApprovedAuditEntry - | IOrgOauthAppAccessDeniedAuditEntry - | IOrgOauthAppAccessRequestedAuditEntry - | IOrgRemoveBillingManagerAuditEntry - | IOrgRemoveMemberAuditEntry - | IOrgRemoveOutsideCollaboratorAuditEntry - | IOrgRestoreMemberAuditEntry - | IOrgUnblockUserAuditEntry - | IOrgUpdateDefaultRepositoryPermissionAuditEntry - | IOrgUpdateMemberAuditEntry - | IOrgUpdateMemberRepositoryCreationPermissionAuditEntry - | IOrgUpdateMemberRepositoryInvitationPermissionAuditEntry - | IPrivateRepositoryForkingDisableAuditEntry - | IPrivateRepositoryForkingEnableAuditEntry - | IRepoAccessAuditEntry - | IRepoAddMemberAuditEntry - | IRepoAddTopicAuditEntry - | IRepoArchivedAuditEntry - | IRepoChangeMergeSettingAuditEntry - | IRepoConfigDisableAnonymousGitAccessAuditEntry - | IRepoConfigDisableCollaboratorsOnlyAuditEntry - | IRepoConfigDisableContributorsOnlyAuditEntry - | IRepoConfigDisableSockpuppetDisallowedAuditEntry - | IRepoConfigEnableAnonymousGitAccessAuditEntry - | IRepoConfigEnableCollaboratorsOnlyAuditEntry - | IRepoConfigEnableContributorsOnlyAuditEntry - | IRepoConfigEnableSockpuppetDisallowedAuditEntry - | IRepoConfigLockAnonymousGitAccessAuditEntry - | IRepoConfigUnlockAnonymousGitAccessAuditEntry - | IRepoCreateAuditEntry - | IRepoDestroyAuditEntry - | IRepoRemoveMemberAuditEntry - | IRepoRemoveTopicAuditEntry - | IRepositoryVisibilityChangeDisableAuditEntry - | IRepositoryVisibilityChangeEnableAuditEntry - | ITeamAddMemberAuditEntry - | ITeamAddRepositoryAuditEntry - | ITeamChangeParentTeamAuditEntry - | ITeamRemoveMemberAuditEntry - | ITeamRemoveRepositoryAuditEntry; - -export const isOrganizationAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrganizationAuditEntry"; -}; - -interface OrganizationAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "MembersCanDeleteReposClearAuditEntry" - | "MembersCanDeleteReposDisableAuditEntry" - | "MembersCanDeleteReposEnableAuditEntry" - | "OauthApplicationCreateAuditEntry" - | "OrgAddBillingManagerAuditEntry" - | "OrgAddMemberAuditEntry" - | "OrgBlockUserAuditEntry" - | "OrgConfigDisableCollaboratorsOnlyAuditEntry" - | "OrgConfigEnableCollaboratorsOnlyAuditEntry" - | "OrgCreateAuditEntry" - | "OrgDisableOauthAppRestrictionsAuditEntry" - | "OrgDisableSamlAuditEntry" - | "OrgDisableTwoFactorRequirementAuditEntry" - | "OrgEnableOauthAppRestrictionsAuditEntry" - | "OrgEnableSamlAuditEntry" - | "OrgEnableTwoFactorRequirementAuditEntry" - | "OrgInviteMemberAuditEntry" - | "OrgInviteToBusinessAuditEntry" - | "OrgOauthAppAccessApprovedAuditEntry" - | "OrgOauthAppAccessDeniedAuditEntry" - | "OrgOauthAppAccessRequestedAuditEntry" - | "OrgRemoveBillingManagerAuditEntry" - | "OrgRemoveMemberAuditEntry" - | "OrgRemoveOutsideCollaboratorAuditEntry" - | "OrgRestoreMemberAuditEntry" - | "OrgUnblockUserAuditEntry" - | "OrgUpdateDefaultRepositoryPermissionAuditEntry" - | "OrgUpdateMemberAuditEntry" - | "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - | "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "RepoAccessAuditEntry" - | "RepoAddMemberAuditEntry" - | "RepoAddTopicAuditEntry" - | "RepoArchivedAuditEntry" - | "RepoChangeMergeSettingAuditEntry" - | "RepoConfigDisableAnonymousGitAccessAuditEntry" - | "RepoConfigDisableCollaboratorsOnlyAuditEntry" - | "RepoConfigDisableContributorsOnlyAuditEntry" - | "RepoConfigDisableSockpuppetDisallowedAuditEntry" - | "RepoConfigEnableAnonymousGitAccessAuditEntry" - | "RepoConfigEnableCollaboratorsOnlyAuditEntry" - | "RepoConfigEnableContributorsOnlyAuditEntry" - | "RepoConfigEnableSockpuppetDisallowedAuditEntry" - | "RepoConfigLockAnonymousGitAccessAuditEntry" - | "RepoConfigUnlockAnonymousGitAccessAuditEntry" - | "RepoCreateAuditEntry" - | "RepoDestroyAuditEntry" - | "RepoRemoveMemberAuditEntry" - | "RepoRemoveTopicAuditEntry" - | "RepositoryVisibilityChangeDisableAuditEntry" - | "RepositoryVisibilityChangeEnableAuditEntry" - | "TeamAddMemberAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamChangeParentTeamAuditEntry" - | "TeamRemoveMemberAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - >( - type: F, - select: ( - t: F extends "MembersCanDeleteReposClearAuditEntry" - ? MembersCanDeleteReposClearAuditEntrySelector - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? MembersCanDeleteReposDisableAuditEntrySelector - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? MembersCanDeleteReposEnableAuditEntrySelector - : F extends "OauthApplicationCreateAuditEntry" - ? OauthApplicationCreateAuditEntrySelector - : F extends "OrgAddBillingManagerAuditEntry" - ? OrgAddBillingManagerAuditEntrySelector - : F extends "OrgAddMemberAuditEntry" - ? OrgAddMemberAuditEntrySelector - : F extends "OrgBlockUserAuditEntry" - ? OrgBlockUserAuditEntrySelector - : F extends "OrgConfigDisableCollaboratorsOnlyAuditEntry" - ? OrgConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgConfigEnableCollaboratorsOnlyAuditEntry" - ? OrgConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgCreateAuditEntry" - ? OrgCreateAuditEntrySelector - : F extends "OrgDisableOauthAppRestrictionsAuditEntry" - ? OrgDisableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgDisableSamlAuditEntry" - ? OrgDisableSamlAuditEntrySelector - : F extends "OrgDisableTwoFactorRequirementAuditEntry" - ? OrgDisableTwoFactorRequirementAuditEntrySelector - : F extends "OrgEnableOauthAppRestrictionsAuditEntry" - ? OrgEnableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgEnableSamlAuditEntry" - ? OrgEnableSamlAuditEntrySelector - : F extends "OrgEnableTwoFactorRequirementAuditEntry" - ? OrgEnableTwoFactorRequirementAuditEntrySelector - : F extends "OrgInviteMemberAuditEntry" - ? OrgInviteMemberAuditEntrySelector - : F extends "OrgInviteToBusinessAuditEntry" - ? OrgInviteToBusinessAuditEntrySelector - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? OrgOauthAppAccessApprovedAuditEntrySelector - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? OrgOauthAppAccessDeniedAuditEntrySelector - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? OrgOauthAppAccessRequestedAuditEntrySelector - : F extends "OrgRemoveBillingManagerAuditEntry" - ? OrgRemoveBillingManagerAuditEntrySelector - : F extends "OrgRemoveMemberAuditEntry" - ? OrgRemoveMemberAuditEntrySelector - : F extends "OrgRemoveOutsideCollaboratorAuditEntry" - ? OrgRemoveOutsideCollaboratorAuditEntrySelector - : F extends "OrgRestoreMemberAuditEntry" - ? OrgRestoreMemberAuditEntrySelector - : F extends "OrgUnblockUserAuditEntry" - ? OrgUnblockUserAuditEntrySelector - : F extends "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ? OrgUpdateDefaultRepositoryPermissionAuditEntrySelector - : F extends "OrgUpdateMemberAuditEntry" - ? OrgUpdateMemberAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "RepoAccessAuditEntry" - ? RepoAccessAuditEntrySelector - : F extends "RepoAddMemberAuditEntry" - ? RepoAddMemberAuditEntrySelector - : F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoArchivedAuditEntry" - ? RepoArchivedAuditEntrySelector - : F extends "RepoChangeMergeSettingAuditEntry" - ? RepoChangeMergeSettingAuditEntrySelector - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? RepoConfigDisableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? RepoConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? RepoConfigDisableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? RepoConfigDisableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? RepoConfigEnableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? RepoConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? RepoConfigEnableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? RepoConfigEnableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? RepoConfigLockAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? RepoConfigUnlockAnonymousGitAccessAuditEntrySelector - : F extends "RepoCreateAuditEntry" - ? RepoCreateAuditEntrySelector - : F extends "RepoDestroyAuditEntry" - ? RepoDestroyAuditEntrySelector - : F extends "RepoRemoveMemberAuditEntry" - ? RepoRemoveMemberAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? RepositoryVisibilityChangeDisableAuditEntrySelector - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? RepositoryVisibilityChangeEnableAuditEntrySelector - : F extends "TeamAddMemberAuditEntry" - ? TeamAddMemberAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamChangeParentTeamAuditEntry" - ? TeamChangeParentTeamAuditEntrySelector - : F extends "TeamRemoveMemberAuditEntry" - ? TeamRemoveMemberAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "MembersCanDeleteReposClearAuditEntry" - ? IMembersCanDeleteReposClearAuditEntry - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? IMembersCanDeleteReposDisableAuditEntry - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? IMembersCanDeleteReposEnableAuditEntry - : F extends "OauthApplicationCreateAuditEntry" - ? IOauthApplicationCreateAuditEntry - : F extends "OrgAddBillingManagerAuditEntry" - ? IOrgAddBillingManagerAuditEntry - : F extends "OrgAddMemberAuditEntry" - ? IOrgAddMemberAuditEntry - : F extends "OrgBlockUserAuditEntry" - ? IOrgBlockUserAuditEntry - : F extends "OrgConfigDisableCollaboratorsOnlyAuditEntry" - ? IOrgConfigDisableCollaboratorsOnlyAuditEntry - : F extends "OrgConfigEnableCollaboratorsOnlyAuditEntry" - ? IOrgConfigEnableCollaboratorsOnlyAuditEntry - : F extends "OrgCreateAuditEntry" - ? IOrgCreateAuditEntry - : F extends "OrgDisableOauthAppRestrictionsAuditEntry" - ? IOrgDisableOauthAppRestrictionsAuditEntry - : F extends "OrgDisableSamlAuditEntry" - ? IOrgDisableSamlAuditEntry - : F extends "OrgDisableTwoFactorRequirementAuditEntry" - ? IOrgDisableTwoFactorRequirementAuditEntry - : F extends "OrgEnableOauthAppRestrictionsAuditEntry" - ? IOrgEnableOauthAppRestrictionsAuditEntry - : F extends "OrgEnableSamlAuditEntry" - ? IOrgEnableSamlAuditEntry - : F extends "OrgEnableTwoFactorRequirementAuditEntry" - ? IOrgEnableTwoFactorRequirementAuditEntry - : F extends "OrgInviteMemberAuditEntry" - ? IOrgInviteMemberAuditEntry - : F extends "OrgInviteToBusinessAuditEntry" - ? IOrgInviteToBusinessAuditEntry - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? IOrgOauthAppAccessApprovedAuditEntry - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? IOrgOauthAppAccessDeniedAuditEntry - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? IOrgOauthAppAccessRequestedAuditEntry - : F extends "OrgRemoveBillingManagerAuditEntry" - ? IOrgRemoveBillingManagerAuditEntry - : F extends "OrgRemoveMemberAuditEntry" - ? IOrgRemoveMemberAuditEntry - : F extends "OrgRemoveOutsideCollaboratorAuditEntry" - ? IOrgRemoveOutsideCollaboratorAuditEntry - : F extends "OrgRestoreMemberAuditEntry" - ? IOrgRestoreMemberAuditEntry - : F extends "OrgUnblockUserAuditEntry" - ? IOrgUnblockUserAuditEntry - : F extends "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ? IOrgUpdateDefaultRepositoryPermissionAuditEntry - : F extends "OrgUpdateMemberAuditEntry" - ? IOrgUpdateMemberAuditEntry - : F extends "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ? IOrgUpdateMemberRepositoryCreationPermissionAuditEntry - : F extends "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ? IOrgUpdateMemberRepositoryInvitationPermissionAuditEntry - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? IPrivateRepositoryForkingDisableAuditEntry - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? IPrivateRepositoryForkingEnableAuditEntry - : F extends "RepoAccessAuditEntry" - ? IRepoAccessAuditEntry - : F extends "RepoAddMemberAuditEntry" - ? IRepoAddMemberAuditEntry - : F extends "RepoAddTopicAuditEntry" - ? IRepoAddTopicAuditEntry - : F extends "RepoArchivedAuditEntry" - ? IRepoArchivedAuditEntry - : F extends "RepoChangeMergeSettingAuditEntry" - ? IRepoChangeMergeSettingAuditEntry - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? IRepoConfigDisableAnonymousGitAccessAuditEntry - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? IRepoConfigDisableCollaboratorsOnlyAuditEntry - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? IRepoConfigDisableContributorsOnlyAuditEntry - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? IRepoConfigDisableSockpuppetDisallowedAuditEntry - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? IRepoConfigEnableAnonymousGitAccessAuditEntry - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? IRepoConfigEnableCollaboratorsOnlyAuditEntry - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? IRepoConfigEnableContributorsOnlyAuditEntry - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? IRepoConfigEnableSockpuppetDisallowedAuditEntry - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? IRepoConfigLockAnonymousGitAccessAuditEntry - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? IRepoConfigUnlockAnonymousGitAccessAuditEntry - : F extends "RepoCreateAuditEntry" - ? IRepoCreateAuditEntry - : F extends "RepoDestroyAuditEntry" - ? IRepoDestroyAuditEntry - : F extends "RepoRemoveMemberAuditEntry" - ? IRepoRemoveMemberAuditEntry - : F extends "RepoRemoveTopicAuditEntry" - ? IRepoRemoveTopicAuditEntry - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? IRepositoryVisibilityChangeDisableAuditEntry - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? IRepositoryVisibilityChangeEnableAuditEntry - : F extends "TeamAddMemberAuditEntry" - ? ITeamAddMemberAuditEntry - : F extends "TeamAddRepositoryAuditEntry" - ? ITeamAddRepositoryAuditEntry - : F extends "TeamChangeParentTeamAuditEntry" - ? ITeamChangeParentTeamAuditEntry - : F extends "TeamRemoveMemberAuditEntry" - ? ITeamRemoveMemberAuditEntry - : F extends "TeamRemoveRepositoryAuditEntry" - ? ITeamRemoveRepositoryAuditEntry - : never - >, - SelectionSet - >; -} - -export const OrganizationAuditEntry: OrganizationAuditEntrySelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "MembersCanDeleteReposClearAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposClearAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposClearAuditEntry as any)) - ); - } - - case "MembersCanDeleteReposDisableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposDisableAuditEntry") as any, - new SelectionSet( - select(MembersCanDeleteReposDisableAuditEntry as any) - ) - ); - } - - case "MembersCanDeleteReposEnableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposEnableAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposEnableAuditEntry as any)) - ); - } - - case "OauthApplicationCreateAuditEntry": { - return new InlineFragment( - new NamedType("OauthApplicationCreateAuditEntry") as any, - new SelectionSet(select(OauthApplicationCreateAuditEntry as any)) - ); - } - - case "OrgAddBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgAddBillingManagerAuditEntry as any)) - ); - } - - case "OrgAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddMemberAuditEntry") as any, - new SelectionSet(select(OrgAddMemberAuditEntry as any)) - ); - } - - case "OrgBlockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgBlockUserAuditEntry") as any, - new SelectionSet(select(OrgBlockUserAuditEntry as any)) - ); - } - - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgCreateAuditEntry": { - return new InlineFragment( - new NamedType("OrgCreateAuditEntry") as any, - new SelectionSet(select(OrgCreateAuditEntry as any)) - ); - } - - case "OrgDisableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgDisableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgDisableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableSamlAuditEntry") as any, - new SelectionSet(select(OrgDisableSamlAuditEntry as any)) - ); - } - - case "OrgDisableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgDisableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgEnableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgEnableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgEnableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableSamlAuditEntry") as any, - new SelectionSet(select(OrgEnableSamlAuditEntry as any)) - ); - } - - case "OrgEnableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgEnableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgInviteMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteMemberAuditEntry") as any, - new SelectionSet(select(OrgInviteMemberAuditEntry as any)) - ); - } - - case "OrgInviteToBusinessAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteToBusinessAuditEntry") as any, - new SelectionSet(select(OrgInviteToBusinessAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessApprovedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessApprovedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessApprovedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessDeniedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessDeniedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessDeniedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessRequestedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessRequestedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessRequestedAuditEntry as any)) - ); - } - - case "OrgRemoveBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgRemoveBillingManagerAuditEntry as any)) - ); - } - - case "OrgRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveMemberAuditEntry") as any, - new SelectionSet(select(OrgRemoveMemberAuditEntry as any)) - ); - } - - case "OrgRemoveOutsideCollaboratorAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveOutsideCollaboratorAuditEntry") as any, - new SelectionSet( - select(OrgRemoveOutsideCollaboratorAuditEntry as any) - ) - ); - } - - case "OrgRestoreMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRestoreMemberAuditEntry") as any, - new SelectionSet(select(OrgRestoreMemberAuditEntry as any)) - ); - } - - case "OrgUnblockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgUnblockUserAuditEntry") as any, - new SelectionSet(select(OrgUnblockUserAuditEntry as any)) - ); - } - - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateDefaultRepositoryPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgUpdateMemberAuditEntry") as any, - new SelectionSet(select(OrgUpdateMemberAuditEntry as any)) - ); - } - - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateMemberRepositoryCreationPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ) as any, - new SelectionSet( - select( - OrgUpdateMemberRepositoryInvitationPermissionAuditEntry as any - ) - ) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "RepoAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoAccessAuditEntry") as any, - new SelectionSet(select(RepoAccessAuditEntry as any)) - ); - } - - case "RepoAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddMemberAuditEntry") as any, - new SelectionSet(select(RepoAddMemberAuditEntry as any)) - ); - } - - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoArchivedAuditEntry": { - return new InlineFragment( - new NamedType("RepoArchivedAuditEntry") as any, - new SelectionSet(select(RepoArchivedAuditEntry as any)) - ); - } - - case "RepoChangeMergeSettingAuditEntry": { - return new InlineFragment( - new NamedType("RepoChangeMergeSettingAuditEntry") as any, - new SelectionSet(select(RepoChangeMergeSettingAuditEntry as any)) - ); - } - - case "RepoConfigDisableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigDisableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigEnableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigLockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigLockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigLockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigUnlockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigUnlockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoCreateAuditEntry": { - return new InlineFragment( - new NamedType("RepoCreateAuditEntry") as any, - new SelectionSet(select(RepoCreateAuditEntry as any)) - ); - } - - case "RepoDestroyAuditEntry": { - return new InlineFragment( - new NamedType("RepoDestroyAuditEntry") as any, - new SelectionSet(select(RepoDestroyAuditEntry as any)) - ); - } - - case "RepoRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveMemberAuditEntry") as any, - new SelectionSet(select(RepoRemoveMemberAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - case "RepositoryVisibilityChangeDisableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeDisableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeDisableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeEnableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeEnableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeEnableAuditEntry as any) - ) - ); - } - - case "TeamAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddMemberAuditEntry") as any, - new SelectionSet(select(TeamAddMemberAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamChangeParentTeamAuditEntry": { - return new InlineFragment( - new NamedType("TeamChangeParentTeamAuditEntry") as any, - new SelectionSet(select(TeamChangeParentTeamAuditEntry as any)) - ); - } - - case "TeamRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveMemberAuditEntry") as any, - new SelectionSet(select(TeamRemoveMemberAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "OrganizationAuditEntry", - }); - } - }, -}; - -type IPermissionGranter = IOrganization | IRepository | ITeam; - -export const isPermissionGranter = ( - object: Record -): object is Partial => { - return object.__typename === "PermissionGranter"; -}; - -interface PermissionGranterSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Organization" | "Repository" | "Team" - >( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "Repository" - ? RepositorySelector - : F extends "Team" - ? TeamSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Organization" - ? IOrganization - : F extends "Repository" - ? IRepository - : F extends "Team" - ? ITeam - : never - >, - SelectionSet - >; -} - -export const PermissionGranter: PermissionGranterSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PermissionGranter", - }); - } - }, -}; - -type IPinnableItem = IGist | IRepository; - -export const isPinnableItem = ( - object: Record -): object is Partial => { - return object.__typename === "PinnableItem"; -}; - -interface PinnableItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Gist" | "Repository">( - type: F, - select: ( - t: F extends "Gist" - ? GistSelector - : F extends "Repository" - ? RepositorySelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Gist" ? IGist : F extends "Repository" ? IRepository : never - >, - SelectionSet - >; -} - -export const PinnableItem: PinnableItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Gist": { - return new InlineFragment( - new NamedType("Gist") as any, - new SelectionSet(select(Gist as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PinnableItem", - }); - } - }, -}; - -type IProjectCardItem = IIssue | IPullRequest; - -export const isProjectCardItem = ( - object: Record -): object is Partial => { - return object.__typename === "ProjectCardItem"; -}; - -interface ProjectCardItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Issue" - ? IIssue - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const ProjectCardItem: ProjectCardItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "ProjectCardItem", - }); - } - }, -}; - -type IPullRequestTimelineItem = - | IAssignedEvent - | IBaseRefDeletedEvent - | IBaseRefForcePushedEvent - | IClosedEvent - | ICommit - | ICommitCommentThread - | ICrossReferencedEvent - | IDemilestonedEvent - | IDeployedEvent - | IDeploymentEnvironmentChangedEvent - | IHeadRefDeletedEvent - | IHeadRefForcePushedEvent - | IHeadRefRestoredEvent - | IIssueComment - | ILabeledEvent - | ILockedEvent - | IMergedEvent - | IMilestonedEvent - | IPullRequestReview - | IPullRequestReviewComment - | IPullRequestReviewThread - | IReferencedEvent - | IRenamedTitleEvent - | IReopenedEvent - | IReviewDismissedEvent - | IReviewRequestRemovedEvent - | IReviewRequestedEvent - | ISubscribedEvent - | IUnassignedEvent - | IUnlabeledEvent - | IUnlockedEvent - | IUnsubscribedEvent - | IUserBlockedEvent; - -export const isPullRequestTimelineItem = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestTimelineItem"; -}; - -interface PullRequestTimelineItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "AssignedEvent" - | "BaseRefDeletedEvent" - | "BaseRefForcePushedEvent" - | "ClosedEvent" - | "Commit" - | "CommitCommentThread" - | "CrossReferencedEvent" - | "DemilestonedEvent" - | "DeployedEvent" - | "DeploymentEnvironmentChangedEvent" - | "HeadRefDeletedEvent" - | "HeadRefForcePushedEvent" - | "HeadRefRestoredEvent" - | "IssueComment" - | "LabeledEvent" - | "LockedEvent" - | "MergedEvent" - | "MilestonedEvent" - | "PullRequestReview" - | "PullRequestReviewComment" - | "PullRequestReviewThread" - | "ReferencedEvent" - | "RenamedTitleEvent" - | "ReopenedEvent" - | "ReviewDismissedEvent" - | "ReviewRequestRemovedEvent" - | "ReviewRequestedEvent" - | "SubscribedEvent" - | "UnassignedEvent" - | "UnlabeledEvent" - | "UnlockedEvent" - | "UnsubscribedEvent" - | "UserBlockedEvent" - >( - type: F, - select: ( - t: F extends "AssignedEvent" - ? AssignedEventSelector - : F extends "BaseRefDeletedEvent" - ? BaseRefDeletedEventSelector - : F extends "BaseRefForcePushedEvent" - ? BaseRefForcePushedEventSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "Commit" - ? CommitSelector - : F extends "CommitCommentThread" - ? CommitCommentThreadSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "DemilestonedEvent" - ? DemilestonedEventSelector - : F extends "DeployedEvent" - ? DeployedEventSelector - : F extends "DeploymentEnvironmentChangedEvent" - ? DeploymentEnvironmentChangedEventSelector - : F extends "HeadRefDeletedEvent" - ? HeadRefDeletedEventSelector - : F extends "HeadRefForcePushedEvent" - ? HeadRefForcePushedEventSelector - : F extends "HeadRefRestoredEvent" - ? HeadRefRestoredEventSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "LabeledEvent" - ? LabeledEventSelector - : F extends "LockedEvent" - ? LockedEventSelector - : F extends "MergedEvent" - ? MergedEventSelector - : F extends "MilestonedEvent" - ? MilestonedEventSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "PullRequestReviewThread" - ? PullRequestReviewThreadSelector - : F extends "ReferencedEvent" - ? ReferencedEventSelector - : F extends "RenamedTitleEvent" - ? RenamedTitleEventSelector - : F extends "ReopenedEvent" - ? ReopenedEventSelector - : F extends "ReviewDismissedEvent" - ? ReviewDismissedEventSelector - : F extends "ReviewRequestRemovedEvent" - ? ReviewRequestRemovedEventSelector - : F extends "ReviewRequestedEvent" - ? ReviewRequestedEventSelector - : F extends "SubscribedEvent" - ? SubscribedEventSelector - : F extends "UnassignedEvent" - ? UnassignedEventSelector - : F extends "UnlabeledEvent" - ? UnlabeledEventSelector - : F extends "UnlockedEvent" - ? UnlockedEventSelector - : F extends "UnsubscribedEvent" - ? UnsubscribedEventSelector - : F extends "UserBlockedEvent" - ? UserBlockedEventSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "AssignedEvent" - ? IAssignedEvent - : F extends "BaseRefDeletedEvent" - ? IBaseRefDeletedEvent - : F extends "BaseRefForcePushedEvent" - ? IBaseRefForcePushedEvent - : F extends "ClosedEvent" - ? IClosedEvent - : F extends "Commit" - ? ICommit - : F extends "CommitCommentThread" - ? ICommitCommentThread - : F extends "CrossReferencedEvent" - ? ICrossReferencedEvent - : F extends "DemilestonedEvent" - ? IDemilestonedEvent - : F extends "DeployedEvent" - ? IDeployedEvent - : F extends "DeploymentEnvironmentChangedEvent" - ? IDeploymentEnvironmentChangedEvent - : F extends "HeadRefDeletedEvent" - ? IHeadRefDeletedEvent - : F extends "HeadRefForcePushedEvent" - ? IHeadRefForcePushedEvent - : F extends "HeadRefRestoredEvent" - ? IHeadRefRestoredEvent - : F extends "IssueComment" - ? IIssueComment - : F extends "LabeledEvent" - ? ILabeledEvent - : F extends "LockedEvent" - ? ILockedEvent - : F extends "MergedEvent" - ? IMergedEvent - : F extends "MilestonedEvent" - ? IMilestonedEvent - : F extends "PullRequestReview" - ? IPullRequestReview - : F extends "PullRequestReviewComment" - ? IPullRequestReviewComment - : F extends "PullRequestReviewThread" - ? IPullRequestReviewThread - : F extends "ReferencedEvent" - ? IReferencedEvent - : F extends "RenamedTitleEvent" - ? IRenamedTitleEvent - : F extends "ReopenedEvent" - ? IReopenedEvent - : F extends "ReviewDismissedEvent" - ? IReviewDismissedEvent - : F extends "ReviewRequestRemovedEvent" - ? IReviewRequestRemovedEvent - : F extends "ReviewRequestedEvent" - ? IReviewRequestedEvent - : F extends "SubscribedEvent" - ? ISubscribedEvent - : F extends "UnassignedEvent" - ? IUnassignedEvent - : F extends "UnlabeledEvent" - ? IUnlabeledEvent - : F extends "UnlockedEvent" - ? IUnlockedEvent - : F extends "UnsubscribedEvent" - ? IUnsubscribedEvent - : F extends "UserBlockedEvent" - ? IUserBlockedEvent - : never - >, - SelectionSet - >; -} - -export const PullRequestTimelineItem: PullRequestTimelineItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "AssignedEvent": { - return new InlineFragment( - new NamedType("AssignedEvent") as any, - new SelectionSet(select(AssignedEvent as any)) - ); - } - - case "BaseRefDeletedEvent": { - return new InlineFragment( - new NamedType("BaseRefDeletedEvent") as any, - new SelectionSet(select(BaseRefDeletedEvent as any)) - ); - } - - case "BaseRefForcePushedEvent": { - return new InlineFragment( - new NamedType("BaseRefForcePushedEvent") as any, - new SelectionSet(select(BaseRefForcePushedEvent as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "CommitCommentThread": { - return new InlineFragment( - new NamedType("CommitCommentThread") as any, - new SelectionSet(select(CommitCommentThread as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "DemilestonedEvent": { - return new InlineFragment( - new NamedType("DemilestonedEvent") as any, - new SelectionSet(select(DemilestonedEvent as any)) - ); - } - - case "DeployedEvent": { - return new InlineFragment( - new NamedType("DeployedEvent") as any, - new SelectionSet(select(DeployedEvent as any)) - ); - } - - case "DeploymentEnvironmentChangedEvent": { - return new InlineFragment( - new NamedType("DeploymentEnvironmentChangedEvent") as any, - new SelectionSet(select(DeploymentEnvironmentChangedEvent as any)) - ); - } - - case "HeadRefDeletedEvent": { - return new InlineFragment( - new NamedType("HeadRefDeletedEvent") as any, - new SelectionSet(select(HeadRefDeletedEvent as any)) - ); - } - - case "HeadRefForcePushedEvent": { - return new InlineFragment( - new NamedType("HeadRefForcePushedEvent") as any, - new SelectionSet(select(HeadRefForcePushedEvent as any)) - ); - } - - case "HeadRefRestoredEvent": { - return new InlineFragment( - new NamedType("HeadRefRestoredEvent") as any, - new SelectionSet(select(HeadRefRestoredEvent as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "LabeledEvent": { - return new InlineFragment( - new NamedType("LabeledEvent") as any, - new SelectionSet(select(LabeledEvent as any)) - ); - } - - case "LockedEvent": { - return new InlineFragment( - new NamedType("LockedEvent") as any, - new SelectionSet(select(LockedEvent as any)) - ); - } - - case "MergedEvent": { - return new InlineFragment( - new NamedType("MergedEvent") as any, - new SelectionSet(select(MergedEvent as any)) - ); - } - - case "MilestonedEvent": { - return new InlineFragment( - new NamedType("MilestonedEvent") as any, - new SelectionSet(select(MilestonedEvent as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "PullRequestReviewThread": { - return new InlineFragment( - new NamedType("PullRequestReviewThread") as any, - new SelectionSet(select(PullRequestReviewThread as any)) - ); - } - - case "ReferencedEvent": { - return new InlineFragment( - new NamedType("ReferencedEvent") as any, - new SelectionSet(select(ReferencedEvent as any)) - ); - } - - case "RenamedTitleEvent": { - return new InlineFragment( - new NamedType("RenamedTitleEvent") as any, - new SelectionSet(select(RenamedTitleEvent as any)) - ); - } - - case "ReopenedEvent": { - return new InlineFragment( - new NamedType("ReopenedEvent") as any, - new SelectionSet(select(ReopenedEvent as any)) - ); - } - - case "ReviewDismissedEvent": { - return new InlineFragment( - new NamedType("ReviewDismissedEvent") as any, - new SelectionSet(select(ReviewDismissedEvent as any)) - ); - } - - case "ReviewRequestRemovedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestRemovedEvent") as any, - new SelectionSet(select(ReviewRequestRemovedEvent as any)) - ); - } - - case "ReviewRequestedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestedEvent") as any, - new SelectionSet(select(ReviewRequestedEvent as any)) - ); - } - - case "SubscribedEvent": { - return new InlineFragment( - new NamedType("SubscribedEvent") as any, - new SelectionSet(select(SubscribedEvent as any)) - ); - } - - case "UnassignedEvent": { - return new InlineFragment( - new NamedType("UnassignedEvent") as any, - new SelectionSet(select(UnassignedEvent as any)) - ); - } - - case "UnlabeledEvent": { - return new InlineFragment( - new NamedType("UnlabeledEvent") as any, - new SelectionSet(select(UnlabeledEvent as any)) - ); - } - - case "UnlockedEvent": { - return new InlineFragment( - new NamedType("UnlockedEvent") as any, - new SelectionSet(select(UnlockedEvent as any)) - ); - } - - case "UnsubscribedEvent": { - return new InlineFragment( - new NamedType("UnsubscribedEvent") as any, - new SelectionSet(select(UnsubscribedEvent as any)) - ); - } - - case "UserBlockedEvent": { - return new InlineFragment( - new NamedType("UserBlockedEvent") as any, - new SelectionSet(select(UserBlockedEvent as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PullRequestTimelineItem", - }); - } - }, -}; - -type IPullRequestTimelineItems = - | IAddedToProjectEvent - | IAssignedEvent - | IAutomaticBaseChangeFailedEvent - | IAutomaticBaseChangeSucceededEvent - | IBaseRefChangedEvent - | IBaseRefDeletedEvent - | IBaseRefForcePushedEvent - | IClosedEvent - | ICommentDeletedEvent - | IConnectedEvent - | IConvertToDraftEvent - | IConvertedNoteToIssueEvent - | ICrossReferencedEvent - | IDemilestonedEvent - | IDeployedEvent - | IDeploymentEnvironmentChangedEvent - | IDisconnectedEvent - | IHeadRefDeletedEvent - | IHeadRefForcePushedEvent - | IHeadRefRestoredEvent - | IIssueComment - | ILabeledEvent - | ILockedEvent - | IMarkedAsDuplicateEvent - | IMentionedEvent - | IMergedEvent - | IMilestonedEvent - | IMovedColumnsInProjectEvent - | IPinnedEvent - | IPullRequestCommit - | IPullRequestCommitCommentThread - | IPullRequestReview - | IPullRequestReviewThread - | IPullRequestRevisionMarker - | IReadyForReviewEvent - | IReferencedEvent - | IRemovedFromProjectEvent - | IRenamedTitleEvent - | IReopenedEvent - | IReviewDismissedEvent - | IReviewRequestRemovedEvent - | IReviewRequestedEvent - | ISubscribedEvent - | ITransferredEvent - | IUnassignedEvent - | IUnlabeledEvent - | IUnlockedEvent - | IUnmarkedAsDuplicateEvent - | IUnpinnedEvent - | IUnsubscribedEvent - | IUserBlockedEvent; - -export const isPullRequestTimelineItems = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestTimelineItems"; -}; - -interface PullRequestTimelineItemsSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "AddedToProjectEvent" - | "AssignedEvent" - | "AutomaticBaseChangeFailedEvent" - | "AutomaticBaseChangeSucceededEvent" - | "BaseRefChangedEvent" - | "BaseRefDeletedEvent" - | "BaseRefForcePushedEvent" - | "ClosedEvent" - | "CommentDeletedEvent" - | "ConnectedEvent" - | "ConvertToDraftEvent" - | "ConvertedNoteToIssueEvent" - | "CrossReferencedEvent" - | "DemilestonedEvent" - | "DeployedEvent" - | "DeploymentEnvironmentChangedEvent" - | "DisconnectedEvent" - | "HeadRefDeletedEvent" - | "HeadRefForcePushedEvent" - | "HeadRefRestoredEvent" - | "IssueComment" - | "LabeledEvent" - | "LockedEvent" - | "MarkedAsDuplicateEvent" - | "MentionedEvent" - | "MergedEvent" - | "MilestonedEvent" - | "MovedColumnsInProjectEvent" - | "PinnedEvent" - | "PullRequestCommit" - | "PullRequestCommitCommentThread" - | "PullRequestReview" - | "PullRequestReviewThread" - | "PullRequestRevisionMarker" - | "ReadyForReviewEvent" - | "ReferencedEvent" - | "RemovedFromProjectEvent" - | "RenamedTitleEvent" - | "ReopenedEvent" - | "ReviewDismissedEvent" - | "ReviewRequestRemovedEvent" - | "ReviewRequestedEvent" - | "SubscribedEvent" - | "TransferredEvent" - | "UnassignedEvent" - | "UnlabeledEvent" - | "UnlockedEvent" - | "UnmarkedAsDuplicateEvent" - | "UnpinnedEvent" - | "UnsubscribedEvent" - | "UserBlockedEvent" - >( - type: F, - select: ( - t: F extends "AddedToProjectEvent" - ? AddedToProjectEventSelector - : F extends "AssignedEvent" - ? AssignedEventSelector - : F extends "AutomaticBaseChangeFailedEvent" - ? AutomaticBaseChangeFailedEventSelector - : F extends "AutomaticBaseChangeSucceededEvent" - ? AutomaticBaseChangeSucceededEventSelector - : F extends "BaseRefChangedEvent" - ? BaseRefChangedEventSelector - : F extends "BaseRefDeletedEvent" - ? BaseRefDeletedEventSelector - : F extends "BaseRefForcePushedEvent" - ? BaseRefForcePushedEventSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "CommentDeletedEvent" - ? CommentDeletedEventSelector - : F extends "ConnectedEvent" - ? ConnectedEventSelector - : F extends "ConvertToDraftEvent" - ? ConvertToDraftEventSelector - : F extends "ConvertedNoteToIssueEvent" - ? ConvertedNoteToIssueEventSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "DemilestonedEvent" - ? DemilestonedEventSelector - : F extends "DeployedEvent" - ? DeployedEventSelector - : F extends "DeploymentEnvironmentChangedEvent" - ? DeploymentEnvironmentChangedEventSelector - : F extends "DisconnectedEvent" - ? DisconnectedEventSelector - : F extends "HeadRefDeletedEvent" - ? HeadRefDeletedEventSelector - : F extends "HeadRefForcePushedEvent" - ? HeadRefForcePushedEventSelector - : F extends "HeadRefRestoredEvent" - ? HeadRefRestoredEventSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "LabeledEvent" - ? LabeledEventSelector - : F extends "LockedEvent" - ? LockedEventSelector - : F extends "MarkedAsDuplicateEvent" - ? MarkedAsDuplicateEventSelector - : F extends "MentionedEvent" - ? MentionedEventSelector - : F extends "MergedEvent" - ? MergedEventSelector - : F extends "MilestonedEvent" - ? MilestonedEventSelector - : F extends "MovedColumnsInProjectEvent" - ? MovedColumnsInProjectEventSelector - : F extends "PinnedEvent" - ? PinnedEventSelector - : F extends "PullRequestCommit" - ? PullRequestCommitSelector - : F extends "PullRequestCommitCommentThread" - ? PullRequestCommitCommentThreadSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewThread" - ? PullRequestReviewThreadSelector - : F extends "PullRequestRevisionMarker" - ? PullRequestRevisionMarkerSelector - : F extends "ReadyForReviewEvent" - ? ReadyForReviewEventSelector - : F extends "ReferencedEvent" - ? ReferencedEventSelector - : F extends "RemovedFromProjectEvent" - ? RemovedFromProjectEventSelector - : F extends "RenamedTitleEvent" - ? RenamedTitleEventSelector - : F extends "ReopenedEvent" - ? ReopenedEventSelector - : F extends "ReviewDismissedEvent" - ? ReviewDismissedEventSelector - : F extends "ReviewRequestRemovedEvent" - ? ReviewRequestRemovedEventSelector - : F extends "ReviewRequestedEvent" - ? ReviewRequestedEventSelector - : F extends "SubscribedEvent" - ? SubscribedEventSelector - : F extends "TransferredEvent" - ? TransferredEventSelector - : F extends "UnassignedEvent" - ? UnassignedEventSelector - : F extends "UnlabeledEvent" - ? UnlabeledEventSelector - : F extends "UnlockedEvent" - ? UnlockedEventSelector - : F extends "UnmarkedAsDuplicateEvent" - ? UnmarkedAsDuplicateEventSelector - : F extends "UnpinnedEvent" - ? UnpinnedEventSelector - : F extends "UnsubscribedEvent" - ? UnsubscribedEventSelector - : F extends "UserBlockedEvent" - ? UserBlockedEventSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "AddedToProjectEvent" - ? IAddedToProjectEvent - : F extends "AssignedEvent" - ? IAssignedEvent - : F extends "AutomaticBaseChangeFailedEvent" - ? IAutomaticBaseChangeFailedEvent - : F extends "AutomaticBaseChangeSucceededEvent" - ? IAutomaticBaseChangeSucceededEvent - : F extends "BaseRefChangedEvent" - ? IBaseRefChangedEvent - : F extends "BaseRefDeletedEvent" - ? IBaseRefDeletedEvent - : F extends "BaseRefForcePushedEvent" - ? IBaseRefForcePushedEvent - : F extends "ClosedEvent" - ? IClosedEvent - : F extends "CommentDeletedEvent" - ? ICommentDeletedEvent - : F extends "ConnectedEvent" - ? IConnectedEvent - : F extends "ConvertToDraftEvent" - ? IConvertToDraftEvent - : F extends "ConvertedNoteToIssueEvent" - ? IConvertedNoteToIssueEvent - : F extends "CrossReferencedEvent" - ? ICrossReferencedEvent - : F extends "DemilestonedEvent" - ? IDemilestonedEvent - : F extends "DeployedEvent" - ? IDeployedEvent - : F extends "DeploymentEnvironmentChangedEvent" - ? IDeploymentEnvironmentChangedEvent - : F extends "DisconnectedEvent" - ? IDisconnectedEvent - : F extends "HeadRefDeletedEvent" - ? IHeadRefDeletedEvent - : F extends "HeadRefForcePushedEvent" - ? IHeadRefForcePushedEvent - : F extends "HeadRefRestoredEvent" - ? IHeadRefRestoredEvent - : F extends "IssueComment" - ? IIssueComment - : F extends "LabeledEvent" - ? ILabeledEvent - : F extends "LockedEvent" - ? ILockedEvent - : F extends "MarkedAsDuplicateEvent" - ? IMarkedAsDuplicateEvent - : F extends "MentionedEvent" - ? IMentionedEvent - : F extends "MergedEvent" - ? IMergedEvent - : F extends "MilestonedEvent" - ? IMilestonedEvent - : F extends "MovedColumnsInProjectEvent" - ? IMovedColumnsInProjectEvent - : F extends "PinnedEvent" - ? IPinnedEvent - : F extends "PullRequestCommit" - ? IPullRequestCommit - : F extends "PullRequestCommitCommentThread" - ? IPullRequestCommitCommentThread - : F extends "PullRequestReview" - ? IPullRequestReview - : F extends "PullRequestReviewThread" - ? IPullRequestReviewThread - : F extends "PullRequestRevisionMarker" - ? IPullRequestRevisionMarker - : F extends "ReadyForReviewEvent" - ? IReadyForReviewEvent - : F extends "ReferencedEvent" - ? IReferencedEvent - : F extends "RemovedFromProjectEvent" - ? IRemovedFromProjectEvent - : F extends "RenamedTitleEvent" - ? IRenamedTitleEvent - : F extends "ReopenedEvent" - ? IReopenedEvent - : F extends "ReviewDismissedEvent" - ? IReviewDismissedEvent - : F extends "ReviewRequestRemovedEvent" - ? IReviewRequestRemovedEvent - : F extends "ReviewRequestedEvent" - ? IReviewRequestedEvent - : F extends "SubscribedEvent" - ? ISubscribedEvent - : F extends "TransferredEvent" - ? ITransferredEvent - : F extends "UnassignedEvent" - ? IUnassignedEvent - : F extends "UnlabeledEvent" - ? IUnlabeledEvent - : F extends "UnlockedEvent" - ? IUnlockedEvent - : F extends "UnmarkedAsDuplicateEvent" - ? IUnmarkedAsDuplicateEvent - : F extends "UnpinnedEvent" - ? IUnpinnedEvent - : F extends "UnsubscribedEvent" - ? IUnsubscribedEvent - : F extends "UserBlockedEvent" - ? IUserBlockedEvent - : never - >, - SelectionSet - >; -} - -export const PullRequestTimelineItems: PullRequestTimelineItemsSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "AddedToProjectEvent": { - return new InlineFragment( - new NamedType("AddedToProjectEvent") as any, - new SelectionSet(select(AddedToProjectEvent as any)) - ); - } - - case "AssignedEvent": { - return new InlineFragment( - new NamedType("AssignedEvent") as any, - new SelectionSet(select(AssignedEvent as any)) - ); - } - - case "AutomaticBaseChangeFailedEvent": { - return new InlineFragment( - new NamedType("AutomaticBaseChangeFailedEvent") as any, - new SelectionSet(select(AutomaticBaseChangeFailedEvent as any)) - ); - } - - case "AutomaticBaseChangeSucceededEvent": { - return new InlineFragment( - new NamedType("AutomaticBaseChangeSucceededEvent") as any, - new SelectionSet(select(AutomaticBaseChangeSucceededEvent as any)) - ); - } - - case "BaseRefChangedEvent": { - return new InlineFragment( - new NamedType("BaseRefChangedEvent") as any, - new SelectionSet(select(BaseRefChangedEvent as any)) - ); - } - - case "BaseRefDeletedEvent": { - return new InlineFragment( - new NamedType("BaseRefDeletedEvent") as any, - new SelectionSet(select(BaseRefDeletedEvent as any)) - ); - } - - case "BaseRefForcePushedEvent": { - return new InlineFragment( - new NamedType("BaseRefForcePushedEvent") as any, - new SelectionSet(select(BaseRefForcePushedEvent as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "CommentDeletedEvent": { - return new InlineFragment( - new NamedType("CommentDeletedEvent") as any, - new SelectionSet(select(CommentDeletedEvent as any)) - ); - } - - case "ConnectedEvent": { - return new InlineFragment( - new NamedType("ConnectedEvent") as any, - new SelectionSet(select(ConnectedEvent as any)) - ); - } - - case "ConvertToDraftEvent": { - return new InlineFragment( - new NamedType("ConvertToDraftEvent") as any, - new SelectionSet(select(ConvertToDraftEvent as any)) - ); - } - - case "ConvertedNoteToIssueEvent": { - return new InlineFragment( - new NamedType("ConvertedNoteToIssueEvent") as any, - new SelectionSet(select(ConvertedNoteToIssueEvent as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "DemilestonedEvent": { - return new InlineFragment( - new NamedType("DemilestonedEvent") as any, - new SelectionSet(select(DemilestonedEvent as any)) - ); - } - - case "DeployedEvent": { - return new InlineFragment( - new NamedType("DeployedEvent") as any, - new SelectionSet(select(DeployedEvent as any)) - ); - } - - case "DeploymentEnvironmentChangedEvent": { - return new InlineFragment( - new NamedType("DeploymentEnvironmentChangedEvent") as any, - new SelectionSet(select(DeploymentEnvironmentChangedEvent as any)) - ); - } - - case "DisconnectedEvent": { - return new InlineFragment( - new NamedType("DisconnectedEvent") as any, - new SelectionSet(select(DisconnectedEvent as any)) - ); - } - - case "HeadRefDeletedEvent": { - return new InlineFragment( - new NamedType("HeadRefDeletedEvent") as any, - new SelectionSet(select(HeadRefDeletedEvent as any)) - ); - } - - case "HeadRefForcePushedEvent": { - return new InlineFragment( - new NamedType("HeadRefForcePushedEvent") as any, - new SelectionSet(select(HeadRefForcePushedEvent as any)) - ); - } - - case "HeadRefRestoredEvent": { - return new InlineFragment( - new NamedType("HeadRefRestoredEvent") as any, - new SelectionSet(select(HeadRefRestoredEvent as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "LabeledEvent": { - return new InlineFragment( - new NamedType("LabeledEvent") as any, - new SelectionSet(select(LabeledEvent as any)) - ); - } - - case "LockedEvent": { - return new InlineFragment( - new NamedType("LockedEvent") as any, - new SelectionSet(select(LockedEvent as any)) - ); - } - - case "MarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("MarkedAsDuplicateEvent") as any, - new SelectionSet(select(MarkedAsDuplicateEvent as any)) - ); - } - - case "MentionedEvent": { - return new InlineFragment( - new NamedType("MentionedEvent") as any, - new SelectionSet(select(MentionedEvent as any)) - ); - } - - case "MergedEvent": { - return new InlineFragment( - new NamedType("MergedEvent") as any, - new SelectionSet(select(MergedEvent as any)) - ); - } - - case "MilestonedEvent": { - return new InlineFragment( - new NamedType("MilestonedEvent") as any, - new SelectionSet(select(MilestonedEvent as any)) - ); - } - - case "MovedColumnsInProjectEvent": { - return new InlineFragment( - new NamedType("MovedColumnsInProjectEvent") as any, - new SelectionSet(select(MovedColumnsInProjectEvent as any)) - ); - } - - case "PinnedEvent": { - return new InlineFragment( - new NamedType("PinnedEvent") as any, - new SelectionSet(select(PinnedEvent as any)) - ); - } - - case "PullRequestCommit": { - return new InlineFragment( - new NamedType("PullRequestCommit") as any, - new SelectionSet(select(PullRequestCommit as any)) - ); - } - - case "PullRequestCommitCommentThread": { - return new InlineFragment( - new NamedType("PullRequestCommitCommentThread") as any, - new SelectionSet(select(PullRequestCommitCommentThread as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewThread": { - return new InlineFragment( - new NamedType("PullRequestReviewThread") as any, - new SelectionSet(select(PullRequestReviewThread as any)) - ); - } - - case "PullRequestRevisionMarker": { - return new InlineFragment( - new NamedType("PullRequestRevisionMarker") as any, - new SelectionSet(select(PullRequestRevisionMarker as any)) - ); - } - - case "ReadyForReviewEvent": { - return new InlineFragment( - new NamedType("ReadyForReviewEvent") as any, - new SelectionSet(select(ReadyForReviewEvent as any)) - ); - } - - case "ReferencedEvent": { - return new InlineFragment( - new NamedType("ReferencedEvent") as any, - new SelectionSet(select(ReferencedEvent as any)) - ); - } - - case "RemovedFromProjectEvent": { - return new InlineFragment( - new NamedType("RemovedFromProjectEvent") as any, - new SelectionSet(select(RemovedFromProjectEvent as any)) - ); - } - - case "RenamedTitleEvent": { - return new InlineFragment( - new NamedType("RenamedTitleEvent") as any, - new SelectionSet(select(RenamedTitleEvent as any)) - ); - } - - case "ReopenedEvent": { - return new InlineFragment( - new NamedType("ReopenedEvent") as any, - new SelectionSet(select(ReopenedEvent as any)) - ); - } - - case "ReviewDismissedEvent": { - return new InlineFragment( - new NamedType("ReviewDismissedEvent") as any, - new SelectionSet(select(ReviewDismissedEvent as any)) - ); - } - - case "ReviewRequestRemovedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestRemovedEvent") as any, - new SelectionSet(select(ReviewRequestRemovedEvent as any)) - ); - } - - case "ReviewRequestedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestedEvent") as any, - new SelectionSet(select(ReviewRequestedEvent as any)) - ); - } - - case "SubscribedEvent": { - return new InlineFragment( - new NamedType("SubscribedEvent") as any, - new SelectionSet(select(SubscribedEvent as any)) - ); - } - - case "TransferredEvent": { - return new InlineFragment( - new NamedType("TransferredEvent") as any, - new SelectionSet(select(TransferredEvent as any)) - ); - } - - case "UnassignedEvent": { - return new InlineFragment( - new NamedType("UnassignedEvent") as any, - new SelectionSet(select(UnassignedEvent as any)) - ); - } - - case "UnlabeledEvent": { - return new InlineFragment( - new NamedType("UnlabeledEvent") as any, - new SelectionSet(select(UnlabeledEvent as any)) - ); - } - - case "UnlockedEvent": { - return new InlineFragment( - new NamedType("UnlockedEvent") as any, - new SelectionSet(select(UnlockedEvent as any)) - ); - } - - case "UnmarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("UnmarkedAsDuplicateEvent") as any, - new SelectionSet(select(UnmarkedAsDuplicateEvent as any)) - ); - } - - case "UnpinnedEvent": { - return new InlineFragment( - new NamedType("UnpinnedEvent") as any, - new SelectionSet(select(UnpinnedEvent as any)) - ); - } - - case "UnsubscribedEvent": { - return new InlineFragment( - new NamedType("UnsubscribedEvent") as any, - new SelectionSet(select(UnsubscribedEvent as any)) - ); - } - - case "UserBlockedEvent": { - return new InlineFragment( - new NamedType("UserBlockedEvent") as any, - new SelectionSet(select(UserBlockedEvent as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PullRequestTimelineItems", - }); - } - }, -}; - -type IPushAllowanceActor = IApp | ITeam | IUser; - -export const isPushAllowanceActor = ( - object: Record -): object is Partial => { - return object.__typename === "PushAllowanceActor"; -}; - -interface PushAllowanceActorSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "App" | "Team" | "User">( - type: F, - select: ( - t: F extends "App" - ? AppSelector - : F extends "Team" - ? TeamSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "App" - ? IApp - : F extends "Team" - ? ITeam - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const PushAllowanceActor: PushAllowanceActorSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "App": { - return new InlineFragment( - new NamedType("App") as any, - new SelectionSet(select(App as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PushAllowanceActor", - }); - } - }, -}; - -type IReferencedSubject = IIssue | IPullRequest; - -export const isReferencedSubject = ( - object: Record -): object is Partial => { - return object.__typename === "ReferencedSubject"; -}; - -interface ReferencedSubjectSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Issue" - ? IIssue - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const ReferencedSubject: ReferencedSubjectSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "ReferencedSubject", - }); - } - }, -}; - -type IRenamedTitleSubject = IIssue | IPullRequest; - -export const isRenamedTitleSubject = ( - object: Record -): object is Partial => { - return object.__typename === "RenamedTitleSubject"; -}; - -interface RenamedTitleSubjectSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Issue" - ? IIssue - : F extends "PullRequest" - ? IPullRequest - : never - >, - SelectionSet - >; -} - -export const RenamedTitleSubject: RenamedTitleSubjectSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RenamedTitleSubject", - }); - } - }, -}; - -type IRequestedReviewer = IMannequin | ITeam | IUser; - -export const isRequestedReviewer = ( - object: Record -): object is Partial => { - return object.__typename === "RequestedReviewer"; -}; - -interface RequestedReviewerSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Mannequin" | "Team" | "User" - >( - type: F, - select: ( - t: F extends "Mannequin" - ? MannequinSelector - : F extends "Team" - ? TeamSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Mannequin" - ? IMannequin - : F extends "Team" - ? ITeam - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const RequestedReviewer: RequestedReviewerSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Mannequin": { - return new InlineFragment( - new NamedType("Mannequin") as any, - new SelectionSet(select(Mannequin as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RequestedReviewer", - }); - } - }, -}; - -type IReviewDismissalAllowanceActor = ITeam | IUser; - -export const isReviewDismissalAllowanceActor = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewDismissalAllowanceActor"; -}; - -interface ReviewDismissalAllowanceActorSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Team" | "User">( - type: F, - select: ( - t: F extends "Team" - ? TeamSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType, - SelectionSet - >; -} - -export const ReviewDismissalAllowanceActor: ReviewDismissalAllowanceActorSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "ReviewDismissalAllowanceActor", - }); - } - }, -}; - -type ISearchResultItem = - | IApp - | IIssue - | IMarketplaceListing - | IOrganization - | IPullRequest - | IRepository - | IUser; - -export const isSearchResultItem = ( - object: Record -): object is Partial => { - return object.__typename === "SearchResultItem"; -}; - -interface SearchResultItemSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends - | "App" - | "Issue" - | "MarketplaceListing" - | "Organization" - | "PullRequest" - | "Repository" - | "User" - >( - type: F, - select: ( - t: F extends "App" - ? AppSelector - : F extends "Issue" - ? IssueSelector - : F extends "MarketplaceListing" - ? MarketplaceListingSelector - : F extends "Organization" - ? OrganizationSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "Repository" - ? RepositorySelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "App" - ? IApp - : F extends "Issue" - ? IIssue - : F extends "MarketplaceListing" - ? IMarketplaceListing - : F extends "Organization" - ? IOrganization - : F extends "PullRequest" - ? IPullRequest - : F extends "Repository" - ? IRepository - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const SearchResultItem: SearchResultItemSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "App": { - return new InlineFragment( - new NamedType("App") as any, - new SelectionSet(select(App as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "MarketplaceListing": { - return new InlineFragment( - new NamedType("MarketplaceListing") as any, - new SelectionSet(select(MarketplaceListing as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "SearchResultItem", - }); - } - }, -}; - -type ISponsor = IOrganization | IUser; - -export const isSponsor = ( - object: Record -): object is Partial => { - return object.__typename === "Sponsor"; -}; - -interface SponsorSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: , F extends "Organization" | "User">( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Organization" - ? IOrganization - : F extends "User" - ? IUser - : never - >, - SelectionSet - >; -} - -export const Sponsor: SponsorSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Sponsor", - }); - } - }, -}; - -type IStatusCheckRollupContext = ICheckRun | IStatusContext; - -export const isStatusCheckRollupContext = ( - object: Record -): object is Partial => { - return object.__typename === "StatusCheckRollupContext"; -}; - -interface StatusCheckRollupContextSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "CheckRun" | "StatusContext" - >( - type: F, - select: ( - t: F extends "CheckRun" - ? CheckRunSelector - : F extends "StatusContext" - ? StatusContextSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "CheckRun" - ? ICheckRun - : F extends "StatusContext" - ? IStatusContext - : never - >, - SelectionSet - >; -} - -export const StatusCheckRollupContext: StatusCheckRollupContextSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "CheckRun": { - return new InlineFragment( - new NamedType("CheckRun") as any, - new SelectionSet(select(CheckRun as any)) - ); - } - - case "StatusContext": { - return new InlineFragment( - new NamedType("StatusContext") as any, - new SelectionSet(select(StatusContext as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "StatusCheckRollupContext", - }); - } - }, -}; - -export interface IAcceptEnterpriseAdministratorInvitationPayload { - readonly __typename: "AcceptEnterpriseAdministratorInvitationPayload"; - readonly clientMutationId: string | null; - readonly invitation: IEnterpriseAdministratorInvitation | null; - readonly message: string | null; -} - -interface AcceptEnterpriseAdministratorInvitationPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The invitation that was accepted. - */ - - readonly invitation: >( - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field<"invitation", never, SelectionSet>; - - /** - * @description A message confirming the result of accepting an administrator invitation. - */ - - readonly message: () => Field<"message">; -} - -export const AcceptEnterpriseAdministratorInvitationPayload: AcceptEnterpriseAdministratorInvitationPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The invitation that was accepted. - */ - - invitation: (select) => - new Field( - "invitation", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), - - /** - * @description A message confirming the result of accepting an administrator invitation. - */ - message: () => new Field("message"), -}; - -export interface IAcceptTopicSuggestionPayload { - readonly __typename: "AcceptTopicSuggestionPayload"; - readonly clientMutationId: string | null; - readonly topic: ITopic | null; -} - -interface AcceptTopicSuggestionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The accepted topic. - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; -} - -export const AcceptTopicSuggestionPayload: AcceptTopicSuggestionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The accepted topic. - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), -}; - -export interface IActor { - readonly __typename: string; - readonly avatarUrl: unknown; - readonly login: string; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface ActorSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the actor's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description The username of the actor. - */ - - readonly login: () => Field<"login">; - - /** - * @description The HTTP path for this actor. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this actor. - */ - - readonly url: () => Field<"url">; - - readonly on: < - T extends Array, - F extends - | "Bot" - | "EnterpriseUserAccount" - | "Mannequin" - | "Organization" - | "User" - >( - type: F, - select: ( - t: F extends "Bot" - ? BotSelector - : F extends "EnterpriseUserAccount" - ? EnterpriseUserAccountSelector - : F extends "Mannequin" - ? MannequinSelector - : F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Actor: ActorSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the actor's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description The username of the actor. - */ - login: () => new Field("login"), - - /** - * @description The HTTP path for this actor. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this actor. - */ - url: () => new Field("url"), - - on: (type, select) => { - switch (type) { - case "Bot": { - return new InlineFragment( - new NamedType("Bot") as any, - new SelectionSet(select(Bot as any)) - ); - } - - case "EnterpriseUserAccount": { - return new InlineFragment( - new NamedType("EnterpriseUserAccount") as any, - new SelectionSet(select(EnterpriseUserAccount as any)) - ); - } - - case "Mannequin": { - return new InlineFragment( - new NamedType("Mannequin") as any, - new SelectionSet(select(Mannequin as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Actor", - }); - } - }, -}; - -export interface IActorLocation { - readonly __typename: "ActorLocation"; - readonly city: string | null; - readonly country: string | null; - readonly countryCode: string | null; - readonly region: string | null; - readonly regionCode: string | null; -} - -interface ActorLocationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description City - */ - - readonly city: () => Field<"city">; - - /** - * @description Country name - */ - - readonly country: () => Field<"country">; - - /** - * @description Country code - */ - - readonly countryCode: () => Field<"countryCode">; - - /** - * @description Region name - */ - - readonly region: () => Field<"region">; - - /** - * @description Region or state code - */ - - readonly regionCode: () => Field<"regionCode">; -} - -export const ActorLocation: ActorLocationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description City - */ - city: () => new Field("city"), - - /** - * @description Country name - */ - country: () => new Field("country"), - - /** - * @description Country code - */ - countryCode: () => new Field("countryCode"), - - /** - * @description Region name - */ - region: () => new Field("region"), - - /** - * @description Region or state code - */ - regionCode: () => new Field("regionCode"), -}; - -export interface IAddAssigneesToAssignablePayload { - readonly __typename: "AddAssigneesToAssignablePayload"; - readonly assignable: IAssignable | null; - readonly clientMutationId: string | null; -} - -interface AddAssigneesToAssignablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The item that was assigned. - */ - - readonly assignable: >( - select: (t: AssignableSelector) => T - ) => Field<"assignable", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const AddAssigneesToAssignablePayload: AddAssigneesToAssignablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The item that was assigned. - */ - - assignable: (select) => - new Field( - "assignable", - undefined as never, - new SelectionSet(select(Assignable)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IAddCommentPayload { - readonly __typename: "AddCommentPayload"; - readonly clientMutationId: string | null; - readonly commentEdge: IIssueCommentEdge | null; - readonly subject: INode | null; - readonly timelineEdge: IIssueTimelineItemEdge | null; -} - -interface AddCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The edge from the subject's comment connection. - */ - - readonly commentEdge: >( - select: (t: IssueCommentEdgeSelector) => T - ) => Field<"commentEdge", never, SelectionSet>; - - /** - * @description The subject - */ - - readonly subject: >( - select: (t: NodeSelector) => T - ) => Field<"subject", never, SelectionSet>; - - /** - * @description The edge from the subject's timeline connection. - */ - - readonly timelineEdge: >( - select: (t: IssueTimelineItemEdgeSelector) => T - ) => Field<"timelineEdge", never, SelectionSet>; -} - -export const AddCommentPayload: AddCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The edge from the subject's comment connection. - */ - - commentEdge: (select) => - new Field( - "commentEdge", - undefined as never, - new SelectionSet(select(IssueCommentEdge)) - ), - - /** - * @description The subject - */ - - subject: (select) => - new Field("subject", undefined as never, new SelectionSet(select(Node))), - - /** - * @description The edge from the subject's timeline connection. - */ - - timelineEdge: (select) => - new Field( - "timelineEdge", - undefined as never, - new SelectionSet(select(IssueTimelineItemEdge)) - ), -}; - -export interface IAddLabelsToLabelablePayload { - readonly __typename: "AddLabelsToLabelablePayload"; - readonly clientMutationId: string | null; - readonly labelable: ILabelable | null; -} - -interface AddLabelsToLabelablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The item that was labeled. - */ - - readonly labelable: >( - select: (t: LabelableSelector) => T - ) => Field<"labelable", never, SelectionSet>; -} - -export const AddLabelsToLabelablePayload: AddLabelsToLabelablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The item that was labeled. - */ - - labelable: (select) => - new Field( - "labelable", - undefined as never, - new SelectionSet(select(Labelable)) - ), -}; - -export interface IAddProjectCardPayload { - readonly __typename: "AddProjectCardPayload"; - readonly cardEdge: IProjectCardEdge | null; - readonly clientMutationId: string | null; - readonly projectColumn: IProjectColumn | null; -} - -interface AddProjectCardPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The edge from the ProjectColumn's card connection. - */ - - readonly cardEdge: >( - select: (t: ProjectCardEdgeSelector) => T - ) => Field<"cardEdge", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The ProjectColumn - */ - - readonly projectColumn: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"projectColumn", never, SelectionSet>; -} - -export const AddProjectCardPayload: AddProjectCardPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The edge from the ProjectColumn's card connection. - */ - - cardEdge: (select) => - new Field( - "cardEdge", - undefined as never, - new SelectionSet(select(ProjectCardEdge)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The ProjectColumn - */ - - projectColumn: (select) => - new Field( - "projectColumn", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), -}; - -export interface IAddProjectColumnPayload { - readonly __typename: "AddProjectColumnPayload"; - readonly clientMutationId: string | null; - readonly columnEdge: IProjectColumnEdge | null; - readonly project: IProject | null; -} - -interface AddProjectColumnPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The edge from the project's column connection. - */ - - readonly columnEdge: >( - select: (t: ProjectColumnEdgeSelector) => T - ) => Field<"columnEdge", never, SelectionSet>; - - /** - * @description The project - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; -} - -export const AddProjectColumnPayload: AddProjectColumnPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The edge from the project's column connection. - */ - - columnEdge: (select) => - new Field( - "columnEdge", - undefined as never, - new SelectionSet(select(ProjectColumnEdge)) - ), - - /** - * @description The project - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), -}; - -export interface IAddPullRequestReviewCommentPayload { - readonly __typename: "AddPullRequestReviewCommentPayload"; - readonly clientMutationId: string | null; - readonly comment: IPullRequestReviewComment | null; - readonly commentEdge: IPullRequestReviewCommentEdge | null; -} - -interface AddPullRequestReviewCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The newly created comment. - */ - - readonly comment: >( - select: (t: PullRequestReviewCommentSelector) => T - ) => Field<"comment", never, SelectionSet>; - - /** - * @description The edge from the review's comment connection. - */ - - readonly commentEdge: >( - select: (t: PullRequestReviewCommentEdgeSelector) => T - ) => Field<"commentEdge", never, SelectionSet>; -} - -export const AddPullRequestReviewCommentPayload: AddPullRequestReviewCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The newly created comment. - */ - - comment: (select) => - new Field( - "comment", - undefined as never, - new SelectionSet(select(PullRequestReviewComment)) - ), - - /** - * @description The edge from the review's comment connection. - */ - - commentEdge: (select) => - new Field( - "commentEdge", - undefined as never, - new SelectionSet(select(PullRequestReviewCommentEdge)) - ), -}; - -export interface IAddPullRequestReviewPayload { - readonly __typename: "AddPullRequestReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; - readonly reviewEdge: IPullRequestReviewEdge | null; -} - -interface AddPullRequestReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The newly created pull request review. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; - - /** - * @description The edge from the pull request's review connection. - */ - - readonly reviewEdge: >( - select: (t: PullRequestReviewEdgeSelector) => T - ) => Field<"reviewEdge", never, SelectionSet>; -} - -export const AddPullRequestReviewPayload: AddPullRequestReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The newly created pull request review. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), - - /** - * @description The edge from the pull request's review connection. - */ - - reviewEdge: (select) => - new Field( - "reviewEdge", - undefined as never, - new SelectionSet(select(PullRequestReviewEdge)) - ), -}; - -export interface IAddPullRequestReviewThreadPayload { - readonly __typename: "AddPullRequestReviewThreadPayload"; - readonly clientMutationId: string | null; - readonly thread: IPullRequestReviewThread | null; -} - -interface AddPullRequestReviewThreadPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The newly created thread. - */ - - readonly thread: >( - select: (t: PullRequestReviewThreadSelector) => T - ) => Field<"thread", never, SelectionSet>; -} - -export const AddPullRequestReviewThreadPayload: AddPullRequestReviewThreadPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The newly created thread. - */ - - thread: (select) => - new Field( - "thread", - undefined as never, - new SelectionSet(select(PullRequestReviewThread)) - ), -}; - -export interface IAddReactionPayload { - readonly __typename: "AddReactionPayload"; - readonly clientMutationId: string | null; - readonly reaction: IReaction | null; - readonly subject: IReactable | null; -} - -interface AddReactionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The reaction object. - */ - - readonly reaction: >( - select: (t: ReactionSelector) => T - ) => Field<"reaction", never, SelectionSet>; - - /** - * @description The reactable subject. - */ - - readonly subject: >( - select: (t: ReactableSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const AddReactionPayload: AddReactionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The reaction object. - */ - - reaction: (select) => - new Field( - "reaction", - undefined as never, - new SelectionSet(select(Reaction)) - ), - - /** - * @description The reactable subject. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(Reactable)) - ), -}; - -export interface IAddStarPayload { - readonly __typename: "AddStarPayload"; - readonly clientMutationId: string | null; - readonly starrable: IStarrable | null; -} - -interface AddStarPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The starrable. - */ - - readonly starrable: >( - select: (t: StarrableSelector) => T - ) => Field<"starrable", never, SelectionSet>; -} - -export const AddStarPayload: AddStarPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The starrable. - */ - - starrable: (select) => - new Field( - "starrable", - undefined as never, - new SelectionSet(select(Starrable)) - ), -}; - -export interface IAddedToProjectEvent extends INode { - readonly __typename: "AddedToProjectEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; -} - -interface AddedToProjectEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; -} - -export const isAddedToProjectEvent = ( - object: Record -): object is Partial => { - return object.__typename === "AddedToProjectEvent"; -}; - -export const AddedToProjectEvent: AddedToProjectEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), -}; - -export interface IApp extends INode { - readonly __typename: "App"; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly description: string | null; - readonly logoBackgroundColor: string; - readonly logoUrl: unknown; - readonly name: string; - readonly slug: string; - readonly updatedAt: unknown; - readonly url: unknown; -} - -interface AppSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The description of the app. - */ - - readonly description: () => Field<"description">; - - readonly id: () => Field<"id">; - - /** - * @description The hex color code, without the leading '#', for the logo background. - */ - - readonly logoBackgroundColor: () => Field<"logoBackgroundColor">; - - /** - * @description A URL pointing to the app's logo. - */ - - readonly logoUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"logoUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description The name of the app. - */ - - readonly name: () => Field<"name">; - - /** - * @description A slug based on the name of the app for use in URLs. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The URL to the app's homepage. - */ - - readonly url: () => Field<"url">; -} - -export const isApp = (object: Record): object is Partial => { - return object.__typename === "App"; -}; - -export const App: AppSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The description of the app. - */ - description: () => new Field("description"), - id: () => new Field("id"), - - /** - * @description The hex color code, without the leading '#', for the logo background. - */ - logoBackgroundColor: () => new Field("logoBackgroundColor"), - - /** - * @description A URL pointing to the app's logo. - */ - logoUrl: (variables) => new Field("logoUrl"), - - /** - * @description The name of the app. - */ - name: () => new Field("name"), - - /** - * @description A slug based on the name of the app for use in URLs. - */ - slug: () => new Field("slug"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The URL to the app's homepage. - */ - url: () => new Field("url"), -}; - -export interface IArchiveRepositoryPayload { - readonly __typename: "ArchiveRepositoryPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface ArchiveRepositoryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The repository that was marked as archived. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const ArchiveRepositoryPayload: ArchiveRepositoryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The repository that was marked as archived. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IAssignable { - readonly __typename: string; - readonly assignees: IUserConnection; -} - -interface AssignableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of Users assigned to this object. - */ - - readonly assignees: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "assignees", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Assignable: AssignableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of Users assigned to this object. - */ - - assignees: (variables, select) => - new Field( - "assignees", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Assignable", - }); - } - }, -}; - -export interface IAssignedEvent extends INode { - readonly __typename: "AssignedEvent"; - readonly actor: IActor | null; - readonly assignable: IAssignable; - readonly assignee: IAssignee | null; - readonly createdAt: unknown; - readonly user: IUser | null; -} - -interface AssignedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the assignable associated with the event. - */ - - readonly assignable: >( - select: (t: AssignableSelector) => T - ) => Field<"assignable", never, SelectionSet>; - - /** - * @description Identifies the user or mannequin that was assigned. - */ - - readonly assignee: >( - select: (t: AssigneeSelector) => T - ) => Field<"assignee", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the user who was assigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isAssignedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "AssignedEvent"; -}; - -export const AssignedEvent: AssignedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the assignable associated with the event. - */ - - assignable: (select) => - new Field( - "assignable", - undefined as never, - new SelectionSet(select(Assignable)) - ), - - /** - * @description Identifies the user or mannequin that was assigned. - */ - - assignee: (select) => - new Field( - "assignee", - undefined as never, - new SelectionSet(select(Assignee)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the user who was assigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IAuditEntry { - readonly __typename: string; - readonly action: string; - readonly actor: IAuditEntryActor | null; - readonly actorIp: string | null; - readonly actorLocation: IActorLocation | null; - readonly actorLogin: string | null; - readonly actorResourcePath: unknown | null; - readonly actorUrl: unknown | null; - readonly createdAt: unknown; - readonly operationType: OperationType | null; - readonly user: IUser | null; - readonly userLogin: string | null; - readonly userResourcePath: unknown | null; - readonly userUrl: unknown | null; -} - -interface AuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - readonly on: < - T extends Array, - F extends - | "MembersCanDeleteReposClearAuditEntry" - | "MembersCanDeleteReposDisableAuditEntry" - | "MembersCanDeleteReposEnableAuditEntry" - | "OauthApplicationCreateAuditEntry" - | "OrgAddBillingManagerAuditEntry" - | "OrgAddMemberAuditEntry" - | "OrgBlockUserAuditEntry" - | "OrgConfigDisableCollaboratorsOnlyAuditEntry" - | "OrgConfigEnableCollaboratorsOnlyAuditEntry" - | "OrgCreateAuditEntry" - | "OrgDisableOauthAppRestrictionsAuditEntry" - | "OrgDisableSamlAuditEntry" - | "OrgDisableTwoFactorRequirementAuditEntry" - | "OrgEnableOauthAppRestrictionsAuditEntry" - | "OrgEnableSamlAuditEntry" - | "OrgEnableTwoFactorRequirementAuditEntry" - | "OrgInviteMemberAuditEntry" - | "OrgInviteToBusinessAuditEntry" - | "OrgOauthAppAccessApprovedAuditEntry" - | "OrgOauthAppAccessDeniedAuditEntry" - | "OrgOauthAppAccessRequestedAuditEntry" - | "OrgRemoveBillingManagerAuditEntry" - | "OrgRemoveMemberAuditEntry" - | "OrgRemoveOutsideCollaboratorAuditEntry" - | "OrgRestoreMemberAuditEntry" - | "OrgUnblockUserAuditEntry" - | "OrgUpdateDefaultRepositoryPermissionAuditEntry" - | "OrgUpdateMemberAuditEntry" - | "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - | "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "RepoAccessAuditEntry" - | "RepoAddMemberAuditEntry" - | "RepoAddTopicAuditEntry" - | "RepoArchivedAuditEntry" - | "RepoChangeMergeSettingAuditEntry" - | "RepoConfigDisableAnonymousGitAccessAuditEntry" - | "RepoConfigDisableCollaboratorsOnlyAuditEntry" - | "RepoConfigDisableContributorsOnlyAuditEntry" - | "RepoConfigDisableSockpuppetDisallowedAuditEntry" - | "RepoConfigEnableAnonymousGitAccessAuditEntry" - | "RepoConfigEnableCollaboratorsOnlyAuditEntry" - | "RepoConfigEnableContributorsOnlyAuditEntry" - | "RepoConfigEnableSockpuppetDisallowedAuditEntry" - | "RepoConfigLockAnonymousGitAccessAuditEntry" - | "RepoConfigUnlockAnonymousGitAccessAuditEntry" - | "RepoCreateAuditEntry" - | "RepoDestroyAuditEntry" - | "RepoRemoveMemberAuditEntry" - | "RepoRemoveTopicAuditEntry" - | "RepositoryVisibilityChangeDisableAuditEntry" - | "RepositoryVisibilityChangeEnableAuditEntry" - | "TeamAddMemberAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamChangeParentTeamAuditEntry" - | "TeamRemoveMemberAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - >( - type: F, - select: ( - t: F extends "MembersCanDeleteReposClearAuditEntry" - ? MembersCanDeleteReposClearAuditEntrySelector - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? MembersCanDeleteReposDisableAuditEntrySelector - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? MembersCanDeleteReposEnableAuditEntrySelector - : F extends "OauthApplicationCreateAuditEntry" - ? OauthApplicationCreateAuditEntrySelector - : F extends "OrgAddBillingManagerAuditEntry" - ? OrgAddBillingManagerAuditEntrySelector - : F extends "OrgAddMemberAuditEntry" - ? OrgAddMemberAuditEntrySelector - : F extends "OrgBlockUserAuditEntry" - ? OrgBlockUserAuditEntrySelector - : F extends "OrgConfigDisableCollaboratorsOnlyAuditEntry" - ? OrgConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgConfigEnableCollaboratorsOnlyAuditEntry" - ? OrgConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgCreateAuditEntry" - ? OrgCreateAuditEntrySelector - : F extends "OrgDisableOauthAppRestrictionsAuditEntry" - ? OrgDisableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgDisableSamlAuditEntry" - ? OrgDisableSamlAuditEntrySelector - : F extends "OrgDisableTwoFactorRequirementAuditEntry" - ? OrgDisableTwoFactorRequirementAuditEntrySelector - : F extends "OrgEnableOauthAppRestrictionsAuditEntry" - ? OrgEnableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgEnableSamlAuditEntry" - ? OrgEnableSamlAuditEntrySelector - : F extends "OrgEnableTwoFactorRequirementAuditEntry" - ? OrgEnableTwoFactorRequirementAuditEntrySelector - : F extends "OrgInviteMemberAuditEntry" - ? OrgInviteMemberAuditEntrySelector - : F extends "OrgInviteToBusinessAuditEntry" - ? OrgInviteToBusinessAuditEntrySelector - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? OrgOauthAppAccessApprovedAuditEntrySelector - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? OrgOauthAppAccessDeniedAuditEntrySelector - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? OrgOauthAppAccessRequestedAuditEntrySelector - : F extends "OrgRemoveBillingManagerAuditEntry" - ? OrgRemoveBillingManagerAuditEntrySelector - : F extends "OrgRemoveMemberAuditEntry" - ? OrgRemoveMemberAuditEntrySelector - : F extends "OrgRemoveOutsideCollaboratorAuditEntry" - ? OrgRemoveOutsideCollaboratorAuditEntrySelector - : F extends "OrgRestoreMemberAuditEntry" - ? OrgRestoreMemberAuditEntrySelector - : F extends "OrgUnblockUserAuditEntry" - ? OrgUnblockUserAuditEntrySelector - : F extends "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ? OrgUpdateDefaultRepositoryPermissionAuditEntrySelector - : F extends "OrgUpdateMemberAuditEntry" - ? OrgUpdateMemberAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "RepoAccessAuditEntry" - ? RepoAccessAuditEntrySelector - : F extends "RepoAddMemberAuditEntry" - ? RepoAddMemberAuditEntrySelector - : F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoArchivedAuditEntry" - ? RepoArchivedAuditEntrySelector - : F extends "RepoChangeMergeSettingAuditEntry" - ? RepoChangeMergeSettingAuditEntrySelector - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? RepoConfigDisableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? RepoConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? RepoConfigDisableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? RepoConfigDisableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? RepoConfigEnableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? RepoConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? RepoConfigEnableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? RepoConfigEnableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? RepoConfigLockAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? RepoConfigUnlockAnonymousGitAccessAuditEntrySelector - : F extends "RepoCreateAuditEntry" - ? RepoCreateAuditEntrySelector - : F extends "RepoDestroyAuditEntry" - ? RepoDestroyAuditEntrySelector - : F extends "RepoRemoveMemberAuditEntry" - ? RepoRemoveMemberAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? RepositoryVisibilityChangeDisableAuditEntrySelector - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? RepositoryVisibilityChangeEnableAuditEntrySelector - : F extends "TeamAddMemberAuditEntry" - ? TeamAddMemberAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamChangeParentTeamAuditEntry" - ? TeamChangeParentTeamAuditEntrySelector - : F extends "TeamRemoveMemberAuditEntry" - ? TeamRemoveMemberAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const AuditEntry: AuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - on: (type, select) => { - switch (type) { - case "MembersCanDeleteReposClearAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposClearAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposClearAuditEntry as any)) - ); - } - - case "MembersCanDeleteReposDisableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposDisableAuditEntry") as any, - new SelectionSet( - select(MembersCanDeleteReposDisableAuditEntry as any) - ) - ); - } - - case "MembersCanDeleteReposEnableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposEnableAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposEnableAuditEntry as any)) - ); - } - - case "OauthApplicationCreateAuditEntry": { - return new InlineFragment( - new NamedType("OauthApplicationCreateAuditEntry") as any, - new SelectionSet(select(OauthApplicationCreateAuditEntry as any)) - ); - } - - case "OrgAddBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgAddBillingManagerAuditEntry as any)) - ); - } - - case "OrgAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddMemberAuditEntry") as any, - new SelectionSet(select(OrgAddMemberAuditEntry as any)) - ); - } - - case "OrgBlockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgBlockUserAuditEntry") as any, - new SelectionSet(select(OrgBlockUserAuditEntry as any)) - ); - } - - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgCreateAuditEntry": { - return new InlineFragment( - new NamedType("OrgCreateAuditEntry") as any, - new SelectionSet(select(OrgCreateAuditEntry as any)) - ); - } - - case "OrgDisableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgDisableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgDisableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableSamlAuditEntry") as any, - new SelectionSet(select(OrgDisableSamlAuditEntry as any)) - ); - } - - case "OrgDisableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgDisableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgEnableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgEnableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgEnableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableSamlAuditEntry") as any, - new SelectionSet(select(OrgEnableSamlAuditEntry as any)) - ); - } - - case "OrgEnableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgEnableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgInviteMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteMemberAuditEntry") as any, - new SelectionSet(select(OrgInviteMemberAuditEntry as any)) - ); - } - - case "OrgInviteToBusinessAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteToBusinessAuditEntry") as any, - new SelectionSet(select(OrgInviteToBusinessAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessApprovedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessApprovedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessApprovedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessDeniedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessDeniedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessDeniedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessRequestedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessRequestedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessRequestedAuditEntry as any)) - ); - } - - case "OrgRemoveBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgRemoveBillingManagerAuditEntry as any)) - ); - } - - case "OrgRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveMemberAuditEntry") as any, - new SelectionSet(select(OrgRemoveMemberAuditEntry as any)) - ); - } - - case "OrgRemoveOutsideCollaboratorAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveOutsideCollaboratorAuditEntry") as any, - new SelectionSet( - select(OrgRemoveOutsideCollaboratorAuditEntry as any) - ) - ); - } - - case "OrgRestoreMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRestoreMemberAuditEntry") as any, - new SelectionSet(select(OrgRestoreMemberAuditEntry as any)) - ); - } - - case "OrgUnblockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgUnblockUserAuditEntry") as any, - new SelectionSet(select(OrgUnblockUserAuditEntry as any)) - ); - } - - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateDefaultRepositoryPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgUpdateMemberAuditEntry") as any, - new SelectionSet(select(OrgUpdateMemberAuditEntry as any)) - ); - } - - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateMemberRepositoryCreationPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ) as any, - new SelectionSet( - select( - OrgUpdateMemberRepositoryInvitationPermissionAuditEntry as any - ) - ) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "RepoAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoAccessAuditEntry") as any, - new SelectionSet(select(RepoAccessAuditEntry as any)) - ); - } - - case "RepoAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddMemberAuditEntry") as any, - new SelectionSet(select(RepoAddMemberAuditEntry as any)) - ); - } - - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoArchivedAuditEntry": { - return new InlineFragment( - new NamedType("RepoArchivedAuditEntry") as any, - new SelectionSet(select(RepoArchivedAuditEntry as any)) - ); - } - - case "RepoChangeMergeSettingAuditEntry": { - return new InlineFragment( - new NamedType("RepoChangeMergeSettingAuditEntry") as any, - new SelectionSet(select(RepoChangeMergeSettingAuditEntry as any)) - ); - } - - case "RepoConfigDisableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigDisableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigEnableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigLockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigLockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigLockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigUnlockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigUnlockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoCreateAuditEntry": { - return new InlineFragment( - new NamedType("RepoCreateAuditEntry") as any, - new SelectionSet(select(RepoCreateAuditEntry as any)) - ); - } - - case "RepoDestroyAuditEntry": { - return new InlineFragment( - new NamedType("RepoDestroyAuditEntry") as any, - new SelectionSet(select(RepoDestroyAuditEntry as any)) - ); - } - - case "RepoRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveMemberAuditEntry") as any, - new SelectionSet(select(RepoRemoveMemberAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - case "RepositoryVisibilityChangeDisableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeDisableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeDisableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeEnableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeEnableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeEnableAuditEntry as any) - ) - ); - } - - case "TeamAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddMemberAuditEntry") as any, - new SelectionSet(select(TeamAddMemberAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamChangeParentTeamAuditEntry": { - return new InlineFragment( - new NamedType("TeamChangeParentTeamAuditEntry") as any, - new SelectionSet(select(TeamChangeParentTeamAuditEntry as any)) - ); - } - - case "TeamRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveMemberAuditEntry") as any, - new SelectionSet(select(TeamRemoveMemberAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "AuditEntry", - }); - } - }, -}; - -export interface IAutomaticBaseChangeFailedEvent extends INode { - readonly __typename: "AutomaticBaseChangeFailedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly newBase: string; - readonly oldBase: string; - readonly pullRequest: IPullRequest; -} - -interface AutomaticBaseChangeFailedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The new base for this PR - */ - - readonly newBase: () => Field<"newBase">; - - /** - * @description The old base for this PR - */ - - readonly oldBase: () => Field<"oldBase">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isAutomaticBaseChangeFailedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "AutomaticBaseChangeFailedEvent"; -}; - -export const AutomaticBaseChangeFailedEvent: AutomaticBaseChangeFailedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The new base for this PR - */ - newBase: () => new Field("newBase"), - - /** - * @description The old base for this PR - */ - oldBase: () => new Field("oldBase"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IAutomaticBaseChangeSucceededEvent extends INode { - readonly __typename: "AutomaticBaseChangeSucceededEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly newBase: string; - readonly oldBase: string; - readonly pullRequest: IPullRequest; -} - -interface AutomaticBaseChangeSucceededEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The new base for this PR - */ - - readonly newBase: () => Field<"newBase">; - - /** - * @description The old base for this PR - */ - - readonly oldBase: () => Field<"oldBase">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isAutomaticBaseChangeSucceededEvent = ( - object: Record -): object is Partial => { - return object.__typename === "AutomaticBaseChangeSucceededEvent"; -}; - -export const AutomaticBaseChangeSucceededEvent: AutomaticBaseChangeSucceededEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The new base for this PR - */ - newBase: () => new Field("newBase"), - - /** - * @description The old base for this PR - */ - oldBase: () => new Field("oldBase"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IBaseRefChangedEvent extends INode { - readonly __typename: "BaseRefChangedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly currentRefName: string; - readonly databaseId: number | null; - readonly previousRefName: string; - readonly pullRequest: IPullRequest; -} - -interface BaseRefChangedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the name of the base ref for the pull request after it was changed. - */ - - readonly currentRefName: () => Field<"currentRefName">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the name of the base ref for the pull request before it was changed. - */ - - readonly previousRefName: () => Field<"previousRefName">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isBaseRefChangedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "BaseRefChangedEvent"; -}; - -export const BaseRefChangedEvent: BaseRefChangedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the name of the base ref for the pull request after it was changed. - */ - currentRefName: () => new Field("currentRefName"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description Identifies the name of the base ref for the pull request before it was changed. - */ - previousRefName: () => new Field("previousRefName"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IBaseRefDeletedEvent extends INode { - readonly __typename: "BaseRefDeletedEvent"; - readonly actor: IActor | null; - readonly baseRefName: string | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest | null; -} - -interface BaseRefDeletedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the name of the Ref associated with the `base_ref_deleted` event. - */ - - readonly baseRefName: () => Field<"baseRefName">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isBaseRefDeletedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "BaseRefDeletedEvent"; -}; - -export const BaseRefDeletedEvent: BaseRefDeletedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the name of the Ref associated with the `base_ref_deleted` event. - */ - baseRefName: () => new Field("baseRefName"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IBaseRefForcePushedEvent extends INode { - readonly __typename: "BaseRefForcePushedEvent"; - readonly actor: IActor | null; - readonly afterCommit: ICommit | null; - readonly beforeCommit: ICommit | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; - readonly ref: IRef | null; -} - -interface BaseRefForcePushedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the after commit SHA for the 'base_ref_force_pushed' event. - */ - - readonly afterCommit: >( - select: (t: CommitSelector) => T - ) => Field<"afterCommit", never, SelectionSet>; - - /** - * @description Identifies the before commit SHA for the 'base_ref_force_pushed' event. - */ - - readonly beforeCommit: >( - select: (t: CommitSelector) => T - ) => Field<"beforeCommit", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const isBaseRefForcePushedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "BaseRefForcePushedEvent"; -}; - -export const BaseRefForcePushedEvent: BaseRefForcePushedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the after commit SHA for the 'base_ref_force_pushed' event. - */ - - afterCommit: (select) => - new Field( - "afterCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description Identifies the before commit SHA for the 'base_ref_force_pushed' event. - */ - - beforeCommit: (select) => - new Field( - "beforeCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IBlame { - readonly __typename: "Blame"; - readonly ranges: ReadonlyArray; -} - -interface BlameSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The list of ranges from a Git blame. - */ - - readonly ranges: >( - select: (t: BlameRangeSelector) => T - ) => Field<"ranges", never, SelectionSet>; -} - -export const Blame: BlameSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The list of ranges from a Git blame. - */ - - ranges: (select) => - new Field( - "ranges", - undefined as never, - new SelectionSet(select(BlameRange)) - ), -}; - -export interface IBlameRange { - readonly __typename: "BlameRange"; - readonly age: number; - readonly commit: ICommit; - readonly endingLine: number; - readonly startingLine: number; -} - -interface BlameRangeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the recency of the change, from 1 (new) to 10 (old). This is -calculated as a 2-quantile and determines the length of distance between the -median age of all the changes in the file and the recency of the current -range's change. - */ - - readonly age: () => Field<"age">; - - /** - * @description Identifies the line author - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description The ending line for the range - */ - - readonly endingLine: () => Field<"endingLine">; - - /** - * @description The starting line for the range - */ - - readonly startingLine: () => Field<"startingLine">; -} - -export const BlameRange: BlameRangeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the recency of the change, from 1 (new) to 10 (old). This is -calculated as a 2-quantile and determines the length of distance between the -median age of all the changes in the file and the recency of the current -range's change. - */ - age: () => new Field("age"), - - /** - * @description Identifies the line author - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description The ending line for the range - */ - endingLine: () => new Field("endingLine"), - - /** - * @description The starting line for the range - */ - startingLine: () => new Field("startingLine"), -}; - -export interface IBlob extends IGitObject, INode { - readonly __typename: "Blob"; - readonly byteSize: number; - readonly isBinary: boolean | null; - readonly isTruncated: boolean; - readonly text: string | null; -} - -interface BlobSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An abbreviated version of the Git object ID - */ - - readonly abbreviatedOid: () => Field<"abbreviatedOid">; - - /** - * @description Byte size of Blob object - */ - - readonly byteSize: () => Field<"byteSize">; - - /** - * @description The HTTP path for this Git object - */ - - readonly commitResourcePath: () => Field<"commitResourcePath">; - - /** - * @description The HTTP URL for this Git object - */ - - readonly commitUrl: () => Field<"commitUrl">; - - readonly id: () => Field<"id">; - - /** - * @description Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. - */ - - readonly isBinary: () => Field<"isBinary">; - - /** - * @description Indicates whether the contents is truncated - */ - - readonly isTruncated: () => Field<"isTruncated">; - - /** - * @description The Git object ID - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The Repository the Git object belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description UTF8 text data or null if the Blob is binary - */ - - readonly text: () => Field<"text">; -} - -export const isBlob = ( - object: Record -): object is Partial => { - return object.__typename === "Blob"; -}; - -export const Blob: BlobSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An abbreviated version of the Git object ID - */ - abbreviatedOid: () => new Field("abbreviatedOid"), - - /** - * @description Byte size of Blob object - */ - byteSize: () => new Field("byteSize"), - - /** - * @description The HTTP path for this Git object - */ - commitResourcePath: () => new Field("commitResourcePath"), - - /** - * @description The HTTP URL for this Git object - */ - commitUrl: () => new Field("commitUrl"), - id: () => new Field("id"), - - /** - * @description Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. - */ - isBinary: () => new Field("isBinary"), - - /** - * @description Indicates whether the contents is truncated - */ - isTruncated: () => new Field("isTruncated"), - - /** - * @description The Git object ID - */ - oid: () => new Field("oid"), - - /** - * @description The Repository the Git object belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description UTF8 text data or null if the Blob is binary - */ - text: () => new Field("text"), -}; - -export interface IBot extends IActor, INode, IUniformResourceLocatable { - readonly __typename: "Bot"; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly updatedAt: unknown; -} - -interface BotSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the GitHub App's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description The username of the actor. - */ - - readonly login: () => Field<"login">; - - /** - * @description The HTTP path for this bot - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this bot - */ - - readonly url: () => Field<"url">; -} - -export const isBot = (object: Record): object is Partial => { - return object.__typename === "Bot"; -}; - -export const Bot: BotSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the GitHub App's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description The username of the actor. - */ - login: () => new Field("login"), - - /** - * @description The HTTP path for this bot - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this bot - */ - url: () => new Field("url"), -}; - -export interface IBranchProtectionRule extends INode { - readonly __typename: "BranchProtectionRule"; - readonly allowsDeletions: boolean; - readonly allowsForcePushes: boolean; - readonly branchProtectionRuleConflicts: IBranchProtectionRuleConflictConnection; - readonly creator: IActor | null; - readonly databaseId: number | null; - readonly dismissesStaleReviews: boolean; - readonly isAdminEnforced: boolean; - readonly matchingRefs: IRefConnection; - readonly pattern: string; - readonly pushAllowances: IPushAllowanceConnection; - readonly repository: IRepository | null; - readonly requiredApprovingReviewCount: number | null; - readonly requiredStatusCheckContexts: ReadonlyArray | null; - readonly requiresApprovingReviews: boolean; - readonly requiresCodeOwnerReviews: boolean; - readonly requiresCommitSignatures: boolean; - readonly requiresLinearHistory: boolean; - readonly requiresStatusChecks: boolean; - readonly requiresStrictStatusChecks: boolean; - readonly restrictsPushes: boolean; - readonly restrictsReviewDismissals: boolean; - readonly reviewDismissalAllowances: IReviewDismissalAllowanceConnection; -} - -interface BranchProtectionRuleSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Can this branch be deleted. - */ - - readonly allowsDeletions: () => Field<"allowsDeletions">; - - /** - * @description Are force pushes allowed on this branch. - */ - - readonly allowsForcePushes: () => Field<"allowsForcePushes">; - - /** - * @description A list of conflicts matching branches protection rule and other branch protection rules - */ - - readonly branchProtectionRuleConflicts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: BranchProtectionRuleConflictConnectionSelector) => T - ) => Field< - "branchProtectionRuleConflicts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The actor who created this branch protection rule. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description Will new commits pushed to matching branches dismiss pull request review approvals. - */ - - readonly dismissesStaleReviews: () => Field<"dismissesStaleReviews">; - - readonly id: () => Field<"id">; - - /** - * @description Can admins overwrite branch protection. - */ - - readonly isAdminEnforced: () => Field<"isAdminEnforced">; - - /** - * @description Repository refs that are protected by this rule - */ - - readonly matchingRefs: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - }, - select: (t: RefConnectionSelector) => T - ) => Field< - "matchingRefs", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description Identifies the protection rule pattern. - */ - - readonly pattern: () => Field<"pattern">; - - /** - * @description A list push allowances for this branch protection rule. - */ - - readonly pushAllowances: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PushAllowanceConnectionSelector) => T - ) => Field< - "pushAllowances", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The repository associated with this branch protection rule. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description Number of approving reviews required to update matching branches. - */ - - readonly requiredApprovingReviewCount: () => Field<"requiredApprovingReviewCount">; - - /** - * @description List of required status check contexts that must pass for commits to be accepted to matching branches. - */ - - readonly requiredStatusCheckContexts: () => Field<"requiredStatusCheckContexts">; - - /** - * @description Are approving reviews required to update matching branches. - */ - - readonly requiresApprovingReviews: () => Field<"requiresApprovingReviews">; - - /** - * @description Are reviews from code owners required to update matching branches. - */ - - readonly requiresCodeOwnerReviews: () => Field<"requiresCodeOwnerReviews">; - - /** - * @description Are commits required to be signed. - */ - - readonly requiresCommitSignatures: () => Field<"requiresCommitSignatures">; - - /** - * @description Are merge commits prohibited from being pushed to this branch. - */ - - readonly requiresLinearHistory: () => Field<"requiresLinearHistory">; - - /** - * @description Are status checks required to update matching branches. - */ - - readonly requiresStatusChecks: () => Field<"requiresStatusChecks">; - - /** - * @description Are branches required to be up to date before merging. - */ - - readonly requiresStrictStatusChecks: () => Field<"requiresStrictStatusChecks">; - - /** - * @description Is pushing to matching branches restricted. - */ - - readonly restrictsPushes: () => Field<"restrictsPushes">; - - /** - * @description Is dismissal of pull request reviews restricted. - */ - - readonly restrictsReviewDismissals: () => Field<"restrictsReviewDismissals">; - - /** - * @description A list review dismissal allowances for this branch protection rule. - */ - - readonly reviewDismissalAllowances: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ReviewDismissalAllowanceConnectionSelector) => T - ) => Field< - "reviewDismissalAllowances", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; -} - -export const isBranchProtectionRule = ( - object: Record -): object is Partial => { - return object.__typename === "BranchProtectionRule"; -}; - -export const BranchProtectionRule: BranchProtectionRuleSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Can this branch be deleted. - */ - allowsDeletions: () => new Field("allowsDeletions"), - - /** - * @description Are force pushes allowed on this branch. - */ - allowsForcePushes: () => new Field("allowsForcePushes"), - - /** - * @description A list of conflicts matching branches protection rule and other branch protection rules - */ - - branchProtectionRuleConflicts: (variables, select) => - new Field( - "branchProtectionRuleConflicts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(BranchProtectionRuleConflictConnection)) - ), - - /** - * @description The actor who created this branch protection rule. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description Will new commits pushed to matching branches dismiss pull request review approvals. - */ - dismissesStaleReviews: () => new Field("dismissesStaleReviews"), - id: () => new Field("id"), - - /** - * @description Can admins overwrite branch protection. - */ - isAdminEnforced: () => new Field("isAdminEnforced"), - - /** - * @description Repository refs that are protected by this rule - */ - - matchingRefs: (variables, select) => - new Field( - "matchingRefs", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(RefConnection)) - ), - - /** - * @description Identifies the protection rule pattern. - */ - pattern: () => new Field("pattern"), - - /** - * @description A list push allowances for this branch protection rule. - */ - - pushAllowances: (variables, select) => - new Field( - "pushAllowances", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PushAllowanceConnection)) - ), - - /** - * @description The repository associated with this branch protection rule. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Number of approving reviews required to update matching branches. - */ - requiredApprovingReviewCount: () => new Field("requiredApprovingReviewCount"), - - /** - * @description List of required status check contexts that must pass for commits to be accepted to matching branches. - */ - requiredStatusCheckContexts: () => new Field("requiredStatusCheckContexts"), - - /** - * @description Are approving reviews required to update matching branches. - */ - requiresApprovingReviews: () => new Field("requiresApprovingReviews"), - - /** - * @description Are reviews from code owners required to update matching branches. - */ - requiresCodeOwnerReviews: () => new Field("requiresCodeOwnerReviews"), - - /** - * @description Are commits required to be signed. - */ - requiresCommitSignatures: () => new Field("requiresCommitSignatures"), - - /** - * @description Are merge commits prohibited from being pushed to this branch. - */ - requiresLinearHistory: () => new Field("requiresLinearHistory"), - - /** - * @description Are status checks required to update matching branches. - */ - requiresStatusChecks: () => new Field("requiresStatusChecks"), - - /** - * @description Are branches required to be up to date before merging. - */ - requiresStrictStatusChecks: () => new Field("requiresStrictStatusChecks"), - - /** - * @description Is pushing to matching branches restricted. - */ - restrictsPushes: () => new Field("restrictsPushes"), - - /** - * @description Is dismissal of pull request reviews restricted. - */ - restrictsReviewDismissals: () => new Field("restrictsReviewDismissals"), - - /** - * @description A list review dismissal allowances for this branch protection rule. - */ - - reviewDismissalAllowances: (variables, select) => - new Field( - "reviewDismissalAllowances", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ReviewDismissalAllowanceConnection)) - ), -}; - -export interface IBranchProtectionRuleConflict { - readonly __typename: "BranchProtectionRuleConflict"; - readonly branchProtectionRule: IBranchProtectionRule | null; - readonly conflictingBranchProtectionRule: IBranchProtectionRule | null; - readonly ref: IRef | null; -} - -interface BranchProtectionRuleConflictSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the branch protection rule. - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - /** - * @description Identifies the conflicting branch protection rule. - */ - - readonly conflictingBranchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"conflictingBranchProtectionRule", never, SelectionSet>; - - /** - * @description Identifies the branch ref that has conflicting rules - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const BranchProtectionRuleConflict: BranchProtectionRuleConflictSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the branch protection rule. - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - /** - * @description Identifies the conflicting branch protection rule. - */ - - conflictingBranchProtectionRule: (select) => - new Field( - "conflictingBranchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - /** - * @description Identifies the branch ref that has conflicting rules - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IBranchProtectionRuleConflictConnection { - readonly __typename: "BranchProtectionRuleConflictConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface BranchProtectionRuleConflictConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: BranchProtectionRuleConflictEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: BranchProtectionRuleConflictSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const BranchProtectionRuleConflictConnection: BranchProtectionRuleConflictConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(BranchProtectionRuleConflictEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(BranchProtectionRuleConflict)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IBranchProtectionRuleConflictEdge { - readonly __typename: "BranchProtectionRuleConflictEdge"; - readonly cursor: string; - readonly node: IBranchProtectionRuleConflict | null; -} - -interface BranchProtectionRuleConflictEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: BranchProtectionRuleConflictSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const BranchProtectionRuleConflictEdge: BranchProtectionRuleConflictEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(BranchProtectionRuleConflict)) - ), -}; - -export interface IBranchProtectionRuleConnection { - readonly __typename: "BranchProtectionRuleConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface BranchProtectionRuleConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: BranchProtectionRuleEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const BranchProtectionRuleConnection: BranchProtectionRuleConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(BranchProtectionRuleEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IBranchProtectionRuleEdge { - readonly __typename: "BranchProtectionRuleEdge"; - readonly cursor: string; - readonly node: IBranchProtectionRule | null; -} - -interface BranchProtectionRuleEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const BranchProtectionRuleEdge: BranchProtectionRuleEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), -}; - -export interface ICancelEnterpriseAdminInvitationPayload { - readonly __typename: "CancelEnterpriseAdminInvitationPayload"; - readonly clientMutationId: string | null; - readonly invitation: IEnterpriseAdministratorInvitation | null; - readonly message: string | null; -} - -interface CancelEnterpriseAdminInvitationPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The invitation that was canceled. - */ - - readonly invitation: >( - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field<"invitation", never, SelectionSet>; - - /** - * @description A message confirming the result of canceling an administrator invitation. - */ - - readonly message: () => Field<"message">; -} - -export const CancelEnterpriseAdminInvitationPayload: CancelEnterpriseAdminInvitationPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The invitation that was canceled. - */ - - invitation: (select) => - new Field( - "invitation", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), - - /** - * @description A message confirming the result of canceling an administrator invitation. - */ - message: () => new Field("message"), -}; - -export interface IChangeUserStatusPayload { - readonly __typename: "ChangeUserStatusPayload"; - readonly clientMutationId: string | null; - readonly status: IUserStatus | null; -} - -interface ChangeUserStatusPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description Your updated status. - */ - - readonly status: >( - select: (t: UserStatusSelector) => T - ) => Field<"status", never, SelectionSet>; -} - -export const ChangeUserStatusPayload: ChangeUserStatusPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description Your updated status. - */ - - status: (select) => - new Field( - "status", - undefined as never, - new SelectionSet(select(UserStatus)) - ), -}; - -export interface ICheckAnnotation { - readonly __typename: "CheckAnnotation"; - readonly annotationLevel: CheckAnnotationLevel | null; - readonly blobUrl: unknown; - readonly databaseId: number | null; - readonly location: ICheckAnnotationSpan; - readonly message: string; - readonly path: string; - readonly rawDetails: string | null; - readonly title: string | null; -} - -interface CheckAnnotationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The annotation's severity level. - */ - - readonly annotationLevel: () => Field<"annotationLevel">; - - /** - * @description The path to the file that this annotation was made on. - */ - - readonly blobUrl: () => Field<"blobUrl">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The position of this annotation. - */ - - readonly location: >( - select: (t: CheckAnnotationSpanSelector) => T - ) => Field<"location", never, SelectionSet>; - - /** - * @description The annotation's message. - */ - - readonly message: () => Field<"message">; - - /** - * @description The path that this annotation was made on. - */ - - readonly path: () => Field<"path">; - - /** - * @description Additional information about the annotation. - */ - - readonly rawDetails: () => Field<"rawDetails">; - - /** - * @description The annotation's title - */ - - readonly title: () => Field<"title">; -} - -export const CheckAnnotation: CheckAnnotationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The annotation's severity level. - */ - annotationLevel: () => new Field("annotationLevel"), - - /** - * @description The path to the file that this annotation was made on. - */ - blobUrl: () => new Field("blobUrl"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The position of this annotation. - */ - - location: (select) => - new Field( - "location", - undefined as never, - new SelectionSet(select(CheckAnnotationSpan)) - ), - - /** - * @description The annotation's message. - */ - message: () => new Field("message"), - - /** - * @description The path that this annotation was made on. - */ - path: () => new Field("path"), - - /** - * @description Additional information about the annotation. - */ - rawDetails: () => new Field("rawDetails"), - - /** - * @description The annotation's title - */ - title: () => new Field("title"), -}; - -export interface ICheckAnnotationConnection { - readonly __typename: "CheckAnnotationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CheckAnnotationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CheckAnnotationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CheckAnnotationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CheckAnnotationConnection: CheckAnnotationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CheckAnnotationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CheckAnnotation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICheckAnnotationEdge { - readonly __typename: "CheckAnnotationEdge"; - readonly cursor: string; - readonly node: ICheckAnnotation | null; -} - -interface CheckAnnotationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CheckAnnotationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CheckAnnotationEdge: CheckAnnotationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CheckAnnotation)) - ), -}; - -export interface ICheckAnnotationPosition { - readonly __typename: "CheckAnnotationPosition"; - readonly column: number | null; - readonly line: number; -} - -interface CheckAnnotationPositionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Column number (1 indexed). - */ - - readonly column: () => Field<"column">; - - /** - * @description Line number (1 indexed). - */ - - readonly line: () => Field<"line">; -} - -export const CheckAnnotationPosition: CheckAnnotationPositionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Column number (1 indexed). - */ - column: () => new Field("column"), - - /** - * @description Line number (1 indexed). - */ - line: () => new Field("line"), -}; - -export interface ICheckAnnotationSpan { - readonly __typename: "CheckAnnotationSpan"; - readonly end: ICheckAnnotationPosition; - readonly start: ICheckAnnotationPosition; -} - -interface CheckAnnotationSpanSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description End position (inclusive). - */ - - readonly end: >( - select: (t: CheckAnnotationPositionSelector) => T - ) => Field<"end", never, SelectionSet>; - - /** - * @description Start position (inclusive). - */ - - readonly start: >( - select: (t: CheckAnnotationPositionSelector) => T - ) => Field<"start", never, SelectionSet>; -} - -export const CheckAnnotationSpan: CheckAnnotationSpanSelector = { - __typename: () => new Field("__typename"), - - /** - * @description End position (inclusive). - */ - - end: (select) => - new Field( - "end", - undefined as never, - new SelectionSet(select(CheckAnnotationPosition)) - ), - - /** - * @description Start position (inclusive). - */ - - start: (select) => - new Field( - "start", - undefined as never, - new SelectionSet(select(CheckAnnotationPosition)) - ), -}; - -export interface ICheckRun extends INode, IUniformResourceLocatable { - readonly __typename: "CheckRun"; - readonly annotations: ICheckAnnotationConnection | null; - readonly checkSuite: ICheckSuite; - readonly completedAt: unknown | null; - readonly conclusion: CheckConclusionState | null; - readonly databaseId: number | null; - readonly detailsUrl: unknown | null; - readonly externalId: string | null; - readonly name: string; - readonly permalink: unknown; - readonly repository: IRepository; - readonly startedAt: unknown | null; - readonly status: CheckStatusState; - readonly summary: string | null; - readonly text: string | null; - readonly title: string | null; -} - -interface CheckRunSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The check run's annotations - */ - - readonly annotations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CheckAnnotationConnectionSelector) => T - ) => Field< - "annotations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The check suite that this run is a part of. - */ - - readonly checkSuite: >( - select: (t: CheckSuiteSelector) => T - ) => Field<"checkSuite", never, SelectionSet>; - - /** - * @description Identifies the date and time when the check run was completed. - */ - - readonly completedAt: () => Field<"completedAt">; - - /** - * @description The conclusion of the check run. - */ - - readonly conclusion: () => Field<"conclusion">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The URL from which to find full details of the check run on the integrator's site. - */ - - readonly detailsUrl: () => Field<"detailsUrl">; - - /** - * @description A reference for the check run on the integrator's system. - */ - - readonly externalId: () => Field<"externalId">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the check for this check run. - */ - - readonly name: () => Field<"name">; - - /** - * @description The permalink to the check run summary. - */ - - readonly permalink: () => Field<"permalink">; - - /** - * @description The repository associated with this check run. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this check run. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the check run was started. - */ - - readonly startedAt: () => Field<"startedAt">; - - /** - * @description The current status of the check run. - */ - - readonly status: () => Field<"status">; - - /** - * @description A string representing the check run's summary - */ - - readonly summary: () => Field<"summary">; - - /** - * @description A string representing the check run's text - */ - - readonly text: () => Field<"text">; - - /** - * @description A string representing the check run - */ - - readonly title: () => Field<"title">; - - /** - * @description The HTTP URL for this check run. - */ - - readonly url: () => Field<"url">; -} - -export const isCheckRun = ( - object: Record -): object is Partial => { - return object.__typename === "CheckRun"; -}; - -export const CheckRun: CheckRunSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The check run's annotations - */ - - annotations: (variables, select) => - new Field( - "annotations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CheckAnnotationConnection)) - ), - - /** - * @description The check suite that this run is a part of. - */ - - checkSuite: (select) => - new Field( - "checkSuite", - undefined as never, - new SelectionSet(select(CheckSuite)) - ), - - /** - * @description Identifies the date and time when the check run was completed. - */ - completedAt: () => new Field("completedAt"), - - /** - * @description The conclusion of the check run. - */ - conclusion: () => new Field("conclusion"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The URL from which to find full details of the check run on the integrator's site. - */ - detailsUrl: () => new Field("detailsUrl"), - - /** - * @description A reference for the check run on the integrator's system. - */ - externalId: () => new Field("externalId"), - id: () => new Field("id"), - - /** - * @description The name of the check for this check run. - */ - name: () => new Field("name"), - - /** - * @description The permalink to the check run summary. - */ - permalink: () => new Field("permalink"), - - /** - * @description The repository associated with this check run. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this check run. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the check run was started. - */ - startedAt: () => new Field("startedAt"), - - /** - * @description The current status of the check run. - */ - status: () => new Field("status"), - - /** - * @description A string representing the check run's summary - */ - summary: () => new Field("summary"), - - /** - * @description A string representing the check run's text - */ - text: () => new Field("text"), - - /** - * @description A string representing the check run - */ - title: () => new Field("title"), - - /** - * @description The HTTP URL for this check run. - */ - url: () => new Field("url"), -}; - -export interface ICheckRunConnection { - readonly __typename: "CheckRunConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CheckRunConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CheckRunEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CheckRunSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CheckRunConnection: CheckRunConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CheckRunEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(CheckRun))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICheckRunEdge { - readonly __typename: "CheckRunEdge"; - readonly cursor: string; - readonly node: ICheckRun | null; -} - -interface CheckRunEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CheckRunSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CheckRunEdge: CheckRunEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(CheckRun))), -}; - -export interface ICheckSuite extends INode { - readonly __typename: "CheckSuite"; - readonly app: IApp | null; - readonly branch: IRef | null; - readonly checkRuns: ICheckRunConnection | null; - readonly commit: ICommit; - readonly conclusion: CheckConclusionState | null; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly matchingPullRequests: IPullRequestConnection | null; - readonly push: IPush | null; - readonly repository: IRepository; - readonly resourcePath: unknown; - readonly status: CheckStatusState; - readonly updatedAt: unknown; - readonly url: unknown; -} - -interface CheckSuiteSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The GitHub App which created this check suite. - */ - - readonly app: >( - select: (t: AppSelector) => T - ) => Field<"app", never, SelectionSet>; - - /** - * @description The name of the branch for this check suite. - */ - - readonly branch: >( - select: (t: RefSelector) => T - ) => Field<"branch", never, SelectionSet>; - - /** - * @description The check runs associated with a check suite. - */ - - readonly checkRuns: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | CheckRunFilter; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CheckRunConnectionSelector) => T - ) => Field< - "checkRuns", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | CheckRunFilter>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The commit for this check suite - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description The conclusion of this check suite. - */ - - readonly conclusion: () => Field<"conclusion">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description A list of open pull requests matching the check suite. - */ - - readonly matchingPullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "matchingPullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description The push that triggered this check suite. - */ - - readonly push: >( - select: (t: PushSelector) => T - ) => Field<"push", never, SelectionSet>; - - /** - * @description The repository associated with this check suite. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this check suite - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The status of this check suite. - */ - - readonly status: () => Field<"status">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this check suite - */ - - readonly url: () => Field<"url">; -} - -export const isCheckSuite = ( - object: Record -): object is Partial => { - return object.__typename === "CheckSuite"; -}; - -export const CheckSuite: CheckSuiteSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The GitHub App which created this check suite. - */ - - app: (select) => - new Field("app", undefined as never, new SelectionSet(select(App))), - - /** - * @description The name of the branch for this check suite. - */ - - branch: (select) => - new Field("branch", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description The check runs associated with a check suite. - */ - - checkRuns: (variables, select) => - new Field( - "checkRuns", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CheckRunConnection)) - ), - - /** - * @description The commit for this check suite - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description The conclusion of this check suite. - */ - conclusion: () => new Field("conclusion"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description A list of open pull requests matching the check suite. - */ - - matchingPullRequests: (variables, select) => - new Field( - "matchingPullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description The push that triggered this check suite. - */ - - push: (select) => - new Field("push", undefined as never, new SelectionSet(select(Push))), - - /** - * @description The repository associated with this check suite. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this check suite - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The status of this check suite. - */ - status: () => new Field("status"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this check suite - */ - url: () => new Field("url"), -}; - -export interface ICheckSuiteConnection { - readonly __typename: "CheckSuiteConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CheckSuiteConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CheckSuiteEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CheckSuiteSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CheckSuiteConnection: CheckSuiteConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CheckSuiteEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CheckSuite)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICheckSuiteEdge { - readonly __typename: "CheckSuiteEdge"; - readonly cursor: string; - readonly node: ICheckSuite | null; -} - -interface CheckSuiteEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CheckSuiteSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CheckSuiteEdge: CheckSuiteEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(CheckSuite))), -}; - -export interface IClearLabelsFromLabelablePayload { - readonly __typename: "ClearLabelsFromLabelablePayload"; - readonly clientMutationId: string | null; - readonly labelable: ILabelable | null; -} - -interface ClearLabelsFromLabelablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The item that was unlabeled. - */ - - readonly labelable: >( - select: (t: LabelableSelector) => T - ) => Field<"labelable", never, SelectionSet>; -} - -export const ClearLabelsFromLabelablePayload: ClearLabelsFromLabelablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The item that was unlabeled. - */ - - labelable: (select) => - new Field( - "labelable", - undefined as never, - new SelectionSet(select(Labelable)) - ), -}; - -export interface ICloneProjectPayload { - readonly __typename: "CloneProjectPayload"; - readonly clientMutationId: string | null; - readonly jobStatusId: string | null; - readonly project: IProject | null; -} - -interface CloneProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The id of the JobStatus for populating cloned fields. - */ - - readonly jobStatusId: () => Field<"jobStatusId">; - - /** - * @description The new cloned project. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; -} - -export const CloneProjectPayload: CloneProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The id of the JobStatus for populating cloned fields. - */ - jobStatusId: () => new Field("jobStatusId"), - - /** - * @description The new cloned project. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), -}; - -export interface ICloneTemplateRepositoryPayload { - readonly __typename: "CloneTemplateRepositoryPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface CloneTemplateRepositoryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const CloneTemplateRepositoryPayload: CloneTemplateRepositoryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IClosable { - readonly __typename: string; - readonly closed: boolean; - readonly closedAt: unknown | null; -} - -interface ClosableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - - readonly closed: () => Field<"closed">; - - /** - * @description Identifies the date and time when the object was closed. - */ - - readonly closedAt: () => Field<"closedAt">; - - readonly on: < - T extends Array, - F extends "Issue" | "Milestone" | "Project" | "PullRequest" - >( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "Milestone" - ? MilestoneSelector - : F extends "Project" - ? ProjectSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Closable: ClosableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - closed: () => new Field("closed"), - - /** - * @description Identifies the date and time when the object was closed. - */ - closedAt: () => new Field("closedAt"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "Milestone": { - return new InlineFragment( - new NamedType("Milestone") as any, - new SelectionSet(select(Milestone as any)) - ); - } - - case "Project": { - return new InlineFragment( - new NamedType("Project") as any, - new SelectionSet(select(Project as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Closable", - }); - } - }, -}; - -export interface ICloseIssuePayload { - readonly __typename: "CloseIssuePayload"; - readonly clientMutationId: string | null; - readonly issue: IIssue | null; -} - -interface CloseIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The issue that was closed. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const CloseIssuePayload: CloseIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The issue that was closed. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IClosePullRequestPayload { - readonly __typename: "ClosePullRequestPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface ClosePullRequestPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request that was closed. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const ClosePullRequestPayload: ClosePullRequestPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request that was closed. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IClosedEvent extends INode, IUniformResourceLocatable { - readonly __typename: "ClosedEvent"; - readonly actor: IActor | null; - readonly closable: IClosable; - readonly closer: ICloser | null; - readonly createdAt: unknown; -} - -interface ClosedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Object that was closed. - */ - - readonly closable: >( - select: (t: ClosableSelector) => T - ) => Field<"closable", never, SelectionSet>; - - /** - * @description Object which triggered the creation of this event. - */ - - readonly closer: >( - select: (t: CloserSelector) => T - ) => Field<"closer", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The HTTP path for this closed event. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this closed event. - */ - - readonly url: () => Field<"url">; -} - -export const isClosedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ClosedEvent"; -}; - -export const ClosedEvent: ClosedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Object that was closed. - */ - - closable: (select) => - new Field( - "closable", - undefined as never, - new SelectionSet(select(Closable)) - ), - - /** - * @description Object which triggered the creation of this event. - */ - - closer: (select) => - new Field("closer", undefined as never, new SelectionSet(select(Closer))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The HTTP path for this closed event. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this closed event. - */ - url: () => new Field("url"), -}; - -export interface ICodeOfConduct extends INode { - readonly __typename: "CodeOfConduct"; - readonly body: string | null; - readonly key: string; - readonly name: string; - readonly resourcePath: unknown | null; - readonly url: unknown | null; -} - -interface CodeOfConductSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The body of the Code of Conduct - */ - - readonly body: () => Field<"body">; - - readonly id: () => Field<"id">; - - /** - * @description The key for the Code of Conduct - */ - - readonly key: () => Field<"key">; - - /** - * @description The formal name of the Code of Conduct - */ - - readonly name: () => Field<"name">; - - /** - * @description The HTTP path for this Code of Conduct - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this Code of Conduct - */ - - readonly url: () => Field<"url">; -} - -export const isCodeOfConduct = ( - object: Record -): object is Partial => { - return object.__typename === "CodeOfConduct"; -}; - -export const CodeOfConduct: CodeOfConductSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The body of the Code of Conduct - */ - body: () => new Field("body"), - id: () => new Field("id"), - - /** - * @description The key for the Code of Conduct - */ - key: () => new Field("key"), - - /** - * @description The formal name of the Code of Conduct - */ - name: () => new Field("name"), - - /** - * @description The HTTP path for this Code of Conduct - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this Code of Conduct - */ - url: () => new Field("url"), -}; - -export interface IComment { - readonly __typename: string; - readonly author: IActor | null; - readonly authorAssociation: CommentAuthorAssociation; - readonly body: string; - readonly bodyHTML: unknown; - readonly bodyText: string; - readonly createdAt: unknown; - readonly createdViaEmail: boolean; - readonly editor: IActor | null; - readonly id: string; - readonly includesCreatedEdit: boolean; - readonly lastEditedAt: unknown | null; - readonly publishedAt: unknown | null; - readonly updatedAt: unknown; - readonly userContentEdits: IUserContentEditConnection | null; - readonly viewerDidAuthor: boolean; -} - -interface CommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description The body as Markdown. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "GistComment" - | "Issue" - | "IssueComment" - | "PullRequest" - | "PullRequestReview" - | "PullRequestReviewComment" - | "TeamDiscussion" - | "TeamDiscussionComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Comment: CommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description The body as Markdown. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Comment", - }); - } - }, -}; - -export interface ICommentDeletedEvent extends INode { - readonly __typename: "CommentDeletedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly deletedCommentAuthor: IActor | null; -} - -interface CommentDeletedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The user who authored the deleted comment. - */ - - readonly deletedCommentAuthor: >( - select: (t: ActorSelector) => T - ) => Field<"deletedCommentAuthor", never, SelectionSet>; - - readonly id: () => Field<"id">; -} - -export const isCommentDeletedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "CommentDeletedEvent"; -}; - -export const CommentDeletedEvent: CommentDeletedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The user who authored the deleted comment. - */ - - deletedCommentAuthor: (select) => - new Field( - "deletedCommentAuthor", - undefined as never, - new SelectionSet(select(Actor)) - ), - - id: () => new Field("id"), -}; - -export interface ICommit - extends IGitObject, - INode, - ISubscribable, - IUniformResourceLocatable { - readonly __typename: "Commit"; - readonly additions: number; - readonly associatedPullRequests: IPullRequestConnection | null; - readonly author: IGitActor | null; - readonly authoredByCommitter: boolean; - readonly authoredDate: unknown; - readonly authors: IGitActorConnection; - readonly blame: IBlame; - readonly changedFiles: number; - readonly checkSuites: ICheckSuiteConnection | null; - readonly comments: ICommitCommentConnection; - readonly committedDate: unknown; - readonly committedViaWeb: boolean; - readonly committer: IGitActor | null; - readonly deletions: number; - readonly deployments: IDeploymentConnection | null; - readonly file: ITreeEntry | null; - readonly history: ICommitHistoryConnection; - readonly message: string; - readonly messageBody: string; - readonly messageBodyHTML: unknown; - readonly messageHeadline: string; - readonly messageHeadlineHTML: unknown; - readonly onBehalfOf: IOrganization | null; - readonly parents: ICommitConnection; - readonly pushedDate: unknown | null; - readonly signature: IGitSignature | null; - readonly status: IStatus | null; - readonly statusCheckRollup: IStatusCheckRollup | null; - readonly submodules: ISubmoduleConnection; - readonly tarballUrl: unknown; - readonly tree: ITree; - readonly treeResourcePath: unknown; - readonly treeUrl: unknown; - readonly zipballUrl: unknown; -} - -interface CommitSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An abbreviated version of the Git object ID - */ - - readonly abbreviatedOid: () => Field<"abbreviatedOid">; - - /** - * @description The number of additions in this commit. - */ - - readonly additions: () => Field<"additions">; - - /** - * @description The pull requests associated with a commit - */ - - readonly associatedPullRequests: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | PullRequestOrder; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "associatedPullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | PullRequestOrder> - ], - SelectionSet - >; - - /** - * @description Authorship details of the commit. - */ - - readonly author: >( - select: (t: GitActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Check if the committer and the author match. - */ - - readonly authoredByCommitter: () => Field<"authoredByCommitter">; - - /** - * @description The datetime when this commit was authored. - */ - - readonly authoredDate: () => Field<"authoredDate">; - - /** - * @description The list of authors for this commit based on the git author and the Co-authored-by -message trailer. The git author will always be first. - */ - - readonly authors: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: GitActorConnectionSelector) => T - ) => Field< - "authors", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Fetches `git blame` information. - */ - - readonly blame: >( - variables: { path?: Variable<"path"> | string }, - select: (t: BlameSelector) => T - ) => Field< - "blame", - [Argument<"path", Variable<"path"> | string>], - SelectionSet - >; - - /** - * @description The number of changed files in this commit. - */ - - readonly changedFiles: () => Field<"changedFiles">; - - /** - * @description The check suites associated with a commit. - */ - - readonly checkSuites: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | CheckSuiteFilter; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CheckSuiteConnectionSelector) => T - ) => Field< - "checkSuites", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | CheckSuiteFilter>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Comments made on the commit. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this Git object - */ - - readonly commitResourcePath: () => Field<"commitResourcePath">; - - /** - * @description The HTTP URL for this Git object - */ - - readonly commitUrl: () => Field<"commitUrl">; - - /** - * @description The datetime when this commit was committed. - */ - - readonly committedDate: () => Field<"committedDate">; - - /** - * @description Check if commited via GitHub web UI. - */ - - readonly committedViaWeb: () => Field<"committedViaWeb">; - - /** - * @description Committership details of the commit. - */ - - readonly committer: >( - select: (t: GitActorSelector) => T - ) => Field<"committer", never, SelectionSet>; - - /** - * @description The number of deletions in this commit. - */ - - readonly deletions: () => Field<"deletions">; - - /** - * @description The deployments associated with a commit. - */ - - readonly deployments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - environments?: Variable<"environments"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | DeploymentOrder; - }, - select: (t: DeploymentConnectionSelector) => T - ) => Field< - "deployments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"environments", Variable<"environments"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | DeploymentOrder> - ], - SelectionSet - >; - - /** - * @description The tree entry representing the file located at the given path. - */ - - readonly file: >( - variables: { path?: Variable<"path"> | string }, - select: (t: TreeEntrySelector) => T - ) => Field< - "file", - [Argument<"path", Variable<"path"> | string>], - SelectionSet - >; - - /** - * @description The linear commit history starting from (and including) this commit, in the same order as `git log`. - */ - - readonly history: >( - variables: { - after?: Variable<"after"> | string; - author?: Variable<"author"> | CommitAuthor; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - path?: Variable<"path"> | string; - since?: Variable<"since"> | unknown; - until?: Variable<"until"> | unknown; - }, - select: (t: CommitHistoryConnectionSelector) => T - ) => Field< - "history", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"author", Variable<"author"> | CommitAuthor>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"path", Variable<"path"> | string>, - Argument<"since", Variable<"since"> | unknown>, - Argument<"until", Variable<"until"> | unknown> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The Git commit message - */ - - readonly message: () => Field<"message">; - - /** - * @description The Git commit message body - */ - - readonly messageBody: () => Field<"messageBody">; - - /** - * @description The commit message body rendered to HTML. - */ - - readonly messageBodyHTML: () => Field<"messageBodyHTML">; - - /** - * @description The Git commit message headline - */ - - readonly messageHeadline: () => Field<"messageHeadline">; - - /** - * @description The commit message headline rendered to HTML. - */ - - readonly messageHeadlineHTML: () => Field<"messageHeadlineHTML">; - - /** - * @description The Git object ID - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The organization this commit was made on behalf of. - */ - - readonly onBehalfOf: >( - select: (t: OrganizationSelector) => T - ) => Field<"onBehalfOf", never, SelectionSet>; - - /** - * @description The parents of a commit. - */ - - readonly parents: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitConnectionSelector) => T - ) => Field< - "parents", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The datetime when this commit was pushed. - */ - - readonly pushedDate: () => Field<"pushedDate">; - - /** - * @description The Repository this commit belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this commit - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Commit signing information, if present. - */ - - readonly signature: >( - select: (t: GitSignatureSelector) => T - ) => Field<"signature", never, SelectionSet>; - - /** - * @description Status information for this commit - */ - - readonly status: >( - select: (t: StatusSelector) => T - ) => Field<"status", never, SelectionSet>; - - /** - * @description Check and Status rollup information for this commit. - */ - - readonly statusCheckRollup: >( - select: (t: StatusCheckRollupSelector) => T - ) => Field<"statusCheckRollup", never, SelectionSet>; - - /** - * @description Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. - */ - - readonly submodules: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: SubmoduleConnectionSelector) => T - ) => Field< - "submodules", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Returns a URL to download a tarball archive for a repository. -Note: For private repositories, these links are temporary and expire after five minutes. - */ - - readonly tarballUrl: () => Field<"tarballUrl">; - - /** - * @description Commit's root Tree - */ - - readonly tree: >( - select: (t: TreeSelector) => T - ) => Field<"tree", never, SelectionSet>; - - /** - * @description The HTTP path for the tree of this commit - */ - - readonly treeResourcePath: () => Field<"treeResourcePath">; - - /** - * @description The HTTP URL for the tree of this commit - */ - - readonly treeUrl: () => Field<"treeUrl">; - - /** - * @description The HTTP URL for this commit - */ - - readonly url: () => Field<"url">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; - - /** - * @description Returns a URL to download a zipball archive for a repository. -Note: For private repositories, these links are temporary and expire after five minutes. - */ - - readonly zipballUrl: () => Field<"zipballUrl">; -} - -export const isCommit = ( - object: Record -): object is Partial => { - return object.__typename === "Commit"; -}; - -export const Commit: CommitSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An abbreviated version of the Git object ID - */ - abbreviatedOid: () => new Field("abbreviatedOid"), - - /** - * @description The number of additions in this commit. - */ - additions: () => new Field("additions"), - - /** - * @description The pull requests associated with a commit - */ - - associatedPullRequests: (variables, select) => - new Field( - "associatedPullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description Authorship details of the commit. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(GitActor))), - - /** - * @description Check if the committer and the author match. - */ - authoredByCommitter: () => new Field("authoredByCommitter"), - - /** - * @description The datetime when this commit was authored. - */ - authoredDate: () => new Field("authoredDate"), - - /** - * @description The list of authors for this commit based on the git author and the Co-authored-by -message trailer. The git author will always be first. - */ - - authors: (variables, select) => - new Field( - "authors", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(GitActorConnection)) - ), - - /** - * @description Fetches `git blame` information. - */ - - blame: (variables, select) => - new Field( - "blame", - [new Argument("path", variables.path, _ENUM_VALUES)], - new SelectionSet(select(Blame)) - ), - - /** - * @description The number of changed files in this commit. - */ - changedFiles: () => new Field("changedFiles"), - - /** - * @description The check suites associated with a commit. - */ - - checkSuites: (variables, select) => - new Field( - "checkSuites", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CheckSuiteConnection)) - ), - - /** - * @description Comments made on the commit. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitCommentConnection)) - ), - - /** - * @description The HTTP path for this Git object - */ - commitResourcePath: () => new Field("commitResourcePath"), - - /** - * @description The HTTP URL for this Git object - */ - commitUrl: () => new Field("commitUrl"), - - /** - * @description The datetime when this commit was committed. - */ - committedDate: () => new Field("committedDate"), - - /** - * @description Check if commited via GitHub web UI. - */ - committedViaWeb: () => new Field("committedViaWeb"), - - /** - * @description Committership details of the commit. - */ - - committer: (select) => - new Field( - "committer", - undefined as never, - new SelectionSet(select(GitActor)) - ), - - /** - * @description The number of deletions in this commit. - */ - deletions: () => new Field("deletions"), - - /** - * @description The deployments associated with a commit. - */ - - deployments: (variables, select) => - new Field( - "deployments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("environments", variables.environments, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(DeploymentConnection)) - ), - - /** - * @description The tree entry representing the file located at the given path. - */ - - file: (variables, select) => - new Field( - "file", - [new Argument("path", variables.path, _ENUM_VALUES)], - new SelectionSet(select(TreeEntry)) - ), - - /** - * @description The linear commit history starting from (and including) this commit, in the same order as `git log`. - */ - - history: (variables, select) => - new Field( - "history", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("author", variables.author, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("path", variables.path, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - new Argument("until", variables.until, _ENUM_VALUES), - ], - new SelectionSet(select(CommitHistoryConnection)) - ), - - id: () => new Field("id"), - - /** - * @description The Git commit message - */ - message: () => new Field("message"), - - /** - * @description The Git commit message body - */ - messageBody: () => new Field("messageBody"), - - /** - * @description The commit message body rendered to HTML. - */ - messageBodyHTML: () => new Field("messageBodyHTML"), - - /** - * @description The Git commit message headline - */ - messageHeadline: () => new Field("messageHeadline"), - - /** - * @description The commit message headline rendered to HTML. - */ - messageHeadlineHTML: () => new Field("messageHeadlineHTML"), - - /** - * @description The Git object ID - */ - oid: () => new Field("oid"), - - /** - * @description The organization this commit was made on behalf of. - */ - - onBehalfOf: (select) => - new Field( - "onBehalfOf", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The parents of a commit. - */ - - parents: (variables, select) => - new Field( - "parents", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitConnection)) - ), - - /** - * @description The datetime when this commit was pushed. - */ - pushedDate: () => new Field("pushedDate"), - - /** - * @description The Repository this commit belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this commit - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Commit signing information, if present. - */ - - signature: (select) => - new Field( - "signature", - undefined as never, - new SelectionSet(select(GitSignature)) - ), - - /** - * @description Status information for this commit - */ - - status: (select) => - new Field("status", undefined as never, new SelectionSet(select(Status))), - - /** - * @description Check and Status rollup information for this commit. - */ - - statusCheckRollup: (select) => - new Field( - "statusCheckRollup", - undefined as never, - new SelectionSet(select(StatusCheckRollup)) - ), - - /** - * @description Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. - */ - - submodules: (variables, select) => - new Field( - "submodules", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(SubmoduleConnection)) - ), - - /** - * @description Returns a URL to download a tarball archive for a repository. -Note: For private repositories, these links are temporary and expire after five minutes. - */ - tarballUrl: () => new Field("tarballUrl"), - - /** - * @description Commit's root Tree - */ - - tree: (select) => - new Field("tree", undefined as never, new SelectionSet(select(Tree))), - - /** - * @description The HTTP path for the tree of this commit - */ - treeResourcePath: () => new Field("treeResourcePath"), - - /** - * @description The HTTP URL for the tree of this commit - */ - treeUrl: () => new Field("treeUrl"), - - /** - * @description The HTTP URL for this commit - */ - url: () => new Field("url"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), - - /** - * @description Returns a URL to download a zipball archive for a repository. -Note: For private repositories, these links are temporary and expire after five minutes. - */ - zipballUrl: () => new Field("zipballUrl"), -}; - -export interface ICommitComment - extends IComment, - IDeletable, - IMinimizable, - INode, - IReactable, - IRepositoryNode, - IUpdatable, - IUpdatableComment { - readonly __typename: "CommitComment"; - readonly commit: ICommit | null; - readonly path: string | null; - readonly position: number | null; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface CommitCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description Identifies the comment body. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the commit associated with the comment, if the commit exists. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Returns whether or not a comment has been minimized. - */ - - readonly isMinimized: () => Field<"isMinimized">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Returns why the comment was minimized. - */ - - readonly minimizedReason: () => Field<"minimizedReason">; - - /** - * @description Identifies the file path associated with the comment. - */ - - readonly path: () => Field<"path">; - - /** - * @description Identifies the line position associated with the comment. - */ - - readonly position: () => Field<"position">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path permalink for this commit comment. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL permalink for this commit comment. - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Check if the current viewer can minimize this object. - */ - - readonly viewerCanMinimize: () => Field<"viewerCanMinimize">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isCommitComment = ( - object: Record -): object is Partial => { - return object.__typename === "CommitComment"; -}; - -export const CommitComment: CommitCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description Identifies the comment body. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the commit associated with the comment, if the commit exists. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Returns whether or not a comment has been minimized. - */ - isMinimized: () => new Field("isMinimized"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Returns why the comment was minimized. - */ - minimizedReason: () => new Field("minimizedReason"), - - /** - * @description Identifies the file path associated with the comment. - */ - path: () => new Field("path"), - - /** - * @description Identifies the line position associated with the comment. - */ - position: () => new Field("position"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path permalink for this commit comment. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL permalink for this commit comment. - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Check if the current viewer can minimize this object. - */ - viewerCanMinimize: () => new Field("viewerCanMinimize"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface ICommitCommentConnection { - readonly __typename: "CommitCommentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CommitCommentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CommitCommentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CommitCommentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CommitCommentConnection: CommitCommentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CommitCommentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CommitComment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICommitCommentEdge { - readonly __typename: "CommitCommentEdge"; - readonly cursor: string; - readonly node: ICommitComment | null; -} - -interface CommitCommentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CommitCommentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CommitCommentEdge: CommitCommentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CommitComment)) - ), -}; - -export interface ICommitCommentThread extends INode, IRepositoryNode { - readonly __typename: "CommitCommentThread"; - readonly comments: ICommitCommentConnection; - readonly commit: ICommit | null; - readonly path: string | null; - readonly position: number | null; -} - -interface CommitCommentThreadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The comments that exist in this thread. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The commit the comments were made on. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The file the comments were made on. - */ - - readonly path: () => Field<"path">; - - /** - * @description The position in the diff for the commit that the comment was made on. - */ - - readonly position: () => Field<"position">; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const isCommitCommentThread = ( - object: Record -): object is Partial => { - return object.__typename === "CommitCommentThread"; -}; - -export const CommitCommentThread: CommitCommentThreadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The comments that exist in this thread. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitCommentConnection)) - ), - - /** - * @description The commit the comments were made on. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - id: () => new Field("id"), - - /** - * @description The file the comments were made on. - */ - path: () => new Field("path"), - - /** - * @description The position in the diff for the commit that the comment was made on. - */ - position: () => new Field("position"), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface ICommitConnection { - readonly __typename: "CommitConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CommitConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CommitEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CommitSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CommitConnection: CommitConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CommitEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICommitContributionsByRepository { - readonly __typename: "CommitContributionsByRepository"; - readonly contributions: ICreatedCommitContributionConnection; - readonly repository: IRepository; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface CommitContributionsByRepositorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The commit contributions, each representing a day. - */ - - readonly contributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | CommitContributionOrder; - }, - select: (t: CreatedCommitContributionConnectionSelector) => T - ) => Field< - "contributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | CommitContributionOrder> - ], - SelectionSet - >; - - /** - * @description The repository in which the commits were made. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for the user's commits to the repository in this time range. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for the user's commits to the repository in this time range. - */ - - readonly url: () => Field<"url">; -} - -export const CommitContributionsByRepository: CommitContributionsByRepositorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The commit contributions, each representing a day. - */ - - contributions: (variables, select) => - new Field( - "contributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedCommitContributionConnection)) - ), - - /** - * @description The repository in which the commits were made. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for the user's commits to the repository in this time range. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for the user's commits to the repository in this time range. - */ - url: () => new Field("url"), -}; - -export interface ICommitEdge { - readonly __typename: "CommitEdge"; - readonly cursor: string; - readonly node: ICommit | null; -} - -interface CommitEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CommitSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CommitEdge: CommitEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Commit))), -}; - -export interface ICommitHistoryConnection { - readonly __typename: "CommitHistoryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CommitHistoryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CommitEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CommitSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CommitHistoryConnection: CommitHistoryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CommitEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IConnectedEvent extends INode { - readonly __typename: "ConnectedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly isCrossRepository: boolean; - readonly source: IReferencedSubject; - readonly subject: IReferencedSubject; -} - -interface ConnectedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Reference originated in a different repository. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; - - /** - * @description Issue or pull request that made the reference. - */ - - readonly source: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"source", never, SelectionSet>; - - /** - * @description Issue or pull request which was connected. - */ - - readonly subject: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isConnectedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ConnectedEvent"; -}; - -export const ConnectedEvent: ConnectedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Reference originated in a different repository. - */ - isCrossRepository: () => new Field("isCrossRepository"), - - /** - * @description Issue or pull request that made the reference. - */ - - source: (select) => - new Field( - "source", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), - - /** - * @description Issue or pull request which was connected. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), -}; - -export interface IContribution { - readonly __typename: string; - readonly isRestricted: boolean; - readonly occurredAt: unknown; - readonly resourcePath: unknown; - readonly url: unknown; - readonly user: IUser; -} - -interface ContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - readonly on: < - T extends Array, - F extends - | "CreatedCommitContribution" - | "CreatedIssueContribution" - | "CreatedPullRequestContribution" - | "CreatedPullRequestReviewContribution" - | "CreatedRepositoryContribution" - | "JoinedGitHubContribution" - | "RestrictedContribution" - >( - type: F, - select: ( - t: F extends "CreatedCommitContribution" - ? CreatedCommitContributionSelector - : F extends "CreatedIssueContribution" - ? CreatedIssueContributionSelector - : F extends "CreatedPullRequestContribution" - ? CreatedPullRequestContributionSelector - : F extends "CreatedPullRequestReviewContribution" - ? CreatedPullRequestReviewContributionSelector - : F extends "CreatedRepositoryContribution" - ? CreatedRepositoryContributionSelector - : F extends "JoinedGitHubContribution" - ? JoinedGitHubContributionSelector - : F extends "RestrictedContribution" - ? RestrictedContributionSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Contribution: ContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - on: (type, select) => { - switch (type) { - case "CreatedCommitContribution": { - return new InlineFragment( - new NamedType("CreatedCommitContribution") as any, - new SelectionSet(select(CreatedCommitContribution as any)) - ); - } - - case "CreatedIssueContribution": { - return new InlineFragment( - new NamedType("CreatedIssueContribution") as any, - new SelectionSet(select(CreatedIssueContribution as any)) - ); - } - - case "CreatedPullRequestContribution": { - return new InlineFragment( - new NamedType("CreatedPullRequestContribution") as any, - new SelectionSet(select(CreatedPullRequestContribution as any)) - ); - } - - case "CreatedPullRequestReviewContribution": { - return new InlineFragment( - new NamedType("CreatedPullRequestReviewContribution") as any, - new SelectionSet(select(CreatedPullRequestReviewContribution as any)) - ); - } - - case "CreatedRepositoryContribution": { - return new InlineFragment( - new NamedType("CreatedRepositoryContribution") as any, - new SelectionSet(select(CreatedRepositoryContribution as any)) - ); - } - - case "JoinedGitHubContribution": { - return new InlineFragment( - new NamedType("JoinedGitHubContribution") as any, - new SelectionSet(select(JoinedGitHubContribution as any)) - ); - } - - case "RestrictedContribution": { - return new InlineFragment( - new NamedType("RestrictedContribution") as any, - new SelectionSet(select(RestrictedContribution as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Contribution", - }); - } - }, -}; - -export interface IContributionCalendar { - readonly __typename: "ContributionCalendar"; - readonly colors: ReadonlyArray; - readonly isHalloween: boolean; - readonly months: ReadonlyArray; - readonly totalContributions: number; - readonly weeks: ReadonlyArray; -} - -interface ContributionCalendarSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. - */ - - readonly colors: () => Field<"colors">; - - /** - * @description Determine if the color set was chosen because it's currently Halloween. - */ - - readonly isHalloween: () => Field<"isHalloween">; - - /** - * @description A list of the months of contributions in this calendar. - */ - - readonly months: >( - select: (t: ContributionCalendarMonthSelector) => T - ) => Field<"months", never, SelectionSet>; - - /** - * @description The count of total contributions in the calendar. - */ - - readonly totalContributions: () => Field<"totalContributions">; - - /** - * @description A list of the weeks of contributions in this calendar. - */ - - readonly weeks: >( - select: (t: ContributionCalendarWeekSelector) => T - ) => Field<"weeks", never, SelectionSet>; -} - -export const ContributionCalendar: ContributionCalendarSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. - */ - colors: () => new Field("colors"), - - /** - * @description Determine if the color set was chosen because it's currently Halloween. - */ - isHalloween: () => new Field("isHalloween"), - - /** - * @description A list of the months of contributions in this calendar. - */ - - months: (select) => - new Field( - "months", - undefined as never, - new SelectionSet(select(ContributionCalendarMonth)) - ), - - /** - * @description The count of total contributions in the calendar. - */ - totalContributions: () => new Field("totalContributions"), - - /** - * @description A list of the weeks of contributions in this calendar. - */ - - weeks: (select) => - new Field( - "weeks", - undefined as never, - new SelectionSet(select(ContributionCalendarWeek)) - ), -}; - -export interface IContributionCalendarDay { - readonly __typename: "ContributionCalendarDay"; - readonly color: string; - readonly contributionCount: number; - readonly date: unknown; - readonly weekday: number; -} - -interface ContributionCalendarDaySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The hex color code that represents how many contributions were made on this day compared to others in the calendar. - */ - - readonly color: () => Field<"color">; - - /** - * @description How many contributions were made by the user on this day. - */ - - readonly contributionCount: () => Field<"contributionCount">; - - /** - * @description The day this square represents. - */ - - readonly date: () => Field<"date">; - - /** - * @description A number representing which day of the week this square represents, e.g., 1 is Monday. - */ - - readonly weekday: () => Field<"weekday">; -} - -export const ContributionCalendarDay: ContributionCalendarDaySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The hex color code that represents how many contributions were made on this day compared to others in the calendar. - */ - color: () => new Field("color"), - - /** - * @description How many contributions were made by the user on this day. - */ - contributionCount: () => new Field("contributionCount"), - - /** - * @description The day this square represents. - */ - date: () => new Field("date"), - - /** - * @description A number representing which day of the week this square represents, e.g., 1 is Monday. - */ - weekday: () => new Field("weekday"), -}; - -export interface IContributionCalendarMonth { - readonly __typename: "ContributionCalendarMonth"; - readonly firstDay: unknown; - readonly name: string; - readonly totalWeeks: number; - readonly year: number; -} - -interface ContributionCalendarMonthSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The date of the first day of this month. - */ - - readonly firstDay: () => Field<"firstDay">; - - /** - * @description The name of the month. - */ - - readonly name: () => Field<"name">; - - /** - * @description How many weeks started in this month. - */ - - readonly totalWeeks: () => Field<"totalWeeks">; - - /** - * @description The year the month occurred in. - */ - - readonly year: () => Field<"year">; -} - -export const ContributionCalendarMonth: ContributionCalendarMonthSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The date of the first day of this month. - */ - firstDay: () => new Field("firstDay"), - - /** - * @description The name of the month. - */ - name: () => new Field("name"), - - /** - * @description How many weeks started in this month. - */ - totalWeeks: () => new Field("totalWeeks"), - - /** - * @description The year the month occurred in. - */ - year: () => new Field("year"), -}; - -export interface IContributionCalendarWeek { - readonly __typename: "ContributionCalendarWeek"; - readonly contributionDays: ReadonlyArray; - readonly firstDay: unknown; -} - -interface ContributionCalendarWeekSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The days of contributions in this week. - */ - - readonly contributionDays: >( - select: (t: ContributionCalendarDaySelector) => T - ) => Field<"contributionDays", never, SelectionSet>; - - /** - * @description The date of the earliest square in this week. - */ - - readonly firstDay: () => Field<"firstDay">; -} - -export const ContributionCalendarWeek: ContributionCalendarWeekSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The days of contributions in this week. - */ - - contributionDays: (select) => - new Field( - "contributionDays", - undefined as never, - new SelectionSet(select(ContributionCalendarDay)) - ), - - /** - * @description The date of the earliest square in this week. - */ - firstDay: () => new Field("firstDay"), -}; - -export interface IContributionsCollection { - readonly __typename: "ContributionsCollection"; - readonly commitContributionsByRepository: ReadonlyArray; - readonly contributionCalendar: IContributionCalendar; - readonly contributionYears: ReadonlyArray; - readonly doesEndInCurrentMonth: boolean; - readonly earliestRestrictedContributionDate: unknown | null; - readonly endedAt: unknown; - readonly firstIssueContribution: ICreatedIssueOrRestrictedContribution | null; - readonly firstPullRequestContribution: ICreatedPullRequestOrRestrictedContribution | null; - readonly firstRepositoryContribution: ICreatedRepositoryOrRestrictedContribution | null; - readonly hasActivityInThePast: boolean; - readonly hasAnyContributions: boolean; - readonly hasAnyRestrictedContributions: boolean; - readonly isSingleDay: boolean; - readonly issueContributions: ICreatedIssueContributionConnection; - readonly issueContributionsByRepository: ReadonlyArray; - readonly joinedGitHubContribution: IJoinedGitHubContribution | null; - readonly latestRestrictedContributionDate: unknown | null; - readonly mostRecentCollectionWithActivity: IContributionsCollection | null; - readonly mostRecentCollectionWithoutActivity: IContributionsCollection | null; - readonly popularIssueContribution: ICreatedIssueContribution | null; - readonly popularPullRequestContribution: ICreatedPullRequestContribution | null; - readonly pullRequestContributions: ICreatedPullRequestContributionConnection; - readonly pullRequestContributionsByRepository: ReadonlyArray; - readonly pullRequestReviewContributions: ICreatedPullRequestReviewContributionConnection; - readonly pullRequestReviewContributionsByRepository: ReadonlyArray; - readonly repositoryContributions: ICreatedRepositoryContributionConnection; - readonly restrictedContributionsCount: number; - readonly startedAt: unknown; - readonly totalCommitContributions: number; - readonly totalIssueContributions: number; - readonly totalPullRequestContributions: number; - readonly totalPullRequestReviewContributions: number; - readonly totalRepositoriesWithContributedCommits: number; - readonly totalRepositoriesWithContributedIssues: number; - readonly totalRepositoriesWithContributedPullRequestReviews: number; - readonly totalRepositoriesWithContributedPullRequests: number; - readonly totalRepositoryContributions: number; - readonly user: IUser; -} - -interface ContributionsCollectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Commit contributions made by the user, grouped by repository. - */ - - readonly commitContributionsByRepository: >( - variables: { maxRepositories?: Variable<"maxRepositories"> | number }, - select: (t: CommitContributionsByRepositorySelector) => T - ) => Field< - "commitContributionsByRepository", - [Argument<"maxRepositories", Variable<"maxRepositories"> | number>], - SelectionSet - >; - - /** - * @description A calendar of this user's contributions on GitHub. - */ - - readonly contributionCalendar: >( - select: (t: ContributionCalendarSelector) => T - ) => Field<"contributionCalendar", never, SelectionSet>; - - /** - * @description The years the user has been making contributions with the most recent year first. - */ - - readonly contributionYears: () => Field<"contributionYears">; - - /** - * @description Determine if this collection's time span ends in the current month. - */ - - readonly doesEndInCurrentMonth: () => Field<"doesEndInCurrentMonth">; - - /** - * @description The date of the first restricted contribution the user made in this time -period. Can only be non-null when the user has enabled private contribution counts. - */ - - readonly earliestRestrictedContributionDate: () => Field<"earliestRestrictedContributionDate">; - - /** - * @description The ending date and time of this collection. - */ - - readonly endedAt: () => Field<"endedAt">; - - /** - * @description The first issue the user opened on GitHub. This will be null if that issue was -opened outside the collection's time range and ignoreTimeRange is false. If -the issue is not visible but the user has opted to show private contributions, -a RestrictedContribution will be returned. - */ - - readonly firstIssueContribution: >( - select: (t: CreatedIssueOrRestrictedContributionSelector) => T - ) => Field<"firstIssueContribution", never, SelectionSet>; - - /** - * @description The first pull request the user opened on GitHub. This will be null if that -pull request was opened outside the collection's time range and -ignoreTimeRange is not true. If the pull request is not visible but the user -has opted to show private contributions, a RestrictedContribution will be returned. - */ - - readonly firstPullRequestContribution: >( - select: (t: CreatedPullRequestOrRestrictedContributionSelector) => T - ) => Field<"firstPullRequestContribution", never, SelectionSet>; - - /** - * @description The first repository the user created on GitHub. This will be null if that -first repository was created outside the collection's time range and -ignoreTimeRange is false. If the repository is not visible, then a -RestrictedContribution is returned. - */ - - readonly firstRepositoryContribution: >( - select: (t: CreatedRepositoryOrRestrictedContributionSelector) => T - ) => Field<"firstRepositoryContribution", never, SelectionSet>; - - /** - * @description Does the user have any more activity in the timeline that occurred prior to the collection's time range? - */ - - readonly hasActivityInThePast: () => Field<"hasActivityInThePast">; - - /** - * @description Determine if there are any contributions in this collection. - */ - - readonly hasAnyContributions: () => Field<"hasAnyContributions">; - - /** - * @description Determine if the user made any contributions in this time frame whose details -are not visible because they were made in a private repository. Can only be -true if the user enabled private contribution counts. - */ - - readonly hasAnyRestrictedContributions: () => Field<"hasAnyRestrictedContributions">; - - /** - * @description Whether or not the collector's time span is all within the same day. - */ - - readonly isSingleDay: () => Field<"isSingleDay">; - - /** - * @description A list of issues the user opened. - */ - - readonly issueContributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedIssueContributionConnectionSelector) => T - ) => Field< - "issueContributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description Issue contributions made by the user, grouped by repository. - */ - - readonly issueContributionsByRepository: >( - variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - maxRepositories?: Variable<"maxRepositories"> | number; - }, - select: (t: IssueContributionsByRepositorySelector) => T - ) => Field< - "issueContributionsByRepository", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean>, - Argument<"maxRepositories", Variable<"maxRepositories"> | number> - ], - SelectionSet - >; - - /** - * @description When the user signed up for GitHub. This will be null if that sign up date -falls outside the collection's time range and ignoreTimeRange is false. - */ - - readonly joinedGitHubContribution: >( - select: (t: JoinedGitHubContributionSelector) => T - ) => Field<"joinedGitHubContribution", never, SelectionSet>; - - /** - * @description The date of the most recent restricted contribution the user made in this time -period. Can only be non-null when the user has enabled private contribution counts. - */ - - readonly latestRestrictedContributionDate: () => Field<"latestRestrictedContributionDate">; - - /** - * @description When this collection's time range does not include any activity from the user, use this -to get a different collection from an earlier time range that does have activity. - */ - - readonly mostRecentCollectionWithActivity: >( - select: (t: ContributionsCollectionSelector) => T - ) => Field<"mostRecentCollectionWithActivity", never, SelectionSet>; - - /** - * @description Returns a different contributions collection from an earlier time range than this one -that does not have any contributions. - */ - - readonly mostRecentCollectionWithoutActivity: >( - select: (t: ContributionsCollectionSelector) => T - ) => Field<"mostRecentCollectionWithoutActivity", never, SelectionSet>; - - /** - * @description The issue the user opened on GitHub that received the most comments in the specified -time frame. - */ - - readonly popularIssueContribution: >( - select: (t: CreatedIssueContributionSelector) => T - ) => Field<"popularIssueContribution", never, SelectionSet>; - - /** - * @description The pull request the user opened on GitHub that received the most comments in the -specified time frame. - */ - - readonly popularPullRequestContribution: >( - select: (t: CreatedPullRequestContributionSelector) => T - ) => Field<"popularPullRequestContribution", never, SelectionSet>; - - /** - * @description Pull request contributions made by the user. - */ - - readonly pullRequestContributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedPullRequestContributionConnectionSelector) => T - ) => Field< - "pullRequestContributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description Pull request contributions made by the user, grouped by repository. - */ - - readonly pullRequestContributionsByRepository: >( - variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - maxRepositories?: Variable<"maxRepositories"> | number; - }, - select: (t: PullRequestContributionsByRepositorySelector) => T - ) => Field< - "pullRequestContributionsByRepository", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean>, - Argument<"maxRepositories", Variable<"maxRepositories"> | number> - ], - SelectionSet - >; - - /** - * @description Pull request review contributions made by the user. - */ - - readonly pullRequestReviewContributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedPullRequestReviewContributionConnectionSelector) => T - ) => Field< - "pullRequestReviewContributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description Pull request review contributions made by the user, grouped by repository. - */ - - readonly pullRequestReviewContributionsByRepository: < - T extends Array - >( - variables: { maxRepositories?: Variable<"maxRepositories"> | number }, - select: (t: PullRequestReviewContributionsByRepositorySelector) => T - ) => Field< - "pullRequestReviewContributionsByRepository", - [Argument<"maxRepositories", Variable<"maxRepositories"> | number>], - SelectionSet - >; - - /** - * @description A list of repositories owned by the user that the user created in this time range. - */ - - readonly repositoryContributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - excludeFirst?: Variable<"excludeFirst"> | boolean; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedRepositoryContributionConnectionSelector) => T - ) => Field< - "repositoryContributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description A count of contributions made by the user that the viewer cannot access. Only -non-zero when the user has chosen to share their private contribution counts. - */ - - readonly restrictedContributionsCount: () => Field<"restrictedContributionsCount">; - - /** - * @description The beginning date and time of this collection. - */ - - readonly startedAt: () => Field<"startedAt">; - - /** - * @description How many commits were made by the user in this time span. - */ - - readonly totalCommitContributions: () => Field<"totalCommitContributions">; - - /** - * @description How many issues the user opened. - */ - - readonly totalIssueContributions: (variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - }) => Field< - "totalIssueContributions", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean> - ] - >; - - /** - * @description How many pull requests the user opened. - */ - - readonly totalPullRequestContributions: (variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - }) => Field< - "totalPullRequestContributions", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean> - ] - >; - - /** - * @description How many pull request reviews the user left. - */ - - readonly totalPullRequestReviewContributions: () => Field<"totalPullRequestReviewContributions">; - - /** - * @description How many different repositories the user committed to. - */ - - readonly totalRepositoriesWithContributedCommits: () => Field<"totalRepositoriesWithContributedCommits">; - - /** - * @description How many different repositories the user opened issues in. - */ - - readonly totalRepositoriesWithContributedIssues: (variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - }) => Field< - "totalRepositoriesWithContributedIssues", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean> - ] - >; - - /** - * @description How many different repositories the user left pull request reviews in. - */ - - readonly totalRepositoriesWithContributedPullRequestReviews: () => Field<"totalRepositoriesWithContributedPullRequestReviews">; - - /** - * @description How many different repositories the user opened pull requests in. - */ - - readonly totalRepositoriesWithContributedPullRequests: (variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - excludePopular?: Variable<"excludePopular"> | boolean; - }) => Field< - "totalRepositoriesWithContributedPullRequests", - [ - Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>, - Argument<"excludePopular", Variable<"excludePopular"> | boolean> - ] - >; - - /** - * @description How many repositories the user created. - */ - - readonly totalRepositoryContributions: (variables: { - excludeFirst?: Variable<"excludeFirst"> | boolean; - }) => Field< - "totalRepositoryContributions", - [Argument<"excludeFirst", Variable<"excludeFirst"> | boolean>] - >; - - /** - * @description The user who made the contributions in this collection. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const ContributionsCollection: ContributionsCollectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Commit contributions made by the user, grouped by repository. - */ - - commitContributionsByRepository: (variables, select) => - new Field( - "commitContributionsByRepository", - [ - new Argument( - "maxRepositories", - variables.maxRepositories, - _ENUM_VALUES - ), - ], - new SelectionSet(select(CommitContributionsByRepository)) - ), - - /** - * @description A calendar of this user's contributions on GitHub. - */ - - contributionCalendar: (select) => - new Field( - "contributionCalendar", - undefined as never, - new SelectionSet(select(ContributionCalendar)) - ), - - /** - * @description The years the user has been making contributions with the most recent year first. - */ - contributionYears: () => new Field("contributionYears"), - - /** - * @description Determine if this collection's time span ends in the current month. - */ - doesEndInCurrentMonth: () => new Field("doesEndInCurrentMonth"), - - /** - * @description The date of the first restricted contribution the user made in this time -period. Can only be non-null when the user has enabled private contribution counts. - */ - earliestRestrictedContributionDate: () => - new Field("earliestRestrictedContributionDate"), - - /** - * @description The ending date and time of this collection. - */ - endedAt: () => new Field("endedAt"), - - /** - * @description The first issue the user opened on GitHub. This will be null if that issue was -opened outside the collection's time range and ignoreTimeRange is false. If -the issue is not visible but the user has opted to show private contributions, -a RestrictedContribution will be returned. - */ - - firstIssueContribution: (select) => - new Field( - "firstIssueContribution", - undefined as never, - new SelectionSet(select(CreatedIssueOrRestrictedContribution)) - ), - - /** - * @description The first pull request the user opened on GitHub. This will be null if that -pull request was opened outside the collection's time range and -ignoreTimeRange is not true. If the pull request is not visible but the user -has opted to show private contributions, a RestrictedContribution will be returned. - */ - - firstPullRequestContribution: (select) => - new Field( - "firstPullRequestContribution", - undefined as never, - new SelectionSet(select(CreatedPullRequestOrRestrictedContribution)) - ), - - /** - * @description The first repository the user created on GitHub. This will be null if that -first repository was created outside the collection's time range and -ignoreTimeRange is false. If the repository is not visible, then a -RestrictedContribution is returned. - */ - - firstRepositoryContribution: (select) => - new Field( - "firstRepositoryContribution", - undefined as never, - new SelectionSet(select(CreatedRepositoryOrRestrictedContribution)) - ), - - /** - * @description Does the user have any more activity in the timeline that occurred prior to the collection's time range? - */ - hasActivityInThePast: () => new Field("hasActivityInThePast"), - - /** - * @description Determine if there are any contributions in this collection. - */ - hasAnyContributions: () => new Field("hasAnyContributions"), - - /** - * @description Determine if the user made any contributions in this time frame whose details -are not visible because they were made in a private repository. Can only be -true if the user enabled private contribution counts. - */ - hasAnyRestrictedContributions: () => - new Field("hasAnyRestrictedContributions"), - - /** - * @description Whether or not the collector's time span is all within the same day. - */ - isSingleDay: () => new Field("isSingleDay"), - - /** - * @description A list of issues the user opened. - */ - - issueContributions: (variables, select) => - new Field( - "issueContributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("excludeFirst", variables.excludeFirst, _ENUM_VALUES), - new Argument("excludePopular", variables.excludePopular, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedIssueContributionConnection)) - ), - - /** - * @description Issue contributions made by the user, grouped by repository. - */ - - issueContributionsByRepository: (variables, select) => - new Field( - "issueContributionsByRepository", - [ - new Argument("excludeFirst", variables.excludeFirst, _ENUM_VALUES), - new Argument("excludePopular", variables.excludePopular, _ENUM_VALUES), - new Argument( - "maxRepositories", - variables.maxRepositories, - _ENUM_VALUES - ), - ], - new SelectionSet(select(IssueContributionsByRepository)) - ), - - /** - * @description When the user signed up for GitHub. This will be null if that sign up date -falls outside the collection's time range and ignoreTimeRange is false. - */ - - joinedGitHubContribution: (select) => - new Field( - "joinedGitHubContribution", - undefined as never, - new SelectionSet(select(JoinedGitHubContribution)) - ), - - /** - * @description The date of the most recent restricted contribution the user made in this time -period. Can only be non-null when the user has enabled private contribution counts. - */ - latestRestrictedContributionDate: () => - new Field("latestRestrictedContributionDate"), - - /** - * @description When this collection's time range does not include any activity from the user, use this -to get a different collection from an earlier time range that does have activity. - */ - - mostRecentCollectionWithActivity: (select) => - new Field( - "mostRecentCollectionWithActivity", - undefined as never, - new SelectionSet(select(ContributionsCollection)) - ), - - /** - * @description Returns a different contributions collection from an earlier time range than this one -that does not have any contributions. - */ - - mostRecentCollectionWithoutActivity: (select) => - new Field( - "mostRecentCollectionWithoutActivity", - undefined as never, - new SelectionSet(select(ContributionsCollection)) - ), - - /** - * @description The issue the user opened on GitHub that received the most comments in the specified -time frame. - */ - - popularIssueContribution: (select) => - new Field( - "popularIssueContribution", - undefined as never, - new SelectionSet(select(CreatedIssueContribution)) - ), - - /** - * @description The pull request the user opened on GitHub that received the most comments in the -specified time frame. - */ - - popularPullRequestContribution: (select) => - new Field( - "popularPullRequestContribution", - undefined as never, - new SelectionSet(select(CreatedPullRequestContribution)) - ), - - /** - * @description Pull request contributions made by the user. - */ - - pullRequestContributions: (variables, select) => - new Field( - "pullRequestContributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("excludeFirst", variables.excludeFirst, _ENUM_VALUES), - new Argument("excludePopular", variables.excludePopular, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedPullRequestContributionConnection)) - ), - - /** - * @description Pull request contributions made by the user, grouped by repository. - */ - - pullRequestContributionsByRepository: (variables, select) => - new Field( - "pullRequestContributionsByRepository", - [ - new Argument("excludeFirst", variables.excludeFirst, _ENUM_VALUES), - new Argument("excludePopular", variables.excludePopular, _ENUM_VALUES), - new Argument( - "maxRepositories", - variables.maxRepositories, - _ENUM_VALUES - ), - ], - new SelectionSet(select(PullRequestContributionsByRepository)) - ), - - /** - * @description Pull request review contributions made by the user. - */ - - pullRequestReviewContributions: (variables, select) => - new Field( - "pullRequestReviewContributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedPullRequestReviewContributionConnection)) - ), - - /** - * @description Pull request review contributions made by the user, grouped by repository. - */ - - pullRequestReviewContributionsByRepository: (variables, select) => - new Field( - "pullRequestReviewContributionsByRepository", - [ - new Argument( - "maxRepositories", - variables.maxRepositories, - _ENUM_VALUES - ), - ], - new SelectionSet(select(PullRequestReviewContributionsByRepository)) - ), - - /** - * @description A list of repositories owned by the user that the user created in this time range. - */ - - repositoryContributions: (variables, select) => - new Field( - "repositoryContributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("excludeFirst", variables.excludeFirst, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedRepositoryContributionConnection)) - ), - - /** - * @description A count of contributions made by the user that the viewer cannot access. Only -non-zero when the user has chosen to share their private contribution counts. - */ - restrictedContributionsCount: () => new Field("restrictedContributionsCount"), - - /** - * @description The beginning date and time of this collection. - */ - startedAt: () => new Field("startedAt"), - - /** - * @description How many commits were made by the user in this time span. - */ - totalCommitContributions: () => new Field("totalCommitContributions"), - - /** - * @description How many issues the user opened. - */ - totalIssueContributions: (variables) => new Field("totalIssueContributions"), - - /** - * @description How many pull requests the user opened. - */ - totalPullRequestContributions: (variables) => - new Field("totalPullRequestContributions"), - - /** - * @description How many pull request reviews the user left. - */ - totalPullRequestReviewContributions: () => - new Field("totalPullRequestReviewContributions"), - - /** - * @description How many different repositories the user committed to. - */ - totalRepositoriesWithContributedCommits: () => - new Field("totalRepositoriesWithContributedCommits"), - - /** - * @description How many different repositories the user opened issues in. - */ - totalRepositoriesWithContributedIssues: (variables) => - new Field("totalRepositoriesWithContributedIssues"), - - /** - * @description How many different repositories the user left pull request reviews in. - */ - totalRepositoriesWithContributedPullRequestReviews: () => - new Field("totalRepositoriesWithContributedPullRequestReviews"), - - /** - * @description How many different repositories the user opened pull requests in. - */ - totalRepositoriesWithContributedPullRequests: (variables) => - new Field("totalRepositoriesWithContributedPullRequests"), - - /** - * @description How many repositories the user created. - */ - totalRepositoryContributions: (variables) => - new Field("totalRepositoryContributions"), - - /** - * @description The user who made the contributions in this collection. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IConvertProjectCardNoteToIssuePayload { - readonly __typename: "ConvertProjectCardNoteToIssuePayload"; - readonly clientMutationId: string | null; - readonly projectCard: IProjectCard | null; -} - -interface ConvertProjectCardNoteToIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated ProjectCard. - */ - - readonly projectCard: >( - select: (t: ProjectCardSelector) => T - ) => Field<"projectCard", never, SelectionSet>; -} - -export const ConvertProjectCardNoteToIssuePayload: ConvertProjectCardNoteToIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated ProjectCard. - */ - - projectCard: (select) => - new Field( - "projectCard", - undefined as never, - new SelectionSet(select(ProjectCard)) - ), -}; - -export interface IConvertToDraftEvent extends INode, IUniformResourceLocatable { - readonly __typename: "ConvertToDraftEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; -} - -interface ConvertToDraftEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The HTTP path for this convert to draft event. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this convert to draft event. - */ - - readonly url: () => Field<"url">; -} - -export const isConvertToDraftEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ConvertToDraftEvent"; -}; - -export const ConvertToDraftEvent: ConvertToDraftEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The HTTP path for this convert to draft event. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this convert to draft event. - */ - url: () => new Field("url"), -}; - -export interface IConvertedNoteToIssueEvent extends INode { - readonly __typename: "ConvertedNoteToIssueEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; -} - -interface ConvertedNoteToIssueEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; -} - -export const isConvertedNoteToIssueEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ConvertedNoteToIssueEvent"; -}; - -export const ConvertedNoteToIssueEvent: ConvertedNoteToIssueEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), -}; - -export interface ICreateBranchProtectionRulePayload { - readonly __typename: "CreateBranchProtectionRulePayload"; - readonly branchProtectionRule: IBranchProtectionRule | null; - readonly clientMutationId: string | null; -} - -interface CreateBranchProtectionRulePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The newly created BranchProtectionRule. - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const CreateBranchProtectionRulePayload: CreateBranchProtectionRulePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The newly created BranchProtectionRule. - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface ICreateCheckRunPayload { - readonly __typename: "CreateCheckRunPayload"; - readonly checkRun: ICheckRun | null; - readonly clientMutationId: string | null; -} - -interface CreateCheckRunPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The newly created check run. - */ - - readonly checkRun: >( - select: (t: CheckRunSelector) => T - ) => Field<"checkRun", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const CreateCheckRunPayload: CreateCheckRunPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The newly created check run. - */ - - checkRun: (select) => - new Field( - "checkRun", - undefined as never, - new SelectionSet(select(CheckRun)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface ICreateCheckSuitePayload { - readonly __typename: "CreateCheckSuitePayload"; - readonly checkSuite: ICheckSuite | null; - readonly clientMutationId: string | null; -} - -interface CreateCheckSuitePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The newly created check suite. - */ - - readonly checkSuite: >( - select: (t: CheckSuiteSelector) => T - ) => Field<"checkSuite", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const CreateCheckSuitePayload: CreateCheckSuitePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The newly created check suite. - */ - - checkSuite: (select) => - new Field( - "checkSuite", - undefined as never, - new SelectionSet(select(CheckSuite)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface ICreateEnterpriseOrganizationPayload { - readonly __typename: "CreateEnterpriseOrganizationPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly organization: IOrganization | null; -} - -interface CreateEnterpriseOrganizationPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise that owns the created organization. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description The organization that was created. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; -} - -export const CreateEnterpriseOrganizationPayload: CreateEnterpriseOrganizationPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise that owns the created organization. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description The organization that was created. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), -}; - -export interface ICreateIpAllowListEntryPayload { - readonly __typename: "CreateIpAllowListEntryPayload"; - readonly clientMutationId: string | null; - readonly ipAllowListEntry: IIpAllowListEntry | null; -} - -interface CreateIpAllowListEntryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The IP allow list entry that was created. - */ - - readonly ipAllowListEntry: >( - select: (t: IpAllowListEntrySelector) => T - ) => Field<"ipAllowListEntry", never, SelectionSet>; -} - -export const CreateIpAllowListEntryPayload: CreateIpAllowListEntryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The IP allow list entry that was created. - */ - - ipAllowListEntry: (select) => - new Field( - "ipAllowListEntry", - undefined as never, - new SelectionSet(select(IpAllowListEntry)) - ), -}; - -export interface ICreateIssuePayload { - readonly __typename: "CreateIssuePayload"; - readonly clientMutationId: string | null; - readonly issue: IIssue | null; -} - -interface CreateIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new issue. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const CreateIssuePayload: CreateIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new issue. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface ICreateProjectPayload { - readonly __typename: "CreateProjectPayload"; - readonly clientMutationId: string | null; - readonly project: IProject | null; -} - -interface CreateProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new project. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; -} - -export const CreateProjectPayload: CreateProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new project. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), -}; - -export interface ICreatePullRequestPayload { - readonly __typename: "CreatePullRequestPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface CreatePullRequestPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new pull request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const CreatePullRequestPayload: CreatePullRequestPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new pull request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface ICreateRefPayload { - readonly __typename: "CreateRefPayload"; - readonly clientMutationId: string | null; - readonly ref: IRef | null; -} - -interface CreateRefPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The newly created ref. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const CreateRefPayload: CreateRefPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The newly created ref. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface ICreateRepositoryPayload { - readonly __typename: "CreateRepositoryPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface CreateRepositoryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const CreateRepositoryPayload: CreateRepositoryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface ICreateTeamDiscussionCommentPayload { - readonly __typename: "CreateTeamDiscussionCommentPayload"; - readonly clientMutationId: string | null; - readonly teamDiscussionComment: ITeamDiscussionComment | null; -} - -interface CreateTeamDiscussionCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new comment. - */ - - readonly teamDiscussionComment: >( - select: (t: TeamDiscussionCommentSelector) => T - ) => Field<"teamDiscussionComment", never, SelectionSet>; -} - -export const CreateTeamDiscussionCommentPayload: CreateTeamDiscussionCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new comment. - */ - - teamDiscussionComment: (select) => - new Field( - "teamDiscussionComment", - undefined as never, - new SelectionSet(select(TeamDiscussionComment)) - ), -}; - -export interface ICreateTeamDiscussionPayload { - readonly __typename: "CreateTeamDiscussionPayload"; - readonly clientMutationId: string | null; - readonly teamDiscussion: ITeamDiscussion | null; -} - -interface CreateTeamDiscussionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new discussion. - */ - - readonly teamDiscussion: >( - select: (t: TeamDiscussionSelector) => T - ) => Field<"teamDiscussion", never, SelectionSet>; -} - -export const CreateTeamDiscussionPayload: CreateTeamDiscussionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new discussion. - */ - - teamDiscussion: (select) => - new Field( - "teamDiscussion", - undefined as never, - new SelectionSet(select(TeamDiscussion)) - ), -}; - -export interface ICreatedCommitContribution extends IContribution { - readonly __typename: "CreatedCommitContribution"; - readonly commitCount: number; - readonly repository: IRepository; -} - -interface CreatedCommitContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description How many commits were made on this day to this repository by the user. - */ - - readonly commitCount: () => Field<"commitCount">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The repository the user made a commit in. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isCreatedCommitContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedCommitContribution"; -}; - -export const CreatedCommitContribution: CreatedCommitContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description How many commits were made on this day to this repository by the user. - */ - commitCount: () => new Field("commitCount"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The repository the user made a commit in. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ICreatedCommitContributionConnection { - readonly __typename: "CreatedCommitContributionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CreatedCommitContributionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CreatedCommitContributionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CreatedCommitContributionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of commits across days and repositories in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CreatedCommitContributionConnection: CreatedCommitContributionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CreatedCommitContributionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CreatedCommitContribution)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of commits across days and repositories in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICreatedCommitContributionEdge { - readonly __typename: "CreatedCommitContributionEdge"; - readonly cursor: string; - readonly node: ICreatedCommitContribution | null; -} - -interface CreatedCommitContributionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CreatedCommitContributionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CreatedCommitContributionEdge: CreatedCommitContributionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CreatedCommitContribution)) - ), -}; - -export interface ICreatedIssueContribution extends IContribution { - readonly __typename: "CreatedIssueContribution"; - readonly issue: IIssue; -} - -interface CreatedIssueContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description The issue that was opened. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isCreatedIssueContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedIssueContribution"; -}; - -export const CreatedIssueContribution: CreatedIssueContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description The issue that was opened. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ICreatedIssueContributionConnection { - readonly __typename: "CreatedIssueContributionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CreatedIssueContributionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CreatedIssueContributionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CreatedIssueContributionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CreatedIssueContributionConnection: CreatedIssueContributionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CreatedIssueContributionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CreatedIssueContribution)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICreatedIssueContributionEdge { - readonly __typename: "CreatedIssueContributionEdge"; - readonly cursor: string; - readonly node: ICreatedIssueContribution | null; -} - -interface CreatedIssueContributionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CreatedIssueContributionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CreatedIssueContributionEdge: CreatedIssueContributionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CreatedIssueContribution)) - ), -}; - -export interface ICreatedPullRequestContribution extends IContribution { - readonly __typename: "CreatedPullRequestContribution"; - readonly pullRequest: IPullRequest; -} - -interface CreatedPullRequestContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The pull request that was opened. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isCreatedPullRequestContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedPullRequestContribution"; -}; - -export const CreatedPullRequestContribution: CreatedPullRequestContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The pull request that was opened. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ICreatedPullRequestContributionConnection { - readonly __typename: "CreatedPullRequestContributionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CreatedPullRequestContributionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CreatedPullRequestContributionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CreatedPullRequestContributionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CreatedPullRequestContributionConnection: CreatedPullRequestContributionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CreatedPullRequestContributionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CreatedPullRequestContribution)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICreatedPullRequestContributionEdge { - readonly __typename: "CreatedPullRequestContributionEdge"; - readonly cursor: string; - readonly node: ICreatedPullRequestContribution | null; -} - -interface CreatedPullRequestContributionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CreatedPullRequestContributionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CreatedPullRequestContributionEdge: CreatedPullRequestContributionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CreatedPullRequestContribution)) - ), -}; - -export interface ICreatedPullRequestReviewContribution extends IContribution { - readonly __typename: "CreatedPullRequestReviewContribution"; - readonly pullRequest: IPullRequest; - readonly pullRequestReview: IPullRequestReview; - readonly repository: IRepository; -} - -interface CreatedPullRequestReviewContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The pull request the user reviewed. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The review the user left on the pull request. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; - - /** - * @description The repository containing the pull request that the user reviewed. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isCreatedPullRequestReviewContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedPullRequestReviewContribution"; -}; - -export const CreatedPullRequestReviewContribution: CreatedPullRequestReviewContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The pull request the user reviewed. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The review the user left on the pull request. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), - - /** - * @description The repository containing the pull request that the user reviewed. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ICreatedPullRequestReviewContributionConnection { - readonly __typename: "CreatedPullRequestReviewContributionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CreatedPullRequestReviewContributionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CreatedPullRequestReviewContributionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CreatedPullRequestReviewContributionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CreatedPullRequestReviewContributionConnection: CreatedPullRequestReviewContributionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CreatedPullRequestReviewContributionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CreatedPullRequestReviewContribution)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICreatedPullRequestReviewContributionEdge { - readonly __typename: "CreatedPullRequestReviewContributionEdge"; - readonly cursor: string; - readonly node: ICreatedPullRequestReviewContribution | null; -} - -interface CreatedPullRequestReviewContributionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CreatedPullRequestReviewContributionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CreatedPullRequestReviewContributionEdge: CreatedPullRequestReviewContributionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CreatedPullRequestReviewContribution)) - ), -}; - -export interface ICreatedRepositoryContribution extends IContribution { - readonly __typename: "CreatedRepositoryContribution"; - readonly repository: IRepository; -} - -interface CreatedRepositoryContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The repository that was created. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isCreatedRepositoryContribution = ( - object: Record -): object is Partial => { - return object.__typename === "CreatedRepositoryContribution"; -}; - -export const CreatedRepositoryContribution: CreatedRepositoryContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The repository that was created. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ICreatedRepositoryContributionConnection { - readonly __typename: "CreatedRepositoryContributionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface CreatedRepositoryContributionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: CreatedRepositoryContributionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: CreatedRepositoryContributionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const CreatedRepositoryContributionConnection: CreatedRepositoryContributionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(CreatedRepositoryContributionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(CreatedRepositoryContribution)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ICreatedRepositoryContributionEdge { - readonly __typename: "CreatedRepositoryContributionEdge"; - readonly cursor: string; - readonly node: ICreatedRepositoryContribution | null; -} - -interface CreatedRepositoryContributionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: CreatedRepositoryContributionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const CreatedRepositoryContributionEdge: CreatedRepositoryContributionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(CreatedRepositoryContribution)) - ), -}; - -export interface ICrossReferencedEvent - extends INode, - IUniformResourceLocatable { - readonly __typename: "CrossReferencedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly isCrossRepository: boolean; - readonly referencedAt: unknown; - readonly source: IReferencedSubject; - readonly target: IReferencedSubject; - readonly willCloseTarget: boolean; -} - -interface CrossReferencedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Reference originated in a different repository. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; - - /** - * @description Identifies when the reference was made. - */ - - readonly referencedAt: () => Field<"referencedAt">; - - /** - * @description The HTTP path for this pull request. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Issue or pull request that made the reference. - */ - - readonly source: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"source", never, SelectionSet>; - - /** - * @description Issue or pull request to which the reference was made. - */ - - readonly target: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"target", never, SelectionSet>; - - /** - * @description The HTTP URL for this pull request. - */ - - readonly url: () => Field<"url">; - - /** - * @description Checks if the target will be closed when the source is merged. - */ - - readonly willCloseTarget: () => Field<"willCloseTarget">; -} - -export const isCrossReferencedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "CrossReferencedEvent"; -}; - -export const CrossReferencedEvent: CrossReferencedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Reference originated in a different repository. - */ - isCrossRepository: () => new Field("isCrossRepository"), - - /** - * @description Identifies when the reference was made. - */ - referencedAt: () => new Field("referencedAt"), - - /** - * @description The HTTP path for this pull request. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Issue or pull request that made the reference. - */ - - source: (select) => - new Field( - "source", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), - - /** - * @description Issue or pull request to which the reference was made. - */ - - target: (select) => - new Field( - "target", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), - - /** - * @description The HTTP URL for this pull request. - */ - url: () => new Field("url"), - - /** - * @description Checks if the target will be closed when the source is merged. - */ - willCloseTarget: () => new Field("willCloseTarget"), -}; - -export interface IDeclineTopicSuggestionPayload { - readonly __typename: "DeclineTopicSuggestionPayload"; - readonly clientMutationId: string | null; - readonly topic: ITopic | null; -} - -interface DeclineTopicSuggestionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The declined topic. - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; -} - -export const DeclineTopicSuggestionPayload: DeclineTopicSuggestionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The declined topic. - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), -}; - -export interface IDeletable { - readonly __typename: string; - readonly viewerCanDelete: boolean; -} - -interface DeletableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "GistComment" - | "IssueComment" - | "PullRequestReview" - | "PullRequestReviewComment" - | "TeamDiscussion" - | "TeamDiscussionComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Deletable: DeletableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Deletable", - }); - } - }, -}; - -export interface IDeleteBranchProtectionRulePayload { - readonly __typename: "DeleteBranchProtectionRulePayload"; - readonly clientMutationId: string | null; -} - -interface DeleteBranchProtectionRulePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteBranchProtectionRulePayload: DeleteBranchProtectionRulePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDeleteDeploymentPayload { - readonly __typename: "DeleteDeploymentPayload"; - readonly clientMutationId: string | null; -} - -interface DeleteDeploymentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteDeploymentPayload: DeleteDeploymentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDeleteIpAllowListEntryPayload { - readonly __typename: "DeleteIpAllowListEntryPayload"; - readonly clientMutationId: string | null; - readonly ipAllowListEntry: IIpAllowListEntry | null; -} - -interface DeleteIpAllowListEntryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The IP allow list entry that was deleted. - */ - - readonly ipAllowListEntry: >( - select: (t: IpAllowListEntrySelector) => T - ) => Field<"ipAllowListEntry", never, SelectionSet>; -} - -export const DeleteIpAllowListEntryPayload: DeleteIpAllowListEntryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The IP allow list entry that was deleted. - */ - - ipAllowListEntry: (select) => - new Field( - "ipAllowListEntry", - undefined as never, - new SelectionSet(select(IpAllowListEntry)) - ), -}; - -export interface IDeleteIssueCommentPayload { - readonly __typename: "DeleteIssueCommentPayload"; - readonly clientMutationId: string | null; -} - -interface DeleteIssueCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteIssueCommentPayload: DeleteIssueCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDeleteIssuePayload { - readonly __typename: "DeleteIssuePayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface DeleteIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The repository the issue belonged to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const DeleteIssuePayload: DeleteIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The repository the issue belonged to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IDeleteProjectCardPayload { - readonly __typename: "DeleteProjectCardPayload"; - readonly clientMutationId: string | null; - readonly column: IProjectColumn | null; - readonly deletedCardId: string | null; -} - -interface DeleteProjectCardPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The column the deleted card was in. - */ - - readonly column: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"column", never, SelectionSet>; - - /** - * @description The deleted card ID. - */ - - readonly deletedCardId: () => Field<"deletedCardId">; -} - -export const DeleteProjectCardPayload: DeleteProjectCardPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The column the deleted card was in. - */ - - column: (select) => - new Field( - "column", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), - - /** - * @description The deleted card ID. - */ - deletedCardId: () => new Field("deletedCardId"), -}; - -export interface IDeleteProjectColumnPayload { - readonly __typename: "DeleteProjectColumnPayload"; - readonly clientMutationId: string | null; - readonly deletedColumnId: string | null; - readonly project: IProject | null; -} - -interface DeleteProjectColumnPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The deleted column ID. - */ - - readonly deletedColumnId: () => Field<"deletedColumnId">; - - /** - * @description The project the deleted column was in. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; -} - -export const DeleteProjectColumnPayload: DeleteProjectColumnPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The deleted column ID. - */ - deletedColumnId: () => new Field("deletedColumnId"), - - /** - * @description The project the deleted column was in. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), -}; - -export interface IDeleteProjectPayload { - readonly __typename: "DeleteProjectPayload"; - readonly clientMutationId: string | null; - readonly owner: IProjectOwner | null; -} - -interface DeleteProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The repository or organization the project was removed from. - */ - - readonly owner: >( - select: (t: ProjectOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; -} - -export const DeleteProjectPayload: DeleteProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The repository or organization the project was removed from. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(ProjectOwner)) - ), -}; - -export interface IDeletePullRequestReviewCommentPayload { - readonly __typename: "DeletePullRequestReviewCommentPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; -} - -interface DeletePullRequestReviewCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request review the deleted comment belonged to. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; -} - -export const DeletePullRequestReviewCommentPayload: DeletePullRequestReviewCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request review the deleted comment belonged to. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface IDeletePullRequestReviewPayload { - readonly __typename: "DeletePullRequestReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; -} - -interface DeletePullRequestReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The deleted pull request review. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; -} - -export const DeletePullRequestReviewPayload: DeletePullRequestReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The deleted pull request review. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface IDeleteRefPayload { - readonly __typename: "DeleteRefPayload"; - readonly clientMutationId: string | null; -} - -interface DeleteRefPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteRefPayload: DeleteRefPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDeleteTeamDiscussionCommentPayload { - readonly __typename: "DeleteTeamDiscussionCommentPayload"; - readonly clientMutationId: string | null; -} - -interface DeleteTeamDiscussionCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteTeamDiscussionCommentPayload: DeleteTeamDiscussionCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDeleteTeamDiscussionPayload { - readonly __typename: "DeleteTeamDiscussionPayload"; - readonly clientMutationId: string | null; -} - -interface DeleteTeamDiscussionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const DeleteTeamDiscussionPayload: DeleteTeamDiscussionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IDemilestonedEvent extends INode { - readonly __typename: "DemilestonedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly milestoneTitle: string; - readonly subject: IMilestoneItem; -} - -interface DemilestonedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the milestone title associated with the 'demilestoned' event. - */ - - readonly milestoneTitle: () => Field<"milestoneTitle">; - - /** - * @description Object referenced by event. - */ - - readonly subject: >( - select: (t: MilestoneItemSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isDemilestonedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "DemilestonedEvent"; -}; - -export const DemilestonedEvent: DemilestonedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the milestone title associated with the 'demilestoned' event. - */ - milestoneTitle: () => new Field("milestoneTitle"), - - /** - * @description Object referenced by event. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(MilestoneItem)) - ), -}; - -export interface IDeployKey extends INode { - readonly __typename: "DeployKey"; - readonly createdAt: unknown; - readonly key: string; - readonly readOnly: boolean; - readonly title: string; - readonly verified: boolean; -} - -interface DeployKeySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The deploy key. - */ - - readonly key: () => Field<"key">; - - /** - * @description Whether or not the deploy key is read only. - */ - - readonly readOnly: () => Field<"readOnly">; - - /** - * @description The deploy key title. - */ - - readonly title: () => Field<"title">; - - /** - * @description Whether or not the deploy key has been verified. - */ - - readonly verified: () => Field<"verified">; -} - -export const isDeployKey = ( - object: Record -): object is Partial => { - return object.__typename === "DeployKey"; -}; - -export const DeployKey: DeployKeySelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The deploy key. - */ - key: () => new Field("key"), - - /** - * @description Whether or not the deploy key is read only. - */ - readOnly: () => new Field("readOnly"), - - /** - * @description The deploy key title. - */ - title: () => new Field("title"), - - /** - * @description Whether or not the deploy key has been verified. - */ - verified: () => new Field("verified"), -}; - -export interface IDeployKeyConnection { - readonly __typename: "DeployKeyConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface DeployKeyConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: DeployKeyEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: DeployKeySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const DeployKeyConnection: DeployKeyConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(DeployKeyEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(DeployKey))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IDeployKeyEdge { - readonly __typename: "DeployKeyEdge"; - readonly cursor: string; - readonly node: IDeployKey | null; -} - -interface DeployKeyEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: DeployKeySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const DeployKeyEdge: DeployKeyEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(DeployKey))), -}; - -export interface IDeployedEvent extends INode { - readonly __typename: "DeployedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly deployment: IDeployment; - readonly pullRequest: IPullRequest; - readonly ref: IRef | null; -} - -interface DeployedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The deployment associated with the 'deployed' event. - */ - - readonly deployment: >( - select: (t: DeploymentSelector) => T - ) => Field<"deployment", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The ref associated with the 'deployed' event. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const isDeployedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "DeployedEvent"; -}; - -export const DeployedEvent: DeployedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The deployment associated with the 'deployed' event. - */ - - deployment: (select) => - new Field( - "deployment", - undefined as never, - new SelectionSet(select(Deployment)) - ), - - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The ref associated with the 'deployed' event. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IDeployment extends INode { - readonly __typename: "Deployment"; - readonly commit: ICommit | null; - readonly commitOid: string; - readonly createdAt: unknown; - readonly creator: IActor; - readonly databaseId: number | null; - readonly description: string | null; - readonly environment: string | null; - readonly latestEnvironment: string | null; - readonly latestStatus: IDeploymentStatus | null; - readonly originalEnvironment: string | null; - readonly payload: string | null; - readonly ref: IRef | null; - readonly repository: IRepository; - readonly state: DeploymentState | null; - readonly statuses: IDeploymentStatusConnection | null; - readonly task: string | null; - readonly updatedAt: unknown; -} - -interface DeploymentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the commit sha of the deployment. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies the oid of the deployment commit, even if the commit has been deleted. - */ - - readonly commitOid: () => Field<"commitOid">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the actor who triggered the deployment. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The deployment description. - */ - - readonly description: () => Field<"description">; - - /** - * @description The latest environment to which this deployment was made. - */ - - readonly environment: () => Field<"environment">; - - readonly id: () => Field<"id">; - - /** - * @description The latest environment to which this deployment was made. - */ - - readonly latestEnvironment: () => Field<"latestEnvironment">; - - /** - * @description The latest status of this deployment. - */ - - readonly latestStatus: >( - select: (t: DeploymentStatusSelector) => T - ) => Field<"latestStatus", never, SelectionSet>; - - /** - * @description The original environment to which this deployment was made. - */ - - readonly originalEnvironment: () => Field<"originalEnvironment">; - - /** - * @description Extra information that a deployment system might need. - */ - - readonly payload: () => Field<"payload">; - - /** - * @description Identifies the Ref of the deployment, if the deployment was created by ref. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; - - /** - * @description Identifies the repository associated with the deployment. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The current state of the deployment. - */ - - readonly state: () => Field<"state">; - - /** - * @description A list of statuses associated with the deployment. - */ - - readonly statuses: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: DeploymentStatusConnectionSelector) => T - ) => Field< - "statuses", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The deployment task. - */ - - readonly task: () => Field<"task">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isDeployment = ( - object: Record -): object is Partial => { - return object.__typename === "Deployment"; -}; - -export const Deployment: DeploymentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the commit sha of the deployment. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies the oid of the deployment commit, even if the commit has been deleted. - */ - commitOid: () => new Field("commitOid"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the actor who triggered the deployment. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The deployment description. - */ - description: () => new Field("description"), - - /** - * @description The latest environment to which this deployment was made. - */ - environment: () => new Field("environment"), - id: () => new Field("id"), - - /** - * @description The latest environment to which this deployment was made. - */ - latestEnvironment: () => new Field("latestEnvironment"), - - /** - * @description The latest status of this deployment. - */ - - latestStatus: (select) => - new Field( - "latestStatus", - undefined as never, - new SelectionSet(select(DeploymentStatus)) - ), - - /** - * @description The original environment to which this deployment was made. - */ - originalEnvironment: () => new Field("originalEnvironment"), - - /** - * @description Extra information that a deployment system might need. - */ - payload: () => new Field("payload"), - - /** - * @description Identifies the Ref of the deployment, if the deployment was created by ref. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Identifies the repository associated with the deployment. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The current state of the deployment. - */ - state: () => new Field("state"), - - /** - * @description A list of statuses associated with the deployment. - */ - - statuses: (variables, select) => - new Field( - "statuses", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(DeploymentStatusConnection)) - ), - - /** - * @description The deployment task. - */ - task: () => new Field("task"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IDeploymentConnection { - readonly __typename: "DeploymentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface DeploymentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: DeploymentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: DeploymentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const DeploymentConnection: DeploymentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(DeploymentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Deployment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IDeploymentEdge { - readonly __typename: "DeploymentEdge"; - readonly cursor: string; - readonly node: IDeployment | null; -} - -interface DeploymentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: DeploymentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const DeploymentEdge: DeploymentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Deployment))), -}; - -export interface IDeploymentEnvironmentChangedEvent extends INode { - readonly __typename: "DeploymentEnvironmentChangedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly deploymentStatus: IDeploymentStatus; - readonly pullRequest: IPullRequest; -} - -interface DeploymentEnvironmentChangedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The deployment status that updated the deployment environment. - */ - - readonly deploymentStatus: >( - select: (t: DeploymentStatusSelector) => T - ) => Field<"deploymentStatus", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isDeploymentEnvironmentChangedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "DeploymentEnvironmentChangedEvent"; -}; - -export const DeploymentEnvironmentChangedEvent: DeploymentEnvironmentChangedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The deployment status that updated the deployment environment. - */ - - deploymentStatus: (select) => - new Field( - "deploymentStatus", - undefined as never, - new SelectionSet(select(DeploymentStatus)) - ), - - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IDeploymentStatus extends INode { - readonly __typename: "DeploymentStatus"; - readonly createdAt: unknown; - readonly creator: IActor; - readonly deployment: IDeployment; - readonly description: string | null; - readonly environmentUrl: unknown | null; - readonly logUrl: unknown | null; - readonly state: DeploymentStatusState; - readonly updatedAt: unknown; -} - -interface DeploymentStatusSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the actor who triggered the deployment. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the deployment associated with status. - */ - - readonly deployment: >( - select: (t: DeploymentSelector) => T - ) => Field<"deployment", never, SelectionSet>; - - /** - * @description Identifies the description of the deployment. - */ - - readonly description: () => Field<"description">; - - /** - * @description Identifies the environment URL of the deployment. - */ - - readonly environmentUrl: () => Field<"environmentUrl">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the log URL of the deployment. - */ - - readonly logUrl: () => Field<"logUrl">; - - /** - * @description Identifies the current state of the deployment. - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isDeploymentStatus = ( - object: Record -): object is Partial => { - return object.__typename === "DeploymentStatus"; -}; - -export const DeploymentStatus: DeploymentStatusSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the actor who triggered the deployment. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the deployment associated with status. - */ - - deployment: (select) => - new Field( - "deployment", - undefined as never, - new SelectionSet(select(Deployment)) - ), - - /** - * @description Identifies the description of the deployment. - */ - description: () => new Field("description"), - - /** - * @description Identifies the environment URL of the deployment. - */ - environmentUrl: () => new Field("environmentUrl"), - id: () => new Field("id"), - - /** - * @description Identifies the log URL of the deployment. - */ - logUrl: () => new Field("logUrl"), - - /** - * @description Identifies the current state of the deployment. - */ - state: () => new Field("state"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IDeploymentStatusConnection { - readonly __typename: "DeploymentStatusConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface DeploymentStatusConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: DeploymentStatusEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: DeploymentStatusSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const DeploymentStatusConnection: DeploymentStatusConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(DeploymentStatusEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(DeploymentStatus)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IDeploymentStatusEdge { - readonly __typename: "DeploymentStatusEdge"; - readonly cursor: string; - readonly node: IDeploymentStatus | null; -} - -interface DeploymentStatusEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: DeploymentStatusSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const DeploymentStatusEdge: DeploymentStatusEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(DeploymentStatus)) - ), -}; - -export interface IDisconnectedEvent extends INode { - readonly __typename: "DisconnectedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly isCrossRepository: boolean; - readonly source: IReferencedSubject; - readonly subject: IReferencedSubject; -} - -interface DisconnectedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Reference originated in a different repository. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; - - /** - * @description Issue or pull request from which the issue was disconnected. - */ - - readonly source: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"source", never, SelectionSet>; - - /** - * @description Issue or pull request which was disconnected. - */ - - readonly subject: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isDisconnectedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "DisconnectedEvent"; -}; - -export const DisconnectedEvent: DisconnectedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Reference originated in a different repository. - */ - isCrossRepository: () => new Field("isCrossRepository"), - - /** - * @description Issue or pull request from which the issue was disconnected. - */ - - source: (select) => - new Field( - "source", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), - - /** - * @description Issue or pull request which was disconnected. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), -}; - -export interface IDismissPullRequestReviewPayload { - readonly __typename: "DismissPullRequestReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; -} - -interface DismissPullRequestReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The dismissed pull request review. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; -} - -export const DismissPullRequestReviewPayload: DismissPullRequestReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The dismissed pull request review. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface IEnterprise extends INode { - readonly __typename: "Enterprise"; - readonly avatarUrl: unknown; - readonly billingInfo: IEnterpriseBillingInfo | null; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly description: string | null; - readonly descriptionHTML: unknown; - readonly location: string | null; - readonly members: IEnterpriseMemberConnection; - readonly name: string; - readonly organizations: IOrganizationConnection; - readonly ownerInfo: IEnterpriseOwnerInfo | null; - readonly resourcePath: unknown; - readonly slug: string; - readonly url: unknown; - readonly userAccounts: IEnterpriseUserAccountConnection; - readonly viewerIsAdmin: boolean; - readonly websiteUrl: unknown | null; -} - -interface EnterpriseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the enterprise's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description Enterprise billing information visible to enterprise billing managers. - */ - - readonly billingInfo: >( - select: (t: EnterpriseBillingInfoSelector) => T - ) => Field<"billingInfo", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The description of the enterprise. - */ - - readonly description: () => Field<"description">; - - /** - * @description The description of the enterprise as HTML. - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - readonly id: () => Field<"id">; - - /** - * @description The location of the enterprise. - */ - - readonly location: () => Field<"location">; - - /** - * @description A list of users who are members of this enterprise. - */ - - readonly members: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - deployment?: Variable<"deployment"> | EnterpriseUserDeployment; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseMemberOrder; - organizationLogins?: Variable<"organizationLogins"> | string; - query?: Variable<"query"> | string; - role?: Variable<"role"> | EnterpriseUserAccountMembershipRole; - }, - select: (t: EnterpriseMemberConnectionSelector) => T - ) => Field< - "members", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"deployment", Variable<"deployment"> | EnterpriseUserDeployment>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | EnterpriseMemberOrder>, - Argument<"organizationLogins", Variable<"organizationLogins"> | string>, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | EnterpriseUserAccountMembershipRole> - ], - SelectionSet - >; - - /** - * @description The name of the enterprise. - */ - - readonly name: () => Field<"name">; - - /** - * @description A list of organizations that belong to this enterprise. - */ - - readonly organizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - query?: Variable<"query"> | string; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "organizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description Enterprise information only visible to enterprise owners. - */ - - readonly ownerInfo: >( - select: (t: EnterpriseOwnerInfoSelector) => T - ) => Field<"ownerInfo", never, SelectionSet>; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The URL-friendly identifier for the enterprise. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of user accounts on this enterprise. - */ - - readonly userAccounts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: EnterpriseUserAccountConnectionSelector) => T - ) => Field< - "userAccounts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Is the current viewer an admin of this enterprise? - */ - - readonly viewerIsAdmin: () => Field<"viewerIsAdmin">; - - /** - * @description The URL of the enterprise website. - */ - - readonly websiteUrl: () => Field<"websiteUrl">; -} - -export const isEnterprise = ( - object: Record -): object is Partial => { - return object.__typename === "Enterprise"; -}; - -export const Enterprise: EnterpriseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the enterprise's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description Enterprise billing information visible to enterprise billing managers. - */ - - billingInfo: (select) => - new Field( - "billingInfo", - undefined as never, - new SelectionSet(select(EnterpriseBillingInfo)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The description of the enterprise. - */ - description: () => new Field("description"), - - /** - * @description The description of the enterprise as HTML. - */ - descriptionHTML: () => new Field("descriptionHTML"), - id: () => new Field("id"), - - /** - * @description The location of the enterprise. - */ - location: () => new Field("location"), - - /** - * @description A list of users who are members of this enterprise. - */ - - members: (variables, select) => - new Field( - "members", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("deployment", variables.deployment, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "organizationLogins", - variables.organizationLogins, - _ENUM_VALUES - ), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseMemberConnection)) - ), - - /** - * @description The name of the enterprise. - */ - name: () => new Field("name"), - - /** - * @description A list of organizations that belong to this enterprise. - */ - - organizations: (variables, select) => - new Field( - "organizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description Enterprise information only visible to enterprise owners. - */ - - ownerInfo: (select) => - new Field( - "ownerInfo", - undefined as never, - new SelectionSet(select(EnterpriseOwnerInfo)) - ), - - /** - * @description The HTTP path for this enterprise. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The URL-friendly identifier for the enterprise. - */ - slug: () => new Field("slug"), - - /** - * @description The HTTP URL for this enterprise. - */ - url: () => new Field("url"), - - /** - * @description A list of user accounts on this enterprise. - */ - - userAccounts: (variables, select) => - new Field( - "userAccounts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseUserAccountConnection)) - ), - - /** - * @description Is the current viewer an admin of this enterprise? - */ - viewerIsAdmin: () => new Field("viewerIsAdmin"), - - /** - * @description The URL of the enterprise website. - */ - websiteUrl: () => new Field("websiteUrl"), -}; - -export interface IEnterpriseAdministratorConnection { - readonly __typename: "EnterpriseAdministratorConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseAdministratorConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseAdministratorEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseAdministratorConnection: EnterpriseAdministratorConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseAdministratorEdge { - readonly __typename: "EnterpriseAdministratorEdge"; - readonly cursor: string; - readonly node: IUser | null; - readonly role: EnterpriseAdministratorRole; -} - -interface EnterpriseAdministratorEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The role of the administrator. - */ - - readonly role: () => Field<"role">; -} - -export const EnterpriseAdministratorEdge: EnterpriseAdministratorEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The role of the administrator. - */ - role: () => new Field("role"), -}; - -export interface IEnterpriseAdministratorInvitation extends INode { - readonly __typename: "EnterpriseAdministratorInvitation"; - readonly createdAt: unknown; - readonly email: string | null; - readonly enterprise: IEnterprise; - readonly invitee: IUser | null; - readonly inviter: IUser | null; - readonly role: EnterpriseAdministratorRole; -} - -interface EnterpriseAdministratorInvitationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The email of the person who was invited to the enterprise. - */ - - readonly email: () => Field<"email">; - - /** - * @description The enterprise the invitation is for. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The user who was invited to the enterprise. - */ - - readonly invitee: >( - select: (t: UserSelector) => T - ) => Field<"invitee", never, SelectionSet>; - - /** - * @description The user who created the invitation. - */ - - readonly inviter: >( - select: (t: UserSelector) => T - ) => Field<"inviter", never, SelectionSet>; - - /** - * @description The invitee's pending role in the enterprise (owner or billing_manager). - */ - - readonly role: () => Field<"role">; -} - -export const isEnterpriseAdministratorInvitation = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseAdministratorInvitation"; -}; - -export const EnterpriseAdministratorInvitation: EnterpriseAdministratorInvitationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The email of the person who was invited to the enterprise. - */ - email: () => new Field("email"), - - /** - * @description The enterprise the invitation is for. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - id: () => new Field("id"), - - /** - * @description The user who was invited to the enterprise. - */ - - invitee: (select) => - new Field("invitee", undefined as never, new SelectionSet(select(User))), - - /** - * @description The user who created the invitation. - */ - - inviter: (select) => - new Field("inviter", undefined as never, new SelectionSet(select(User))), - - /** - * @description The invitee's pending role in the enterprise (owner or billing_manager). - */ - role: () => new Field("role"), -}; - -export interface IEnterpriseAdministratorInvitationConnection { - readonly __typename: "EnterpriseAdministratorInvitationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseAdministratorInvitationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseAdministratorInvitationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseAdministratorInvitationConnection: EnterpriseAdministratorInvitationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseAdministratorInvitationEdge { - readonly __typename: "EnterpriseAdministratorInvitationEdge"; - readonly cursor: string; - readonly node: IEnterpriseAdministratorInvitation | null; -} - -interface EnterpriseAdministratorInvitationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseAdministratorInvitationEdge: EnterpriseAdministratorInvitationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), -}; - -export interface IEnterpriseAuditEntryData { - readonly __typename: string; - readonly enterpriseResourcePath: unknown | null; - readonly enterpriseSlug: string | null; - readonly enterpriseUrl: unknown | null; -} - -interface EnterpriseAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly on: < - T extends Array, - F extends - | "MembersCanDeleteReposClearAuditEntry" - | "MembersCanDeleteReposDisableAuditEntry" - | "MembersCanDeleteReposEnableAuditEntry" - | "OrgInviteToBusinessAuditEntry" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "RepositoryVisibilityChangeDisableAuditEntry" - | "RepositoryVisibilityChangeEnableAuditEntry" - >( - type: F, - select: ( - t: F extends "MembersCanDeleteReposClearAuditEntry" - ? MembersCanDeleteReposClearAuditEntrySelector - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? MembersCanDeleteReposDisableAuditEntrySelector - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? MembersCanDeleteReposEnableAuditEntrySelector - : F extends "OrgInviteToBusinessAuditEntry" - ? OrgInviteToBusinessAuditEntrySelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? RepositoryVisibilityChangeDisableAuditEntrySelector - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? RepositoryVisibilityChangeEnableAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const EnterpriseAuditEntryData: EnterpriseAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - - on: (type, select) => { - switch (type) { - case "MembersCanDeleteReposClearAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposClearAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposClearAuditEntry as any)) - ); - } - - case "MembersCanDeleteReposDisableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposDisableAuditEntry") as any, - new SelectionSet( - select(MembersCanDeleteReposDisableAuditEntry as any) - ) - ); - } - - case "MembersCanDeleteReposEnableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposEnableAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposEnableAuditEntry as any)) - ); - } - - case "OrgInviteToBusinessAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteToBusinessAuditEntry") as any, - new SelectionSet(select(OrgInviteToBusinessAuditEntry as any)) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeDisableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeDisableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeDisableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeEnableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeEnableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeEnableAuditEntry as any) - ) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "EnterpriseAuditEntryData", - }); - } - }, -}; - -export interface IEnterpriseBillingInfo { - readonly __typename: "EnterpriseBillingInfo"; - readonly allLicensableUsersCount: number; - readonly assetPacks: number; - readonly availableSeats: number; - readonly bandwidthQuota: number; - readonly bandwidthUsage: number; - readonly bandwidthUsagePercentage: number; - readonly seats: number; - readonly storageQuota: number; - readonly storageUsage: number; - readonly storageUsagePercentage: number; - readonly totalAvailableLicenses: number; - readonly totalLicenses: number; -} - -interface EnterpriseBillingInfoSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The number of licenseable users/emails across the enterprise. - */ - - readonly allLicensableUsersCount: () => Field<"allLicensableUsersCount">; - - /** - * @description The number of data packs used by all organizations owned by the enterprise. - */ - - readonly assetPacks: () => Field<"assetPacks">; - - /** - * @description The number of available seats across all owned organizations based on the unique number of billable users. - * @deprecated `availableSeats` will be replaced with `totalAvailableLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalAvailableLicenses instead. Removal on 2020-01-01 UTC. - */ - - readonly availableSeats: () => Field<"availableSeats">; - - /** - * @description The bandwidth quota in GB for all organizations owned by the enterprise. - */ - - readonly bandwidthQuota: () => Field<"bandwidthQuota">; - - /** - * @description The bandwidth usage in GB for all organizations owned by the enterprise. - */ - - readonly bandwidthUsage: () => Field<"bandwidthUsage">; - - /** - * @description The bandwidth usage as a percentage of the bandwidth quota. - */ - - readonly bandwidthUsagePercentage: () => Field<"bandwidthUsagePercentage">; - - /** - * @description The total seats across all organizations owned by the enterprise. - * @deprecated `seats` will be replaced with `totalLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalLicenses instead. Removal on 2020-01-01 UTC. - */ - - readonly seats: () => Field<"seats">; - - /** - * @description The storage quota in GB for all organizations owned by the enterprise. - */ - - readonly storageQuota: () => Field<"storageQuota">; - - /** - * @description The storage usage in GB for all organizations owned by the enterprise. - */ - - readonly storageUsage: () => Field<"storageUsage">; - - /** - * @description The storage usage as a percentage of the storage quota. - */ - - readonly storageUsagePercentage: () => Field<"storageUsagePercentage">; - - /** - * @description The number of available licenses across all owned organizations based on the unique number of billable users. - */ - - readonly totalAvailableLicenses: () => Field<"totalAvailableLicenses">; - - /** - * @description The total number of licenses allocated. - */ - - readonly totalLicenses: () => Field<"totalLicenses">; -} - -export const EnterpriseBillingInfo: EnterpriseBillingInfoSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of licenseable users/emails across the enterprise. - */ - allLicensableUsersCount: () => new Field("allLicensableUsersCount"), - - /** - * @description The number of data packs used by all organizations owned by the enterprise. - */ - assetPacks: () => new Field("assetPacks"), - - /** - * @description The number of available seats across all owned organizations based on the unique number of billable users. - * @deprecated `availableSeats` will be replaced with `totalAvailableLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalAvailableLicenses instead. Removal on 2020-01-01 UTC. - */ - availableSeats: () => new Field("availableSeats"), - - /** - * @description The bandwidth quota in GB for all organizations owned by the enterprise. - */ - bandwidthQuota: () => new Field("bandwidthQuota"), - - /** - * @description The bandwidth usage in GB for all organizations owned by the enterprise. - */ - bandwidthUsage: () => new Field("bandwidthUsage"), - - /** - * @description The bandwidth usage as a percentage of the bandwidth quota. - */ - bandwidthUsagePercentage: () => new Field("bandwidthUsagePercentage"), - - /** - * @description The total seats across all organizations owned by the enterprise. - * @deprecated `seats` will be replaced with `totalLicenses` to provide more clarity on the value being returned Use EnterpriseBillingInfo.totalLicenses instead. Removal on 2020-01-01 UTC. - */ - seats: () => new Field("seats"), - - /** - * @description The storage quota in GB for all organizations owned by the enterprise. - */ - storageQuota: () => new Field("storageQuota"), - - /** - * @description The storage usage in GB for all organizations owned by the enterprise. - */ - storageUsage: () => new Field("storageUsage"), - - /** - * @description The storage usage as a percentage of the storage quota. - */ - storageUsagePercentage: () => new Field("storageUsagePercentage"), - - /** - * @description The number of available licenses across all owned organizations based on the unique number of billable users. - */ - totalAvailableLicenses: () => new Field("totalAvailableLicenses"), - - /** - * @description The total number of licenses allocated. - */ - totalLicenses: () => new Field("totalLicenses"), -}; - -export interface IEnterpriseIdentityProvider extends INode { - readonly __typename: "EnterpriseIdentityProvider"; - readonly digestMethod: SamlDigestAlgorithm | null; - readonly enterprise: IEnterprise | null; - readonly externalIdentities: IExternalIdentityConnection; - readonly idpCertificate: unknown | null; - readonly issuer: string | null; - readonly recoveryCodes: ReadonlyArray | null; - readonly signatureMethod: SamlSignatureAlgorithm | null; - readonly ssoUrl: unknown | null; -} - -interface EnterpriseIdentityProviderSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The digest algorithm used to sign SAML requests for the identity provider. - */ - - readonly digestMethod: () => Field<"digestMethod">; - - /** - * @description The enterprise this identity provider belongs to. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description ExternalIdentities provisioned by this identity provider. - */ - - readonly externalIdentities: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ExternalIdentityConnectionSelector) => T - ) => Field< - "externalIdentities", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The x509 certificate used by the identity provider to sign assertions and responses. - */ - - readonly idpCertificate: () => Field<"idpCertificate">; - - /** - * @description The Issuer Entity ID for the SAML identity provider. - */ - - readonly issuer: () => Field<"issuer">; - - /** - * @description Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. - */ - - readonly recoveryCodes: () => Field<"recoveryCodes">; - - /** - * @description The signature algorithm used to sign SAML requests for the identity provider. - */ - - readonly signatureMethod: () => Field<"signatureMethod">; - - /** - * @description The URL endpoint for the identity provider's SAML SSO. - */ - - readonly ssoUrl: () => Field<"ssoUrl">; -} - -export const isEnterpriseIdentityProvider = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseIdentityProvider"; -}; - -export const EnterpriseIdentityProvider: EnterpriseIdentityProviderSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The digest algorithm used to sign SAML requests for the identity provider. - */ - digestMethod: () => new Field("digestMethod"), - - /** - * @description The enterprise this identity provider belongs to. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description ExternalIdentities provisioned by this identity provider. - */ - - externalIdentities: (variables, select) => - new Field( - "externalIdentities", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ExternalIdentityConnection)) - ), - - id: () => new Field("id"), - - /** - * @description The x509 certificate used by the identity provider to sign assertions and responses. - */ - idpCertificate: () => new Field("idpCertificate"), - - /** - * @description The Issuer Entity ID for the SAML identity provider. - */ - issuer: () => new Field("issuer"), - - /** - * @description Recovery codes that can be used by admins to access the enterprise if the identity provider is unavailable. - */ - recoveryCodes: () => new Field("recoveryCodes"), - - /** - * @description The signature algorithm used to sign SAML requests for the identity provider. - */ - signatureMethod: () => new Field("signatureMethod"), - - /** - * @description The URL endpoint for the identity provider's SAML SSO. - */ - ssoUrl: () => new Field("ssoUrl"), -}; - -export interface IEnterpriseMemberConnection { - readonly __typename: "EnterpriseMemberConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseMemberConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseMemberEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseMemberSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseMemberConnection: EnterpriseMemberConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseMemberEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseMember)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseMemberEdge { - readonly __typename: "EnterpriseMemberEdge"; - readonly cursor: string; - readonly isUnlicensed: boolean; - readonly node: IEnterpriseMember | null; -} - -interface EnterpriseMemberEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description Whether the user does not have a license for the enterprise. - * @deprecated All members consume a license Removal on 2021-01-01 UTC. - */ - - readonly isUnlicensed: () => Field<"isUnlicensed">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseMemberSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseMemberEdge: EnterpriseMemberEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description Whether the user does not have a license for the enterprise. - * @deprecated All members consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: () => new Field("isUnlicensed"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseMember)) - ), -}; - -export interface IEnterpriseOrganizationMembershipConnection { - readonly __typename: "EnterpriseOrganizationMembershipConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseOrganizationMembershipConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseOrganizationMembershipEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: OrganizationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseOrganizationMembershipConnection: EnterpriseOrganizationMembershipConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseOrganizationMembershipEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseOrganizationMembershipEdge { - readonly __typename: "EnterpriseOrganizationMembershipEdge"; - readonly cursor: string; - readonly node: IOrganization | null; - readonly role: EnterpriseUserAccountMembershipRole; -} - -interface EnterpriseOrganizationMembershipEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: OrganizationSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The role of the user in the enterprise membership. - */ - - readonly role: () => Field<"role">; -} - -export const EnterpriseOrganizationMembershipEdge: EnterpriseOrganizationMembershipEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The role of the user in the enterprise membership. - */ - role: () => new Field("role"), -}; - -export interface IEnterpriseOutsideCollaboratorConnection { - readonly __typename: "EnterpriseOutsideCollaboratorConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseOutsideCollaboratorConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseOutsideCollaboratorEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseOutsideCollaboratorConnection: EnterpriseOutsideCollaboratorConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseOutsideCollaboratorEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseOutsideCollaboratorEdge { - readonly __typename: "EnterpriseOutsideCollaboratorEdge"; - readonly cursor: string; - readonly isUnlicensed: boolean; - readonly node: IUser | null; - readonly repositories: IEnterpriseRepositoryInfoConnection; -} - -interface EnterpriseOutsideCollaboratorEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description Whether the outside collaborator does not have a license for the enterprise. - * @deprecated All outside collaborators consume a license Removal on 2021-01-01 UTC. - */ - - readonly isUnlicensed: () => Field<"isUnlicensed">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The enterprise organization repositories this user is a member of. - */ - - readonly repositories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - }, - select: (t: EnterpriseRepositoryInfoConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder> - ], - SelectionSet - >; -} - -export const EnterpriseOutsideCollaboratorEdge: EnterpriseOutsideCollaboratorEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description Whether the outside collaborator does not have a license for the enterprise. - * @deprecated All outside collaborators consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: () => new Field("isUnlicensed"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The enterprise organization repositories this user is a member of. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseRepositoryInfoConnection)) - ), -}; - -export interface IEnterpriseOwnerInfo { - readonly __typename: "EnterpriseOwnerInfo"; - readonly admins: IEnterpriseAdministratorConnection; - readonly affiliatedUsersWithTwoFactorDisabled: IUserConnection; - readonly affiliatedUsersWithTwoFactorDisabledExist: boolean; - readonly allowPrivateRepositoryForkingSetting: EnterpriseEnabledDisabledSettingValue; - readonly allowPrivateRepositoryForkingSettingOrganizations: IOrganizationConnection; - readonly defaultRepositoryPermissionSetting: EnterpriseDefaultRepositoryPermissionSettingValue; - readonly defaultRepositoryPermissionSettingOrganizations: IOrganizationConnection; - readonly enterpriseServerInstallations: IEnterpriseServerInstallationConnection; - readonly ipAllowListEnabledSetting: IpAllowListEnabledSettingValue; - readonly ipAllowListEntries: IIpAllowListEntryConnection; - readonly isUpdatingDefaultRepositoryPermission: boolean; - readonly isUpdatingTwoFactorRequirement: boolean; - readonly membersCanChangeRepositoryVisibilitySetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanChangeRepositoryVisibilitySettingOrganizations: IOrganizationConnection; - readonly membersCanCreateInternalRepositoriesSetting: boolean | null; - readonly membersCanCreatePrivateRepositoriesSetting: boolean | null; - readonly membersCanCreatePublicRepositoriesSetting: boolean | null; - readonly membersCanCreateRepositoriesSetting: EnterpriseMembersCanCreateRepositoriesSettingValue | null; - readonly membersCanCreateRepositoriesSettingOrganizations: IOrganizationConnection; - readonly membersCanDeleteIssuesSetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanDeleteIssuesSettingOrganizations: IOrganizationConnection; - readonly membersCanDeleteRepositoriesSetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanDeleteRepositoriesSettingOrganizations: IOrganizationConnection; - readonly membersCanInviteCollaboratorsSetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanInviteCollaboratorsSettingOrganizations: IOrganizationConnection; - readonly membersCanMakePurchasesSetting: EnterpriseMembersCanMakePurchasesSettingValue; - readonly membersCanUpdateProtectedBranchesSetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanUpdateProtectedBranchesSettingOrganizations: IOrganizationConnection; - readonly membersCanViewDependencyInsightsSetting: EnterpriseEnabledDisabledSettingValue; - readonly membersCanViewDependencyInsightsSettingOrganizations: IOrganizationConnection; - readonly organizationProjectsSetting: EnterpriseEnabledDisabledSettingValue; - readonly organizationProjectsSettingOrganizations: IOrganizationConnection; - readonly outsideCollaborators: IEnterpriseOutsideCollaboratorConnection; - readonly pendingAdminInvitations: IEnterpriseAdministratorInvitationConnection; - readonly pendingCollaboratorInvitations: IRepositoryInvitationConnection; - readonly pendingCollaborators: IEnterprisePendingCollaboratorConnection; - readonly pendingMemberInvitations: IEnterprisePendingMemberInvitationConnection; - readonly repositoryProjectsSetting: EnterpriseEnabledDisabledSettingValue; - readonly repositoryProjectsSettingOrganizations: IOrganizationConnection; - readonly samlIdentityProvider: IEnterpriseIdentityProvider | null; - readonly samlIdentityProviderSettingOrganizations: IOrganizationConnection; - readonly teamDiscussionsSetting: EnterpriseEnabledDisabledSettingValue; - readonly teamDiscussionsSettingOrganizations: IOrganizationConnection; - readonly twoFactorRequiredSetting: EnterpriseEnabledSettingValue; - readonly twoFactorRequiredSettingOrganizations: IOrganizationConnection; -} - -interface EnterpriseOwnerInfoSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of all of the administrators for this enterprise. - */ - - readonly admins: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseMemberOrder; - query?: Variable<"query"> | string; - role?: Variable<"role"> | EnterpriseAdministratorRole; - }, - select: (t: EnterpriseAdministratorConnectionSelector) => T - ) => Field< - "admins", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | EnterpriseMemberOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | EnterpriseAdministratorRole> - ], - SelectionSet - >; - - /** - * @description A list of users in the enterprise who currently have two-factor authentication disabled. - */ - - readonly affiliatedUsersWithTwoFactorDisabled: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "affiliatedUsersWithTwoFactorDisabled", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. - */ - - readonly affiliatedUsersWithTwoFactorDisabledExist: () => Field<"affiliatedUsersWithTwoFactorDisabledExist">; - - /** - * @description The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. - */ - - readonly allowPrivateRepositoryForkingSetting: () => Field<"allowPrivateRepositoryForkingSetting">; - - /** - * @description A list of enterprise organizations configured with the provided private repository forking setting value. - */ - - readonly allowPrivateRepositoryForkingSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "allowPrivateRepositoryForkingSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for base repository permissions for organizations in this enterprise. - */ - - readonly defaultRepositoryPermissionSetting: () => Field<"defaultRepositoryPermissionSetting">; - - /** - * @description A list of enterprise organizations configured with the provided default repository permission. - */ - - readonly defaultRepositoryPermissionSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | DefaultRepositoryPermissionField; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "defaultRepositoryPermissionSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | DefaultRepositoryPermissionField> - ], - SelectionSet - >; - - /** - * @description Enterprise Server installations owned by the enterprise. - */ - - readonly enterpriseServerInstallations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - connectedOnly?: Variable<"connectedOnly"> | boolean; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseServerInstallationOrder; - }, - select: (t: EnterpriseServerInstallationConnectionSelector) => T - ) => Field< - "enterpriseServerInstallations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"connectedOnly", Variable<"connectedOnly"> | boolean>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument< - "orderBy", - Variable<"orderBy"> | EnterpriseServerInstallationOrder - > - ], - SelectionSet - >; - - /** - * @description The setting value for whether the enterprise has an IP allow list enabled. - */ - - readonly ipAllowListEnabledSetting: () => Field<"ipAllowListEnabledSetting">; - - /** - * @description The IP addresses that are allowed to access resources owned by the enterprise. - */ - - readonly ipAllowListEntries: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IpAllowListEntryOrder; - }, - select: (t: IpAllowListEntryConnectionSelector) => T - ) => Field< - "ipAllowListEntries", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IpAllowListEntryOrder> - ], - SelectionSet - >; - - /** - * @description Whether or not the default repository permission is currently being updated. - */ - - readonly isUpdatingDefaultRepositoryPermission: () => Field<"isUpdatingDefaultRepositoryPermission">; - - /** - * @description Whether the two-factor authentication requirement is currently being enforced. - */ - - readonly isUpdatingTwoFactorRequirement: () => Field<"isUpdatingTwoFactorRequirement">; - - /** - * @description The setting value for whether organization members with admin permissions on a -repository can change repository visibility. - */ - - readonly membersCanChangeRepositoryVisibilitySetting: () => Field<"membersCanChangeRepositoryVisibilitySetting">; - - /** - * @description A list of enterprise organizations configured with the provided can change repository visibility setting value. - */ - - readonly membersCanChangeRepositoryVisibilitySettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanChangeRepositoryVisibilitySettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether members of organizations in the enterprise can create internal repositories. - */ - - readonly membersCanCreateInternalRepositoriesSetting: () => Field<"membersCanCreateInternalRepositoriesSetting">; - - /** - * @description The setting value for whether members of organizations in the enterprise can create private repositories. - */ - - readonly membersCanCreatePrivateRepositoriesSetting: () => Field<"membersCanCreatePrivateRepositoriesSetting">; - - /** - * @description The setting value for whether members of organizations in the enterprise can create public repositories. - */ - - readonly membersCanCreatePublicRepositoriesSetting: () => Field<"membersCanCreatePublicRepositoriesSetting">; - - /** - * @description The setting value for whether members of organizations in the enterprise can create repositories. - */ - - readonly membersCanCreateRepositoriesSetting: () => Field<"membersCanCreateRepositoriesSetting">; - - /** - * @description A list of enterprise organizations configured with the provided repository creation setting value. - */ - - readonly membersCanCreateRepositoriesSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: - | Variable<"value"> - | OrganizationMembersCanCreateRepositoriesSettingValue; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanCreateRepositoriesSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument< - "value", - Variable<"value"> | OrganizationMembersCanCreateRepositoriesSettingValue - > - ], - SelectionSet - >; - - /** - * @description The setting value for whether members with admin permissions for repositories can delete issues. - */ - - readonly membersCanDeleteIssuesSetting: () => Field<"membersCanDeleteIssuesSetting">; - - /** - * @description A list of enterprise organizations configured with the provided members can delete issues setting value. - */ - - readonly membersCanDeleteIssuesSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanDeleteIssuesSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether members with admin permissions for repositories can delete or transfer repositories. - */ - - readonly membersCanDeleteRepositoriesSetting: () => Field<"membersCanDeleteRepositoriesSetting">; - - /** - * @description A list of enterprise organizations configured with the provided members can delete repositories setting value. - */ - - readonly membersCanDeleteRepositoriesSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanDeleteRepositoriesSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether members of organizations in the enterprise can invite outside collaborators. - */ - - readonly membersCanInviteCollaboratorsSetting: () => Field<"membersCanInviteCollaboratorsSetting">; - - /** - * @description A list of enterprise organizations configured with the provided members can invite collaborators setting value. - */ - - readonly membersCanInviteCollaboratorsSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanInviteCollaboratorsSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. - */ - - readonly membersCanMakePurchasesSetting: () => Field<"membersCanMakePurchasesSetting">; - - /** - * @description The setting value for whether members with admin permissions for repositories can update protected branches. - */ - - readonly membersCanUpdateProtectedBranchesSetting: () => Field<"membersCanUpdateProtectedBranchesSetting">; - - /** - * @description A list of enterprise organizations configured with the provided members can update protected branches setting value. - */ - - readonly membersCanUpdateProtectedBranchesSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanUpdateProtectedBranchesSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether members can view dependency insights. - */ - - readonly membersCanViewDependencyInsightsSetting: () => Field<"membersCanViewDependencyInsightsSetting">; - - /** - * @description A list of enterprise organizations configured with the provided members can view dependency insights setting value. - */ - - readonly membersCanViewDependencyInsightsSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "membersCanViewDependencyInsightsSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether organization projects are enabled for organizations in this enterprise. - */ - - readonly organizationProjectsSetting: () => Field<"organizationProjectsSetting">; - - /** - * @description A list of enterprise organizations configured with the provided organization projects setting value. - */ - - readonly organizationProjectsSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "organizationProjectsSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description A list of outside collaborators across the repositories in the enterprise. - */ - - readonly outsideCollaborators: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - login?: Variable<"login"> | string; - orderBy?: Variable<"orderBy"> | EnterpriseMemberOrder; - query?: Variable<"query"> | string; - visibility?: Variable<"visibility"> | RepositoryVisibility; - }, - select: (t: EnterpriseOutsideCollaboratorConnectionSelector) => T - ) => Field< - "outsideCollaborators", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"login", Variable<"login"> | string>, - Argument<"orderBy", Variable<"orderBy"> | EnterpriseMemberOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"visibility", Variable<"visibility"> | RepositoryVisibility> - ], - SelectionSet - >; - - /** - * @description A list of pending administrator invitations for the enterprise. - */ - - readonly pendingAdminInvitations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseAdministratorInvitationOrder; - query?: Variable<"query"> | string; - role?: Variable<"role"> | EnterpriseAdministratorRole; - }, - select: (t: EnterpriseAdministratorInvitationConnectionSelector) => T - ) => Field< - "pendingAdminInvitations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument< - "orderBy", - Variable<"orderBy"> | EnterpriseAdministratorInvitationOrder - >, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | EnterpriseAdministratorRole> - ], - SelectionSet - >; - - /** - * @description A list of pending collaborator invitations across the repositories in the enterprise. - */ - - readonly pendingCollaboratorInvitations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryInvitationOrder; - query?: Variable<"query"> | string; - }, - select: (t: RepositoryInvitationConnectionSelector) => T - ) => Field< - "pendingCollaboratorInvitations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryInvitationOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A list of pending collaborators across the repositories in the enterprise. - * @deprecated Repository invitations can now be associated with an email, not only an invitee. Use the `pendingCollaboratorInvitations` field instead. Removal on 2020-10-01 UTC. - */ - - readonly pendingCollaborators: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryInvitationOrder; - query?: Variable<"query"> | string; - }, - select: (t: EnterprisePendingCollaboratorConnectionSelector) => T - ) => Field< - "pendingCollaborators", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryInvitationOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A list of pending member invitations for organizations in the enterprise. - */ - - readonly pendingMemberInvitations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - }, - select: (t: EnterprisePendingMemberInvitationConnectionSelector) => T - ) => Field< - "pendingMemberInvitations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description The setting value for whether repository projects are enabled in this enterprise. - */ - - readonly repositoryProjectsSetting: () => Field<"repositoryProjectsSetting">; - - /** - * @description A list of enterprise organizations configured with the provided repository projects setting value. - */ - - readonly repositoryProjectsSettingOrganizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "repositoryProjectsSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The SAML Identity Provider for the enterprise. - */ - - readonly samlIdentityProvider: >( - select: (t: EnterpriseIdentityProviderSelector) => T - ) => Field<"samlIdentityProvider", never, SelectionSet>; - - /** - * @description A list of enterprise organizations configured with the SAML single sign-on setting value. - */ - - readonly samlIdentityProviderSettingOrganizations: < - T extends Array - >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | IdentityProviderConfigurationState; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "samlIdentityProviderSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | IdentityProviderConfigurationState> - ], - SelectionSet - >; - - /** - * @description The setting value for whether team discussions are enabled for organizations in this enterprise. - */ - - readonly teamDiscussionsSetting: () => Field<"teamDiscussionsSetting">; - - /** - * @description A list of enterprise organizations configured with the provided team discussions setting value. - */ - - readonly teamDiscussionsSettingOrganizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "teamDiscussionsSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; - - /** - * @description The setting value for whether the enterprise requires two-factor authentication for its organizations and users. - */ - - readonly twoFactorRequiredSetting: () => Field<"twoFactorRequiredSetting">; - - /** - * @description A list of enterprise organizations configured with the two-factor authentication setting value. - */ - - readonly twoFactorRequiredSettingOrganizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - value?: Variable<"value"> | boolean; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "twoFactorRequiredSettingOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"value", Variable<"value"> | boolean> - ], - SelectionSet - >; -} - -export const EnterpriseOwnerInfo: EnterpriseOwnerInfoSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of all of the administrators for this enterprise. - */ - - admins: (variables, select) => - new Field( - "admins", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseAdministratorConnection)) - ), - - /** - * @description A list of users in the enterprise who currently have two-factor authentication disabled. - */ - - affiliatedUsersWithTwoFactorDisabled: (variables, select) => - new Field( - "affiliatedUsersWithTwoFactorDisabled", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description Whether or not affiliated users with two-factor authentication disabled exist in the enterprise. - */ - affiliatedUsersWithTwoFactorDisabledExist: () => - new Field("affiliatedUsersWithTwoFactorDisabledExist"), - - /** - * @description The setting value for whether private repository forking is enabled for repositories in organizations in this enterprise. - */ - allowPrivateRepositoryForkingSetting: () => - new Field("allowPrivateRepositoryForkingSetting"), - - /** - * @description A list of enterprise organizations configured with the provided private repository forking setting value. - */ - - allowPrivateRepositoryForkingSettingOrganizations: (variables, select) => - new Field( - "allowPrivateRepositoryForkingSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for base repository permissions for organizations in this enterprise. - */ - defaultRepositoryPermissionSetting: () => - new Field("defaultRepositoryPermissionSetting"), - - /** - * @description A list of enterprise organizations configured with the provided default repository permission. - */ - - defaultRepositoryPermissionSettingOrganizations: (variables, select) => - new Field( - "defaultRepositoryPermissionSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description Enterprise Server installations owned by the enterprise. - */ - - enterpriseServerInstallations: (variables, select) => - new Field( - "enterpriseServerInstallations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("connectedOnly", variables.connectedOnly, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseServerInstallationConnection)) - ), - - /** - * @description The setting value for whether the enterprise has an IP allow list enabled. - */ - ipAllowListEnabledSetting: () => new Field("ipAllowListEnabledSetting"), - - /** - * @description The IP addresses that are allowed to access resources owned by the enterprise. - */ - - ipAllowListEntries: (variables, select) => - new Field( - "ipAllowListEntries", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(IpAllowListEntryConnection)) - ), - - /** - * @description Whether or not the default repository permission is currently being updated. - */ - isUpdatingDefaultRepositoryPermission: () => - new Field("isUpdatingDefaultRepositoryPermission"), - - /** - * @description Whether the two-factor authentication requirement is currently being enforced. - */ - isUpdatingTwoFactorRequirement: () => - new Field("isUpdatingTwoFactorRequirement"), - - /** - * @description The setting value for whether organization members with admin permissions on a -repository can change repository visibility. - */ - membersCanChangeRepositoryVisibilitySetting: () => - new Field("membersCanChangeRepositoryVisibilitySetting"), - - /** - * @description A list of enterprise organizations configured with the provided can change repository visibility setting value. - */ - - membersCanChangeRepositoryVisibilitySettingOrganizations: ( - variables, - select - ) => - new Field( - "membersCanChangeRepositoryVisibilitySettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether members of organizations in the enterprise can create internal repositories. - */ - membersCanCreateInternalRepositoriesSetting: () => - new Field("membersCanCreateInternalRepositoriesSetting"), - - /** - * @description The setting value for whether members of organizations in the enterprise can create private repositories. - */ - membersCanCreatePrivateRepositoriesSetting: () => - new Field("membersCanCreatePrivateRepositoriesSetting"), - - /** - * @description The setting value for whether members of organizations in the enterprise can create public repositories. - */ - membersCanCreatePublicRepositoriesSetting: () => - new Field("membersCanCreatePublicRepositoriesSetting"), - - /** - * @description The setting value for whether members of organizations in the enterprise can create repositories. - */ - membersCanCreateRepositoriesSetting: () => - new Field("membersCanCreateRepositoriesSetting"), - - /** - * @description A list of enterprise organizations configured with the provided repository creation setting value. - */ - - membersCanCreateRepositoriesSettingOrganizations: (variables, select) => - new Field( - "membersCanCreateRepositoriesSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether members with admin permissions for repositories can delete issues. - */ - membersCanDeleteIssuesSetting: () => - new Field("membersCanDeleteIssuesSetting"), - - /** - * @description A list of enterprise organizations configured with the provided members can delete issues setting value. - */ - - membersCanDeleteIssuesSettingOrganizations: (variables, select) => - new Field( - "membersCanDeleteIssuesSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether members with admin permissions for repositories can delete or transfer repositories. - */ - membersCanDeleteRepositoriesSetting: () => - new Field("membersCanDeleteRepositoriesSetting"), - - /** - * @description A list of enterprise organizations configured with the provided members can delete repositories setting value. - */ - - membersCanDeleteRepositoriesSettingOrganizations: (variables, select) => - new Field( - "membersCanDeleteRepositoriesSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether members of organizations in the enterprise can invite outside collaborators. - */ - membersCanInviteCollaboratorsSetting: () => - new Field("membersCanInviteCollaboratorsSetting"), - - /** - * @description A list of enterprise organizations configured with the provided members can invite collaborators setting value. - */ - - membersCanInviteCollaboratorsSettingOrganizations: (variables, select) => - new Field( - "membersCanInviteCollaboratorsSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description Indicates whether members of this enterprise's organizations can purchase additional services for those organizations. - */ - membersCanMakePurchasesSetting: () => - new Field("membersCanMakePurchasesSetting"), - - /** - * @description The setting value for whether members with admin permissions for repositories can update protected branches. - */ - membersCanUpdateProtectedBranchesSetting: () => - new Field("membersCanUpdateProtectedBranchesSetting"), - - /** - * @description A list of enterprise organizations configured with the provided members can update protected branches setting value. - */ - - membersCanUpdateProtectedBranchesSettingOrganizations: (variables, select) => - new Field( - "membersCanUpdateProtectedBranchesSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether members can view dependency insights. - */ - membersCanViewDependencyInsightsSetting: () => - new Field("membersCanViewDependencyInsightsSetting"), - - /** - * @description A list of enterprise organizations configured with the provided members can view dependency insights setting value. - */ - - membersCanViewDependencyInsightsSettingOrganizations: (variables, select) => - new Field( - "membersCanViewDependencyInsightsSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether organization projects are enabled for organizations in this enterprise. - */ - organizationProjectsSetting: () => new Field("organizationProjectsSetting"), - - /** - * @description A list of enterprise organizations configured with the provided organization projects setting value. - */ - - organizationProjectsSettingOrganizations: (variables, select) => - new Field( - "organizationProjectsSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description A list of outside collaborators across the repositories in the enterprise. - */ - - outsideCollaborators: (variables, select) => - new Field( - "outsideCollaborators", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("login", variables.login, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("visibility", variables.visibility, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseOutsideCollaboratorConnection)) - ), - - /** - * @description A list of pending administrator invitations for the enterprise. - */ - - pendingAdminInvitations: (variables, select) => - new Field( - "pendingAdminInvitations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseAdministratorInvitationConnection)) - ), - - /** - * @description A list of pending collaborator invitations across the repositories in the enterprise. - */ - - pendingCollaboratorInvitations: (variables, select) => - new Field( - "pendingCollaboratorInvitations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryInvitationConnection)) - ), - - /** - * @description A list of pending collaborators across the repositories in the enterprise. - * @deprecated Repository invitations can now be associated with an email, not only an invitee. Use the `pendingCollaboratorInvitations` field instead. Removal on 2020-10-01 UTC. - */ - - pendingCollaborators: (variables, select) => - new Field( - "pendingCollaborators", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(EnterprisePendingCollaboratorConnection)) - ), - - /** - * @description A list of pending member invitations for organizations in the enterprise. - */ - - pendingMemberInvitations: (variables, select) => - new Field( - "pendingMemberInvitations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(EnterprisePendingMemberInvitationConnection)) - ), - - /** - * @description The setting value for whether repository projects are enabled in this enterprise. - */ - repositoryProjectsSetting: () => new Field("repositoryProjectsSetting"), - - /** - * @description A list of enterprise organizations configured with the provided repository projects setting value. - */ - - repositoryProjectsSettingOrganizations: (variables, select) => - new Field( - "repositoryProjectsSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The SAML Identity Provider for the enterprise. - */ - - samlIdentityProvider: (select) => - new Field( - "samlIdentityProvider", - undefined as never, - new SelectionSet(select(EnterpriseIdentityProvider)) - ), - - /** - * @description A list of enterprise organizations configured with the SAML single sign-on setting value. - */ - - samlIdentityProviderSettingOrganizations: (variables, select) => - new Field( - "samlIdentityProviderSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether team discussions are enabled for organizations in this enterprise. - */ - teamDiscussionsSetting: () => new Field("teamDiscussionsSetting"), - - /** - * @description A list of enterprise organizations configured with the provided team discussions setting value. - */ - - teamDiscussionsSettingOrganizations: (variables, select) => - new Field( - "teamDiscussionsSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The setting value for whether the enterprise requires two-factor authentication for its organizations and users. - */ - twoFactorRequiredSetting: () => new Field("twoFactorRequiredSetting"), - - /** - * @description A list of enterprise organizations configured with the two-factor authentication setting value. - */ - - twoFactorRequiredSettingOrganizations: (variables, select) => - new Field( - "twoFactorRequiredSettingOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("value", variables.value, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), -}; - -export interface IEnterprisePendingCollaboratorConnection { - readonly __typename: "EnterprisePendingCollaboratorConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterprisePendingCollaboratorConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterprisePendingCollaboratorEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterprisePendingCollaboratorConnection: EnterprisePendingCollaboratorConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterprisePendingCollaboratorEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterprisePendingCollaboratorEdge { - readonly __typename: "EnterprisePendingCollaboratorEdge"; - readonly cursor: string; - readonly isUnlicensed: boolean; - readonly node: IUser | null; - readonly repositories: IEnterpriseRepositoryInfoConnection; -} - -interface EnterprisePendingCollaboratorEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description Whether the invited collaborator does not have a license for the enterprise. - * @deprecated All pending collaborators consume a license Removal on 2021-01-01 UTC. - */ - - readonly isUnlicensed: () => Field<"isUnlicensed">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The enterprise organization repositories this user is a member of. - */ - - readonly repositories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - }, - select: (t: EnterpriseRepositoryInfoConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder> - ], - SelectionSet - >; -} - -export const EnterprisePendingCollaboratorEdge: EnterprisePendingCollaboratorEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description Whether the invited collaborator does not have a license for the enterprise. - * @deprecated All pending collaborators consume a license Removal on 2021-01-01 UTC. - */ - isUnlicensed: () => new Field("isUnlicensed"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The enterprise organization repositories this user is a member of. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseRepositoryInfoConnection)) - ), -}; - -export interface IEnterprisePendingMemberInvitationConnection { - readonly __typename: "EnterprisePendingMemberInvitationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly totalUniqueUserCount: number; -} - -interface EnterprisePendingMemberInvitationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterprisePendingMemberInvitationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description Identifies the total count of unique users in the connection. - */ - - readonly totalUniqueUserCount: () => Field<"totalUniqueUserCount">; -} - -export const EnterprisePendingMemberInvitationConnection: EnterprisePendingMemberInvitationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterprisePendingMemberInvitationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description Identifies the total count of unique users in the connection. - */ - totalUniqueUserCount: () => new Field("totalUniqueUserCount"), -}; - -export interface IEnterprisePendingMemberInvitationEdge { - readonly __typename: "EnterprisePendingMemberInvitationEdge"; - readonly cursor: string; - readonly isUnlicensed: boolean; - readonly node: IOrganizationInvitation | null; -} - -interface EnterprisePendingMemberInvitationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description Whether the invitation has a license for the enterprise. - * @deprecated All pending members consume a license Removal on 2020-07-01 UTC. - */ - - readonly isUnlicensed: () => Field<"isUnlicensed">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterprisePendingMemberInvitationEdge: EnterprisePendingMemberInvitationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description Whether the invitation has a license for the enterprise. - * @deprecated All pending members consume a license Removal on 2020-07-01 UTC. - */ - isUnlicensed: () => new Field("isUnlicensed"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), -}; - -export interface IEnterpriseRepositoryInfo extends INode { - readonly __typename: "EnterpriseRepositoryInfo"; - readonly isPrivate: boolean; - readonly name: string; - readonly nameWithOwner: string; -} - -interface EnterpriseRepositoryInfoSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies if the repository is private. - */ - - readonly isPrivate: () => Field<"isPrivate">; - - /** - * @description The repository's name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The repository's name with owner. - */ - - readonly nameWithOwner: () => Field<"nameWithOwner">; -} - -export const isEnterpriseRepositoryInfo = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseRepositoryInfo"; -}; - -export const EnterpriseRepositoryInfo: EnterpriseRepositoryInfoSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Identifies if the repository is private. - */ - isPrivate: () => new Field("isPrivate"), - - /** - * @description The repository's name. - */ - name: () => new Field("name"), - - /** - * @description The repository's name with owner. - */ - nameWithOwner: () => new Field("nameWithOwner"), -}; - -export interface IEnterpriseRepositoryInfoConnection { - readonly __typename: "EnterpriseRepositoryInfoConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseRepositoryInfoConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseRepositoryInfoEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseRepositoryInfoSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseRepositoryInfoConnection: EnterpriseRepositoryInfoConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseRepositoryInfoEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseRepositoryInfo)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseRepositoryInfoEdge { - readonly __typename: "EnterpriseRepositoryInfoEdge"; - readonly cursor: string; - readonly node: IEnterpriseRepositoryInfo | null; -} - -interface EnterpriseRepositoryInfoEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseRepositoryInfoSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseRepositoryInfoEdge: EnterpriseRepositoryInfoEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseRepositoryInfo)) - ), -}; - -export interface IEnterpriseServerInstallation extends INode { - readonly __typename: "EnterpriseServerInstallation"; - readonly createdAt: unknown; - readonly customerName: string; - readonly hostName: string; - readonly isConnected: boolean; - readonly updatedAt: unknown; - readonly userAccounts: IEnterpriseServerUserAccountConnection; - readonly userAccountsUploads: IEnterpriseServerUserAccountsUploadConnection; -} - -interface EnterpriseServerInstallationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The customer name to which the Enterprise Server installation belongs. - */ - - readonly customerName: () => Field<"customerName">; - - /** - * @description The host name of the Enterprise Server installation. - */ - - readonly hostName: () => Field<"hostName">; - - readonly id: () => Field<"id">; - - /** - * @description Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. - */ - - readonly isConnected: () => Field<"isConnected">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description User accounts on this Enterprise Server installation. - */ - - readonly userAccounts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseServerUserAccountOrder; - }, - select: (t: EnterpriseServerUserAccountConnectionSelector) => T - ) => Field< - "userAccounts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument< - "orderBy", - Variable<"orderBy"> | EnterpriseServerUserAccountOrder - > - ], - SelectionSet - >; - - /** - * @description User accounts uploads for the Enterprise Server installation. - */ - - readonly userAccountsUploads: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseServerUserAccountsUploadOrder; - }, - select: (t: EnterpriseServerUserAccountsUploadConnectionSelector) => T - ) => Field< - "userAccountsUploads", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument< - "orderBy", - Variable<"orderBy"> | EnterpriseServerUserAccountsUploadOrder - > - ], - SelectionSet - >; -} - -export const isEnterpriseServerInstallation = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseServerInstallation"; -}; - -export const EnterpriseServerInstallation: EnterpriseServerInstallationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The customer name to which the Enterprise Server installation belongs. - */ - customerName: () => new Field("customerName"), - - /** - * @description The host name of the Enterprise Server installation. - */ - hostName: () => new Field("hostName"), - id: () => new Field("id"), - - /** - * @description Whether or not the installation is connected to an Enterprise Server installation via GitHub Connect. - */ - isConnected: () => new Field("isConnected"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description User accounts on this Enterprise Server installation. - */ - - userAccounts: (variables, select) => - new Field( - "userAccounts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseServerUserAccountConnection)) - ), - - /** - * @description User accounts uploads for the Enterprise Server installation. - */ - - userAccountsUploads: (variables, select) => - new Field( - "userAccountsUploads", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseServerUserAccountsUploadConnection)) - ), -}; - -export interface IEnterpriseServerInstallationConnection { - readonly __typename: "EnterpriseServerInstallationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseServerInstallationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseServerInstallationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseServerInstallationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseServerInstallationConnection: EnterpriseServerInstallationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseServerInstallationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseServerInstallation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseServerInstallationEdge { - readonly __typename: "EnterpriseServerInstallationEdge"; - readonly cursor: string; - readonly node: IEnterpriseServerInstallation | null; -} - -interface EnterpriseServerInstallationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseServerInstallationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseServerInstallationEdge: EnterpriseServerInstallationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseServerInstallation)) - ), -}; - -export interface IEnterpriseServerUserAccount extends INode { - readonly __typename: "EnterpriseServerUserAccount"; - readonly createdAt: unknown; - readonly emails: IEnterpriseServerUserAccountEmailConnection; - readonly enterpriseServerInstallation: IEnterpriseServerInstallation; - readonly isSiteAdmin: boolean; - readonly login: string; - readonly profileName: string | null; - readonly remoteCreatedAt: unknown; - readonly remoteUserId: number; - readonly updatedAt: unknown; -} - -interface EnterpriseServerUserAccountSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description User emails belonging to this user account. - */ - - readonly emails: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | EnterpriseServerUserAccountEmailOrder; - }, - select: (t: EnterpriseServerUserAccountEmailConnectionSelector) => T - ) => Field< - "emails", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument< - "orderBy", - Variable<"orderBy"> | EnterpriseServerUserAccountEmailOrder - > - ], - SelectionSet - >; - - /** - * @description The Enterprise Server installation on which this user account exists. - */ - - readonly enterpriseServerInstallation: >( - select: (t: EnterpriseServerInstallationSelector) => T - ) => Field<"enterpriseServerInstallation", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Whether the user account is a site administrator on the Enterprise Server installation. - */ - - readonly isSiteAdmin: () => Field<"isSiteAdmin">; - - /** - * @description The login of the user account on the Enterprise Server installation. - */ - - readonly login: () => Field<"login">; - - /** - * @description The profile name of the user account on the Enterprise Server installation. - */ - - readonly profileName: () => Field<"profileName">; - - /** - * @description The date and time when the user account was created on the Enterprise Server installation. - */ - - readonly remoteCreatedAt: () => Field<"remoteCreatedAt">; - - /** - * @description The ID of the user account on the Enterprise Server installation. - */ - - readonly remoteUserId: () => Field<"remoteUserId">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isEnterpriseServerUserAccount = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseServerUserAccount"; -}; - -export const EnterpriseServerUserAccount: EnterpriseServerUserAccountSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description User emails belonging to this user account. - */ - - emails: (variables, select) => - new Field( - "emails", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseServerUserAccountEmailConnection)) - ), - - /** - * @description The Enterprise Server installation on which this user account exists. - */ - - enterpriseServerInstallation: (select) => - new Field( - "enterpriseServerInstallation", - undefined as never, - new SelectionSet(select(EnterpriseServerInstallation)) - ), - - id: () => new Field("id"), - - /** - * @description Whether the user account is a site administrator on the Enterprise Server installation. - */ - isSiteAdmin: () => new Field("isSiteAdmin"), - - /** - * @description The login of the user account on the Enterprise Server installation. - */ - login: () => new Field("login"), - - /** - * @description The profile name of the user account on the Enterprise Server installation. - */ - profileName: () => new Field("profileName"), - - /** - * @description The date and time when the user account was created on the Enterprise Server installation. - */ - remoteCreatedAt: () => new Field("remoteCreatedAt"), - - /** - * @description The ID of the user account on the Enterprise Server installation. - */ - remoteUserId: () => new Field("remoteUserId"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IEnterpriseServerUserAccountConnection { - readonly __typename: "EnterpriseServerUserAccountConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseServerUserAccountConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseServerUserAccountEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseServerUserAccountSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseServerUserAccountConnection: EnterpriseServerUserAccountConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccount)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseServerUserAccountEdge { - readonly __typename: "EnterpriseServerUserAccountEdge"; - readonly cursor: string; - readonly node: IEnterpriseServerUserAccount | null; -} - -interface EnterpriseServerUserAccountEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseServerUserAccountSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseServerUserAccountEdge: EnterpriseServerUserAccountEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccount)) - ), -}; - -export interface IEnterpriseServerUserAccountEmail extends INode { - readonly __typename: "EnterpriseServerUserAccountEmail"; - readonly createdAt: unknown; - readonly email: string; - readonly isPrimary: boolean; - readonly updatedAt: unknown; - readonly userAccount: IEnterpriseServerUserAccount; -} - -interface EnterpriseServerUserAccountEmailSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The email address. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description Indicates whether this is the primary email of the associated user account. - */ - - readonly isPrimary: () => Field<"isPrimary">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The user account to which the email belongs. - */ - - readonly userAccount: >( - select: (t: EnterpriseServerUserAccountSelector) => T - ) => Field<"userAccount", never, SelectionSet>; -} - -export const isEnterpriseServerUserAccountEmail = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseServerUserAccountEmail"; -}; - -export const EnterpriseServerUserAccountEmail: EnterpriseServerUserAccountEmailSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The email address. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description Indicates whether this is the primary email of the associated user account. - */ - isPrimary: () => new Field("isPrimary"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The user account to which the email belongs. - */ - - userAccount: (select) => - new Field( - "userAccount", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccount)) - ), -}; - -export interface IEnterpriseServerUserAccountEmailConnection { - readonly __typename: "EnterpriseServerUserAccountEmailConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseServerUserAccountEmailConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseServerUserAccountEmailEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseServerUserAccountEmailSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseServerUserAccountEmailConnection: EnterpriseServerUserAccountEmailConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountEmailEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountEmail)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseServerUserAccountEmailEdge { - readonly __typename: "EnterpriseServerUserAccountEmailEdge"; - readonly cursor: string; - readonly node: IEnterpriseServerUserAccountEmail | null; -} - -interface EnterpriseServerUserAccountEmailEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseServerUserAccountEmailSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseServerUserAccountEmailEdge: EnterpriseServerUserAccountEmailEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountEmail)) - ), -}; - -export interface IEnterpriseServerUserAccountsUpload extends INode { - readonly __typename: "EnterpriseServerUserAccountsUpload"; - readonly createdAt: unknown; - readonly enterprise: IEnterprise; - readonly enterpriseServerInstallation: IEnterpriseServerInstallation; - readonly name: string; - readonly syncState: EnterpriseServerUserAccountsUploadSyncState; - readonly updatedAt: unknown; -} - -interface EnterpriseServerUserAccountsUploadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The enterprise to which this upload belongs. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description The Enterprise Server installation for which this upload was generated. - */ - - readonly enterpriseServerInstallation: >( - select: (t: EnterpriseServerInstallationSelector) => T - ) => Field<"enterpriseServerInstallation", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The name of the file uploaded. - */ - - readonly name: () => Field<"name">; - - /** - * @description The synchronization state of the upload - */ - - readonly syncState: () => Field<"syncState">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isEnterpriseServerUserAccountsUpload = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseServerUserAccountsUpload"; -}; - -export const EnterpriseServerUserAccountsUpload: EnterpriseServerUserAccountsUploadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The enterprise to which this upload belongs. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description The Enterprise Server installation for which this upload was generated. - */ - - enterpriseServerInstallation: (select) => - new Field( - "enterpriseServerInstallation", - undefined as never, - new SelectionSet(select(EnterpriseServerInstallation)) - ), - - id: () => new Field("id"), - - /** - * @description The name of the file uploaded. - */ - name: () => new Field("name"), - - /** - * @description The synchronization state of the upload - */ - syncState: () => new Field("syncState"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IEnterpriseServerUserAccountsUploadConnection { - readonly __typename: "EnterpriseServerUserAccountsUploadConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseServerUserAccountsUploadConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseServerUserAccountsUploadEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseServerUserAccountsUploadSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseServerUserAccountsUploadConnection: EnterpriseServerUserAccountsUploadConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountsUploadEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountsUpload)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseServerUserAccountsUploadEdge { - readonly __typename: "EnterpriseServerUserAccountsUploadEdge"; - readonly cursor: string; - readonly node: IEnterpriseServerUserAccountsUpload | null; -} - -interface EnterpriseServerUserAccountsUploadEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseServerUserAccountsUploadSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseServerUserAccountsUploadEdge: EnterpriseServerUserAccountsUploadEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseServerUserAccountsUpload)) - ), -}; - -export interface IEnterpriseUserAccount extends IActor, INode { - readonly __typename: "EnterpriseUserAccount"; - readonly createdAt: unknown; - readonly enterprise: IEnterprise; - readonly name: string | null; - readonly organizations: IEnterpriseOrganizationMembershipConnection; - readonly updatedAt: unknown; - readonly user: IUser | null; -} - -interface EnterpriseUserAccountSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the enterprise user account's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The enterprise in which this user account exists. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description An identifier for the enterprise user account, a login or email address - */ - - readonly login: () => Field<"login">; - - /** - * @description The name of the enterprise user account - */ - - readonly name: () => Field<"name">; - - /** - * @description A list of enterprise organizations this user is a member of. - */ - - readonly organizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | OrganizationOrder; - query?: Variable<"query"> | string; - role?: Variable<"role"> | EnterpriseUserAccountMembershipRole; - }, - select: (t: EnterpriseOrganizationMembershipConnectionSelector) => T - ) => Field< - "organizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | OrganizationOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | EnterpriseUserAccountMembershipRole> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this user. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this user. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user within the enterprise. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isEnterpriseUserAccount = ( - object: Record -): object is Partial => { - return object.__typename === "EnterpriseUserAccount"; -}; - -export const EnterpriseUserAccount: EnterpriseUserAccountSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the enterprise user account's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The enterprise in which this user account exists. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - id: () => new Field("id"), - - /** - * @description An identifier for the enterprise user account, a login or email address - */ - login: () => new Field("login"), - - /** - * @description The name of the enterprise user account - */ - name: () => new Field("name"), - - /** - * @description A list of enterprise organizations this user is a member of. - */ - - organizations: (variables, select) => - new Field( - "organizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseOrganizationMembershipConnection)) - ), - - /** - * @description The HTTP path for this user. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this user. - */ - url: () => new Field("url"), - - /** - * @description The user within the enterprise. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IEnterpriseUserAccountConnection { - readonly __typename: "EnterpriseUserAccountConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface EnterpriseUserAccountConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: EnterpriseUserAccountEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: EnterpriseUserAccountSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const EnterpriseUserAccountConnection: EnterpriseUserAccountConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(EnterpriseUserAccountEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(EnterpriseUserAccount)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IEnterpriseUserAccountEdge { - readonly __typename: "EnterpriseUserAccountEdge"; - readonly cursor: string; - readonly node: IEnterpriseUserAccount | null; -} - -interface EnterpriseUserAccountEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: EnterpriseUserAccountSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const EnterpriseUserAccountEdge: EnterpriseUserAccountEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(EnterpriseUserAccount)) - ), -}; - -export interface IExternalIdentity extends INode { - readonly __typename: "ExternalIdentity"; - readonly guid: string; - readonly organizationInvitation: IOrganizationInvitation | null; - readonly samlIdentity: IExternalIdentitySamlAttributes | null; - readonly scimIdentity: IExternalIdentityScimAttributes | null; - readonly user: IUser | null; -} - -interface ExternalIdentitySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The GUID for this identity - */ - - readonly guid: () => Field<"guid">; - - readonly id: () => Field<"id">; - - /** - * @description Organization invitation for this SCIM-provisioned external identity - */ - - readonly organizationInvitation: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"organizationInvitation", never, SelectionSet>; - - /** - * @description SAML Identity attributes - */ - - readonly samlIdentity: >( - select: (t: ExternalIdentitySamlAttributesSelector) => T - ) => Field<"samlIdentity", never, SelectionSet>; - - /** - * @description SCIM Identity attributes - */ - - readonly scimIdentity: >( - select: (t: ExternalIdentityScimAttributesSelector) => T - ) => Field<"scimIdentity", never, SelectionSet>; - - /** - * @description User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isExternalIdentity = ( - object: Record -): object is Partial => { - return object.__typename === "ExternalIdentity"; -}; - -export const ExternalIdentity: ExternalIdentitySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The GUID for this identity - */ - guid: () => new Field("guid"), - id: () => new Field("id"), - - /** - * @description Organization invitation for this SCIM-provisioned external identity - */ - - organizationInvitation: (select) => - new Field( - "organizationInvitation", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), - - /** - * @description SAML Identity attributes - */ - - samlIdentity: (select) => - new Field( - "samlIdentity", - undefined as never, - new SelectionSet(select(ExternalIdentitySamlAttributes)) - ), - - /** - * @description SCIM Identity attributes - */ - - scimIdentity: (select) => - new Field( - "scimIdentity", - undefined as never, - new SelectionSet(select(ExternalIdentityScimAttributes)) - ), - - /** - * @description User linked to this external identity. Will be NULL if this identity has not been claimed by an organization member. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IExternalIdentityConnection { - readonly __typename: "ExternalIdentityConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ExternalIdentityConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ExternalIdentityEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ExternalIdentitySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ExternalIdentityConnection: ExternalIdentityConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ExternalIdentityEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ExternalIdentity)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IExternalIdentityEdge { - readonly __typename: "ExternalIdentityEdge"; - readonly cursor: string; - readonly node: IExternalIdentity | null; -} - -interface ExternalIdentityEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ExternalIdentitySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ExternalIdentityEdge: ExternalIdentityEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ExternalIdentity)) - ), -}; - -export interface IExternalIdentitySamlAttributes { - readonly __typename: "ExternalIdentitySamlAttributes"; - readonly emails: ReadonlyArray | null; - readonly familyName: string | null; - readonly givenName: string | null; - readonly groups: ReadonlyArray | null; - readonly nameId: string | null; - readonly username: string | null; -} - -interface ExternalIdentitySamlAttributesSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The emails associated with the SAML identity - */ - - readonly emails: >( - select: (t: UserEmailMetadataSelector) => T - ) => Field<"emails", never, SelectionSet>; - - /** - * @description Family name of the SAML identity - */ - - readonly familyName: () => Field<"familyName">; - - /** - * @description Given name of the SAML identity - */ - - readonly givenName: () => Field<"givenName">; - - /** - * @description The groups linked to this identity in IDP - */ - - readonly groups: () => Field<"groups">; - - /** - * @description The NameID of the SAML identity - */ - - readonly nameId: () => Field<"nameId">; - - /** - * @description The userName of the SAML identity - */ - - readonly username: () => Field<"username">; -} - -export const ExternalIdentitySamlAttributes: ExternalIdentitySamlAttributesSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The emails associated with the SAML identity - */ - - emails: (select) => - new Field( - "emails", - undefined as never, - new SelectionSet(select(UserEmailMetadata)) - ), - - /** - * @description Family name of the SAML identity - */ - familyName: () => new Field("familyName"), - - /** - * @description Given name of the SAML identity - */ - givenName: () => new Field("givenName"), - - /** - * @description The groups linked to this identity in IDP - */ - groups: () => new Field("groups"), - - /** - * @description The NameID of the SAML identity - */ - nameId: () => new Field("nameId"), - - /** - * @description The userName of the SAML identity - */ - username: () => new Field("username"), -}; - -export interface IExternalIdentityScimAttributes { - readonly __typename: "ExternalIdentityScimAttributes"; - readonly emails: ReadonlyArray | null; - readonly familyName: string | null; - readonly givenName: string | null; - readonly groups: ReadonlyArray | null; - readonly username: string | null; -} - -interface ExternalIdentityScimAttributesSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The emails associated with the SCIM identity - */ - - readonly emails: >( - select: (t: UserEmailMetadataSelector) => T - ) => Field<"emails", never, SelectionSet>; - - /** - * @description Family name of the SCIM identity - */ - - readonly familyName: () => Field<"familyName">; - - /** - * @description Given name of the SCIM identity - */ - - readonly givenName: () => Field<"givenName">; - - /** - * @description The groups linked to this identity in IDP - */ - - readonly groups: () => Field<"groups">; - - /** - * @description The userName of the SCIM identity - */ - - readonly username: () => Field<"username">; -} - -export const ExternalIdentityScimAttributes: ExternalIdentityScimAttributesSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The emails associated with the SCIM identity - */ - - emails: (select) => - new Field( - "emails", - undefined as never, - new SelectionSet(select(UserEmailMetadata)) - ), - - /** - * @description Family name of the SCIM identity - */ - familyName: () => new Field("familyName"), - - /** - * @description Given name of the SCIM identity - */ - givenName: () => new Field("givenName"), - - /** - * @description The groups linked to this identity in IDP - */ - groups: () => new Field("groups"), - - /** - * @description The userName of the SCIM identity - */ - username: () => new Field("username"), -}; - -export interface IFollowUserPayload { - readonly __typename: "FollowUserPayload"; - readonly clientMutationId: string | null; - readonly user: IUser | null; -} - -interface FollowUserPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The user that was followed. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const FollowUserPayload: FollowUserPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The user that was followed. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IFollowerConnection { - readonly __typename: "FollowerConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface FollowerConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: UserEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const FollowerConnection: FollowerConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(UserEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IFollowingConnection { - readonly __typename: "FollowingConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface FollowingConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: UserEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const FollowingConnection: FollowingConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(UserEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IFundingLink { - readonly __typename: "FundingLink"; - readonly platform: FundingPlatform; - readonly url: unknown; -} - -interface FundingLinkSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The funding platform this link is for. - */ - - readonly platform: () => Field<"platform">; - - /** - * @description The configured URL for this funding link. - */ - - readonly url: () => Field<"url">; -} - -export const FundingLink: FundingLinkSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The funding platform this link is for. - */ - platform: () => new Field("platform"), - - /** - * @description The configured URL for this funding link. - */ - url: () => new Field("url"), -}; - -export interface IGenericHovercardContext extends IHovercardContext { - readonly __typename: "GenericHovercardContext"; -} - -interface GenericHovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; -} - -export const isGenericHovercardContext = ( - object: Record -): object is Partial => { - return object.__typename === "GenericHovercardContext"; -}; - -export const GenericHovercardContext: GenericHovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), -}; - -export interface IGist extends INode, IStarrable, IUniformResourceLocatable { - readonly __typename: "Gist"; - readonly comments: IGistCommentConnection; - readonly createdAt: unknown; - readonly description: string | null; - readonly files: ReadonlyArray | null; - readonly forks: IGistConnection; - readonly isFork: boolean; - readonly isPublic: boolean; - readonly name: string; - readonly owner: IRepositoryOwner | null; - readonly pushedAt: unknown | null; - readonly updatedAt: unknown; -} - -interface GistSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of comments associated with the gist - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: GistCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The gist description. - */ - - readonly description: () => Field<"description">; - - /** - * @description The files in this gist. - */ - - readonly files: >( - variables: { - limit?: Variable<"limit"> | number; - oid?: Variable<"oid"> | unknown; - }, - select: (t: GistFileSelector) => T - ) => Field< - "files", - [ - Argument<"limit", Variable<"limit"> | number>, - Argument<"oid", Variable<"oid"> | unknown> - ], - SelectionSet - >; - - /** - * @description A list of forks associated with the gist - */ - - readonly forks: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | GistOrder; - }, - select: (t: GistConnectionSelector) => T - ) => Field< - "forks", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | GistOrder> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description Identifies if the gist is a fork. - */ - - readonly isFork: () => Field<"isFork">; - - /** - * @description Whether the gist is public or not. - */ - - readonly isPublic: () => Field<"isPublic">; - - /** - * @description The gist name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The gist owner. - */ - - readonly owner: >( - select: (t: RepositoryOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; - - /** - * @description Identifies when the gist was last pushed to. - */ - - readonly pushedAt: () => Field<"pushedAt">; - - /** - * @description The HTML path to this resource. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Returns a count of how many stargazers there are on this object - */ - - readonly stargazerCount: () => Field<"stargazerCount">; - - /** - * @description A list of users who have starred this starrable. - */ - - readonly stargazers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | StarOrder; - }, - select: (t: StargazerConnectionSelector) => T - ) => Field< - "stargazers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | StarOrder> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this Gist. - */ - - readonly url: () => Field<"url">; - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - - readonly viewerHasStarred: () => Field<"viewerHasStarred">; -} - -export const isGist = ( - object: Record -): object is Partial => { - return object.__typename === "Gist"; -}; - -export const Gist: GistSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of comments associated with the gist - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(GistCommentConnection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The gist description. - */ - description: () => new Field("description"), - - /** - * @description The files in this gist. - */ - - files: (variables, select) => - new Field( - "files", - [ - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("oid", variables.oid, _ENUM_VALUES), - ], - new SelectionSet(select(GistFile)) - ), - - /** - * @description A list of forks associated with the gist - */ - - forks: (variables, select) => - new Field( - "forks", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(GistConnection)) - ), - - id: () => new Field("id"), - - /** - * @description Identifies if the gist is a fork. - */ - isFork: () => new Field("isFork"), - - /** - * @description Whether the gist is public or not. - */ - isPublic: () => new Field("isPublic"), - - /** - * @description The gist name. - */ - name: () => new Field("name"), - - /** - * @description The gist owner. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(RepositoryOwner)) - ), - - /** - * @description Identifies when the gist was last pushed to. - */ - pushedAt: () => new Field("pushedAt"), - - /** - * @description The HTML path to this resource. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Returns a count of how many stargazers there are on this object - */ - stargazerCount: () => new Field("stargazerCount"), - - /** - * @description A list of users who have starred this starrable. - */ - - stargazers: (variables, select) => - new Field( - "stargazers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(StargazerConnection)) - ), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this Gist. - */ - url: () => new Field("url"), - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - viewerHasStarred: () => new Field("viewerHasStarred"), -}; - -export interface IGistComment - extends IComment, - IDeletable, - IMinimizable, - INode, - IUpdatable, - IUpdatableComment { - readonly __typename: "GistComment"; - readonly databaseId: number | null; - readonly gist: IGist; -} - -interface GistCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the gist. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description Identifies the comment body. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - /** - * @description The associated gist. - */ - - readonly gist: >( - select: (t: GistSelector) => T - ) => Field<"gist", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Returns whether or not a comment has been minimized. - */ - - readonly isMinimized: () => Field<"isMinimized">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Returns why the comment was minimized. - */ - - readonly minimizedReason: () => Field<"minimizedReason">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Check if the current viewer can minimize this object. - */ - - readonly viewerCanMinimize: () => Field<"viewerCanMinimize">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isGistComment = ( - object: Record -): object is Partial => { - return object.__typename === "GistComment"; -}; - -export const GistComment: GistCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the gist. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description Identifies the comment body. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description The associated gist. - */ - - gist: (select) => - new Field("gist", undefined as never, new SelectionSet(select(Gist))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Returns whether or not a comment has been minimized. - */ - isMinimized: () => new Field("isMinimized"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Returns why the comment was minimized. - */ - minimizedReason: () => new Field("minimizedReason"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Check if the current viewer can minimize this object. - */ - viewerCanMinimize: () => new Field("viewerCanMinimize"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface IGistCommentConnection { - readonly __typename: "GistCommentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface GistCommentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: GistCommentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: GistCommentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const GistCommentConnection: GistCommentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(GistCommentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(GistComment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IGistCommentEdge { - readonly __typename: "GistCommentEdge"; - readonly cursor: string; - readonly node: IGistComment | null; -} - -interface GistCommentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: GistCommentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const GistCommentEdge: GistCommentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(GistComment)) - ), -}; - -export interface IGistConnection { - readonly __typename: "GistConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface GistConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: GistEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: GistSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const GistConnection: GistConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(GistEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Gist))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IGistEdge { - readonly __typename: "GistEdge"; - readonly cursor: string; - readonly node: IGist | null; -} - -interface GistEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: GistSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const GistEdge: GistEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Gist))), -}; - -export interface IGistFile { - readonly __typename: "GistFile"; - readonly encodedName: string | null; - readonly encoding: string | null; - readonly extension: string | null; - readonly isImage: boolean; - readonly isTruncated: boolean; - readonly language: ILanguage | null; - readonly name: string | null; - readonly size: number | null; - readonly text: string | null; -} - -interface GistFileSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The file name encoded to remove characters that are invalid in URL paths. - */ - - readonly encodedName: () => Field<"encodedName">; - - /** - * @description The gist file encoding. - */ - - readonly encoding: () => Field<"encoding">; - - /** - * @description The file extension from the file name. - */ - - readonly extension: () => Field<"extension">; - - /** - * @description Indicates if this file is an image. - */ - - readonly isImage: () => Field<"isImage">; - - /** - * @description Whether the file's contents were truncated. - */ - - readonly isTruncated: () => Field<"isTruncated">; - - /** - * @description The programming language this file is written in. - */ - - readonly language: >( - select: (t: LanguageSelector) => T - ) => Field<"language", never, SelectionSet>; - - /** - * @description The gist file name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The gist file size in bytes. - */ - - readonly size: () => Field<"size">; - - /** - * @description UTF8 text data or null if the file is binary - */ - - readonly text: (variables: { - truncate?: Variable<"truncate"> | number; - }) => Field<"text", [Argument<"truncate", Variable<"truncate"> | number>]>; -} - -export const GistFile: GistFileSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The file name encoded to remove characters that are invalid in URL paths. - */ - encodedName: () => new Field("encodedName"), - - /** - * @description The gist file encoding. - */ - encoding: () => new Field("encoding"), - - /** - * @description The file extension from the file name. - */ - extension: () => new Field("extension"), - - /** - * @description Indicates if this file is an image. - */ - isImage: () => new Field("isImage"), - - /** - * @description Whether the file's contents were truncated. - */ - isTruncated: () => new Field("isTruncated"), - - /** - * @description The programming language this file is written in. - */ - - language: (select) => - new Field( - "language", - undefined as never, - new SelectionSet(select(Language)) - ), - - /** - * @description The gist file name. - */ - name: () => new Field("name"), - - /** - * @description The gist file size in bytes. - */ - size: () => new Field("size"), - - /** - * @description UTF8 text data or null if the file is binary - */ - text: (variables) => new Field("text"), -}; - -export interface IGitActor { - readonly __typename: "GitActor"; - readonly avatarUrl: unknown; - readonly date: unknown | null; - readonly email: string | null; - readonly name: string | null; - readonly user: IUser | null; -} - -interface GitActorSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the author's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description The timestamp of the Git action (authoring or committing). - */ - - readonly date: () => Field<"date">; - - /** - * @description The email in the Git commit. - */ - - readonly email: () => Field<"email">; - - /** - * @description The name in the Git commit. - */ - - readonly name: () => Field<"name">; - - /** - * @description The GitHub user corresponding to the email field. Null if no such user exists. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const GitActor: GitActorSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the author's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description The timestamp of the Git action (authoring or committing). - */ - date: () => new Field("date"), - - /** - * @description The email in the Git commit. - */ - email: () => new Field("email"), - - /** - * @description The name in the Git commit. - */ - name: () => new Field("name"), - - /** - * @description The GitHub user corresponding to the email field. Null if no such user exists. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IGitActorConnection { - readonly __typename: "GitActorConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface GitActorConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: GitActorEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: GitActorSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const GitActorConnection: GitActorConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(GitActorEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(GitActor))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IGitActorEdge { - readonly __typename: "GitActorEdge"; - readonly cursor: string; - readonly node: IGitActor | null; -} - -interface GitActorEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: GitActorSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const GitActorEdge: GitActorEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(GitActor))), -}; - -export interface IGitHubMetadata { - readonly __typename: "GitHubMetadata"; - readonly gitHubServicesSha: unknown; - readonly gitIpAddresses: ReadonlyArray | null; - readonly hookIpAddresses: ReadonlyArray | null; - readonly importerIpAddresses: ReadonlyArray | null; - readonly isPasswordAuthenticationVerifiable: boolean; - readonly pagesIpAddresses: ReadonlyArray | null; -} - -interface GitHubMetadataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Returns a String that's a SHA of `github-services` - */ - - readonly gitHubServicesSha: () => Field<"gitHubServicesSha">; - - /** - * @description IP addresses that users connect to for git operations - */ - - readonly gitIpAddresses: () => Field<"gitIpAddresses">; - - /** - * @description IP addresses that service hooks are sent from - */ - - readonly hookIpAddresses: () => Field<"hookIpAddresses">; - - /** - * @description IP addresses that the importer connects from - */ - - readonly importerIpAddresses: () => Field<"importerIpAddresses">; - - /** - * @description Whether or not users are verified - */ - - readonly isPasswordAuthenticationVerifiable: () => Field<"isPasswordAuthenticationVerifiable">; - - /** - * @description IP addresses for GitHub Pages' A records - */ - - readonly pagesIpAddresses: () => Field<"pagesIpAddresses">; -} - -export const GitHubMetadata: GitHubMetadataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Returns a String that's a SHA of `github-services` - */ - gitHubServicesSha: () => new Field("gitHubServicesSha"), - - /** - * @description IP addresses that users connect to for git operations - */ - gitIpAddresses: () => new Field("gitIpAddresses"), - - /** - * @description IP addresses that service hooks are sent from - */ - hookIpAddresses: () => new Field("hookIpAddresses"), - - /** - * @description IP addresses that the importer connects from - */ - importerIpAddresses: () => new Field("importerIpAddresses"), - - /** - * @description Whether or not users are verified - */ - isPasswordAuthenticationVerifiable: () => - new Field("isPasswordAuthenticationVerifiable"), - - /** - * @description IP addresses for GitHub Pages' A records - */ - pagesIpAddresses: () => new Field("pagesIpAddresses"), -}; - -export interface IGitObject { - readonly __typename: string; - readonly abbreviatedOid: string; - readonly commitResourcePath: unknown; - readonly commitUrl: unknown; - readonly id: string; - readonly oid: unknown; - readonly repository: IRepository; -} - -interface GitObjectSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An abbreviated version of the Git object ID - */ - - readonly abbreviatedOid: () => Field<"abbreviatedOid">; - - /** - * @description The HTTP path for this Git object - */ - - readonly commitResourcePath: () => Field<"commitResourcePath">; - - /** - * @description The HTTP URL for this Git object - */ - - readonly commitUrl: () => Field<"commitUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The Git object ID - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The Repository the Git object belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - readonly on: < - T extends Array, - F extends "Blob" | "Commit" | "Tag" | "Tree" - >( - type: F, - select: ( - t: F extends "Blob" - ? BlobSelector - : F extends "Commit" - ? CommitSelector - : F extends "Tag" - ? TagSelector - : F extends "Tree" - ? TreeSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const GitObject: GitObjectSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An abbreviated version of the Git object ID - */ - abbreviatedOid: () => new Field("abbreviatedOid"), - - /** - * @description The HTTP path for this Git object - */ - commitResourcePath: () => new Field("commitResourcePath"), - - /** - * @description The HTTP URL for this Git object - */ - commitUrl: () => new Field("commitUrl"), - id: () => new Field("id"), - - /** - * @description The Git object ID - */ - oid: () => new Field("oid"), - - /** - * @description The Repository the Git object belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - on: (type, select) => { - switch (type) { - case "Blob": { - return new InlineFragment( - new NamedType("Blob") as any, - new SelectionSet(select(Blob as any)) - ); - } - - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "Tag": { - return new InlineFragment( - new NamedType("Tag") as any, - new SelectionSet(select(Tag as any)) - ); - } - - case "Tree": { - return new InlineFragment( - new NamedType("Tree") as any, - new SelectionSet(select(Tree as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "GitObject", - }); - } - }, -}; - -export interface IGitSignature { - readonly __typename: string; - readonly email: string; - readonly isValid: boolean; - readonly payload: string; - readonly signature: string; - readonly signer: IUser | null; - readonly state: GitSignatureState; - readonly wasSignedByGitHub: boolean; -} - -interface GitSignatureSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Email used to sign this object. - */ - - readonly email: () => Field<"email">; - - /** - * @description True if the signature is valid and verified by GitHub. - */ - - readonly isValid: () => Field<"isValid">; - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - - readonly payload: () => Field<"payload">; - - /** - * @description ASCII-armored signature header from object. - */ - - readonly signature: () => Field<"signature">; - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - readonly signer: >( - select: (t: UserSelector) => T - ) => Field<"signer", never, SelectionSet>; - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - - readonly state: () => Field<"state">; - - /** - * @description True if the signature was made with GitHub's signing key. - */ - - readonly wasSignedByGitHub: () => Field<"wasSignedByGitHub">; - - readonly on: < - T extends Array, - F extends "GpgSignature" | "SmimeSignature" | "UnknownSignature" - >( - type: F, - select: ( - t: F extends "GpgSignature" - ? GpgSignatureSelector - : F extends "SmimeSignature" - ? SmimeSignatureSelector - : F extends "UnknownSignature" - ? UnknownSignatureSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const GitSignature: GitSignatureSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Email used to sign this object. - */ - email: () => new Field("email"), - - /** - * @description True if the signature is valid and verified by GitHub. - */ - isValid: () => new Field("isValid"), - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - payload: () => new Field("payload"), - - /** - * @description ASCII-armored signature header from object. - */ - signature: () => new Field("signature"), - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - signer: (select) => - new Field("signer", undefined as never, new SelectionSet(select(User))), - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - state: () => new Field("state"), - - /** - * @description True if the signature was made with GitHub's signing key. - */ - wasSignedByGitHub: () => new Field("wasSignedByGitHub"), - - on: (type, select) => { - switch (type) { - case "GpgSignature": { - return new InlineFragment( - new NamedType("GpgSignature") as any, - new SelectionSet(select(GpgSignature as any)) - ); - } - - case "SmimeSignature": { - return new InlineFragment( - new NamedType("SmimeSignature") as any, - new SelectionSet(select(SmimeSignature as any)) - ); - } - - case "UnknownSignature": { - return new InlineFragment( - new NamedType("UnknownSignature") as any, - new SelectionSet(select(UnknownSignature as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "GitSignature", - }); - } - }, -}; - -export interface IGpgSignature extends IGitSignature { - readonly __typename: "GpgSignature"; - readonly keyId: string | null; -} - -interface GpgSignatureSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Email used to sign this object. - */ - - readonly email: () => Field<"email">; - - /** - * @description True if the signature is valid and verified by GitHub. - */ - - readonly isValid: () => Field<"isValid">; - - /** - * @description Hex-encoded ID of the key that signed this object. - */ - - readonly keyId: () => Field<"keyId">; - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - - readonly payload: () => Field<"payload">; - - /** - * @description ASCII-armored signature header from object. - */ - - readonly signature: () => Field<"signature">; - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - readonly signer: >( - select: (t: UserSelector) => T - ) => Field<"signer", never, SelectionSet>; - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - - readonly state: () => Field<"state">; - - /** - * @description True if the signature was made with GitHub's signing key. - */ - - readonly wasSignedByGitHub: () => Field<"wasSignedByGitHub">; -} - -export const isGpgSignature = ( - object: Record -): object is Partial => { - return object.__typename === "GpgSignature"; -}; - -export const GpgSignature: GpgSignatureSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Email used to sign this object. - */ - email: () => new Field("email"), - - /** - * @description True if the signature is valid and verified by GitHub. - */ - isValid: () => new Field("isValid"), - - /** - * @description Hex-encoded ID of the key that signed this object. - */ - keyId: () => new Field("keyId"), - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - payload: () => new Field("payload"), - - /** - * @description ASCII-armored signature header from object. - */ - signature: () => new Field("signature"), - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - signer: (select) => - new Field("signer", undefined as never, new SelectionSet(select(User))), - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - state: () => new Field("state"), - - /** - * @description True if the signature was made with GitHub's signing key. - */ - wasSignedByGitHub: () => new Field("wasSignedByGitHub"), -}; - -export interface IHeadRefDeletedEvent extends INode { - readonly __typename: "HeadRefDeletedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly headRef: IRef | null; - readonly headRefName: string; - readonly pullRequest: IPullRequest; -} - -interface HeadRefDeletedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the Ref associated with the `head_ref_deleted` event. - */ - - readonly headRef: >( - select: (t: RefSelector) => T - ) => Field<"headRef", never, SelectionSet>; - - /** - * @description Identifies the name of the Ref associated with the `head_ref_deleted` event. - */ - - readonly headRefName: () => Field<"headRefName">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isHeadRefDeletedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "HeadRefDeletedEvent"; -}; - -export const HeadRefDeletedEvent: HeadRefDeletedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the Ref associated with the `head_ref_deleted` event. - */ - - headRef: (select) => - new Field("headRef", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Identifies the name of the Ref associated with the `head_ref_deleted` event. - */ - headRefName: () => new Field("headRefName"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IHeadRefForcePushedEvent extends INode { - readonly __typename: "HeadRefForcePushedEvent"; - readonly actor: IActor | null; - readonly afterCommit: ICommit | null; - readonly beforeCommit: ICommit | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; - readonly ref: IRef | null; -} - -interface HeadRefForcePushedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the after commit SHA for the 'head_ref_force_pushed' event. - */ - - readonly afterCommit: >( - select: (t: CommitSelector) => T - ) => Field<"afterCommit", never, SelectionSet>; - - /** - * @description Identifies the before commit SHA for the 'head_ref_force_pushed' event. - */ - - readonly beforeCommit: >( - select: (t: CommitSelector) => T - ) => Field<"beforeCommit", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const isHeadRefForcePushedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "HeadRefForcePushedEvent"; -}; - -export const HeadRefForcePushedEvent: HeadRefForcePushedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the after commit SHA for the 'head_ref_force_pushed' event. - */ - - afterCommit: (select) => - new Field( - "afterCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description Identifies the before commit SHA for the 'head_ref_force_pushed' event. - */ - - beforeCommit: (select) => - new Field( - "beforeCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the fully qualified ref name for the 'head_ref_force_pushed' event. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IHeadRefRestoredEvent extends INode { - readonly __typename: "HeadRefRestoredEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; -} - -interface HeadRefRestoredEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const isHeadRefRestoredEvent = ( - object: Record -): object is Partial => { - return object.__typename === "HeadRefRestoredEvent"; -}; - -export const HeadRefRestoredEvent: HeadRefRestoredEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IHovercard { - readonly __typename: "Hovercard"; - readonly contexts: ReadonlyArray; -} - -interface HovercardSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Each of the contexts for this hovercard - */ - - readonly contexts: >( - select: (t: HovercardContextSelector) => T - ) => Field<"contexts", never, SelectionSet>; -} - -export const Hovercard: HovercardSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Each of the contexts for this hovercard - */ - - contexts: (select) => - new Field( - "contexts", - undefined as never, - new SelectionSet(select(HovercardContext)) - ), -}; - -export interface IHovercardContext { - readonly __typename: string; - readonly message: string; - readonly octicon: string; -} - -interface HovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; - - readonly on: < - T extends Array, - F extends - | "GenericHovercardContext" - | "OrganizationTeamsHovercardContext" - | "OrganizationsHovercardContext" - | "ReviewStatusHovercardContext" - | "ViewerHovercardContext" - >( - type: F, - select: ( - t: F extends "GenericHovercardContext" - ? GenericHovercardContextSelector - : F extends "OrganizationTeamsHovercardContext" - ? OrganizationTeamsHovercardContextSelector - : F extends "OrganizationsHovercardContext" - ? OrganizationsHovercardContextSelector - : F extends "ReviewStatusHovercardContext" - ? ReviewStatusHovercardContextSelector - : F extends "ViewerHovercardContext" - ? ViewerHovercardContextSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const HovercardContext: HovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), - - on: (type, select) => { - switch (type) { - case "GenericHovercardContext": { - return new InlineFragment( - new NamedType("GenericHovercardContext") as any, - new SelectionSet(select(GenericHovercardContext as any)) - ); - } - - case "OrganizationTeamsHovercardContext": { - return new InlineFragment( - new NamedType("OrganizationTeamsHovercardContext") as any, - new SelectionSet(select(OrganizationTeamsHovercardContext as any)) - ); - } - - case "OrganizationsHovercardContext": { - return new InlineFragment( - new NamedType("OrganizationsHovercardContext") as any, - new SelectionSet(select(OrganizationsHovercardContext as any)) - ); - } - - case "ReviewStatusHovercardContext": { - return new InlineFragment( - new NamedType("ReviewStatusHovercardContext") as any, - new SelectionSet(select(ReviewStatusHovercardContext as any)) - ); - } - - case "ViewerHovercardContext": { - return new InlineFragment( - new NamedType("ViewerHovercardContext") as any, - new SelectionSet(select(ViewerHovercardContext as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "HovercardContext", - }); - } - }, -}; - -export interface IInviteEnterpriseAdminPayload { - readonly __typename: "InviteEnterpriseAdminPayload"; - readonly clientMutationId: string | null; - readonly invitation: IEnterpriseAdministratorInvitation | null; -} - -interface InviteEnterpriseAdminPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The created enterprise administrator invitation. - */ - - readonly invitation: >( - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field<"invitation", never, SelectionSet>; -} - -export const InviteEnterpriseAdminPayload: InviteEnterpriseAdminPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The created enterprise administrator invitation. - */ - - invitation: (select) => - new Field( - "invitation", - undefined as never, - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), -}; - -export interface IIpAllowListEntry extends INode { - readonly __typename: "IpAllowListEntry"; - readonly allowListValue: string; - readonly createdAt: unknown; - readonly isActive: boolean; - readonly name: string | null; - readonly owner: IIpAllowListOwner; - readonly updatedAt: unknown; -} - -interface IpAllowListEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A single IP address or range of IP addresses in CIDR notation. - */ - - readonly allowListValue: () => Field<"allowListValue">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the entry is currently active. - */ - - readonly isActive: () => Field<"isActive">; - - /** - * @description The name of the IP allow list entry. - */ - - readonly name: () => Field<"name">; - - /** - * @description The owner of the IP allow list entry. - */ - - readonly owner: >( - select: (t: IpAllowListOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isIpAllowListEntry = ( - object: Record -): object is Partial => { - return object.__typename === "IpAllowListEntry"; -}; - -export const IpAllowListEntry: IpAllowListEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description A single IP address or range of IP addresses in CIDR notation. - */ - allowListValue: () => new Field("allowListValue"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the entry is currently active. - */ - isActive: () => new Field("isActive"), - - /** - * @description The name of the IP allow list entry. - */ - name: () => new Field("name"), - - /** - * @description The owner of the IP allow list entry. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(IpAllowListOwner)) - ), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IIpAllowListEntryConnection { - readonly __typename: "IpAllowListEntryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface IpAllowListEntryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: IpAllowListEntryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: IpAllowListEntrySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const IpAllowListEntryConnection: IpAllowListEntryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(IpAllowListEntryEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(IpAllowListEntry)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IIpAllowListEntryEdge { - readonly __typename: "IpAllowListEntryEdge"; - readonly cursor: string; - readonly node: IIpAllowListEntry | null; -} - -interface IpAllowListEntryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: IpAllowListEntrySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const IpAllowListEntryEdge: IpAllowListEntryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(IpAllowListEntry)) - ), -}; - -export interface IIssue - extends IAssignable, - IClosable, - IComment, - ILabelable, - ILockable, - INode, - IReactable, - IRepositoryNode, - ISubscribable, - IUniformResourceLocatable, - IUpdatable, - IUpdatableComment { - readonly __typename: "Issue"; - readonly bodyResourcePath: unknown; - readonly bodyUrl: unknown; - readonly comments: IIssueCommentConnection; - readonly hovercard: IHovercard; - readonly isReadByViewer: boolean | null; - readonly milestone: IMilestone | null; - readonly number: number; - readonly participants: IUserConnection; - readonly projectCards: IProjectCardConnection; - readonly state: IssueState; - readonly timeline: IIssueTimelineConnection; - readonly timelineItems: IIssueTimelineItemsConnection; - readonly title: string; -} - -interface IssueSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Reason that the conversation was locked. - */ - - readonly activeLockReason: () => Field<"activeLockReason">; - - /** - * @description A list of Users assigned to this object. - */ - - readonly assignees: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "assignees", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description Identifies the body of the issue. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The http path for this issue body - */ - - readonly bodyResourcePath: () => Field<"bodyResourcePath">; - - /** - * @description Identifies the body of the issue rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description The http URL for this issue body - */ - - readonly bodyUrl: () => Field<"bodyUrl">; - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - - readonly closed: () => Field<"closed">; - - /** - * @description Identifies the date and time when the object was closed. - */ - - readonly closedAt: () => Field<"closedAt">; - - /** - * @description A list of comments associated with the Issue. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueCommentOrder; - }, - select: (t: IssueCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueCommentOrder> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - /** - * @description The hovercard information for this issue - */ - - readonly hovercard: >( - variables: { - includeNotificationContexts?: - | Variable<"includeNotificationContexts"> - | boolean; - }, - select: (t: HovercardSelector) => T - ) => Field< - "hovercard", - [ - Argument< - "includeNotificationContexts", - Variable<"includeNotificationContexts"> | boolean - > - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Is this issue read by the viewer - */ - - readonly isReadByViewer: () => Field<"isReadByViewer">; - - /** - * @description A list of labels associated with the object. - */ - - readonly labels: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | LabelOrder; - }, - select: (t: LabelConnectionSelector) => T - ) => Field< - "labels", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | LabelOrder> - ], - SelectionSet - >; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description `true` if the object is locked - */ - - readonly locked: () => Field<"locked">; - - /** - * @description Identifies the milestone associated with the issue. - */ - - readonly milestone: >( - select: (t: MilestoneSelector) => T - ) => Field<"milestone", never, SelectionSet>; - - /** - * @description Identifies the issue number. - */ - - readonly number: () => Field<"number">; - - /** - * @description A list of Users that are participating in the Issue conversation. - */ - - readonly participants: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "participants", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description List of project cards associated with this issue. - */ - - readonly projectCards: >( - variables: { - after?: Variable<"after"> | string; - archivedStates?: Variable<"archivedStates"> | ProjectCardArchivedState; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ProjectCardConnectionSelector) => T - ) => Field< - "projectCards", - [ - Argument<"after", Variable<"after"> | string>, - Argument< - "archivedStates", - Variable<"archivedStates"> | ProjectCardArchivedState - >, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this issue - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the state of the issue. - */ - - readonly state: () => Field<"state">; - - /** - * @description A list of events, comments, commits, etc. associated with the issue. - * @deprecated `timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC. - */ - - readonly timeline: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - since?: Variable<"since"> | unknown; - }, - select: (t: IssueTimelineConnectionSelector) => T - ) => Field< - "timeline", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"since", Variable<"since"> | unknown> - ], - SelectionSet - >; - - /** - * @description A list of events, comments, commits, etc. associated with the issue. - */ - - readonly timelineItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - itemTypes?: Variable<"itemTypes"> | IssueTimelineItemsItemType; - last?: Variable<"last"> | number; - since?: Variable<"since"> | unknown; - skip?: Variable<"skip"> | number; - }, - select: (t: IssueTimelineItemsConnectionSelector) => T - ) => Field< - "timelineItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"itemTypes", Variable<"itemTypes"> | IssueTimelineItemsItemType>, - Argument<"last", Variable<"last"> | number>, - Argument<"since", Variable<"since"> | unknown>, - Argument<"skip", Variable<"skip"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the issue title. - */ - - readonly title: () => Field<"title">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this issue - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; -} - -export const isIssue = ( - object: Record -): object is Partial => { - return object.__typename === "Issue"; -}; - -export const Issue: IssueSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Reason that the conversation was locked. - */ - activeLockReason: () => new Field("activeLockReason"), - - /** - * @description A list of Users assigned to this object. - */ - - assignees: (variables, select) => - new Field( - "assignees", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description Identifies the body of the issue. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The http path for this issue body - */ - bodyResourcePath: () => new Field("bodyResourcePath"), - - /** - * @description Identifies the body of the issue rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description The http URL for this issue body - */ - bodyUrl: () => new Field("bodyUrl"), - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - closed: () => new Field("closed"), - - /** - * @description Identifies the date and time when the object was closed. - */ - closedAt: () => new Field("closedAt"), - - /** - * @description A list of comments associated with the Issue. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(IssueCommentConnection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description The hovercard information for this issue - */ - - hovercard: (variables, select) => - new Field( - "hovercard", - [ - new Argument( - "includeNotificationContexts", - variables.includeNotificationContexts, - _ENUM_VALUES - ), - ], - new SelectionSet(select(Hovercard)) - ), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Is this issue read by the viewer - */ - isReadByViewer: () => new Field("isReadByViewer"), - - /** - * @description A list of labels associated with the object. - */ - - labels: (variables, select) => - new Field( - "labels", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(LabelConnection)) - ), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description `true` if the object is locked - */ - locked: () => new Field("locked"), - - /** - * @description Identifies the milestone associated with the issue. - */ - - milestone: (select) => - new Field( - "milestone", - undefined as never, - new SelectionSet(select(Milestone)) - ), - - /** - * @description Identifies the issue number. - */ - number: () => new Field("number"), - - /** - * @description A list of Users that are participating in the Issue conversation. - */ - - participants: (variables, select) => - new Field( - "participants", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description List of project cards associated with this issue. - */ - - projectCards: (variables, select) => - new Field( - "projectCards", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("archivedStates", variables.archivedStates, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectCardConnection)) - ), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this issue - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the state of the issue. - */ - state: () => new Field("state"), - - /** - * @description A list of events, comments, commits, etc. associated with the issue. - * @deprecated `timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC. - */ - - timeline: (variables, select) => - new Field( - "timeline", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - ], - new SelectionSet(select(IssueTimelineConnection)) - ), - - /** - * @description A list of events, comments, commits, etc. associated with the issue. - */ - - timelineItems: (variables, select) => - new Field( - "timelineItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("itemTypes", variables.itemTypes, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - new Argument("skip", variables.skip, _ENUM_VALUES), - ], - new SelectionSet(select(IssueTimelineItemsConnection)) - ), - - /** - * @description Identifies the issue title. - */ - title: () => new Field("title"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this issue - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), -}; - -export interface IIssueComment - extends IComment, - IDeletable, - IMinimizable, - INode, - IReactable, - IRepositoryNode, - IUpdatable, - IUpdatableComment { - readonly __typename: "IssueComment"; - readonly issue: IIssue; - readonly pullRequest: IPullRequest | null; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface IssueCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description The body as Markdown. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Returns whether or not a comment has been minimized. - */ - - readonly isMinimized: () => Field<"isMinimized">; - - /** - * @description Identifies the issue associated with the comment. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Returns why the comment was minimized. - */ - - readonly minimizedReason: () => Field<"minimizedReason">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description Returns the pull request associated with the comment, if this comment was made on a -pull request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this issue comment - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this issue comment - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Check if the current viewer can minimize this object. - */ - - readonly viewerCanMinimize: () => Field<"viewerCanMinimize">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isIssueComment = ( - object: Record -): object is Partial => { - return object.__typename === "IssueComment"; -}; - -export const IssueComment: IssueCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description The body as Markdown. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Returns whether or not a comment has been minimized. - */ - isMinimized: () => new Field("isMinimized"), - - /** - * @description Identifies the issue associated with the comment. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Returns why the comment was minimized. - */ - minimizedReason: () => new Field("minimizedReason"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description Returns the pull request associated with the comment, if this comment was made on a -pull request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this issue comment - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this issue comment - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Check if the current viewer can minimize this object. - */ - viewerCanMinimize: () => new Field("viewerCanMinimize"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface IIssueCommentConnection { - readonly __typename: "IssueCommentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface IssueCommentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: IssueCommentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: IssueCommentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const IssueCommentConnection: IssueCommentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(IssueCommentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(IssueComment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IIssueCommentEdge { - readonly __typename: "IssueCommentEdge"; - readonly cursor: string; - readonly node: IIssueComment | null; -} - -interface IssueCommentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: IssueCommentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const IssueCommentEdge: IssueCommentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(IssueComment)) - ), -}; - -export interface IIssueConnection { - readonly __typename: "IssueConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface IssueConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: IssueEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: IssueSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const IssueConnection: IssueConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(IssueEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Issue))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IIssueContributionsByRepository { - readonly __typename: "IssueContributionsByRepository"; - readonly contributions: ICreatedIssueContributionConnection; - readonly repository: IRepository; -} - -interface IssueContributionsByRepositorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The issue contributions. - */ - - readonly contributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedIssueContributionConnectionSelector) => T - ) => Field< - "contributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description The repository in which the issues were opened. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const IssueContributionsByRepository: IssueContributionsByRepositorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The issue contributions. - */ - - contributions: (variables, select) => - new Field( - "contributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedIssueContributionConnection)) - ), - - /** - * @description The repository in which the issues were opened. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IIssueEdge { - readonly __typename: "IssueEdge"; - readonly cursor: string; - readonly node: IIssue | null; -} - -interface IssueEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: IssueSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const IssueEdge: IssueEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IIssueTemplate { - readonly __typename: "IssueTemplate"; - readonly about: string | null; - readonly body: string | null; - readonly name: string; - readonly title: string | null; -} - -interface IssueTemplateSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The template purpose. - */ - - readonly about: () => Field<"about">; - - /** - * @description The suggested issue body. - */ - - readonly body: () => Field<"body">; - - /** - * @description The template name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The suggested issue title. - */ - - readonly title: () => Field<"title">; -} - -export const IssueTemplate: IssueTemplateSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The template purpose. - */ - about: () => new Field("about"), - - /** - * @description The suggested issue body. - */ - body: () => new Field("body"), - - /** - * @description The template name. - */ - name: () => new Field("name"), - - /** - * @description The suggested issue title. - */ - title: () => new Field("title"), -}; - -export interface IIssueTimelineConnection { - readonly __typename: "IssueTimelineConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface IssueTimelineConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: IssueTimelineItemEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: IssueTimelineItemSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const IssueTimelineConnection: IssueTimelineConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(IssueTimelineItemEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(IssueTimelineItem)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IIssueTimelineItemEdge { - readonly __typename: "IssueTimelineItemEdge"; - readonly cursor: string; - readonly node: IIssueTimelineItem | null; -} - -interface IssueTimelineItemEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: IssueTimelineItemSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const IssueTimelineItemEdge: IssueTimelineItemEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(IssueTimelineItem)) - ), -}; - -export interface IIssueTimelineItemsConnection { - readonly __typename: "IssueTimelineItemsConnection"; - readonly edges: ReadonlyArray | null; - readonly filteredCount: number; - readonly nodes: ReadonlyArray | null; - readonly pageCount: number; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly updatedAt: unknown; -} - -interface IssueTimelineItemsConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: IssueTimelineItemsEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description Identifies the count of items after applying `before` and `after` filters. - */ - - readonly filteredCount: () => Field<"filteredCount">; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: IssueTimelineItemsSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - */ - - readonly pageCount: () => Field<"pageCount">; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description Identifies the date and time when the timeline was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const IssueTimelineItemsConnection: IssueTimelineItemsConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(IssueTimelineItemsEdge)) - ), - - /** - * @description Identifies the count of items after applying `before` and `after` filters. - */ - filteredCount: () => new Field("filteredCount"), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(IssueTimelineItems)) - ), - - /** - * @description Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - */ - pageCount: () => new Field("pageCount"), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description Identifies the date and time when the timeline was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IIssueTimelineItemsEdge { - readonly __typename: "IssueTimelineItemsEdge"; - readonly cursor: string; - readonly node: IIssueTimelineItems | null; -} - -interface IssueTimelineItemsEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: IssueTimelineItemsSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const IssueTimelineItemsEdge: IssueTimelineItemsEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(IssueTimelineItems)) - ), -}; - -export interface IJoinedGitHubContribution extends IContribution { - readonly __typename: "JoinedGitHubContribution"; -} - -interface JoinedGitHubContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isJoinedGitHubContribution = ( - object: Record -): object is Partial => { - return object.__typename === "JoinedGitHubContribution"; -}; - -export const JoinedGitHubContribution: JoinedGitHubContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ILabel extends INode { - readonly __typename: "Label"; - readonly color: string; - readonly createdAt: unknown | null; - readonly description: string | null; - readonly isDefault: boolean; - readonly issues: IIssueConnection; - readonly name: string; - readonly pullRequests: IPullRequestConnection; - readonly repository: IRepository; - readonly resourcePath: unknown; - readonly updatedAt: unknown | null; - readonly url: unknown; -} - -interface LabelSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the label color. - */ - - readonly color: () => Field<"color">; - - /** - * @description Identifies the date and time when the label was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description A brief description of this label. - */ - - readonly description: () => Field<"description">; - - readonly id: () => Field<"id">; - - /** - * @description Indicates whether or not this is a default label. - */ - - readonly isDefault: () => Field<"isDefault">; - - /** - * @description A list of issues associated with this label. - */ - - readonly issues: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | IssueFilters; - first?: Variable<"first"> | number; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | IssueState; - }, - select: (t: IssueConnectionSelector) => T - ) => Field< - "issues", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | IssueFilters>, - Argument<"first", Variable<"first"> | number>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | IssueState> - ], - SelectionSet - >; - - /** - * @description Identifies the label name. - */ - - readonly name: () => Field<"name">; - - /** - * @description A list of pull requests associated with this label. - */ - - readonly pullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "pullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description The repository associated with this label. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this label. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the label was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this label. - */ - - readonly url: () => Field<"url">; -} - -export const isLabel = ( - object: Record -): object is Partial => { - return object.__typename === "Label"; -}; - -export const Label: LabelSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the label color. - */ - color: () => new Field("color"), - - /** - * @description Identifies the date and time when the label was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description A brief description of this label. - */ - description: () => new Field("description"), - id: () => new Field("id"), - - /** - * @description Indicates whether or not this is a default label. - */ - isDefault: () => new Field("isDefault"), - - /** - * @description A list of issues associated with this label. - */ - - issues: (variables, select) => - new Field( - "issues", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(IssueConnection)) - ), - - /** - * @description Identifies the label name. - */ - name: () => new Field("name"), - - /** - * @description A list of pull requests associated with this label. - */ - - pullRequests: (variables, select) => - new Field( - "pullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description The repository associated with this label. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this label. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the label was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this label. - */ - url: () => new Field("url"), -}; - -export interface ILabelConnection { - readonly __typename: "LabelConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface LabelConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: LabelEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: LabelSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const LabelConnection: LabelConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(LabelEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Label))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ILabelEdge { - readonly __typename: "LabelEdge"; - readonly cursor: string; - readonly node: ILabel | null; -} - -interface LabelEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: LabelSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const LabelEdge: LabelEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Label))), -}; - -export interface ILabelable { - readonly __typename: string; - readonly labels: ILabelConnection | null; -} - -interface LabelableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of labels associated with the object. - */ - - readonly labels: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | LabelOrder; - }, - select: (t: LabelConnectionSelector) => T - ) => Field< - "labels", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | LabelOrder> - ], - SelectionSet - >; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Labelable: LabelableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of labels associated with the object. - */ - - labels: (variables, select) => - new Field( - "labels", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(LabelConnection)) - ), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Labelable", - }); - } - }, -}; - -export interface ILabeledEvent extends INode { - readonly __typename: "LabeledEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly label: ILabel; - readonly labelable: ILabelable; -} - -interface LabeledEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the label associated with the 'labeled' event. - */ - - readonly label: >( - select: (t: LabelSelector) => T - ) => Field<"label", never, SelectionSet>; - - /** - * @description Identifies the `Labelable` associated with the event. - */ - - readonly labelable: >( - select: (t: LabelableSelector) => T - ) => Field<"labelable", never, SelectionSet>; -} - -export const isLabeledEvent = ( - object: Record -): object is Partial => { - return object.__typename === "LabeledEvent"; -}; - -export const LabeledEvent: LabeledEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the label associated with the 'labeled' event. - */ - - label: (select) => - new Field("label", undefined as never, new SelectionSet(select(Label))), - - /** - * @description Identifies the `Labelable` associated with the event. - */ - - labelable: (select) => - new Field( - "labelable", - undefined as never, - new SelectionSet(select(Labelable)) - ), -}; - -export interface ILanguage extends INode { - readonly __typename: "Language"; - readonly color: string | null; - readonly name: string; -} - -interface LanguageSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The color defined for the current language. - */ - - readonly color: () => Field<"color">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the current language. - */ - - readonly name: () => Field<"name">; -} - -export const isLanguage = ( - object: Record -): object is Partial => { - return object.__typename === "Language"; -}; - -export const Language: LanguageSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The color defined for the current language. - */ - color: () => new Field("color"), - id: () => new Field("id"), - - /** - * @description The name of the current language. - */ - name: () => new Field("name"), -}; - -export interface ILanguageConnection { - readonly __typename: "LanguageConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly totalSize: number; -} - -interface LanguageConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: LanguageEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: LanguageSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description The total size in bytes of files written in that language. - */ - - readonly totalSize: () => Field<"totalSize">; -} - -export const LanguageConnection: LanguageConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(LanguageEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Language))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description The total size in bytes of files written in that language. - */ - totalSize: () => new Field("totalSize"), -}; - -export interface ILanguageEdge { - readonly __typename: "LanguageEdge"; - readonly cursor: string; - readonly node: ILanguage; - readonly size: number; -} - -interface LanguageEdgeSelector { - readonly __typename: () => Field<"__typename">; - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: LanguageSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The number of bytes of code written in the language. - */ - - readonly size: () => Field<"size">; -} - -export const LanguageEdge: LanguageEdgeSelector = { - __typename: () => new Field("__typename"), - - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Language))), - - /** - * @description The number of bytes of code written in the language. - */ - size: () => new Field("size"), -}; - -export interface ILicense extends INode { - readonly __typename: "License"; - readonly body: string; - readonly conditions: ReadonlyArray; - readonly description: string | null; - readonly featured: boolean; - readonly hidden: boolean; - readonly implementation: string | null; - readonly key: string; - readonly limitations: ReadonlyArray; - readonly name: string; - readonly nickname: string | null; - readonly permissions: ReadonlyArray; - readonly pseudoLicense: boolean; - readonly spdxId: string | null; - readonly url: unknown | null; -} - -interface LicenseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The full text of the license - */ - - readonly body: () => Field<"body">; - - /** - * @description The conditions set by the license - */ - - readonly conditions: >( - select: (t: LicenseRuleSelector) => T - ) => Field<"conditions", never, SelectionSet>; - - /** - * @description A human-readable description of the license - */ - - readonly description: () => Field<"description">; - - /** - * @description Whether the license should be featured - */ - - readonly featured: () => Field<"featured">; - - /** - * @description Whether the license should be displayed in license pickers - */ - - readonly hidden: () => Field<"hidden">; - - readonly id: () => Field<"id">; - - /** - * @description Instructions on how to implement the license - */ - - readonly implementation: () => Field<"implementation">; - - /** - * @description The lowercased SPDX ID of the license - */ - - readonly key: () => Field<"key">; - - /** - * @description The limitations set by the license - */ - - readonly limitations: >( - select: (t: LicenseRuleSelector) => T - ) => Field<"limitations", never, SelectionSet>; - - /** - * @description The license full name specified by - */ - - readonly name: () => Field<"name">; - - /** - * @description Customary short name if applicable (e.g, GPLv3) - */ - - readonly nickname: () => Field<"nickname">; - - /** - * @description The permissions set by the license - */ - - readonly permissions: >( - select: (t: LicenseRuleSelector) => T - ) => Field<"permissions", never, SelectionSet>; - - /** - * @description Whether the license is a pseudo-license placeholder (e.g., other, no-license) - */ - - readonly pseudoLicense: () => Field<"pseudoLicense">; - - /** - * @description Short identifier specified by - */ - - readonly spdxId: () => Field<"spdxId">; - - /** - * @description URL to the license on - */ - - readonly url: () => Field<"url">; -} - -export const isLicense = ( - object: Record -): object is Partial => { - return object.__typename === "License"; -}; - -export const License: LicenseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The full text of the license - */ - body: () => new Field("body"), - - /** - * @description The conditions set by the license - */ - - conditions: (select) => - new Field( - "conditions", - undefined as never, - new SelectionSet(select(LicenseRule)) - ), - - /** - * @description A human-readable description of the license - */ - description: () => new Field("description"), - - /** - * @description Whether the license should be featured - */ - featured: () => new Field("featured"), - - /** - * @description Whether the license should be displayed in license pickers - */ - hidden: () => new Field("hidden"), - id: () => new Field("id"), - - /** - * @description Instructions on how to implement the license - */ - implementation: () => new Field("implementation"), - - /** - * @description The lowercased SPDX ID of the license - */ - key: () => new Field("key"), - - /** - * @description The limitations set by the license - */ - - limitations: (select) => - new Field( - "limitations", - undefined as never, - new SelectionSet(select(LicenseRule)) - ), - - /** - * @description The license full name specified by - */ - name: () => new Field("name"), - - /** - * @description Customary short name if applicable (e.g, GPLv3) - */ - nickname: () => new Field("nickname"), - - /** - * @description The permissions set by the license - */ - - permissions: (select) => - new Field( - "permissions", - undefined as never, - new SelectionSet(select(LicenseRule)) - ), - - /** - * @description Whether the license is a pseudo-license placeholder (e.g., other, no-license) - */ - pseudoLicense: () => new Field("pseudoLicense"), - - /** - * @description Short identifier specified by - */ - spdxId: () => new Field("spdxId"), - - /** - * @description URL to the license on - */ - url: () => new Field("url"), -}; - -export interface ILicenseRule { - readonly __typename: "LicenseRule"; - readonly description: string; - readonly key: string; - readonly label: string; -} - -interface LicenseRuleSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A description of the rule - */ - - readonly description: () => Field<"description">; - - /** - * @description The machine-readable rule key - */ - - readonly key: () => Field<"key">; - - /** - * @description The human-readable rule label - */ - - readonly label: () => Field<"label">; -} - -export const LicenseRule: LicenseRuleSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A description of the rule - */ - description: () => new Field("description"), - - /** - * @description The machine-readable rule key - */ - key: () => new Field("key"), - - /** - * @description The human-readable rule label - */ - label: () => new Field("label"), -}; - -export interface ILinkRepositoryToProjectPayload { - readonly __typename: "LinkRepositoryToProjectPayload"; - readonly clientMutationId: string | null; - readonly project: IProject | null; - readonly repository: IRepository | null; -} - -interface LinkRepositoryToProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The linked Project. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; - - /** - * @description The linked Repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const LinkRepositoryToProjectPayload: LinkRepositoryToProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The linked Project. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), - - /** - * @description The linked Repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface ILockLockablePayload { - readonly __typename: "LockLockablePayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly lockedRecord: ILockable | null; -} - -interface LockLockablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The item that was locked. - */ - - readonly lockedRecord: >( - select: (t: LockableSelector) => T - ) => Field<"lockedRecord", never, SelectionSet>; -} - -export const LockLockablePayload: LockLockablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The item that was locked. - */ - - lockedRecord: (select) => - new Field( - "lockedRecord", - undefined as never, - new SelectionSet(select(Lockable)) - ), -}; - -export interface ILockable { - readonly __typename: string; - readonly activeLockReason: LockReason | null; - readonly locked: boolean; -} - -interface LockableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Reason that the conversation was locked. - */ - - readonly activeLockReason: () => Field<"activeLockReason">; - - /** - * @description `true` if the object is locked - */ - - readonly locked: () => Field<"locked">; - - readonly on: , F extends "Issue" | "PullRequest">( - type: F, - select: ( - t: F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Lockable: LockableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Reason that the conversation was locked. - */ - activeLockReason: () => new Field("activeLockReason"), - - /** - * @description `true` if the object is locked - */ - locked: () => new Field("locked"), - - on: (type, select) => { - switch (type) { - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Lockable", - }); - } - }, -}; - -export interface ILockedEvent extends INode { - readonly __typename: "LockedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly lockReason: LockReason | null; - readonly lockable: ILockable; -} - -interface LockedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Reason that the conversation was locked (optional). - */ - - readonly lockReason: () => Field<"lockReason">; - - /** - * @description Object that was locked. - */ - - readonly lockable: >( - select: (t: LockableSelector) => T - ) => Field<"lockable", never, SelectionSet>; -} - -export const isLockedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "LockedEvent"; -}; - -export const LockedEvent: LockedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Reason that the conversation was locked (optional). - */ - lockReason: () => new Field("lockReason"), - - /** - * @description Object that was locked. - */ - - lockable: (select) => - new Field( - "lockable", - undefined as never, - new SelectionSet(select(Lockable)) - ), -}; - -export interface IMannequin extends IActor, INode, IUniformResourceLocatable { - readonly __typename: "Mannequin"; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly email: string | null; - readonly updatedAt: unknown; -} - -interface MannequinSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the GitHub App's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The mannequin's email on the source instance. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description The username of the actor. - */ - - readonly login: () => Field<"login">; - - /** - * @description The HTML path to this resource. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The URL to this resource. - */ - - readonly url: () => Field<"url">; -} - -export const isMannequin = ( - object: Record -): object is Partial => { - return object.__typename === "Mannequin"; -}; - -export const Mannequin: MannequinSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the GitHub App's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The mannequin's email on the source instance. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description The username of the actor. - */ - login: () => new Field("login"), - - /** - * @description The HTML path to this resource. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The URL to this resource. - */ - url: () => new Field("url"), -}; - -export interface IMarkFileAsViewedPayload { - readonly __typename: "MarkFileAsViewedPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface MarkFileAsViewedPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated pull request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const MarkFileAsViewedPayload: MarkFileAsViewedPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated pull request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IMarkPullRequestReadyForReviewPayload { - readonly __typename: "MarkPullRequestReadyForReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface MarkPullRequestReadyForReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request that is ready for review. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const MarkPullRequestReadyForReviewPayload: MarkPullRequestReadyForReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request that is ready for review. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IMarkedAsDuplicateEvent extends INode { - readonly __typename: "MarkedAsDuplicateEvent"; - readonly actor: IActor | null; - readonly canonical: IIssueOrPullRequest | null; - readonly createdAt: unknown; - readonly duplicate: IIssueOrPullRequest | null; - readonly isCrossRepository: boolean; -} - -interface MarkedAsDuplicateEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The authoritative issue or pull request which has been duplicated by another. - */ - - readonly canonical: >( - select: (t: IssueOrPullRequestSelector) => T - ) => Field<"canonical", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The issue or pull request which has been marked as a duplicate of another. - */ - - readonly duplicate: >( - select: (t: IssueOrPullRequestSelector) => T - ) => Field<"duplicate", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Canonical and duplicate belong to different repositories. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; -} - -export const isMarkedAsDuplicateEvent = ( - object: Record -): object is Partial => { - return object.__typename === "MarkedAsDuplicateEvent"; -}; - -export const MarkedAsDuplicateEvent: MarkedAsDuplicateEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description The authoritative issue or pull request which has been duplicated by another. - */ - - canonical: (select) => - new Field( - "canonical", - undefined as never, - new SelectionSet(select(IssueOrPullRequest)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The issue or pull request which has been marked as a duplicate of another. - */ - - duplicate: (select) => - new Field( - "duplicate", - undefined as never, - new SelectionSet(select(IssueOrPullRequest)) - ), - - id: () => new Field("id"), - - /** - * @description Canonical and duplicate belong to different repositories. - */ - isCrossRepository: () => new Field("isCrossRepository"), -}; - -export interface IMarketplaceCategory extends INode { - readonly __typename: "MarketplaceCategory"; - readonly description: string | null; - readonly howItWorks: string | null; - readonly name: string; - readonly primaryListingCount: number; - readonly resourcePath: unknown; - readonly secondaryListingCount: number; - readonly slug: string; - readonly url: unknown; -} - -interface MarketplaceCategorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The category's description. - */ - - readonly description: () => Field<"description">; - - /** - * @description The technical description of how apps listed in this category work with GitHub. - */ - - readonly howItWorks: () => Field<"howItWorks">; - - readonly id: () => Field<"id">; - - /** - * @description The category's name. - */ - - readonly name: () => Field<"name">; - - /** - * @description How many Marketplace listings have this as their primary category. - */ - - readonly primaryListingCount: () => Field<"primaryListingCount">; - - /** - * @description The HTTP path for this Marketplace category. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description How many Marketplace listings have this as their secondary category. - */ - - readonly secondaryListingCount: () => Field<"secondaryListingCount">; - - /** - * @description The short name of the category used in its URL. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description The HTTP URL for this Marketplace category. - */ - - readonly url: () => Field<"url">; -} - -export const isMarketplaceCategory = ( - object: Record -): object is Partial => { - return object.__typename === "MarketplaceCategory"; -}; - -export const MarketplaceCategory: MarketplaceCategorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The category's description. - */ - description: () => new Field("description"), - - /** - * @description The technical description of how apps listed in this category work with GitHub. - */ - howItWorks: () => new Field("howItWorks"), - id: () => new Field("id"), - - /** - * @description The category's name. - */ - name: () => new Field("name"), - - /** - * @description How many Marketplace listings have this as their primary category. - */ - primaryListingCount: () => new Field("primaryListingCount"), - - /** - * @description The HTTP path for this Marketplace category. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description How many Marketplace listings have this as their secondary category. - */ - secondaryListingCount: () => new Field("secondaryListingCount"), - - /** - * @description The short name of the category used in its URL. - */ - slug: () => new Field("slug"), - - /** - * @description The HTTP URL for this Marketplace category. - */ - url: () => new Field("url"), -}; - -export interface IMarketplaceListing extends INode { - readonly __typename: "MarketplaceListing"; - readonly app: IApp | null; - readonly companyUrl: unknown | null; - readonly configurationResourcePath: unknown; - readonly configurationUrl: unknown; - readonly documentationUrl: unknown | null; - readonly extendedDescription: string | null; - readonly extendedDescriptionHTML: unknown; - readonly fullDescription: string; - readonly fullDescriptionHTML: unknown; - readonly hasPublishedFreeTrialPlans: boolean; - readonly hasTermsOfService: boolean; - readonly hasVerifiedOwner: boolean; - readonly howItWorks: string | null; - readonly howItWorksHTML: unknown; - readonly installationUrl: unknown | null; - readonly installedForViewer: boolean; - readonly isArchived: boolean; - readonly isDraft: boolean; - readonly isPaid: boolean; - readonly isPublic: boolean; - readonly isRejected: boolean; - readonly isUnverified: boolean; - readonly isUnverifiedPending: boolean; - readonly isVerificationPendingFromDraft: boolean; - readonly isVerificationPendingFromUnverified: boolean; - readonly isVerified: boolean; - readonly logoBackgroundColor: string; - readonly logoUrl: unknown | null; - readonly name: string; - readonly normalizedShortDescription: string; - readonly pricingUrl: unknown | null; - readonly primaryCategory: IMarketplaceCategory; - readonly privacyPolicyUrl: unknown; - readonly resourcePath: unknown; - readonly screenshotUrls: ReadonlyArray; - readonly secondaryCategory: IMarketplaceCategory | null; - readonly shortDescription: string; - readonly slug: string; - readonly statusUrl: unknown | null; - readonly supportEmail: string | null; - readonly supportUrl: unknown; - readonly termsOfServiceUrl: unknown | null; - readonly url: unknown; - readonly viewerCanAddPlans: boolean; - readonly viewerCanApprove: boolean; - readonly viewerCanDelist: boolean; - readonly viewerCanEdit: boolean; - readonly viewerCanEditCategories: boolean; - readonly viewerCanEditPlans: boolean; - readonly viewerCanRedraft: boolean; - readonly viewerCanReject: boolean; - readonly viewerCanRequestApproval: boolean; - readonly viewerHasPurchased: boolean; - readonly viewerHasPurchasedForAllOrganizations: boolean; - readonly viewerIsListingAdmin: boolean; -} - -interface MarketplaceListingSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The GitHub App this listing represents. - */ - - readonly app: >( - select: (t: AppSelector) => T - ) => Field<"app", never, SelectionSet>; - - /** - * @description URL to the listing owner's company site. - */ - - readonly companyUrl: () => Field<"companyUrl">; - - /** - * @description The HTTP path for configuring access to the listing's integration or OAuth app - */ - - readonly configurationResourcePath: () => Field<"configurationResourcePath">; - - /** - * @description The HTTP URL for configuring access to the listing's integration or OAuth app - */ - - readonly configurationUrl: () => Field<"configurationUrl">; - - /** - * @description URL to the listing's documentation. - */ - - readonly documentationUrl: () => Field<"documentationUrl">; - - /** - * @description The listing's detailed description. - */ - - readonly extendedDescription: () => Field<"extendedDescription">; - - /** - * @description The listing's detailed description rendered to HTML. - */ - - readonly extendedDescriptionHTML: () => Field<"extendedDescriptionHTML">; - - /** - * @description The listing's introductory description. - */ - - readonly fullDescription: () => Field<"fullDescription">; - - /** - * @description The listing's introductory description rendered to HTML. - */ - - readonly fullDescriptionHTML: () => Field<"fullDescriptionHTML">; - - /** - * @description Does this listing have any plans with a free trial? - */ - - readonly hasPublishedFreeTrialPlans: () => Field<"hasPublishedFreeTrialPlans">; - - /** - * @description Does this listing have a terms of service link? - */ - - readonly hasTermsOfService: () => Field<"hasTermsOfService">; - - /** - * @description Whether the creator of the app is a verified org - */ - - readonly hasVerifiedOwner: () => Field<"hasVerifiedOwner">; - - /** - * @description A technical description of how this app works with GitHub. - */ - - readonly howItWorks: () => Field<"howItWorks">; - - /** - * @description The listing's technical description rendered to HTML. - */ - - readonly howItWorksHTML: () => Field<"howItWorksHTML">; - - readonly id: () => Field<"id">; - - /** - * @description URL to install the product to the viewer's account or organization. - */ - - readonly installationUrl: () => Field<"installationUrl">; - - /** - * @description Whether this listing's app has been installed for the current viewer - */ - - readonly installedForViewer: () => Field<"installedForViewer">; - - /** - * @description Whether this listing has been removed from the Marketplace. - */ - - readonly isArchived: () => Field<"isArchived">; - - /** - * @description Whether this listing is still an editable draft that has not been submitted -for review and is not publicly visible in the Marketplace. - */ - - readonly isDraft: () => Field<"isDraft">; - - /** - * @description Whether the product this listing represents is available as part of a paid plan. - */ - - readonly isPaid: () => Field<"isPaid">; - - /** - * @description Whether this listing has been approved for display in the Marketplace. - */ - - readonly isPublic: () => Field<"isPublic">; - - /** - * @description Whether this listing has been rejected by GitHub for display in the Marketplace. - */ - - readonly isRejected: () => Field<"isRejected">; - - /** - * @description Whether this listing has been approved for unverified display in the Marketplace. - */ - - readonly isUnverified: () => Field<"isUnverified">; - - /** - * @description Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace. - */ - - readonly isUnverifiedPending: () => Field<"isUnverifiedPending">; - - /** - * @description Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - */ - - readonly isVerificationPendingFromDraft: () => Field<"isVerificationPendingFromDraft">; - - /** - * @description Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - */ - - readonly isVerificationPendingFromUnverified: () => Field<"isVerificationPendingFromUnverified">; - - /** - * @description Whether this listing has been approved for verified display in the Marketplace. - */ - - readonly isVerified: () => Field<"isVerified">; - - /** - * @description The hex color code, without the leading '#', for the logo background. - */ - - readonly logoBackgroundColor: () => Field<"logoBackgroundColor">; - - /** - * @description URL for the listing's logo image. - */ - - readonly logoUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"logoUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description The listing's full name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The listing's very short description without a trailing period or ampersands. - */ - - readonly normalizedShortDescription: () => Field<"normalizedShortDescription">; - - /** - * @description URL to the listing's detailed pricing. - */ - - readonly pricingUrl: () => Field<"pricingUrl">; - - /** - * @description The category that best describes the listing. - */ - - readonly primaryCategory: >( - select: (t: MarketplaceCategorySelector) => T - ) => Field<"primaryCategory", never, SelectionSet>; - - /** - * @description URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL. - */ - - readonly privacyPolicyUrl: () => Field<"privacyPolicyUrl">; - - /** - * @description The HTTP path for the Marketplace listing. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The URLs for the listing's screenshots. - */ - - readonly screenshotUrls: () => Field<"screenshotUrls">; - - /** - * @description An alternate category that describes the listing. - */ - - readonly secondaryCategory: >( - select: (t: MarketplaceCategorySelector) => T - ) => Field<"secondaryCategory", never, SelectionSet>; - - /** - * @description The listing's very short description. - */ - - readonly shortDescription: () => Field<"shortDescription">; - - /** - * @description The short name of the listing used in its URL. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description URL to the listing's status page. - */ - - readonly statusUrl: () => Field<"statusUrl">; - - /** - * @description An email address for support for this listing's app. - */ - - readonly supportEmail: () => Field<"supportEmail">; - - /** - * @description Either a URL or an email address for support for this listing's app, may -return an empty string for listings that do not require a support URL. - */ - - readonly supportUrl: () => Field<"supportUrl">; - - /** - * @description URL to the listing's terms of service. - */ - - readonly termsOfServiceUrl: () => Field<"termsOfServiceUrl">; - - /** - * @description The HTTP URL for the Marketplace listing. - */ - - readonly url: () => Field<"url">; - - /** - * @description Can the current viewer add plans for this Marketplace listing. - */ - - readonly viewerCanAddPlans: () => Field<"viewerCanAddPlans">; - - /** - * @description Can the current viewer approve this Marketplace listing. - */ - - readonly viewerCanApprove: () => Field<"viewerCanApprove">; - - /** - * @description Can the current viewer delist this Marketplace listing. - */ - - readonly viewerCanDelist: () => Field<"viewerCanDelist">; - - /** - * @description Can the current viewer edit this Marketplace listing. - */ - - readonly viewerCanEdit: () => Field<"viewerCanEdit">; - - /** - * @description Can the current viewer edit the primary and secondary category of this -Marketplace listing. - */ - - readonly viewerCanEditCategories: () => Field<"viewerCanEditCategories">; - - /** - * @description Can the current viewer edit the plans for this Marketplace listing. - */ - - readonly viewerCanEditPlans: () => Field<"viewerCanEditPlans">; - - /** - * @description Can the current viewer return this Marketplace listing to draft state -so it becomes editable again. - */ - - readonly viewerCanRedraft: () => Field<"viewerCanRedraft">; - - /** - * @description Can the current viewer reject this Marketplace listing by returning it to -an editable draft state or rejecting it entirely. - */ - - readonly viewerCanReject: () => Field<"viewerCanReject">; - - /** - * @description Can the current viewer request this listing be reviewed for display in -the Marketplace as verified. - */ - - readonly viewerCanRequestApproval: () => Field<"viewerCanRequestApproval">; - - /** - * @description Indicates whether the current user has an active subscription to this Marketplace listing. - */ - - readonly viewerHasPurchased: () => Field<"viewerHasPurchased">; - - /** - * @description Indicates if the current user has purchased a subscription to this Marketplace listing -for all of the organizations the user owns. - */ - - readonly viewerHasPurchasedForAllOrganizations: () => Field<"viewerHasPurchasedForAllOrganizations">; - - /** - * @description Does the current viewer role allow them to administer this Marketplace listing. - */ - - readonly viewerIsListingAdmin: () => Field<"viewerIsListingAdmin">; -} - -export const isMarketplaceListing = ( - object: Record -): object is Partial => { - return object.__typename === "MarketplaceListing"; -}; - -export const MarketplaceListing: MarketplaceListingSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The GitHub App this listing represents. - */ - - app: (select) => - new Field("app", undefined as never, new SelectionSet(select(App))), - - /** - * @description URL to the listing owner's company site. - */ - companyUrl: () => new Field("companyUrl"), - - /** - * @description The HTTP path for configuring access to the listing's integration or OAuth app - */ - configurationResourcePath: () => new Field("configurationResourcePath"), - - /** - * @description The HTTP URL for configuring access to the listing's integration or OAuth app - */ - configurationUrl: () => new Field("configurationUrl"), - - /** - * @description URL to the listing's documentation. - */ - documentationUrl: () => new Field("documentationUrl"), - - /** - * @description The listing's detailed description. - */ - extendedDescription: () => new Field("extendedDescription"), - - /** - * @description The listing's detailed description rendered to HTML. - */ - extendedDescriptionHTML: () => new Field("extendedDescriptionHTML"), - - /** - * @description The listing's introductory description. - */ - fullDescription: () => new Field("fullDescription"), - - /** - * @description The listing's introductory description rendered to HTML. - */ - fullDescriptionHTML: () => new Field("fullDescriptionHTML"), - - /** - * @description Does this listing have any plans with a free trial? - */ - hasPublishedFreeTrialPlans: () => new Field("hasPublishedFreeTrialPlans"), - - /** - * @description Does this listing have a terms of service link? - */ - hasTermsOfService: () => new Field("hasTermsOfService"), - - /** - * @description Whether the creator of the app is a verified org - */ - hasVerifiedOwner: () => new Field("hasVerifiedOwner"), - - /** - * @description A technical description of how this app works with GitHub. - */ - howItWorks: () => new Field("howItWorks"), - - /** - * @description The listing's technical description rendered to HTML. - */ - howItWorksHTML: () => new Field("howItWorksHTML"), - id: () => new Field("id"), - - /** - * @description URL to install the product to the viewer's account or organization. - */ - installationUrl: () => new Field("installationUrl"), - - /** - * @description Whether this listing's app has been installed for the current viewer - */ - installedForViewer: () => new Field("installedForViewer"), - - /** - * @description Whether this listing has been removed from the Marketplace. - */ - isArchived: () => new Field("isArchived"), - - /** - * @description Whether this listing is still an editable draft that has not been submitted -for review and is not publicly visible in the Marketplace. - */ - isDraft: () => new Field("isDraft"), - - /** - * @description Whether the product this listing represents is available as part of a paid plan. - */ - isPaid: () => new Field("isPaid"), - - /** - * @description Whether this listing has been approved for display in the Marketplace. - */ - isPublic: () => new Field("isPublic"), - - /** - * @description Whether this listing has been rejected by GitHub for display in the Marketplace. - */ - isRejected: () => new Field("isRejected"), - - /** - * @description Whether this listing has been approved for unverified display in the Marketplace. - */ - isUnverified: () => new Field("isUnverified"), - - /** - * @description Whether this draft listing has been submitted for review for approval to be unverified in the Marketplace. - */ - isUnverifiedPending: () => new Field("isUnverifiedPending"), - - /** - * @description Whether this draft listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - */ - isVerificationPendingFromDraft: () => - new Field("isVerificationPendingFromDraft"), - - /** - * @description Whether this unverified listing has been submitted for review from GitHub for approval to be verified in the Marketplace. - */ - isVerificationPendingFromUnverified: () => - new Field("isVerificationPendingFromUnverified"), - - /** - * @description Whether this listing has been approved for verified display in the Marketplace. - */ - isVerified: () => new Field("isVerified"), - - /** - * @description The hex color code, without the leading '#', for the logo background. - */ - logoBackgroundColor: () => new Field("logoBackgroundColor"), - - /** - * @description URL for the listing's logo image. - */ - logoUrl: (variables) => new Field("logoUrl"), - - /** - * @description The listing's full name. - */ - name: () => new Field("name"), - - /** - * @description The listing's very short description without a trailing period or ampersands. - */ - normalizedShortDescription: () => new Field("normalizedShortDescription"), - - /** - * @description URL to the listing's detailed pricing. - */ - pricingUrl: () => new Field("pricingUrl"), - - /** - * @description The category that best describes the listing. - */ - - primaryCategory: (select) => - new Field( - "primaryCategory", - undefined as never, - new SelectionSet(select(MarketplaceCategory)) - ), - - /** - * @description URL to the listing's privacy policy, may return an empty string for listings that do not require a privacy policy URL. - */ - privacyPolicyUrl: () => new Field("privacyPolicyUrl"), - - /** - * @description The HTTP path for the Marketplace listing. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The URLs for the listing's screenshots. - */ - screenshotUrls: () => new Field("screenshotUrls"), - - /** - * @description An alternate category that describes the listing. - */ - - secondaryCategory: (select) => - new Field( - "secondaryCategory", - undefined as never, - new SelectionSet(select(MarketplaceCategory)) - ), - - /** - * @description The listing's very short description. - */ - shortDescription: () => new Field("shortDescription"), - - /** - * @description The short name of the listing used in its URL. - */ - slug: () => new Field("slug"), - - /** - * @description URL to the listing's status page. - */ - statusUrl: () => new Field("statusUrl"), - - /** - * @description An email address for support for this listing's app. - */ - supportEmail: () => new Field("supportEmail"), - - /** - * @description Either a URL or an email address for support for this listing's app, may -return an empty string for listings that do not require a support URL. - */ - supportUrl: () => new Field("supportUrl"), - - /** - * @description URL to the listing's terms of service. - */ - termsOfServiceUrl: () => new Field("termsOfServiceUrl"), - - /** - * @description The HTTP URL for the Marketplace listing. - */ - url: () => new Field("url"), - - /** - * @description Can the current viewer add plans for this Marketplace listing. - */ - viewerCanAddPlans: () => new Field("viewerCanAddPlans"), - - /** - * @description Can the current viewer approve this Marketplace listing. - */ - viewerCanApprove: () => new Field("viewerCanApprove"), - - /** - * @description Can the current viewer delist this Marketplace listing. - */ - viewerCanDelist: () => new Field("viewerCanDelist"), - - /** - * @description Can the current viewer edit this Marketplace listing. - */ - viewerCanEdit: () => new Field("viewerCanEdit"), - - /** - * @description Can the current viewer edit the primary and secondary category of this -Marketplace listing. - */ - viewerCanEditCategories: () => new Field("viewerCanEditCategories"), - - /** - * @description Can the current viewer edit the plans for this Marketplace listing. - */ - viewerCanEditPlans: () => new Field("viewerCanEditPlans"), - - /** - * @description Can the current viewer return this Marketplace listing to draft state -so it becomes editable again. - */ - viewerCanRedraft: () => new Field("viewerCanRedraft"), - - /** - * @description Can the current viewer reject this Marketplace listing by returning it to -an editable draft state or rejecting it entirely. - */ - viewerCanReject: () => new Field("viewerCanReject"), - - /** - * @description Can the current viewer request this listing be reviewed for display in -the Marketplace as verified. - */ - viewerCanRequestApproval: () => new Field("viewerCanRequestApproval"), - - /** - * @description Indicates whether the current user has an active subscription to this Marketplace listing. - */ - viewerHasPurchased: () => new Field("viewerHasPurchased"), - - /** - * @description Indicates if the current user has purchased a subscription to this Marketplace listing -for all of the organizations the user owns. - */ - viewerHasPurchasedForAllOrganizations: () => - new Field("viewerHasPurchasedForAllOrganizations"), - - /** - * @description Does the current viewer role allow them to administer this Marketplace listing. - */ - viewerIsListingAdmin: () => new Field("viewerIsListingAdmin"), -}; - -export interface IMarketplaceListingConnection { - readonly __typename: "MarketplaceListingConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface MarketplaceListingConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: MarketplaceListingEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: MarketplaceListingSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const MarketplaceListingConnection: MarketplaceListingConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(MarketplaceListingEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(MarketplaceListing)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IMarketplaceListingEdge { - readonly __typename: "MarketplaceListingEdge"; - readonly cursor: string; - readonly node: IMarketplaceListing | null; -} - -interface MarketplaceListingEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: MarketplaceListingSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const MarketplaceListingEdge: MarketplaceListingEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(MarketplaceListing)) - ), -}; - -export interface IMemberStatusable { - readonly __typename: string; - readonly memberStatuses: IUserStatusConnection; -} - -interface MemberStatusableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - readonly memberStatuses: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | UserStatusOrder; - }, - select: (t: UserStatusConnectionSelector) => T - ) => Field< - "memberStatuses", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | UserStatusOrder> - ], - SelectionSet - >; - - readonly on: , F extends "Organization" | "Team">( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "Team" - ? TeamSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const MemberStatusable: MemberStatusableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - memberStatuses: (variables, select) => - new Field( - "memberStatuses", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(UserStatusConnection)) - ), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "MemberStatusable", - }); - } - }, -}; - -export interface IMembersCanDeleteReposClearAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "MembersCanDeleteReposClearAuditEntry"; -} - -interface MembersCanDeleteReposClearAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isMembersCanDeleteReposClearAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "MembersCanDeleteReposClearAuditEntry"; -}; - -export const MembersCanDeleteReposClearAuditEntry: MembersCanDeleteReposClearAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IMembersCanDeleteReposDisableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "MembersCanDeleteReposDisableAuditEntry"; -} - -interface MembersCanDeleteReposDisableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isMembersCanDeleteReposDisableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "MembersCanDeleteReposDisableAuditEntry"; -}; - -export const MembersCanDeleteReposDisableAuditEntry: MembersCanDeleteReposDisableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IMembersCanDeleteReposEnableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "MembersCanDeleteReposEnableAuditEntry"; -} - -interface MembersCanDeleteReposEnableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isMembersCanDeleteReposEnableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "MembersCanDeleteReposEnableAuditEntry"; -}; - -export const MembersCanDeleteReposEnableAuditEntry: MembersCanDeleteReposEnableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IMentionedEvent extends INode { - readonly __typename: "MentionedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; -} - -interface MentionedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; -} - -export const isMentionedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "MentionedEvent"; -}; - -export const MentionedEvent: MentionedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), -}; - -export interface IMergeBranchPayload { - readonly __typename: "MergeBranchPayload"; - readonly clientMutationId: string | null; - readonly mergeCommit: ICommit | null; -} - -interface MergeBranchPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The resulting merge Commit. - */ - - readonly mergeCommit: >( - select: (t: CommitSelector) => T - ) => Field<"mergeCommit", never, SelectionSet>; -} - -export const MergeBranchPayload: MergeBranchPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The resulting merge Commit. - */ - - mergeCommit: (select) => - new Field( - "mergeCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), -}; - -export interface IMergePullRequestPayload { - readonly __typename: "MergePullRequestPayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface MergePullRequestPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request that was merged. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const MergePullRequestPayload: MergePullRequestPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request that was merged. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IMergedEvent extends INode, IUniformResourceLocatable { - readonly __typename: "MergedEvent"; - readonly actor: IActor | null; - readonly commit: ICommit | null; - readonly createdAt: unknown; - readonly mergeRef: IRef | null; - readonly mergeRefName: string; - readonly pullRequest: IPullRequest; -} - -interface MergedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the commit associated with the `merge` event. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the Ref associated with the `merge` event. - */ - - readonly mergeRef: >( - select: (t: RefSelector) => T - ) => Field<"mergeRef", never, SelectionSet>; - - /** - * @description Identifies the name of the Ref associated with the `merge` event. - */ - - readonly mergeRefName: () => Field<"mergeRefName">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The HTTP path for this merged event. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this merged event. - */ - - readonly url: () => Field<"url">; -} - -export const isMergedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "MergedEvent"; -}; - -export const MergedEvent: MergedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the commit associated with the `merge` event. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the Ref associated with the `merge` event. - */ - - mergeRef: (select) => - new Field("mergeRef", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Identifies the name of the Ref associated with the `merge` event. - */ - mergeRefName: () => new Field("mergeRefName"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The HTTP path for this merged event. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this merged event. - */ - url: () => new Field("url"), -}; - -export interface IMilestone - extends IClosable, - INode, - IUniformResourceLocatable { - readonly __typename: "Milestone"; - readonly createdAt: unknown; - readonly creator: IActor | null; - readonly description: string | null; - readonly dueOn: unknown | null; - readonly issues: IIssueConnection; - readonly number: number; - readonly progressPercentage: number; - readonly pullRequests: IPullRequestConnection; - readonly repository: IRepository; - readonly state: MilestoneState; - readonly title: string; - readonly updatedAt: unknown; -} - -interface MilestoneSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - - readonly closed: () => Field<"closed">; - - /** - * @description Identifies the date and time when the object was closed. - */ - - readonly closedAt: () => Field<"closedAt">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the actor who created the milestone. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the description of the milestone. - */ - - readonly description: () => Field<"description">; - - /** - * @description Identifies the due date of the milestone. - */ - - readonly dueOn: () => Field<"dueOn">; - - readonly id: () => Field<"id">; - - /** - * @description A list of issues associated with the milestone. - */ - - readonly issues: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | IssueFilters; - first?: Variable<"first"> | number; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | IssueState; - }, - select: (t: IssueConnectionSelector) => T - ) => Field< - "issues", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | IssueFilters>, - Argument<"first", Variable<"first"> | number>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | IssueState> - ], - SelectionSet - >; - - /** - * @description Identifies the number of the milestone. - */ - - readonly number: () => Field<"number">; - - /** - * @description Indentifies the percentage complete for the milestone - */ - - readonly progressPercentage: () => Field<"progressPercentage">; - - /** - * @description A list of pull requests associated with the milestone. - */ - - readonly pullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "pullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description The repository associated with this milestone. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this milestone - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the state of the milestone. - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies the title of the milestone. - */ - - readonly title: () => Field<"title">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this milestone - */ - - readonly url: () => Field<"url">; -} - -export const isMilestone = ( - object: Record -): object is Partial => { - return object.__typename === "Milestone"; -}; - -export const Milestone: MilestoneSelector = { - __typename: () => new Field("__typename"), - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - closed: () => new Field("closed"), - - /** - * @description Identifies the date and time when the object was closed. - */ - closedAt: () => new Field("closedAt"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the actor who created the milestone. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the description of the milestone. - */ - description: () => new Field("description"), - - /** - * @description Identifies the due date of the milestone. - */ - dueOn: () => new Field("dueOn"), - id: () => new Field("id"), - - /** - * @description A list of issues associated with the milestone. - */ - - issues: (variables, select) => - new Field( - "issues", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(IssueConnection)) - ), - - /** - * @description Identifies the number of the milestone. - */ - number: () => new Field("number"), - - /** - * @description Indentifies the percentage complete for the milestone - */ - progressPercentage: () => new Field("progressPercentage"), - - /** - * @description A list of pull requests associated with the milestone. - */ - - pullRequests: (variables, select) => - new Field( - "pullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description The repository associated with this milestone. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this milestone - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the state of the milestone. - */ - state: () => new Field("state"), - - /** - * @description Identifies the title of the milestone. - */ - title: () => new Field("title"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this milestone - */ - url: () => new Field("url"), -}; - -export interface IMilestoneConnection { - readonly __typename: "MilestoneConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface MilestoneConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: MilestoneEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: MilestoneSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const MilestoneConnection: MilestoneConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(MilestoneEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Milestone))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IMilestoneEdge { - readonly __typename: "MilestoneEdge"; - readonly cursor: string; - readonly node: IMilestone | null; -} - -interface MilestoneEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: MilestoneSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const MilestoneEdge: MilestoneEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Milestone))), -}; - -export interface IMilestonedEvent extends INode { - readonly __typename: "MilestonedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly milestoneTitle: string; - readonly subject: IMilestoneItem; -} - -interface MilestonedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the milestone title associated with the 'milestoned' event. - */ - - readonly milestoneTitle: () => Field<"milestoneTitle">; - - /** - * @description Object referenced by event. - */ - - readonly subject: >( - select: (t: MilestoneItemSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isMilestonedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "MilestonedEvent"; -}; - -export const MilestonedEvent: MilestonedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the milestone title associated with the 'milestoned' event. - */ - milestoneTitle: () => new Field("milestoneTitle"), - - /** - * @description Object referenced by event. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(MilestoneItem)) - ), -}; - -export interface IMinimizable { - readonly __typename: string; - readonly isMinimized: boolean; - readonly minimizedReason: string | null; - readonly viewerCanMinimize: boolean; -} - -interface MinimizableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Returns whether or not a comment has been minimized. - */ - - readonly isMinimized: () => Field<"isMinimized">; - - /** - * @description Returns why the comment was minimized. - */ - - readonly minimizedReason: () => Field<"minimizedReason">; - - /** - * @description Check if the current viewer can minimize this object. - */ - - readonly viewerCanMinimize: () => Field<"viewerCanMinimize">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "GistComment" - | "IssueComment" - | "PullRequestReviewComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Minimizable: MinimizableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Returns whether or not a comment has been minimized. - */ - isMinimized: () => new Field("isMinimized"), - - /** - * @description Returns why the comment was minimized. - */ - minimizedReason: () => new Field("minimizedReason"), - - /** - * @description Check if the current viewer can minimize this object. - */ - viewerCanMinimize: () => new Field("viewerCanMinimize"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Minimizable", - }); - } - }, -}; - -export interface IMinimizeCommentPayload { - readonly __typename: "MinimizeCommentPayload"; - readonly clientMutationId: string | null; - readonly minimizedComment: IMinimizable | null; -} - -interface MinimizeCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The comment that was minimized. - */ - - readonly minimizedComment: >( - select: (t: MinimizableSelector) => T - ) => Field<"minimizedComment", never, SelectionSet>; -} - -export const MinimizeCommentPayload: MinimizeCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The comment that was minimized. - */ - - minimizedComment: (select) => - new Field( - "minimizedComment", - undefined as never, - new SelectionSet(select(Minimizable)) - ), -}; - -export interface IMoveProjectCardPayload { - readonly __typename: "MoveProjectCardPayload"; - readonly cardEdge: IProjectCardEdge | null; - readonly clientMutationId: string | null; -} - -interface MoveProjectCardPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The new edge of the moved card. - */ - - readonly cardEdge: >( - select: (t: ProjectCardEdgeSelector) => T - ) => Field<"cardEdge", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const MoveProjectCardPayload: MoveProjectCardPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The new edge of the moved card. - */ - - cardEdge: (select) => - new Field( - "cardEdge", - undefined as never, - new SelectionSet(select(ProjectCardEdge)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IMoveProjectColumnPayload { - readonly __typename: "MoveProjectColumnPayload"; - readonly clientMutationId: string | null; - readonly columnEdge: IProjectColumnEdge | null; -} - -interface MoveProjectColumnPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The new edge of the moved column. - */ - - readonly columnEdge: >( - select: (t: ProjectColumnEdgeSelector) => T - ) => Field<"columnEdge", never, SelectionSet>; -} - -export const MoveProjectColumnPayload: MoveProjectColumnPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The new edge of the moved column. - */ - - columnEdge: (select) => - new Field( - "columnEdge", - undefined as never, - new SelectionSet(select(ProjectColumnEdge)) - ), -}; - -export interface IMovedColumnsInProjectEvent extends INode { - readonly __typename: "MovedColumnsInProjectEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; -} - -interface MovedColumnsInProjectEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; -} - -export const isMovedColumnsInProjectEvent = ( - object: Record -): object is Partial => { - return object.__typename === "MovedColumnsInProjectEvent"; -}; - -export const MovedColumnsInProjectEvent: MovedColumnsInProjectEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), -}; - -export interface IMutation { - readonly __typename: "Mutation"; - readonly acceptEnterpriseAdministratorInvitation: IAcceptEnterpriseAdministratorInvitationPayload | null; - readonly acceptTopicSuggestion: IAcceptTopicSuggestionPayload | null; - readonly addAssigneesToAssignable: IAddAssigneesToAssignablePayload | null; - readonly addComment: IAddCommentPayload | null; - readonly addLabelsToLabelable: IAddLabelsToLabelablePayload | null; - readonly addProjectCard: IAddProjectCardPayload | null; - readonly addProjectColumn: IAddProjectColumnPayload | null; - readonly addPullRequestReview: IAddPullRequestReviewPayload | null; - readonly addPullRequestReviewComment: IAddPullRequestReviewCommentPayload | null; - readonly addPullRequestReviewThread: IAddPullRequestReviewThreadPayload | null; - readonly addReaction: IAddReactionPayload | null; - readonly addStar: IAddStarPayload | null; - readonly archiveRepository: IArchiveRepositoryPayload | null; - readonly cancelEnterpriseAdminInvitation: ICancelEnterpriseAdminInvitationPayload | null; - readonly changeUserStatus: IChangeUserStatusPayload | null; - readonly clearLabelsFromLabelable: IClearLabelsFromLabelablePayload | null; - readonly cloneProject: ICloneProjectPayload | null; - readonly cloneTemplateRepository: ICloneTemplateRepositoryPayload | null; - readonly closeIssue: ICloseIssuePayload | null; - readonly closePullRequest: IClosePullRequestPayload | null; - readonly convertProjectCardNoteToIssue: IConvertProjectCardNoteToIssuePayload | null; - readonly createBranchProtectionRule: ICreateBranchProtectionRulePayload | null; - readonly createCheckRun: ICreateCheckRunPayload | null; - readonly createCheckSuite: ICreateCheckSuitePayload | null; - readonly createEnterpriseOrganization: ICreateEnterpriseOrganizationPayload | null; - readonly createIpAllowListEntry: ICreateIpAllowListEntryPayload | null; - readonly createIssue: ICreateIssuePayload | null; - readonly createProject: ICreateProjectPayload | null; - readonly createPullRequest: ICreatePullRequestPayload | null; - readonly createRef: ICreateRefPayload | null; - readonly createRepository: ICreateRepositoryPayload | null; - readonly createTeamDiscussion: ICreateTeamDiscussionPayload | null; - readonly createTeamDiscussionComment: ICreateTeamDiscussionCommentPayload | null; - readonly declineTopicSuggestion: IDeclineTopicSuggestionPayload | null; - readonly deleteBranchProtectionRule: IDeleteBranchProtectionRulePayload | null; - readonly deleteDeployment: IDeleteDeploymentPayload | null; - readonly deleteIpAllowListEntry: IDeleteIpAllowListEntryPayload | null; - readonly deleteIssue: IDeleteIssuePayload | null; - readonly deleteIssueComment: IDeleteIssueCommentPayload | null; - readonly deleteProject: IDeleteProjectPayload | null; - readonly deleteProjectCard: IDeleteProjectCardPayload | null; - readonly deleteProjectColumn: IDeleteProjectColumnPayload | null; - readonly deletePullRequestReview: IDeletePullRequestReviewPayload | null; - readonly deletePullRequestReviewComment: IDeletePullRequestReviewCommentPayload | null; - readonly deleteRef: IDeleteRefPayload | null; - readonly deleteTeamDiscussion: IDeleteTeamDiscussionPayload | null; - readonly deleteTeamDiscussionComment: IDeleteTeamDiscussionCommentPayload | null; - readonly dismissPullRequestReview: IDismissPullRequestReviewPayload | null; - readonly followUser: IFollowUserPayload | null; - readonly inviteEnterpriseAdmin: IInviteEnterpriseAdminPayload | null; - readonly linkRepositoryToProject: ILinkRepositoryToProjectPayload | null; - readonly lockLockable: ILockLockablePayload | null; - readonly markFileAsViewed: IMarkFileAsViewedPayload | null; - readonly markPullRequestReadyForReview: IMarkPullRequestReadyForReviewPayload | null; - readonly mergeBranch: IMergeBranchPayload | null; - readonly mergePullRequest: IMergePullRequestPayload | null; - readonly minimizeComment: IMinimizeCommentPayload | null; - readonly moveProjectCard: IMoveProjectCardPayload | null; - readonly moveProjectColumn: IMoveProjectColumnPayload | null; - readonly regenerateEnterpriseIdentityProviderRecoveryCodes: IRegenerateEnterpriseIdentityProviderRecoveryCodesPayload | null; - readonly removeAssigneesFromAssignable: IRemoveAssigneesFromAssignablePayload | null; - readonly removeEnterpriseAdmin: IRemoveEnterpriseAdminPayload | null; - readonly removeEnterpriseIdentityProvider: IRemoveEnterpriseIdentityProviderPayload | null; - readonly removeEnterpriseOrganization: IRemoveEnterpriseOrganizationPayload | null; - readonly removeLabelsFromLabelable: IRemoveLabelsFromLabelablePayload | null; - readonly removeOutsideCollaborator: IRemoveOutsideCollaboratorPayload | null; - readonly removeReaction: IRemoveReactionPayload | null; - readonly removeStar: IRemoveStarPayload | null; - readonly reopenIssue: IReopenIssuePayload | null; - readonly reopenPullRequest: IReopenPullRequestPayload | null; - readonly requestReviews: IRequestReviewsPayload | null; - readonly rerequestCheckSuite: IRerequestCheckSuitePayload | null; - readonly resolveReviewThread: IResolveReviewThreadPayload | null; - readonly setEnterpriseIdentityProvider: ISetEnterpriseIdentityProviderPayload | null; - readonly setOrganizationInteractionLimit: ISetOrganizationInteractionLimitPayload | null; - readonly setRepositoryInteractionLimit: ISetRepositoryInteractionLimitPayload | null; - readonly setUserInteractionLimit: ISetUserInteractionLimitPayload | null; - readonly submitPullRequestReview: ISubmitPullRequestReviewPayload | null; - readonly transferIssue: ITransferIssuePayload | null; - readonly unarchiveRepository: IUnarchiveRepositoryPayload | null; - readonly unfollowUser: IUnfollowUserPayload | null; - readonly unlinkRepositoryFromProject: IUnlinkRepositoryFromProjectPayload | null; - readonly unlockLockable: IUnlockLockablePayload | null; - readonly unmarkFileAsViewed: IUnmarkFileAsViewedPayload | null; - readonly unmarkIssueAsDuplicate: IUnmarkIssueAsDuplicatePayload | null; - readonly unminimizeComment: IUnminimizeCommentPayload | null; - readonly unresolveReviewThread: IUnresolveReviewThreadPayload | null; - readonly updateBranchProtectionRule: IUpdateBranchProtectionRulePayload | null; - readonly updateCheckRun: IUpdateCheckRunPayload | null; - readonly updateCheckSuitePreferences: IUpdateCheckSuitePreferencesPayload | null; - readonly updateEnterpriseAdministratorRole: IUpdateEnterpriseAdministratorRolePayload | null; - readonly updateEnterpriseAllowPrivateRepositoryForkingSetting: IUpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload | null; - readonly updateEnterpriseDefaultRepositoryPermissionSetting: IUpdateEnterpriseDefaultRepositoryPermissionSettingPayload | null; - readonly updateEnterpriseMembersCanChangeRepositoryVisibilitySetting: IUpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload | null; - readonly updateEnterpriseMembersCanCreateRepositoriesSetting: IUpdateEnterpriseMembersCanCreateRepositoriesSettingPayload | null; - readonly updateEnterpriseMembersCanDeleteIssuesSetting: IUpdateEnterpriseMembersCanDeleteIssuesSettingPayload | null; - readonly updateEnterpriseMembersCanDeleteRepositoriesSetting: IUpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload | null; - readonly updateEnterpriseMembersCanInviteCollaboratorsSetting: IUpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload | null; - readonly updateEnterpriseMembersCanMakePurchasesSetting: IUpdateEnterpriseMembersCanMakePurchasesSettingPayload | null; - readonly updateEnterpriseMembersCanUpdateProtectedBranchesSetting: IUpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload | null; - readonly updateEnterpriseMembersCanViewDependencyInsightsSetting: IUpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload | null; - readonly updateEnterpriseOrganizationProjectsSetting: IUpdateEnterpriseOrganizationProjectsSettingPayload | null; - readonly updateEnterpriseProfile: IUpdateEnterpriseProfilePayload | null; - readonly updateEnterpriseRepositoryProjectsSetting: IUpdateEnterpriseRepositoryProjectsSettingPayload | null; - readonly updateEnterpriseTeamDiscussionsSetting: IUpdateEnterpriseTeamDiscussionsSettingPayload | null; - readonly updateEnterpriseTwoFactorAuthenticationRequiredSetting: IUpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload | null; - readonly updateIpAllowListEnabledSetting: IUpdateIpAllowListEnabledSettingPayload | null; - readonly updateIpAllowListEntry: IUpdateIpAllowListEntryPayload | null; - readonly updateIssue: IUpdateIssuePayload | null; - readonly updateIssueComment: IUpdateIssueCommentPayload | null; - readonly updateProject: IUpdateProjectPayload | null; - readonly updateProjectCard: IUpdateProjectCardPayload | null; - readonly updateProjectColumn: IUpdateProjectColumnPayload | null; - readonly updatePullRequest: IUpdatePullRequestPayload | null; - readonly updatePullRequestReview: IUpdatePullRequestReviewPayload | null; - readonly updatePullRequestReviewComment: IUpdatePullRequestReviewCommentPayload | null; - readonly updateRef: IUpdateRefPayload | null; - readonly updateRepository: IUpdateRepositoryPayload | null; - readonly updateSubscription: IUpdateSubscriptionPayload | null; - readonly updateTeamDiscussion: IUpdateTeamDiscussionPayload | null; - readonly updateTeamDiscussionComment: IUpdateTeamDiscussionCommentPayload | null; - readonly updateTopics: IUpdateTopicsPayload | null; -} - -interface MutationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Accepts a pending invitation for a user to become an administrator of an enterprise. - */ - - readonly acceptEnterpriseAdministratorInvitation: < - T extends Array - >( - variables: { - input?: Variable<"input"> | AcceptEnterpriseAdministratorInvitationInput; - }, - select: (t: AcceptEnterpriseAdministratorInvitationPayloadSelector) => T - ) => Field< - "acceptEnterpriseAdministratorInvitation", - [ - Argument< - "input", - Variable<"input"> | AcceptEnterpriseAdministratorInvitationInput - > - ], - SelectionSet - >; - - /** - * @description Applies a suggested topic to the repository. - */ - - readonly acceptTopicSuggestion: >( - variables: { input?: Variable<"input"> | AcceptTopicSuggestionInput }, - select: (t: AcceptTopicSuggestionPayloadSelector) => T - ) => Field< - "acceptTopicSuggestion", - [Argument<"input", Variable<"input"> | AcceptTopicSuggestionInput>], - SelectionSet - >; - - /** - * @description Adds assignees to an assignable object. - */ - - readonly addAssigneesToAssignable: >( - variables: { input?: Variable<"input"> | AddAssigneesToAssignableInput }, - select: (t: AddAssigneesToAssignablePayloadSelector) => T - ) => Field< - "addAssigneesToAssignable", - [Argument<"input", Variable<"input"> | AddAssigneesToAssignableInput>], - SelectionSet - >; - - /** - * @description Adds a comment to an Issue or Pull Request. - */ - - readonly addComment: >( - variables: { input?: Variable<"input"> | AddCommentInput }, - select: (t: AddCommentPayloadSelector) => T - ) => Field< - "addComment", - [Argument<"input", Variable<"input"> | AddCommentInput>], - SelectionSet - >; - - /** - * @description Adds labels to a labelable object. - */ - - readonly addLabelsToLabelable: >( - variables: { input?: Variable<"input"> | AddLabelsToLabelableInput }, - select: (t: AddLabelsToLabelablePayloadSelector) => T - ) => Field< - "addLabelsToLabelable", - [Argument<"input", Variable<"input"> | AddLabelsToLabelableInput>], - SelectionSet - >; - - /** - * @description Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. - */ - - readonly addProjectCard: >( - variables: { input?: Variable<"input"> | AddProjectCardInput }, - select: (t: AddProjectCardPayloadSelector) => T - ) => Field< - "addProjectCard", - [Argument<"input", Variable<"input"> | AddProjectCardInput>], - SelectionSet - >; - - /** - * @description Adds a column to a Project. - */ - - readonly addProjectColumn: >( - variables: { input?: Variable<"input"> | AddProjectColumnInput }, - select: (t: AddProjectColumnPayloadSelector) => T - ) => Field< - "addProjectColumn", - [Argument<"input", Variable<"input"> | AddProjectColumnInput>], - SelectionSet - >; - - /** - * @description Adds a review to a Pull Request. - */ - - readonly addPullRequestReview: >( - variables: { input?: Variable<"input"> | AddPullRequestReviewInput }, - select: (t: AddPullRequestReviewPayloadSelector) => T - ) => Field< - "addPullRequestReview", - [Argument<"input", Variable<"input"> | AddPullRequestReviewInput>], - SelectionSet - >; - - /** - * @description Adds a comment to a review. - */ - - readonly addPullRequestReviewComment: >( - variables: { input?: Variable<"input"> | AddPullRequestReviewCommentInput }, - select: (t: AddPullRequestReviewCommentPayloadSelector) => T - ) => Field< - "addPullRequestReviewComment", - [Argument<"input", Variable<"input"> | AddPullRequestReviewCommentInput>], - SelectionSet - >; - - /** - * @description Adds a new thread to a pending Pull Request Review. - */ - - readonly addPullRequestReviewThread: >( - variables: { input?: Variable<"input"> | AddPullRequestReviewThreadInput }, - select: (t: AddPullRequestReviewThreadPayloadSelector) => T - ) => Field< - "addPullRequestReviewThread", - [Argument<"input", Variable<"input"> | AddPullRequestReviewThreadInput>], - SelectionSet - >; - - /** - * @description Adds a reaction to a subject. - */ - - readonly addReaction: >( - variables: { input?: Variable<"input"> | AddReactionInput }, - select: (t: AddReactionPayloadSelector) => T - ) => Field< - "addReaction", - [Argument<"input", Variable<"input"> | AddReactionInput>], - SelectionSet - >; - - /** - * @description Adds a star to a Starrable. - */ - - readonly addStar: >( - variables: { input?: Variable<"input"> | AddStarInput }, - select: (t: AddStarPayloadSelector) => T - ) => Field< - "addStar", - [Argument<"input", Variable<"input"> | AddStarInput>], - SelectionSet - >; - - /** - * @description Marks a repository as archived. - */ - - readonly archiveRepository: >( - variables: { input?: Variable<"input"> | ArchiveRepositoryInput }, - select: (t: ArchiveRepositoryPayloadSelector) => T - ) => Field< - "archiveRepository", - [Argument<"input", Variable<"input"> | ArchiveRepositoryInput>], - SelectionSet - >; - - /** - * @description Cancels a pending invitation for an administrator to join an enterprise. - */ - - readonly cancelEnterpriseAdminInvitation: >( - variables: { - input?: Variable<"input"> | CancelEnterpriseAdminInvitationInput; - }, - select: (t: CancelEnterpriseAdminInvitationPayloadSelector) => T - ) => Field< - "cancelEnterpriseAdminInvitation", - [ - Argument< - "input", - Variable<"input"> | CancelEnterpriseAdminInvitationInput - > - ], - SelectionSet - >; - - /** - * @description Update your status on GitHub. - */ - - readonly changeUserStatus: >( - variables: { input?: Variable<"input"> | ChangeUserStatusInput }, - select: (t: ChangeUserStatusPayloadSelector) => T - ) => Field< - "changeUserStatus", - [Argument<"input", Variable<"input"> | ChangeUserStatusInput>], - SelectionSet - >; - - /** - * @description Clears all labels from a labelable object. - */ - - readonly clearLabelsFromLabelable: >( - variables: { input?: Variable<"input"> | ClearLabelsFromLabelableInput }, - select: (t: ClearLabelsFromLabelablePayloadSelector) => T - ) => Field< - "clearLabelsFromLabelable", - [Argument<"input", Variable<"input"> | ClearLabelsFromLabelableInput>], - SelectionSet - >; - - /** - * @description Creates a new project by cloning configuration from an existing project. - */ - - readonly cloneProject: >( - variables: { input?: Variable<"input"> | CloneProjectInput }, - select: (t: CloneProjectPayloadSelector) => T - ) => Field< - "cloneProject", - [Argument<"input", Variable<"input"> | CloneProjectInput>], - SelectionSet - >; - - /** - * @description Create a new repository with the same files and directory structure as a template repository. - */ - - readonly cloneTemplateRepository: >( - variables: { input?: Variable<"input"> | CloneTemplateRepositoryInput }, - select: (t: CloneTemplateRepositoryPayloadSelector) => T - ) => Field< - "cloneTemplateRepository", - [Argument<"input", Variable<"input"> | CloneTemplateRepositoryInput>], - SelectionSet - >; - - /** - * @description Close an issue. - */ - - readonly closeIssue: >( - variables: { input?: Variable<"input"> | CloseIssueInput }, - select: (t: CloseIssuePayloadSelector) => T - ) => Field< - "closeIssue", - [Argument<"input", Variable<"input"> | CloseIssueInput>], - SelectionSet - >; - - /** - * @description Close a pull request. - */ - - readonly closePullRequest: >( - variables: { input?: Variable<"input"> | ClosePullRequestInput }, - select: (t: ClosePullRequestPayloadSelector) => T - ) => Field< - "closePullRequest", - [Argument<"input", Variable<"input"> | ClosePullRequestInput>], - SelectionSet - >; - - /** - * @description Convert a project note card to one associated with a newly created issue. - */ - - readonly convertProjectCardNoteToIssue: >( - variables: { - input?: Variable<"input"> | ConvertProjectCardNoteToIssueInput; - }, - select: (t: ConvertProjectCardNoteToIssuePayloadSelector) => T - ) => Field< - "convertProjectCardNoteToIssue", - [Argument<"input", Variable<"input"> | ConvertProjectCardNoteToIssueInput>], - SelectionSet - >; - - /** - * @description Create a new branch protection rule - */ - - readonly createBranchProtectionRule: >( - variables: { input?: Variable<"input"> | CreateBranchProtectionRuleInput }, - select: (t: CreateBranchProtectionRulePayloadSelector) => T - ) => Field< - "createBranchProtectionRule", - [Argument<"input", Variable<"input"> | CreateBranchProtectionRuleInput>], - SelectionSet - >; - - /** - * @description Create a check run. - */ - - readonly createCheckRun: >( - variables: { input?: Variable<"input"> | CreateCheckRunInput }, - select: (t: CreateCheckRunPayloadSelector) => T - ) => Field< - "createCheckRun", - [Argument<"input", Variable<"input"> | CreateCheckRunInput>], - SelectionSet - >; - - /** - * @description Create a check suite - */ - - readonly createCheckSuite: >( - variables: { input?: Variable<"input"> | CreateCheckSuiteInput }, - select: (t: CreateCheckSuitePayloadSelector) => T - ) => Field< - "createCheckSuite", - [Argument<"input", Variable<"input"> | CreateCheckSuiteInput>], - SelectionSet - >; - - /** - * @description Creates an organization as part of an enterprise account. - */ - - readonly createEnterpriseOrganization: >( - variables: { - input?: Variable<"input"> | CreateEnterpriseOrganizationInput; - }, - select: (t: CreateEnterpriseOrganizationPayloadSelector) => T - ) => Field< - "createEnterpriseOrganization", - [Argument<"input", Variable<"input"> | CreateEnterpriseOrganizationInput>], - SelectionSet - >; - - /** - * @description Creates a new IP allow list entry. - */ - - readonly createIpAllowListEntry: >( - variables: { input?: Variable<"input"> | CreateIpAllowListEntryInput }, - select: (t: CreateIpAllowListEntryPayloadSelector) => T - ) => Field< - "createIpAllowListEntry", - [Argument<"input", Variable<"input"> | CreateIpAllowListEntryInput>], - SelectionSet - >; - - /** - * @description Creates a new issue. - */ - - readonly createIssue: >( - variables: { input?: Variable<"input"> | CreateIssueInput }, - select: (t: CreateIssuePayloadSelector) => T - ) => Field< - "createIssue", - [Argument<"input", Variable<"input"> | CreateIssueInput>], - SelectionSet - >; - - /** - * @description Creates a new project. - */ - - readonly createProject: >( - variables: { input?: Variable<"input"> | CreateProjectInput }, - select: (t: CreateProjectPayloadSelector) => T - ) => Field< - "createProject", - [Argument<"input", Variable<"input"> | CreateProjectInput>], - SelectionSet - >; - - /** - * @description Create a new pull request - */ - - readonly createPullRequest: >( - variables: { input?: Variable<"input"> | CreatePullRequestInput }, - select: (t: CreatePullRequestPayloadSelector) => T - ) => Field< - "createPullRequest", - [Argument<"input", Variable<"input"> | CreatePullRequestInput>], - SelectionSet - >; - - /** - * @description Create a new Git Ref. - */ - - readonly createRef: >( - variables: { input?: Variable<"input"> | CreateRefInput }, - select: (t: CreateRefPayloadSelector) => T - ) => Field< - "createRef", - [Argument<"input", Variable<"input"> | CreateRefInput>], - SelectionSet - >; - - /** - * @description Create a new repository. - */ - - readonly createRepository: >( - variables: { input?: Variable<"input"> | CreateRepositoryInput }, - select: (t: CreateRepositoryPayloadSelector) => T - ) => Field< - "createRepository", - [Argument<"input", Variable<"input"> | CreateRepositoryInput>], - SelectionSet - >; - - /** - * @description Creates a new team discussion. - */ - - readonly createTeamDiscussion: >( - variables: { input?: Variable<"input"> | CreateTeamDiscussionInput }, - select: (t: CreateTeamDiscussionPayloadSelector) => T - ) => Field< - "createTeamDiscussion", - [Argument<"input", Variable<"input"> | CreateTeamDiscussionInput>], - SelectionSet - >; - - /** - * @description Creates a new team discussion comment. - */ - - readonly createTeamDiscussionComment: >( - variables: { input?: Variable<"input"> | CreateTeamDiscussionCommentInput }, - select: (t: CreateTeamDiscussionCommentPayloadSelector) => T - ) => Field< - "createTeamDiscussionComment", - [Argument<"input", Variable<"input"> | CreateTeamDiscussionCommentInput>], - SelectionSet - >; - - /** - * @description Rejects a suggested topic for the repository. - */ - - readonly declineTopicSuggestion: >( - variables: { input?: Variable<"input"> | DeclineTopicSuggestionInput }, - select: (t: DeclineTopicSuggestionPayloadSelector) => T - ) => Field< - "declineTopicSuggestion", - [Argument<"input", Variable<"input"> | DeclineTopicSuggestionInput>], - SelectionSet - >; - - /** - * @description Delete a branch protection rule - */ - - readonly deleteBranchProtectionRule: >( - variables: { input?: Variable<"input"> | DeleteBranchProtectionRuleInput }, - select: (t: DeleteBranchProtectionRulePayloadSelector) => T - ) => Field< - "deleteBranchProtectionRule", - [Argument<"input", Variable<"input"> | DeleteBranchProtectionRuleInput>], - SelectionSet - >; - - /** - * @description Deletes a deployment. - */ - - readonly deleteDeployment: >( - variables: { input?: Variable<"input"> | DeleteDeploymentInput }, - select: (t: DeleteDeploymentPayloadSelector) => T - ) => Field< - "deleteDeployment", - [Argument<"input", Variable<"input"> | DeleteDeploymentInput>], - SelectionSet - >; - - /** - * @description Deletes an IP allow list entry. - */ - - readonly deleteIpAllowListEntry: >( - variables: { input?: Variable<"input"> | DeleteIpAllowListEntryInput }, - select: (t: DeleteIpAllowListEntryPayloadSelector) => T - ) => Field< - "deleteIpAllowListEntry", - [Argument<"input", Variable<"input"> | DeleteIpAllowListEntryInput>], - SelectionSet - >; - - /** - * @description Deletes an Issue object. - */ - - readonly deleteIssue: >( - variables: { input?: Variable<"input"> | DeleteIssueInput }, - select: (t: DeleteIssuePayloadSelector) => T - ) => Field< - "deleteIssue", - [Argument<"input", Variable<"input"> | DeleteIssueInput>], - SelectionSet - >; - - /** - * @description Deletes an IssueComment object. - */ - - readonly deleteIssueComment: >( - variables: { input?: Variable<"input"> | DeleteIssueCommentInput }, - select: (t: DeleteIssueCommentPayloadSelector) => T - ) => Field< - "deleteIssueComment", - [Argument<"input", Variable<"input"> | DeleteIssueCommentInput>], - SelectionSet - >; - - /** - * @description Deletes a project. - */ - - readonly deleteProject: >( - variables: { input?: Variable<"input"> | DeleteProjectInput }, - select: (t: DeleteProjectPayloadSelector) => T - ) => Field< - "deleteProject", - [Argument<"input", Variable<"input"> | DeleteProjectInput>], - SelectionSet - >; - - /** - * @description Deletes a project card. - */ - - readonly deleteProjectCard: >( - variables: { input?: Variable<"input"> | DeleteProjectCardInput }, - select: (t: DeleteProjectCardPayloadSelector) => T - ) => Field< - "deleteProjectCard", - [Argument<"input", Variable<"input"> | DeleteProjectCardInput>], - SelectionSet - >; - - /** - * @description Deletes a project column. - */ - - readonly deleteProjectColumn: >( - variables: { input?: Variable<"input"> | DeleteProjectColumnInput }, - select: (t: DeleteProjectColumnPayloadSelector) => T - ) => Field< - "deleteProjectColumn", - [Argument<"input", Variable<"input"> | DeleteProjectColumnInput>], - SelectionSet - >; - - /** - * @description Deletes a pull request review. - */ - - readonly deletePullRequestReview: >( - variables: { input?: Variable<"input"> | DeletePullRequestReviewInput }, - select: (t: DeletePullRequestReviewPayloadSelector) => T - ) => Field< - "deletePullRequestReview", - [Argument<"input", Variable<"input"> | DeletePullRequestReviewInput>], - SelectionSet - >; - - /** - * @description Deletes a pull request review comment. - */ - - readonly deletePullRequestReviewComment: >( - variables: { - input?: Variable<"input"> | DeletePullRequestReviewCommentInput; - }, - select: (t: DeletePullRequestReviewCommentPayloadSelector) => T - ) => Field< - "deletePullRequestReviewComment", - [ - Argument<"input", Variable<"input"> | DeletePullRequestReviewCommentInput> - ], - SelectionSet - >; - - /** - * @description Delete a Git Ref. - */ - - readonly deleteRef: >( - variables: { input?: Variable<"input"> | DeleteRefInput }, - select: (t: DeleteRefPayloadSelector) => T - ) => Field< - "deleteRef", - [Argument<"input", Variable<"input"> | DeleteRefInput>], - SelectionSet - >; - - /** - * @description Deletes a team discussion. - */ - - readonly deleteTeamDiscussion: >( - variables: { input?: Variable<"input"> | DeleteTeamDiscussionInput }, - select: (t: DeleteTeamDiscussionPayloadSelector) => T - ) => Field< - "deleteTeamDiscussion", - [Argument<"input", Variable<"input"> | DeleteTeamDiscussionInput>], - SelectionSet - >; - - /** - * @description Deletes a team discussion comment. - */ - - readonly deleteTeamDiscussionComment: >( - variables: { input?: Variable<"input"> | DeleteTeamDiscussionCommentInput }, - select: (t: DeleteTeamDiscussionCommentPayloadSelector) => T - ) => Field< - "deleteTeamDiscussionComment", - [Argument<"input", Variable<"input"> | DeleteTeamDiscussionCommentInput>], - SelectionSet - >; - - /** - * @description Dismisses an approved or rejected pull request review. - */ - - readonly dismissPullRequestReview: >( - variables: { input?: Variable<"input"> | DismissPullRequestReviewInput }, - select: (t: DismissPullRequestReviewPayloadSelector) => T - ) => Field< - "dismissPullRequestReview", - [Argument<"input", Variable<"input"> | DismissPullRequestReviewInput>], - SelectionSet - >; - - /** - * @description Follow a user. - */ - - readonly followUser: >( - variables: { input?: Variable<"input"> | FollowUserInput }, - select: (t: FollowUserPayloadSelector) => T - ) => Field< - "followUser", - [Argument<"input", Variable<"input"> | FollowUserInput>], - SelectionSet - >; - - /** - * @description Invite someone to become an administrator of the enterprise. - */ - - readonly inviteEnterpriseAdmin: >( - variables: { input?: Variable<"input"> | InviteEnterpriseAdminInput }, - select: (t: InviteEnterpriseAdminPayloadSelector) => T - ) => Field< - "inviteEnterpriseAdmin", - [Argument<"input", Variable<"input"> | InviteEnterpriseAdminInput>], - SelectionSet - >; - - /** - * @description Creates a repository link for a project. - */ - - readonly linkRepositoryToProject: >( - variables: { input?: Variable<"input"> | LinkRepositoryToProjectInput }, - select: (t: LinkRepositoryToProjectPayloadSelector) => T - ) => Field< - "linkRepositoryToProject", - [Argument<"input", Variable<"input"> | LinkRepositoryToProjectInput>], - SelectionSet - >; - - /** - * @description Lock a lockable object - */ - - readonly lockLockable: >( - variables: { input?: Variable<"input"> | LockLockableInput }, - select: (t: LockLockablePayloadSelector) => T - ) => Field< - "lockLockable", - [Argument<"input", Variable<"input"> | LockLockableInput>], - SelectionSet - >; - - /** - * @description Mark a pull request file as viewed - */ - - readonly markFileAsViewed: >( - variables: { input?: Variable<"input"> | MarkFileAsViewedInput }, - select: (t: MarkFileAsViewedPayloadSelector) => T - ) => Field< - "markFileAsViewed", - [Argument<"input", Variable<"input"> | MarkFileAsViewedInput>], - SelectionSet - >; - - /** - * @description Marks a pull request ready for review. - */ - - readonly markPullRequestReadyForReview: >( - variables: { - input?: Variable<"input"> | MarkPullRequestReadyForReviewInput; - }, - select: (t: MarkPullRequestReadyForReviewPayloadSelector) => T - ) => Field< - "markPullRequestReadyForReview", - [Argument<"input", Variable<"input"> | MarkPullRequestReadyForReviewInput>], - SelectionSet - >; - - /** - * @description Merge a head into a branch. - */ - - readonly mergeBranch: >( - variables: { input?: Variable<"input"> | MergeBranchInput }, - select: (t: MergeBranchPayloadSelector) => T - ) => Field< - "mergeBranch", - [Argument<"input", Variable<"input"> | MergeBranchInput>], - SelectionSet - >; - - /** - * @description Merge a pull request. - */ - - readonly mergePullRequest: >( - variables: { input?: Variable<"input"> | MergePullRequestInput }, - select: (t: MergePullRequestPayloadSelector) => T - ) => Field< - "mergePullRequest", - [Argument<"input", Variable<"input"> | MergePullRequestInput>], - SelectionSet - >; - - /** - * @description Minimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - readonly minimizeComment: >( - variables: { input?: Variable<"input"> | MinimizeCommentInput }, - select: (t: MinimizeCommentPayloadSelector) => T - ) => Field< - "minimizeComment", - [Argument<"input", Variable<"input"> | MinimizeCommentInput>], - SelectionSet - >; - - /** - * @description Moves a project card to another place. - */ - - readonly moveProjectCard: >( - variables: { input?: Variable<"input"> | MoveProjectCardInput }, - select: (t: MoveProjectCardPayloadSelector) => T - ) => Field< - "moveProjectCard", - [Argument<"input", Variable<"input"> | MoveProjectCardInput>], - SelectionSet - >; - - /** - * @description Moves a project column to another place. - */ - - readonly moveProjectColumn: >( - variables: { input?: Variable<"input"> | MoveProjectColumnInput }, - select: (t: MoveProjectColumnPayloadSelector) => T - ) => Field< - "moveProjectColumn", - [Argument<"input", Variable<"input"> | MoveProjectColumnInput>], - SelectionSet - >; - - /** - * @description Regenerates the identity provider recovery codes for an enterprise - */ - - readonly regenerateEnterpriseIdentityProviderRecoveryCodes: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | RegenerateEnterpriseIdentityProviderRecoveryCodesInput; - }, - select: ( - t: RegenerateEnterpriseIdentityProviderRecoveryCodesPayloadSelector - ) => T - ) => Field< - "regenerateEnterpriseIdentityProviderRecoveryCodes", - [ - Argument< - "input", - | Variable<"input"> - | RegenerateEnterpriseIdentityProviderRecoveryCodesInput - > - ], - SelectionSet - >; - - /** - * @description Removes assignees from an assignable object. - */ - - readonly removeAssigneesFromAssignable: >( - variables: { - input?: Variable<"input"> | RemoveAssigneesFromAssignableInput; - }, - select: (t: RemoveAssigneesFromAssignablePayloadSelector) => T - ) => Field< - "removeAssigneesFromAssignable", - [Argument<"input", Variable<"input"> | RemoveAssigneesFromAssignableInput>], - SelectionSet - >; - - /** - * @description Removes an administrator from the enterprise. - */ - - readonly removeEnterpriseAdmin: >( - variables: { input?: Variable<"input"> | RemoveEnterpriseAdminInput }, - select: (t: RemoveEnterpriseAdminPayloadSelector) => T - ) => Field< - "removeEnterpriseAdmin", - [Argument<"input", Variable<"input"> | RemoveEnterpriseAdminInput>], - SelectionSet - >; - - /** - * @description Removes the identity provider from an enterprise - */ - - readonly removeEnterpriseIdentityProvider: >( - variables: { - input?: Variable<"input"> | RemoveEnterpriseIdentityProviderInput; - }, - select: (t: RemoveEnterpriseIdentityProviderPayloadSelector) => T - ) => Field< - "removeEnterpriseIdentityProvider", - [ - Argument< - "input", - Variable<"input"> | RemoveEnterpriseIdentityProviderInput - > - ], - SelectionSet - >; - - /** - * @description Removes an organization from the enterprise - */ - - readonly removeEnterpriseOrganization: >( - variables: { - input?: Variable<"input"> | RemoveEnterpriseOrganizationInput; - }, - select: (t: RemoveEnterpriseOrganizationPayloadSelector) => T - ) => Field< - "removeEnterpriseOrganization", - [Argument<"input", Variable<"input"> | RemoveEnterpriseOrganizationInput>], - SelectionSet - >; - - /** - * @description Removes labels from a Labelable object. - */ - - readonly removeLabelsFromLabelable: >( - variables: { input?: Variable<"input"> | RemoveLabelsFromLabelableInput }, - select: (t: RemoveLabelsFromLabelablePayloadSelector) => T - ) => Field< - "removeLabelsFromLabelable", - [Argument<"input", Variable<"input"> | RemoveLabelsFromLabelableInput>], - SelectionSet - >; - - /** - * @description Removes outside collaborator from all repositories in an organization. - */ - - readonly removeOutsideCollaborator: >( - variables: { input?: Variable<"input"> | RemoveOutsideCollaboratorInput }, - select: (t: RemoveOutsideCollaboratorPayloadSelector) => T - ) => Field< - "removeOutsideCollaborator", - [Argument<"input", Variable<"input"> | RemoveOutsideCollaboratorInput>], - SelectionSet - >; - - /** - * @description Removes a reaction from a subject. - */ - - readonly removeReaction: >( - variables: { input?: Variable<"input"> | RemoveReactionInput }, - select: (t: RemoveReactionPayloadSelector) => T - ) => Field< - "removeReaction", - [Argument<"input", Variable<"input"> | RemoveReactionInput>], - SelectionSet - >; - - /** - * @description Removes a star from a Starrable. - */ - - readonly removeStar: >( - variables: { input?: Variable<"input"> | RemoveStarInput }, - select: (t: RemoveStarPayloadSelector) => T - ) => Field< - "removeStar", - [Argument<"input", Variable<"input"> | RemoveStarInput>], - SelectionSet - >; - - /** - * @description Reopen a issue. - */ - - readonly reopenIssue: >( - variables: { input?: Variable<"input"> | ReopenIssueInput }, - select: (t: ReopenIssuePayloadSelector) => T - ) => Field< - "reopenIssue", - [Argument<"input", Variable<"input"> | ReopenIssueInput>], - SelectionSet - >; - - /** - * @description Reopen a pull request. - */ - - readonly reopenPullRequest: >( - variables: { input?: Variable<"input"> | ReopenPullRequestInput }, - select: (t: ReopenPullRequestPayloadSelector) => T - ) => Field< - "reopenPullRequest", - [Argument<"input", Variable<"input"> | ReopenPullRequestInput>], - SelectionSet - >; - - /** - * @description Set review requests on a pull request. - */ - - readonly requestReviews: >( - variables: { input?: Variable<"input"> | RequestReviewsInput }, - select: (t: RequestReviewsPayloadSelector) => T - ) => Field< - "requestReviews", - [Argument<"input", Variable<"input"> | RequestReviewsInput>], - SelectionSet - >; - - /** - * @description Rerequests an existing check suite. - */ - - readonly rerequestCheckSuite: >( - variables: { input?: Variable<"input"> | RerequestCheckSuiteInput }, - select: (t: RerequestCheckSuitePayloadSelector) => T - ) => Field< - "rerequestCheckSuite", - [Argument<"input", Variable<"input"> | RerequestCheckSuiteInput>], - SelectionSet - >; - - /** - * @description Marks a review thread as resolved. - */ - - readonly resolveReviewThread: >( - variables: { input?: Variable<"input"> | ResolveReviewThreadInput }, - select: (t: ResolveReviewThreadPayloadSelector) => T - ) => Field< - "resolveReviewThread", - [Argument<"input", Variable<"input"> | ResolveReviewThreadInput>], - SelectionSet - >; - - /** - * @description Creates or updates the identity provider for an enterprise. - */ - - readonly setEnterpriseIdentityProvider: >( - variables: { - input?: Variable<"input"> | SetEnterpriseIdentityProviderInput; - }, - select: (t: SetEnterpriseIdentityProviderPayloadSelector) => T - ) => Field< - "setEnterpriseIdentityProvider", - [Argument<"input", Variable<"input"> | SetEnterpriseIdentityProviderInput>], - SelectionSet - >; - - /** - * @description Set an organization level interaction limit for an organization's public repositories. - */ - - readonly setOrganizationInteractionLimit: >( - variables: { - input?: Variable<"input"> | SetOrganizationInteractionLimitInput; - }, - select: (t: SetOrganizationInteractionLimitPayloadSelector) => T - ) => Field< - "setOrganizationInteractionLimit", - [ - Argument< - "input", - Variable<"input"> | SetOrganizationInteractionLimitInput - > - ], - SelectionSet - >; - - /** - * @description Sets an interaction limit setting for a repository. - */ - - readonly setRepositoryInteractionLimit: >( - variables: { - input?: Variable<"input"> | SetRepositoryInteractionLimitInput; - }, - select: (t: SetRepositoryInteractionLimitPayloadSelector) => T - ) => Field< - "setRepositoryInteractionLimit", - [Argument<"input", Variable<"input"> | SetRepositoryInteractionLimitInput>], - SelectionSet - >; - - /** - * @description Set a user level interaction limit for an user's public repositories. - */ - - readonly setUserInteractionLimit: >( - variables: { input?: Variable<"input"> | SetUserInteractionLimitInput }, - select: (t: SetUserInteractionLimitPayloadSelector) => T - ) => Field< - "setUserInteractionLimit", - [Argument<"input", Variable<"input"> | SetUserInteractionLimitInput>], - SelectionSet - >; - - /** - * @description Submits a pending pull request review. - */ - - readonly submitPullRequestReview: >( - variables: { input?: Variable<"input"> | SubmitPullRequestReviewInput }, - select: (t: SubmitPullRequestReviewPayloadSelector) => T - ) => Field< - "submitPullRequestReview", - [Argument<"input", Variable<"input"> | SubmitPullRequestReviewInput>], - SelectionSet - >; - - /** - * @description Transfer an issue to a different repository - */ - - readonly transferIssue: >( - variables: { input?: Variable<"input"> | TransferIssueInput }, - select: (t: TransferIssuePayloadSelector) => T - ) => Field< - "transferIssue", - [Argument<"input", Variable<"input"> | TransferIssueInput>], - SelectionSet - >; - - /** - * @description Unarchives a repository. - */ - - readonly unarchiveRepository: >( - variables: { input?: Variable<"input"> | UnarchiveRepositoryInput }, - select: (t: UnarchiveRepositoryPayloadSelector) => T - ) => Field< - "unarchiveRepository", - [Argument<"input", Variable<"input"> | UnarchiveRepositoryInput>], - SelectionSet - >; - - /** - * @description Unfollow a user. - */ - - readonly unfollowUser: >( - variables: { input?: Variable<"input"> | UnfollowUserInput }, - select: (t: UnfollowUserPayloadSelector) => T - ) => Field< - "unfollowUser", - [Argument<"input", Variable<"input"> | UnfollowUserInput>], - SelectionSet - >; - - /** - * @description Deletes a repository link from a project. - */ - - readonly unlinkRepositoryFromProject: >( - variables: { input?: Variable<"input"> | UnlinkRepositoryFromProjectInput }, - select: (t: UnlinkRepositoryFromProjectPayloadSelector) => T - ) => Field< - "unlinkRepositoryFromProject", - [Argument<"input", Variable<"input"> | UnlinkRepositoryFromProjectInput>], - SelectionSet - >; - - /** - * @description Unlock a lockable object - */ - - readonly unlockLockable: >( - variables: { input?: Variable<"input"> | UnlockLockableInput }, - select: (t: UnlockLockablePayloadSelector) => T - ) => Field< - "unlockLockable", - [Argument<"input", Variable<"input"> | UnlockLockableInput>], - SelectionSet - >; - - /** - * @description Unmark a pull request file as viewed - */ - - readonly unmarkFileAsViewed: >( - variables: { input?: Variable<"input"> | UnmarkFileAsViewedInput }, - select: (t: UnmarkFileAsViewedPayloadSelector) => T - ) => Field< - "unmarkFileAsViewed", - [Argument<"input", Variable<"input"> | UnmarkFileAsViewedInput>], - SelectionSet - >; - - /** - * @description Unmark an issue as a duplicate of another issue. - */ - - readonly unmarkIssueAsDuplicate: >( - variables: { input?: Variable<"input"> | UnmarkIssueAsDuplicateInput }, - select: (t: UnmarkIssueAsDuplicatePayloadSelector) => T - ) => Field< - "unmarkIssueAsDuplicate", - [Argument<"input", Variable<"input"> | UnmarkIssueAsDuplicateInput>], - SelectionSet - >; - - /** - * @description Unminimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - readonly unminimizeComment: >( - variables: { input?: Variable<"input"> | UnminimizeCommentInput }, - select: (t: UnminimizeCommentPayloadSelector) => T - ) => Field< - "unminimizeComment", - [Argument<"input", Variable<"input"> | UnminimizeCommentInput>], - SelectionSet - >; - - /** - * @description Marks a review thread as unresolved. - */ - - readonly unresolveReviewThread: >( - variables: { input?: Variable<"input"> | UnresolveReviewThreadInput }, - select: (t: UnresolveReviewThreadPayloadSelector) => T - ) => Field< - "unresolveReviewThread", - [Argument<"input", Variable<"input"> | UnresolveReviewThreadInput>], - SelectionSet - >; - - /** - * @description Create a new branch protection rule - */ - - readonly updateBranchProtectionRule: >( - variables: { input?: Variable<"input"> | UpdateBranchProtectionRuleInput }, - select: (t: UpdateBranchProtectionRulePayloadSelector) => T - ) => Field< - "updateBranchProtectionRule", - [Argument<"input", Variable<"input"> | UpdateBranchProtectionRuleInput>], - SelectionSet - >; - - /** - * @description Update a check run - */ - - readonly updateCheckRun: >( - variables: { input?: Variable<"input"> | UpdateCheckRunInput }, - select: (t: UpdateCheckRunPayloadSelector) => T - ) => Field< - "updateCheckRun", - [Argument<"input", Variable<"input"> | UpdateCheckRunInput>], - SelectionSet - >; - - /** - * @description Modifies the settings of an existing check suite - */ - - readonly updateCheckSuitePreferences: >( - variables: { input?: Variable<"input"> | UpdateCheckSuitePreferencesInput }, - select: (t: UpdateCheckSuitePreferencesPayloadSelector) => T - ) => Field< - "updateCheckSuitePreferences", - [Argument<"input", Variable<"input"> | UpdateCheckSuitePreferencesInput>], - SelectionSet - >; - - /** - * @description Updates the role of an enterprise administrator. - */ - - readonly updateEnterpriseAdministratorRole: >( - variables: { - input?: Variable<"input"> | UpdateEnterpriseAdministratorRoleInput; - }, - select: (t: UpdateEnterpriseAdministratorRolePayloadSelector) => T - ) => Field< - "updateEnterpriseAdministratorRole", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseAdministratorRoleInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether private repository forks are enabled for an enterprise. - */ - - readonly updateEnterpriseAllowPrivateRepositoryForkingSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput; - }, - select: ( - t: UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseAllowPrivateRepositoryForkingSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the default repository permission for organizations in an enterprise. - */ - - readonly updateEnterpriseDefaultRepositoryPermissionSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseDefaultRepositoryPermissionSettingInput; - }, - select: ( - t: UpdateEnterpriseDefaultRepositoryPermissionSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseDefaultRepositoryPermissionSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseDefaultRepositoryPermissionSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether organization members with admin permissions on a repository can change repository visibility. - */ - - readonly updateEnterpriseMembersCanChangeRepositoryVisibilitySetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the members can create repositories setting for an enterprise. - */ - - readonly updateEnterpriseMembersCanCreateRepositoriesSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanCreateRepositoriesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanCreateRepositoriesSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanCreateRepositoriesSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanCreateRepositoriesSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the members can delete issues setting for an enterprise. - */ - - readonly updateEnterpriseMembersCanDeleteIssuesSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanDeleteIssuesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanDeleteIssuesSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanDeleteIssuesSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseMembersCanDeleteIssuesSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the members can delete repositories setting for an enterprise. - */ - - readonly updateEnterpriseMembersCanDeleteRepositoriesSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanDeleteRepositoriesSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether members can invite collaborators are enabled for an enterprise. - */ - - readonly updateEnterpriseMembersCanInviteCollaboratorsSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanInviteCollaboratorsSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether or not an organization admin can make purchases. - */ - - readonly updateEnterpriseMembersCanMakePurchasesSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanMakePurchasesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanMakePurchasesSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanMakePurchasesSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseMembersCanMakePurchasesSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the members can update protected branches setting for an enterprise. - */ - - readonly updateEnterpriseMembersCanUpdateProtectedBranchesSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets the members can view dependency insights for an enterprise. - */ - - readonly updateEnterpriseMembersCanViewDependencyInsightsSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseMembersCanViewDependencyInsightsSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether organization projects are enabled for an enterprise. - */ - - readonly updateEnterpriseOrganizationProjectsSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseOrganizationProjectsSettingInput; - }, - select: (t: UpdateEnterpriseOrganizationProjectsSettingPayloadSelector) => T - ) => Field< - "updateEnterpriseOrganizationProjectsSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseOrganizationProjectsSettingInput - > - ], - SelectionSet - >; - - /** - * @description Updates an enterprise's profile. - */ - - readonly updateEnterpriseProfile: >( - variables: { input?: Variable<"input"> | UpdateEnterpriseProfileInput }, - select: (t: UpdateEnterpriseProfilePayloadSelector) => T - ) => Field< - "updateEnterpriseProfile", - [Argument<"input", Variable<"input"> | UpdateEnterpriseProfileInput>], - SelectionSet - >; - - /** - * @description Sets whether repository projects are enabled for a enterprise. - */ - - readonly updateEnterpriseRepositoryProjectsSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseRepositoryProjectsSettingInput; - }, - select: (t: UpdateEnterpriseRepositoryProjectsSettingPayloadSelector) => T - ) => Field< - "updateEnterpriseRepositoryProjectsSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseRepositoryProjectsSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether team discussions are enabled for an enterprise. - */ - - readonly updateEnterpriseTeamDiscussionsSetting: >( - variables: { - input?: Variable<"input"> | UpdateEnterpriseTeamDiscussionsSettingInput; - }, - select: (t: UpdateEnterpriseTeamDiscussionsSettingPayloadSelector) => T - ) => Field< - "updateEnterpriseTeamDiscussionsSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateEnterpriseTeamDiscussionsSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether two factor authentication is required for all users in an enterprise. - */ - - readonly updateEnterpriseTwoFactorAuthenticationRequiredSetting: < - T extends Array - >( - variables: { - input?: - | Variable<"input"> - | UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput; - }, - select: ( - t: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayloadSelector - ) => T - ) => Field< - "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - [ - Argument< - "input", - | Variable<"input"> - | UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput - > - ], - SelectionSet - >; - - /** - * @description Sets whether an IP allow list is enabled on an owner. - */ - - readonly updateIpAllowListEnabledSetting: >( - variables: { - input?: Variable<"input"> | UpdateIpAllowListEnabledSettingInput; - }, - select: (t: UpdateIpAllowListEnabledSettingPayloadSelector) => T - ) => Field< - "updateIpAllowListEnabledSetting", - [ - Argument< - "input", - Variable<"input"> | UpdateIpAllowListEnabledSettingInput - > - ], - SelectionSet - >; - - /** - * @description Updates an IP allow list entry. - */ - - readonly updateIpAllowListEntry: >( - variables: { input?: Variable<"input"> | UpdateIpAllowListEntryInput }, - select: (t: UpdateIpAllowListEntryPayloadSelector) => T - ) => Field< - "updateIpAllowListEntry", - [Argument<"input", Variable<"input"> | UpdateIpAllowListEntryInput>], - SelectionSet - >; - - /** - * @description Updates an Issue. - */ - - readonly updateIssue: >( - variables: { input?: Variable<"input"> | UpdateIssueInput }, - select: (t: UpdateIssuePayloadSelector) => T - ) => Field< - "updateIssue", - [Argument<"input", Variable<"input"> | UpdateIssueInput>], - SelectionSet - >; - - /** - * @description Updates an IssueComment object. - */ - - readonly updateIssueComment: >( - variables: { input?: Variable<"input"> | UpdateIssueCommentInput }, - select: (t: UpdateIssueCommentPayloadSelector) => T - ) => Field< - "updateIssueComment", - [Argument<"input", Variable<"input"> | UpdateIssueCommentInput>], - SelectionSet - >; - - /** - * @description Updates an existing project. - */ - - readonly updateProject: >( - variables: { input?: Variable<"input"> | UpdateProjectInput }, - select: (t: UpdateProjectPayloadSelector) => T - ) => Field< - "updateProject", - [Argument<"input", Variable<"input"> | UpdateProjectInput>], - SelectionSet - >; - - /** - * @description Updates an existing project card. - */ - - readonly updateProjectCard: >( - variables: { input?: Variable<"input"> | UpdateProjectCardInput }, - select: (t: UpdateProjectCardPayloadSelector) => T - ) => Field< - "updateProjectCard", - [Argument<"input", Variable<"input"> | UpdateProjectCardInput>], - SelectionSet - >; - - /** - * @description Updates an existing project column. - */ - - readonly updateProjectColumn: >( - variables: { input?: Variable<"input"> | UpdateProjectColumnInput }, - select: (t: UpdateProjectColumnPayloadSelector) => T - ) => Field< - "updateProjectColumn", - [Argument<"input", Variable<"input"> | UpdateProjectColumnInput>], - SelectionSet - >; - - /** - * @description Update a pull request - */ - - readonly updatePullRequest: >( - variables: { input?: Variable<"input"> | UpdatePullRequestInput }, - select: (t: UpdatePullRequestPayloadSelector) => T - ) => Field< - "updatePullRequest", - [Argument<"input", Variable<"input"> | UpdatePullRequestInput>], - SelectionSet - >; - - /** - * @description Updates the body of a pull request review. - */ - - readonly updatePullRequestReview: >( - variables: { input?: Variable<"input"> | UpdatePullRequestReviewInput }, - select: (t: UpdatePullRequestReviewPayloadSelector) => T - ) => Field< - "updatePullRequestReview", - [Argument<"input", Variable<"input"> | UpdatePullRequestReviewInput>], - SelectionSet - >; - - /** - * @description Updates a pull request review comment. - */ - - readonly updatePullRequestReviewComment: >( - variables: { - input?: Variable<"input"> | UpdatePullRequestReviewCommentInput; - }, - select: (t: UpdatePullRequestReviewCommentPayloadSelector) => T - ) => Field< - "updatePullRequestReviewComment", - [ - Argument<"input", Variable<"input"> | UpdatePullRequestReviewCommentInput> - ], - SelectionSet - >; - - /** - * @description Update a Git Ref. - */ - - readonly updateRef: >( - variables: { input?: Variable<"input"> | UpdateRefInput }, - select: (t: UpdateRefPayloadSelector) => T - ) => Field< - "updateRef", - [Argument<"input", Variable<"input"> | UpdateRefInput>], - SelectionSet - >; - - /** - * @description Update information about a repository. - */ - - readonly updateRepository: >( - variables: { input?: Variable<"input"> | UpdateRepositoryInput }, - select: (t: UpdateRepositoryPayloadSelector) => T - ) => Field< - "updateRepository", - [Argument<"input", Variable<"input"> | UpdateRepositoryInput>], - SelectionSet - >; - - /** - * @description Updates the state for subscribable subjects. - */ - - readonly updateSubscription: >( - variables: { input?: Variable<"input"> | UpdateSubscriptionInput }, - select: (t: UpdateSubscriptionPayloadSelector) => T - ) => Field< - "updateSubscription", - [Argument<"input", Variable<"input"> | UpdateSubscriptionInput>], - SelectionSet - >; - - /** - * @description Updates a team discussion. - */ - - readonly updateTeamDiscussion: >( - variables: { input?: Variable<"input"> | UpdateTeamDiscussionInput }, - select: (t: UpdateTeamDiscussionPayloadSelector) => T - ) => Field< - "updateTeamDiscussion", - [Argument<"input", Variable<"input"> | UpdateTeamDiscussionInput>], - SelectionSet - >; - - /** - * @description Updates a discussion comment. - */ - - readonly updateTeamDiscussionComment: >( - variables: { input?: Variable<"input"> | UpdateTeamDiscussionCommentInput }, - select: (t: UpdateTeamDiscussionCommentPayloadSelector) => T - ) => Field< - "updateTeamDiscussionComment", - [Argument<"input", Variable<"input"> | UpdateTeamDiscussionCommentInput>], - SelectionSet - >; - - /** - * @description Replaces the repository's topics with the given topics. - */ - - readonly updateTopics: >( - variables: { input?: Variable<"input"> | UpdateTopicsInput }, - select: (t: UpdateTopicsPayloadSelector) => T - ) => Field< - "updateTopics", - [Argument<"input", Variable<"input"> | UpdateTopicsInput>], - SelectionSet - >; -} - -export const Mutation: MutationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Accepts a pending invitation for a user to become an administrator of an enterprise. - */ - - acceptEnterpriseAdministratorInvitation: (variables, select) => - new Field( - "acceptEnterpriseAdministratorInvitation", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AcceptEnterpriseAdministratorInvitationPayload)) - ), - - /** - * @description Applies a suggested topic to the repository. - */ - - acceptTopicSuggestion: (variables, select) => - new Field( - "acceptTopicSuggestion", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AcceptTopicSuggestionPayload)) - ), - - /** - * @description Adds assignees to an assignable object. - */ - - addAssigneesToAssignable: (variables, select) => - new Field( - "addAssigneesToAssignable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddAssigneesToAssignablePayload)) - ), - - /** - * @description Adds a comment to an Issue or Pull Request. - */ - - addComment: (variables, select) => - new Field( - "addComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddCommentPayload)) - ), - - /** - * @description Adds labels to a labelable object. - */ - - addLabelsToLabelable: (variables, select) => - new Field( - "addLabelsToLabelable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddLabelsToLabelablePayload)) - ), - - /** - * @description Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. - */ - - addProjectCard: (variables, select) => - new Field( - "addProjectCard", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddProjectCardPayload)) - ), - - /** - * @description Adds a column to a Project. - */ - - addProjectColumn: (variables, select) => - new Field( - "addProjectColumn", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddProjectColumnPayload)) - ), - - /** - * @description Adds a review to a Pull Request. - */ - - addPullRequestReview: (variables, select) => - new Field( - "addPullRequestReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddPullRequestReviewPayload)) - ), - - /** - * @description Adds a comment to a review. - */ - - addPullRequestReviewComment: (variables, select) => - new Field( - "addPullRequestReviewComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddPullRequestReviewCommentPayload)) - ), - - /** - * @description Adds a new thread to a pending Pull Request Review. - */ - - addPullRequestReviewThread: (variables, select) => - new Field( - "addPullRequestReviewThread", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddPullRequestReviewThreadPayload)) - ), - - /** - * @description Adds a reaction to a subject. - */ - - addReaction: (variables, select) => - new Field( - "addReaction", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddReactionPayload)) - ), - - /** - * @description Adds a star to a Starrable. - */ - - addStar: (variables, select) => - new Field( - "addStar", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(AddStarPayload)) - ), - - /** - * @description Marks a repository as archived. - */ - - archiveRepository: (variables, select) => - new Field( - "archiveRepository", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ArchiveRepositoryPayload)) - ), - - /** - * @description Cancels a pending invitation for an administrator to join an enterprise. - */ - - cancelEnterpriseAdminInvitation: (variables, select) => - new Field( - "cancelEnterpriseAdminInvitation", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CancelEnterpriseAdminInvitationPayload)) - ), - - /** - * @description Update your status on GitHub. - */ - - changeUserStatus: (variables, select) => - new Field( - "changeUserStatus", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ChangeUserStatusPayload)) - ), - - /** - * @description Clears all labels from a labelable object. - */ - - clearLabelsFromLabelable: (variables, select) => - new Field( - "clearLabelsFromLabelable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ClearLabelsFromLabelablePayload)) - ), - - /** - * @description Creates a new project by cloning configuration from an existing project. - */ - - cloneProject: (variables, select) => - new Field( - "cloneProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CloneProjectPayload)) - ), - - /** - * @description Create a new repository with the same files and directory structure as a template repository. - */ - - cloneTemplateRepository: (variables, select) => - new Field( - "cloneTemplateRepository", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CloneTemplateRepositoryPayload)) - ), - - /** - * @description Close an issue. - */ - - closeIssue: (variables, select) => - new Field( - "closeIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CloseIssuePayload)) - ), - - /** - * @description Close a pull request. - */ - - closePullRequest: (variables, select) => - new Field( - "closePullRequest", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ClosePullRequestPayload)) - ), - - /** - * @description Convert a project note card to one associated with a newly created issue. - */ - - convertProjectCardNoteToIssue: (variables, select) => - new Field( - "convertProjectCardNoteToIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ConvertProjectCardNoteToIssuePayload)) - ), - - /** - * @description Create a new branch protection rule - */ - - createBranchProtectionRule: (variables, select) => - new Field( - "createBranchProtectionRule", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateBranchProtectionRulePayload)) - ), - - /** - * @description Create a check run. - */ - - createCheckRun: (variables, select) => - new Field( - "createCheckRun", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateCheckRunPayload)) - ), - - /** - * @description Create a check suite - */ - - createCheckSuite: (variables, select) => - new Field( - "createCheckSuite", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateCheckSuitePayload)) - ), - - /** - * @description Creates an organization as part of an enterprise account. - */ - - createEnterpriseOrganization: (variables, select) => - new Field( - "createEnterpriseOrganization", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateEnterpriseOrganizationPayload)) - ), - - /** - * @description Creates a new IP allow list entry. - */ - - createIpAllowListEntry: (variables, select) => - new Field( - "createIpAllowListEntry", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateIpAllowListEntryPayload)) - ), - - /** - * @description Creates a new issue. - */ - - createIssue: (variables, select) => - new Field( - "createIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateIssuePayload)) - ), - - /** - * @description Creates a new project. - */ - - createProject: (variables, select) => - new Field( - "createProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateProjectPayload)) - ), - - /** - * @description Create a new pull request - */ - - createPullRequest: (variables, select) => - new Field( - "createPullRequest", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreatePullRequestPayload)) - ), - - /** - * @description Create a new Git Ref. - */ - - createRef: (variables, select) => - new Field( - "createRef", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateRefPayload)) - ), - - /** - * @description Create a new repository. - */ - - createRepository: (variables, select) => - new Field( - "createRepository", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateRepositoryPayload)) - ), - - /** - * @description Creates a new team discussion. - */ - - createTeamDiscussion: (variables, select) => - new Field( - "createTeamDiscussion", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateTeamDiscussionPayload)) - ), - - /** - * @description Creates a new team discussion comment. - */ - - createTeamDiscussionComment: (variables, select) => - new Field( - "createTeamDiscussionComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(CreateTeamDiscussionCommentPayload)) - ), - - /** - * @description Rejects a suggested topic for the repository. - */ - - declineTopicSuggestion: (variables, select) => - new Field( - "declineTopicSuggestion", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeclineTopicSuggestionPayload)) - ), - - /** - * @description Delete a branch protection rule - */ - - deleteBranchProtectionRule: (variables, select) => - new Field( - "deleteBranchProtectionRule", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteBranchProtectionRulePayload)) - ), - - /** - * @description Deletes a deployment. - */ - - deleteDeployment: (variables, select) => - new Field( - "deleteDeployment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteDeploymentPayload)) - ), - - /** - * @description Deletes an IP allow list entry. - */ - - deleteIpAllowListEntry: (variables, select) => - new Field( - "deleteIpAllowListEntry", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteIpAllowListEntryPayload)) - ), - - /** - * @description Deletes an Issue object. - */ - - deleteIssue: (variables, select) => - new Field( - "deleteIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteIssuePayload)) - ), - - /** - * @description Deletes an IssueComment object. - */ - - deleteIssueComment: (variables, select) => - new Field( - "deleteIssueComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteIssueCommentPayload)) - ), - - /** - * @description Deletes a project. - */ - - deleteProject: (variables, select) => - new Field( - "deleteProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteProjectPayload)) - ), - - /** - * @description Deletes a project card. - */ - - deleteProjectCard: (variables, select) => - new Field( - "deleteProjectCard", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteProjectCardPayload)) - ), - - /** - * @description Deletes a project column. - */ - - deleteProjectColumn: (variables, select) => - new Field( - "deleteProjectColumn", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteProjectColumnPayload)) - ), - - /** - * @description Deletes a pull request review. - */ - - deletePullRequestReview: (variables, select) => - new Field( - "deletePullRequestReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeletePullRequestReviewPayload)) - ), - - /** - * @description Deletes a pull request review comment. - */ - - deletePullRequestReviewComment: (variables, select) => - new Field( - "deletePullRequestReviewComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeletePullRequestReviewCommentPayload)) - ), - - /** - * @description Delete a Git Ref. - */ - - deleteRef: (variables, select) => - new Field( - "deleteRef", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteRefPayload)) - ), - - /** - * @description Deletes a team discussion. - */ - - deleteTeamDiscussion: (variables, select) => - new Field( - "deleteTeamDiscussion", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteTeamDiscussionPayload)) - ), - - /** - * @description Deletes a team discussion comment. - */ - - deleteTeamDiscussionComment: (variables, select) => - new Field( - "deleteTeamDiscussionComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DeleteTeamDiscussionCommentPayload)) - ), - - /** - * @description Dismisses an approved or rejected pull request review. - */ - - dismissPullRequestReview: (variables, select) => - new Field( - "dismissPullRequestReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(DismissPullRequestReviewPayload)) - ), - - /** - * @description Follow a user. - */ - - followUser: (variables, select) => - new Field( - "followUser", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(FollowUserPayload)) - ), - - /** - * @description Invite someone to become an administrator of the enterprise. - */ - - inviteEnterpriseAdmin: (variables, select) => - new Field( - "inviteEnterpriseAdmin", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(InviteEnterpriseAdminPayload)) - ), - - /** - * @description Creates a repository link for a project. - */ - - linkRepositoryToProject: (variables, select) => - new Field( - "linkRepositoryToProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(LinkRepositoryToProjectPayload)) - ), - - /** - * @description Lock a lockable object - */ - - lockLockable: (variables, select) => - new Field( - "lockLockable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(LockLockablePayload)) - ), - - /** - * @description Mark a pull request file as viewed - */ - - markFileAsViewed: (variables, select) => - new Field( - "markFileAsViewed", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MarkFileAsViewedPayload)) - ), - - /** - * @description Marks a pull request ready for review. - */ - - markPullRequestReadyForReview: (variables, select) => - new Field( - "markPullRequestReadyForReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MarkPullRequestReadyForReviewPayload)) - ), - - /** - * @description Merge a head into a branch. - */ - - mergeBranch: (variables, select) => - new Field( - "mergeBranch", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MergeBranchPayload)) - ), - - /** - * @description Merge a pull request. - */ - - mergePullRequest: (variables, select) => - new Field( - "mergePullRequest", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MergePullRequestPayload)) - ), - - /** - * @description Minimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - minimizeComment: (variables, select) => - new Field( - "minimizeComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MinimizeCommentPayload)) - ), - - /** - * @description Moves a project card to another place. - */ - - moveProjectCard: (variables, select) => - new Field( - "moveProjectCard", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MoveProjectCardPayload)) - ), - - /** - * @description Moves a project column to another place. - */ - - moveProjectColumn: (variables, select) => - new Field( - "moveProjectColumn", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(MoveProjectColumnPayload)) - ), - - /** - * @description Regenerates the identity provider recovery codes for an enterprise - */ - - regenerateEnterpriseIdentityProviderRecoveryCodes: (variables, select) => - new Field( - "regenerateEnterpriseIdentityProviderRecoveryCodes", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(RegenerateEnterpriseIdentityProviderRecoveryCodesPayload) - ) - ), - - /** - * @description Removes assignees from an assignable object. - */ - - removeAssigneesFromAssignable: (variables, select) => - new Field( - "removeAssigneesFromAssignable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveAssigneesFromAssignablePayload)) - ), - - /** - * @description Removes an administrator from the enterprise. - */ - - removeEnterpriseAdmin: (variables, select) => - new Field( - "removeEnterpriseAdmin", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveEnterpriseAdminPayload)) - ), - - /** - * @description Removes the identity provider from an enterprise - */ - - removeEnterpriseIdentityProvider: (variables, select) => - new Field( - "removeEnterpriseIdentityProvider", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveEnterpriseIdentityProviderPayload)) - ), - - /** - * @description Removes an organization from the enterprise - */ - - removeEnterpriseOrganization: (variables, select) => - new Field( - "removeEnterpriseOrganization", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveEnterpriseOrganizationPayload)) - ), - - /** - * @description Removes labels from a Labelable object. - */ - - removeLabelsFromLabelable: (variables, select) => - new Field( - "removeLabelsFromLabelable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveLabelsFromLabelablePayload)) - ), - - /** - * @description Removes outside collaborator from all repositories in an organization. - */ - - removeOutsideCollaborator: (variables, select) => - new Field( - "removeOutsideCollaborator", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveOutsideCollaboratorPayload)) - ), - - /** - * @description Removes a reaction from a subject. - */ - - removeReaction: (variables, select) => - new Field( - "removeReaction", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveReactionPayload)) - ), - - /** - * @description Removes a star from a Starrable. - */ - - removeStar: (variables, select) => - new Field( - "removeStar", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RemoveStarPayload)) - ), - - /** - * @description Reopen a issue. - */ - - reopenIssue: (variables, select) => - new Field( - "reopenIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ReopenIssuePayload)) - ), - - /** - * @description Reopen a pull request. - */ - - reopenPullRequest: (variables, select) => - new Field( - "reopenPullRequest", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ReopenPullRequestPayload)) - ), - - /** - * @description Set review requests on a pull request. - */ - - requestReviews: (variables, select) => - new Field( - "requestReviews", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RequestReviewsPayload)) - ), - - /** - * @description Rerequests an existing check suite. - */ - - rerequestCheckSuite: (variables, select) => - new Field( - "rerequestCheckSuite", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(RerequestCheckSuitePayload)) - ), - - /** - * @description Marks a review thread as resolved. - */ - - resolveReviewThread: (variables, select) => - new Field( - "resolveReviewThread", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(ResolveReviewThreadPayload)) - ), - - /** - * @description Creates or updates the identity provider for an enterprise. - */ - - setEnterpriseIdentityProvider: (variables, select) => - new Field( - "setEnterpriseIdentityProvider", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(SetEnterpriseIdentityProviderPayload)) - ), - - /** - * @description Set an organization level interaction limit for an organization's public repositories. - */ - - setOrganizationInteractionLimit: (variables, select) => - new Field( - "setOrganizationInteractionLimit", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(SetOrganizationInteractionLimitPayload)) - ), - - /** - * @description Sets an interaction limit setting for a repository. - */ - - setRepositoryInteractionLimit: (variables, select) => - new Field( - "setRepositoryInteractionLimit", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(SetRepositoryInteractionLimitPayload)) - ), - - /** - * @description Set a user level interaction limit for an user's public repositories. - */ - - setUserInteractionLimit: (variables, select) => - new Field( - "setUserInteractionLimit", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(SetUserInteractionLimitPayload)) - ), - - /** - * @description Submits a pending pull request review. - */ - - submitPullRequestReview: (variables, select) => - new Field( - "submitPullRequestReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(SubmitPullRequestReviewPayload)) - ), - - /** - * @description Transfer an issue to a different repository - */ - - transferIssue: (variables, select) => - new Field( - "transferIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(TransferIssuePayload)) - ), - - /** - * @description Unarchives a repository. - */ - - unarchiveRepository: (variables, select) => - new Field( - "unarchiveRepository", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnarchiveRepositoryPayload)) - ), - - /** - * @description Unfollow a user. - */ - - unfollowUser: (variables, select) => - new Field( - "unfollowUser", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnfollowUserPayload)) - ), - - /** - * @description Deletes a repository link from a project. - */ - - unlinkRepositoryFromProject: (variables, select) => - new Field( - "unlinkRepositoryFromProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnlinkRepositoryFromProjectPayload)) - ), - - /** - * @description Unlock a lockable object - */ - - unlockLockable: (variables, select) => - new Field( - "unlockLockable", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnlockLockablePayload)) - ), - - /** - * @description Unmark a pull request file as viewed - */ - - unmarkFileAsViewed: (variables, select) => - new Field( - "unmarkFileAsViewed", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnmarkFileAsViewedPayload)) - ), - - /** - * @description Unmark an issue as a duplicate of another issue. - */ - - unmarkIssueAsDuplicate: (variables, select) => - new Field( - "unmarkIssueAsDuplicate", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnmarkIssueAsDuplicatePayload)) - ), - - /** - * @description Unminimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - unminimizeComment: (variables, select) => - new Field( - "unminimizeComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnminimizeCommentPayload)) - ), - - /** - * @description Marks a review thread as unresolved. - */ - - unresolveReviewThread: (variables, select) => - new Field( - "unresolveReviewThread", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UnresolveReviewThreadPayload)) - ), - - /** - * @description Create a new branch protection rule - */ - - updateBranchProtectionRule: (variables, select) => - new Field( - "updateBranchProtectionRule", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateBranchProtectionRulePayload)) - ), - - /** - * @description Update a check run - */ - - updateCheckRun: (variables, select) => - new Field( - "updateCheckRun", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateCheckRunPayload)) - ), - - /** - * @description Modifies the settings of an existing check suite - */ - - updateCheckSuitePreferences: (variables, select) => - new Field( - "updateCheckSuitePreferences", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateCheckSuitePreferencesPayload)) - ), - - /** - * @description Updates the role of an enterprise administrator. - */ - - updateEnterpriseAdministratorRole: (variables, select) => - new Field( - "updateEnterpriseAdministratorRole", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateEnterpriseAdministratorRolePayload)) - ), - - /** - * @description Sets whether private repository forks are enabled for an enterprise. - */ - - updateEnterpriseAllowPrivateRepositoryForkingSetting: (variables, select) => - new Field( - "updateEnterpriseAllowPrivateRepositoryForkingSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload) - ) - ), - - /** - * @description Sets the default repository permission for organizations in an enterprise. - */ - - updateEnterpriseDefaultRepositoryPermissionSetting: (variables, select) => - new Field( - "updateEnterpriseDefaultRepositoryPermissionSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseDefaultRepositoryPermissionSettingPayload) - ) - ), - - /** - * @description Sets whether organization members with admin permissions on a repository can change repository visibility. - */ - - updateEnterpriseMembersCanChangeRepositoryVisibilitySetting: ( - variables, - select - ) => - new Field( - "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select( - UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload - ) - ) - ), - - /** - * @description Sets the members can create repositories setting for an enterprise. - */ - - updateEnterpriseMembersCanCreateRepositoriesSetting: (variables, select) => - new Field( - "updateEnterpriseMembersCanCreateRepositoriesSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload) - ) - ), - - /** - * @description Sets the members can delete issues setting for an enterprise. - */ - - updateEnterpriseMembersCanDeleteIssuesSetting: (variables, select) => - new Field( - "updateEnterpriseMembersCanDeleteIssuesSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanDeleteIssuesSettingPayload) - ) - ), - - /** - * @description Sets the members can delete repositories setting for an enterprise. - */ - - updateEnterpriseMembersCanDeleteRepositoriesSetting: (variables, select) => - new Field( - "updateEnterpriseMembersCanDeleteRepositoriesSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload) - ) - ), - - /** - * @description Sets whether members can invite collaborators are enabled for an enterprise. - */ - - updateEnterpriseMembersCanInviteCollaboratorsSetting: (variables, select) => - new Field( - "updateEnterpriseMembersCanInviteCollaboratorsSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload) - ) - ), - - /** - * @description Sets whether or not an organization admin can make purchases. - */ - - updateEnterpriseMembersCanMakePurchasesSetting: (variables, select) => - new Field( - "updateEnterpriseMembersCanMakePurchasesSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanMakePurchasesSettingPayload) - ) - ), - - /** - * @description Sets the members can update protected branches setting for an enterprise. - */ - - updateEnterpriseMembersCanUpdateProtectedBranchesSetting: ( - variables, - select - ) => - new Field( - "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload) - ) - ), - - /** - * @description Sets the members can view dependency insights for an enterprise. - */ - - updateEnterpriseMembersCanViewDependencyInsightsSetting: ( - variables, - select - ) => - new Field( - "updateEnterpriseMembersCanViewDependencyInsightsSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload) - ) - ), - - /** - * @description Sets whether organization projects are enabled for an enterprise. - */ - - updateEnterpriseOrganizationProjectsSetting: (variables, select) => - new Field( - "updateEnterpriseOrganizationProjectsSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseOrganizationProjectsSettingPayload) - ) - ), - - /** - * @description Updates an enterprise's profile. - */ - - updateEnterpriseProfile: (variables, select) => - new Field( - "updateEnterpriseProfile", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateEnterpriseProfilePayload)) - ), - - /** - * @description Sets whether repository projects are enabled for a enterprise. - */ - - updateEnterpriseRepositoryProjectsSetting: (variables, select) => - new Field( - "updateEnterpriseRepositoryProjectsSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateEnterpriseRepositoryProjectsSettingPayload)) - ), - - /** - * @description Sets whether team discussions are enabled for an enterprise. - */ - - updateEnterpriseTeamDiscussionsSetting: (variables, select) => - new Field( - "updateEnterpriseTeamDiscussionsSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateEnterpriseTeamDiscussionsSettingPayload)) - ), - - /** - * @description Sets whether two factor authentication is required for all users in an enterprise. - */ - - updateEnterpriseTwoFactorAuthenticationRequiredSetting: (variables, select) => - new Field( - "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet( - select(UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload) - ) - ), - - /** - * @description Sets whether an IP allow list is enabled on an owner. - */ - - updateIpAllowListEnabledSetting: (variables, select) => - new Field( - "updateIpAllowListEnabledSetting", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateIpAllowListEnabledSettingPayload)) - ), - - /** - * @description Updates an IP allow list entry. - */ - - updateIpAllowListEntry: (variables, select) => - new Field( - "updateIpAllowListEntry", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateIpAllowListEntryPayload)) - ), - - /** - * @description Updates an Issue. - */ - - updateIssue: (variables, select) => - new Field( - "updateIssue", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateIssuePayload)) - ), - - /** - * @description Updates an IssueComment object. - */ - - updateIssueComment: (variables, select) => - new Field( - "updateIssueComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateIssueCommentPayload)) - ), - - /** - * @description Updates an existing project. - */ - - updateProject: (variables, select) => - new Field( - "updateProject", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateProjectPayload)) - ), - - /** - * @description Updates an existing project card. - */ - - updateProjectCard: (variables, select) => - new Field( - "updateProjectCard", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateProjectCardPayload)) - ), - - /** - * @description Updates an existing project column. - */ - - updateProjectColumn: (variables, select) => - new Field( - "updateProjectColumn", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateProjectColumnPayload)) - ), - - /** - * @description Update a pull request - */ - - updatePullRequest: (variables, select) => - new Field( - "updatePullRequest", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdatePullRequestPayload)) - ), - - /** - * @description Updates the body of a pull request review. - */ - - updatePullRequestReview: (variables, select) => - new Field( - "updatePullRequestReview", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdatePullRequestReviewPayload)) - ), - - /** - * @description Updates a pull request review comment. - */ - - updatePullRequestReviewComment: (variables, select) => - new Field( - "updatePullRequestReviewComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdatePullRequestReviewCommentPayload)) - ), - - /** - * @description Update a Git Ref. - */ - - updateRef: (variables, select) => - new Field( - "updateRef", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateRefPayload)) - ), - - /** - * @description Update information about a repository. - */ - - updateRepository: (variables, select) => - new Field( - "updateRepository", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateRepositoryPayload)) - ), - - /** - * @description Updates the state for subscribable subjects. - */ - - updateSubscription: (variables, select) => - new Field( - "updateSubscription", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateSubscriptionPayload)) - ), - - /** - * @description Updates a team discussion. - */ - - updateTeamDiscussion: (variables, select) => - new Field( - "updateTeamDiscussion", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateTeamDiscussionPayload)) - ), - - /** - * @description Updates a discussion comment. - */ - - updateTeamDiscussionComment: (variables, select) => - new Field( - "updateTeamDiscussionComment", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateTeamDiscussionCommentPayload)) - ), - - /** - * @description Replaces the repository's topics with the given topics. - */ - - updateTopics: (variables, select) => - new Field( - "updateTopics", - [new Argument("input", variables.input, _ENUM_VALUES)], - new SelectionSet(select(UpdateTopicsPayload)) - ), -}; - -export interface INode { - readonly __typename: string; - readonly id: string; -} - -interface NodeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description ID of the object. - */ - - readonly id: () => Field<"id">; - - readonly on: < - T extends Array, - F extends - | "AddedToProjectEvent" - | "App" - | "AssignedEvent" - | "AutomaticBaseChangeFailedEvent" - | "AutomaticBaseChangeSucceededEvent" - | "BaseRefChangedEvent" - | "BaseRefDeletedEvent" - | "BaseRefForcePushedEvent" - | "Blob" - | "Bot" - | "BranchProtectionRule" - | "CheckRun" - | "CheckSuite" - | "ClosedEvent" - | "CodeOfConduct" - | "CommentDeletedEvent" - | "Commit" - | "CommitComment" - | "CommitCommentThread" - | "ConnectedEvent" - | "ConvertToDraftEvent" - | "ConvertedNoteToIssueEvent" - | "CrossReferencedEvent" - | "DemilestonedEvent" - | "DeployKey" - | "DeployedEvent" - | "Deployment" - | "DeploymentEnvironmentChangedEvent" - | "DeploymentStatus" - | "DisconnectedEvent" - | "Enterprise" - | "EnterpriseAdministratorInvitation" - | "EnterpriseIdentityProvider" - | "EnterpriseRepositoryInfo" - | "EnterpriseServerInstallation" - | "EnterpriseServerUserAccount" - | "EnterpriseServerUserAccountEmail" - | "EnterpriseServerUserAccountsUpload" - | "EnterpriseUserAccount" - | "ExternalIdentity" - | "Gist" - | "GistComment" - | "HeadRefDeletedEvent" - | "HeadRefForcePushedEvent" - | "HeadRefRestoredEvent" - | "IpAllowListEntry" - | "Issue" - | "IssueComment" - | "Label" - | "LabeledEvent" - | "Language" - | "License" - | "LockedEvent" - | "Mannequin" - | "MarkedAsDuplicateEvent" - | "MarketplaceCategory" - | "MarketplaceListing" - | "MembersCanDeleteReposClearAuditEntry" - | "MembersCanDeleteReposDisableAuditEntry" - | "MembersCanDeleteReposEnableAuditEntry" - | "MentionedEvent" - | "MergedEvent" - | "Milestone" - | "MilestonedEvent" - | "MovedColumnsInProjectEvent" - | "OauthApplicationCreateAuditEntry" - | "OrgAddBillingManagerAuditEntry" - | "OrgAddMemberAuditEntry" - | "OrgBlockUserAuditEntry" - | "OrgConfigDisableCollaboratorsOnlyAuditEntry" - | "OrgConfigEnableCollaboratorsOnlyAuditEntry" - | "OrgCreateAuditEntry" - | "OrgDisableOauthAppRestrictionsAuditEntry" - | "OrgDisableSamlAuditEntry" - | "OrgDisableTwoFactorRequirementAuditEntry" - | "OrgEnableOauthAppRestrictionsAuditEntry" - | "OrgEnableSamlAuditEntry" - | "OrgEnableTwoFactorRequirementAuditEntry" - | "OrgInviteMemberAuditEntry" - | "OrgInviteToBusinessAuditEntry" - | "OrgOauthAppAccessApprovedAuditEntry" - | "OrgOauthAppAccessDeniedAuditEntry" - | "OrgOauthAppAccessRequestedAuditEntry" - | "OrgRemoveBillingManagerAuditEntry" - | "OrgRemoveMemberAuditEntry" - | "OrgRemoveOutsideCollaboratorAuditEntry" - | "OrgRestoreMemberAuditEntry" - | "OrgUnblockUserAuditEntry" - | "OrgUpdateDefaultRepositoryPermissionAuditEntry" - | "OrgUpdateMemberAuditEntry" - | "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - | "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - | "Organization" - | "OrganizationIdentityProvider" - | "OrganizationInvitation" - | "Package" - | "PackageFile" - | "PackageTag" - | "PackageVersion" - | "PinnedEvent" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "Project" - | "ProjectCard" - | "ProjectColumn" - | "PublicKey" - | "PullRequest" - | "PullRequestCommit" - | "PullRequestCommitCommentThread" - | "PullRequestReview" - | "PullRequestReviewComment" - | "PullRequestReviewThread" - | "Push" - | "PushAllowance" - | "Reaction" - | "ReadyForReviewEvent" - | "Ref" - | "ReferencedEvent" - | "Release" - | "ReleaseAsset" - | "RemovedFromProjectEvent" - | "RenamedTitleEvent" - | "ReopenedEvent" - | "RepoAccessAuditEntry" - | "RepoAddMemberAuditEntry" - | "RepoAddTopicAuditEntry" - | "RepoArchivedAuditEntry" - | "RepoChangeMergeSettingAuditEntry" - | "RepoConfigDisableAnonymousGitAccessAuditEntry" - | "RepoConfigDisableCollaboratorsOnlyAuditEntry" - | "RepoConfigDisableContributorsOnlyAuditEntry" - | "RepoConfigDisableSockpuppetDisallowedAuditEntry" - | "RepoConfigEnableAnonymousGitAccessAuditEntry" - | "RepoConfigEnableCollaboratorsOnlyAuditEntry" - | "RepoConfigEnableContributorsOnlyAuditEntry" - | "RepoConfigEnableSockpuppetDisallowedAuditEntry" - | "RepoConfigLockAnonymousGitAccessAuditEntry" - | "RepoConfigUnlockAnonymousGitAccessAuditEntry" - | "RepoCreateAuditEntry" - | "RepoDestroyAuditEntry" - | "RepoRemoveMemberAuditEntry" - | "RepoRemoveTopicAuditEntry" - | "Repository" - | "RepositoryInvitation" - | "RepositoryTopic" - | "RepositoryVisibilityChangeDisableAuditEntry" - | "RepositoryVisibilityChangeEnableAuditEntry" - | "RepositoryVulnerabilityAlert" - | "ReviewDismissalAllowance" - | "ReviewDismissedEvent" - | "ReviewRequest" - | "ReviewRequestRemovedEvent" - | "ReviewRequestedEvent" - | "SavedReply" - | "SecurityAdvisory" - | "SponsorsListing" - | "SponsorsTier" - | "Sponsorship" - | "Status" - | "StatusCheckRollup" - | "StatusContext" - | "SubscribedEvent" - | "Tag" - | "Team" - | "TeamAddMemberAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamChangeParentTeamAuditEntry" - | "TeamDiscussion" - | "TeamDiscussionComment" - | "TeamRemoveMemberAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - | "Topic" - | "TransferredEvent" - | "Tree" - | "UnassignedEvent" - | "UnlabeledEvent" - | "UnlockedEvent" - | "UnmarkedAsDuplicateEvent" - | "UnpinnedEvent" - | "UnsubscribedEvent" - | "User" - | "UserBlockedEvent" - | "UserContentEdit" - | "UserStatus" - >( - type: F, - select: ( - t: F extends "AddedToProjectEvent" - ? AddedToProjectEventSelector - : F extends "App" - ? AppSelector - : F extends "AssignedEvent" - ? AssignedEventSelector - : F extends "AutomaticBaseChangeFailedEvent" - ? AutomaticBaseChangeFailedEventSelector - : F extends "AutomaticBaseChangeSucceededEvent" - ? AutomaticBaseChangeSucceededEventSelector - : F extends "BaseRefChangedEvent" - ? BaseRefChangedEventSelector - : F extends "BaseRefDeletedEvent" - ? BaseRefDeletedEventSelector - : F extends "BaseRefForcePushedEvent" - ? BaseRefForcePushedEventSelector - : F extends "Blob" - ? BlobSelector - : F extends "Bot" - ? BotSelector - : F extends "BranchProtectionRule" - ? BranchProtectionRuleSelector - : F extends "CheckRun" - ? CheckRunSelector - : F extends "CheckSuite" - ? CheckSuiteSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "CodeOfConduct" - ? CodeOfConductSelector - : F extends "CommentDeletedEvent" - ? CommentDeletedEventSelector - : F extends "Commit" - ? CommitSelector - : F extends "CommitComment" - ? CommitCommentSelector - : F extends "CommitCommentThread" - ? CommitCommentThreadSelector - : F extends "ConnectedEvent" - ? ConnectedEventSelector - : F extends "ConvertToDraftEvent" - ? ConvertToDraftEventSelector - : F extends "ConvertedNoteToIssueEvent" - ? ConvertedNoteToIssueEventSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "DemilestonedEvent" - ? DemilestonedEventSelector - : F extends "DeployKey" - ? DeployKeySelector - : F extends "DeployedEvent" - ? DeployedEventSelector - : F extends "Deployment" - ? DeploymentSelector - : F extends "DeploymentEnvironmentChangedEvent" - ? DeploymentEnvironmentChangedEventSelector - : F extends "DeploymentStatus" - ? DeploymentStatusSelector - : F extends "DisconnectedEvent" - ? DisconnectedEventSelector - : F extends "Enterprise" - ? EnterpriseSelector - : F extends "EnterpriseAdministratorInvitation" - ? EnterpriseAdministratorInvitationSelector - : F extends "EnterpriseIdentityProvider" - ? EnterpriseIdentityProviderSelector - : F extends "EnterpriseRepositoryInfo" - ? EnterpriseRepositoryInfoSelector - : F extends "EnterpriseServerInstallation" - ? EnterpriseServerInstallationSelector - : F extends "EnterpriseServerUserAccount" - ? EnterpriseServerUserAccountSelector - : F extends "EnterpriseServerUserAccountEmail" - ? EnterpriseServerUserAccountEmailSelector - : F extends "EnterpriseServerUserAccountsUpload" - ? EnterpriseServerUserAccountsUploadSelector - : F extends "EnterpriseUserAccount" - ? EnterpriseUserAccountSelector - : F extends "ExternalIdentity" - ? ExternalIdentitySelector - : F extends "Gist" - ? GistSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "HeadRefDeletedEvent" - ? HeadRefDeletedEventSelector - : F extends "HeadRefForcePushedEvent" - ? HeadRefForcePushedEventSelector - : F extends "HeadRefRestoredEvent" - ? HeadRefRestoredEventSelector - : F extends "IpAllowListEntry" - ? IpAllowListEntrySelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "Label" - ? LabelSelector - : F extends "LabeledEvent" - ? LabeledEventSelector - : F extends "Language" - ? LanguageSelector - : F extends "License" - ? LicenseSelector - : F extends "LockedEvent" - ? LockedEventSelector - : F extends "Mannequin" - ? MannequinSelector - : F extends "MarkedAsDuplicateEvent" - ? MarkedAsDuplicateEventSelector - : F extends "MarketplaceCategory" - ? MarketplaceCategorySelector - : F extends "MarketplaceListing" - ? MarketplaceListingSelector - : F extends "MembersCanDeleteReposClearAuditEntry" - ? MembersCanDeleteReposClearAuditEntrySelector - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? MembersCanDeleteReposDisableAuditEntrySelector - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? MembersCanDeleteReposEnableAuditEntrySelector - : F extends "MentionedEvent" - ? MentionedEventSelector - : F extends "MergedEvent" - ? MergedEventSelector - : F extends "Milestone" - ? MilestoneSelector - : F extends "MilestonedEvent" - ? MilestonedEventSelector - : F extends "MovedColumnsInProjectEvent" - ? MovedColumnsInProjectEventSelector - : F extends "OauthApplicationCreateAuditEntry" - ? OauthApplicationCreateAuditEntrySelector - : F extends "OrgAddBillingManagerAuditEntry" - ? OrgAddBillingManagerAuditEntrySelector - : F extends "OrgAddMemberAuditEntry" - ? OrgAddMemberAuditEntrySelector - : F extends "OrgBlockUserAuditEntry" - ? OrgBlockUserAuditEntrySelector - : F extends "OrgConfigDisableCollaboratorsOnlyAuditEntry" - ? OrgConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgConfigEnableCollaboratorsOnlyAuditEntry" - ? OrgConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgCreateAuditEntry" - ? OrgCreateAuditEntrySelector - : F extends "OrgDisableOauthAppRestrictionsAuditEntry" - ? OrgDisableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgDisableSamlAuditEntry" - ? OrgDisableSamlAuditEntrySelector - : F extends "OrgDisableTwoFactorRequirementAuditEntry" - ? OrgDisableTwoFactorRequirementAuditEntrySelector - : F extends "OrgEnableOauthAppRestrictionsAuditEntry" - ? OrgEnableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgEnableSamlAuditEntry" - ? OrgEnableSamlAuditEntrySelector - : F extends "OrgEnableTwoFactorRequirementAuditEntry" - ? OrgEnableTwoFactorRequirementAuditEntrySelector - : F extends "OrgInviteMemberAuditEntry" - ? OrgInviteMemberAuditEntrySelector - : F extends "OrgInviteToBusinessAuditEntry" - ? OrgInviteToBusinessAuditEntrySelector - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? OrgOauthAppAccessApprovedAuditEntrySelector - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? OrgOauthAppAccessDeniedAuditEntrySelector - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? OrgOauthAppAccessRequestedAuditEntrySelector - : F extends "OrgRemoveBillingManagerAuditEntry" - ? OrgRemoveBillingManagerAuditEntrySelector - : F extends "OrgRemoveMemberAuditEntry" - ? OrgRemoveMemberAuditEntrySelector - : F extends "OrgRemoveOutsideCollaboratorAuditEntry" - ? OrgRemoveOutsideCollaboratorAuditEntrySelector - : F extends "OrgRestoreMemberAuditEntry" - ? OrgRestoreMemberAuditEntrySelector - : F extends "OrgUnblockUserAuditEntry" - ? OrgUnblockUserAuditEntrySelector - : F extends "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ? OrgUpdateDefaultRepositoryPermissionAuditEntrySelector - : F extends "OrgUpdateMemberAuditEntry" - ? OrgUpdateMemberAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector - : F extends "Organization" - ? OrganizationSelector - : F extends "OrganizationIdentityProvider" - ? OrganizationIdentityProviderSelector - : F extends "OrganizationInvitation" - ? OrganizationInvitationSelector - : F extends "Package" - ? PackageSelector - : F extends "PackageFile" - ? PackageFileSelector - : F extends "PackageTag" - ? PackageTagSelector - : F extends "PackageVersion" - ? PackageVersionSelector - : F extends "PinnedEvent" - ? PinnedEventSelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "Project" - ? ProjectSelector - : F extends "ProjectCard" - ? ProjectCardSelector - : F extends "ProjectColumn" - ? ProjectColumnSelector - : F extends "PublicKey" - ? PublicKeySelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestCommit" - ? PullRequestCommitSelector - : F extends "PullRequestCommitCommentThread" - ? PullRequestCommitCommentThreadSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "PullRequestReviewThread" - ? PullRequestReviewThreadSelector - : F extends "Push" - ? PushSelector - : F extends "PushAllowance" - ? PushAllowanceSelector - : F extends "Reaction" - ? ReactionSelector - : F extends "ReadyForReviewEvent" - ? ReadyForReviewEventSelector - : F extends "Ref" - ? RefSelector - : F extends "ReferencedEvent" - ? ReferencedEventSelector - : F extends "Release" - ? ReleaseSelector - : F extends "ReleaseAsset" - ? ReleaseAssetSelector - : F extends "RemovedFromProjectEvent" - ? RemovedFromProjectEventSelector - : F extends "RenamedTitleEvent" - ? RenamedTitleEventSelector - : F extends "ReopenedEvent" - ? ReopenedEventSelector - : F extends "RepoAccessAuditEntry" - ? RepoAccessAuditEntrySelector - : F extends "RepoAddMemberAuditEntry" - ? RepoAddMemberAuditEntrySelector - : F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoArchivedAuditEntry" - ? RepoArchivedAuditEntrySelector - : F extends "RepoChangeMergeSettingAuditEntry" - ? RepoChangeMergeSettingAuditEntrySelector - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? RepoConfigDisableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? RepoConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? RepoConfigDisableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? RepoConfigDisableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? RepoConfigEnableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? RepoConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? RepoConfigEnableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? RepoConfigEnableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? RepoConfigLockAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? RepoConfigUnlockAnonymousGitAccessAuditEntrySelector - : F extends "RepoCreateAuditEntry" - ? RepoCreateAuditEntrySelector - : F extends "RepoDestroyAuditEntry" - ? RepoDestroyAuditEntrySelector - : F extends "RepoRemoveMemberAuditEntry" - ? RepoRemoveMemberAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : F extends "Repository" - ? RepositorySelector - : F extends "RepositoryInvitation" - ? RepositoryInvitationSelector - : F extends "RepositoryTopic" - ? RepositoryTopicSelector - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? RepositoryVisibilityChangeDisableAuditEntrySelector - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? RepositoryVisibilityChangeEnableAuditEntrySelector - : F extends "RepositoryVulnerabilityAlert" - ? RepositoryVulnerabilityAlertSelector - : F extends "ReviewDismissalAllowance" - ? ReviewDismissalAllowanceSelector - : F extends "ReviewDismissedEvent" - ? ReviewDismissedEventSelector - : F extends "ReviewRequest" - ? ReviewRequestSelector - : F extends "ReviewRequestRemovedEvent" - ? ReviewRequestRemovedEventSelector - : F extends "ReviewRequestedEvent" - ? ReviewRequestedEventSelector - : F extends "SavedReply" - ? SavedReplySelector - : F extends "SecurityAdvisory" - ? SecurityAdvisorySelector - : F extends "SponsorsListing" - ? SponsorsListingSelector - : F extends "SponsorsTier" - ? SponsorsTierSelector - : F extends "Sponsorship" - ? SponsorshipSelector - : F extends "Status" - ? StatusSelector - : F extends "StatusCheckRollup" - ? StatusCheckRollupSelector - : F extends "StatusContext" - ? StatusContextSelector - : F extends "SubscribedEvent" - ? SubscribedEventSelector - : F extends "Tag" - ? TagSelector - : F extends "Team" - ? TeamSelector - : F extends "TeamAddMemberAuditEntry" - ? TeamAddMemberAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamChangeParentTeamAuditEntry" - ? TeamChangeParentTeamAuditEntrySelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : F extends "TeamRemoveMemberAuditEntry" - ? TeamRemoveMemberAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : F extends "Topic" - ? TopicSelector - : F extends "TransferredEvent" - ? TransferredEventSelector - : F extends "Tree" - ? TreeSelector - : F extends "UnassignedEvent" - ? UnassignedEventSelector - : F extends "UnlabeledEvent" - ? UnlabeledEventSelector - : F extends "UnlockedEvent" - ? UnlockedEventSelector - : F extends "UnmarkedAsDuplicateEvent" - ? UnmarkedAsDuplicateEventSelector - : F extends "UnpinnedEvent" - ? UnpinnedEventSelector - : F extends "UnsubscribedEvent" - ? UnsubscribedEventSelector - : F extends "User" - ? UserSelector - : F extends "UserBlockedEvent" - ? UserBlockedEventSelector - : F extends "UserContentEdit" - ? UserContentEditSelector - : F extends "UserStatus" - ? UserStatusSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Node: NodeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description ID of the object. - */ - id: () => new Field("id"), - - on: (type, select) => { - switch (type) { - case "AddedToProjectEvent": { - return new InlineFragment( - new NamedType("AddedToProjectEvent") as any, - new SelectionSet(select(AddedToProjectEvent as any)) - ); - } - - case "App": { - return new InlineFragment( - new NamedType("App") as any, - new SelectionSet(select(App as any)) - ); - } - - case "AssignedEvent": { - return new InlineFragment( - new NamedType("AssignedEvent") as any, - new SelectionSet(select(AssignedEvent as any)) - ); - } - - case "AutomaticBaseChangeFailedEvent": { - return new InlineFragment( - new NamedType("AutomaticBaseChangeFailedEvent") as any, - new SelectionSet(select(AutomaticBaseChangeFailedEvent as any)) - ); - } - - case "AutomaticBaseChangeSucceededEvent": { - return new InlineFragment( - new NamedType("AutomaticBaseChangeSucceededEvent") as any, - new SelectionSet(select(AutomaticBaseChangeSucceededEvent as any)) - ); - } - - case "BaseRefChangedEvent": { - return new InlineFragment( - new NamedType("BaseRefChangedEvent") as any, - new SelectionSet(select(BaseRefChangedEvent as any)) - ); - } - - case "BaseRefDeletedEvent": { - return new InlineFragment( - new NamedType("BaseRefDeletedEvent") as any, - new SelectionSet(select(BaseRefDeletedEvent as any)) - ); - } - - case "BaseRefForcePushedEvent": { - return new InlineFragment( - new NamedType("BaseRefForcePushedEvent") as any, - new SelectionSet(select(BaseRefForcePushedEvent as any)) - ); - } - - case "Blob": { - return new InlineFragment( - new NamedType("Blob") as any, - new SelectionSet(select(Blob as any)) - ); - } - - case "Bot": { - return new InlineFragment( - new NamedType("Bot") as any, - new SelectionSet(select(Bot as any)) - ); - } - - case "BranchProtectionRule": { - return new InlineFragment( - new NamedType("BranchProtectionRule") as any, - new SelectionSet(select(BranchProtectionRule as any)) - ); - } - - case "CheckRun": { - return new InlineFragment( - new NamedType("CheckRun") as any, - new SelectionSet(select(CheckRun as any)) - ); - } - - case "CheckSuite": { - return new InlineFragment( - new NamedType("CheckSuite") as any, - new SelectionSet(select(CheckSuite as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "CodeOfConduct": { - return new InlineFragment( - new NamedType("CodeOfConduct") as any, - new SelectionSet(select(CodeOfConduct as any)) - ); - } - - case "CommentDeletedEvent": { - return new InlineFragment( - new NamedType("CommentDeletedEvent") as any, - new SelectionSet(select(CommentDeletedEvent as any)) - ); - } - - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "CommitCommentThread": { - return new InlineFragment( - new NamedType("CommitCommentThread") as any, - new SelectionSet(select(CommitCommentThread as any)) - ); - } - - case "ConnectedEvent": { - return new InlineFragment( - new NamedType("ConnectedEvent") as any, - new SelectionSet(select(ConnectedEvent as any)) - ); - } - - case "ConvertToDraftEvent": { - return new InlineFragment( - new NamedType("ConvertToDraftEvent") as any, - new SelectionSet(select(ConvertToDraftEvent as any)) - ); - } - - case "ConvertedNoteToIssueEvent": { - return new InlineFragment( - new NamedType("ConvertedNoteToIssueEvent") as any, - new SelectionSet(select(ConvertedNoteToIssueEvent as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "DemilestonedEvent": { - return new InlineFragment( - new NamedType("DemilestonedEvent") as any, - new SelectionSet(select(DemilestonedEvent as any)) - ); - } - - case "DeployKey": { - return new InlineFragment( - new NamedType("DeployKey") as any, - new SelectionSet(select(DeployKey as any)) - ); - } - - case "DeployedEvent": { - return new InlineFragment( - new NamedType("DeployedEvent") as any, - new SelectionSet(select(DeployedEvent as any)) - ); - } - - case "Deployment": { - return new InlineFragment( - new NamedType("Deployment") as any, - new SelectionSet(select(Deployment as any)) - ); - } - - case "DeploymentEnvironmentChangedEvent": { - return new InlineFragment( - new NamedType("DeploymentEnvironmentChangedEvent") as any, - new SelectionSet(select(DeploymentEnvironmentChangedEvent as any)) - ); - } - - case "DeploymentStatus": { - return new InlineFragment( - new NamedType("DeploymentStatus") as any, - new SelectionSet(select(DeploymentStatus as any)) - ); - } - - case "DisconnectedEvent": { - return new InlineFragment( - new NamedType("DisconnectedEvent") as any, - new SelectionSet(select(DisconnectedEvent as any)) - ); - } - - case "Enterprise": { - return new InlineFragment( - new NamedType("Enterprise") as any, - new SelectionSet(select(Enterprise as any)) - ); - } - - case "EnterpriseAdministratorInvitation": { - return new InlineFragment( - new NamedType("EnterpriseAdministratorInvitation") as any, - new SelectionSet(select(EnterpriseAdministratorInvitation as any)) - ); - } - - case "EnterpriseIdentityProvider": { - return new InlineFragment( - new NamedType("EnterpriseIdentityProvider") as any, - new SelectionSet(select(EnterpriseIdentityProvider as any)) - ); - } - - case "EnterpriseRepositoryInfo": { - return new InlineFragment( - new NamedType("EnterpriseRepositoryInfo") as any, - new SelectionSet(select(EnterpriseRepositoryInfo as any)) - ); - } - - case "EnterpriseServerInstallation": { - return new InlineFragment( - new NamedType("EnterpriseServerInstallation") as any, - new SelectionSet(select(EnterpriseServerInstallation as any)) - ); - } - - case "EnterpriseServerUserAccount": { - return new InlineFragment( - new NamedType("EnterpriseServerUserAccount") as any, - new SelectionSet(select(EnterpriseServerUserAccount as any)) - ); - } - - case "EnterpriseServerUserAccountEmail": { - return new InlineFragment( - new NamedType("EnterpriseServerUserAccountEmail") as any, - new SelectionSet(select(EnterpriseServerUserAccountEmail as any)) - ); - } - - case "EnterpriseServerUserAccountsUpload": { - return new InlineFragment( - new NamedType("EnterpriseServerUserAccountsUpload") as any, - new SelectionSet(select(EnterpriseServerUserAccountsUpload as any)) - ); - } - - case "EnterpriseUserAccount": { - return new InlineFragment( - new NamedType("EnterpriseUserAccount") as any, - new SelectionSet(select(EnterpriseUserAccount as any)) - ); - } - - case "ExternalIdentity": { - return new InlineFragment( - new NamedType("ExternalIdentity") as any, - new SelectionSet(select(ExternalIdentity as any)) - ); - } - - case "Gist": { - return new InlineFragment( - new NamedType("Gist") as any, - new SelectionSet(select(Gist as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "HeadRefDeletedEvent": { - return new InlineFragment( - new NamedType("HeadRefDeletedEvent") as any, - new SelectionSet(select(HeadRefDeletedEvent as any)) - ); - } - - case "HeadRefForcePushedEvent": { - return new InlineFragment( - new NamedType("HeadRefForcePushedEvent") as any, - new SelectionSet(select(HeadRefForcePushedEvent as any)) - ); - } - - case "HeadRefRestoredEvent": { - return new InlineFragment( - new NamedType("HeadRefRestoredEvent") as any, - new SelectionSet(select(HeadRefRestoredEvent as any)) - ); - } - - case "IpAllowListEntry": { - return new InlineFragment( - new NamedType("IpAllowListEntry") as any, - new SelectionSet(select(IpAllowListEntry as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "Label": { - return new InlineFragment( - new NamedType("Label") as any, - new SelectionSet(select(Label as any)) - ); - } - - case "LabeledEvent": { - return new InlineFragment( - new NamedType("LabeledEvent") as any, - new SelectionSet(select(LabeledEvent as any)) - ); - } - - case "Language": { - return new InlineFragment( - new NamedType("Language") as any, - new SelectionSet(select(Language as any)) - ); - } - - case "License": { - return new InlineFragment( - new NamedType("License") as any, - new SelectionSet(select(License as any)) - ); - } - - case "LockedEvent": { - return new InlineFragment( - new NamedType("LockedEvent") as any, - new SelectionSet(select(LockedEvent as any)) - ); - } - - case "Mannequin": { - return new InlineFragment( - new NamedType("Mannequin") as any, - new SelectionSet(select(Mannequin as any)) - ); - } - - case "MarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("MarkedAsDuplicateEvent") as any, - new SelectionSet(select(MarkedAsDuplicateEvent as any)) - ); - } - - case "MarketplaceCategory": { - return new InlineFragment( - new NamedType("MarketplaceCategory") as any, - new SelectionSet(select(MarketplaceCategory as any)) - ); - } - - case "MarketplaceListing": { - return new InlineFragment( - new NamedType("MarketplaceListing") as any, - new SelectionSet(select(MarketplaceListing as any)) - ); - } - - case "MembersCanDeleteReposClearAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposClearAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposClearAuditEntry as any)) - ); - } - - case "MembersCanDeleteReposDisableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposDisableAuditEntry") as any, - new SelectionSet( - select(MembersCanDeleteReposDisableAuditEntry as any) - ) - ); - } - - case "MembersCanDeleteReposEnableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposEnableAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposEnableAuditEntry as any)) - ); - } - - case "MentionedEvent": { - return new InlineFragment( - new NamedType("MentionedEvent") as any, - new SelectionSet(select(MentionedEvent as any)) - ); - } - - case "MergedEvent": { - return new InlineFragment( - new NamedType("MergedEvent") as any, - new SelectionSet(select(MergedEvent as any)) - ); - } - - case "Milestone": { - return new InlineFragment( - new NamedType("Milestone") as any, - new SelectionSet(select(Milestone as any)) - ); - } - - case "MilestonedEvent": { - return new InlineFragment( - new NamedType("MilestonedEvent") as any, - new SelectionSet(select(MilestonedEvent as any)) - ); - } - - case "MovedColumnsInProjectEvent": { - return new InlineFragment( - new NamedType("MovedColumnsInProjectEvent") as any, - new SelectionSet(select(MovedColumnsInProjectEvent as any)) - ); - } - - case "OauthApplicationCreateAuditEntry": { - return new InlineFragment( - new NamedType("OauthApplicationCreateAuditEntry") as any, - new SelectionSet(select(OauthApplicationCreateAuditEntry as any)) - ); - } - - case "OrgAddBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgAddBillingManagerAuditEntry as any)) - ); - } - - case "OrgAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddMemberAuditEntry") as any, - new SelectionSet(select(OrgAddMemberAuditEntry as any)) - ); - } - - case "OrgBlockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgBlockUserAuditEntry") as any, - new SelectionSet(select(OrgBlockUserAuditEntry as any)) - ); - } - - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgCreateAuditEntry": { - return new InlineFragment( - new NamedType("OrgCreateAuditEntry") as any, - new SelectionSet(select(OrgCreateAuditEntry as any)) - ); - } - - case "OrgDisableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgDisableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgDisableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableSamlAuditEntry") as any, - new SelectionSet(select(OrgDisableSamlAuditEntry as any)) - ); - } - - case "OrgDisableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgDisableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgEnableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgEnableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgEnableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableSamlAuditEntry") as any, - new SelectionSet(select(OrgEnableSamlAuditEntry as any)) - ); - } - - case "OrgEnableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgEnableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgInviteMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteMemberAuditEntry") as any, - new SelectionSet(select(OrgInviteMemberAuditEntry as any)) - ); - } - - case "OrgInviteToBusinessAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteToBusinessAuditEntry") as any, - new SelectionSet(select(OrgInviteToBusinessAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessApprovedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessApprovedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessApprovedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessDeniedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessDeniedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessDeniedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessRequestedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessRequestedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessRequestedAuditEntry as any)) - ); - } - - case "OrgRemoveBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgRemoveBillingManagerAuditEntry as any)) - ); - } - - case "OrgRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveMemberAuditEntry") as any, - new SelectionSet(select(OrgRemoveMemberAuditEntry as any)) - ); - } - - case "OrgRemoveOutsideCollaboratorAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveOutsideCollaboratorAuditEntry") as any, - new SelectionSet( - select(OrgRemoveOutsideCollaboratorAuditEntry as any) - ) - ); - } - - case "OrgRestoreMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRestoreMemberAuditEntry") as any, - new SelectionSet(select(OrgRestoreMemberAuditEntry as any)) - ); - } - - case "OrgUnblockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgUnblockUserAuditEntry") as any, - new SelectionSet(select(OrgUnblockUserAuditEntry as any)) - ); - } - - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateDefaultRepositoryPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgUpdateMemberAuditEntry") as any, - new SelectionSet(select(OrgUpdateMemberAuditEntry as any)) - ); - } - - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateMemberRepositoryCreationPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ) as any, - new SelectionSet( - select( - OrgUpdateMemberRepositoryInvitationPermissionAuditEntry as any - ) - ) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "OrganizationIdentityProvider": { - return new InlineFragment( - new NamedType("OrganizationIdentityProvider") as any, - new SelectionSet(select(OrganizationIdentityProvider as any)) - ); - } - - case "OrganizationInvitation": { - return new InlineFragment( - new NamedType("OrganizationInvitation") as any, - new SelectionSet(select(OrganizationInvitation as any)) - ); - } - - case "Package": { - return new InlineFragment( - new NamedType("Package") as any, - new SelectionSet(select(Package as any)) - ); - } - - case "PackageFile": { - return new InlineFragment( - new NamedType("PackageFile") as any, - new SelectionSet(select(PackageFile as any)) - ); - } - - case "PackageTag": { - return new InlineFragment( - new NamedType("PackageTag") as any, - new SelectionSet(select(PackageTag as any)) - ); - } - - case "PackageVersion": { - return new InlineFragment( - new NamedType("PackageVersion") as any, - new SelectionSet(select(PackageVersion as any)) - ); - } - - case "PinnedEvent": { - return new InlineFragment( - new NamedType("PinnedEvent") as any, - new SelectionSet(select(PinnedEvent as any)) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "Project": { - return new InlineFragment( - new NamedType("Project") as any, - new SelectionSet(select(Project as any)) - ); - } - - case "ProjectCard": { - return new InlineFragment( - new NamedType("ProjectCard") as any, - new SelectionSet(select(ProjectCard as any)) - ); - } - - case "ProjectColumn": { - return new InlineFragment( - new NamedType("ProjectColumn") as any, - new SelectionSet(select(ProjectColumn as any)) - ); - } - - case "PublicKey": { - return new InlineFragment( - new NamedType("PublicKey") as any, - new SelectionSet(select(PublicKey as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestCommit": { - return new InlineFragment( - new NamedType("PullRequestCommit") as any, - new SelectionSet(select(PullRequestCommit as any)) - ); - } - - case "PullRequestCommitCommentThread": { - return new InlineFragment( - new NamedType("PullRequestCommitCommentThread") as any, - new SelectionSet(select(PullRequestCommitCommentThread as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "PullRequestReviewThread": { - return new InlineFragment( - new NamedType("PullRequestReviewThread") as any, - new SelectionSet(select(PullRequestReviewThread as any)) - ); - } - - case "Push": { - return new InlineFragment( - new NamedType("Push") as any, - new SelectionSet(select(Push as any)) - ); - } - - case "PushAllowance": { - return new InlineFragment( - new NamedType("PushAllowance") as any, - new SelectionSet(select(PushAllowance as any)) - ); - } - - case "Reaction": { - return new InlineFragment( - new NamedType("Reaction") as any, - new SelectionSet(select(Reaction as any)) - ); - } - - case "ReadyForReviewEvent": { - return new InlineFragment( - new NamedType("ReadyForReviewEvent") as any, - new SelectionSet(select(ReadyForReviewEvent as any)) - ); - } - - case "Ref": { - return new InlineFragment( - new NamedType("Ref") as any, - new SelectionSet(select(Ref as any)) - ); - } - - case "ReferencedEvent": { - return new InlineFragment( - new NamedType("ReferencedEvent") as any, - new SelectionSet(select(ReferencedEvent as any)) - ); - } - - case "Release": { - return new InlineFragment( - new NamedType("Release") as any, - new SelectionSet(select(Release as any)) - ); - } - - case "ReleaseAsset": { - return new InlineFragment( - new NamedType("ReleaseAsset") as any, - new SelectionSet(select(ReleaseAsset as any)) - ); - } - - case "RemovedFromProjectEvent": { - return new InlineFragment( - new NamedType("RemovedFromProjectEvent") as any, - new SelectionSet(select(RemovedFromProjectEvent as any)) - ); - } - - case "RenamedTitleEvent": { - return new InlineFragment( - new NamedType("RenamedTitleEvent") as any, - new SelectionSet(select(RenamedTitleEvent as any)) - ); - } - - case "ReopenedEvent": { - return new InlineFragment( - new NamedType("ReopenedEvent") as any, - new SelectionSet(select(ReopenedEvent as any)) - ); - } - - case "RepoAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoAccessAuditEntry") as any, - new SelectionSet(select(RepoAccessAuditEntry as any)) - ); - } - - case "RepoAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddMemberAuditEntry") as any, - new SelectionSet(select(RepoAddMemberAuditEntry as any)) - ); - } - - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoArchivedAuditEntry": { - return new InlineFragment( - new NamedType("RepoArchivedAuditEntry") as any, - new SelectionSet(select(RepoArchivedAuditEntry as any)) - ); - } - - case "RepoChangeMergeSettingAuditEntry": { - return new InlineFragment( - new NamedType("RepoChangeMergeSettingAuditEntry") as any, - new SelectionSet(select(RepoChangeMergeSettingAuditEntry as any)) - ); - } - - case "RepoConfigDisableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigDisableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigEnableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigLockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigLockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigLockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigUnlockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigUnlockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoCreateAuditEntry": { - return new InlineFragment( - new NamedType("RepoCreateAuditEntry") as any, - new SelectionSet(select(RepoCreateAuditEntry as any)) - ); - } - - case "RepoDestroyAuditEntry": { - return new InlineFragment( - new NamedType("RepoDestroyAuditEntry") as any, - new SelectionSet(select(RepoDestroyAuditEntry as any)) - ); - } - - case "RepoRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveMemberAuditEntry") as any, - new SelectionSet(select(RepoRemoveMemberAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "RepositoryInvitation": { - return new InlineFragment( - new NamedType("RepositoryInvitation") as any, - new SelectionSet(select(RepositoryInvitation as any)) - ); - } - - case "RepositoryTopic": { - return new InlineFragment( - new NamedType("RepositoryTopic") as any, - new SelectionSet(select(RepositoryTopic as any)) - ); - } - - case "RepositoryVisibilityChangeDisableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeDisableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeDisableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeEnableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeEnableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeEnableAuditEntry as any) - ) - ); - } - - case "RepositoryVulnerabilityAlert": { - return new InlineFragment( - new NamedType("RepositoryVulnerabilityAlert") as any, - new SelectionSet(select(RepositoryVulnerabilityAlert as any)) - ); - } - - case "ReviewDismissalAllowance": { - return new InlineFragment( - new NamedType("ReviewDismissalAllowance") as any, - new SelectionSet(select(ReviewDismissalAllowance as any)) - ); - } - - case "ReviewDismissedEvent": { - return new InlineFragment( - new NamedType("ReviewDismissedEvent") as any, - new SelectionSet(select(ReviewDismissedEvent as any)) - ); - } - - case "ReviewRequest": { - return new InlineFragment( - new NamedType("ReviewRequest") as any, - new SelectionSet(select(ReviewRequest as any)) - ); - } - - case "ReviewRequestRemovedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestRemovedEvent") as any, - new SelectionSet(select(ReviewRequestRemovedEvent as any)) - ); - } - - case "ReviewRequestedEvent": { - return new InlineFragment( - new NamedType("ReviewRequestedEvent") as any, - new SelectionSet(select(ReviewRequestedEvent as any)) - ); - } - - case "SavedReply": { - return new InlineFragment( - new NamedType("SavedReply") as any, - new SelectionSet(select(SavedReply as any)) - ); - } - - case "SecurityAdvisory": { - return new InlineFragment( - new NamedType("SecurityAdvisory") as any, - new SelectionSet(select(SecurityAdvisory as any)) - ); - } - - case "SponsorsListing": { - return new InlineFragment( - new NamedType("SponsorsListing") as any, - new SelectionSet(select(SponsorsListing as any)) - ); - } - - case "SponsorsTier": { - return new InlineFragment( - new NamedType("SponsorsTier") as any, - new SelectionSet(select(SponsorsTier as any)) - ); - } - - case "Sponsorship": { - return new InlineFragment( - new NamedType("Sponsorship") as any, - new SelectionSet(select(Sponsorship as any)) - ); - } - - case "Status": { - return new InlineFragment( - new NamedType("Status") as any, - new SelectionSet(select(Status as any)) - ); - } - - case "StatusCheckRollup": { - return new InlineFragment( - new NamedType("StatusCheckRollup") as any, - new SelectionSet(select(StatusCheckRollup as any)) - ); - } - - case "StatusContext": { - return new InlineFragment( - new NamedType("StatusContext") as any, - new SelectionSet(select(StatusContext as any)) - ); - } - - case "SubscribedEvent": { - return new InlineFragment( - new NamedType("SubscribedEvent") as any, - new SelectionSet(select(SubscribedEvent as any)) - ); - } - - case "Tag": { - return new InlineFragment( - new NamedType("Tag") as any, - new SelectionSet(select(Tag as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - case "TeamAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddMemberAuditEntry") as any, - new SelectionSet(select(TeamAddMemberAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamChangeParentTeamAuditEntry": { - return new InlineFragment( - new NamedType("TeamChangeParentTeamAuditEntry") as any, - new SelectionSet(select(TeamChangeParentTeamAuditEntry as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - case "TeamRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveMemberAuditEntry") as any, - new SelectionSet(select(TeamRemoveMemberAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - case "Topic": { - return new InlineFragment( - new NamedType("Topic") as any, - new SelectionSet(select(Topic as any)) - ); - } - - case "TransferredEvent": { - return new InlineFragment( - new NamedType("TransferredEvent") as any, - new SelectionSet(select(TransferredEvent as any)) - ); - } - - case "Tree": { - return new InlineFragment( - new NamedType("Tree") as any, - new SelectionSet(select(Tree as any)) - ); - } - - case "UnassignedEvent": { - return new InlineFragment( - new NamedType("UnassignedEvent") as any, - new SelectionSet(select(UnassignedEvent as any)) - ); - } - - case "UnlabeledEvent": { - return new InlineFragment( - new NamedType("UnlabeledEvent") as any, - new SelectionSet(select(UnlabeledEvent as any)) - ); - } - - case "UnlockedEvent": { - return new InlineFragment( - new NamedType("UnlockedEvent") as any, - new SelectionSet(select(UnlockedEvent as any)) - ); - } - - case "UnmarkedAsDuplicateEvent": { - return new InlineFragment( - new NamedType("UnmarkedAsDuplicateEvent") as any, - new SelectionSet(select(UnmarkedAsDuplicateEvent as any)) - ); - } - - case "UnpinnedEvent": { - return new InlineFragment( - new NamedType("UnpinnedEvent") as any, - new SelectionSet(select(UnpinnedEvent as any)) - ); - } - - case "UnsubscribedEvent": { - return new InlineFragment( - new NamedType("UnsubscribedEvent") as any, - new SelectionSet(select(UnsubscribedEvent as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - case "UserBlockedEvent": { - return new InlineFragment( - new NamedType("UserBlockedEvent") as any, - new SelectionSet(select(UserBlockedEvent as any)) - ); - } - - case "UserContentEdit": { - return new InlineFragment( - new NamedType("UserContentEdit") as any, - new SelectionSet(select(UserContentEdit as any)) - ); - } - - case "UserStatus": { - return new InlineFragment( - new NamedType("UserStatus") as any, - new SelectionSet(select(UserStatus as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Node", - }); - } - }, -}; - -export interface IOauthApplicationAuditEntryData { - readonly __typename: string; - readonly oauthApplicationName: string | null; - readonly oauthApplicationResourcePath: unknown | null; - readonly oauthApplicationUrl: unknown | null; -} - -interface OauthApplicationAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The name of the OAuth Application. - */ - - readonly oauthApplicationName: () => Field<"oauthApplicationName">; - - /** - * @description The HTTP path for the OAuth Application - */ - - readonly oauthApplicationResourcePath: () => Field<"oauthApplicationResourcePath">; - - /** - * @description The HTTP URL for the OAuth Application - */ - - readonly oauthApplicationUrl: () => Field<"oauthApplicationUrl">; - - readonly on: < - T extends Array, - F extends - | "OauthApplicationCreateAuditEntry" - | "OrgOauthAppAccessApprovedAuditEntry" - | "OrgOauthAppAccessDeniedAuditEntry" - | "OrgOauthAppAccessRequestedAuditEntry" - >( - type: F, - select: ( - t: F extends "OauthApplicationCreateAuditEntry" - ? OauthApplicationCreateAuditEntrySelector - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? OrgOauthAppAccessApprovedAuditEntrySelector - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? OrgOauthAppAccessDeniedAuditEntrySelector - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? OrgOauthAppAccessRequestedAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const OauthApplicationAuditEntryData: OauthApplicationAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The name of the OAuth Application. - */ - oauthApplicationName: () => new Field("oauthApplicationName"), - - /** - * @description The HTTP path for the OAuth Application - */ - oauthApplicationResourcePath: () => new Field("oauthApplicationResourcePath"), - - /** - * @description The HTTP URL for the OAuth Application - */ - oauthApplicationUrl: () => new Field("oauthApplicationUrl"), - - on: (type, select) => { - switch (type) { - case "OauthApplicationCreateAuditEntry": { - return new InlineFragment( - new NamedType("OauthApplicationCreateAuditEntry") as any, - new SelectionSet(select(OauthApplicationCreateAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessApprovedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessApprovedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessApprovedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessDeniedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessDeniedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessDeniedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessRequestedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessRequestedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessRequestedAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "OauthApplicationAuditEntryData", - }); - } - }, -}; - -export interface IOauthApplicationCreateAuditEntry - extends IAuditEntry, - INode, - IOauthApplicationAuditEntryData, - IOrganizationAuditEntryData { - readonly __typename: "OauthApplicationCreateAuditEntry"; - readonly applicationUrl: unknown | null; - readonly callbackUrl: unknown | null; - readonly rateLimit: number | null; - readonly state: OauthApplicationCreateAuditEntryState | null; -} - -interface OauthApplicationCreateAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The application URL of the OAuth Application. - */ - - readonly applicationUrl: () => Field<"applicationUrl">; - - /** - * @description The callback URL of the OAuth Application. - */ - - readonly callbackUrl: () => Field<"callbackUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the OAuth Application. - */ - - readonly oauthApplicationName: () => Field<"oauthApplicationName">; - - /** - * @description The HTTP path for the OAuth Application - */ - - readonly oauthApplicationResourcePath: () => Field<"oauthApplicationResourcePath">; - - /** - * @description The HTTP URL for the OAuth Application - */ - - readonly oauthApplicationUrl: () => Field<"oauthApplicationUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The rate limit of the OAuth Application. - */ - - readonly rateLimit: () => Field<"rateLimit">; - - /** - * @description The state of the OAuth Application. - */ - - readonly state: () => Field<"state">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOauthApplicationCreateAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OauthApplicationCreateAuditEntry"; -}; - -export const OauthApplicationCreateAuditEntry: OauthApplicationCreateAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The application URL of the OAuth Application. - */ - applicationUrl: () => new Field("applicationUrl"), - - /** - * @description The callback URL of the OAuth Application. - */ - callbackUrl: () => new Field("callbackUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The name of the OAuth Application. - */ - oauthApplicationName: () => new Field("oauthApplicationName"), - - /** - * @description The HTTP path for the OAuth Application - */ - oauthApplicationResourcePath: () => new Field("oauthApplicationResourcePath"), - - /** - * @description The HTTP URL for the OAuth Application - */ - oauthApplicationUrl: () => new Field("oauthApplicationUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The rate limit of the OAuth Application. - */ - rateLimit: () => new Field("rateLimit"), - - /** - * @description The state of the OAuth Application. - */ - state: () => new Field("state"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgAddBillingManagerAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgAddBillingManagerAuditEntry"; - readonly invitationEmail: string | null; -} - -interface OrgAddBillingManagerAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The email address used to invite a billing manager for the organization. - */ - - readonly invitationEmail: () => Field<"invitationEmail">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgAddBillingManagerAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgAddBillingManagerAuditEntry"; -}; - -export const OrgAddBillingManagerAuditEntry: OrgAddBillingManagerAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The email address used to invite a billing manager for the organization. - */ - invitationEmail: () => new Field("invitationEmail"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgAddMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgAddMemberAuditEntry"; - readonly permission: OrgAddMemberAuditEntryPermission | null; -} - -interface OrgAddMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The permission level of the member added to the organization. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgAddMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgAddMemberAuditEntry"; -}; - -export const OrgAddMemberAuditEntry: OrgAddMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The permission level of the member added to the organization. - */ - permission: () => new Field("permission"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgBlockUserAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgBlockUserAuditEntry"; - readonly blockedUser: IUser | null; - readonly blockedUserName: string | null; - readonly blockedUserResourcePath: unknown | null; - readonly blockedUserUrl: unknown | null; -} - -interface OrgBlockUserAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The blocked user. - */ - - readonly blockedUser: >( - select: (t: UserSelector) => T - ) => Field<"blockedUser", never, SelectionSet>; - - /** - * @description The username of the blocked user. - */ - - readonly blockedUserName: () => Field<"blockedUserName">; - - /** - * @description The HTTP path for the blocked user. - */ - - readonly blockedUserResourcePath: () => Field<"blockedUserResourcePath">; - - /** - * @description The HTTP URL for the blocked user. - */ - - readonly blockedUserUrl: () => Field<"blockedUserUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgBlockUserAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgBlockUserAuditEntry"; -}; - -export const OrgBlockUserAuditEntry: OrgBlockUserAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The blocked user. - */ - - blockedUser: (select) => - new Field( - "blockedUser", - undefined as never, - new SelectionSet(select(User)) - ), - - /** - * @description The username of the blocked user. - */ - blockedUserName: () => new Field("blockedUserName"), - - /** - * @description The HTTP path for the blocked user. - */ - blockedUserResourcePath: () => new Field("blockedUserResourcePath"), - - /** - * @description The HTTP URL for the blocked user. - */ - blockedUserUrl: () => new Field("blockedUserUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgConfigDisableCollaboratorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgConfigDisableCollaboratorsOnlyAuditEntry"; -} - -interface OrgConfigDisableCollaboratorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgConfigDisableCollaboratorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgConfigDisableCollaboratorsOnlyAuditEntry"; -}; - -export const OrgConfigDisableCollaboratorsOnlyAuditEntry: OrgConfigDisableCollaboratorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgConfigEnableCollaboratorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgConfigEnableCollaboratorsOnlyAuditEntry"; -} - -interface OrgConfigEnableCollaboratorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgConfigEnableCollaboratorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgConfigEnableCollaboratorsOnlyAuditEntry"; -}; - -export const OrgConfigEnableCollaboratorsOnlyAuditEntry: OrgConfigEnableCollaboratorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgCreateAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgCreateAuditEntry"; - readonly billingPlan: OrgCreateAuditEntryBillingPlan | null; -} - -interface OrgCreateAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The billing plan for the Organization. - */ - - readonly billingPlan: () => Field<"billingPlan">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgCreateAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgCreateAuditEntry"; -}; - -export const OrgCreateAuditEntry: OrgCreateAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The billing plan for the Organization. - */ - billingPlan: () => new Field("billingPlan"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgDisableOauthAppRestrictionsAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgDisableOauthAppRestrictionsAuditEntry"; -} - -interface OrgDisableOauthAppRestrictionsAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgDisableOauthAppRestrictionsAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgDisableOauthAppRestrictionsAuditEntry"; -}; - -export const OrgDisableOauthAppRestrictionsAuditEntry: OrgDisableOauthAppRestrictionsAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgDisableSamlAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgDisableSamlAuditEntry"; - readonly digestMethodUrl: unknown | null; - readonly issuerUrl: unknown | null; - readonly signatureMethodUrl: unknown | null; - readonly singleSignOnUrl: unknown | null; -} - -interface OrgDisableSamlAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The SAML provider's digest algorithm URL. - */ - - readonly digestMethodUrl: () => Field<"digestMethodUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The SAML provider's issuer URL. - */ - - readonly issuerUrl: () => Field<"issuerUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The SAML provider's signature algorithm URL. - */ - - readonly signatureMethodUrl: () => Field<"signatureMethodUrl">; - - /** - * @description The SAML provider's single sign-on URL. - */ - - readonly singleSignOnUrl: () => Field<"singleSignOnUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgDisableSamlAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgDisableSamlAuditEntry"; -}; - -export const OrgDisableSamlAuditEntry: OrgDisableSamlAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The SAML provider's digest algorithm URL. - */ - digestMethodUrl: () => new Field("digestMethodUrl"), - id: () => new Field("id"), - - /** - * @description The SAML provider's issuer URL. - */ - issuerUrl: () => new Field("issuerUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The SAML provider's signature algorithm URL. - */ - signatureMethodUrl: () => new Field("signatureMethodUrl"), - - /** - * @description The SAML provider's single sign-on URL. - */ - singleSignOnUrl: () => new Field("singleSignOnUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgDisableTwoFactorRequirementAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgDisableTwoFactorRequirementAuditEntry"; -} - -interface OrgDisableTwoFactorRequirementAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgDisableTwoFactorRequirementAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgDisableTwoFactorRequirementAuditEntry"; -}; - -export const OrgDisableTwoFactorRequirementAuditEntry: OrgDisableTwoFactorRequirementAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgEnableOauthAppRestrictionsAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgEnableOauthAppRestrictionsAuditEntry"; -} - -interface OrgEnableOauthAppRestrictionsAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgEnableOauthAppRestrictionsAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgEnableOauthAppRestrictionsAuditEntry"; -}; - -export const OrgEnableOauthAppRestrictionsAuditEntry: OrgEnableOauthAppRestrictionsAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgEnableSamlAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgEnableSamlAuditEntry"; - readonly digestMethodUrl: unknown | null; - readonly issuerUrl: unknown | null; - readonly signatureMethodUrl: unknown | null; - readonly singleSignOnUrl: unknown | null; -} - -interface OrgEnableSamlAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The SAML provider's digest algorithm URL. - */ - - readonly digestMethodUrl: () => Field<"digestMethodUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The SAML provider's issuer URL. - */ - - readonly issuerUrl: () => Field<"issuerUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The SAML provider's signature algorithm URL. - */ - - readonly signatureMethodUrl: () => Field<"signatureMethodUrl">; - - /** - * @description The SAML provider's single sign-on URL. - */ - - readonly singleSignOnUrl: () => Field<"singleSignOnUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgEnableSamlAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgEnableSamlAuditEntry"; -}; - -export const OrgEnableSamlAuditEntry: OrgEnableSamlAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The SAML provider's digest algorithm URL. - */ - digestMethodUrl: () => new Field("digestMethodUrl"), - id: () => new Field("id"), - - /** - * @description The SAML provider's issuer URL. - */ - issuerUrl: () => new Field("issuerUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The SAML provider's signature algorithm URL. - */ - signatureMethodUrl: () => new Field("signatureMethodUrl"), - - /** - * @description The SAML provider's single sign-on URL. - */ - singleSignOnUrl: () => new Field("singleSignOnUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgEnableTwoFactorRequirementAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgEnableTwoFactorRequirementAuditEntry"; -} - -interface OrgEnableTwoFactorRequirementAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgEnableTwoFactorRequirementAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgEnableTwoFactorRequirementAuditEntry"; -}; - -export const OrgEnableTwoFactorRequirementAuditEntry: OrgEnableTwoFactorRequirementAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgInviteMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgInviteMemberAuditEntry"; - readonly email: string | null; - readonly organizationInvitation: IOrganizationInvitation | null; -} - -interface OrgInviteMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The email address of the organization invitation. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The organization invitation. - */ - - readonly organizationInvitation: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"organizationInvitation", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgInviteMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgInviteMemberAuditEntry"; -}; - -export const OrgInviteMemberAuditEntry: OrgInviteMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The email address of the organization invitation. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The organization invitation. - */ - - organizationInvitation: (select) => - new Field( - "organizationInvitation", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgInviteToBusinessAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgInviteToBusinessAuditEntry"; -} - -interface OrgInviteToBusinessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgInviteToBusinessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgInviteToBusinessAuditEntry"; -}; - -export const OrgInviteToBusinessAuditEntry: OrgInviteToBusinessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgOauthAppAccessApprovedAuditEntry - extends IAuditEntry, - INode, - IOauthApplicationAuditEntryData, - IOrganizationAuditEntryData { - readonly __typename: "OrgOauthAppAccessApprovedAuditEntry"; -} - -interface OrgOauthAppAccessApprovedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the OAuth Application. - */ - - readonly oauthApplicationName: () => Field<"oauthApplicationName">; - - /** - * @description The HTTP path for the OAuth Application - */ - - readonly oauthApplicationResourcePath: () => Field<"oauthApplicationResourcePath">; - - /** - * @description The HTTP URL for the OAuth Application - */ - - readonly oauthApplicationUrl: () => Field<"oauthApplicationUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgOauthAppAccessApprovedAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgOauthAppAccessApprovedAuditEntry"; -}; - -export const OrgOauthAppAccessApprovedAuditEntry: OrgOauthAppAccessApprovedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The name of the OAuth Application. - */ - oauthApplicationName: () => new Field("oauthApplicationName"), - - /** - * @description The HTTP path for the OAuth Application - */ - oauthApplicationResourcePath: () => new Field("oauthApplicationResourcePath"), - - /** - * @description The HTTP URL for the OAuth Application - */ - oauthApplicationUrl: () => new Field("oauthApplicationUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgOauthAppAccessDeniedAuditEntry - extends IAuditEntry, - INode, - IOauthApplicationAuditEntryData, - IOrganizationAuditEntryData { - readonly __typename: "OrgOauthAppAccessDeniedAuditEntry"; -} - -interface OrgOauthAppAccessDeniedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the OAuth Application. - */ - - readonly oauthApplicationName: () => Field<"oauthApplicationName">; - - /** - * @description The HTTP path for the OAuth Application - */ - - readonly oauthApplicationResourcePath: () => Field<"oauthApplicationResourcePath">; - - /** - * @description The HTTP URL for the OAuth Application - */ - - readonly oauthApplicationUrl: () => Field<"oauthApplicationUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgOauthAppAccessDeniedAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgOauthAppAccessDeniedAuditEntry"; -}; - -export const OrgOauthAppAccessDeniedAuditEntry: OrgOauthAppAccessDeniedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The name of the OAuth Application. - */ - oauthApplicationName: () => new Field("oauthApplicationName"), - - /** - * @description The HTTP path for the OAuth Application - */ - oauthApplicationResourcePath: () => new Field("oauthApplicationResourcePath"), - - /** - * @description The HTTP URL for the OAuth Application - */ - oauthApplicationUrl: () => new Field("oauthApplicationUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgOauthAppAccessRequestedAuditEntry - extends IAuditEntry, - INode, - IOauthApplicationAuditEntryData, - IOrganizationAuditEntryData { - readonly __typename: "OrgOauthAppAccessRequestedAuditEntry"; -} - -interface OrgOauthAppAccessRequestedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The name of the OAuth Application. - */ - - readonly oauthApplicationName: () => Field<"oauthApplicationName">; - - /** - * @description The HTTP path for the OAuth Application - */ - - readonly oauthApplicationResourcePath: () => Field<"oauthApplicationResourcePath">; - - /** - * @description The HTTP URL for the OAuth Application - */ - - readonly oauthApplicationUrl: () => Field<"oauthApplicationUrl">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgOauthAppAccessRequestedAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgOauthAppAccessRequestedAuditEntry"; -}; - -export const OrgOauthAppAccessRequestedAuditEntry: OrgOauthAppAccessRequestedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The name of the OAuth Application. - */ - oauthApplicationName: () => new Field("oauthApplicationName"), - - /** - * @description The HTTP path for the OAuth Application - */ - oauthApplicationResourcePath: () => new Field("oauthApplicationResourcePath"), - - /** - * @description The HTTP URL for the OAuth Application - */ - oauthApplicationUrl: () => new Field("oauthApplicationUrl"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgRemoveBillingManagerAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgRemoveBillingManagerAuditEntry"; - readonly reason: OrgRemoveBillingManagerAuditEntryReason | null; -} - -interface OrgRemoveBillingManagerAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The reason for the billing manager being removed. - */ - - readonly reason: () => Field<"reason">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgRemoveBillingManagerAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRemoveBillingManagerAuditEntry"; -}; - -export const OrgRemoveBillingManagerAuditEntry: OrgRemoveBillingManagerAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The reason for the billing manager being removed. - */ - reason: () => new Field("reason"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgRemoveMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgRemoveMemberAuditEntry"; - readonly membershipTypes: ReadonlyArray | null; - readonly reason: OrgRemoveMemberAuditEntryReason | null; -} - -interface OrgRemoveMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The types of membership the member has with the organization. - */ - - readonly membershipTypes: () => Field<"membershipTypes">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The reason for the member being removed. - */ - - readonly reason: () => Field<"reason">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgRemoveMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRemoveMemberAuditEntry"; -}; - -export const OrgRemoveMemberAuditEntry: OrgRemoveMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The types of membership the member has with the organization. - */ - membershipTypes: () => new Field("membershipTypes"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The reason for the member being removed. - */ - reason: () => new Field("reason"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgRemoveOutsideCollaboratorAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgRemoveOutsideCollaboratorAuditEntry"; - readonly membershipTypes: ReadonlyArray | null; - readonly reason: OrgRemoveOutsideCollaboratorAuditEntryReason | null; -} - -interface OrgRemoveOutsideCollaboratorAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The types of membership the outside collaborator has with the organization. - */ - - readonly membershipTypes: () => Field<"membershipTypes">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The reason for the outside collaborator being removed from the Organization. - */ - - readonly reason: () => Field<"reason">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgRemoveOutsideCollaboratorAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRemoveOutsideCollaboratorAuditEntry"; -}; - -export const OrgRemoveOutsideCollaboratorAuditEntry: OrgRemoveOutsideCollaboratorAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The types of membership the outside collaborator has with the organization. - */ - membershipTypes: () => new Field("membershipTypes"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The reason for the outside collaborator being removed from the Organization. - */ - reason: () => new Field("reason"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgRestoreMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgRestoreMemberAuditEntry"; - readonly restoredCustomEmailRoutingsCount: number | null; - readonly restoredIssueAssignmentsCount: number | null; - readonly restoredMemberships: ReadonlyArray | null; - readonly restoredMembershipsCount: number | null; - readonly restoredRepositoriesCount: number | null; - readonly restoredRepositoryStarsCount: number | null; - readonly restoredRepositoryWatchesCount: number | null; -} - -interface OrgRestoreMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The number of custom email routings for the restored member. - */ - - readonly restoredCustomEmailRoutingsCount: () => Field<"restoredCustomEmailRoutingsCount">; - - /** - * @description The number of issue assignemnts for the restored member. - */ - - readonly restoredIssueAssignmentsCount: () => Field<"restoredIssueAssignmentsCount">; - - /** - * @description Restored organization membership objects. - */ - - readonly restoredMemberships: >( - select: (t: OrgRestoreMemberAuditEntryMembershipSelector) => T - ) => Field<"restoredMemberships", never, SelectionSet>; - - /** - * @description The number of restored memberships. - */ - - readonly restoredMembershipsCount: () => Field<"restoredMembershipsCount">; - - /** - * @description The number of repositories of the restored member. - */ - - readonly restoredRepositoriesCount: () => Field<"restoredRepositoriesCount">; - - /** - * @description The number of starred repositories for the restored member. - */ - - readonly restoredRepositoryStarsCount: () => Field<"restoredRepositoryStarsCount">; - - /** - * @description The number of watched repositories for the restored member. - */ - - readonly restoredRepositoryWatchesCount: () => Field<"restoredRepositoryWatchesCount">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgRestoreMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRestoreMemberAuditEntry"; -}; - -export const OrgRestoreMemberAuditEntry: OrgRestoreMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The number of custom email routings for the restored member. - */ - restoredCustomEmailRoutingsCount: () => - new Field("restoredCustomEmailRoutingsCount"), - - /** - * @description The number of issue assignemnts for the restored member. - */ - restoredIssueAssignmentsCount: () => - new Field("restoredIssueAssignmentsCount"), - - /** - * @description Restored organization membership objects. - */ - - restoredMemberships: (select) => - new Field( - "restoredMemberships", - undefined as never, - new SelectionSet(select(OrgRestoreMemberAuditEntryMembership)) - ), - - /** - * @description The number of restored memberships. - */ - restoredMembershipsCount: () => new Field("restoredMembershipsCount"), - - /** - * @description The number of repositories of the restored member. - */ - restoredRepositoriesCount: () => new Field("restoredRepositoriesCount"), - - /** - * @description The number of starred repositories for the restored member. - */ - restoredRepositoryStarsCount: () => new Field("restoredRepositoryStarsCount"), - - /** - * @description The number of watched repositories for the restored member. - */ - restoredRepositoryWatchesCount: () => - new Field("restoredRepositoryWatchesCount"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgRestoreMemberMembershipOrganizationAuditEntryData - extends IOrganizationAuditEntryData { - readonly __typename: "OrgRestoreMemberMembershipOrganizationAuditEntryData"; -} - -interface OrgRestoreMemberMembershipOrganizationAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; -} - -export const isOrgRestoreMemberMembershipOrganizationAuditEntryData = ( - object: Record -): object is Partial => { - return ( - object.__typename === "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ); -}; - -export const OrgRestoreMemberMembershipOrganizationAuditEntryData: OrgRestoreMemberMembershipOrganizationAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), -}; - -export interface IOrgRestoreMemberMembershipRepositoryAuditEntryData - extends IRepositoryAuditEntryData { - readonly __typename: "OrgRestoreMemberMembershipRepositoryAuditEntryData"; -} - -interface OrgRestoreMemberMembershipRepositoryAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; -} - -export const isOrgRestoreMemberMembershipRepositoryAuditEntryData = ( - object: Record -): object is Partial => { - return ( - object.__typename === "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ); -}; - -export const OrgRestoreMemberMembershipRepositoryAuditEntryData: OrgRestoreMemberMembershipRepositoryAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), -}; - -export interface IOrgRestoreMemberMembershipTeamAuditEntryData - extends ITeamAuditEntryData { - readonly __typename: "OrgRestoreMemberMembershipTeamAuditEntryData"; -} - -interface OrgRestoreMemberMembershipTeamAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; -} - -export const isOrgRestoreMemberMembershipTeamAuditEntryData = ( - object: Record -): object is Partial => { - return object.__typename === "OrgRestoreMemberMembershipTeamAuditEntryData"; -}; - -export const OrgRestoreMemberMembershipTeamAuditEntryData: OrgRestoreMemberMembershipTeamAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), -}; - -export interface IOrgUnblockUserAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgUnblockUserAuditEntry"; - readonly blockedUser: IUser | null; - readonly blockedUserName: string | null; - readonly blockedUserResourcePath: unknown | null; - readonly blockedUserUrl: unknown | null; -} - -interface OrgUnblockUserAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The user being unblocked by the organization. - */ - - readonly blockedUser: >( - select: (t: UserSelector) => T - ) => Field<"blockedUser", never, SelectionSet>; - - /** - * @description The username of the blocked user. - */ - - readonly blockedUserName: () => Field<"blockedUserName">; - - /** - * @description The HTTP path for the blocked user. - */ - - readonly blockedUserResourcePath: () => Field<"blockedUserResourcePath">; - - /** - * @description The HTTP URL for the blocked user. - */ - - readonly blockedUserUrl: () => Field<"blockedUserUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgUnblockUserAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgUnblockUserAuditEntry"; -}; - -export const OrgUnblockUserAuditEntry: OrgUnblockUserAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The user being unblocked by the organization. - */ - - blockedUser: (select) => - new Field( - "blockedUser", - undefined as never, - new SelectionSet(select(User)) - ), - - /** - * @description The username of the blocked user. - */ - blockedUserName: () => new Field("blockedUserName"), - - /** - * @description The HTTP path for the blocked user. - */ - blockedUserResourcePath: () => new Field("blockedUserResourcePath"), - - /** - * @description The HTTP URL for the blocked user. - */ - blockedUserUrl: () => new Field("blockedUserUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgUpdateDefaultRepositoryPermissionAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgUpdateDefaultRepositoryPermissionAuditEntry"; - readonly permission: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission | null; - readonly permissionWas: OrgUpdateDefaultRepositoryPermissionAuditEntryPermission | null; -} - -interface OrgUpdateDefaultRepositoryPermissionAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The new default repository permission level for the organization. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description The former default repository permission level for the organization. - */ - - readonly permissionWas: () => Field<"permissionWas">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgUpdateDefaultRepositoryPermissionAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgUpdateDefaultRepositoryPermissionAuditEntry"; -}; - -export const OrgUpdateDefaultRepositoryPermissionAuditEntry: OrgUpdateDefaultRepositoryPermissionAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The new default repository permission level for the organization. - */ - permission: () => new Field("permission"), - - /** - * @description The former default repository permission level for the organization. - */ - permissionWas: () => new Field("permissionWas"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgUpdateMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgUpdateMemberAuditEntry"; - readonly permission: OrgUpdateMemberAuditEntryPermission | null; - readonly permissionWas: OrgUpdateMemberAuditEntryPermission | null; -} - -interface OrgUpdateMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The new member permission level for the organization. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description The former member permission level for the organization. - */ - - readonly permissionWas: () => Field<"permissionWas">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgUpdateMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "OrgUpdateMemberAuditEntry"; -}; - -export const OrgUpdateMemberAuditEntry: OrgUpdateMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The new member permission level for the organization. - */ - permission: () => new Field("permission"), - - /** - * @description The former member permission level for the organization. - */ - permissionWas: () => new Field("permissionWas"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrgUpdateMemberRepositoryCreationPermissionAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgUpdateMemberRepositoryCreationPermissionAuditEntry"; - readonly canCreateRepositories: boolean | null; - readonly visibility: OrgUpdateMemberRepositoryCreationPermissionAuditEntryVisibility | null; -} - -interface OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description Can members create repositories in the organization. - */ - - readonly canCreateRepositories: () => Field<"canCreateRepositories">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The permission for visibility level of repositories for this organization. - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isOrgUpdateMemberRepositoryCreationPermissionAuditEntry = ( - object: Record -): object is Partial => { - return ( - object.__typename === - "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ); -}; - -export const OrgUpdateMemberRepositoryCreationPermissionAuditEntry: OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description Can members create repositories in the organization. - */ - canCreateRepositories: () => new Field("canCreateRepositories"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The permission for visibility level of repositories for this organization. - */ - visibility: () => new Field("visibility"), -}; - -export interface IOrgUpdateMemberRepositoryInvitationPermissionAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData { - readonly __typename: "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry"; - readonly canInviteOutsideCollaboratorsToRepositories: boolean | null; -} - -interface OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description Can outside collaborators be invited to repositories in the organization. - */ - - readonly canInviteOutsideCollaboratorsToRepositories: () => Field<"canInviteOutsideCollaboratorsToRepositories">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isOrgUpdateMemberRepositoryInvitationPermissionAuditEntry = ( - object: Record -): object is Partial => { - return ( - object.__typename === - "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ); -}; - -export const OrgUpdateMemberRepositoryInvitationPermissionAuditEntry: OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description Can outside collaborators be invited to repositories in the organization. - */ - canInviteOutsideCollaboratorsToRepositories: () => - new Field("canInviteOutsideCollaboratorsToRepositories"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IOrganization - extends IActor, - IMemberStatusable, - INode, - IPackageOwner, - IProfileOwner, - IProjectOwner, - IRepositoryOwner, - ISponsorable, - IUniformResourceLocatable { - readonly __typename: "Organization"; - readonly auditLog: IOrganizationAuditEntryConnection; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly description: string | null; - readonly descriptionHTML: string | null; - readonly interactionAbility: IRepositoryInteractionAbility | null; - readonly ipAllowListEnabledSetting: IpAllowListEnabledSettingValue; - readonly ipAllowListEntries: IIpAllowListEntryConnection; - readonly isVerified: boolean; - readonly membersWithRole: IOrganizationMemberConnection; - readonly newTeamResourcePath: unknown; - readonly newTeamUrl: unknown; - readonly organizationBillingEmail: string | null; - readonly pendingMembers: IUserConnection; - readonly requiresTwoFactorAuthentication: boolean | null; - readonly samlIdentityProvider: IOrganizationIdentityProvider | null; - readonly team: ITeam | null; - readonly teams: ITeamConnection; - readonly teamsResourcePath: unknown; - readonly teamsUrl: unknown; - readonly twitterUsername: string | null; - readonly updatedAt: unknown; - readonly viewerCanAdminister: boolean; - readonly viewerCanCreateRepositories: boolean; - readonly viewerCanCreateTeams: boolean; - readonly viewerIsAMember: boolean; -} - -interface OrganizationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - - readonly anyPinnableItems: (variables: { - type?: Variable<"type"> | PinnableItemType; - }) => Field< - "anyPinnableItems", - [Argument<"type", Variable<"type"> | PinnableItemType>] - >; - - /** - * @description Audit log entries of the organization - */ - - readonly auditLog: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | AuditLogOrder; - query?: Variable<"query"> | string; - }, - select: (t: OrganizationAuditEntryConnectionSelector) => T - ) => Field< - "auditLog", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | AuditLogOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A URL pointing to the organization's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The organization's public profile description. - */ - - readonly description: () => Field<"description">; - - /** - * @description The organization's public profile description rendered to HTML. - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - /** - * @description The organization's public email. - */ - - readonly email: () => Field<"email">; - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - - readonly hasSponsorsListing: () => Field<"hasSponsorsListing">; - - readonly id: () => Field<"id">; - - /** - * @description The interaction ability settings for this organization. - */ - - readonly interactionAbility: >( - select: (t: RepositoryInteractionAbilitySelector) => T - ) => Field<"interactionAbility", never, SelectionSet>; - - /** - * @description The setting value for whether the organization has an IP allow list enabled. - */ - - readonly ipAllowListEnabledSetting: () => Field<"ipAllowListEnabledSetting">; - - /** - * @description The IP addresses that are allowed to access resources owned by the organization. - */ - - readonly ipAllowListEntries: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IpAllowListEntryOrder; - }, - select: (t: IpAllowListEntryConnectionSelector) => T - ) => Field< - "ipAllowListEntries", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IpAllowListEntryOrder> - ], - SelectionSet - >; - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - - readonly isSponsoringViewer: () => Field<"isSponsoringViewer">; - - /** - * @description Whether the organization has verified its profile email and website, always false on Enterprise. - */ - - readonly isVerified: () => Field<"isVerified">; - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - readonly itemShowcase: >( - select: (t: ProfileItemShowcaseSelector) => T - ) => Field<"itemShowcase", never, SelectionSet>; - - /** - * @description The organization's public profile location. - */ - - readonly location: () => Field<"location">; - - /** - * @description The organization's login name. - */ - - readonly login: () => Field<"login">; - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - readonly memberStatuses: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | UserStatusOrder; - }, - select: (t: UserStatusConnectionSelector) => T - ) => Field< - "memberStatuses", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | UserStatusOrder> - ], - SelectionSet - >; - - /** - * @description A list of users who are members of this organization. - */ - - readonly membersWithRole: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: OrganizationMemberConnectionSelector) => T - ) => Field< - "membersWithRole", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The organization's public profile name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The HTTP path creating a new team - */ - - readonly newTeamResourcePath: () => Field<"newTeamResourcePath">; - - /** - * @description The HTTP URL creating a new team - */ - - readonly newTeamUrl: () => Field<"newTeamUrl">; - - /** - * @description The billing email for the organization. - */ - - readonly organizationBillingEmail: () => Field<"organizationBillingEmail">; - - /** - * @description A list of packages under the owner. - */ - - readonly packages: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - names?: Variable<"names"> | string; - orderBy?: Variable<"orderBy"> | PackageOrder; - packageType?: Variable<"packageType"> | PackageType; - repositoryId?: Variable<"repositoryId"> | string; - }, - select: (t: PackageConnectionSelector) => T - ) => Field< - "packages", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"names", Variable<"names"> | string>, - Argument<"orderBy", Variable<"orderBy"> | PackageOrder>, - Argument<"packageType", Variable<"packageType"> | PackageType>, - Argument<"repositoryId", Variable<"repositoryId"> | string> - ], - SelectionSet - >; - - /** - * @description A list of users who have been invited to join this organization. - */ - - readonly pendingMembers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "pendingMembers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - readonly pinnableItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnableItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - readonly pinnedItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnedItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - - readonly pinnedItemsRemaining: () => Field<"pinnedItemsRemaining">; - - /** - * @description Find project by number. - */ - - readonly project: >( - variables: { number?: Variable<"number"> | number }, - select: (t: ProjectSelector) => T - ) => Field< - "project", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of projects under the owner. - */ - - readonly projects: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ProjectOrder; - search?: Variable<"search"> | string; - states?: Variable<"states"> | ProjectState; - }, - select: (t: ProjectConnectionSelector) => T - ) => Field< - "projects", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ProjectOrder>, - Argument<"search", Variable<"search"> | string>, - Argument<"states", Variable<"states"> | ProjectState> - ], - SelectionSet - >; - - /** - * @description The HTTP path listing organization's projects - */ - - readonly projectsResourcePath: () => Field<"projectsResourcePath">; - - /** - * @description The HTTP URL listing organization's projects - */ - - readonly projectsUrl: () => Field<"projectsUrl">; - - /** - * @description A list of repositories that the user owns. - */ - - readonly repositories: >( - variables: { - affiliations?: Variable<"affiliations"> | RepositoryAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isFork?: Variable<"isFork"> | boolean; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - ownerAffiliations?: Variable<"ownerAffiliations"> | RepositoryAffiliation; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument< - "affiliations", - Variable<"affiliations"> | RepositoryAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isFork", Variable<"isFork"> | boolean>, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument< - "ownerAffiliations", - Variable<"ownerAffiliations"> | RepositoryAffiliation - >, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description Find Repository. - */ - - readonly repository: >( - variables: { name?: Variable<"name"> | string }, - select: (t: RepositorySelector) => T - ) => Field< - "repository", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description When true the organization requires all members, billing managers, and outside -collaborators to enable two-factor authentication. - */ - - readonly requiresTwoFactorAuthentication: () => Field<"requiresTwoFactorAuthentication">; - - /** - * @description The HTTP path for this organization. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The Organization's SAML identity providers - */ - - readonly samlIdentityProvider: >( - select: (t: OrganizationIdentityProviderSelector) => T - ) => Field<"samlIdentityProvider", never, SelectionSet>; - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - readonly sponsorsListing: >( - select: (t: SponsorsListingSelector) => T - ) => Field<"sponsorsListing", never, SelectionSet>; - - /** - * @description This object's sponsorships as the maintainer. - */ - - readonly sponsorshipsAsMaintainer: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - includePrivate?: Variable<"includePrivate"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsMaintainer", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"includePrivate", Variable<"includePrivate"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description This object's sponsorships as the sponsor. - */ - - readonly sponsorshipsAsSponsor: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsSponsor", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description Find an organization's team by its slug. - */ - - readonly team: >( - variables: { slug?: Variable<"slug"> | string }, - select: (t: TeamSelector) => T - ) => Field< - "team", - [Argument<"slug", Variable<"slug"> | string>], - SelectionSet - >; - - /** - * @description A list of teams in this organization. - */ - - readonly teams: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - ldapMapped?: Variable<"ldapMapped"> | boolean; - orderBy?: Variable<"orderBy"> | TeamOrder; - privacy?: Variable<"privacy"> | TeamPrivacy; - query?: Variable<"query"> | string; - role?: Variable<"role"> | TeamRole; - rootTeamsOnly?: Variable<"rootTeamsOnly"> | boolean; - userLogins?: Variable<"userLogins"> | string; - }, - select: (t: TeamConnectionSelector) => T - ) => Field< - "teams", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"ldapMapped", Variable<"ldapMapped"> | boolean>, - Argument<"orderBy", Variable<"orderBy"> | TeamOrder>, - Argument<"privacy", Variable<"privacy"> | TeamPrivacy>, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | TeamRole>, - Argument<"rootTeamsOnly", Variable<"rootTeamsOnly"> | boolean>, - Argument<"userLogins", Variable<"userLogins"> | string> - ], - SelectionSet - >; - - /** - * @description The HTTP path listing organization's teams - */ - - readonly teamsResourcePath: () => Field<"teamsResourcePath">; - - /** - * @description The HTTP URL listing organization's teams - */ - - readonly teamsUrl: () => Field<"teamsUrl">; - - /** - * @description The organization's Twitter username. - */ - - readonly twitterUsername: () => Field<"twitterUsername">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this organization. - */ - - readonly url: () => Field<"url">; - - /** - * @description Organization is adminable by the viewer. - */ - - readonly viewerCanAdminister: () => Field<"viewerCanAdminister">; - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - - readonly viewerCanChangePinnedItems: () => Field<"viewerCanChangePinnedItems">; - - /** - * @description Can the current viewer create new projects on this owner. - */ - - readonly viewerCanCreateProjects: () => Field<"viewerCanCreateProjects">; - - /** - * @description Viewer can create repositories on this organization - */ - - readonly viewerCanCreateRepositories: () => Field<"viewerCanCreateRepositories">; - - /** - * @description Viewer can create teams on this organization. - */ - - readonly viewerCanCreateTeams: () => Field<"viewerCanCreateTeams">; - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - - readonly viewerCanSponsor: () => Field<"viewerCanSponsor">; - - /** - * @description Viewer is an active member of this organization. - */ - - readonly viewerIsAMember: () => Field<"viewerIsAMember">; - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - - readonly viewerIsSponsoring: () => Field<"viewerIsSponsoring">; - - /** - * @description The organization's public profile URL. - */ - - readonly websiteUrl: () => Field<"websiteUrl">; -} - -export const isOrganization = ( - object: Record -): object is Partial => { - return object.__typename === "Organization"; -}; - -export const Organization: OrganizationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - anyPinnableItems: (variables) => new Field("anyPinnableItems"), - - /** - * @description Audit log entries of the organization - */ - - auditLog: (variables, select) => - new Field( - "auditLog", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationAuditEntryConnection)) - ), - - /** - * @description A URL pointing to the organization's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The organization's public profile description. - */ - description: () => new Field("description"), - - /** - * @description The organization's public profile description rendered to HTML. - */ - descriptionHTML: () => new Field("descriptionHTML"), - - /** - * @description The organization's public email. - */ - email: () => new Field("email"), - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - hasSponsorsListing: () => new Field("hasSponsorsListing"), - id: () => new Field("id"), - - /** - * @description The interaction ability settings for this organization. - */ - - interactionAbility: (select) => - new Field( - "interactionAbility", - undefined as never, - new SelectionSet(select(RepositoryInteractionAbility)) - ), - - /** - * @description The setting value for whether the organization has an IP allow list enabled. - */ - ipAllowListEnabledSetting: () => new Field("ipAllowListEnabledSetting"), - - /** - * @description The IP addresses that are allowed to access resources owned by the organization. - */ - - ipAllowListEntries: (variables, select) => - new Field( - "ipAllowListEntries", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(IpAllowListEntryConnection)) - ), - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - isSponsoringViewer: () => new Field("isSponsoringViewer"), - - /** - * @description Whether the organization has verified its profile email and website, always false on Enterprise. - */ - isVerified: () => new Field("isVerified"), - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - itemShowcase: (select) => - new Field( - "itemShowcase", - undefined as never, - new SelectionSet(select(ProfileItemShowcase)) - ), - - /** - * @description The organization's public profile location. - */ - location: () => new Field("location"), - - /** - * @description The organization's login name. - */ - login: () => new Field("login"), - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - memberStatuses: (variables, select) => - new Field( - "memberStatuses", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(UserStatusConnection)) - ), - - /** - * @description A list of users who are members of this organization. - */ - - membersWithRole: (variables, select) => - new Field( - "membersWithRole", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationMemberConnection)) - ), - - /** - * @description The organization's public profile name. - */ - name: () => new Field("name"), - - /** - * @description The HTTP path creating a new team - */ - newTeamResourcePath: () => new Field("newTeamResourcePath"), - - /** - * @description The HTTP URL creating a new team - */ - newTeamUrl: () => new Field("newTeamUrl"), - - /** - * @description The billing email for the organization. - */ - organizationBillingEmail: () => new Field("organizationBillingEmail"), - - /** - * @description A list of packages under the owner. - */ - - packages: (variables, select) => - new Field( - "packages", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("names", variables.names, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("packageType", variables.packageType, _ENUM_VALUES), - new Argument("repositoryId", variables.repositoryId, _ENUM_VALUES), - ], - new SelectionSet(select(PackageConnection)) - ), - - /** - * @description A list of users who have been invited to join this organization. - */ - - pendingMembers: (variables, select) => - new Field( - "pendingMembers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - pinnableItems: (variables, select) => - new Field( - "pinnableItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - pinnedItems: (variables, select) => - new Field( - "pinnedItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - pinnedItemsRemaining: () => new Field("pinnedItemsRemaining"), - - /** - * @description Find project by number. - */ - - project: (variables, select) => - new Field( - "project", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Project)) - ), - - /** - * @description A list of projects under the owner. - */ - - projects: (variables, select) => - new Field( - "projects", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("search", variables.search, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectConnection)) - ), - - /** - * @description The HTTP path listing organization's projects - */ - projectsResourcePath: () => new Field("projectsResourcePath"), - - /** - * @description The HTTP URL listing organization's projects - */ - projectsUrl: () => new Field("projectsUrl"), - - /** - * @description A list of repositories that the user owns. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("affiliations", variables.affiliations, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isFork", variables.isFork, _ENUM_VALUES), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "ownerAffiliations", - variables.ownerAffiliations, - _ENUM_VALUES - ), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description Find Repository. - */ - - repository: (variables, select) => - new Field( - "repository", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Repository)) - ), - - /** - * @description When true the organization requires all members, billing managers, and outside -collaborators to enable two-factor authentication. - */ - requiresTwoFactorAuthentication: () => - new Field("requiresTwoFactorAuthentication"), - - /** - * @description The HTTP path for this organization. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The Organization's SAML identity providers - */ - - samlIdentityProvider: (select) => - new Field( - "samlIdentityProvider", - undefined as never, - new SelectionSet(select(OrganizationIdentityProvider)) - ), - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - sponsorsListing: (select) => - new Field( - "sponsorsListing", - undefined as never, - new SelectionSet(select(SponsorsListing)) - ), - - /** - * @description This object's sponsorships as the maintainer. - */ - - sponsorshipsAsMaintainer: (variables, select) => - new Field( - "sponsorshipsAsMaintainer", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("includePrivate", variables.includePrivate, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description This object's sponsorships as the sponsor. - */ - - sponsorshipsAsSponsor: (variables, select) => - new Field( - "sponsorshipsAsSponsor", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description Find an organization's team by its slug. - */ - - team: (variables, select) => - new Field( - "team", - [new Argument("slug", variables.slug, _ENUM_VALUES)], - new SelectionSet(select(Team)) - ), - - /** - * @description A list of teams in this organization. - */ - - teams: (variables, select) => - new Field( - "teams", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("ldapMapped", variables.ldapMapped, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - new Argument("rootTeamsOnly", variables.rootTeamsOnly, _ENUM_VALUES), - new Argument("userLogins", variables.userLogins, _ENUM_VALUES), - ], - new SelectionSet(select(TeamConnection)) - ), - - /** - * @description The HTTP path listing organization's teams - */ - teamsResourcePath: () => new Field("teamsResourcePath"), - - /** - * @description The HTTP URL listing organization's teams - */ - teamsUrl: () => new Field("teamsUrl"), - - /** - * @description The organization's Twitter username. - */ - twitterUsername: () => new Field("twitterUsername"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this organization. - */ - url: () => new Field("url"), - - /** - * @description Organization is adminable by the viewer. - */ - viewerCanAdminister: () => new Field("viewerCanAdminister"), - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - viewerCanChangePinnedItems: () => new Field("viewerCanChangePinnedItems"), - - /** - * @description Can the current viewer create new projects on this owner. - */ - viewerCanCreateProjects: () => new Field("viewerCanCreateProjects"), - - /** - * @description Viewer can create repositories on this organization - */ - viewerCanCreateRepositories: () => new Field("viewerCanCreateRepositories"), - - /** - * @description Viewer can create teams on this organization. - */ - viewerCanCreateTeams: () => new Field("viewerCanCreateTeams"), - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - viewerCanSponsor: () => new Field("viewerCanSponsor"), - - /** - * @description Viewer is an active member of this organization. - */ - viewerIsAMember: () => new Field("viewerIsAMember"), - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - viewerIsSponsoring: () => new Field("viewerIsSponsoring"), - - /** - * @description The organization's public profile URL. - */ - websiteUrl: () => new Field("websiteUrl"), -}; - -export interface IOrganizationAuditEntryConnection { - readonly __typename: "OrganizationAuditEntryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface OrganizationAuditEntryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: OrganizationAuditEntryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: OrganizationAuditEntrySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const OrganizationAuditEntryConnection: OrganizationAuditEntryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(OrganizationAuditEntryEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(OrganizationAuditEntry)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IOrganizationAuditEntryData { - readonly __typename: string; - readonly organization: IOrganization | null; - readonly organizationName: string | null; - readonly organizationResourcePath: unknown | null; - readonly organizationUrl: unknown | null; -} - -interface OrganizationAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - readonly on: < - T extends Array, - F extends - | "MembersCanDeleteReposClearAuditEntry" - | "MembersCanDeleteReposDisableAuditEntry" - | "MembersCanDeleteReposEnableAuditEntry" - | "OauthApplicationCreateAuditEntry" - | "OrgAddBillingManagerAuditEntry" - | "OrgAddMemberAuditEntry" - | "OrgBlockUserAuditEntry" - | "OrgConfigDisableCollaboratorsOnlyAuditEntry" - | "OrgConfigEnableCollaboratorsOnlyAuditEntry" - | "OrgCreateAuditEntry" - | "OrgDisableOauthAppRestrictionsAuditEntry" - | "OrgDisableSamlAuditEntry" - | "OrgDisableTwoFactorRequirementAuditEntry" - | "OrgEnableOauthAppRestrictionsAuditEntry" - | "OrgEnableSamlAuditEntry" - | "OrgEnableTwoFactorRequirementAuditEntry" - | "OrgInviteMemberAuditEntry" - | "OrgInviteToBusinessAuditEntry" - | "OrgOauthAppAccessApprovedAuditEntry" - | "OrgOauthAppAccessDeniedAuditEntry" - | "OrgOauthAppAccessRequestedAuditEntry" - | "OrgRemoveBillingManagerAuditEntry" - | "OrgRemoveMemberAuditEntry" - | "OrgRemoveOutsideCollaboratorAuditEntry" - | "OrgRestoreMemberAuditEntry" - | "OrgRestoreMemberMembershipOrganizationAuditEntryData" - | "OrgUnblockUserAuditEntry" - | "OrgUpdateDefaultRepositoryPermissionAuditEntry" - | "OrgUpdateMemberAuditEntry" - | "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - | "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "RepoAccessAuditEntry" - | "RepoAddMemberAuditEntry" - | "RepoAddTopicAuditEntry" - | "RepoArchivedAuditEntry" - | "RepoChangeMergeSettingAuditEntry" - | "RepoConfigDisableAnonymousGitAccessAuditEntry" - | "RepoConfigDisableCollaboratorsOnlyAuditEntry" - | "RepoConfigDisableContributorsOnlyAuditEntry" - | "RepoConfigDisableSockpuppetDisallowedAuditEntry" - | "RepoConfigEnableAnonymousGitAccessAuditEntry" - | "RepoConfigEnableCollaboratorsOnlyAuditEntry" - | "RepoConfigEnableContributorsOnlyAuditEntry" - | "RepoConfigEnableSockpuppetDisallowedAuditEntry" - | "RepoConfigLockAnonymousGitAccessAuditEntry" - | "RepoConfigUnlockAnonymousGitAccessAuditEntry" - | "RepoCreateAuditEntry" - | "RepoDestroyAuditEntry" - | "RepoRemoveMemberAuditEntry" - | "RepoRemoveTopicAuditEntry" - | "RepositoryVisibilityChangeDisableAuditEntry" - | "RepositoryVisibilityChangeEnableAuditEntry" - | "TeamAddMemberAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamChangeParentTeamAuditEntry" - | "TeamRemoveMemberAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - >( - type: F, - select: ( - t: F extends "MembersCanDeleteReposClearAuditEntry" - ? MembersCanDeleteReposClearAuditEntrySelector - : F extends "MembersCanDeleteReposDisableAuditEntry" - ? MembersCanDeleteReposDisableAuditEntrySelector - : F extends "MembersCanDeleteReposEnableAuditEntry" - ? MembersCanDeleteReposEnableAuditEntrySelector - : F extends "OauthApplicationCreateAuditEntry" - ? OauthApplicationCreateAuditEntrySelector - : F extends "OrgAddBillingManagerAuditEntry" - ? OrgAddBillingManagerAuditEntrySelector - : F extends "OrgAddMemberAuditEntry" - ? OrgAddMemberAuditEntrySelector - : F extends "OrgBlockUserAuditEntry" - ? OrgBlockUserAuditEntrySelector - : F extends "OrgConfigDisableCollaboratorsOnlyAuditEntry" - ? OrgConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgConfigEnableCollaboratorsOnlyAuditEntry" - ? OrgConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "OrgCreateAuditEntry" - ? OrgCreateAuditEntrySelector - : F extends "OrgDisableOauthAppRestrictionsAuditEntry" - ? OrgDisableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgDisableSamlAuditEntry" - ? OrgDisableSamlAuditEntrySelector - : F extends "OrgDisableTwoFactorRequirementAuditEntry" - ? OrgDisableTwoFactorRequirementAuditEntrySelector - : F extends "OrgEnableOauthAppRestrictionsAuditEntry" - ? OrgEnableOauthAppRestrictionsAuditEntrySelector - : F extends "OrgEnableSamlAuditEntry" - ? OrgEnableSamlAuditEntrySelector - : F extends "OrgEnableTwoFactorRequirementAuditEntry" - ? OrgEnableTwoFactorRequirementAuditEntrySelector - : F extends "OrgInviteMemberAuditEntry" - ? OrgInviteMemberAuditEntrySelector - : F extends "OrgInviteToBusinessAuditEntry" - ? OrgInviteToBusinessAuditEntrySelector - : F extends "OrgOauthAppAccessApprovedAuditEntry" - ? OrgOauthAppAccessApprovedAuditEntrySelector - : F extends "OrgOauthAppAccessDeniedAuditEntry" - ? OrgOauthAppAccessDeniedAuditEntrySelector - : F extends "OrgOauthAppAccessRequestedAuditEntry" - ? OrgOauthAppAccessRequestedAuditEntrySelector - : F extends "OrgRemoveBillingManagerAuditEntry" - ? OrgRemoveBillingManagerAuditEntrySelector - : F extends "OrgRemoveMemberAuditEntry" - ? OrgRemoveMemberAuditEntrySelector - : F extends "OrgRemoveOutsideCollaboratorAuditEntry" - ? OrgRemoveOutsideCollaboratorAuditEntrySelector - : F extends "OrgRestoreMemberAuditEntry" - ? OrgRestoreMemberAuditEntrySelector - : F extends "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ? OrgRestoreMemberMembershipOrganizationAuditEntryDataSelector - : F extends "OrgUnblockUserAuditEntry" - ? OrgUnblockUserAuditEntrySelector - : F extends "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ? OrgUpdateDefaultRepositoryPermissionAuditEntrySelector - : F extends "OrgUpdateMemberAuditEntry" - ? OrgUpdateMemberAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryCreationPermissionAuditEntrySelector - : F extends "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ? OrgUpdateMemberRepositoryInvitationPermissionAuditEntrySelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "RepoAccessAuditEntry" - ? RepoAccessAuditEntrySelector - : F extends "RepoAddMemberAuditEntry" - ? RepoAddMemberAuditEntrySelector - : F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoArchivedAuditEntry" - ? RepoArchivedAuditEntrySelector - : F extends "RepoChangeMergeSettingAuditEntry" - ? RepoChangeMergeSettingAuditEntrySelector - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? RepoConfigDisableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? RepoConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? RepoConfigDisableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? RepoConfigDisableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? RepoConfigEnableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? RepoConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? RepoConfigEnableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? RepoConfigEnableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? RepoConfigLockAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? RepoConfigUnlockAnonymousGitAccessAuditEntrySelector - : F extends "RepoCreateAuditEntry" - ? RepoCreateAuditEntrySelector - : F extends "RepoDestroyAuditEntry" - ? RepoDestroyAuditEntrySelector - : F extends "RepoRemoveMemberAuditEntry" - ? RepoRemoveMemberAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : F extends "RepositoryVisibilityChangeDisableAuditEntry" - ? RepositoryVisibilityChangeDisableAuditEntrySelector - : F extends "RepositoryVisibilityChangeEnableAuditEntry" - ? RepositoryVisibilityChangeEnableAuditEntrySelector - : F extends "TeamAddMemberAuditEntry" - ? TeamAddMemberAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamChangeParentTeamAuditEntry" - ? TeamChangeParentTeamAuditEntrySelector - : F extends "TeamRemoveMemberAuditEntry" - ? TeamRemoveMemberAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const OrganizationAuditEntryData: OrganizationAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - on: (type, select) => { - switch (type) { - case "MembersCanDeleteReposClearAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposClearAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposClearAuditEntry as any)) - ); - } - - case "MembersCanDeleteReposDisableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposDisableAuditEntry") as any, - new SelectionSet( - select(MembersCanDeleteReposDisableAuditEntry as any) - ) - ); - } - - case "MembersCanDeleteReposEnableAuditEntry": { - return new InlineFragment( - new NamedType("MembersCanDeleteReposEnableAuditEntry") as any, - new SelectionSet(select(MembersCanDeleteReposEnableAuditEntry as any)) - ); - } - - case "OauthApplicationCreateAuditEntry": { - return new InlineFragment( - new NamedType("OauthApplicationCreateAuditEntry") as any, - new SelectionSet(select(OauthApplicationCreateAuditEntry as any)) - ); - } - - case "OrgAddBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgAddBillingManagerAuditEntry as any)) - ); - } - - case "OrgAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgAddMemberAuditEntry") as any, - new SelectionSet(select(OrgAddMemberAuditEntry as any)) - ); - } - - case "OrgBlockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgBlockUserAuditEntry") as any, - new SelectionSet(select(OrgBlockUserAuditEntry as any)) - ); - } - - case "OrgConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("OrgConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(OrgConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "OrgCreateAuditEntry": { - return new InlineFragment( - new NamedType("OrgCreateAuditEntry") as any, - new SelectionSet(select(OrgCreateAuditEntry as any)) - ); - } - - case "OrgDisableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgDisableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgDisableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableSamlAuditEntry") as any, - new SelectionSet(select(OrgDisableSamlAuditEntry as any)) - ); - } - - case "OrgDisableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgDisableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgDisableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgEnableOauthAppRestrictionsAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableOauthAppRestrictionsAuditEntry") as any, - new SelectionSet( - select(OrgEnableOauthAppRestrictionsAuditEntry as any) - ) - ); - } - - case "OrgEnableSamlAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableSamlAuditEntry") as any, - new SelectionSet(select(OrgEnableSamlAuditEntry as any)) - ); - } - - case "OrgEnableTwoFactorRequirementAuditEntry": { - return new InlineFragment( - new NamedType("OrgEnableTwoFactorRequirementAuditEntry") as any, - new SelectionSet( - select(OrgEnableTwoFactorRequirementAuditEntry as any) - ) - ); - } - - case "OrgInviteMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteMemberAuditEntry") as any, - new SelectionSet(select(OrgInviteMemberAuditEntry as any)) - ); - } - - case "OrgInviteToBusinessAuditEntry": { - return new InlineFragment( - new NamedType("OrgInviteToBusinessAuditEntry") as any, - new SelectionSet(select(OrgInviteToBusinessAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessApprovedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessApprovedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessApprovedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessDeniedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessDeniedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessDeniedAuditEntry as any)) - ); - } - - case "OrgOauthAppAccessRequestedAuditEntry": { - return new InlineFragment( - new NamedType("OrgOauthAppAccessRequestedAuditEntry") as any, - new SelectionSet(select(OrgOauthAppAccessRequestedAuditEntry as any)) - ); - } - - case "OrgRemoveBillingManagerAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveBillingManagerAuditEntry") as any, - new SelectionSet(select(OrgRemoveBillingManagerAuditEntry as any)) - ); - } - - case "OrgRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveMemberAuditEntry") as any, - new SelectionSet(select(OrgRemoveMemberAuditEntry as any)) - ); - } - - case "OrgRemoveOutsideCollaboratorAuditEntry": { - return new InlineFragment( - new NamedType("OrgRemoveOutsideCollaboratorAuditEntry") as any, - new SelectionSet( - select(OrgRemoveOutsideCollaboratorAuditEntry as any) - ) - ); - } - - case "OrgRestoreMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgRestoreMemberAuditEntry") as any, - new SelectionSet(select(OrgRestoreMemberAuditEntry as any)) - ); - } - - case "OrgRestoreMemberMembershipOrganizationAuditEntryData": { - return new InlineFragment( - new NamedType( - "OrgRestoreMemberMembershipOrganizationAuditEntryData" - ) as any, - new SelectionSet( - select(OrgRestoreMemberMembershipOrganizationAuditEntryData as any) - ) - ); - } - - case "OrgUnblockUserAuditEntry": { - return new InlineFragment( - new NamedType("OrgUnblockUserAuditEntry") as any, - new SelectionSet(select(OrgUnblockUserAuditEntry as any)) - ); - } - - case "OrgUpdateDefaultRepositoryPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateDefaultRepositoryPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateDefaultRepositoryPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberAuditEntry": { - return new InlineFragment( - new NamedType("OrgUpdateMemberAuditEntry") as any, - new SelectionSet(select(OrgUpdateMemberAuditEntry as any)) - ); - } - - case "OrgUpdateMemberRepositoryCreationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryCreationPermissionAuditEntry" - ) as any, - new SelectionSet( - select(OrgUpdateMemberRepositoryCreationPermissionAuditEntry as any) - ) - ); - } - - case "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry": { - return new InlineFragment( - new NamedType( - "OrgUpdateMemberRepositoryInvitationPermissionAuditEntry" - ) as any, - new SelectionSet( - select( - OrgUpdateMemberRepositoryInvitationPermissionAuditEntry as any - ) - ) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "RepoAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoAccessAuditEntry") as any, - new SelectionSet(select(RepoAccessAuditEntry as any)) - ); - } - - case "RepoAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddMemberAuditEntry") as any, - new SelectionSet(select(RepoAddMemberAuditEntry as any)) - ); - } - - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoArchivedAuditEntry": { - return new InlineFragment( - new NamedType("RepoArchivedAuditEntry") as any, - new SelectionSet(select(RepoArchivedAuditEntry as any)) - ); - } - - case "RepoChangeMergeSettingAuditEntry": { - return new InlineFragment( - new NamedType("RepoChangeMergeSettingAuditEntry") as any, - new SelectionSet(select(RepoChangeMergeSettingAuditEntry as any)) - ); - } - - case "RepoConfigDisableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigDisableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigEnableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigLockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigLockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigLockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigUnlockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigUnlockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoCreateAuditEntry": { - return new InlineFragment( - new NamedType("RepoCreateAuditEntry") as any, - new SelectionSet(select(RepoCreateAuditEntry as any)) - ); - } - - case "RepoDestroyAuditEntry": { - return new InlineFragment( - new NamedType("RepoDestroyAuditEntry") as any, - new SelectionSet(select(RepoDestroyAuditEntry as any)) - ); - } - - case "RepoRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveMemberAuditEntry") as any, - new SelectionSet(select(RepoRemoveMemberAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - case "RepositoryVisibilityChangeDisableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeDisableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeDisableAuditEntry as any) - ) - ); - } - - case "RepositoryVisibilityChangeEnableAuditEntry": { - return new InlineFragment( - new NamedType("RepositoryVisibilityChangeEnableAuditEntry") as any, - new SelectionSet( - select(RepositoryVisibilityChangeEnableAuditEntry as any) - ) - ); - } - - case "TeamAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddMemberAuditEntry") as any, - new SelectionSet(select(TeamAddMemberAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamChangeParentTeamAuditEntry": { - return new InlineFragment( - new NamedType("TeamChangeParentTeamAuditEntry") as any, - new SelectionSet(select(TeamChangeParentTeamAuditEntry as any)) - ); - } - - case "TeamRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveMemberAuditEntry") as any, - new SelectionSet(select(TeamRemoveMemberAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "OrganizationAuditEntryData", - }); - } - }, -}; - -export interface IOrganizationAuditEntryEdge { - readonly __typename: "OrganizationAuditEntryEdge"; - readonly cursor: string; - readonly node: IOrganizationAuditEntry | null; -} - -interface OrganizationAuditEntryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: OrganizationAuditEntrySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const OrganizationAuditEntryEdge: OrganizationAuditEntryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(OrganizationAuditEntry)) - ), -}; - -export interface IOrganizationConnection { - readonly __typename: "OrganizationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface OrganizationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: OrganizationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: OrganizationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const OrganizationConnection: OrganizationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(OrganizationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IOrganizationEdge { - readonly __typename: "OrganizationEdge"; - readonly cursor: string; - readonly node: IOrganization | null; -} - -interface OrganizationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: OrganizationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const OrganizationEdge: OrganizationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(Organization)) - ), -}; - -export interface IOrganizationIdentityProvider extends INode { - readonly __typename: "OrganizationIdentityProvider"; - readonly digestMethod: unknown | null; - readonly externalIdentities: IExternalIdentityConnection; - readonly idpCertificate: unknown | null; - readonly issuer: string | null; - readonly organization: IOrganization | null; - readonly signatureMethod: unknown | null; - readonly ssoUrl: unknown | null; -} - -interface OrganizationIdentityProviderSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The digest algorithm used to sign SAML requests for the Identity Provider. - */ - - readonly digestMethod: () => Field<"digestMethod">; - - /** - * @description External Identities provisioned by this Identity Provider - */ - - readonly externalIdentities: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ExternalIdentityConnectionSelector) => T - ) => Field< - "externalIdentities", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The x509 certificate used by the Identity Provder to sign assertions and responses. - */ - - readonly idpCertificate: () => Field<"idpCertificate">; - - /** - * @description The Issuer Entity ID for the SAML Identity Provider - */ - - readonly issuer: () => Field<"issuer">; - - /** - * @description Organization this Identity Provider belongs to - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The signature algorithm used to sign SAML requests for the Identity Provider. - */ - - readonly signatureMethod: () => Field<"signatureMethod">; - - /** - * @description The URL endpoint for the Identity Provider's SAML SSO. - */ - - readonly ssoUrl: () => Field<"ssoUrl">; -} - -export const isOrganizationIdentityProvider = ( - object: Record -): object is Partial => { - return object.__typename === "OrganizationIdentityProvider"; -}; - -export const OrganizationIdentityProvider: OrganizationIdentityProviderSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The digest algorithm used to sign SAML requests for the Identity Provider. - */ - digestMethod: () => new Field("digestMethod"), - - /** - * @description External Identities provisioned by this Identity Provider - */ - - externalIdentities: (variables, select) => - new Field( - "externalIdentities", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ExternalIdentityConnection)) - ), - - id: () => new Field("id"), - - /** - * @description The x509 certificate used by the Identity Provder to sign assertions and responses. - */ - idpCertificate: () => new Field("idpCertificate"), - - /** - * @description The Issuer Entity ID for the SAML Identity Provider - */ - issuer: () => new Field("issuer"), - - /** - * @description Organization this Identity Provider belongs to - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The signature algorithm used to sign SAML requests for the Identity Provider. - */ - signatureMethod: () => new Field("signatureMethod"), - - /** - * @description The URL endpoint for the Identity Provider's SAML SSO. - */ - ssoUrl: () => new Field("ssoUrl"), -}; - -export interface IOrganizationInvitation extends INode { - readonly __typename: "OrganizationInvitation"; - readonly createdAt: unknown; - readonly email: string | null; - readonly invitationType: OrganizationInvitationType; - readonly invitee: IUser | null; - readonly inviter: IUser; - readonly organization: IOrganization; - readonly role: OrganizationInvitationRole; -} - -interface OrganizationInvitationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The email address of the user invited to the organization. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description The type of invitation that was sent (e.g. email, user). - */ - - readonly invitationType: () => Field<"invitationType">; - - /** - * @description The user who was invited to the organization. - */ - - readonly invitee: >( - select: (t: UserSelector) => T - ) => Field<"invitee", never, SelectionSet>; - - /** - * @description The user who created the invitation. - */ - - readonly inviter: >( - select: (t: UserSelector) => T - ) => Field<"inviter", never, SelectionSet>; - - /** - * @description The organization the invite is for - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The user's pending role in the organization (e.g. member, owner). - */ - - readonly role: () => Field<"role">; -} - -export const isOrganizationInvitation = ( - object: Record -): object is Partial => { - return object.__typename === "OrganizationInvitation"; -}; - -export const OrganizationInvitation: OrganizationInvitationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The email address of the user invited to the organization. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description The type of invitation that was sent (e.g. email, user). - */ - invitationType: () => new Field("invitationType"), - - /** - * @description The user who was invited to the organization. - */ - - invitee: (select) => - new Field("invitee", undefined as never, new SelectionSet(select(User))), - - /** - * @description The user who created the invitation. - */ - - inviter: (select) => - new Field("inviter", undefined as never, new SelectionSet(select(User))), - - /** - * @description The organization the invite is for - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The user's pending role in the organization (e.g. member, owner). - */ - role: () => new Field("role"), -}; - -export interface IOrganizationInvitationConnection { - readonly __typename: "OrganizationInvitationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface OrganizationInvitationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: OrganizationInvitationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const OrganizationInvitationConnection: OrganizationInvitationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(OrganizationInvitationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IOrganizationInvitationEdge { - readonly __typename: "OrganizationInvitationEdge"; - readonly cursor: string; - readonly node: IOrganizationInvitation | null; -} - -interface OrganizationInvitationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: OrganizationInvitationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const OrganizationInvitationEdge: OrganizationInvitationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(OrganizationInvitation)) - ), -}; - -export interface IOrganizationMemberConnection { - readonly __typename: "OrganizationMemberConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface OrganizationMemberConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: OrganizationMemberEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const OrganizationMemberConnection: OrganizationMemberConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(OrganizationMemberEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IOrganizationMemberEdge { - readonly __typename: "OrganizationMemberEdge"; - readonly cursor: string; - readonly hasTwoFactorEnabled: boolean | null; - readonly node: IUser | null; - readonly role: OrganizationMemberRole | null; -} - -interface OrganizationMemberEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. - */ - - readonly hasTwoFactorEnabled: () => Field<"hasTwoFactorEnabled">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The role this user has in the organization. - */ - - readonly role: () => Field<"role">; -} - -export const OrganizationMemberEdge: OrganizationMemberEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description Whether the organization member has two factor enabled or not. Returns null if information is not available to viewer. - */ - hasTwoFactorEnabled: () => new Field("hasTwoFactorEnabled"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The role this user has in the organization. - */ - role: () => new Field("role"), -}; - -export interface IOrganizationTeamsHovercardContext extends IHovercardContext { - readonly __typename: "OrganizationTeamsHovercardContext"; - readonly relevantTeams: ITeamConnection; - readonly teamsResourcePath: unknown; - readonly teamsUrl: unknown; - readonly totalTeamCount: number; -} - -interface OrganizationTeamsHovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; - - /** - * @description Teams in this organization the user is a member of that are relevant - */ - - readonly relevantTeams: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: TeamConnectionSelector) => T - ) => Field< - "relevantTeams", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The path for the full team list for this user - */ - - readonly teamsResourcePath: () => Field<"teamsResourcePath">; - - /** - * @description The URL for the full team list for this user - */ - - readonly teamsUrl: () => Field<"teamsUrl">; - - /** - * @description The total number of teams the user is on in the organization - */ - - readonly totalTeamCount: () => Field<"totalTeamCount">; -} - -export const isOrganizationTeamsHovercardContext = ( - object: Record -): object is Partial => { - return object.__typename === "OrganizationTeamsHovercardContext"; -}; - -export const OrganizationTeamsHovercardContext: OrganizationTeamsHovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), - - /** - * @description Teams in this organization the user is a member of that are relevant - */ - - relevantTeams: (variables, select) => - new Field( - "relevantTeams", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(TeamConnection)) - ), - - /** - * @description The path for the full team list for this user - */ - teamsResourcePath: () => new Field("teamsResourcePath"), - - /** - * @description The URL for the full team list for this user - */ - teamsUrl: () => new Field("teamsUrl"), - - /** - * @description The total number of teams the user is on in the organization - */ - totalTeamCount: () => new Field("totalTeamCount"), -}; - -export interface IOrganizationsHovercardContext extends IHovercardContext { - readonly __typename: "OrganizationsHovercardContext"; - readonly relevantOrganizations: IOrganizationConnection; - readonly totalOrganizationCount: number; -} - -interface OrganizationsHovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; - - /** - * @description Organizations this user is a member of that are relevant - */ - - readonly relevantOrganizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "relevantOrganizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The total number of organizations this user is in - */ - - readonly totalOrganizationCount: () => Field<"totalOrganizationCount">; -} - -export const isOrganizationsHovercardContext = ( - object: Record -): object is Partial => { - return object.__typename === "OrganizationsHovercardContext"; -}; - -export const OrganizationsHovercardContext: OrganizationsHovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), - - /** - * @description Organizations this user is a member of that are relevant - */ - - relevantOrganizations: (variables, select) => - new Field( - "relevantOrganizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description The total number of organizations this user is in - */ - totalOrganizationCount: () => new Field("totalOrganizationCount"), -}; - -export interface IPackage extends INode { - readonly __typename: "Package"; - readonly latestVersion: IPackageVersion | null; - readonly name: string; - readonly packageType: PackageType; - readonly repository: IRepository | null; - readonly statistics: IPackageStatistics | null; - readonly version: IPackageVersion | null; - readonly versions: IPackageVersionConnection; -} - -interface PackageSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Find the latest version for the package. - */ - - readonly latestVersion: >( - select: (t: PackageVersionSelector) => T - ) => Field<"latestVersion", never, SelectionSet>; - - /** - * @description Identifies the name of the package. - */ - - readonly name: () => Field<"name">; - - /** - * @description Identifies the type of the package. - */ - - readonly packageType: () => Field<"packageType">; - - /** - * @description The repository this package belongs to. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description Statistics about package activity. - */ - - readonly statistics: >( - select: (t: PackageStatisticsSelector) => T - ) => Field<"statistics", never, SelectionSet>; - - /** - * @description Find package version by version string. - */ - - readonly version: >( - variables: { version?: Variable<"version"> | string }, - select: (t: PackageVersionSelector) => T - ) => Field< - "version", - [Argument<"version", Variable<"version"> | string>], - SelectionSet - >; - - /** - * @description list of versions for this package - */ - - readonly versions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | PackageVersionOrder; - }, - select: (t: PackageVersionConnectionSelector) => T - ) => Field< - "versions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | PackageVersionOrder> - ], - SelectionSet - >; -} - -export const isPackage = ( - object: Record -): object is Partial => { - return object.__typename === "Package"; -}; - -export const Package: PackageSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Find the latest version for the package. - */ - - latestVersion: (select) => - new Field( - "latestVersion", - undefined as never, - new SelectionSet(select(PackageVersion)) - ), - - /** - * @description Identifies the name of the package. - */ - name: () => new Field("name"), - - /** - * @description Identifies the type of the package. - */ - packageType: () => new Field("packageType"), - - /** - * @description The repository this package belongs to. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Statistics about package activity. - */ - - statistics: (select) => - new Field( - "statistics", - undefined as never, - new SelectionSet(select(PackageStatistics)) - ), - - /** - * @description Find package version by version string. - */ - - version: (variables, select) => - new Field( - "version", - [new Argument("version", variables.version, _ENUM_VALUES)], - new SelectionSet(select(PackageVersion)) - ), - - /** - * @description list of versions for this package - */ - - versions: (variables, select) => - new Field( - "versions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(PackageVersionConnection)) - ), -}; - -export interface IPackageConnection { - readonly __typename: "PackageConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PackageConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PackageEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PackageSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PackageConnection: PackageConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PackageEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Package))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPackageEdge { - readonly __typename: "PackageEdge"; - readonly cursor: string; - readonly node: IPackage | null; -} - -interface PackageEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PackageSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PackageEdge: PackageEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Package))), -}; - -export interface IPackageFile extends INode { - readonly __typename: "PackageFile"; - readonly md5: string | null; - readonly name: string; - readonly packageVersion: IPackageVersion | null; - readonly sha1: string | null; - readonly sha256: string | null; - readonly size: number | null; - readonly updatedAt: unknown; - readonly url: unknown | null; -} - -interface PackageFileSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description MD5 hash of the file. - */ - - readonly md5: () => Field<"md5">; - - /** - * @description Name of the file. - */ - - readonly name: () => Field<"name">; - - /** - * @description The package version this file belongs to. - */ - - readonly packageVersion: >( - select: (t: PackageVersionSelector) => T - ) => Field<"packageVersion", never, SelectionSet>; - - /** - * @description SHA1 hash of the file. - */ - - readonly sha1: () => Field<"sha1">; - - /** - * @description SHA256 hash of the file. - */ - - readonly sha256: () => Field<"sha256">; - - /** - * @description Size of the file in bytes. - */ - - readonly size: () => Field<"size">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description URL to download the asset. - */ - - readonly url: () => Field<"url">; -} - -export const isPackageFile = ( - object: Record -): object is Partial => { - return object.__typename === "PackageFile"; -}; - -export const PackageFile: PackageFileSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description MD5 hash of the file. - */ - md5: () => new Field("md5"), - - /** - * @description Name of the file. - */ - name: () => new Field("name"), - - /** - * @description The package version this file belongs to. - */ - - packageVersion: (select) => - new Field( - "packageVersion", - undefined as never, - new SelectionSet(select(PackageVersion)) - ), - - /** - * @description SHA1 hash of the file. - */ - sha1: () => new Field("sha1"), - - /** - * @description SHA256 hash of the file. - */ - sha256: () => new Field("sha256"), - - /** - * @description Size of the file in bytes. - */ - size: () => new Field("size"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description URL to download the asset. - */ - url: () => new Field("url"), -}; - -export interface IPackageFileConnection { - readonly __typename: "PackageFileConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PackageFileConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PackageFileEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PackageFileSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PackageFileConnection: PackageFileConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PackageFileEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PackageFile)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPackageFileEdge { - readonly __typename: "PackageFileEdge"; - readonly cursor: string; - readonly node: IPackageFile | null; -} - -interface PackageFileEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PackageFileSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PackageFileEdge: PackageFileEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PackageFile)) - ), -}; - -export interface IPackageOwner { - readonly __typename: string; - readonly id: string; - readonly packages: IPackageConnection; -} - -interface PackageOwnerSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description A list of packages under the owner. - */ - - readonly packages: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - names?: Variable<"names"> | string; - orderBy?: Variable<"orderBy"> | PackageOrder; - packageType?: Variable<"packageType"> | PackageType; - repositoryId?: Variable<"repositoryId"> | string; - }, - select: (t: PackageConnectionSelector) => T - ) => Field< - "packages", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"names", Variable<"names"> | string>, - Argument<"orderBy", Variable<"orderBy"> | PackageOrder>, - Argument<"packageType", Variable<"packageType"> | PackageType>, - Argument<"repositoryId", Variable<"repositoryId"> | string> - ], - SelectionSet - >; - - readonly on: < - T extends Array, - F extends "Organization" | "Repository" | "User" - >( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "Repository" - ? RepositorySelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const PackageOwner: PackageOwnerSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description A list of packages under the owner. - */ - - packages: (variables, select) => - new Field( - "packages", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("names", variables.names, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("packageType", variables.packageType, _ENUM_VALUES), - new Argument("repositoryId", variables.repositoryId, _ENUM_VALUES), - ], - new SelectionSet(select(PackageConnection)) - ), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "PackageOwner", - }); - } - }, -}; - -export interface IPackageStatistics { - readonly __typename: "PackageStatistics"; - readonly downloadsTotalCount: number; -} - -interface PackageStatisticsSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Number of times the package was downloaded since it was created. - */ - - readonly downloadsTotalCount: () => Field<"downloadsTotalCount">; -} - -export const PackageStatistics: PackageStatisticsSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Number of times the package was downloaded since it was created. - */ - downloadsTotalCount: () => new Field("downloadsTotalCount"), -}; - -export interface IPackageTag extends INode { - readonly __typename: "PackageTag"; - readonly name: string; - readonly version: IPackageVersion | null; -} - -interface PackageTagSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the tag name of the version. - */ - - readonly name: () => Field<"name">; - - /** - * @description Version that the tag is associated with. - */ - - readonly version: >( - select: (t: PackageVersionSelector) => T - ) => Field<"version", never, SelectionSet>; -} - -export const isPackageTag = ( - object: Record -): object is Partial => { - return object.__typename === "PackageTag"; -}; - -export const PackageTag: PackageTagSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Identifies the tag name of the version. - */ - name: () => new Field("name"), - - /** - * @description Version that the tag is associated with. - */ - - version: (select) => - new Field( - "version", - undefined as never, - new SelectionSet(select(PackageVersion)) - ), -}; - -export interface IPackageVersion extends INode { - readonly __typename: "PackageVersion"; - readonly files: IPackageFileConnection; - readonly package: IPackage | null; - readonly platform: string | null; - readonly preRelease: boolean; - readonly readme: string | null; - readonly release: IRelease | null; - readonly statistics: IPackageVersionStatistics | null; - readonly summary: string | null; - readonly version: string; -} - -interface PackageVersionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description List of files associated with this package version - */ - - readonly files: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | PackageFileOrder; - }, - select: (t: PackageFileConnectionSelector) => T - ) => Field< - "files", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | PackageFileOrder> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The package associated with this version. - */ - - readonly package: >( - select: (t: PackageSelector) => T - ) => Field<"package", never, SelectionSet>; - - /** - * @description The platform this version was built for. - */ - - readonly platform: () => Field<"platform">; - - /** - * @description Whether or not this version is a pre-release. - */ - - readonly preRelease: () => Field<"preRelease">; - - /** - * @description The README of this package version. - */ - - readonly readme: () => Field<"readme">; - - /** - * @description The release associated with this package version. - */ - - readonly release: >( - select: (t: ReleaseSelector) => T - ) => Field<"release", never, SelectionSet>; - - /** - * @description Statistics about package activity. - */ - - readonly statistics: >( - select: (t: PackageVersionStatisticsSelector) => T - ) => Field<"statistics", never, SelectionSet>; - - /** - * @description The package version summary. - */ - - readonly summary: () => Field<"summary">; - - /** - * @description The version string. - */ - - readonly version: () => Field<"version">; -} - -export const isPackageVersion = ( - object: Record -): object is Partial => { - return object.__typename === "PackageVersion"; -}; - -export const PackageVersion: PackageVersionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description List of files associated with this package version - */ - - files: (variables, select) => - new Field( - "files", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(PackageFileConnection)) - ), - - id: () => new Field("id"), - - /** - * @description The package associated with this version. - */ - - package: (select) => - new Field("package", undefined as never, new SelectionSet(select(Package))), - - /** - * @description The platform this version was built for. - */ - platform: () => new Field("platform"), - - /** - * @description Whether or not this version is a pre-release. - */ - preRelease: () => new Field("preRelease"), - - /** - * @description The README of this package version. - */ - readme: () => new Field("readme"), - - /** - * @description The release associated with this package version. - */ - - release: (select) => - new Field("release", undefined as never, new SelectionSet(select(Release))), - - /** - * @description Statistics about package activity. - */ - - statistics: (select) => - new Field( - "statistics", - undefined as never, - new SelectionSet(select(PackageVersionStatistics)) - ), - - /** - * @description The package version summary. - */ - summary: () => new Field("summary"), - - /** - * @description The version string. - */ - version: () => new Field("version"), -}; - -export interface IPackageVersionConnection { - readonly __typename: "PackageVersionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PackageVersionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PackageVersionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PackageVersionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PackageVersionConnection: PackageVersionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PackageVersionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PackageVersion)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPackageVersionEdge { - readonly __typename: "PackageVersionEdge"; - readonly cursor: string; - readonly node: IPackageVersion | null; -} - -interface PackageVersionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PackageVersionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PackageVersionEdge: PackageVersionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PackageVersion)) - ), -}; - -export interface IPackageVersionStatistics { - readonly __typename: "PackageVersionStatistics"; - readonly downloadsTotalCount: number; -} - -interface PackageVersionStatisticsSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Number of times the package was downloaded since it was created. - */ - - readonly downloadsTotalCount: () => Field<"downloadsTotalCount">; -} - -export const PackageVersionStatistics: PackageVersionStatisticsSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Number of times the package was downloaded since it was created. - */ - downloadsTotalCount: () => new Field("downloadsTotalCount"), -}; - -export interface IPageInfo { - readonly __typename: "PageInfo"; - readonly endCursor: string | null; - readonly hasNextPage: boolean; - readonly hasPreviousPage: boolean; - readonly startCursor: string | null; -} - -interface PageInfoSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description When paginating forwards, the cursor to continue. - */ - - readonly endCursor: () => Field<"endCursor">; - - /** - * @description When paginating forwards, are there more items? - */ - - readonly hasNextPage: () => Field<"hasNextPage">; - - /** - * @description When paginating backwards, are there more items? - */ - - readonly hasPreviousPage: () => Field<"hasPreviousPage">; - - /** - * @description When paginating backwards, the cursor to continue. - */ - - readonly startCursor: () => Field<"startCursor">; -} - -export const PageInfo: PageInfoSelector = { - __typename: () => new Field("__typename"), - - /** - * @description When paginating forwards, the cursor to continue. - */ - endCursor: () => new Field("endCursor"), - - /** - * @description When paginating forwards, are there more items? - */ - hasNextPage: () => new Field("hasNextPage"), - - /** - * @description When paginating backwards, are there more items? - */ - hasPreviousPage: () => new Field("hasPreviousPage"), - - /** - * @description When paginating backwards, the cursor to continue. - */ - startCursor: () => new Field("startCursor"), -}; - -export interface IPermissionSource { - readonly __typename: "PermissionSource"; - readonly organization: IOrganization; - readonly permission: DefaultRepositoryPermissionField; - readonly source: IPermissionGranter; -} - -interface PermissionSourceSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The organization the repository belongs to. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The level of access this source has granted to the user. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description The source of this permission. - */ - - readonly source: >( - select: (t: PermissionGranterSelector) => T - ) => Field<"source", never, SelectionSet>; -} - -export const PermissionSource: PermissionSourceSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The organization the repository belongs to. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The level of access this source has granted to the user. - */ - permission: () => new Field("permission"), - - /** - * @description The source of this permission. - */ - - source: (select) => - new Field( - "source", - undefined as never, - new SelectionSet(select(PermissionGranter)) - ), -}; - -export interface IPinnableItemConnection { - readonly __typename: "PinnableItemConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PinnableItemConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PinnableItemEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PinnableItemSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PinnableItemConnection: PinnableItemConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PinnableItemEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PinnableItem)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPinnableItemEdge { - readonly __typename: "PinnableItemEdge"; - readonly cursor: string; - readonly node: IPinnableItem | null; -} - -interface PinnableItemEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PinnableItemSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PinnableItemEdge: PinnableItemEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PinnableItem)) - ), -}; - -export interface IPinnedEvent extends INode { - readonly __typename: "PinnedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly issue: IIssue; -} - -interface PinnedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the issue associated with the event. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const isPinnedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "PinnedEvent"; -}; - -export const PinnedEvent: PinnedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the issue associated with the event. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IPrivateRepositoryForkingDisableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "PrivateRepositoryForkingDisableAuditEntry"; -} - -interface PrivateRepositoryForkingDisableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isPrivateRepositoryForkingDisableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "PrivateRepositoryForkingDisableAuditEntry"; -}; - -export const PrivateRepositoryForkingDisableAuditEntry: PrivateRepositoryForkingDisableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IPrivateRepositoryForkingEnableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "PrivateRepositoryForkingEnableAuditEntry"; -} - -interface PrivateRepositoryForkingEnableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isPrivateRepositoryForkingEnableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "PrivateRepositoryForkingEnableAuditEntry"; -}; - -export const PrivateRepositoryForkingEnableAuditEntry: PrivateRepositoryForkingEnableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IProfileItemShowcase { - readonly __typename: "ProfileItemShowcase"; - readonly hasPinnedItems: boolean; - readonly items: IPinnableItemConnection; -} - -interface ProfileItemShowcaseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether or not the owner has pinned any repositories or gists. - */ - - readonly hasPinnedItems: () => Field<"hasPinnedItems">; - - /** - * @description The repositories and gists in the showcase. If the profile owner has any -pinned items, those will be returned. Otherwise, the profile owner's popular -repositories will be returned. - */ - - readonly items: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "items", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; -} - -export const ProfileItemShowcase: ProfileItemShowcaseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether or not the owner has pinned any repositories or gists. - */ - hasPinnedItems: () => new Field("hasPinnedItems"), - - /** - * @description The repositories and gists in the showcase. If the profile owner has any -pinned items, those will be returned. Otherwise, the profile owner's popular -repositories will be returned. - */ - - items: (variables, select) => - new Field( - "items", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), -}; - -export interface IProfileOwner { - readonly __typename: string; - readonly anyPinnableItems: boolean; - readonly email: string | null; - readonly id: string; - readonly itemShowcase: IProfileItemShowcase; - readonly location: string | null; - readonly login: string; - readonly name: string | null; - readonly pinnableItems: IPinnableItemConnection; - readonly pinnedItems: IPinnableItemConnection; - readonly pinnedItemsRemaining: number; - readonly viewerCanChangePinnedItems: boolean; - readonly websiteUrl: unknown | null; -} - -interface ProfileOwnerSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - - readonly anyPinnableItems: (variables: { - type?: Variable<"type"> | PinnableItemType; - }) => Field< - "anyPinnableItems", - [Argument<"type", Variable<"type"> | PinnableItemType>] - >; - - /** - * @description The public profile email. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - readonly itemShowcase: >( - select: (t: ProfileItemShowcaseSelector) => T - ) => Field<"itemShowcase", never, SelectionSet>; - - /** - * @description The public profile location. - */ - - readonly location: () => Field<"location">; - - /** - * @description The username used to login. - */ - - readonly login: () => Field<"login">; - - /** - * @description The public profile name. - */ - - readonly name: () => Field<"name">; - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - readonly pinnableItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnableItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - readonly pinnedItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnedItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - - readonly pinnedItemsRemaining: () => Field<"pinnedItemsRemaining">; - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - - readonly viewerCanChangePinnedItems: () => Field<"viewerCanChangePinnedItems">; - - /** - * @description The public profile website URL. - */ - - readonly websiteUrl: () => Field<"websiteUrl">; - - readonly on: , F extends "Organization" | "User">( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const ProfileOwner: ProfileOwnerSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - anyPinnableItems: (variables) => new Field("anyPinnableItems"), - - /** - * @description The public profile email. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - itemShowcase: (select) => - new Field( - "itemShowcase", - undefined as never, - new SelectionSet(select(ProfileItemShowcase)) - ), - - /** - * @description The public profile location. - */ - location: () => new Field("location"), - - /** - * @description The username used to login. - */ - login: () => new Field("login"), - - /** - * @description The public profile name. - */ - name: () => new Field("name"), - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - pinnableItems: (variables, select) => - new Field( - "pinnableItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - pinnedItems: (variables, select) => - new Field( - "pinnedItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - pinnedItemsRemaining: () => new Field("pinnedItemsRemaining"), - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - viewerCanChangePinnedItems: () => new Field("viewerCanChangePinnedItems"), - - /** - * @description The public profile website URL. - */ - websiteUrl: () => new Field("websiteUrl"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "ProfileOwner", - }); - } - }, -}; - -export interface IProject extends IClosable, INode, IUpdatable { - readonly __typename: "Project"; - readonly body: string | null; - readonly bodyHTML: unknown; - readonly columns: IProjectColumnConnection; - readonly createdAt: unknown; - readonly creator: IActor | null; - readonly databaseId: number | null; - readonly name: string; - readonly number: number; - readonly owner: IProjectOwner; - readonly pendingCards: IProjectCardConnection; - readonly progress: IProjectProgress; - readonly resourcePath: unknown; - readonly state: ProjectState; - readonly updatedAt: unknown; - readonly url: unknown; -} - -interface ProjectSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The project's description body. - */ - - readonly body: () => Field<"body">; - - /** - * @description The projects description body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - - readonly closed: () => Field<"closed">; - - /** - * @description Identifies the date and time when the object was closed. - */ - - readonly closedAt: () => Field<"closedAt">; - - /** - * @description List of columns in the project - */ - - readonly columns: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ProjectColumnConnectionSelector) => T - ) => Field< - "columns", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The actor who originally created the project. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description The project's name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The project's number. - */ - - readonly number: () => Field<"number">; - - /** - * @description The project's owner. Currently limited to repositories, organizations, and users. - */ - - readonly owner: >( - select: (t: ProjectOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; - - /** - * @description List of pending cards in this project - */ - - readonly pendingCards: >( - variables: { - after?: Variable<"after"> | string; - archivedStates?: Variable<"archivedStates"> | ProjectCardArchivedState; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ProjectCardConnectionSelector) => T - ) => Field< - "pendingCards", - [ - Argument<"after", Variable<"after"> | string>, - Argument< - "archivedStates", - Variable<"archivedStates"> | ProjectCardArchivedState - >, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Project progress details. - */ - - readonly progress: >( - select: (t: ProjectProgressSelector) => T - ) => Field<"progress", never, SelectionSet>; - - /** - * @description The HTTP path for this project - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Whether the project is open or closed. - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this project - */ - - readonly url: () => Field<"url">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; -} - -export const isProject = ( - object: Record -): object is Partial => { - return object.__typename === "Project"; -}; - -export const Project: ProjectSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The project's description body. - */ - body: () => new Field("body"), - - /** - * @description The projects description body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description `true` if the object is closed (definition of closed may depend on type) - */ - closed: () => new Field("closed"), - - /** - * @description Identifies the date and time when the object was closed. - */ - closedAt: () => new Field("closedAt"), - - /** - * @description List of columns in the project - */ - - columns: (variables, select) => - new Field( - "columns", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectColumnConnection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The actor who originally created the project. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description The project's name. - */ - name: () => new Field("name"), - - /** - * @description The project's number. - */ - number: () => new Field("number"), - - /** - * @description The project's owner. Currently limited to repositories, organizations, and users. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(ProjectOwner)) - ), - - /** - * @description List of pending cards in this project - */ - - pendingCards: (variables, select) => - new Field( - "pendingCards", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("archivedStates", variables.archivedStates, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectCardConnection)) - ), - - /** - * @description Project progress details. - */ - - progress: (select) => - new Field( - "progress", - undefined as never, - new SelectionSet(select(ProjectProgress)) - ), - - /** - * @description The HTTP path for this project - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Whether the project is open or closed. - */ - state: () => new Field("state"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this project - */ - url: () => new Field("url"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), -}; - -export interface IProjectCard extends INode { - readonly __typename: "ProjectCard"; - readonly column: IProjectColumn | null; - readonly content: IProjectCardItem | null; - readonly createdAt: unknown; - readonly creator: IActor | null; - readonly databaseId: number | null; - readonly isArchived: boolean; - readonly note: string | null; - readonly project: IProject; - readonly resourcePath: unknown; - readonly state: ProjectCardState | null; - readonly updatedAt: unknown; - readonly url: unknown; -} - -interface ProjectCardSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The project column this card is associated under. A card may only belong to one -project column at a time. The column field will be null if the card is created -in a pending state and has yet to be associated with a column. Once cards are -associated with a column, they will not become pending in the future. - */ - - readonly column: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"column", never, SelectionSet>; - - /** - * @description The card content item - */ - - readonly content: >( - select: (t: ProjectCardItemSelector) => T - ) => Field<"content", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The actor who created this card - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the card is archived - */ - - readonly isArchived: () => Field<"isArchived">; - - /** - * @description The card note - */ - - readonly note: () => Field<"note">; - - /** - * @description The project that contains this card. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; - - /** - * @description The HTTP path for this card - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The state of ProjectCard - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this card - */ - - readonly url: () => Field<"url">; -} - -export const isProjectCard = ( - object: Record -): object is Partial => { - return object.__typename === "ProjectCard"; -}; - -export const ProjectCard: ProjectCardSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The project column this card is associated under. A card may only belong to one -project column at a time. The column field will be null if the card is created -in a pending state and has yet to be associated with a column. Once cards are -associated with a column, they will not become pending in the future. - */ - - column: (select) => - new Field( - "column", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), - - /** - * @description The card content item - */ - - content: (select) => - new Field( - "content", - undefined as never, - new SelectionSet(select(ProjectCardItem)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The actor who created this card - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description Whether the card is archived - */ - isArchived: () => new Field("isArchived"), - - /** - * @description The card note - */ - note: () => new Field("note"), - - /** - * @description The project that contains this card. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), - - /** - * @description The HTTP path for this card - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The state of ProjectCard - */ - state: () => new Field("state"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this card - */ - url: () => new Field("url"), -}; - -export interface IProjectCardConnection { - readonly __typename: "ProjectCardConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ProjectCardConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ProjectCardEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ProjectCardSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ProjectCardConnection: ProjectCardConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ProjectCardEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ProjectCard)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IProjectCardEdge { - readonly __typename: "ProjectCardEdge"; - readonly cursor: string; - readonly node: IProjectCard | null; -} - -interface ProjectCardEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ProjectCardSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ProjectCardEdge: ProjectCardEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ProjectCard)) - ), -}; - -export interface IProjectColumn extends INode { - readonly __typename: "ProjectColumn"; - readonly cards: IProjectCardConnection; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly name: string; - readonly project: IProject; - readonly purpose: ProjectColumnPurpose | null; - readonly resourcePath: unknown; - readonly updatedAt: unknown; - readonly url: unknown; -} - -interface ProjectColumnSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description List of cards in the column - */ - - readonly cards: >( - variables: { - after?: Variable<"after"> | string; - archivedStates?: Variable<"archivedStates"> | ProjectCardArchivedState; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ProjectCardConnectionSelector) => T - ) => Field< - "cards", - [ - Argument<"after", Variable<"after"> | string>, - Argument< - "archivedStates", - Variable<"archivedStates"> | ProjectCardArchivedState - >, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description The project column's name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The project that contains this column. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; - - /** - * @description The semantic purpose of the column - */ - - readonly purpose: () => Field<"purpose">; - - /** - * @description The HTTP path for this project column - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this project column - */ - - readonly url: () => Field<"url">; -} - -export const isProjectColumn = ( - object: Record -): object is Partial => { - return object.__typename === "ProjectColumn"; -}; - -export const ProjectColumn: ProjectColumnSelector = { - __typename: () => new Field("__typename"), - - /** - * @description List of cards in the column - */ - - cards: (variables, select) => - new Field( - "cards", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("archivedStates", variables.archivedStates, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectCardConnection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description The project column's name. - */ - name: () => new Field("name"), - - /** - * @description The project that contains this column. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), - - /** - * @description The semantic purpose of the column - */ - purpose: () => new Field("purpose"), - - /** - * @description The HTTP path for this project column - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this project column - */ - url: () => new Field("url"), -}; - -export interface IProjectColumnConnection { - readonly __typename: "ProjectColumnConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ProjectColumnConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ProjectColumnEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ProjectColumnConnection: ProjectColumnConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ProjectColumnEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IProjectColumnEdge { - readonly __typename: "ProjectColumnEdge"; - readonly cursor: string; - readonly node: IProjectColumn | null; -} - -interface ProjectColumnEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ProjectColumnEdge: ProjectColumnEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), -}; - -export interface IProjectConnection { - readonly __typename: "ProjectConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ProjectConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ProjectEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ProjectSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ProjectConnection: ProjectConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ProjectEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Project))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IProjectEdge { - readonly __typename: "ProjectEdge"; - readonly cursor: string; - readonly node: IProject | null; -} - -interface ProjectEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ProjectSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ProjectEdge: ProjectEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Project))), -}; - -export interface IProjectOwner { - readonly __typename: string; - readonly id: string; - readonly project: IProject | null; - readonly projects: IProjectConnection; - readonly projectsResourcePath: unknown; - readonly projectsUrl: unknown; - readonly viewerCanCreateProjects: boolean; -} - -interface ProjectOwnerSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Find project by number. - */ - - readonly project: >( - variables: { number?: Variable<"number"> | number }, - select: (t: ProjectSelector) => T - ) => Field< - "project", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of projects under the owner. - */ - - readonly projects: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ProjectOrder; - search?: Variable<"search"> | string; - states?: Variable<"states"> | ProjectState; - }, - select: (t: ProjectConnectionSelector) => T - ) => Field< - "projects", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ProjectOrder>, - Argument<"search", Variable<"search"> | string>, - Argument<"states", Variable<"states"> | ProjectState> - ], - SelectionSet - >; - - /** - * @description The HTTP path listing owners projects - */ - - readonly projectsResourcePath: () => Field<"projectsResourcePath">; - - /** - * @description The HTTP URL listing owners projects - */ - - readonly projectsUrl: () => Field<"projectsUrl">; - - /** - * @description Can the current viewer create new projects on this owner. - */ - - readonly viewerCanCreateProjects: () => Field<"viewerCanCreateProjects">; - - readonly on: < - T extends Array, - F extends "Organization" | "Repository" | "User" - >( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "Repository" - ? RepositorySelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const ProjectOwner: ProjectOwnerSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Find project by number. - */ - - project: (variables, select) => - new Field( - "project", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Project)) - ), - - /** - * @description A list of projects under the owner. - */ - - projects: (variables, select) => - new Field( - "projects", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("search", variables.search, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectConnection)) - ), - - /** - * @description The HTTP path listing owners projects - */ - projectsResourcePath: () => new Field("projectsResourcePath"), - - /** - * @description The HTTP URL listing owners projects - */ - projectsUrl: () => new Field("projectsUrl"), - - /** - * @description Can the current viewer create new projects on this owner. - */ - viewerCanCreateProjects: () => new Field("viewerCanCreateProjects"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "ProjectOwner", - }); - } - }, -}; - -export interface IProjectProgress { - readonly __typename: "ProjectProgress"; - readonly doneCount: number; - readonly donePercentage: number; - readonly enabled: boolean; - readonly inProgressCount: number; - readonly inProgressPercentage: number; - readonly todoCount: number; - readonly todoPercentage: number; -} - -interface ProjectProgressSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The number of done cards. - */ - - readonly doneCount: () => Field<"doneCount">; - - /** - * @description The percentage of done cards. - */ - - readonly donePercentage: () => Field<"donePercentage">; - - /** - * @description Whether progress tracking is enabled and cards with purpose exist for this project - */ - - readonly enabled: () => Field<"enabled">; - - /** - * @description The number of in-progress cards. - */ - - readonly inProgressCount: () => Field<"inProgressCount">; - - /** - * @description The percentage of in-progress cards. - */ - - readonly inProgressPercentage: () => Field<"inProgressPercentage">; - - /** - * @description The number of to do cards. - */ - - readonly todoCount: () => Field<"todoCount">; - - /** - * @description The percentage of to do cards. - */ - - readonly todoPercentage: () => Field<"todoPercentage">; -} - -export const ProjectProgress: ProjectProgressSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of done cards. - */ - doneCount: () => new Field("doneCount"), - - /** - * @description The percentage of done cards. - */ - donePercentage: () => new Field("donePercentage"), - - /** - * @description Whether progress tracking is enabled and cards with purpose exist for this project - */ - enabled: () => new Field("enabled"), - - /** - * @description The number of in-progress cards. - */ - inProgressCount: () => new Field("inProgressCount"), - - /** - * @description The percentage of in-progress cards. - */ - inProgressPercentage: () => new Field("inProgressPercentage"), - - /** - * @description The number of to do cards. - */ - todoCount: () => new Field("todoCount"), - - /** - * @description The percentage of to do cards. - */ - todoPercentage: () => new Field("todoPercentage"), -}; - -export interface IPublicKey extends INode { - readonly __typename: "PublicKey"; - readonly accessedAt: unknown | null; - readonly createdAt: unknown | null; - readonly fingerprint: string; - readonly isReadOnly: boolean | null; - readonly key: string; - readonly updatedAt: unknown | null; -} - -interface PublicKeySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. - */ - - readonly accessedAt: () => Field<"accessedAt">; - - /** - * @description Identifies the date and time when the key was created. Keys created before -March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The fingerprint for this PublicKey. - */ - - readonly fingerprint: () => Field<"fingerprint">; - - readonly id: () => Field<"id">; - - /** - * @description Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. - */ - - readonly isReadOnly: () => Field<"isReadOnly">; - - /** - * @description The public key string. - */ - - readonly key: () => Field<"key">; - - /** - * @description Identifies the date and time when the key was updated. Keys created before -March 5th, 2014 may have inaccurate values. Values will be null for keys not -owned by the user. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isPublicKey = ( - object: Record -): object is Partial => { - return object.__typename === "PublicKey"; -}; - -export const PublicKey: PublicKeySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The last time this authorization was used to perform an action. Values will be null for keys not owned by the user. - */ - accessedAt: () => new Field("accessedAt"), - - /** - * @description Identifies the date and time when the key was created. Keys created before -March 5th, 2014 have inaccurate values. Values will be null for keys not owned by the user. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The fingerprint for this PublicKey. - */ - fingerprint: () => new Field("fingerprint"), - id: () => new Field("id"), - - /** - * @description Whether this PublicKey is read-only or not. Values will be null for keys not owned by the user. - */ - isReadOnly: () => new Field("isReadOnly"), - - /** - * @description The public key string. - */ - key: () => new Field("key"), - - /** - * @description Identifies the date and time when the key was updated. Keys created before -March 5th, 2014 may have inaccurate values. Values will be null for keys not -owned by the user. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IPublicKeyConnection { - readonly __typename: "PublicKeyConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PublicKeyConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PublicKeyEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PublicKeySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PublicKeyConnection: PublicKeyConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PublicKeyEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(PublicKey))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPublicKeyEdge { - readonly __typename: "PublicKeyEdge"; - readonly cursor: string; - readonly node: IPublicKey | null; -} - -interface PublicKeyEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PublicKeySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PublicKeyEdge: PublicKeyEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(PublicKey))), -}; - -export interface IPullRequest - extends IAssignable, - IClosable, - IComment, - ILabelable, - ILockable, - INode, - IReactable, - IRepositoryNode, - ISubscribable, - IUniformResourceLocatable, - IUpdatable, - IUpdatableComment { - readonly __typename: "PullRequest"; - readonly additions: number; - readonly baseRef: IRef | null; - readonly baseRefName: string; - readonly baseRefOid: unknown; - readonly baseRepository: IRepository | null; - readonly changedFiles: number; - readonly checksResourcePath: unknown; - readonly checksUrl: unknown; - readonly comments: IIssueCommentConnection; - readonly commits: IPullRequestCommitConnection; - readonly deletions: number; - readonly files: IPullRequestChangedFileConnection | null; - readonly headRef: IRef | null; - readonly headRefName: string; - readonly headRefOid: unknown; - readonly headRepository: IRepository | null; - readonly headRepositoryOwner: IRepositoryOwner | null; - readonly hovercard: IHovercard; - readonly isCrossRepository: boolean; - readonly isDraft: boolean; - readonly isReadByViewer: boolean | null; - readonly latestOpinionatedReviews: IPullRequestReviewConnection | null; - readonly latestReviews: IPullRequestReviewConnection | null; - readonly maintainerCanModify: boolean; - readonly mergeCommit: ICommit | null; - readonly mergeable: MergeableState; - readonly merged: boolean; - readonly mergedAt: unknown | null; - readonly mergedBy: IActor | null; - readonly milestone: IMilestone | null; - readonly number: number; - readonly participants: IUserConnection; - readonly permalink: unknown; - readonly potentialMergeCommit: ICommit | null; - readonly projectCards: IProjectCardConnection; - readonly revertResourcePath: unknown; - readonly revertUrl: unknown; - readonly reviewDecision: PullRequestReviewDecision | null; - readonly reviewRequests: IReviewRequestConnection | null; - readonly reviewThreads: IPullRequestReviewThreadConnection; - readonly reviews: IPullRequestReviewConnection | null; - readonly state: PullRequestState; - readonly suggestedReviewers: ReadonlyArray; - readonly timeline: IPullRequestTimelineConnection; - readonly timelineItems: IPullRequestTimelineItemsConnection; - readonly title: string; - readonly viewerCanApplySuggestion: boolean; - readonly viewerCanDeleteHeadRef: boolean; - readonly viewerMergeBodyText: string; - readonly viewerMergeHeadlineText: string; -} - -interface PullRequestSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Reason that the conversation was locked. - */ - - readonly activeLockReason: () => Field<"activeLockReason">; - - /** - * @description The number of additions in this pull request. - */ - - readonly additions: () => Field<"additions">; - - /** - * @description A list of Users assigned to this object. - */ - - readonly assignees: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "assignees", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description Identifies the base Ref associated with the pull request. - */ - - readonly baseRef: >( - select: (t: RefSelector) => T - ) => Field<"baseRef", never, SelectionSet>; - - /** - * @description Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. - */ - - readonly baseRefName: () => Field<"baseRefName">; - - /** - * @description Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted. - */ - - readonly baseRefOid: () => Field<"baseRefOid">; - - /** - * @description The repository associated with this pull request's base Ref. - */ - - readonly baseRepository: >( - select: (t: RepositorySelector) => T - ) => Field<"baseRepository", never, SelectionSet>; - - /** - * @description The body as Markdown. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description The number of changed files in this pull request. - */ - - readonly changedFiles: () => Field<"changedFiles">; - - /** - * @description The HTTP path for the checks of this pull request. - */ - - readonly checksResourcePath: () => Field<"checksResourcePath">; - - /** - * @description The HTTP URL for the checks of this pull request. - */ - - readonly checksUrl: () => Field<"checksUrl">; - - /** - * @description `true` if the pull request is closed - */ - - readonly closed: () => Field<"closed">; - - /** - * @description Identifies the date and time when the object was closed. - */ - - readonly closedAt: () => Field<"closedAt">; - - /** - * @description A list of comments associated with the pull request. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueCommentOrder; - }, - select: (t: IssueCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueCommentOrder> - ], - SelectionSet - >; - - /** - * @description A list of commits present in this pull request's head branch not present in the base branch. - */ - - readonly commits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PullRequestCommitConnectionSelector) => T - ) => Field< - "commits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The number of deletions in this pull request. - */ - - readonly deletions: () => Field<"deletions">; - - /** - * @description The actor who edited this pull request's body. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - /** - * @description Lists the files changed within this pull request. - */ - - readonly files: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PullRequestChangedFileConnectionSelector) => T - ) => Field< - "files", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the head Ref associated with the pull request. - */ - - readonly headRef: >( - select: (t: RefSelector) => T - ) => Field<"headRef", never, SelectionSet>; - - /** - * @description Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. - */ - - readonly headRefName: () => Field<"headRefName">; - - /** - * @description Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. - */ - - readonly headRefOid: () => Field<"headRefOid">; - - /** - * @description The repository associated with this pull request's head Ref. - */ - - readonly headRepository: >( - select: (t: RepositorySelector) => T - ) => Field<"headRepository", never, SelectionSet>; - - /** - * @description The owner of the repository associated with this pull request's head Ref. - */ - - readonly headRepositoryOwner: >( - select: (t: RepositoryOwnerSelector) => T - ) => Field<"headRepositoryOwner", never, SelectionSet>; - - /** - * @description The hovercard information for this issue - */ - - readonly hovercard: >( - variables: { - includeNotificationContexts?: - | Variable<"includeNotificationContexts"> - | boolean; - }, - select: (t: HovercardSelector) => T - ) => Field< - "hovercard", - [ - Argument< - "includeNotificationContexts", - Variable<"includeNotificationContexts"> | boolean - > - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description The head and base repositories are different. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; - - /** - * @description Identifies if the pull request is a draft. - */ - - readonly isDraft: () => Field<"isDraft">; - - /** - * @description Is this pull request read by the viewer - */ - - readonly isReadByViewer: () => Field<"isReadByViewer">; - - /** - * @description A list of labels associated with the object. - */ - - readonly labels: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | LabelOrder; - }, - select: (t: LabelConnectionSelector) => T - ) => Field< - "labels", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | LabelOrder> - ], - SelectionSet - >; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description A list of latest reviews per user associated with the pull request. - */ - - readonly latestOpinionatedReviews: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - writersOnly?: Variable<"writersOnly"> | boolean; - }, - select: (t: PullRequestReviewConnectionSelector) => T - ) => Field< - "latestOpinionatedReviews", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"writersOnly", Variable<"writersOnly"> | boolean> - ], - SelectionSet - >; - - /** - * @description A list of latest reviews per user associated with the pull request that are not also pending review. - */ - - readonly latestReviews: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PullRequestReviewConnectionSelector) => T - ) => Field< - "latestReviews", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description `true` if the pull request is locked - */ - - readonly locked: () => Field<"locked">; - - /** - * @description Indicates whether maintainers can modify the pull request. - */ - - readonly maintainerCanModify: () => Field<"maintainerCanModify">; - - /** - * @description The commit that was created when this pull request was merged. - */ - - readonly mergeCommit: >( - select: (t: CommitSelector) => T - ) => Field<"mergeCommit", never, SelectionSet>; - - /** - * @description Whether or not the pull request can be merged based on the existence of merge conflicts. - */ - - readonly mergeable: () => Field<"mergeable">; - - /** - * @description Whether or not the pull request was merged. - */ - - readonly merged: () => Field<"merged">; - - /** - * @description The date and time that the pull request was merged. - */ - - readonly mergedAt: () => Field<"mergedAt">; - - /** - * @description The actor who merged the pull request. - */ - - readonly mergedBy: >( - select: (t: ActorSelector) => T - ) => Field<"mergedBy", never, SelectionSet>; - - /** - * @description Identifies the milestone associated with the pull request. - */ - - readonly milestone: >( - select: (t: MilestoneSelector) => T - ) => Field<"milestone", never, SelectionSet>; - - /** - * @description Identifies the pull request number. - */ - - readonly number: () => Field<"number">; - - /** - * @description A list of Users that are participating in the Pull Request conversation. - */ - - readonly participants: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "participants", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The permalink to the pull request. - */ - - readonly permalink: () => Field<"permalink">; - - /** - * @description The commit that GitHub automatically generated to test if this pull request -could be merged. This field will not return a value if the pull request is -merged, or if the test merge commit is still being generated. See the -`mergeable` field for more details on the mergeability of the pull request. - */ - - readonly potentialMergeCommit: >( - select: (t: CommitSelector) => T - ) => Field<"potentialMergeCommit", never, SelectionSet>; - - /** - * @description List of project cards associated with this pull request. - */ - - readonly projectCards: >( - variables: { - after?: Variable<"after"> | string; - archivedStates?: Variable<"archivedStates"> | ProjectCardArchivedState; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ProjectCardConnectionSelector) => T - ) => Field< - "projectCards", - [ - Argument<"after", Variable<"after"> | string>, - Argument< - "archivedStates", - Variable<"archivedStates"> | ProjectCardArchivedState - >, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path for this pull request. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP path for reverting this pull request. - */ - - readonly revertResourcePath: () => Field<"revertResourcePath">; - - /** - * @description The HTTP URL for reverting this pull request. - */ - - readonly revertUrl: () => Field<"revertUrl">; - - /** - * @description The current status of this pull request with respect to code review. - */ - - readonly reviewDecision: () => Field<"reviewDecision">; - - /** - * @description A list of review requests associated with the pull request. - */ - - readonly reviewRequests: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ReviewRequestConnectionSelector) => T - ) => Field< - "reviewRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The list of all review threads for this pull request. - */ - - readonly reviewThreads: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PullRequestReviewThreadConnectionSelector) => T - ) => Field< - "reviewThreads", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of reviews associated with the pull request. - */ - - readonly reviews: >( - variables: { - after?: Variable<"after"> | string; - author?: Variable<"author"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - states?: Variable<"states"> | PullRequestReviewState; - }, - select: (t: PullRequestReviewConnectionSelector) => T - ) => Field< - "reviews", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"author", Variable<"author"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"states", Variable<"states"> | PullRequestReviewState> - ], - SelectionSet - >; - - /** - * @description Identifies the state of the pull request. - */ - - readonly state: () => Field<"state">; - - /** - * @description A list of reviewer suggestions based on commit history and past review comments. - */ - - readonly suggestedReviewers: >( - select: (t: SuggestedReviewerSelector) => T - ) => Field<"suggestedReviewers", never, SelectionSet>; - - /** - * @description A list of events, comments, commits, etc. associated with the pull request. - * @deprecated `timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC. - */ - - readonly timeline: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - since?: Variable<"since"> | unknown; - }, - select: (t: PullRequestTimelineConnectionSelector) => T - ) => Field< - "timeline", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"since", Variable<"since"> | unknown> - ], - SelectionSet - >; - - /** - * @description A list of events, comments, commits, etc. associated with the pull request. - */ - - readonly timelineItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - itemTypes?: Variable<"itemTypes"> | PullRequestTimelineItemsItemType; - last?: Variable<"last"> | number; - since?: Variable<"since"> | unknown; - skip?: Variable<"skip"> | number; - }, - select: (t: PullRequestTimelineItemsConnectionSelector) => T - ) => Field< - "timelineItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument< - "itemTypes", - Variable<"itemTypes"> | PullRequestTimelineItemsItemType - >, - Argument<"last", Variable<"last"> | number>, - Argument<"since", Variable<"since"> | unknown>, - Argument<"skip", Variable<"skip"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the pull request title. - */ - - readonly title: () => Field<"title">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this pull request. - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Whether or not the viewer can apply suggestion. - */ - - readonly viewerCanApplySuggestion: () => Field<"viewerCanApplySuggestion">; - - /** - * @description Check if the viewer can restore the deleted head ref. - */ - - readonly viewerCanDeleteHeadRef: () => Field<"viewerCanDeleteHeadRef">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; - - /** - * @description The merge body text for the viewer and method. - */ - - readonly viewerMergeBodyText: (variables: { - mergeType?: Variable<"mergeType"> | PullRequestMergeMethod; - }) => Field< - "viewerMergeBodyText", - [Argument<"mergeType", Variable<"mergeType"> | PullRequestMergeMethod>] - >; - - /** - * @description The merge headline text for the viewer and method. - */ - - readonly viewerMergeHeadlineText: (variables: { - mergeType?: Variable<"mergeType"> | PullRequestMergeMethod; - }) => Field< - "viewerMergeHeadlineText", - [Argument<"mergeType", Variable<"mergeType"> | PullRequestMergeMethod>] - >; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; -} - -export const isPullRequest = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequest"; -}; - -export const PullRequest: PullRequestSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Reason that the conversation was locked. - */ - activeLockReason: () => new Field("activeLockReason"), - - /** - * @description The number of additions in this pull request. - */ - additions: () => new Field("additions"), - - /** - * @description A list of Users assigned to this object. - */ - - assignees: (variables, select) => - new Field( - "assignees", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description Identifies the base Ref associated with the pull request. - */ - - baseRef: (select) => - new Field("baseRef", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. - */ - baseRefName: () => new Field("baseRefName"), - - /** - * @description Identifies the oid of the base ref associated with the pull request, even if the ref has been deleted. - */ - baseRefOid: () => new Field("baseRefOid"), - - /** - * @description The repository associated with this pull request's base Ref. - */ - - baseRepository: (select) => - new Field( - "baseRepository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The body as Markdown. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description The number of changed files in this pull request. - */ - changedFiles: () => new Field("changedFiles"), - - /** - * @description The HTTP path for the checks of this pull request. - */ - checksResourcePath: () => new Field("checksResourcePath"), - - /** - * @description The HTTP URL for the checks of this pull request. - */ - checksUrl: () => new Field("checksUrl"), - - /** - * @description `true` if the pull request is closed - */ - closed: () => new Field("closed"), - - /** - * @description Identifies the date and time when the object was closed. - */ - closedAt: () => new Field("closedAt"), - - /** - * @description A list of comments associated with the pull request. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(IssueCommentConnection)) - ), - - /** - * @description A list of commits present in this pull request's head branch not present in the base branch. - */ - - commits: (variables, select) => - new Field( - "commits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestCommitConnection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The number of deletions in this pull request. - */ - deletions: () => new Field("deletions"), - - /** - * @description The actor who edited this pull request's body. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Lists the files changed within this pull request. - */ - - files: (variables, select) => - new Field( - "files", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestChangedFileConnection)) - ), - - /** - * @description Identifies the head Ref associated with the pull request. - */ - - headRef: (select) => - new Field("headRef", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. - */ - headRefName: () => new Field("headRefName"), - - /** - * @description Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. - */ - headRefOid: () => new Field("headRefOid"), - - /** - * @description The repository associated with this pull request's head Ref. - */ - - headRepository: (select) => - new Field( - "headRepository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The owner of the repository associated with this pull request's head Ref. - */ - - headRepositoryOwner: (select) => - new Field( - "headRepositoryOwner", - undefined as never, - new SelectionSet(select(RepositoryOwner)) - ), - - /** - * @description The hovercard information for this issue - */ - - hovercard: (variables, select) => - new Field( - "hovercard", - [ - new Argument( - "includeNotificationContexts", - variables.includeNotificationContexts, - _ENUM_VALUES - ), - ], - new SelectionSet(select(Hovercard)) - ), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description The head and base repositories are different. - */ - isCrossRepository: () => new Field("isCrossRepository"), - - /** - * @description Identifies if the pull request is a draft. - */ - isDraft: () => new Field("isDraft"), - - /** - * @description Is this pull request read by the viewer - */ - isReadByViewer: () => new Field("isReadByViewer"), - - /** - * @description A list of labels associated with the object. - */ - - labels: (variables, select) => - new Field( - "labels", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(LabelConnection)) - ), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description A list of latest reviews per user associated with the pull request. - */ - - latestOpinionatedReviews: (variables, select) => - new Field( - "latestOpinionatedReviews", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("writersOnly", variables.writersOnly, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewConnection)) - ), - - /** - * @description A list of latest reviews per user associated with the pull request that are not also pending review. - */ - - latestReviews: (variables, select) => - new Field( - "latestReviews", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewConnection)) - ), - - /** - * @description `true` if the pull request is locked - */ - locked: () => new Field("locked"), - - /** - * @description Indicates whether maintainers can modify the pull request. - */ - maintainerCanModify: () => new Field("maintainerCanModify"), - - /** - * @description The commit that was created when this pull request was merged. - */ - - mergeCommit: (select) => - new Field( - "mergeCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description Whether or not the pull request can be merged based on the existence of merge conflicts. - */ - mergeable: () => new Field("mergeable"), - - /** - * @description Whether or not the pull request was merged. - */ - merged: () => new Field("merged"), - - /** - * @description The date and time that the pull request was merged. - */ - mergedAt: () => new Field("mergedAt"), - - /** - * @description The actor who merged the pull request. - */ - - mergedBy: (select) => - new Field("mergedBy", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the milestone associated with the pull request. - */ - - milestone: (select) => - new Field( - "milestone", - undefined as never, - new SelectionSet(select(Milestone)) - ), - - /** - * @description Identifies the pull request number. - */ - number: () => new Field("number"), - - /** - * @description A list of Users that are participating in the Pull Request conversation. - */ - - participants: (variables, select) => - new Field( - "participants", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description The permalink to the pull request. - */ - permalink: () => new Field("permalink"), - - /** - * @description The commit that GitHub automatically generated to test if this pull request -could be merged. This field will not return a value if the pull request is -merged, or if the test merge commit is still being generated. See the -`mergeable` field for more details on the mergeability of the pull request. - */ - - potentialMergeCommit: (select) => - new Field( - "potentialMergeCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description List of project cards associated with this pull request. - */ - - projectCards: (variables, select) => - new Field( - "projectCards", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("archivedStates", variables.archivedStates, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectCardConnection)) - ), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this pull request. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP path for reverting this pull request. - */ - revertResourcePath: () => new Field("revertResourcePath"), - - /** - * @description The HTTP URL for reverting this pull request. - */ - revertUrl: () => new Field("revertUrl"), - - /** - * @description The current status of this pull request with respect to code review. - */ - reviewDecision: () => new Field("reviewDecision"), - - /** - * @description A list of review requests associated with the pull request. - */ - - reviewRequests: (variables, select) => - new Field( - "reviewRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ReviewRequestConnection)) - ), - - /** - * @description The list of all review threads for this pull request. - */ - - reviewThreads: (variables, select) => - new Field( - "reviewThreads", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewThreadConnection)) - ), - - /** - * @description A list of reviews associated with the pull request. - */ - - reviews: (variables, select) => - new Field( - "reviews", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("author", variables.author, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewConnection)) - ), - - /** - * @description Identifies the state of the pull request. - */ - state: () => new Field("state"), - - /** - * @description A list of reviewer suggestions based on commit history and past review comments. - */ - - suggestedReviewers: (select) => - new Field( - "suggestedReviewers", - undefined as never, - new SelectionSet(select(SuggestedReviewer)) - ), - - /** - * @description A list of events, comments, commits, etc. associated with the pull request. - * @deprecated `timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC. - */ - - timeline: (variables, select) => - new Field( - "timeline", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestTimelineConnection)) - ), - - /** - * @description A list of events, comments, commits, etc. associated with the pull request. - */ - - timelineItems: (variables, select) => - new Field( - "timelineItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("itemTypes", variables.itemTypes, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - new Argument("skip", variables.skip, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestTimelineItemsConnection)) - ), - - /** - * @description Identifies the pull request title. - */ - title: () => new Field("title"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this pull request. - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Whether or not the viewer can apply suggestion. - */ - viewerCanApplySuggestion: () => new Field("viewerCanApplySuggestion"), - - /** - * @description Check if the viewer can restore the deleted head ref. - */ - viewerCanDeleteHeadRef: () => new Field("viewerCanDeleteHeadRef"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), - - /** - * @description The merge body text for the viewer and method. - */ - viewerMergeBodyText: (variables) => new Field("viewerMergeBodyText"), - - /** - * @description The merge headline text for the viewer and method. - */ - viewerMergeHeadlineText: (variables) => new Field("viewerMergeHeadlineText"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), -}; - -export interface IPullRequestChangedFile { - readonly __typename: "PullRequestChangedFile"; - readonly additions: number; - readonly deletions: number; - readonly path: string; - readonly viewerViewedState: FileViewedState; -} - -interface PullRequestChangedFileSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The number of additions to the file. - */ - - readonly additions: () => Field<"additions">; - - /** - * @description The number of deletions to the file. - */ - - readonly deletions: () => Field<"deletions">; - - /** - * @description The path of the file. - */ - - readonly path: () => Field<"path">; - - /** - * @description The state of the file for the viewer. - */ - - readonly viewerViewedState: () => Field<"viewerViewedState">; -} - -export const PullRequestChangedFile: PullRequestChangedFileSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of additions to the file. - */ - additions: () => new Field("additions"), - - /** - * @description The number of deletions to the file. - */ - deletions: () => new Field("deletions"), - - /** - * @description The path of the file. - */ - path: () => new Field("path"), - - /** - * @description The state of the file for the viewer. - */ - viewerViewedState: () => new Field("viewerViewedState"), -}; - -export interface IPullRequestChangedFileConnection { - readonly __typename: "PullRequestChangedFileConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestChangedFileConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestChangedFileEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestChangedFileSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestChangedFileConnection: PullRequestChangedFileConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestChangedFileEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestChangedFile)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestChangedFileEdge { - readonly __typename: "PullRequestChangedFileEdge"; - readonly cursor: string; - readonly node: IPullRequestChangedFile | null; -} - -interface PullRequestChangedFileEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestChangedFileSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestChangedFileEdge: PullRequestChangedFileEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestChangedFile)) - ), -}; - -export interface IPullRequestCommit extends INode, IUniformResourceLocatable { - readonly __typename: "PullRequestCommit"; - readonly commit: ICommit; - readonly pullRequest: IPullRequest; -} - -interface PullRequestCommitSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The Git commit object - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The pull request this commit belongs to - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The HTTP path for this pull request commit - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this pull request commit - */ - - readonly url: () => Field<"url">; -} - -export const isPullRequestCommit = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestCommit"; -}; - -export const PullRequestCommit: PullRequestCommitSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The Git commit object - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - id: () => new Field("id"), - - /** - * @description The pull request this commit belongs to - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The HTTP path for this pull request commit - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this pull request commit - */ - url: () => new Field("url"), -}; - -export interface IPullRequestCommitCommentThread - extends INode, - IRepositoryNode { - readonly __typename: "PullRequestCommitCommentThread"; - readonly comments: ICommitCommentConnection; - readonly commit: ICommit; - readonly path: string | null; - readonly position: number | null; - readonly pullRequest: IPullRequest; -} - -interface PullRequestCommitCommentThreadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The comments that exist in this thread. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The commit the comments were made on. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The file the comments were made on. - */ - - readonly path: () => Field<"path">; - - /** - * @description The position in the diff for the commit that the comment was made on. - */ - - readonly position: () => Field<"position">; - - /** - * @description The pull request this commit comment thread belongs to - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const isPullRequestCommitCommentThread = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestCommitCommentThread"; -}; - -export const PullRequestCommitCommentThread: PullRequestCommitCommentThreadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The comments that exist in this thread. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitCommentConnection)) - ), - - /** - * @description The commit the comments were made on. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - id: () => new Field("id"), - - /** - * @description The file the comments were made on. - */ - path: () => new Field("path"), - - /** - * @description The position in the diff for the commit that the comment was made on. - */ - position: () => new Field("position"), - - /** - * @description The pull request this commit comment thread belongs to - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IPullRequestCommitConnection { - readonly __typename: "PullRequestCommitConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestCommitConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestCommitEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestCommitSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestCommitConnection: PullRequestCommitConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestCommitEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestCommit)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestCommitEdge { - readonly __typename: "PullRequestCommitEdge"; - readonly cursor: string; - readonly node: IPullRequestCommit | null; -} - -interface PullRequestCommitEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestCommitSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestCommitEdge: PullRequestCommitEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestCommit)) - ), -}; - -export interface IPullRequestConnection { - readonly __typename: "PullRequestConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestConnection: PullRequestConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestContributionsByRepository { - readonly __typename: "PullRequestContributionsByRepository"; - readonly contributions: ICreatedPullRequestContributionConnection; - readonly repository: IRepository; -} - -interface PullRequestContributionsByRepositorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The pull request contributions. - */ - - readonly contributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedPullRequestContributionConnectionSelector) => T - ) => Field< - "contributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description The repository in which the pull requests were opened. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const PullRequestContributionsByRepository: PullRequestContributionsByRepositorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The pull request contributions. - */ - - contributions: (variables, select) => - new Field( - "contributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedPullRequestContributionConnection)) - ), - - /** - * @description The repository in which the pull requests were opened. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IPullRequestEdge { - readonly __typename: "PullRequestEdge"; - readonly cursor: string; - readonly node: IPullRequest | null; -} - -interface PullRequestEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestEdge: PullRequestEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IPullRequestReview - extends IComment, - IDeletable, - INode, - IReactable, - IRepositoryNode, - IUpdatable, - IUpdatableComment { - readonly __typename: "PullRequestReview"; - readonly authorCanPushToRepository: boolean; - readonly comments: IPullRequestReviewCommentConnection; - readonly commit: ICommit | null; - readonly onBehalfOf: ITeamConnection; - readonly pullRequest: IPullRequest; - readonly resourcePath: unknown; - readonly state: PullRequestReviewState; - readonly submittedAt: unknown | null; - readonly url: unknown; -} - -interface PullRequestReviewSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description Indicates whether the author of this review has push access to the repository. - */ - - readonly authorCanPushToRepository: () => Field<"authorCanPushToRepository">; - - /** - * @description Identifies the pull request review body. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body of this review rendered as plain text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description A list of review comments for the current pull request review. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PullRequestReviewCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies the commit associated with this pull request review. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description A list of teams that this review was made on behalf of. - */ - - readonly onBehalfOf: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: TeamConnectionSelector) => T - ) => Field< - "onBehalfOf", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description Identifies the pull request associated with this pull request review. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path permalink for this PullRequestReview. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the current state of the pull request review. - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies when the Pull Request Review was submitted - */ - - readonly submittedAt: () => Field<"submittedAt">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL permalink for this PullRequestReview. - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isPullRequestReview = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestReview"; -}; - -export const PullRequestReview: PullRequestReviewSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description Indicates whether the author of this review has push access to the repository. - */ - authorCanPushToRepository: () => new Field("authorCanPushToRepository"), - - /** - * @description Identifies the pull request review body. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body of this review rendered as plain text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description A list of review comments for the current pull request review. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewCommentConnection)) - ), - - /** - * @description Identifies the commit associated with this pull request review. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description A list of teams that this review was made on behalf of. - */ - - onBehalfOf: (variables, select) => - new Field( - "onBehalfOf", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(TeamConnection)) - ), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description Identifies the pull request associated with this pull request review. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path permalink for this PullRequestReview. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the current state of the pull request review. - */ - state: () => new Field("state"), - - /** - * @description Identifies when the Pull Request Review was submitted - */ - submittedAt: () => new Field("submittedAt"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL permalink for this PullRequestReview. - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface IPullRequestReviewComment - extends IComment, - IDeletable, - IMinimizable, - INode, - IReactable, - IRepositoryNode, - IUpdatable, - IUpdatableComment { - readonly __typename: "PullRequestReviewComment"; - readonly commit: ICommit | null; - readonly diffHunk: string; - readonly draftedAt: unknown; - readonly originalCommit: ICommit | null; - readonly originalPosition: number; - readonly outdated: boolean; - readonly path: string; - readonly position: number | null; - readonly pullRequest: IPullRequest; - readonly pullRequestReview: IPullRequestReview | null; - readonly replyTo: IPullRequestReviewComment | null; - readonly resourcePath: unknown; - readonly state: PullRequestReviewCommentState; - readonly url: unknown; -} - -interface PullRequestReviewCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the subject of the comment. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description The comment body of this review comment. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The comment body of this review comment rendered as plain text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the commit associated with the comment. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies when the comment was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The diff hunk to which the comment applies. - */ - - readonly diffHunk: () => Field<"diffHunk">; - - /** - * @description Identifies when the comment was created in a draft state. - */ - - readonly draftedAt: () => Field<"draftedAt">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Returns whether or not a comment has been minimized. - */ - - readonly isMinimized: () => Field<"isMinimized">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Returns why the comment was minimized. - */ - - readonly minimizedReason: () => Field<"minimizedReason">; - - /** - * @description Identifies the original commit associated with the comment. - */ - - readonly originalCommit: >( - select: (t: CommitSelector) => T - ) => Field<"originalCommit", never, SelectionSet>; - - /** - * @description The original line index in the diff to which the comment applies. - */ - - readonly originalPosition: () => Field<"originalPosition">; - - /** - * @description Identifies when the comment body is outdated - */ - - readonly outdated: () => Field<"outdated">; - - /** - * @description The path to which the comment applies. - */ - - readonly path: () => Field<"path">; - - /** - * @description The line index in the diff to which the comment applies. - */ - - readonly position: () => Field<"position">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description The pull request associated with this review comment. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The pull request review associated with this review comment. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The comment this is a reply to. - */ - - readonly replyTo: >( - select: (t: PullRequestReviewCommentSelector) => T - ) => Field<"replyTo", never, SelectionSet>; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The HTTP path permalink for this review comment. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the state of the comment. - */ - - readonly state: () => Field<"state">; - - /** - * @description Identifies when the comment was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL permalink for this review comment. - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Check if the current viewer can minimize this object. - */ - - readonly viewerCanMinimize: () => Field<"viewerCanMinimize">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isPullRequestReviewComment = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestReviewComment"; -}; - -export const PullRequestReviewComment: PullRequestReviewCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the subject of the comment. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description The comment body of this review comment. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The comment body of this review comment rendered as plain text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the commit associated with the comment. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies when the comment was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The diff hunk to which the comment applies. - */ - diffHunk: () => new Field("diffHunk"), - - /** - * @description Identifies when the comment was created in a draft state. - */ - draftedAt: () => new Field("draftedAt"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Returns whether or not a comment has been minimized. - */ - isMinimized: () => new Field("isMinimized"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Returns why the comment was minimized. - */ - minimizedReason: () => new Field("minimizedReason"), - - /** - * @description Identifies the original commit associated with the comment. - */ - - originalCommit: (select) => - new Field( - "originalCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description The original line index in the diff to which the comment applies. - */ - originalPosition: () => new Field("originalPosition"), - - /** - * @description Identifies when the comment body is outdated - */ - outdated: () => new Field("outdated"), - - /** - * @description The path to which the comment applies. - */ - path: () => new Field("path"), - - /** - * @description The line index in the diff to which the comment applies. - */ - position: () => new Field("position"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description The pull request associated with this review comment. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The pull request review associated with this review comment. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The comment this is a reply to. - */ - - replyTo: (select) => - new Field( - "replyTo", - undefined as never, - new SelectionSet(select(PullRequestReviewComment)) - ), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path permalink for this review comment. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the state of the comment. - */ - state: () => new Field("state"), - - /** - * @description Identifies when the comment was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL permalink for this review comment. - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Check if the current viewer can minimize this object. - */ - viewerCanMinimize: () => new Field("viewerCanMinimize"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface IPullRequestReviewCommentConnection { - readonly __typename: "PullRequestReviewCommentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestReviewCommentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestReviewCommentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestReviewCommentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestReviewCommentConnection: PullRequestReviewCommentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestReviewCommentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestReviewComment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestReviewCommentEdge { - readonly __typename: "PullRequestReviewCommentEdge"; - readonly cursor: string; - readonly node: IPullRequestReviewComment | null; -} - -interface PullRequestReviewCommentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestReviewCommentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestReviewCommentEdge: PullRequestReviewCommentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestReviewComment)) - ), -}; - -export interface IPullRequestReviewConnection { - readonly __typename: "PullRequestReviewConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestReviewConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestReviewEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestReviewConnection: PullRequestReviewConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestReviewEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestReviewContributionsByRepository { - readonly __typename: "PullRequestReviewContributionsByRepository"; - readonly contributions: ICreatedPullRequestReviewContributionConnection; - readonly repository: IRepository; -} - -interface PullRequestReviewContributionsByRepositorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The pull request review contributions. - */ - - readonly contributions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ContributionOrder; - }, - select: (t: CreatedPullRequestReviewContributionConnectionSelector) => T - ) => Field< - "contributions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ContributionOrder> - ], - SelectionSet - >; - - /** - * @description The repository in which the pull request reviews were made. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const PullRequestReviewContributionsByRepository: PullRequestReviewContributionsByRepositorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The pull request review contributions. - */ - - contributions: (variables, select) => - new Field( - "contributions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(CreatedPullRequestReviewContributionConnection)) - ), - - /** - * @description The repository in which the pull request reviews were made. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IPullRequestReviewEdge { - readonly __typename: "PullRequestReviewEdge"; - readonly cursor: string; - readonly node: IPullRequestReview | null; -} - -interface PullRequestReviewEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestReviewEdge: PullRequestReviewEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface IPullRequestReviewThread extends INode { - readonly __typename: "PullRequestReviewThread"; - readonly comments: IPullRequestReviewCommentConnection; - readonly diffSide: DiffSide; - readonly isCollapsed: boolean; - readonly isOutdated: boolean; - readonly isResolved: boolean; - readonly line: number | null; - readonly originalLine: number | null; - readonly originalStartLine: number | null; - readonly path: string; - readonly pullRequest: IPullRequest; - readonly repository: IRepository; - readonly resolvedBy: IUser | null; - readonly startDiffSide: DiffSide | null; - readonly startLine: number | null; - readonly viewerCanReply: boolean; - readonly viewerCanResolve: boolean; - readonly viewerCanUnresolve: boolean; -} - -interface PullRequestReviewThreadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of pull request comments associated with the thread. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - skip?: Variable<"skip"> | number; - }, - select: (t: PullRequestReviewCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"skip", Variable<"skip"> | number> - ], - SelectionSet - >; - - /** - * @description The side of the diff on which this thread was placed. - */ - - readonly diffSide: () => Field<"diffSide">; - - readonly id: () => Field<"id">; - - /** - * @description Whether or not the thread has been collapsed (outdated or resolved) - */ - - readonly isCollapsed: () => Field<"isCollapsed">; - - /** - * @description Indicates whether this thread was outdated by newer changes. - */ - - readonly isOutdated: () => Field<"isOutdated">; - - /** - * @description Whether this thread has been resolved - */ - - readonly isResolved: () => Field<"isResolved">; - - /** - * @description The line in the file to which this thread refers - */ - - readonly line: () => Field<"line">; - - /** - * @description The original line in the file to which this thread refers. - */ - - readonly originalLine: () => Field<"originalLine">; - - /** - * @description The original start line in the file to which this thread refers (multi-line only). - */ - - readonly originalStartLine: () => Field<"originalStartLine">; - - /** - * @description Identifies the file path of this thread. - */ - - readonly path: () => Field<"path">; - - /** - * @description Identifies the pull request associated with this thread. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the repository associated with this thread. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The user who resolved this thread - */ - - readonly resolvedBy: >( - select: (t: UserSelector) => T - ) => Field<"resolvedBy", never, SelectionSet>; - - /** - * @description The side of the diff that the first line of the thread starts on (multi-line only) - */ - - readonly startDiffSide: () => Field<"startDiffSide">; - - /** - * @description The start line in the file to which this thread refers (multi-line only) - */ - - readonly startLine: () => Field<"startLine">; - - /** - * @description Indicates whether the current viewer can reply to this thread. - */ - - readonly viewerCanReply: () => Field<"viewerCanReply">; - - /** - * @description Whether or not the viewer can resolve this thread - */ - - readonly viewerCanResolve: () => Field<"viewerCanResolve">; - - /** - * @description Whether or not the viewer can unresolve this thread - */ - - readonly viewerCanUnresolve: () => Field<"viewerCanUnresolve">; -} - -export const isPullRequestReviewThread = ( - object: Record -): object is Partial => { - return object.__typename === "PullRequestReviewThread"; -}; - -export const PullRequestReviewThread: PullRequestReviewThreadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of pull request comments associated with the thread. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("skip", variables.skip, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestReviewCommentConnection)) - ), - - /** - * @description The side of the diff on which this thread was placed. - */ - diffSide: () => new Field("diffSide"), - id: () => new Field("id"), - - /** - * @description Whether or not the thread has been collapsed (outdated or resolved) - */ - isCollapsed: () => new Field("isCollapsed"), - - /** - * @description Indicates whether this thread was outdated by newer changes. - */ - isOutdated: () => new Field("isOutdated"), - - /** - * @description Whether this thread has been resolved - */ - isResolved: () => new Field("isResolved"), - - /** - * @description The line in the file to which this thread refers - */ - line: () => new Field("line"), - - /** - * @description The original line in the file to which this thread refers. - */ - originalLine: () => new Field("originalLine"), - - /** - * @description The original start line in the file to which this thread refers (multi-line only). - */ - originalStartLine: () => new Field("originalStartLine"), - - /** - * @description Identifies the file path of this thread. - */ - path: () => new Field("path"), - - /** - * @description Identifies the pull request associated with this thread. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the repository associated with this thread. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The user who resolved this thread - */ - - resolvedBy: (select) => - new Field("resolvedBy", undefined as never, new SelectionSet(select(User))), - - /** - * @description The side of the diff that the first line of the thread starts on (multi-line only) - */ - startDiffSide: () => new Field("startDiffSide"), - - /** - * @description The start line in the file to which this thread refers (multi-line only) - */ - startLine: () => new Field("startLine"), - - /** - * @description Indicates whether the current viewer can reply to this thread. - */ - viewerCanReply: () => new Field("viewerCanReply"), - - /** - * @description Whether or not the viewer can resolve this thread - */ - viewerCanResolve: () => new Field("viewerCanResolve"), - - /** - * @description Whether or not the viewer can unresolve this thread - */ - viewerCanUnresolve: () => new Field("viewerCanUnresolve"), -}; - -export interface IPullRequestReviewThreadConnection { - readonly __typename: "PullRequestReviewThreadConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestReviewThreadConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestReviewThreadEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestReviewThreadSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestReviewThreadConnection: PullRequestReviewThreadConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestReviewThreadEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestReviewThread)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestReviewThreadEdge { - readonly __typename: "PullRequestReviewThreadEdge"; - readonly cursor: string; - readonly node: IPullRequestReviewThread | null; -} - -interface PullRequestReviewThreadEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestReviewThreadSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestReviewThreadEdge: PullRequestReviewThreadEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestReviewThread)) - ), -}; - -export interface IPullRequestRevisionMarker { - readonly __typename: "PullRequestRevisionMarker"; - readonly createdAt: unknown; - readonly lastSeenCommit: ICommit; - readonly pullRequest: IPullRequest; -} - -interface PullRequestRevisionMarkerSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The last commit the viewer has seen. - */ - - readonly lastSeenCommit: >( - select: (t: CommitSelector) => T - ) => Field<"lastSeenCommit", never, SelectionSet>; - - /** - * @description The pull request to which the marker belongs. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const PullRequestRevisionMarker: PullRequestRevisionMarkerSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The last commit the viewer has seen. - */ - - lastSeenCommit: (select) => - new Field( - "lastSeenCommit", - undefined as never, - new SelectionSet(select(Commit)) - ), - - /** - * @description The pull request to which the marker belongs. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IPullRequestTimelineConnection { - readonly __typename: "PullRequestTimelineConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PullRequestTimelineConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestTimelineItemEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestTimelineItemSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PullRequestTimelineConnection: PullRequestTimelineConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestTimelineItemEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestTimelineItem)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPullRequestTimelineItemEdge { - readonly __typename: "PullRequestTimelineItemEdge"; - readonly cursor: string; - readonly node: IPullRequestTimelineItem | null; -} - -interface PullRequestTimelineItemEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestTimelineItemSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestTimelineItemEdge: PullRequestTimelineItemEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestTimelineItem)) - ), -}; - -export interface IPullRequestTimelineItemsConnection { - readonly __typename: "PullRequestTimelineItemsConnection"; - readonly edges: ReadonlyArray | null; - readonly filteredCount: number; - readonly nodes: ReadonlyArray | null; - readonly pageCount: number; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly updatedAt: unknown; -} - -interface PullRequestTimelineItemsConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PullRequestTimelineItemsEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description Identifies the count of items after applying `before` and `after` filters. - */ - - readonly filteredCount: () => Field<"filteredCount">; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PullRequestTimelineItemsSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - */ - - readonly pageCount: () => Field<"pageCount">; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description Identifies the date and time when the timeline was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const PullRequestTimelineItemsConnection: PullRequestTimelineItemsConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PullRequestTimelineItemsEdge)) - ), - - /** - * @description Identifies the count of items after applying `before` and `after` filters. - */ - filteredCount: () => new Field("filteredCount"), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PullRequestTimelineItems)) - ), - - /** - * @description Identifies the count of items after applying `before`/`after` filters and `first`/`last`/`skip` slicing. - */ - pageCount: () => new Field("pageCount"), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description Identifies the date and time when the timeline was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IPullRequestTimelineItemsEdge { - readonly __typename: "PullRequestTimelineItemsEdge"; - readonly cursor: string; - readonly node: IPullRequestTimelineItems | null; -} - -interface PullRequestTimelineItemsEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PullRequestTimelineItemsSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PullRequestTimelineItemsEdge: PullRequestTimelineItemsEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PullRequestTimelineItems)) - ), -}; - -export interface IPush extends INode { - readonly __typename: "Push"; - readonly nextSha: unknown | null; - readonly permalink: unknown; - readonly previousSha: unknown | null; - readonly pusher: IUser; - readonly repository: IRepository; -} - -interface PushSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description The SHA after the push - */ - - readonly nextSha: () => Field<"nextSha">; - - /** - * @description The permalink for this push. - */ - - readonly permalink: () => Field<"permalink">; - - /** - * @description The SHA before the push - */ - - readonly previousSha: () => Field<"previousSha">; - - /** - * @description The user who pushed - */ - - readonly pusher: >( - select: (t: UserSelector) => T - ) => Field<"pusher", never, SelectionSet>; - - /** - * @description The repository that was pushed to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const isPush = ( - object: Record -): object is Partial => { - return object.__typename === "Push"; -}; - -export const Push: PushSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description The SHA after the push - */ - nextSha: () => new Field("nextSha"), - - /** - * @description The permalink for this push. - */ - permalink: () => new Field("permalink"), - - /** - * @description The SHA before the push - */ - previousSha: () => new Field("previousSha"), - - /** - * @description The user who pushed - */ - - pusher: (select) => - new Field("pusher", undefined as never, new SelectionSet(select(User))), - - /** - * @description The repository that was pushed to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IPushAllowance extends INode { - readonly __typename: "PushAllowance"; - readonly actor: IPushAllowanceActor | null; - readonly branchProtectionRule: IBranchProtectionRule | null; -} - -interface PushAllowanceSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor that can push. - */ - - readonly actor: >( - select: (t: PushAllowanceActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the branch protection rule associated with the allowed user or team. - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - readonly id: () => Field<"id">; -} - -export const isPushAllowance = ( - object: Record -): object is Partial => { - return object.__typename === "PushAllowance"; -}; - -export const PushAllowance: PushAllowanceSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor that can push. - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(PushAllowanceActor)) - ), - - /** - * @description Identifies the branch protection rule associated with the allowed user or team. - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - id: () => new Field("id"), -}; - -export interface IPushAllowanceConnection { - readonly __typename: "PushAllowanceConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface PushAllowanceConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: PushAllowanceEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: PushAllowanceSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const PushAllowanceConnection: PushAllowanceConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(PushAllowanceEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(PushAllowance)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IPushAllowanceEdge { - readonly __typename: "PushAllowanceEdge"; - readonly cursor: string; - readonly node: IPushAllowance | null; -} - -interface PushAllowanceEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: PushAllowanceSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const PushAllowanceEdge: PushAllowanceEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(PushAllowance)) - ), -}; - -export interface IQuery { - readonly __typename: "Query"; - readonly codeOfConduct: ICodeOfConduct | null; - readonly codesOfConduct: ReadonlyArray | null; - readonly enterprise: IEnterprise | null; - readonly enterpriseAdministratorInvitation: IEnterpriseAdministratorInvitation | null; - readonly enterpriseAdministratorInvitationByToken: IEnterpriseAdministratorInvitation | null; - readonly license: ILicense | null; - readonly licenses: ReadonlyArray; - readonly marketplaceCategories: ReadonlyArray; - readonly marketplaceCategory: IMarketplaceCategory | null; - readonly marketplaceListing: IMarketplaceListing | null; - readonly marketplaceListings: IMarketplaceListingConnection; - readonly meta: IGitHubMetadata; - readonly node: INode | null; - readonly nodes: ReadonlyArray; - readonly organization: IOrganization | null; - readonly rateLimit: IRateLimit | null; - readonly relay: IQuery; - readonly repository: IRepository | null; - readonly repositoryOwner: IRepositoryOwner | null; - readonly resource: IUniformResourceLocatable | null; - readonly search: ISearchResultItemConnection; - readonly securityAdvisories: ISecurityAdvisoryConnection; - readonly securityAdvisory: ISecurityAdvisory | null; - readonly securityVulnerabilities: ISecurityVulnerabilityConnection; - readonly sponsorsListing: ISponsorsListing | null; - readonly topic: ITopic | null; - readonly user: IUser | null; - readonly viewer: IUser; -} - -interface QuerySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Look up a code of conduct by its key - */ - - readonly codeOfConduct: >( - variables: { key?: Variable<"key"> | string }, - select: (t: CodeOfConductSelector) => T - ) => Field< - "codeOfConduct", - [Argument<"key", Variable<"key"> | string>], - SelectionSet - >; - - /** - * @description Look up a code of conduct by its key - */ - - readonly codesOfConduct: >( - select: (t: CodeOfConductSelector) => T - ) => Field<"codesOfConduct", never, SelectionSet>; - - /** - * @description Look up an enterprise by URL slug. - */ - - readonly enterprise: >( - variables: { - invitationToken?: Variable<"invitationToken"> | string; - slug?: Variable<"slug"> | string; - }, - select: (t: EnterpriseSelector) => T - ) => Field< - "enterprise", - [ - Argument<"invitationToken", Variable<"invitationToken"> | string>, - Argument<"slug", Variable<"slug"> | string> - ], - SelectionSet - >; - - /** - * @description Look up a pending enterprise administrator invitation by invitee, enterprise and role. - */ - - readonly enterpriseAdministratorInvitation: >( - variables: { - enterpriseSlug?: Variable<"enterpriseSlug"> | string; - role?: Variable<"role"> | EnterpriseAdministratorRole; - userLogin?: Variable<"userLogin"> | string; - }, - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field< - "enterpriseAdministratorInvitation", - [ - Argument<"enterpriseSlug", Variable<"enterpriseSlug"> | string>, - Argument<"role", Variable<"role"> | EnterpriseAdministratorRole>, - Argument<"userLogin", Variable<"userLogin"> | string> - ], - SelectionSet - >; - - /** - * @description Look up a pending enterprise administrator invitation by invitation token. - */ - - readonly enterpriseAdministratorInvitationByToken: < - T extends Array - >( - variables: { invitationToken?: Variable<"invitationToken"> | string }, - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => Field< - "enterpriseAdministratorInvitationByToken", - [Argument<"invitationToken", Variable<"invitationToken"> | string>], - SelectionSet - >; - - /** - * @description Look up an open source license by its key - */ - - readonly license: >( - variables: { key?: Variable<"key"> | string }, - select: (t: LicenseSelector) => T - ) => Field< - "license", - [Argument<"key", Variable<"key"> | string>], - SelectionSet - >; - - /** - * @description Return a list of known open source licenses - */ - - readonly licenses: >( - select: (t: LicenseSelector) => T - ) => Field<"licenses", never, SelectionSet>; - - /** - * @description Get alphabetically sorted list of Marketplace categories - */ - - readonly marketplaceCategories: >( - variables: { - excludeEmpty?: Variable<"excludeEmpty"> | boolean; - excludeSubcategories?: Variable<"excludeSubcategories"> | boolean; - includeCategories?: Variable<"includeCategories"> | string; - }, - select: (t: MarketplaceCategorySelector) => T - ) => Field< - "marketplaceCategories", - [ - Argument<"excludeEmpty", Variable<"excludeEmpty"> | boolean>, - Argument< - "excludeSubcategories", - Variable<"excludeSubcategories"> | boolean - >, - Argument<"includeCategories", Variable<"includeCategories"> | string> - ], - SelectionSet - >; - - /** - * @description Look up a Marketplace category by its slug. - */ - - readonly marketplaceCategory: >( - variables: { - slug?: Variable<"slug"> | string; - useTopicAliases?: Variable<"useTopicAliases"> | boolean; - }, - select: (t: MarketplaceCategorySelector) => T - ) => Field< - "marketplaceCategory", - [ - Argument<"slug", Variable<"slug"> | string>, - Argument<"useTopicAliases", Variable<"useTopicAliases"> | boolean> - ], - SelectionSet - >; - - /** - * @description Look up a single Marketplace listing - */ - - readonly marketplaceListing: >( - variables: { slug?: Variable<"slug"> | string }, - select: (t: MarketplaceListingSelector) => T - ) => Field< - "marketplaceListing", - [Argument<"slug", Variable<"slug"> | string>], - SelectionSet - >; - - /** - * @description Look up Marketplace listings - */ - - readonly marketplaceListings: >( - variables: { - adminId?: Variable<"adminId"> | string; - after?: Variable<"after"> | string; - allStates?: Variable<"allStates"> | boolean; - before?: Variable<"before"> | string; - categorySlug?: Variable<"categorySlug"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - organizationId?: Variable<"organizationId"> | string; - primaryCategoryOnly?: Variable<"primaryCategoryOnly"> | boolean; - slugs?: Variable<"slugs"> | string; - useTopicAliases?: Variable<"useTopicAliases"> | boolean; - viewerCanAdmin?: Variable<"viewerCanAdmin"> | boolean; - withFreeTrialsOnly?: Variable<"withFreeTrialsOnly"> | boolean; - }, - select: (t: MarketplaceListingConnectionSelector) => T - ) => Field< - "marketplaceListings", - [ - Argument<"adminId", Variable<"adminId"> | string>, - Argument<"after", Variable<"after"> | string>, - Argument<"allStates", Variable<"allStates"> | boolean>, - Argument<"before", Variable<"before"> | string>, - Argument<"categorySlug", Variable<"categorySlug"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"organizationId", Variable<"organizationId"> | string>, - Argument< - "primaryCategoryOnly", - Variable<"primaryCategoryOnly"> | boolean - >, - Argument<"slugs", Variable<"slugs"> | string>, - Argument<"useTopicAliases", Variable<"useTopicAliases"> | boolean>, - Argument<"viewerCanAdmin", Variable<"viewerCanAdmin"> | boolean>, - Argument<"withFreeTrialsOnly", Variable<"withFreeTrialsOnly"> | boolean> - ], - SelectionSet - >; - - /** - * @description Return information about the GitHub instance - */ - - readonly meta: >( - select: (t: GitHubMetadataSelector) => T - ) => Field<"meta", never, SelectionSet>; - - /** - * @description Fetches an object given its ID. - */ - - readonly node: >( - variables: { id?: Variable<"id"> | string }, - select: (t: NodeSelector) => T - ) => Field< - "node", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - /** - * @description Lookup nodes by a list of IDs. - */ - - readonly nodes: >( - variables: { ids?: Variable<"ids"> | string }, - select: (t: NodeSelector) => T - ) => Field< - "nodes", - [Argument<"ids", Variable<"ids"> | string>], - SelectionSet - >; - - /** - * @description Lookup a organization by login. - */ - - readonly organization: >( - variables: { login?: Variable<"login"> | string }, - select: (t: OrganizationSelector) => T - ) => Field< - "organization", - [Argument<"login", Variable<"login"> | string>], - SelectionSet - >; - - /** - * @description The client's rate limit information. - */ - - readonly rateLimit: >( - variables: { dryRun?: Variable<"dryRun"> | boolean }, - select: (t: RateLimitSelector) => T - ) => Field< - "rateLimit", - [Argument<"dryRun", Variable<"dryRun"> | boolean>], - SelectionSet - >; - - /** - * @description Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object - */ - - readonly relay: >( - select: (t: QuerySelector) => T - ) => Field<"relay", never, SelectionSet>; - - /** - * @description Lookup a given repository by the owner and repository name. - */ - - readonly repository: >( - variables: { - name?: Variable<"name"> | string; - owner?: Variable<"owner"> | string; - }, - select: (t: RepositorySelector) => T - ) => Field< - "repository", - [ - Argument<"name", Variable<"name"> | string>, - Argument<"owner", Variable<"owner"> | string> - ], - SelectionSet - >; - - /** - * @description Lookup a repository owner (ie. either a User or an Organization) by login. - */ - - readonly repositoryOwner: >( - variables: { login?: Variable<"login"> | string }, - select: (t: RepositoryOwnerSelector) => T - ) => Field< - "repositoryOwner", - [Argument<"login", Variable<"login"> | string>], - SelectionSet - >; - - /** - * @description Lookup resource by a URL. - */ - - readonly resource: >( - variables: { url?: Variable<"url"> | unknown }, - select: (t: UniformResourceLocatableSelector) => T - ) => Field< - "resource", - [Argument<"url", Variable<"url"> | unknown>], - SelectionSet - >; - - /** - * @description Perform a search across resources. - */ - - readonly search: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - type?: Variable<"type"> | SearchType; - }, - select: (t: SearchResultItemConnectionSelector) => T - ) => Field< - "search", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string>, - Argument<"type", Variable<"type"> | SearchType> - ], - SelectionSet - >; - - /** - * @description GitHub Security Advisories - */ - - readonly securityAdvisories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - identifier?: Variable<"identifier"> | SecurityAdvisoryIdentifierFilter; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SecurityAdvisoryOrder; - publishedSince?: Variable<"publishedSince"> | unknown; - updatedSince?: Variable<"updatedSince"> | unknown; - }, - select: (t: SecurityAdvisoryConnectionSelector) => T - ) => Field< - "securityAdvisories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument< - "identifier", - Variable<"identifier"> | SecurityAdvisoryIdentifierFilter - >, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SecurityAdvisoryOrder>, - Argument<"publishedSince", Variable<"publishedSince"> | unknown>, - Argument<"updatedSince", Variable<"updatedSince"> | unknown> - ], - SelectionSet - >; - - /** - * @description Fetch a Security Advisory by its GHSA ID - */ - - readonly securityAdvisory: >( - variables: { ghsaId?: Variable<"ghsaId"> | string }, - select: (t: SecurityAdvisorySelector) => T - ) => Field< - "securityAdvisory", - [Argument<"ghsaId", Variable<"ghsaId"> | string>], - SelectionSet - >; - - /** - * @description Software Vulnerabilities documented by GitHub Security Advisories - */ - - readonly securityVulnerabilities: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - ecosystem?: Variable<"ecosystem"> | SecurityAdvisoryEcosystem; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SecurityVulnerabilityOrder; - package?: Variable<"package"> | string; - severities?: Variable<"severities"> | SecurityAdvisorySeverity; - }, - select: (t: SecurityVulnerabilityConnectionSelector) => T - ) => Field< - "securityVulnerabilities", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"ecosystem", Variable<"ecosystem"> | SecurityAdvisoryEcosystem>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SecurityVulnerabilityOrder>, - Argument<"package", Variable<"package"> | string>, - Argument<"severities", Variable<"severities"> | SecurityAdvisorySeverity> - ], - SelectionSet - >; - - /** - * @description Look up a single Sponsors Listing - * @deprecated `Query.sponsorsListing` will be removed. Use `Sponsorable.sponsorsListing` instead. Removal on 2020-04-01 UTC. - */ - - readonly sponsorsListing: >( - variables: { slug?: Variable<"slug"> | string }, - select: (t: SponsorsListingSelector) => T - ) => Field< - "sponsorsListing", - [Argument<"slug", Variable<"slug"> | string>], - SelectionSet - >; - - /** - * @description Look up a topic by name. - */ - - readonly topic: >( - variables: { name?: Variable<"name"> | string }, - select: (t: TopicSelector) => T - ) => Field< - "topic", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description Lookup a user by login. - */ - - readonly user: >( - variables: { login?: Variable<"login"> | string }, - select: (t: UserSelector) => T - ) => Field< - "user", - [Argument<"login", Variable<"login"> | string>], - SelectionSet - >; - - /** - * @description The currently authenticated user. - */ - - readonly viewer: >( - select: (t: UserSelector) => T - ) => Field<"viewer", never, SelectionSet>; -} - -export const Query: QuerySelector = { - __typename: () => new Field("__typename"), - - /** - * @description Look up a code of conduct by its key - */ - - codeOfConduct: (variables, select) => - new Field( - "codeOfConduct", - [new Argument("key", variables.key, _ENUM_VALUES)], - new SelectionSet(select(CodeOfConduct)) - ), - - /** - * @description Look up a code of conduct by its key - */ - - codesOfConduct: (select) => - new Field( - "codesOfConduct", - undefined as never, - new SelectionSet(select(CodeOfConduct)) - ), - - /** - * @description Look up an enterprise by URL slug. - */ - - enterprise: (variables, select) => - new Field( - "enterprise", - [ - new Argument( - "invitationToken", - variables.invitationToken, - _ENUM_VALUES - ), - new Argument("slug", variables.slug, _ENUM_VALUES), - ], - new SelectionSet(select(Enterprise)) - ), - - /** - * @description Look up a pending enterprise administrator invitation by invitee, enterprise and role. - */ - - enterpriseAdministratorInvitation: (variables, select) => - new Field( - "enterpriseAdministratorInvitation", - [ - new Argument("enterpriseSlug", variables.enterpriseSlug, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - new Argument("userLogin", variables.userLogin, _ENUM_VALUES), - ], - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), - - /** - * @description Look up a pending enterprise administrator invitation by invitation token. - */ - - enterpriseAdministratorInvitationByToken: (variables, select) => - new Field( - "enterpriseAdministratorInvitationByToken", - [ - new Argument( - "invitationToken", - variables.invitationToken, - _ENUM_VALUES - ), - ], - new SelectionSet(select(EnterpriseAdministratorInvitation)) - ), - - /** - * @description Look up an open source license by its key - */ - - license: (variables, select) => - new Field( - "license", - [new Argument("key", variables.key, _ENUM_VALUES)], - new SelectionSet(select(License)) - ), - - /** - * @description Return a list of known open source licenses - */ - - licenses: (select) => - new Field( - "licenses", - undefined as never, - new SelectionSet(select(License)) - ), - - /** - * @description Get alphabetically sorted list of Marketplace categories - */ - - marketplaceCategories: (variables, select) => - new Field( - "marketplaceCategories", - [ - new Argument("excludeEmpty", variables.excludeEmpty, _ENUM_VALUES), - new Argument( - "excludeSubcategories", - variables.excludeSubcategories, - _ENUM_VALUES - ), - new Argument( - "includeCategories", - variables.includeCategories, - _ENUM_VALUES - ), - ], - new SelectionSet(select(MarketplaceCategory)) - ), - - /** - * @description Look up a Marketplace category by its slug. - */ - - marketplaceCategory: (variables, select) => - new Field( - "marketplaceCategory", - [ - new Argument("slug", variables.slug, _ENUM_VALUES), - new Argument( - "useTopicAliases", - variables.useTopicAliases, - _ENUM_VALUES - ), - ], - new SelectionSet(select(MarketplaceCategory)) - ), - - /** - * @description Look up a single Marketplace listing - */ - - marketplaceListing: (variables, select) => - new Field( - "marketplaceListing", - [new Argument("slug", variables.slug, _ENUM_VALUES)], - new SelectionSet(select(MarketplaceListing)) - ), - - /** - * @description Look up Marketplace listings - */ - - marketplaceListings: (variables, select) => - new Field( - "marketplaceListings", - [ - new Argument("adminId", variables.adminId, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("allStates", variables.allStates, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("categorySlug", variables.categorySlug, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("organizationId", variables.organizationId, _ENUM_VALUES), - new Argument( - "primaryCategoryOnly", - variables.primaryCategoryOnly, - _ENUM_VALUES - ), - new Argument("slugs", variables.slugs, _ENUM_VALUES), - new Argument( - "useTopicAliases", - variables.useTopicAliases, - _ENUM_VALUES - ), - new Argument("viewerCanAdmin", variables.viewerCanAdmin, _ENUM_VALUES), - new Argument( - "withFreeTrialsOnly", - variables.withFreeTrialsOnly, - _ENUM_VALUES - ), - ], - new SelectionSet(select(MarketplaceListingConnection)) - ), - - /** - * @description Return information about the GitHub instance - */ - - meta: (select) => - new Field( - "meta", - undefined as never, - new SelectionSet(select(GitHubMetadata)) - ), - - /** - * @description Fetches an object given its ID. - */ - - node: (variables, select) => - new Field( - "node", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(Node)) - ), - - /** - * @description Lookup nodes by a list of IDs. - */ - - nodes: (variables, select) => - new Field( - "nodes", - [new Argument("ids", variables.ids, _ENUM_VALUES)], - new SelectionSet(select(Node)) - ), - - /** - * @description Lookup a organization by login. - */ - - organization: (variables, select) => - new Field( - "organization", - [new Argument("login", variables.login, _ENUM_VALUES)], - new SelectionSet(select(Organization)) - ), - - /** - * @description The client's rate limit information. - */ - - rateLimit: (variables, select) => - new Field( - "rateLimit", - [new Argument("dryRun", variables.dryRun, _ENUM_VALUES)], - new SelectionSet(select(RateLimit)) - ), - - /** - * @description Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object - */ - - relay: (select) => - new Field("relay", undefined as never, new SelectionSet(select(Query))), - - /** - * @description Lookup a given repository by the owner and repository name. - */ - - repository: (variables, select) => - new Field( - "repository", - [ - new Argument("name", variables.name, _ENUM_VALUES), - new Argument("owner", variables.owner, _ENUM_VALUES), - ], - new SelectionSet(select(Repository)) - ), - - /** - * @description Lookup a repository owner (ie. either a User or an Organization) by login. - */ - - repositoryOwner: (variables, select) => - new Field( - "repositoryOwner", - [new Argument("login", variables.login, _ENUM_VALUES)], - new SelectionSet(select(RepositoryOwner)) - ), - - /** - * @description Lookup resource by a URL. - */ - - resource: (variables, select) => - new Field( - "resource", - [new Argument("url", variables.url, _ENUM_VALUES)], - new SelectionSet(select(UniformResourceLocatable)) - ), - - /** - * @description Perform a search across resources. - */ - - search: (variables, select) => - new Field( - "search", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("type", variables.type, _ENUM_VALUES), - ], - new SelectionSet(select(SearchResultItemConnection)) - ), - - /** - * @description GitHub Security Advisories - */ - - securityAdvisories: (variables, select) => - new Field( - "securityAdvisories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("identifier", variables.identifier, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("publishedSince", variables.publishedSince, _ENUM_VALUES), - new Argument("updatedSince", variables.updatedSince, _ENUM_VALUES), - ], - new SelectionSet(select(SecurityAdvisoryConnection)) - ), - - /** - * @description Fetch a Security Advisory by its GHSA ID - */ - - securityAdvisory: (variables, select) => - new Field( - "securityAdvisory", - [new Argument("ghsaId", variables.ghsaId, _ENUM_VALUES)], - new SelectionSet(select(SecurityAdvisory)) - ), - - /** - * @description Software Vulnerabilities documented by GitHub Security Advisories - */ - - securityVulnerabilities: (variables, select) => - new Field( - "securityVulnerabilities", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("ecosystem", variables.ecosystem, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("package", variables.package, _ENUM_VALUES), - new Argument("severities", variables.severities, _ENUM_VALUES), - ], - new SelectionSet(select(SecurityVulnerabilityConnection)) - ), - - /** - * @description Look up a single Sponsors Listing - * @deprecated `Query.sponsorsListing` will be removed. Use `Sponsorable.sponsorsListing` instead. Removal on 2020-04-01 UTC. - */ - - sponsorsListing: (variables, select) => - new Field( - "sponsorsListing", - [new Argument("slug", variables.slug, _ENUM_VALUES)], - new SelectionSet(select(SponsorsListing)) - ), - - /** - * @description Look up a topic by name. - */ - - topic: (variables, select) => - new Field( - "topic", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Topic)) - ), - - /** - * @description Lookup a user by login. - */ - - user: (variables, select) => - new Field( - "user", - [new Argument("login", variables.login, _ENUM_VALUES)], - new SelectionSet(select(User)) - ), - - /** - * @description The currently authenticated user. - */ - - viewer: (select) => - new Field("viewer", undefined as never, new SelectionSet(select(User))), -}; - -export interface IRateLimit { - readonly __typename: "RateLimit"; - readonly cost: number; - readonly limit: number; - readonly nodeCount: number; - readonly remaining: number; - readonly resetAt: unknown; - readonly used: number; -} - -interface RateLimitSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The point cost for the current query counting against the rate limit. - */ - - readonly cost: () => Field<"cost">; - - /** - * @description The maximum number of points the client is permitted to consume in a 60 minute window. - */ - - readonly limit: () => Field<"limit">; - - /** - * @description The maximum number of nodes this query may return - */ - - readonly nodeCount: () => Field<"nodeCount">; - - /** - * @description The number of points remaining in the current rate limit window. - */ - - readonly remaining: () => Field<"remaining">; - - /** - * @description The time at which the current rate limit window resets in UTC epoch seconds. - */ - - readonly resetAt: () => Field<"resetAt">; - - /** - * @description The number of points used in the current rate limit window. - */ - - readonly used: () => Field<"used">; -} - -export const RateLimit: RateLimitSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The point cost for the current query counting against the rate limit. - */ - cost: () => new Field("cost"), - - /** - * @description The maximum number of points the client is permitted to consume in a 60 minute window. - */ - limit: () => new Field("limit"), - - /** - * @description The maximum number of nodes this query may return - */ - nodeCount: () => new Field("nodeCount"), - - /** - * @description The number of points remaining in the current rate limit window. - */ - remaining: () => new Field("remaining"), - - /** - * @description The time at which the current rate limit window resets in UTC epoch seconds. - */ - resetAt: () => new Field("resetAt"), - - /** - * @description The number of points used in the current rate limit window. - */ - used: () => new Field("used"), -}; - -export interface IReactable { - readonly __typename: string; - readonly databaseId: number | null; - readonly id: string; - readonly reactionGroups: ReadonlyArray | null; - readonly reactions: IReactionConnection; - readonly viewerCanReact: boolean; -} - -interface ReactableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "Issue" - | "IssueComment" - | "PullRequest" - | "PullRequestReview" - | "PullRequestReviewComment" - | "TeamDiscussion" - | "TeamDiscussionComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Reactable: ReactableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Reactable", - }); - } - }, -}; - -export interface IReactingUserConnection { - readonly __typename: "ReactingUserConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ReactingUserConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReactingUserEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ReactingUserConnection: ReactingUserConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReactingUserEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IReactingUserEdge { - readonly __typename: "ReactingUserEdge"; - readonly cursor: string; - readonly node: IUser; - readonly reactedAt: unknown; -} - -interface ReactingUserEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The moment when the user made the reaction. - */ - - readonly reactedAt: () => Field<"reactedAt">; -} - -export const ReactingUserEdge: ReactingUserEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The moment when the user made the reaction. - */ - reactedAt: () => new Field("reactedAt"), -}; - -export interface IReaction extends INode { - readonly __typename: "Reaction"; - readonly content: ReactionContent; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly reactable: IReactable; - readonly user: IUser | null; -} - -interface ReactionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the emoji reaction. - */ - - readonly content: () => Field<"content">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description The reactable piece of content - */ - - readonly reactable: >( - select: (t: ReactableSelector) => T - ) => Field<"reactable", never, SelectionSet>; - - /** - * @description Identifies the user who created this reaction. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isReaction = ( - object: Record -): object is Partial => { - return object.__typename === "Reaction"; -}; - -export const Reaction: ReactionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the emoji reaction. - */ - content: () => new Field("content"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description The reactable piece of content - */ - - reactable: (select) => - new Field( - "reactable", - undefined as never, - new SelectionSet(select(Reactable)) - ), - - /** - * @description Identifies the user who created this reaction. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IReactionConnection { - readonly __typename: "ReactionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly viewerHasReacted: boolean; -} - -interface ReactionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReactionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ReactionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description Whether or not the authenticated user has left a reaction on the subject. - */ - - readonly viewerHasReacted: () => Field<"viewerHasReacted">; -} - -export const ReactionConnection: ReactionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReactionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Reaction))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description Whether or not the authenticated user has left a reaction on the subject. - */ - viewerHasReacted: () => new Field("viewerHasReacted"), -}; - -export interface IReactionEdge { - readonly __typename: "ReactionEdge"; - readonly cursor: string; - readonly node: IReaction | null; -} - -interface ReactionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ReactionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ReactionEdge: ReactionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Reaction))), -}; - -export interface IReactionGroup { - readonly __typename: "ReactionGroup"; - readonly content: ReactionContent; - readonly createdAt: unknown | null; - readonly subject: IReactable; - readonly users: IReactingUserConnection; - readonly viewerHasReacted: boolean; -} - -interface ReactionGroupSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the emoji reaction. - */ - - readonly content: () => Field<"content">; - - /** - * @description Identifies when the reaction was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The subject that was reacted to. - */ - - readonly subject: >( - select: (t: ReactableSelector) => T - ) => Field<"subject", never, SelectionSet>; - - /** - * @description Users who have reacted to the reaction subject with the emotion represented by this reaction group - */ - - readonly users: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: ReactingUserConnectionSelector) => T - ) => Field< - "users", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Whether or not the authenticated user has left a reaction on the subject. - */ - - readonly viewerHasReacted: () => Field<"viewerHasReacted">; -} - -export const ReactionGroup: ReactionGroupSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the emoji reaction. - */ - content: () => new Field("content"), - - /** - * @description Identifies when the reaction was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The subject that was reacted to. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(Reactable)) - ), - - /** - * @description Users who have reacted to the reaction subject with the emotion represented by this reaction group - */ - - users: (variables, select) => - new Field( - "users", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(ReactingUserConnection)) - ), - - /** - * @description Whether or not the authenticated user has left a reaction on the subject. - */ - viewerHasReacted: () => new Field("viewerHasReacted"), -}; - -export interface IReadyForReviewEvent extends INode, IUniformResourceLocatable { - readonly __typename: "ReadyForReviewEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; -} - -interface ReadyForReviewEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The HTTP path for this ready for review event. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this ready for review event. - */ - - readonly url: () => Field<"url">; -} - -export const isReadyForReviewEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReadyForReviewEvent"; -}; - -export const ReadyForReviewEvent: ReadyForReviewEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The HTTP path for this ready for review event. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this ready for review event. - */ - url: () => new Field("url"), -}; - -export interface IRef extends INode { - readonly __typename: "Ref"; - readonly associatedPullRequests: IPullRequestConnection; - readonly branchProtectionRule: IBranchProtectionRule | null; - readonly name: string; - readonly prefix: string; - readonly refUpdateRule: IRefUpdateRule | null; - readonly repository: IRepository; - readonly target: IGitObject | null; -} - -interface RefSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of pull requests with this ref as the head ref. - */ - - readonly associatedPullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "associatedPullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description Branch protection rules for this ref - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The ref name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The ref's prefix, such as `refs/heads/` or `refs/tags/`. - */ - - readonly prefix: () => Field<"prefix">; - - /** - * @description Branch protection rules that are viewable by non-admins - */ - - readonly refUpdateRule: >( - select: (t: RefUpdateRuleSelector) => T - ) => Field<"refUpdateRule", never, SelectionSet>; - - /** - * @description The repository the ref belongs to. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The object the ref points to. Returns null when object does not exist. - */ - - readonly target: >( - select: (t: GitObjectSelector) => T - ) => Field<"target", never, SelectionSet>; -} - -export const isRef = (object: Record): object is Partial => { - return object.__typename === "Ref"; -}; - -export const Ref: RefSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of pull requests with this ref as the head ref. - */ - - associatedPullRequests: (variables, select) => - new Field( - "associatedPullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description Branch protection rules for this ref - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - id: () => new Field("id"), - - /** - * @description The ref name. - */ - name: () => new Field("name"), - - /** - * @description The ref's prefix, such as `refs/heads/` or `refs/tags/`. - */ - prefix: () => new Field("prefix"), - - /** - * @description Branch protection rules that are viewable by non-admins - */ - - refUpdateRule: (select) => - new Field( - "refUpdateRule", - undefined as never, - new SelectionSet(select(RefUpdateRule)) - ), - - /** - * @description The repository the ref belongs to. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The object the ref points to. Returns null when object does not exist. - */ - - target: (select) => - new Field( - "target", - undefined as never, - new SelectionSet(select(GitObject)) - ), -}; - -export interface IRefConnection { - readonly __typename: "RefConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface RefConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RefEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RefSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const RefConnection: RefConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(RefEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IRefEdge { - readonly __typename: "RefEdge"; - readonly cursor: string; - readonly node: IRef | null; -} - -interface RefEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: RefSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const RefEdge: RefEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IRefUpdateRule { - readonly __typename: "RefUpdateRule"; - readonly allowsDeletions: boolean; - readonly allowsForcePushes: boolean; - readonly pattern: string; - readonly requiredApprovingReviewCount: number | null; - readonly requiredStatusCheckContexts: ReadonlyArray | null; - readonly requiresLinearHistory: boolean; - readonly requiresSignatures: boolean; - readonly viewerCanPush: boolean; -} - -interface RefUpdateRuleSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Can this branch be deleted. - */ - - readonly allowsDeletions: () => Field<"allowsDeletions">; - - /** - * @description Are force pushes allowed on this branch. - */ - - readonly allowsForcePushes: () => Field<"allowsForcePushes">; - - /** - * @description Identifies the protection rule pattern. - */ - - readonly pattern: () => Field<"pattern">; - - /** - * @description Number of approving reviews required to update matching branches. - */ - - readonly requiredApprovingReviewCount: () => Field<"requiredApprovingReviewCount">; - - /** - * @description List of required status check contexts that must pass for commits to be accepted to matching branches. - */ - - readonly requiredStatusCheckContexts: () => Field<"requiredStatusCheckContexts">; - - /** - * @description Are merge commits prohibited from being pushed to this branch. - */ - - readonly requiresLinearHistory: () => Field<"requiresLinearHistory">; - - /** - * @description Are commits required to be signed. - */ - - readonly requiresSignatures: () => Field<"requiresSignatures">; - - /** - * @description Can the viewer push to the branch - */ - - readonly viewerCanPush: () => Field<"viewerCanPush">; -} - -export const RefUpdateRule: RefUpdateRuleSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Can this branch be deleted. - */ - allowsDeletions: () => new Field("allowsDeletions"), - - /** - * @description Are force pushes allowed on this branch. - */ - allowsForcePushes: () => new Field("allowsForcePushes"), - - /** - * @description Identifies the protection rule pattern. - */ - pattern: () => new Field("pattern"), - - /** - * @description Number of approving reviews required to update matching branches. - */ - requiredApprovingReviewCount: () => new Field("requiredApprovingReviewCount"), - - /** - * @description List of required status check contexts that must pass for commits to be accepted to matching branches. - */ - requiredStatusCheckContexts: () => new Field("requiredStatusCheckContexts"), - - /** - * @description Are merge commits prohibited from being pushed to this branch. - */ - requiresLinearHistory: () => new Field("requiresLinearHistory"), - - /** - * @description Are commits required to be signed. - */ - requiresSignatures: () => new Field("requiresSignatures"), - - /** - * @description Can the viewer push to the branch - */ - viewerCanPush: () => new Field("viewerCanPush"), -}; - -export interface IReferencedEvent extends INode { - readonly __typename: "ReferencedEvent"; - readonly actor: IActor | null; - readonly commit: ICommit | null; - readonly commitRepository: IRepository; - readonly createdAt: unknown; - readonly isCrossRepository: boolean; - readonly isDirectReference: boolean; - readonly subject: IReferencedSubject; -} - -interface ReferencedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the commit associated with the 'referenced' event. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Identifies the repository associated with the 'referenced' event. - */ - - readonly commitRepository: >( - select: (t: RepositorySelector) => T - ) => Field<"commitRepository", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Reference originated in a different repository. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; - - /** - * @description Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference. - */ - - readonly isDirectReference: () => Field<"isDirectReference">; - - /** - * @description Object referenced by event. - */ - - readonly subject: >( - select: (t: ReferencedSubjectSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isReferencedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReferencedEvent"; -}; - -export const ReferencedEvent: ReferencedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the commit associated with the 'referenced' event. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Identifies the repository associated with the 'referenced' event. - */ - - commitRepository: (select) => - new Field( - "commitRepository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Reference originated in a different repository. - */ - isCrossRepository: () => new Field("isCrossRepository"), - - /** - * @description Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference. - */ - isDirectReference: () => new Field("isDirectReference"), - - /** - * @description Object referenced by event. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(ReferencedSubject)) - ), -}; - -export interface IRegenerateEnterpriseIdentityProviderRecoveryCodesPayload { - readonly __typename: "RegenerateEnterpriseIdentityProviderRecoveryCodesPayload"; - readonly clientMutationId: string | null; - readonly identityProvider: IEnterpriseIdentityProvider | null; -} - -interface RegenerateEnterpriseIdentityProviderRecoveryCodesPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The identity provider for the enterprise. - */ - - readonly identityProvider: >( - select: (t: EnterpriseIdentityProviderSelector) => T - ) => Field<"identityProvider", never, SelectionSet>; -} - -export const RegenerateEnterpriseIdentityProviderRecoveryCodesPayload: RegenerateEnterpriseIdentityProviderRecoveryCodesPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The identity provider for the enterprise. - */ - - identityProvider: (select) => - new Field( - "identityProvider", - undefined as never, - new SelectionSet(select(EnterpriseIdentityProvider)) - ), -}; - -export interface IRelease extends INode, IUniformResourceLocatable { - readonly __typename: "Release"; - readonly author: IUser | null; - readonly createdAt: unknown; - readonly description: string | null; - readonly descriptionHTML: unknown | null; - readonly isDraft: boolean; - readonly isPrerelease: boolean; - readonly name: string | null; - readonly publishedAt: unknown | null; - readonly releaseAssets: IReleaseAssetConnection; - readonly shortDescriptionHTML: unknown | null; - readonly tag: IRef | null; - readonly tagName: string; - readonly updatedAt: unknown; -} - -interface ReleaseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The author of the release - */ - - readonly author: >( - select: (t: UserSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The description of the release. - */ - - readonly description: () => Field<"description">; - - /** - * @description The description of this release rendered to HTML. - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - readonly id: () => Field<"id">; - - /** - * @description Whether or not the release is a draft - */ - - readonly isDraft: () => Field<"isDraft">; - - /** - * @description Whether or not the release is a prerelease - */ - - readonly isPrerelease: () => Field<"isPrerelease">; - - /** - * @description The title of the release. - */ - - readonly name: () => Field<"name">; - - /** - * @description Identifies the date and time when the release was created. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description List of releases assets which are dependent on this release. - */ - - readonly releaseAssets: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - name?: Variable<"name"> | string; - }, - select: (t: ReleaseAssetConnectionSelector) => T - ) => Field< - "releaseAssets", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"name", Variable<"name"> | string> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this issue - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description A description of the release, rendered to HTML without any links in it. - */ - - readonly shortDescriptionHTML: (variables: { - limit?: Variable<"limit"> | number; - }) => Field< - "shortDescriptionHTML", - [Argument<"limit", Variable<"limit"> | number>] - >; - - /** - * @description The Git tag the release points to - */ - - readonly tag: >( - select: (t: RefSelector) => T - ) => Field<"tag", never, SelectionSet>; - - /** - * @description The name of the release's Git tag - */ - - readonly tagName: () => Field<"tagName">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this issue - */ - - readonly url: () => Field<"url">; -} - -export const isRelease = ( - object: Record -): object is Partial => { - return object.__typename === "Release"; -}; - -export const Release: ReleaseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The author of the release - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(User))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The description of the release. - */ - description: () => new Field("description"), - - /** - * @description The description of this release rendered to HTML. - */ - descriptionHTML: () => new Field("descriptionHTML"), - id: () => new Field("id"), - - /** - * @description Whether or not the release is a draft - */ - isDraft: () => new Field("isDraft"), - - /** - * @description Whether or not the release is a prerelease - */ - isPrerelease: () => new Field("isPrerelease"), - - /** - * @description The title of the release. - */ - name: () => new Field("name"), - - /** - * @description Identifies the date and time when the release was created. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description List of releases assets which are dependent on this release. - */ - - releaseAssets: (variables, select) => - new Field( - "releaseAssets", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("name", variables.name, _ENUM_VALUES), - ], - new SelectionSet(select(ReleaseAssetConnection)) - ), - - /** - * @description The HTTP path for this issue - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description A description of the release, rendered to HTML without any links in it. - */ - shortDescriptionHTML: (variables) => new Field("shortDescriptionHTML"), - - /** - * @description The Git tag the release points to - */ - - tag: (select) => - new Field("tag", undefined as never, new SelectionSet(select(Ref))), - - /** - * @description The name of the release's Git tag - */ - tagName: () => new Field("tagName"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this issue - */ - url: () => new Field("url"), -}; - -export interface IReleaseAsset extends INode { - readonly __typename: "ReleaseAsset"; - readonly contentType: string; - readonly createdAt: unknown; - readonly downloadCount: number; - readonly downloadUrl: unknown; - readonly name: string; - readonly release: IRelease | null; - readonly size: number; - readonly updatedAt: unknown; - readonly uploadedBy: IUser; - readonly url: unknown; -} - -interface ReleaseAssetSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The asset's content-type - */ - - readonly contentType: () => Field<"contentType">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The number of times this asset was downloaded - */ - - readonly downloadCount: () => Field<"downloadCount">; - - /** - * @description Identifies the URL where you can download the release asset via the browser. - */ - - readonly downloadUrl: () => Field<"downloadUrl">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the title of the release asset. - */ - - readonly name: () => Field<"name">; - - /** - * @description Release that the asset is associated with - */ - - readonly release: >( - select: (t: ReleaseSelector) => T - ) => Field<"release", never, SelectionSet>; - - /** - * @description The size (in bytes) of the asset - */ - - readonly size: () => Field<"size">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The user that performed the upload - */ - - readonly uploadedBy: >( - select: (t: UserSelector) => T - ) => Field<"uploadedBy", never, SelectionSet>; - - /** - * @description Identifies the URL of the release asset. - */ - - readonly url: () => Field<"url">; -} - -export const isReleaseAsset = ( - object: Record -): object is Partial => { - return object.__typename === "ReleaseAsset"; -}; - -export const ReleaseAsset: ReleaseAssetSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The asset's content-type - */ - contentType: () => new Field("contentType"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The number of times this asset was downloaded - */ - downloadCount: () => new Field("downloadCount"), - - /** - * @description Identifies the URL where you can download the release asset via the browser. - */ - downloadUrl: () => new Field("downloadUrl"), - id: () => new Field("id"), - - /** - * @description Identifies the title of the release asset. - */ - name: () => new Field("name"), - - /** - * @description Release that the asset is associated with - */ - - release: (select) => - new Field("release", undefined as never, new SelectionSet(select(Release))), - - /** - * @description The size (in bytes) of the asset - */ - size: () => new Field("size"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The user that performed the upload - */ - - uploadedBy: (select) => - new Field("uploadedBy", undefined as never, new SelectionSet(select(User))), - - /** - * @description Identifies the URL of the release asset. - */ - url: () => new Field("url"), -}; - -export interface IReleaseAssetConnection { - readonly __typename: "ReleaseAssetConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ReleaseAssetConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReleaseAssetEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ReleaseAssetSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ReleaseAssetConnection: ReleaseAssetConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReleaseAssetEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ReleaseAsset)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IReleaseAssetEdge { - readonly __typename: "ReleaseAssetEdge"; - readonly cursor: string; - readonly node: IReleaseAsset | null; -} - -interface ReleaseAssetEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ReleaseAssetSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ReleaseAssetEdge: ReleaseAssetEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ReleaseAsset)) - ), -}; - -export interface IReleaseConnection { - readonly __typename: "ReleaseConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ReleaseConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReleaseEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ReleaseSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ReleaseConnection: ReleaseConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReleaseEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Release))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IReleaseEdge { - readonly __typename: "ReleaseEdge"; - readonly cursor: string; - readonly node: IRelease | null; -} - -interface ReleaseEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ReleaseSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ReleaseEdge: ReleaseEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Release))), -}; - -export interface IRemoveAssigneesFromAssignablePayload { - readonly __typename: "RemoveAssigneesFromAssignablePayload"; - readonly assignable: IAssignable | null; - readonly clientMutationId: string | null; -} - -interface RemoveAssigneesFromAssignablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The item that was unassigned. - */ - - readonly assignable: >( - select: (t: AssignableSelector) => T - ) => Field<"assignable", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const RemoveAssigneesFromAssignablePayload: RemoveAssigneesFromAssignablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The item that was unassigned. - */ - - assignable: (select) => - new Field( - "assignable", - undefined as never, - new SelectionSet(select(Assignable)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IRemoveEnterpriseAdminPayload { - readonly __typename: "RemoveEnterpriseAdminPayload"; - readonly admin: IUser | null; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; - readonly viewer: IUser | null; -} - -interface RemoveEnterpriseAdminPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The user who was removed as an administrator. - */ - - readonly admin: >( - select: (t: UserSelector) => T - ) => Field<"admin", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated enterprise. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of removing an administrator. - */ - - readonly message: () => Field<"message">; - - /** - * @description The viewer performing the mutation. - */ - - readonly viewer: >( - select: (t: UserSelector) => T - ) => Field<"viewer", never, SelectionSet>; -} - -export const RemoveEnterpriseAdminPayload: RemoveEnterpriseAdminPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The user who was removed as an administrator. - */ - - admin: (select) => - new Field("admin", undefined as never, new SelectionSet(select(User))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated enterprise. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of removing an administrator. - */ - message: () => new Field("message"), - - /** - * @description The viewer performing the mutation. - */ - - viewer: (select) => - new Field("viewer", undefined as never, new SelectionSet(select(User))), -}; - -export interface IRemoveEnterpriseIdentityProviderPayload { - readonly __typename: "RemoveEnterpriseIdentityProviderPayload"; - readonly clientMutationId: string | null; - readonly identityProvider: IEnterpriseIdentityProvider | null; -} - -interface RemoveEnterpriseIdentityProviderPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The identity provider that was removed from the enterprise. - */ - - readonly identityProvider: >( - select: (t: EnterpriseIdentityProviderSelector) => T - ) => Field<"identityProvider", never, SelectionSet>; -} - -export const RemoveEnterpriseIdentityProviderPayload: RemoveEnterpriseIdentityProviderPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The identity provider that was removed from the enterprise. - */ - - identityProvider: (select) => - new Field( - "identityProvider", - undefined as never, - new SelectionSet(select(EnterpriseIdentityProvider)) - ), -}; - -export interface IRemoveEnterpriseOrganizationPayload { - readonly __typename: "RemoveEnterpriseOrganizationPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly organization: IOrganization | null; - readonly viewer: IUser | null; -} - -interface RemoveEnterpriseOrganizationPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated enterprise. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description The organization that was removed from the enterprise. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The viewer performing the mutation. - */ - - readonly viewer: >( - select: (t: UserSelector) => T - ) => Field<"viewer", never, SelectionSet>; -} - -export const RemoveEnterpriseOrganizationPayload: RemoveEnterpriseOrganizationPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated enterprise. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description The organization that was removed from the enterprise. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The viewer performing the mutation. - */ - - viewer: (select) => - new Field("viewer", undefined as never, new SelectionSet(select(User))), -}; - -export interface IRemoveLabelsFromLabelablePayload { - readonly __typename: "RemoveLabelsFromLabelablePayload"; - readonly clientMutationId: string | null; - readonly labelable: ILabelable | null; -} - -interface RemoveLabelsFromLabelablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The Labelable the labels were removed from. - */ - - readonly labelable: >( - select: (t: LabelableSelector) => T - ) => Field<"labelable", never, SelectionSet>; -} - -export const RemoveLabelsFromLabelablePayload: RemoveLabelsFromLabelablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The Labelable the labels were removed from. - */ - - labelable: (select) => - new Field( - "labelable", - undefined as never, - new SelectionSet(select(Labelable)) - ), -}; - -export interface IRemoveOutsideCollaboratorPayload { - readonly __typename: "RemoveOutsideCollaboratorPayload"; - readonly clientMutationId: string | null; - readonly removedUser: IUser | null; -} - -interface RemoveOutsideCollaboratorPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The user that was removed as an outside collaborator. - */ - - readonly removedUser: >( - select: (t: UserSelector) => T - ) => Field<"removedUser", never, SelectionSet>; -} - -export const RemoveOutsideCollaboratorPayload: RemoveOutsideCollaboratorPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The user that was removed as an outside collaborator. - */ - - removedUser: (select) => - new Field( - "removedUser", - undefined as never, - new SelectionSet(select(User)) - ), -}; - -export interface IRemoveReactionPayload { - readonly __typename: "RemoveReactionPayload"; - readonly clientMutationId: string | null; - readonly reaction: IReaction | null; - readonly subject: IReactable | null; -} - -interface RemoveReactionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The reaction object. - */ - - readonly reaction: >( - select: (t: ReactionSelector) => T - ) => Field<"reaction", never, SelectionSet>; - - /** - * @description The reactable subject. - */ - - readonly subject: >( - select: (t: ReactableSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const RemoveReactionPayload: RemoveReactionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The reaction object. - */ - - reaction: (select) => - new Field( - "reaction", - undefined as never, - new SelectionSet(select(Reaction)) - ), - - /** - * @description The reactable subject. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(Reactable)) - ), -}; - -export interface IRemoveStarPayload { - readonly __typename: "RemoveStarPayload"; - readonly clientMutationId: string | null; - readonly starrable: IStarrable | null; -} - -interface RemoveStarPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The starrable. - */ - - readonly starrable: >( - select: (t: StarrableSelector) => T - ) => Field<"starrable", never, SelectionSet>; -} - -export const RemoveStarPayload: RemoveStarPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The starrable. - */ - - starrable: (select) => - new Field( - "starrable", - undefined as never, - new SelectionSet(select(Starrable)) - ), -}; - -export interface IRemovedFromProjectEvent extends INode { - readonly __typename: "RemovedFromProjectEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; -} - -interface RemovedFromProjectEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; -} - -export const isRemovedFromProjectEvent = ( - object: Record -): object is Partial => { - return object.__typename === "RemovedFromProjectEvent"; -}; - -export const RemovedFromProjectEvent: RemovedFromProjectEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), -}; - -export interface IRenamedTitleEvent extends INode { - readonly __typename: "RenamedTitleEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly currentTitle: string; - readonly previousTitle: string; - readonly subject: IRenamedTitleSubject; -} - -interface RenamedTitleEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the current title of the issue or pull request. - */ - - readonly currentTitle: () => Field<"currentTitle">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the previous title of the issue or pull request. - */ - - readonly previousTitle: () => Field<"previousTitle">; - - /** - * @description Subject that was renamed. - */ - - readonly subject: >( - select: (t: RenamedTitleSubjectSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isRenamedTitleEvent = ( - object: Record -): object is Partial => { - return object.__typename === "RenamedTitleEvent"; -}; - -export const RenamedTitleEvent: RenamedTitleEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the current title of the issue or pull request. - */ - currentTitle: () => new Field("currentTitle"), - id: () => new Field("id"), - - /** - * @description Identifies the previous title of the issue or pull request. - */ - previousTitle: () => new Field("previousTitle"), - - /** - * @description Subject that was renamed. - */ - - subject: (select) => - new Field( - "subject", - undefined as never, - new SelectionSet(select(RenamedTitleSubject)) - ), -}; - -export interface IReopenIssuePayload { - readonly __typename: "ReopenIssuePayload"; - readonly clientMutationId: string | null; - readonly issue: IIssue | null; -} - -interface ReopenIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The issue that was opened. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const ReopenIssuePayload: ReopenIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The issue that was opened. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IReopenPullRequestPayload { - readonly __typename: "ReopenPullRequestPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface ReopenPullRequestPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request that was reopened. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const ReopenPullRequestPayload: ReopenPullRequestPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request that was reopened. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IReopenedEvent extends INode { - readonly __typename: "ReopenedEvent"; - readonly actor: IActor | null; - readonly closable: IClosable; - readonly createdAt: unknown; -} - -interface ReopenedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Object that was reopened. - */ - - readonly closable: >( - select: (t: ClosableSelector) => T - ) => Field<"closable", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; -} - -export const isReopenedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReopenedEvent"; -}; - -export const ReopenedEvent: ReopenedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Object that was reopened. - */ - - closable: (select) => - new Field( - "closable", - undefined as never, - new SelectionSet(select(Closable)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), -}; - -export interface IRepoAccessAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoAccessAuditEntry"; - readonly visibility: RepoAccessAuditEntryVisibility | null; -} - -interface RepoAccessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoAccessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoAccessAuditEntry"; -}; - -export const RepoAccessAuditEntry: RepoAccessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoAddMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoAddMemberAuditEntry"; - readonly visibility: RepoAddMemberAuditEntryVisibility | null; -} - -interface RepoAddMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoAddMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoAddMemberAuditEntry"; -}; - -export const RepoAddMemberAuditEntry: RepoAddMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoAddTopicAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData, - ITopicAuditEntryData { - readonly __typename: "RepoAddTopicAuditEntry"; -} - -interface RepoAddTopicAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The name of the topic added to the repository - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; - - /** - * @description The name of the topic added to the repository - */ - - readonly topicName: () => Field<"topicName">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoAddTopicAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoAddTopicAuditEntry"; -}; - -export const RepoAddTopicAuditEntry: RepoAddTopicAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The name of the topic added to the repository - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), - - /** - * @description The name of the topic added to the repository - */ - topicName: () => new Field("topicName"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoArchivedAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoArchivedAuditEntry"; - readonly visibility: RepoArchivedAuditEntryVisibility | null; -} - -interface RepoArchivedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoArchivedAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoArchivedAuditEntry"; -}; - -export const RepoArchivedAuditEntry: RepoArchivedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoChangeMergeSettingAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoChangeMergeSettingAuditEntry"; - readonly isEnabled: boolean | null; - readonly mergeType: RepoChangeMergeSettingAuditEntryMergeType | null; -} - -interface RepoChangeMergeSettingAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the change was to enable (true) or disable (false) the merge type - */ - - readonly isEnabled: () => Field<"isEnabled">; - - /** - * @description The merge method affected by the change - */ - - readonly mergeType: () => Field<"mergeType">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoChangeMergeSettingAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoChangeMergeSettingAuditEntry"; -}; - -export const RepoChangeMergeSettingAuditEntry: RepoChangeMergeSettingAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the change was to enable (true) or disable (false) the merge type - */ - isEnabled: () => new Field("isEnabled"), - - /** - * @description The merge method affected by the change - */ - mergeType: () => new Field("mergeType"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigDisableAnonymousGitAccessAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigDisableAnonymousGitAccessAuditEntry"; -} - -interface RepoConfigDisableAnonymousGitAccessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigDisableAnonymousGitAccessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigDisableAnonymousGitAccessAuditEntry"; -}; - -export const RepoConfigDisableAnonymousGitAccessAuditEntry: RepoConfigDisableAnonymousGitAccessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigDisableCollaboratorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigDisableCollaboratorsOnlyAuditEntry"; -} - -interface RepoConfigDisableCollaboratorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigDisableCollaboratorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigDisableCollaboratorsOnlyAuditEntry"; -}; - -export const RepoConfigDisableCollaboratorsOnlyAuditEntry: RepoConfigDisableCollaboratorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigDisableContributorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigDisableContributorsOnlyAuditEntry"; -} - -interface RepoConfigDisableContributorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigDisableContributorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigDisableContributorsOnlyAuditEntry"; -}; - -export const RepoConfigDisableContributorsOnlyAuditEntry: RepoConfigDisableContributorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigDisableSockpuppetDisallowedAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigDisableSockpuppetDisallowedAuditEntry"; -} - -interface RepoConfigDisableSockpuppetDisallowedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigDisableSockpuppetDisallowedAuditEntry = ( - object: Record -): object is Partial => { - return ( - object.__typename === "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ); -}; - -export const RepoConfigDisableSockpuppetDisallowedAuditEntry: RepoConfigDisableSockpuppetDisallowedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigEnableAnonymousGitAccessAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigEnableAnonymousGitAccessAuditEntry"; -} - -interface RepoConfigEnableAnonymousGitAccessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigEnableAnonymousGitAccessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigEnableAnonymousGitAccessAuditEntry"; -}; - -export const RepoConfigEnableAnonymousGitAccessAuditEntry: RepoConfigEnableAnonymousGitAccessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigEnableCollaboratorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigEnableCollaboratorsOnlyAuditEntry"; -} - -interface RepoConfigEnableCollaboratorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigEnableCollaboratorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigEnableCollaboratorsOnlyAuditEntry"; -}; - -export const RepoConfigEnableCollaboratorsOnlyAuditEntry: RepoConfigEnableCollaboratorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigEnableContributorsOnlyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigEnableContributorsOnlyAuditEntry"; -} - -interface RepoConfigEnableContributorsOnlyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigEnableContributorsOnlyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigEnableContributorsOnlyAuditEntry"; -}; - -export const RepoConfigEnableContributorsOnlyAuditEntry: RepoConfigEnableContributorsOnlyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigEnableSockpuppetDisallowedAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigEnableSockpuppetDisallowedAuditEntry"; -} - -interface RepoConfigEnableSockpuppetDisallowedAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigEnableSockpuppetDisallowedAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigEnableSockpuppetDisallowedAuditEntry"; -}; - -export const RepoConfigEnableSockpuppetDisallowedAuditEntry: RepoConfigEnableSockpuppetDisallowedAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigLockAnonymousGitAccessAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigLockAnonymousGitAccessAuditEntry"; -} - -interface RepoConfigLockAnonymousGitAccessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigLockAnonymousGitAccessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigLockAnonymousGitAccessAuditEntry"; -}; - -export const RepoConfigLockAnonymousGitAccessAuditEntry: RepoConfigLockAnonymousGitAccessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoConfigUnlockAnonymousGitAccessAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoConfigUnlockAnonymousGitAccessAuditEntry"; -} - -interface RepoConfigUnlockAnonymousGitAccessAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoConfigUnlockAnonymousGitAccessAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoConfigUnlockAnonymousGitAccessAuditEntry"; -}; - -export const RepoConfigUnlockAnonymousGitAccessAuditEntry: RepoConfigUnlockAnonymousGitAccessAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepoCreateAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoCreateAuditEntry"; - readonly forkParentName: string | null; - readonly forkSourceName: string | null; - readonly visibility: RepoCreateAuditEntryVisibility | null; -} - -interface RepoCreateAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The name of the parent repository for this forked repository. - */ - - readonly forkParentName: () => Field<"forkParentName">; - - /** - * @description The name of the root repository for this netork. - */ - - readonly forkSourceName: () => Field<"forkSourceName">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoCreateAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoCreateAuditEntry"; -}; - -export const RepoCreateAuditEntry: RepoCreateAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The name of the parent repository for this forked repository. - */ - forkParentName: () => new Field("forkParentName"), - - /** - * @description The name of the root repository for this netork. - */ - forkSourceName: () => new Field("forkSourceName"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoDestroyAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoDestroyAuditEntry"; - readonly visibility: RepoDestroyAuditEntryVisibility | null; -} - -interface RepoDestroyAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoDestroyAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoDestroyAuditEntry"; -}; - -export const RepoDestroyAuditEntry: RepoDestroyAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoRemoveMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData { - readonly __typename: "RepoRemoveMemberAuditEntry"; - readonly visibility: RepoRemoveMemberAuditEntryVisibility | null; -} - -interface RepoRemoveMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; - - /** - * @description The visibility of the repository - */ - - readonly visibility: () => Field<"visibility">; -} - -export const isRepoRemoveMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoRemoveMemberAuditEntry"; -}; - -export const RepoRemoveMemberAuditEntry: RepoRemoveMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), - - /** - * @description The visibility of the repository - */ - visibility: () => new Field("visibility"), -}; - -export interface IRepoRemoveTopicAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData, - ITopicAuditEntryData { - readonly __typename: "RepoRemoveTopicAuditEntry"; -} - -interface RepoRemoveTopicAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The name of the topic added to the repository - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; - - /** - * @description The name of the topic added to the repository - */ - - readonly topicName: () => Field<"topicName">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepoRemoveTopicAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepoRemoveTopicAuditEntry"; -}; - -export const RepoRemoveTopicAuditEntry: RepoRemoveTopicAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The name of the topic added to the repository - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), - - /** - * @description The name of the topic added to the repository - */ - topicName: () => new Field("topicName"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepository - extends INode, - IPackageOwner, - IProjectOwner, - IRepositoryInfo, - IStarrable, - ISubscribable, - IUniformResourceLocatable { - readonly __typename: "Repository"; - readonly assignableUsers: IUserConnection; - readonly branchProtectionRules: IBranchProtectionRuleConnection; - readonly codeOfConduct: ICodeOfConduct | null; - readonly collaborators: IRepositoryCollaboratorConnection | null; - readonly commitComments: ICommitCommentConnection; - readonly contactLinks: ReadonlyArray | null; - readonly databaseId: number | null; - readonly defaultBranchRef: IRef | null; - readonly deleteBranchOnMerge: boolean; - readonly deployKeys: IDeployKeyConnection; - readonly deployments: IDeploymentConnection; - readonly diskUsage: number | null; - readonly forks: IRepositoryConnection; - readonly fundingLinks: ReadonlyArray; - readonly interactionAbility: IRepositoryInteractionAbility | null; - readonly isBlankIssuesEnabled: boolean; - readonly isDisabled: boolean; - readonly isEmpty: boolean; - readonly isSecurityPolicyEnabled: boolean | null; - readonly isUserConfigurationRepository: boolean; - readonly issue: IIssue | null; - readonly issueOrPullRequest: IIssueOrPullRequest | null; - readonly issueTemplates: ReadonlyArray | null; - readonly issues: IIssueConnection; - readonly label: ILabel | null; - readonly labels: ILabelConnection | null; - readonly languages: ILanguageConnection | null; - readonly mentionableUsers: IUserConnection; - readonly mergeCommitAllowed: boolean; - readonly milestone: IMilestone | null; - readonly milestones: IMilestoneConnection | null; - readonly object: IGitObject | null; - readonly parent: IRepository | null; - readonly primaryLanguage: ILanguage | null; - readonly pullRequest: IPullRequest | null; - readonly pullRequests: IPullRequestConnection; - readonly rebaseMergeAllowed: boolean; - readonly ref: IRef | null; - readonly refs: IRefConnection | null; - readonly release: IRelease | null; - readonly releases: IReleaseConnection; - readonly repositoryTopics: IRepositoryTopicConnection; - readonly securityPolicyUrl: unknown | null; - readonly squashMergeAllowed: boolean; - readonly sshUrl: unknown; - readonly submodules: ISubmoduleConnection; - readonly tempCloneToken: string | null; - readonly templateRepository: IRepository | null; - readonly viewerCanAdminister: boolean; - readonly viewerCanUpdateTopics: boolean; - readonly viewerDefaultCommitEmail: string | null; - readonly viewerDefaultMergeMethod: PullRequestMergeMethod; - readonly viewerPermission: RepositoryPermission | null; - readonly viewerPossibleCommitEmails: ReadonlyArray | null; - readonly vulnerabilityAlerts: IRepositoryVulnerabilityAlertConnection | null; - readonly watchers: IUserConnection; -} - -interface RepositorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of users that can be assigned to issues in this repository. - */ - - readonly assignableUsers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "assignableUsers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A list of branch protection rules for this repository. - */ - - readonly branchProtectionRules: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: BranchProtectionRuleConnectionSelector) => T - ) => Field< - "branchProtectionRules", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Returns the code of conduct for this repository - */ - - readonly codeOfConduct: >( - select: (t: CodeOfConductSelector) => T - ) => Field<"codeOfConduct", never, SelectionSet>; - - /** - * @description A list of collaborators associated with the repository. - */ - - readonly collaborators: >( - variables: { - affiliation?: Variable<"affiliation"> | CollaboratorAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - }, - select: (t: RepositoryCollaboratorConnectionSelector) => T - ) => Field< - "collaborators", - [ - Argument< - "affiliation", - Variable<"affiliation"> | CollaboratorAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A list of commit comments associated with the repository. - */ - - readonly commitComments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitCommentConnectionSelector) => T - ) => Field< - "commitComments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Returns a list of contact links associated to the repository - */ - - readonly contactLinks: >( - select: (t: RepositoryContactLinkSelector) => T - ) => Field<"contactLinks", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The Ref associated with the repository's default branch. - */ - - readonly defaultBranchRef: >( - select: (t: RefSelector) => T - ) => Field<"defaultBranchRef", never, SelectionSet>; - - /** - * @description Whether or not branches are automatically deleted when merged in this repository. - */ - - readonly deleteBranchOnMerge: () => Field<"deleteBranchOnMerge">; - - /** - * @description A list of deploy keys that are on this repository. - */ - - readonly deployKeys: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: DeployKeyConnectionSelector) => T - ) => Field< - "deployKeys", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Deployments associated with the repository - */ - - readonly deployments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - environments?: Variable<"environments"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | DeploymentOrder; - }, - select: (t: DeploymentConnectionSelector) => T - ) => Field< - "deployments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"environments", Variable<"environments"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | DeploymentOrder> - ], - SelectionSet - >; - - /** - * @description The description of the repository. - */ - - readonly description: () => Field<"description">; - - /** - * @description The description of the repository rendered to HTML. - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - /** - * @description The number of kilobytes this repository occupies on disk. - */ - - readonly diskUsage: () => Field<"diskUsage">; - - /** - * @description Returns how many forks there are of this repository in the whole network. - */ - - readonly forkCount: () => Field<"forkCount">; - - /** - * @description A list of direct forked repositories. - */ - - readonly forks: >( - variables: { - affiliations?: Variable<"affiliations"> | RepositoryAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - ownerAffiliations?: Variable<"ownerAffiliations"> | RepositoryAffiliation; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "forks", - [ - Argument< - "affiliations", - Variable<"affiliations"> | RepositoryAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument< - "ownerAffiliations", - Variable<"ownerAffiliations"> | RepositoryAffiliation - >, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description The funding links for this repository - */ - - readonly fundingLinks: >( - select: (t: FundingLinkSelector) => T - ) => Field<"fundingLinks", never, SelectionSet>; - - /** - * @description Indicates if the repository has issues feature enabled. - */ - - readonly hasIssuesEnabled: () => Field<"hasIssuesEnabled">; - - /** - * @description Indicates if the repository has the Projects feature enabled. - */ - - readonly hasProjectsEnabled: () => Field<"hasProjectsEnabled">; - - /** - * @description Indicates if the repository has wiki feature enabled. - */ - - readonly hasWikiEnabled: () => Field<"hasWikiEnabled">; - - /** - * @description The repository's URL. - */ - - readonly homepageUrl: () => Field<"homepageUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The interaction ability settings for this repository. - */ - - readonly interactionAbility: >( - select: (t: RepositoryInteractionAbilitySelector) => T - ) => Field<"interactionAbility", never, SelectionSet>; - - /** - * @description Indicates if the repository is unmaintained. - */ - - readonly isArchived: () => Field<"isArchived">; - - /** - * @description Returns true if blank issue creation is allowed - */ - - readonly isBlankIssuesEnabled: () => Field<"isBlankIssuesEnabled">; - - /** - * @description Returns whether or not this repository disabled. - */ - - readonly isDisabled: () => Field<"isDisabled">; - - /** - * @description Returns whether or not this repository is empty. - */ - - readonly isEmpty: () => Field<"isEmpty">; - - /** - * @description Identifies if the repository is a fork. - */ - - readonly isFork: () => Field<"isFork">; - - /** - * @description Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - */ - - readonly isInOrganization: () => Field<"isInOrganization">; - - /** - * @description Indicates if the repository has been locked or not. - */ - - readonly isLocked: () => Field<"isLocked">; - - /** - * @description Identifies if the repository is a mirror. - */ - - readonly isMirror: () => Field<"isMirror">; - - /** - * @description Identifies if the repository is private. - */ - - readonly isPrivate: () => Field<"isPrivate">; - - /** - * @description Returns true if this repository has a security policy - */ - - readonly isSecurityPolicyEnabled: () => Field<"isSecurityPolicyEnabled">; - - /** - * @description Identifies if the repository is a template that can be used to generate new repositories. - */ - - readonly isTemplate: () => Field<"isTemplate">; - - /** - * @description Is this repository a user configuration repository? - */ - - readonly isUserConfigurationRepository: () => Field<"isUserConfigurationRepository">; - - /** - * @description Returns a single issue from the current repository by number. - */ - - readonly issue: >( - variables: { number?: Variable<"number"> | number }, - select: (t: IssueSelector) => T - ) => Field< - "issue", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description Returns a single issue-like object from the current repository by number. - */ - - readonly issueOrPullRequest: >( - variables: { number?: Variable<"number"> | number }, - select: (t: IssueOrPullRequestSelector) => T - ) => Field< - "issueOrPullRequest", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description Returns a list of issue templates associated to the repository - */ - - readonly issueTemplates: >( - select: (t: IssueTemplateSelector) => T - ) => Field<"issueTemplates", never, SelectionSet>; - - /** - * @description A list of issues that have been opened in the repository. - */ - - readonly issues: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | IssueFilters; - first?: Variable<"first"> | number; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | IssueState; - }, - select: (t: IssueConnectionSelector) => T - ) => Field< - "issues", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | IssueFilters>, - Argument<"first", Variable<"first"> | number>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | IssueState> - ], - SelectionSet - >; - - /** - * @description Returns a single label by name - */ - - readonly label: >( - variables: { name?: Variable<"name"> | string }, - select: (t: LabelSelector) => T - ) => Field< - "label", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description A list of labels associated with the repository. - */ - - readonly labels: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | LabelOrder; - query?: Variable<"query"> | string; - }, - select: (t: LabelConnectionSelector) => T - ) => Field< - "labels", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | LabelOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description A list containing a breakdown of the language composition of the repository. - */ - - readonly languages: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | LanguageOrder; - }, - select: (t: LanguageConnectionSelector) => T - ) => Field< - "languages", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | LanguageOrder> - ], - SelectionSet - >; - - /** - * @description The license associated with the repository - */ - - readonly licenseInfo: >( - select: (t: LicenseSelector) => T - ) => Field<"licenseInfo", never, SelectionSet>; - - /** - * @description The reason the repository has been locked. - */ - - readonly lockReason: () => Field<"lockReason">; - - /** - * @description A list of Users that can be mentioned in the context of the repository. - */ - - readonly mentionableUsers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - query?: Variable<"query"> | string; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "mentionableUsers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description Whether or not PRs are merged with a merge commit on this repository. - */ - - readonly mergeCommitAllowed: () => Field<"mergeCommitAllowed">; - - /** - * @description Returns a single milestone from the current repository by number. - */ - - readonly milestone: >( - variables: { number?: Variable<"number"> | number }, - select: (t: MilestoneSelector) => T - ) => Field< - "milestone", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of milestones associated with the repository. - */ - - readonly milestones: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | MilestoneOrder; - query?: Variable<"query"> | string; - states?: Variable<"states"> | MilestoneState; - }, - select: (t: MilestoneConnectionSelector) => T - ) => Field< - "milestones", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | MilestoneOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"states", Variable<"states"> | MilestoneState> - ], - SelectionSet - >; - - /** - * @description The repository's original mirror URL. - */ - - readonly mirrorUrl: () => Field<"mirrorUrl">; - - /** - * @description The name of the repository. - */ - - readonly name: () => Field<"name">; - - /** - * @description The repository's name with owner. - */ - - readonly nameWithOwner: () => Field<"nameWithOwner">; - - /** - * @description A Git object in the repository - */ - - readonly object: >( - variables: { - expression?: Variable<"expression"> | string; - oid?: Variable<"oid"> | unknown; - }, - select: (t: GitObjectSelector) => T - ) => Field< - "object", - [ - Argument<"expression", Variable<"expression"> | string>, - Argument<"oid", Variable<"oid"> | unknown> - ], - SelectionSet - >; - - /** - * @description The image used to represent this repository in Open Graph data. - */ - - readonly openGraphImageUrl: () => Field<"openGraphImageUrl">; - - /** - * @description The User owner of the repository. - */ - - readonly owner: >( - select: (t: RepositoryOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; - - /** - * @description A list of packages under the owner. - */ - - readonly packages: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - names?: Variable<"names"> | string; - orderBy?: Variable<"orderBy"> | PackageOrder; - packageType?: Variable<"packageType"> | PackageType; - repositoryId?: Variable<"repositoryId"> | string; - }, - select: (t: PackageConnectionSelector) => T - ) => Field< - "packages", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"names", Variable<"names"> | string>, - Argument<"orderBy", Variable<"orderBy"> | PackageOrder>, - Argument<"packageType", Variable<"packageType"> | PackageType>, - Argument<"repositoryId", Variable<"repositoryId"> | string> - ], - SelectionSet - >; - - /** - * @description The repository parent, if this is a fork. - */ - - readonly parent: >( - select: (t: RepositorySelector) => T - ) => Field<"parent", never, SelectionSet>; - - /** - * @description The primary language of the repository's code. - */ - - readonly primaryLanguage: >( - select: (t: LanguageSelector) => T - ) => Field<"primaryLanguage", never, SelectionSet>; - - /** - * @description Find project by number. - */ - - readonly project: >( - variables: { number?: Variable<"number"> | number }, - select: (t: ProjectSelector) => T - ) => Field< - "project", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of projects under the owner. - */ - - readonly projects: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ProjectOrder; - search?: Variable<"search"> | string; - states?: Variable<"states"> | ProjectState; - }, - select: (t: ProjectConnectionSelector) => T - ) => Field< - "projects", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ProjectOrder>, - Argument<"search", Variable<"search"> | string>, - Argument<"states", Variable<"states"> | ProjectState> - ], - SelectionSet - >; - - /** - * @description The HTTP path listing the repository's projects - */ - - readonly projectsResourcePath: () => Field<"projectsResourcePath">; - - /** - * @description The HTTP URL listing the repository's projects - */ - - readonly projectsUrl: () => Field<"projectsUrl">; - - /** - * @description Returns a single pull request from the current repository by number. - */ - - readonly pullRequest: >( - variables: { number?: Variable<"number"> | number }, - select: (t: PullRequestSelector) => T - ) => Field< - "pullRequest", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of pull requests that have been opened in the repository. - */ - - readonly pullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "pullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description Identifies when the repository was last pushed to. - */ - - readonly pushedAt: () => Field<"pushedAt">; - - /** - * @description Whether or not rebase-merging is enabled on this repository. - */ - - readonly rebaseMergeAllowed: () => Field<"rebaseMergeAllowed">; - - /** - * @description Fetch a given ref from the repository - */ - - readonly ref: >( - variables: { qualifiedName?: Variable<"qualifiedName"> | string }, - select: (t: RefSelector) => T - ) => Field< - "ref", - [Argument<"qualifiedName", Variable<"qualifiedName"> | string>], - SelectionSet - >; - - /** - * @description Fetch a list of refs from the repository - */ - - readonly refs: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - direction?: Variable<"direction"> | OrderDirection; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RefOrder; - query?: Variable<"query"> | string; - refPrefix?: Variable<"refPrefix"> | string; - }, - select: (t: RefConnectionSelector) => T - ) => Field< - "refs", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"direction", Variable<"direction"> | OrderDirection>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RefOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"refPrefix", Variable<"refPrefix"> | string> - ], - SelectionSet - >; - - /** - * @description Lookup a single release given various criteria. - */ - - readonly release: >( - variables: { tagName?: Variable<"tagName"> | string }, - select: (t: ReleaseSelector) => T - ) => Field< - "release", - [Argument<"tagName", Variable<"tagName"> | string>], - SelectionSet - >; - - /** - * @description List of releases which are dependent on this repository. - */ - - readonly releases: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReleaseOrder; - }, - select: (t: ReleaseConnectionSelector) => T - ) => Field< - "releases", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReleaseOrder> - ], - SelectionSet - >; - - /** - * @description A list of applied repository-topic associations for this repository. - */ - - readonly repositoryTopics: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: RepositoryTopicConnectionSelector) => T - ) => Field< - "repositoryTopics", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this repository - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The security policy URL. - */ - - readonly securityPolicyUrl: () => Field<"securityPolicyUrl">; - - /** - * @description A description of the repository, rendered to HTML without any links in it. - */ - - readonly shortDescriptionHTML: (variables: { - limit?: Variable<"limit"> | number; - }) => Field< - "shortDescriptionHTML", - [Argument<"limit", Variable<"limit"> | number>] - >; - - /** - * @description Whether or not squash-merging is enabled on this repository. - */ - - readonly squashMergeAllowed: () => Field<"squashMergeAllowed">; - - /** - * @description The SSH URL to clone this repository - */ - - readonly sshUrl: () => Field<"sshUrl">; - - /** - * @description Returns a count of how many stargazers there are on this object - */ - - readonly stargazerCount: () => Field<"stargazerCount">; - - /** - * @description A list of users who have starred this starrable. - */ - - readonly stargazers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | StarOrder; - }, - select: (t: StargazerConnectionSelector) => T - ) => Field< - "stargazers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | StarOrder> - ], - SelectionSet - >; - - /** - * @description Returns a list of all submodules in this repository parsed from the -.gitmodules file as of the default branch's HEAD commit. - */ - - readonly submodules: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: SubmoduleConnectionSelector) => T - ) => Field< - "submodules", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Temporary authentication token for cloning this repository. - */ - - readonly tempCloneToken: () => Field<"tempCloneToken">; - - /** - * @description The repository from which this repository was generated, if any. - */ - - readonly templateRepository: >( - select: (t: RepositorySelector) => T - ) => Field<"templateRepository", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this repository - */ - - readonly url: () => Field<"url">; - - /** - * @description Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - */ - - readonly usesCustomOpenGraphImage: () => Field<"usesCustomOpenGraphImage">; - - /** - * @description Indicates whether the viewer has admin permissions on this repository. - */ - - readonly viewerCanAdminister: () => Field<"viewerCanAdminister">; - - /** - * @description Can the current viewer create new projects on this owner. - */ - - readonly viewerCanCreateProjects: () => Field<"viewerCanCreateProjects">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Indicates whether the viewer can update the topics of this repository. - */ - - readonly viewerCanUpdateTopics: () => Field<"viewerCanUpdateTopics">; - - /** - * @description The last commit email for the viewer. - */ - - readonly viewerDefaultCommitEmail: () => Field<"viewerDefaultCommitEmail">; - - /** - * @description The last used merge method by the viewer or the default for the repository. - */ - - readonly viewerDefaultMergeMethod: () => Field<"viewerDefaultMergeMethod">; - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - - readonly viewerHasStarred: () => Field<"viewerHasStarred">; - - /** - * @description The users permission level on the repository. Will return null if authenticated as an GitHub App. - */ - - readonly viewerPermission: () => Field<"viewerPermission">; - - /** - * @description A list of emails this viewer can commit with. - */ - - readonly viewerPossibleCommitEmails: () => Field<"viewerPossibleCommitEmails">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; - - /** - * @description A list of vulnerability alerts that are on this repository. - */ - - readonly vulnerabilityAlerts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: RepositoryVulnerabilityAlertConnectionSelector) => T - ) => Field< - "vulnerabilityAlerts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of users watching the repository. - */ - - readonly watchers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserConnectionSelector) => T - ) => Field< - "watchers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; -} - -export const isRepository = ( - object: Record -): object is Partial => { - return object.__typename === "Repository"; -}; - -export const Repository: RepositorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of users that can be assigned to issues in this repository. - */ - - assignableUsers: (variables, select) => - new Field( - "assignableUsers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description A list of branch protection rules for this repository. - */ - - branchProtectionRules: (variables, select) => - new Field( - "branchProtectionRules", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(BranchProtectionRuleConnection)) - ), - - /** - * @description Returns the code of conduct for this repository - */ - - codeOfConduct: (select) => - new Field( - "codeOfConduct", - undefined as never, - new SelectionSet(select(CodeOfConduct)) - ), - - /** - * @description A list of collaborators associated with the repository. - */ - - collaborators: (variables, select) => - new Field( - "collaborators", - [ - new Argument("affiliation", variables.affiliation, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryCollaboratorConnection)) - ), - - /** - * @description A list of commit comments associated with the repository. - */ - - commitComments: (variables, select) => - new Field( - "commitComments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitCommentConnection)) - ), - - /** - * @description Returns a list of contact links associated to the repository - */ - - contactLinks: (select) => - new Field( - "contactLinks", - undefined as never, - new SelectionSet(select(RepositoryContactLink)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The Ref associated with the repository's default branch. - */ - - defaultBranchRef: (select) => - new Field( - "defaultBranchRef", - undefined as never, - new SelectionSet(select(Ref)) - ), - - /** - * @description Whether or not branches are automatically deleted when merged in this repository. - */ - deleteBranchOnMerge: () => new Field("deleteBranchOnMerge"), - - /** - * @description A list of deploy keys that are on this repository. - */ - - deployKeys: (variables, select) => - new Field( - "deployKeys", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(DeployKeyConnection)) - ), - - /** - * @description Deployments associated with the repository - */ - - deployments: (variables, select) => - new Field( - "deployments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("environments", variables.environments, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(DeploymentConnection)) - ), - - /** - * @description The description of the repository. - */ - description: () => new Field("description"), - - /** - * @description The description of the repository rendered to HTML. - */ - descriptionHTML: () => new Field("descriptionHTML"), - - /** - * @description The number of kilobytes this repository occupies on disk. - */ - diskUsage: () => new Field("diskUsage"), - - /** - * @description Returns how many forks there are of this repository in the whole network. - */ - forkCount: () => new Field("forkCount"), - - /** - * @description A list of direct forked repositories. - */ - - forks: (variables, select) => - new Field( - "forks", - [ - new Argument("affiliations", variables.affiliations, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "ownerAffiliations", - variables.ownerAffiliations, - _ENUM_VALUES - ), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description The funding links for this repository - */ - - fundingLinks: (select) => - new Field( - "fundingLinks", - undefined as never, - new SelectionSet(select(FundingLink)) - ), - - /** - * @description Indicates if the repository has issues feature enabled. - */ - hasIssuesEnabled: () => new Field("hasIssuesEnabled"), - - /** - * @description Indicates if the repository has the Projects feature enabled. - */ - hasProjectsEnabled: () => new Field("hasProjectsEnabled"), - - /** - * @description Indicates if the repository has wiki feature enabled. - */ - hasWikiEnabled: () => new Field("hasWikiEnabled"), - - /** - * @description The repository's URL. - */ - homepageUrl: () => new Field("homepageUrl"), - id: () => new Field("id"), - - /** - * @description The interaction ability settings for this repository. - */ - - interactionAbility: (select) => - new Field( - "interactionAbility", - undefined as never, - new SelectionSet(select(RepositoryInteractionAbility)) - ), - - /** - * @description Indicates if the repository is unmaintained. - */ - isArchived: () => new Field("isArchived"), - - /** - * @description Returns true if blank issue creation is allowed - */ - isBlankIssuesEnabled: () => new Field("isBlankIssuesEnabled"), - - /** - * @description Returns whether or not this repository disabled. - */ - isDisabled: () => new Field("isDisabled"), - - /** - * @description Returns whether or not this repository is empty. - */ - isEmpty: () => new Field("isEmpty"), - - /** - * @description Identifies if the repository is a fork. - */ - isFork: () => new Field("isFork"), - - /** - * @description Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - */ - isInOrganization: () => new Field("isInOrganization"), - - /** - * @description Indicates if the repository has been locked or not. - */ - isLocked: () => new Field("isLocked"), - - /** - * @description Identifies if the repository is a mirror. - */ - isMirror: () => new Field("isMirror"), - - /** - * @description Identifies if the repository is private. - */ - isPrivate: () => new Field("isPrivate"), - - /** - * @description Returns true if this repository has a security policy - */ - isSecurityPolicyEnabled: () => new Field("isSecurityPolicyEnabled"), - - /** - * @description Identifies if the repository is a template that can be used to generate new repositories. - */ - isTemplate: () => new Field("isTemplate"), - - /** - * @description Is this repository a user configuration repository? - */ - isUserConfigurationRepository: () => - new Field("isUserConfigurationRepository"), - - /** - * @description Returns a single issue from the current repository by number. - */ - - issue: (variables, select) => - new Field( - "issue", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Issue)) - ), - - /** - * @description Returns a single issue-like object from the current repository by number. - */ - - issueOrPullRequest: (variables, select) => - new Field( - "issueOrPullRequest", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(IssueOrPullRequest)) - ), - - /** - * @description Returns a list of issue templates associated to the repository - */ - - issueTemplates: (select) => - new Field( - "issueTemplates", - undefined as never, - new SelectionSet(select(IssueTemplate)) - ), - - /** - * @description A list of issues that have been opened in the repository. - */ - - issues: (variables, select) => - new Field( - "issues", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(IssueConnection)) - ), - - /** - * @description Returns a single label by name - */ - - label: (variables, select) => - new Field( - "label", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Label)) - ), - - /** - * @description A list of labels associated with the repository. - */ - - labels: (variables, select) => - new Field( - "labels", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(LabelConnection)) - ), - - /** - * @description A list containing a breakdown of the language composition of the repository. - */ - - languages: (variables, select) => - new Field( - "languages", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(LanguageConnection)) - ), - - /** - * @description The license associated with the repository - */ - - licenseInfo: (select) => - new Field( - "licenseInfo", - undefined as never, - new SelectionSet(select(License)) - ), - - /** - * @description The reason the repository has been locked. - */ - lockReason: () => new Field("lockReason"), - - /** - * @description A list of Users that can be mentioned in the context of the repository. - */ - - mentionableUsers: (variables, select) => - new Field( - "mentionableUsers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), - - /** - * @description Whether or not PRs are merged with a merge commit on this repository. - */ - mergeCommitAllowed: () => new Field("mergeCommitAllowed"), - - /** - * @description Returns a single milestone from the current repository by number. - */ - - milestone: (variables, select) => - new Field( - "milestone", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Milestone)) - ), - - /** - * @description A list of milestones associated with the repository. - */ - - milestones: (variables, select) => - new Field( - "milestones", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(MilestoneConnection)) - ), - - /** - * @description The repository's original mirror URL. - */ - mirrorUrl: () => new Field("mirrorUrl"), - - /** - * @description The name of the repository. - */ - name: () => new Field("name"), - - /** - * @description The repository's name with owner. - */ - nameWithOwner: () => new Field("nameWithOwner"), - - /** - * @description A Git object in the repository - */ - - object: (variables, select) => - new Field( - "object", - [ - new Argument("expression", variables.expression, _ENUM_VALUES), - new Argument("oid", variables.oid, _ENUM_VALUES), - ], - new SelectionSet(select(GitObject)) - ), - - /** - * @description The image used to represent this repository in Open Graph data. - */ - openGraphImageUrl: () => new Field("openGraphImageUrl"), - - /** - * @description The User owner of the repository. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(RepositoryOwner)) - ), - - /** - * @description A list of packages under the owner. - */ - - packages: (variables, select) => - new Field( - "packages", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("names", variables.names, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("packageType", variables.packageType, _ENUM_VALUES), - new Argument("repositoryId", variables.repositoryId, _ENUM_VALUES), - ], - new SelectionSet(select(PackageConnection)) - ), - - /** - * @description The repository parent, if this is a fork. - */ - - parent: (select) => - new Field( - "parent", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The primary language of the repository's code. - */ - - primaryLanguage: (select) => - new Field( - "primaryLanguage", - undefined as never, - new SelectionSet(select(Language)) - ), - - /** - * @description Find project by number. - */ - - project: (variables, select) => - new Field( - "project", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Project)) - ), - - /** - * @description A list of projects under the owner. - */ - - projects: (variables, select) => - new Field( - "projects", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("search", variables.search, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectConnection)) - ), - - /** - * @description The HTTP path listing the repository's projects - */ - projectsResourcePath: () => new Field("projectsResourcePath"), - - /** - * @description The HTTP URL listing the repository's projects - */ - projectsUrl: () => new Field("projectsUrl"), - - /** - * @description Returns a single pull request from the current repository by number. - */ - - pullRequest: (variables, select) => - new Field( - "pullRequest", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(PullRequest)) - ), - - /** - * @description A list of pull requests that have been opened in the repository. - */ - - pullRequests: (variables, select) => - new Field( - "pullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description Identifies when the repository was last pushed to. - */ - pushedAt: () => new Field("pushedAt"), - - /** - * @description Whether or not rebase-merging is enabled on this repository. - */ - rebaseMergeAllowed: () => new Field("rebaseMergeAllowed"), - - /** - * @description Fetch a given ref from the repository - */ - - ref: (variables, select) => - new Field( - "ref", - [new Argument("qualifiedName", variables.qualifiedName, _ENUM_VALUES)], - new SelectionSet(select(Ref)) - ), - - /** - * @description Fetch a list of refs from the repository - */ - - refs: (variables, select) => - new Field( - "refs", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("direction", variables.direction, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("refPrefix", variables.refPrefix, _ENUM_VALUES), - ], - new SelectionSet(select(RefConnection)) - ), - - /** - * @description Lookup a single release given various criteria. - */ - - release: (variables, select) => - new Field( - "release", - [new Argument("tagName", variables.tagName, _ENUM_VALUES)], - new SelectionSet(select(Release)) - ), - - /** - * @description List of releases which are dependent on this repository. - */ - - releases: (variables, select) => - new Field( - "releases", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReleaseConnection)) - ), - - /** - * @description A list of applied repository-topic associations for this repository. - */ - - repositoryTopics: (variables, select) => - new Field( - "repositoryTopics", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryTopicConnection)) - ), - - /** - * @description The HTTP path for this repository - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The security policy URL. - */ - securityPolicyUrl: () => new Field("securityPolicyUrl"), - - /** - * @description A description of the repository, rendered to HTML without any links in it. - */ - shortDescriptionHTML: (variables) => new Field("shortDescriptionHTML"), - - /** - * @description Whether or not squash-merging is enabled on this repository. - */ - squashMergeAllowed: () => new Field("squashMergeAllowed"), - - /** - * @description The SSH URL to clone this repository - */ - sshUrl: () => new Field("sshUrl"), - - /** - * @description Returns a count of how many stargazers there are on this object - */ - stargazerCount: () => new Field("stargazerCount"), - - /** - * @description A list of users who have starred this starrable. - */ - - stargazers: (variables, select) => - new Field( - "stargazers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(StargazerConnection)) - ), - - /** - * @description Returns a list of all submodules in this repository parsed from the -.gitmodules file as of the default branch's HEAD commit. - */ - - submodules: (variables, select) => - new Field( - "submodules", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(SubmoduleConnection)) - ), - - /** - * @description Temporary authentication token for cloning this repository. - */ - tempCloneToken: () => new Field("tempCloneToken"), - - /** - * @description The repository from which this repository was generated, if any. - */ - - templateRepository: (select) => - new Field( - "templateRepository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this repository - */ - url: () => new Field("url"), - - /** - * @description Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - */ - usesCustomOpenGraphImage: () => new Field("usesCustomOpenGraphImage"), - - /** - * @description Indicates whether the viewer has admin permissions on this repository. - */ - viewerCanAdminister: () => new Field("viewerCanAdminister"), - - /** - * @description Can the current viewer create new projects on this owner. - */ - viewerCanCreateProjects: () => new Field("viewerCanCreateProjects"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Indicates whether the viewer can update the topics of this repository. - */ - viewerCanUpdateTopics: () => new Field("viewerCanUpdateTopics"), - - /** - * @description The last commit email for the viewer. - */ - viewerDefaultCommitEmail: () => new Field("viewerDefaultCommitEmail"), - - /** - * @description The last used merge method by the viewer or the default for the repository. - */ - viewerDefaultMergeMethod: () => new Field("viewerDefaultMergeMethod"), - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - viewerHasStarred: () => new Field("viewerHasStarred"), - - /** - * @description The users permission level on the repository. Will return null if authenticated as an GitHub App. - */ - viewerPermission: () => new Field("viewerPermission"), - - /** - * @description A list of emails this viewer can commit with. - */ - viewerPossibleCommitEmails: () => new Field("viewerPossibleCommitEmails"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), - - /** - * @description A list of vulnerability alerts that are on this repository. - */ - - vulnerabilityAlerts: (variables, select) => - new Field( - "vulnerabilityAlerts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryVulnerabilityAlertConnection)) - ), - - /** - * @description A list of users watching the repository. - */ - - watchers: (variables, select) => - new Field( - "watchers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserConnection)) - ), -}; - -export interface IRepositoryAuditEntryData { - readonly __typename: string; - readonly repository: IRepository | null; - readonly repositoryName: string | null; - readonly repositoryResourcePath: unknown | null; - readonly repositoryUrl: unknown | null; -} - -interface RepositoryAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - readonly on: < - T extends Array, - F extends - | "OrgRestoreMemberMembershipRepositoryAuditEntryData" - | "PrivateRepositoryForkingDisableAuditEntry" - | "PrivateRepositoryForkingEnableAuditEntry" - | "RepoAccessAuditEntry" - | "RepoAddMemberAuditEntry" - | "RepoAddTopicAuditEntry" - | "RepoArchivedAuditEntry" - | "RepoChangeMergeSettingAuditEntry" - | "RepoConfigDisableAnonymousGitAccessAuditEntry" - | "RepoConfigDisableCollaboratorsOnlyAuditEntry" - | "RepoConfigDisableContributorsOnlyAuditEntry" - | "RepoConfigDisableSockpuppetDisallowedAuditEntry" - | "RepoConfigEnableAnonymousGitAccessAuditEntry" - | "RepoConfigEnableCollaboratorsOnlyAuditEntry" - | "RepoConfigEnableContributorsOnlyAuditEntry" - | "RepoConfigEnableSockpuppetDisallowedAuditEntry" - | "RepoConfigLockAnonymousGitAccessAuditEntry" - | "RepoConfigUnlockAnonymousGitAccessAuditEntry" - | "RepoCreateAuditEntry" - | "RepoDestroyAuditEntry" - | "RepoRemoveMemberAuditEntry" - | "RepoRemoveTopicAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - >( - type: F, - select: ( - t: F extends "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ? OrgRestoreMemberMembershipRepositoryAuditEntryDataSelector - : F extends "PrivateRepositoryForkingDisableAuditEntry" - ? PrivateRepositoryForkingDisableAuditEntrySelector - : F extends "PrivateRepositoryForkingEnableAuditEntry" - ? PrivateRepositoryForkingEnableAuditEntrySelector - : F extends "RepoAccessAuditEntry" - ? RepoAccessAuditEntrySelector - : F extends "RepoAddMemberAuditEntry" - ? RepoAddMemberAuditEntrySelector - : F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoArchivedAuditEntry" - ? RepoArchivedAuditEntrySelector - : F extends "RepoChangeMergeSettingAuditEntry" - ? RepoChangeMergeSettingAuditEntrySelector - : F extends "RepoConfigDisableAnonymousGitAccessAuditEntry" - ? RepoConfigDisableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigDisableCollaboratorsOnlyAuditEntry" - ? RepoConfigDisableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableContributorsOnlyAuditEntry" - ? RepoConfigDisableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ? RepoConfigDisableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigEnableAnonymousGitAccessAuditEntry" - ? RepoConfigEnableAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigEnableCollaboratorsOnlyAuditEntry" - ? RepoConfigEnableCollaboratorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableContributorsOnlyAuditEntry" - ? RepoConfigEnableContributorsOnlyAuditEntrySelector - : F extends "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ? RepoConfigEnableSockpuppetDisallowedAuditEntrySelector - : F extends "RepoConfigLockAnonymousGitAccessAuditEntry" - ? RepoConfigLockAnonymousGitAccessAuditEntrySelector - : F extends "RepoConfigUnlockAnonymousGitAccessAuditEntry" - ? RepoConfigUnlockAnonymousGitAccessAuditEntrySelector - : F extends "RepoCreateAuditEntry" - ? RepoCreateAuditEntrySelector - : F extends "RepoDestroyAuditEntry" - ? RepoDestroyAuditEntrySelector - : F extends "RepoRemoveMemberAuditEntry" - ? RepoRemoveMemberAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const RepositoryAuditEntryData: RepositoryAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - on: (type, select) => { - switch (type) { - case "OrgRestoreMemberMembershipRepositoryAuditEntryData": { - return new InlineFragment( - new NamedType( - "OrgRestoreMemberMembershipRepositoryAuditEntryData" - ) as any, - new SelectionSet( - select(OrgRestoreMemberMembershipRepositoryAuditEntryData as any) - ) - ); - } - - case "PrivateRepositoryForkingDisableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingDisableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingDisableAuditEntry as any) - ) - ); - } - - case "PrivateRepositoryForkingEnableAuditEntry": { - return new InlineFragment( - new NamedType("PrivateRepositoryForkingEnableAuditEntry") as any, - new SelectionSet( - select(PrivateRepositoryForkingEnableAuditEntry as any) - ) - ); - } - - case "RepoAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoAccessAuditEntry") as any, - new SelectionSet(select(RepoAccessAuditEntry as any)) - ); - } - - case "RepoAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddMemberAuditEntry") as any, - new SelectionSet(select(RepoAddMemberAuditEntry as any)) - ); - } - - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoArchivedAuditEntry": { - return new InlineFragment( - new NamedType("RepoArchivedAuditEntry") as any, - new SelectionSet(select(RepoArchivedAuditEntry as any)) - ); - } - - case "RepoChangeMergeSettingAuditEntry": { - return new InlineFragment( - new NamedType("RepoChangeMergeSettingAuditEntry") as any, - new SelectionSet(select(RepoChangeMergeSettingAuditEntry as any)) - ); - } - - case "RepoConfigDisableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigDisableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigDisableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigDisableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigDisableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigDisableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableCollaboratorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableCollaboratorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableCollaboratorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableContributorsOnlyAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigEnableContributorsOnlyAuditEntry") as any, - new SelectionSet( - select(RepoConfigEnableContributorsOnlyAuditEntry as any) - ) - ); - } - - case "RepoConfigEnableSockpuppetDisallowedAuditEntry": { - return new InlineFragment( - new NamedType( - "RepoConfigEnableSockpuppetDisallowedAuditEntry" - ) as any, - new SelectionSet( - select(RepoConfigEnableSockpuppetDisallowedAuditEntry as any) - ) - ); - } - - case "RepoConfigLockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigLockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigLockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoConfigUnlockAnonymousGitAccessAuditEntry": { - return new InlineFragment( - new NamedType("RepoConfigUnlockAnonymousGitAccessAuditEntry") as any, - new SelectionSet( - select(RepoConfigUnlockAnonymousGitAccessAuditEntry as any) - ) - ); - } - - case "RepoCreateAuditEntry": { - return new InlineFragment( - new NamedType("RepoCreateAuditEntry") as any, - new SelectionSet(select(RepoCreateAuditEntry as any)) - ); - } - - case "RepoDestroyAuditEntry": { - return new InlineFragment( - new NamedType("RepoDestroyAuditEntry") as any, - new SelectionSet(select(RepoDestroyAuditEntry as any)) - ); - } - - case "RepoRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveMemberAuditEntry") as any, - new SelectionSet(select(RepoRemoveMemberAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RepositoryAuditEntryData", - }); - } - }, -}; - -export interface IRepositoryCollaboratorConnection { - readonly __typename: "RepositoryCollaboratorConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface RepositoryCollaboratorConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RepositoryCollaboratorEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const RepositoryCollaboratorConnection: RepositoryCollaboratorConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(RepositoryCollaboratorEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IRepositoryCollaboratorEdge { - readonly __typename: "RepositoryCollaboratorEdge"; - readonly cursor: string; - readonly node: IUser; - readonly permission: RepositoryPermission; - readonly permissionSources: ReadonlyArray | null; -} - -interface RepositoryCollaboratorEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The permission the user has on the repository. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description A list of sources for the user's access to the repository. - */ - - readonly permissionSources: >( - select: (t: PermissionSourceSelector) => T - ) => Field<"permissionSources", never, SelectionSet>; -} - -export const RepositoryCollaboratorEdge: RepositoryCollaboratorEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The permission the user has on the repository. - */ - permission: () => new Field("permission"), - - /** - * @description A list of sources for the user's access to the repository. - */ - - permissionSources: (select) => - new Field( - "permissionSources", - undefined as never, - new SelectionSet(select(PermissionSource)) - ), -}; - -export interface IRepositoryConnection { - readonly __typename: "RepositoryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; - readonly totalDiskUsage: number; -} - -interface RepositoryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RepositoryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositorySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description The total size in kilobytes of all repositories in the connection. - */ - - readonly totalDiskUsage: () => Field<"totalDiskUsage">; -} - -export const RepositoryConnection: RepositoryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(RepositoryEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), - - /** - * @description The total size in kilobytes of all repositories in the connection. - */ - totalDiskUsage: () => new Field("totalDiskUsage"), -}; - -export interface IRepositoryContactLink { - readonly __typename: "RepositoryContactLink"; - readonly about: string; - readonly name: string; - readonly url: unknown; -} - -interface RepositoryContactLinkSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The contact link purpose. - */ - - readonly about: () => Field<"about">; - - /** - * @description The contact link name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The contact link URL. - */ - - readonly url: () => Field<"url">; -} - -export const RepositoryContactLink: RepositoryContactLinkSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The contact link purpose. - */ - about: () => new Field("about"), - - /** - * @description The contact link name. - */ - name: () => new Field("name"), - - /** - * @description The contact link URL. - */ - url: () => new Field("url"), -}; - -export interface IRepositoryEdge { - readonly __typename: "RepositoryEdge"; - readonly cursor: string; - readonly node: IRepository | null; -} - -interface RepositoryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: RepositorySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const RepositoryEdge: RepositoryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Repository))), -}; - -export interface IRepositoryInfo { - readonly __typename: string; - readonly createdAt: unknown; - readonly description: string | null; - readonly descriptionHTML: unknown; - readonly forkCount: number; - readonly hasIssuesEnabled: boolean; - readonly hasProjectsEnabled: boolean; - readonly hasWikiEnabled: boolean; - readonly homepageUrl: unknown | null; - readonly isArchived: boolean; - readonly isFork: boolean; - readonly isInOrganization: boolean; - readonly isLocked: boolean; - readonly isMirror: boolean; - readonly isPrivate: boolean; - readonly isTemplate: boolean; - readonly licenseInfo: ILicense | null; - readonly lockReason: RepositoryLockReason | null; - readonly mirrorUrl: unknown | null; - readonly name: string; - readonly nameWithOwner: string; - readonly openGraphImageUrl: unknown; - readonly owner: IRepositoryOwner; - readonly pushedAt: unknown | null; - readonly resourcePath: unknown; - readonly shortDescriptionHTML: unknown; - readonly updatedAt: unknown; - readonly url: unknown; - readonly usesCustomOpenGraphImage: boolean; -} - -interface RepositoryInfoSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The description of the repository. - */ - - readonly description: () => Field<"description">; - - /** - * @description The description of the repository rendered to HTML. - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - /** - * @description Returns how many forks there are of this repository in the whole network. - */ - - readonly forkCount: () => Field<"forkCount">; - - /** - * @description Indicates if the repository has issues feature enabled. - */ - - readonly hasIssuesEnabled: () => Field<"hasIssuesEnabled">; - - /** - * @description Indicates if the repository has the Projects feature enabled. - */ - - readonly hasProjectsEnabled: () => Field<"hasProjectsEnabled">; - - /** - * @description Indicates if the repository has wiki feature enabled. - */ - - readonly hasWikiEnabled: () => Field<"hasWikiEnabled">; - - /** - * @description The repository's URL. - */ - - readonly homepageUrl: () => Field<"homepageUrl">; - - /** - * @description Indicates if the repository is unmaintained. - */ - - readonly isArchived: () => Field<"isArchived">; - - /** - * @description Identifies if the repository is a fork. - */ - - readonly isFork: () => Field<"isFork">; - - /** - * @description Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - */ - - readonly isInOrganization: () => Field<"isInOrganization">; - - /** - * @description Indicates if the repository has been locked or not. - */ - - readonly isLocked: () => Field<"isLocked">; - - /** - * @description Identifies if the repository is a mirror. - */ - - readonly isMirror: () => Field<"isMirror">; - - /** - * @description Identifies if the repository is private. - */ - - readonly isPrivate: () => Field<"isPrivate">; - - /** - * @description Identifies if the repository is a template that can be used to generate new repositories. - */ - - readonly isTemplate: () => Field<"isTemplate">; - - /** - * @description The license associated with the repository - */ - - readonly licenseInfo: >( - select: (t: LicenseSelector) => T - ) => Field<"licenseInfo", never, SelectionSet>; - - /** - * @description The reason the repository has been locked. - */ - - readonly lockReason: () => Field<"lockReason">; - - /** - * @description The repository's original mirror URL. - */ - - readonly mirrorUrl: () => Field<"mirrorUrl">; - - /** - * @description The name of the repository. - */ - - readonly name: () => Field<"name">; - - /** - * @description The repository's name with owner. - */ - - readonly nameWithOwner: () => Field<"nameWithOwner">; - - /** - * @description The image used to represent this repository in Open Graph data. - */ - - readonly openGraphImageUrl: () => Field<"openGraphImageUrl">; - - /** - * @description The User owner of the repository. - */ - - readonly owner: >( - select: (t: RepositoryOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; - - /** - * @description Identifies when the repository was last pushed to. - */ - - readonly pushedAt: () => Field<"pushedAt">; - - /** - * @description The HTTP path for this repository - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description A description of the repository, rendered to HTML without any links in it. - */ - - readonly shortDescriptionHTML: (variables: { - limit?: Variable<"limit"> | number; - }) => Field< - "shortDescriptionHTML", - [Argument<"limit", Variable<"limit"> | number>] - >; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this repository - */ - - readonly url: () => Field<"url">; - - /** - * @description Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - */ - - readonly usesCustomOpenGraphImage: () => Field<"usesCustomOpenGraphImage">; - - readonly on: , F extends "Repository">( - type: F, - select: (t: RepositorySelector) => T - ) => InlineFragment, SelectionSet>; -} - -export const RepositoryInfo: RepositoryInfoSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The description of the repository. - */ - description: () => new Field("description"), - - /** - * @description The description of the repository rendered to HTML. - */ - descriptionHTML: () => new Field("descriptionHTML"), - - /** - * @description Returns how many forks there are of this repository in the whole network. - */ - forkCount: () => new Field("forkCount"), - - /** - * @description Indicates if the repository has issues feature enabled. - */ - hasIssuesEnabled: () => new Field("hasIssuesEnabled"), - - /** - * @description Indicates if the repository has the Projects feature enabled. - */ - hasProjectsEnabled: () => new Field("hasProjectsEnabled"), - - /** - * @description Indicates if the repository has wiki feature enabled. - */ - hasWikiEnabled: () => new Field("hasWikiEnabled"), - - /** - * @description The repository's URL. - */ - homepageUrl: () => new Field("homepageUrl"), - - /** - * @description Indicates if the repository is unmaintained. - */ - isArchived: () => new Field("isArchived"), - - /** - * @description Identifies if the repository is a fork. - */ - isFork: () => new Field("isFork"), - - /** - * @description Indicates if a repository is either owned by an organization, or is a private fork of an organization repository. - */ - isInOrganization: () => new Field("isInOrganization"), - - /** - * @description Indicates if the repository has been locked or not. - */ - isLocked: () => new Field("isLocked"), - - /** - * @description Identifies if the repository is a mirror. - */ - isMirror: () => new Field("isMirror"), - - /** - * @description Identifies if the repository is private. - */ - isPrivate: () => new Field("isPrivate"), - - /** - * @description Identifies if the repository is a template that can be used to generate new repositories. - */ - isTemplate: () => new Field("isTemplate"), - - /** - * @description The license associated with the repository - */ - - licenseInfo: (select) => - new Field( - "licenseInfo", - undefined as never, - new SelectionSet(select(License)) - ), - - /** - * @description The reason the repository has been locked. - */ - lockReason: () => new Field("lockReason"), - - /** - * @description The repository's original mirror URL. - */ - mirrorUrl: () => new Field("mirrorUrl"), - - /** - * @description The name of the repository. - */ - name: () => new Field("name"), - - /** - * @description The repository's name with owner. - */ - nameWithOwner: () => new Field("nameWithOwner"), - - /** - * @description The image used to represent this repository in Open Graph data. - */ - openGraphImageUrl: () => new Field("openGraphImageUrl"), - - /** - * @description The User owner of the repository. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(RepositoryOwner)) - ), - - /** - * @description Identifies when the repository was last pushed to. - */ - pushedAt: () => new Field("pushedAt"), - - /** - * @description The HTTP path for this repository - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description A description of the repository, rendered to HTML without any links in it. - */ - shortDescriptionHTML: (variables) => new Field("shortDescriptionHTML"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this repository - */ - url: () => new Field("url"), - - /** - * @description Whether this repository has a custom image to use with Open Graph as opposed to being represented by the owner's avatar. - */ - usesCustomOpenGraphImage: () => new Field("usesCustomOpenGraphImage"), - - on: (type, select) => { - switch (type) { - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RepositoryInfo", - }); - } - }, -}; - -export interface IRepositoryInteractionAbility { - readonly __typename: "RepositoryInteractionAbility"; - readonly expiresAt: unknown | null; - readonly limit: RepositoryInteractionLimit; - readonly origin: RepositoryInteractionLimitOrigin; -} - -interface RepositoryInteractionAbilitySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The time the currently active limit expires. - */ - - readonly expiresAt: () => Field<"expiresAt">; - - /** - * @description The current limit that is enabled on this object. - */ - - readonly limit: () => Field<"limit">; - - /** - * @description The origin of the currently active interaction limit. - */ - - readonly origin: () => Field<"origin">; -} - -export const RepositoryInteractionAbility: RepositoryInteractionAbilitySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The time the currently active limit expires. - */ - expiresAt: () => new Field("expiresAt"), - - /** - * @description The current limit that is enabled on this object. - */ - limit: () => new Field("limit"), - - /** - * @description The origin of the currently active interaction limit. - */ - origin: () => new Field("origin"), -}; - -export interface IRepositoryInvitation extends INode { - readonly __typename: "RepositoryInvitation"; - readonly email: string | null; - readonly invitee: IUser | null; - readonly inviter: IUser; - readonly permalink: unknown; - readonly permission: RepositoryPermission; - readonly repository: IRepositoryInfo | null; -} - -interface RepositoryInvitationSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The email address that received the invitation. - */ - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description The user who received the invitation. - */ - - readonly invitee: >( - select: (t: UserSelector) => T - ) => Field<"invitee", never, SelectionSet>; - - /** - * @description The user who created the invitation. - */ - - readonly inviter: >( - select: (t: UserSelector) => T - ) => Field<"inviter", never, SelectionSet>; - - /** - * @description The permalink for this repository invitation. - */ - - readonly permalink: () => Field<"permalink">; - - /** - * @description The permission granted on this repository by this invitation. - */ - - readonly permission: () => Field<"permission">; - - /** - * @description The Repository the user is invited to. - */ - - readonly repository: >( - select: (t: RepositoryInfoSelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const isRepositoryInvitation = ( - object: Record -): object is Partial => { - return object.__typename === "RepositoryInvitation"; -}; - -export const RepositoryInvitation: RepositoryInvitationSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The email address that received the invitation. - */ - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description The user who received the invitation. - */ - - invitee: (select) => - new Field("invitee", undefined as never, new SelectionSet(select(User))), - - /** - * @description The user who created the invitation. - */ - - inviter: (select) => - new Field("inviter", undefined as never, new SelectionSet(select(User))), - - /** - * @description The permalink for this repository invitation. - */ - permalink: () => new Field("permalink"), - - /** - * @description The permission granted on this repository by this invitation. - */ - permission: () => new Field("permission"), - - /** - * @description The Repository the user is invited to. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(RepositoryInfo)) - ), -}; - -export interface IRepositoryInvitationConnection { - readonly __typename: "RepositoryInvitationConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface RepositoryInvitationConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RepositoryInvitationEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositoryInvitationSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const RepositoryInvitationConnection: RepositoryInvitationConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(RepositoryInvitationEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(RepositoryInvitation)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IRepositoryInvitationEdge { - readonly __typename: "RepositoryInvitationEdge"; - readonly cursor: string; - readonly node: IRepositoryInvitation | null; -} - -interface RepositoryInvitationEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: RepositoryInvitationSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const RepositoryInvitationEdge: RepositoryInvitationEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(RepositoryInvitation)) - ), -}; - -export interface IRepositoryNode { - readonly __typename: string; - readonly repository: IRepository; -} - -interface RepositoryNodeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The repository associated with this node. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "CommitCommentThread" - | "Issue" - | "IssueComment" - | "PullRequest" - | "PullRequestCommitCommentThread" - | "PullRequestReview" - | "PullRequestReviewComment" - | "RepositoryVulnerabilityAlert" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "CommitCommentThread" - ? CommitCommentThreadSelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestCommitCommentThread" - ? PullRequestCommitCommentThreadSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "RepositoryVulnerabilityAlert" - ? RepositoryVulnerabilityAlertSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const RepositoryNode: RepositoryNodeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The repository associated with this node. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "CommitCommentThread": { - return new InlineFragment( - new NamedType("CommitCommentThread") as any, - new SelectionSet(select(CommitCommentThread as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestCommitCommentThread": { - return new InlineFragment( - new NamedType("PullRequestCommitCommentThread") as any, - new SelectionSet(select(PullRequestCommitCommentThread as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "RepositoryVulnerabilityAlert": { - return new InlineFragment( - new NamedType("RepositoryVulnerabilityAlert") as any, - new SelectionSet(select(RepositoryVulnerabilityAlert as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RepositoryNode", - }); - } - }, -}; - -export interface IRepositoryOwner { - readonly __typename: string; - readonly avatarUrl: unknown; - readonly id: string; - readonly login: string; - readonly repositories: IRepositoryConnection; - readonly repository: IRepository | null; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface RepositoryOwnerSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A URL pointing to the owner's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - readonly id: () => Field<"id">; - - /** - * @description The username used to login. - */ - - readonly login: () => Field<"login">; - - /** - * @description A list of repositories that the user owns. - */ - - readonly repositories: >( - variables: { - affiliations?: Variable<"affiliations"> | RepositoryAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isFork?: Variable<"isFork"> | boolean; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - ownerAffiliations?: Variable<"ownerAffiliations"> | RepositoryAffiliation; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument< - "affiliations", - Variable<"affiliations"> | RepositoryAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isFork", Variable<"isFork"> | boolean>, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument< - "ownerAffiliations", - Variable<"ownerAffiliations"> | RepositoryAffiliation - >, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description Find Repository. - */ - - readonly repository: >( - variables: { name?: Variable<"name"> | string }, - select: (t: RepositorySelector) => T - ) => Field< - "repository", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description The HTTP URL for the owner. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for the owner. - */ - - readonly url: () => Field<"url">; - - readonly on: , F extends "Organization" | "User">( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const RepositoryOwner: RepositoryOwnerSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A URL pointing to the owner's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - id: () => new Field("id"), - - /** - * @description The username used to login. - */ - login: () => new Field("login"), - - /** - * @description A list of repositories that the user owns. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("affiliations", variables.affiliations, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isFork", variables.isFork, _ENUM_VALUES), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "ownerAffiliations", - variables.ownerAffiliations, - _ENUM_VALUES - ), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description Find Repository. - */ - - repository: (variables, select) => - new Field( - "repository", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP URL for the owner. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for the owner. - */ - url: () => new Field("url"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "RepositoryOwner", - }); - } - }, -}; - -export interface IRepositoryTopic extends INode, IUniformResourceLocatable { - readonly __typename: "RepositoryTopic"; - readonly topic: ITopic; -} - -interface RepositoryTopicSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description The HTTP path for this repository-topic. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The topic. - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; - - /** - * @description The HTTP URL for this repository-topic. - */ - - readonly url: () => Field<"url">; -} - -export const isRepositoryTopic = ( - object: Record -): object is Partial => { - return object.__typename === "RepositoryTopic"; -}; - -export const RepositoryTopic: RepositoryTopicSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description The HTTP path for this repository-topic. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The topic. - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), - - /** - * @description The HTTP URL for this repository-topic. - */ - url: () => new Field("url"), -}; - -export interface IRepositoryTopicConnection { - readonly __typename: "RepositoryTopicConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface RepositoryTopicConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RepositoryTopicEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositoryTopicSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const RepositoryTopicConnection: RepositoryTopicConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(RepositoryTopicEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(RepositoryTopic)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IRepositoryTopicEdge { - readonly __typename: "RepositoryTopicEdge"; - readonly cursor: string; - readonly node: IRepositoryTopic | null; -} - -interface RepositoryTopicEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: RepositoryTopicSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const RepositoryTopicEdge: RepositoryTopicEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(RepositoryTopic)) - ), -}; - -export interface IRepositoryVisibilityChangeDisableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "RepositoryVisibilityChangeDisableAuditEntry"; -} - -interface RepositoryVisibilityChangeDisableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepositoryVisibilityChangeDisableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepositoryVisibilityChangeDisableAuditEntry"; -}; - -export const RepositoryVisibilityChangeDisableAuditEntry: RepositoryVisibilityChangeDisableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepositoryVisibilityChangeEnableAuditEntry - extends IAuditEntry, - IEnterpriseAuditEntryData, - INode, - IOrganizationAuditEntryData { - readonly __typename: "RepositoryVisibilityChangeEnableAuditEntry"; -} - -interface RepositoryVisibilityChangeEnableAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The HTTP path for this enterprise. - */ - - readonly enterpriseResourcePath: () => Field<"enterpriseResourcePath">; - - /** - * @description The slug of the enterprise. - */ - - readonly enterpriseSlug: () => Field<"enterpriseSlug">; - - /** - * @description The HTTP URL for this enterprise. - */ - - readonly enterpriseUrl: () => Field<"enterpriseUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isRepositoryVisibilityChangeEnableAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "RepositoryVisibilityChangeEnableAuditEntry"; -}; - -export const RepositoryVisibilityChangeEnableAuditEntry: RepositoryVisibilityChangeEnableAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The HTTP path for this enterprise. - */ - enterpriseResourcePath: () => new Field("enterpriseResourcePath"), - - /** - * @description The slug of the enterprise. - */ - enterpriseSlug: () => new Field("enterpriseSlug"), - - /** - * @description The HTTP URL for this enterprise. - */ - enterpriseUrl: () => new Field("enterpriseUrl"), - id: () => new Field("id"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface IRepositoryVulnerabilityAlert extends INode, IRepositoryNode { - readonly __typename: "RepositoryVulnerabilityAlert"; - readonly createdAt: unknown; - readonly dismissReason: string | null; - readonly dismissedAt: unknown | null; - readonly dismisser: IUser | null; - readonly securityAdvisory: ISecurityAdvisory | null; - readonly securityVulnerability: ISecurityVulnerability | null; - readonly vulnerableManifestFilename: string; - readonly vulnerableManifestPath: string; - readonly vulnerableRequirements: string | null; -} - -interface RepositoryVulnerabilityAlertSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description When was the alert created? - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The reason the alert was dismissed - */ - - readonly dismissReason: () => Field<"dismissReason">; - - /** - * @description When was the alert dimissed? - */ - - readonly dismissedAt: () => Field<"dismissedAt">; - - /** - * @description The user who dismissed the alert - */ - - readonly dismisser: >( - select: (t: UserSelector) => T - ) => Field<"dismisser", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The associated repository - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The associated security advisory - */ - - readonly securityAdvisory: >( - select: (t: SecurityAdvisorySelector) => T - ) => Field<"securityAdvisory", never, SelectionSet>; - - /** - * @description The associated security vulnerablity - */ - - readonly securityVulnerability: >( - select: (t: SecurityVulnerabilitySelector) => T - ) => Field<"securityVulnerability", never, SelectionSet>; - - /** - * @description The vulnerable manifest filename - */ - - readonly vulnerableManifestFilename: () => Field<"vulnerableManifestFilename">; - - /** - * @description The vulnerable manifest path - */ - - readonly vulnerableManifestPath: () => Field<"vulnerableManifestPath">; - - /** - * @description The vulnerable requirements - */ - - readonly vulnerableRequirements: () => Field<"vulnerableRequirements">; -} - -export const isRepositoryVulnerabilityAlert = ( - object: Record -): object is Partial => { - return object.__typename === "RepositoryVulnerabilityAlert"; -}; - -export const RepositoryVulnerabilityAlert: RepositoryVulnerabilityAlertSelector = { - __typename: () => new Field("__typename"), - - /** - * @description When was the alert created? - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The reason the alert was dismissed - */ - dismissReason: () => new Field("dismissReason"), - - /** - * @description When was the alert dimissed? - */ - dismissedAt: () => new Field("dismissedAt"), - - /** - * @description The user who dismissed the alert - */ - - dismisser: (select) => - new Field("dismisser", undefined as never, new SelectionSet(select(User))), - - id: () => new Field("id"), - - /** - * @description The associated repository - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The associated security advisory - */ - - securityAdvisory: (select) => - new Field( - "securityAdvisory", - undefined as never, - new SelectionSet(select(SecurityAdvisory)) - ), - - /** - * @description The associated security vulnerablity - */ - - securityVulnerability: (select) => - new Field( - "securityVulnerability", - undefined as never, - new SelectionSet(select(SecurityVulnerability)) - ), - - /** - * @description The vulnerable manifest filename - */ - vulnerableManifestFilename: () => new Field("vulnerableManifestFilename"), - - /** - * @description The vulnerable manifest path - */ - vulnerableManifestPath: () => new Field("vulnerableManifestPath"), - - /** - * @description The vulnerable requirements - */ - vulnerableRequirements: () => new Field("vulnerableRequirements"), -}; - -export interface IRepositoryVulnerabilityAlertConnection { - readonly __typename: "RepositoryVulnerabilityAlertConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface RepositoryVulnerabilityAlertConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: RepositoryVulnerabilityAlertEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositoryVulnerabilityAlertSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const RepositoryVulnerabilityAlertConnection: RepositoryVulnerabilityAlertConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(RepositoryVulnerabilityAlertEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(RepositoryVulnerabilityAlert)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IRepositoryVulnerabilityAlertEdge { - readonly __typename: "RepositoryVulnerabilityAlertEdge"; - readonly cursor: string; - readonly node: IRepositoryVulnerabilityAlert | null; -} - -interface RepositoryVulnerabilityAlertEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: RepositoryVulnerabilityAlertSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const RepositoryVulnerabilityAlertEdge: RepositoryVulnerabilityAlertEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(RepositoryVulnerabilityAlert)) - ), -}; - -export interface IRequestReviewsPayload { - readonly __typename: "RequestReviewsPayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; - readonly requestedReviewersEdge: IUserEdge | null; -} - -interface RequestReviewsPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The pull request that is getting requests. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The edge from the pull request to the requested reviewers. - */ - - readonly requestedReviewersEdge: >( - select: (t: UserEdgeSelector) => T - ) => Field<"requestedReviewersEdge", never, SelectionSet>; -} - -export const RequestReviewsPayload: RequestReviewsPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The pull request that is getting requests. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The edge from the pull request to the requested reviewers. - */ - - requestedReviewersEdge: (select) => - new Field( - "requestedReviewersEdge", - undefined as never, - new SelectionSet(select(UserEdge)) - ), -}; - -export interface IRerequestCheckSuitePayload { - readonly __typename: "RerequestCheckSuitePayload"; - readonly checkSuite: ICheckSuite | null; - readonly clientMutationId: string | null; -} - -interface RerequestCheckSuitePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The requested check suite. - */ - - readonly checkSuite: >( - select: (t: CheckSuiteSelector) => T - ) => Field<"checkSuite", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const RerequestCheckSuitePayload: RerequestCheckSuitePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The requested check suite. - */ - - checkSuite: (select) => - new Field( - "checkSuite", - undefined as never, - new SelectionSet(select(CheckSuite)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IResolveReviewThreadPayload { - readonly __typename: "ResolveReviewThreadPayload"; - readonly clientMutationId: string | null; - readonly thread: IPullRequestReviewThread | null; -} - -interface ResolveReviewThreadPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The thread to resolve. - */ - - readonly thread: >( - select: (t: PullRequestReviewThreadSelector) => T - ) => Field<"thread", never, SelectionSet>; -} - -export const ResolveReviewThreadPayload: ResolveReviewThreadPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The thread to resolve. - */ - - thread: (select) => - new Field( - "thread", - undefined as never, - new SelectionSet(select(PullRequestReviewThread)) - ), -}; - -export interface IRestrictedContribution extends IContribution { - readonly __typename: "RestrictedContribution"; -} - -interface RestrictedContributionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - - readonly isRestricted: () => Field<"isRestricted">; - - /** - * @description When this contribution was made. - */ - - readonly occurredAt: () => Field<"occurredAt">; - - /** - * @description The HTTP path for this contribution. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The HTTP URL for this contribution. - */ - - readonly url: () => Field<"url">; - - /** - * @description The user who made this contribution. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isRestrictedContribution = ( - object: Record -): object is Partial => { - return object.__typename === "RestrictedContribution"; -}; - -export const RestrictedContribution: RestrictedContributionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this contribution is associated with a record you do not have access to. For -example, your own 'first issue' contribution may have been made on a repository you can no -longer access. - */ - isRestricted: () => new Field("isRestricted"), - - /** - * @description When this contribution was made. - */ - occurredAt: () => new Field("occurredAt"), - - /** - * @description The HTTP path for this contribution. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The HTTP URL for this contribution. - */ - url: () => new Field("url"), - - /** - * @description The user who made this contribution. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IReviewDismissalAllowance extends INode { - readonly __typename: "ReviewDismissalAllowance"; - readonly actor: IReviewDismissalAllowanceActor | null; - readonly branchProtectionRule: IBranchProtectionRule | null; -} - -interface ReviewDismissalAllowanceSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor that can dismiss. - */ - - readonly actor: >( - select: (t: ReviewDismissalAllowanceActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the branch protection rule associated with the allowed user or team. - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - readonly id: () => Field<"id">; -} - -export const isReviewDismissalAllowance = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewDismissalAllowance"; -}; - -export const ReviewDismissalAllowance: ReviewDismissalAllowanceSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor that can dismiss. - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(ReviewDismissalAllowanceActor)) - ), - - /** - * @description Identifies the branch protection rule associated with the allowed user or team. - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - id: () => new Field("id"), -}; - -export interface IReviewDismissalAllowanceConnection { - readonly __typename: "ReviewDismissalAllowanceConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ReviewDismissalAllowanceConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReviewDismissalAllowanceEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ReviewDismissalAllowanceSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ReviewDismissalAllowanceConnection: ReviewDismissalAllowanceConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReviewDismissalAllowanceEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ReviewDismissalAllowance)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IReviewDismissalAllowanceEdge { - readonly __typename: "ReviewDismissalAllowanceEdge"; - readonly cursor: string; - readonly node: IReviewDismissalAllowance | null; -} - -interface ReviewDismissalAllowanceEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ReviewDismissalAllowanceSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ReviewDismissalAllowanceEdge: ReviewDismissalAllowanceEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ReviewDismissalAllowance)) - ), -}; - -export interface IReviewDismissedEvent - extends INode, - IUniformResourceLocatable { - readonly __typename: "ReviewDismissedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly dismissalMessage: string | null; - readonly dismissalMessageHTML: string | null; - readonly previousReviewState: PullRequestReviewState; - readonly pullRequest: IPullRequest; - readonly pullRequestCommit: IPullRequestCommit | null; - readonly review: IPullRequestReview | null; -} - -interface ReviewDismissedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description Identifies the optional message associated with the 'review_dismissed' event. - */ - - readonly dismissalMessage: () => Field<"dismissalMessage">; - - /** - * @description Identifies the optional message associated with the event, rendered to HTML. - */ - - readonly dismissalMessageHTML: () => Field<"dismissalMessageHTML">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the previous state of the review with the 'review_dismissed' event. - */ - - readonly previousReviewState: () => Field<"previousReviewState">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the commit which caused the review to become stale. - */ - - readonly pullRequestCommit: >( - select: (t: PullRequestCommitSelector) => T - ) => Field<"pullRequestCommit", never, SelectionSet>; - - /** - * @description The HTTP path for this review dismissed event. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the review associated with the 'review_dismissed' event. - */ - - readonly review: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"review", never, SelectionSet>; - - /** - * @description The HTTP URL for this review dismissed event. - */ - - readonly url: () => Field<"url">; -} - -export const isReviewDismissedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewDismissedEvent"; -}; - -export const ReviewDismissedEvent: ReviewDismissedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description Identifies the optional message associated with the 'review_dismissed' event. - */ - dismissalMessage: () => new Field("dismissalMessage"), - - /** - * @description Identifies the optional message associated with the event, rendered to HTML. - */ - dismissalMessageHTML: () => new Field("dismissalMessageHTML"), - id: () => new Field("id"), - - /** - * @description Identifies the previous state of the review with the 'review_dismissed' event. - */ - previousReviewState: () => new Field("previousReviewState"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the commit which caused the review to become stale. - */ - - pullRequestCommit: (select) => - new Field( - "pullRequestCommit", - undefined as never, - new SelectionSet(select(PullRequestCommit)) - ), - - /** - * @description The HTTP path for this review dismissed event. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the review associated with the 'review_dismissed' event. - */ - - review: (select) => - new Field( - "review", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), - - /** - * @description The HTTP URL for this review dismissed event. - */ - url: () => new Field("url"), -}; - -export interface IReviewRequest extends INode { - readonly __typename: "ReviewRequest"; - readonly asCodeOwner: boolean; - readonly databaseId: number | null; - readonly pullRequest: IPullRequest; - readonly requestedReviewer: IRequestedReviewer | null; -} - -interface ReviewRequestSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Whether this request was created for a code owner - */ - - readonly asCodeOwner: () => Field<"asCodeOwner">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the pull request associated with this review request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description The reviewer that is requested. - */ - - readonly requestedReviewer: >( - select: (t: RequestedReviewerSelector) => T - ) => Field<"requestedReviewer", never, SelectionSet>; -} - -export const isReviewRequest = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewRequest"; -}; - -export const ReviewRequest: ReviewRequestSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Whether this request was created for a code owner - */ - asCodeOwner: () => new Field("asCodeOwner"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description Identifies the pull request associated with this review request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description The reviewer that is requested. - */ - - requestedReviewer: (select) => - new Field( - "requestedReviewer", - undefined as never, - new SelectionSet(select(RequestedReviewer)) - ), -}; - -export interface IReviewRequestConnection { - readonly __typename: "ReviewRequestConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface ReviewRequestConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: ReviewRequestEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: ReviewRequestSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const ReviewRequestConnection: ReviewRequestConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(ReviewRequestEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(ReviewRequest)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IReviewRequestEdge { - readonly __typename: "ReviewRequestEdge"; - readonly cursor: string; - readonly node: IReviewRequest | null; -} - -interface ReviewRequestEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: ReviewRequestSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const ReviewRequestEdge: ReviewRequestEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(ReviewRequest)) - ), -}; - -export interface IReviewRequestRemovedEvent extends INode { - readonly __typename: "ReviewRequestRemovedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; - readonly requestedReviewer: IRequestedReviewer | null; -} - -interface ReviewRequestRemovedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the reviewer whose review request was removed. - */ - - readonly requestedReviewer: >( - select: (t: RequestedReviewerSelector) => T - ) => Field<"requestedReviewer", never, SelectionSet>; -} - -export const isReviewRequestRemovedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewRequestRemovedEvent"; -}; - -export const ReviewRequestRemovedEvent: ReviewRequestRemovedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the reviewer whose review request was removed. - */ - - requestedReviewer: (select) => - new Field( - "requestedReviewer", - undefined as never, - new SelectionSet(select(RequestedReviewer)) - ), -}; - -export interface IReviewRequestedEvent extends INode { - readonly __typename: "ReviewRequestedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly pullRequest: IPullRequest; - readonly requestedReviewer: IRequestedReviewer | null; -} - -interface ReviewRequestedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description PullRequest referenced by event. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; - - /** - * @description Identifies the reviewer whose review was requested. - */ - - readonly requestedReviewer: >( - select: (t: RequestedReviewerSelector) => T - ) => Field<"requestedReviewer", never, SelectionSet>; -} - -export const isReviewRequestedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewRequestedEvent"; -}; - -export const ReviewRequestedEvent: ReviewRequestedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description PullRequest referenced by event. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), - - /** - * @description Identifies the reviewer whose review was requested. - */ - - requestedReviewer: (select) => - new Field( - "requestedReviewer", - undefined as never, - new SelectionSet(select(RequestedReviewer)) - ), -}; - -export interface IReviewStatusHovercardContext extends IHovercardContext { - readonly __typename: "ReviewStatusHovercardContext"; - readonly reviewDecision: PullRequestReviewDecision | null; -} - -interface ReviewStatusHovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; - - /** - * @description The current status of the pull request with respect to code review. - */ - - readonly reviewDecision: () => Field<"reviewDecision">; -} - -export const isReviewStatusHovercardContext = ( - object: Record -): object is Partial => { - return object.__typename === "ReviewStatusHovercardContext"; -}; - -export const ReviewStatusHovercardContext: ReviewStatusHovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), - - /** - * @description The current status of the pull request with respect to code review. - */ - reviewDecision: () => new Field("reviewDecision"), -}; - -export interface ISavedReply extends INode { - readonly __typename: "SavedReply"; - readonly body: string; - readonly bodyHTML: unknown; - readonly databaseId: number | null; - readonly title: string; - readonly user: IActor | null; -} - -interface SavedReplySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The body of the saved reply. - */ - - readonly body: () => Field<"body">; - - /** - * @description The saved reply body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - readonly id: () => Field<"id">; - - /** - * @description The title of the saved reply. - */ - - readonly title: () => Field<"title">; - - /** - * @description The user that saved this reply. - */ - - readonly user: >( - select: (t: ActorSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isSavedReply = ( - object: Record -): object is Partial => { - return object.__typename === "SavedReply"; -}; - -export const SavedReply: SavedReplySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The body of the saved reply. - */ - body: () => new Field("body"), - - /** - * @description The saved reply body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - id: () => new Field("id"), - - /** - * @description The title of the saved reply. - */ - title: () => new Field("title"), - - /** - * @description The user that saved this reply. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(Actor))), -}; - -export interface ISavedReplyConnection { - readonly __typename: "SavedReplyConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SavedReplyConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SavedReplyEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SavedReplySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SavedReplyConnection: SavedReplyConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SavedReplyEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(SavedReply)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISavedReplyEdge { - readonly __typename: "SavedReplyEdge"; - readonly cursor: string; - readonly node: ISavedReply | null; -} - -interface SavedReplyEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SavedReplySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SavedReplyEdge: SavedReplyEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(SavedReply))), -}; - -export interface ISearchResultItemConnection { - readonly __typename: "SearchResultItemConnection"; - readonly codeCount: number; - readonly edges: ReadonlyArray | null; - readonly issueCount: number; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly repositoryCount: number; - readonly userCount: number; - readonly wikiCount: number; -} - -interface SearchResultItemConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The number of pieces of code that matched the search query. - */ - - readonly codeCount: () => Field<"codeCount">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SearchResultItemEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description The number of issues that matched the search query. - */ - - readonly issueCount: () => Field<"issueCount">; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SearchResultItemSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description The number of repositories that matched the search query. - */ - - readonly repositoryCount: () => Field<"repositoryCount">; - - /** - * @description The number of users that matched the search query. - */ - - readonly userCount: () => Field<"userCount">; - - /** - * @description The number of wiki pages that matched the search query. - */ - - readonly wikiCount: () => Field<"wikiCount">; -} - -export const SearchResultItemConnection: SearchResultItemConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of pieces of code that matched the search query. - */ - codeCount: () => new Field("codeCount"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SearchResultItemEdge)) - ), - - /** - * @description The number of issues that matched the search query. - */ - issueCount: () => new Field("issueCount"), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(SearchResultItem)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description The number of repositories that matched the search query. - */ - repositoryCount: () => new Field("repositoryCount"), - - /** - * @description The number of users that matched the search query. - */ - userCount: () => new Field("userCount"), - - /** - * @description The number of wiki pages that matched the search query. - */ - wikiCount: () => new Field("wikiCount"), -}; - -export interface ISearchResultItemEdge { - readonly __typename: "SearchResultItemEdge"; - readonly cursor: string; - readonly node: ISearchResultItem | null; - readonly textMatches: ReadonlyArray | null; -} - -interface SearchResultItemEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SearchResultItemSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description Text matches on the result found. - */ - - readonly textMatches: >( - select: (t: TextMatchSelector) => T - ) => Field<"textMatches", never, SelectionSet>; -} - -export const SearchResultItemEdge: SearchResultItemEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(SearchResultItem)) - ), - - /** - * @description Text matches on the result found. - */ - - textMatches: (select) => - new Field( - "textMatches", - undefined as never, - new SelectionSet(select(TextMatch)) - ), -}; - -export interface ISecurityAdvisory extends INode { - readonly __typename: "SecurityAdvisory"; - readonly databaseId: number | null; - readonly description: string; - readonly ghsaId: string; - readonly identifiers: ReadonlyArray; - readonly origin: string; - readonly permalink: unknown | null; - readonly publishedAt: unknown; - readonly references: ReadonlyArray; - readonly severity: SecurityAdvisorySeverity; - readonly summary: string; - readonly updatedAt: unknown; - readonly vulnerabilities: ISecurityVulnerabilityConnection; - readonly withdrawnAt: unknown | null; -} - -interface SecurityAdvisorySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description This is a long plaintext description of the advisory - */ - - readonly description: () => Field<"description">; - - /** - * @description The GitHub Security Advisory ID - */ - - readonly ghsaId: () => Field<"ghsaId">; - - readonly id: () => Field<"id">; - - /** - * @description A list of identifiers for this advisory - */ - - readonly identifiers: >( - select: (t: SecurityAdvisoryIdentifierSelector) => T - ) => Field<"identifiers", never, SelectionSet>; - - /** - * @description The organization that originated the advisory - */ - - readonly origin: () => Field<"origin">; - - /** - * @description The permalink for the advisory - */ - - readonly permalink: () => Field<"permalink">; - - /** - * @description When the advisory was published - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of references for this advisory - */ - - readonly references: >( - select: (t: SecurityAdvisoryReferenceSelector) => T - ) => Field<"references", never, SelectionSet>; - - /** - * @description The severity of the advisory - */ - - readonly severity: () => Field<"severity">; - - /** - * @description A short plaintext summary of the advisory - */ - - readonly summary: () => Field<"summary">; - - /** - * @description When the advisory was last updated - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description Vulnerabilities associated with this Advisory - */ - - readonly vulnerabilities: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - ecosystem?: Variable<"ecosystem"> | SecurityAdvisoryEcosystem; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SecurityVulnerabilityOrder; - package?: Variable<"package"> | string; - severities?: Variable<"severities"> | SecurityAdvisorySeverity; - }, - select: (t: SecurityVulnerabilityConnectionSelector) => T - ) => Field< - "vulnerabilities", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"ecosystem", Variable<"ecosystem"> | SecurityAdvisoryEcosystem>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SecurityVulnerabilityOrder>, - Argument<"package", Variable<"package"> | string>, - Argument<"severities", Variable<"severities"> | SecurityAdvisorySeverity> - ], - SelectionSet - >; - - /** - * @description When the advisory was withdrawn, if it has been withdrawn - */ - - readonly withdrawnAt: () => Field<"withdrawnAt">; -} - -export const isSecurityAdvisory = ( - object: Record -): object is Partial => { - return object.__typename === "SecurityAdvisory"; -}; - -export const SecurityAdvisory: SecurityAdvisorySelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description This is a long plaintext description of the advisory - */ - description: () => new Field("description"), - - /** - * @description The GitHub Security Advisory ID - */ - ghsaId: () => new Field("ghsaId"), - id: () => new Field("id"), - - /** - * @description A list of identifiers for this advisory - */ - - identifiers: (select) => - new Field( - "identifiers", - undefined as never, - new SelectionSet(select(SecurityAdvisoryIdentifier)) - ), - - /** - * @description The organization that originated the advisory - */ - origin: () => new Field("origin"), - - /** - * @description The permalink for the advisory - */ - permalink: () => new Field("permalink"), - - /** - * @description When the advisory was published - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of references for this advisory - */ - - references: (select) => - new Field( - "references", - undefined as never, - new SelectionSet(select(SecurityAdvisoryReference)) - ), - - /** - * @description The severity of the advisory - */ - severity: () => new Field("severity"), - - /** - * @description A short plaintext summary of the advisory - */ - summary: () => new Field("summary"), - - /** - * @description When the advisory was last updated - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description Vulnerabilities associated with this Advisory - */ - - vulnerabilities: (variables, select) => - new Field( - "vulnerabilities", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("ecosystem", variables.ecosystem, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("package", variables.package, _ENUM_VALUES), - new Argument("severities", variables.severities, _ENUM_VALUES), - ], - new SelectionSet(select(SecurityVulnerabilityConnection)) - ), - - /** - * @description When the advisory was withdrawn, if it has been withdrawn - */ - withdrawnAt: () => new Field("withdrawnAt"), -}; - -export interface ISecurityAdvisoryConnection { - readonly __typename: "SecurityAdvisoryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SecurityAdvisoryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SecurityAdvisoryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SecurityAdvisorySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SecurityAdvisoryConnection: SecurityAdvisoryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SecurityAdvisoryEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(SecurityAdvisory)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISecurityAdvisoryEdge { - readonly __typename: "SecurityAdvisoryEdge"; - readonly cursor: string; - readonly node: ISecurityAdvisory | null; -} - -interface SecurityAdvisoryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SecurityAdvisorySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SecurityAdvisoryEdge: SecurityAdvisoryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(SecurityAdvisory)) - ), -}; - -export interface ISecurityAdvisoryIdentifier { - readonly __typename: "SecurityAdvisoryIdentifier"; - readonly type: string; - readonly value: string; -} - -interface SecurityAdvisoryIdentifierSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The identifier type, e.g. GHSA, CVE - */ - - readonly type: () => Field<"type">; - - /** - * @description The identifier - */ - - readonly value: () => Field<"value">; -} - -export const SecurityAdvisoryIdentifier: SecurityAdvisoryIdentifierSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The identifier type, e.g. GHSA, CVE - */ - type: () => new Field("type"), - - /** - * @description The identifier - */ - value: () => new Field("value"), -}; - -export interface ISecurityAdvisoryPackage { - readonly __typename: "SecurityAdvisoryPackage"; - readonly ecosystem: SecurityAdvisoryEcosystem; - readonly name: string; -} - -interface SecurityAdvisoryPackageSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The ecosystem the package belongs to, e.g. RUBYGEMS, NPM - */ - - readonly ecosystem: () => Field<"ecosystem">; - - /** - * @description The package name - */ - - readonly name: () => Field<"name">; -} - -export const SecurityAdvisoryPackage: SecurityAdvisoryPackageSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ecosystem the package belongs to, e.g. RUBYGEMS, NPM - */ - ecosystem: () => new Field("ecosystem"), - - /** - * @description The package name - */ - name: () => new Field("name"), -}; - -export interface ISecurityAdvisoryPackageVersion { - readonly __typename: "SecurityAdvisoryPackageVersion"; - readonly identifier: string; -} - -interface SecurityAdvisoryPackageVersionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The package name or version - */ - - readonly identifier: () => Field<"identifier">; -} - -export const SecurityAdvisoryPackageVersion: SecurityAdvisoryPackageVersionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The package name or version - */ - identifier: () => new Field("identifier"), -}; - -export interface ISecurityAdvisoryReference { - readonly __typename: "SecurityAdvisoryReference"; - readonly url: unknown; -} - -interface SecurityAdvisoryReferenceSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A publicly accessible reference - */ - - readonly url: () => Field<"url">; -} - -export const SecurityAdvisoryReference: SecurityAdvisoryReferenceSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A publicly accessible reference - */ - url: () => new Field("url"), -}; - -export interface ISecurityVulnerability { - readonly __typename: "SecurityVulnerability"; - readonly advisory: ISecurityAdvisory; - readonly firstPatchedVersion: ISecurityAdvisoryPackageVersion | null; - readonly package: ISecurityAdvisoryPackage; - readonly severity: SecurityAdvisorySeverity; - readonly updatedAt: unknown; - readonly vulnerableVersionRange: string; -} - -interface SecurityVulnerabilitySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The Advisory associated with this Vulnerability - */ - - readonly advisory: >( - select: (t: SecurityAdvisorySelector) => T - ) => Field<"advisory", never, SelectionSet>; - - /** - * @description The first version containing a fix for the vulnerability - */ - - readonly firstPatchedVersion: >( - select: (t: SecurityAdvisoryPackageVersionSelector) => T - ) => Field<"firstPatchedVersion", never, SelectionSet>; - - /** - * @description A description of the vulnerable package - */ - - readonly package: >( - select: (t: SecurityAdvisoryPackageSelector) => T - ) => Field<"package", never, SelectionSet>; - - /** - * @description The severity of the vulnerability within this package - */ - - readonly severity: () => Field<"severity">; - - /** - * @description When the vulnerability was last updated - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description A string that describes the vulnerable package versions. -This string follows a basic syntax with a few forms. -+ `= 0.2.0` denotes a single vulnerable version. -+ `<= 1.0.8` denotes a version range up to and including the specified version -+ `< 0.1.11` denotes a version range up to, but excluding, the specified version -+ `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version. -+ `>= 0.0.1` denotes a version range with a known minimum, but no known maximum - */ - - readonly vulnerableVersionRange: () => Field<"vulnerableVersionRange">; -} - -export const SecurityVulnerability: SecurityVulnerabilitySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The Advisory associated with this Vulnerability - */ - - advisory: (select) => - new Field( - "advisory", - undefined as never, - new SelectionSet(select(SecurityAdvisory)) - ), - - /** - * @description The first version containing a fix for the vulnerability - */ - - firstPatchedVersion: (select) => - new Field( - "firstPatchedVersion", - undefined as never, - new SelectionSet(select(SecurityAdvisoryPackageVersion)) - ), - - /** - * @description A description of the vulnerable package - */ - - package: (select) => - new Field( - "package", - undefined as never, - new SelectionSet(select(SecurityAdvisoryPackage)) - ), - - /** - * @description The severity of the vulnerability within this package - */ - severity: () => new Field("severity"), - - /** - * @description When the vulnerability was last updated - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description A string that describes the vulnerable package versions. -This string follows a basic syntax with a few forms. -+ `= 0.2.0` denotes a single vulnerable version. -+ `<= 1.0.8` denotes a version range up to and including the specified version -+ `< 0.1.11` denotes a version range up to, but excluding, the specified version -+ `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version. -+ `>= 0.0.1` denotes a version range with a known minimum, but no known maximum - */ - vulnerableVersionRange: () => new Field("vulnerableVersionRange"), -}; - -export interface ISecurityVulnerabilityConnection { - readonly __typename: "SecurityVulnerabilityConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SecurityVulnerabilityConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SecurityVulnerabilityEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SecurityVulnerabilitySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SecurityVulnerabilityConnection: SecurityVulnerabilityConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SecurityVulnerabilityEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(SecurityVulnerability)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISecurityVulnerabilityEdge { - readonly __typename: "SecurityVulnerabilityEdge"; - readonly cursor: string; - readonly node: ISecurityVulnerability | null; -} - -interface SecurityVulnerabilityEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SecurityVulnerabilitySelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SecurityVulnerabilityEdge: SecurityVulnerabilityEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(SecurityVulnerability)) - ), -}; - -export interface ISetEnterpriseIdentityProviderPayload { - readonly __typename: "SetEnterpriseIdentityProviderPayload"; - readonly clientMutationId: string | null; - readonly identityProvider: IEnterpriseIdentityProvider | null; -} - -interface SetEnterpriseIdentityProviderPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The identity provider for the enterprise. - */ - - readonly identityProvider: >( - select: (t: EnterpriseIdentityProviderSelector) => T - ) => Field<"identityProvider", never, SelectionSet>; -} - -export const SetEnterpriseIdentityProviderPayload: SetEnterpriseIdentityProviderPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The identity provider for the enterprise. - */ - - identityProvider: (select) => - new Field( - "identityProvider", - undefined as never, - new SelectionSet(select(EnterpriseIdentityProvider)) - ), -}; - -export interface ISetOrganizationInteractionLimitPayload { - readonly __typename: "SetOrganizationInteractionLimitPayload"; - readonly clientMutationId: string | null; - readonly organization: IOrganization | null; -} - -interface SetOrganizationInteractionLimitPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The organization that the interaction limit was set for. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; -} - -export const SetOrganizationInteractionLimitPayload: SetOrganizationInteractionLimitPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The organization that the interaction limit was set for. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), -}; - -export interface ISetRepositoryInteractionLimitPayload { - readonly __typename: "SetRepositoryInteractionLimitPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface SetRepositoryInteractionLimitPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The repository that the interaction limit was set for. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const SetRepositoryInteractionLimitPayload: SetRepositoryInteractionLimitPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The repository that the interaction limit was set for. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface ISetUserInteractionLimitPayload { - readonly __typename: "SetUserInteractionLimitPayload"; - readonly clientMutationId: string | null; - readonly user: IUser | null; -} - -interface SetUserInteractionLimitPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The user that the interaction limit was set for. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const SetUserInteractionLimitPayload: SetUserInteractionLimitPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The user that the interaction limit was set for. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface ISmimeSignature extends IGitSignature { - readonly __typename: "SmimeSignature"; -} - -interface SmimeSignatureSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Email used to sign this object. - */ - - readonly email: () => Field<"email">; - - /** - * @description True if the signature is valid and verified by GitHub. - */ - - readonly isValid: () => Field<"isValid">; - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - - readonly payload: () => Field<"payload">; - - /** - * @description ASCII-armored signature header from object. - */ - - readonly signature: () => Field<"signature">; - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - readonly signer: >( - select: (t: UserSelector) => T - ) => Field<"signer", never, SelectionSet>; - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - - readonly state: () => Field<"state">; - - /** - * @description True if the signature was made with GitHub's signing key. - */ - - readonly wasSignedByGitHub: () => Field<"wasSignedByGitHub">; -} - -export const isSmimeSignature = ( - object: Record -): object is Partial => { - return object.__typename === "SmimeSignature"; -}; - -export const SmimeSignature: SmimeSignatureSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Email used to sign this object. - */ - email: () => new Field("email"), - - /** - * @description True if the signature is valid and verified by GitHub. - */ - isValid: () => new Field("isValid"), - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - payload: () => new Field("payload"), - - /** - * @description ASCII-armored signature header from object. - */ - signature: () => new Field("signature"), - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - signer: (select) => - new Field("signer", undefined as never, new SelectionSet(select(User))), - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - state: () => new Field("state"), - - /** - * @description True if the signature was made with GitHub's signing key. - */ - wasSignedByGitHub: () => new Field("wasSignedByGitHub"), -}; - -export interface ISponsorable { - readonly __typename: string; - readonly hasSponsorsListing: boolean; - readonly isSponsoringViewer: boolean; - readonly sponsorsListing: ISponsorsListing | null; - readonly sponsorshipsAsMaintainer: ISponsorshipConnection; - readonly sponsorshipsAsSponsor: ISponsorshipConnection; - readonly viewerCanSponsor: boolean; - readonly viewerIsSponsoring: boolean; -} - -interface SponsorableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - - readonly hasSponsorsListing: () => Field<"hasSponsorsListing">; - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - - readonly isSponsoringViewer: () => Field<"isSponsoringViewer">; - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - readonly sponsorsListing: >( - select: (t: SponsorsListingSelector) => T - ) => Field<"sponsorsListing", never, SelectionSet>; - - /** - * @description This object's sponsorships as the maintainer. - */ - - readonly sponsorshipsAsMaintainer: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - includePrivate?: Variable<"includePrivate"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsMaintainer", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"includePrivate", Variable<"includePrivate"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description This object's sponsorships as the sponsor. - */ - - readonly sponsorshipsAsSponsor: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsSponsor", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - - readonly viewerCanSponsor: () => Field<"viewerCanSponsor">; - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - - readonly viewerIsSponsoring: () => Field<"viewerIsSponsoring">; - - readonly on: , F extends "Organization" | "User">( - type: F, - select: ( - t: F extends "Organization" - ? OrganizationSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Sponsorable: SponsorableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - hasSponsorsListing: () => new Field("hasSponsorsListing"), - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - isSponsoringViewer: () => new Field("isSponsoringViewer"), - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - sponsorsListing: (select) => - new Field( - "sponsorsListing", - undefined as never, - new SelectionSet(select(SponsorsListing)) - ), - - /** - * @description This object's sponsorships as the maintainer. - */ - - sponsorshipsAsMaintainer: (variables, select) => - new Field( - "sponsorshipsAsMaintainer", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("includePrivate", variables.includePrivate, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description This object's sponsorships as the sponsor. - */ - - sponsorshipsAsSponsor: (variables, select) => - new Field( - "sponsorshipsAsSponsor", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - viewerCanSponsor: () => new Field("viewerCanSponsor"), - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - viewerIsSponsoring: () => new Field("viewerIsSponsoring"), - - on: (type, select) => { - switch (type) { - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Sponsorable", - }); - } - }, -}; - -export interface ISponsorsListing extends INode { - readonly __typename: "SponsorsListing"; - readonly createdAt: unknown; - readonly fullDescription: string; - readonly fullDescriptionHTML: unknown; - readonly name: string; - readonly shortDescription: string; - readonly slug: string; - readonly tiers: ISponsorsTierConnection | null; -} - -interface SponsorsListingSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The full description of the listing. - */ - - readonly fullDescription: () => Field<"fullDescription">; - - /** - * @description The full description of the listing rendered to HTML. - */ - - readonly fullDescriptionHTML: () => Field<"fullDescriptionHTML">; - - readonly id: () => Field<"id">; - - /** - * @description The listing's full name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The short description of the listing. - */ - - readonly shortDescription: () => Field<"shortDescription">; - - /** - * @description The short name of the listing. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description The published tiers for this GitHub Sponsors listing. - */ - - readonly tiers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorsTierOrder; - }, - select: (t: SponsorsTierConnectionSelector) => T - ) => Field< - "tiers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorsTierOrder> - ], - SelectionSet - >; -} - -export const isSponsorsListing = ( - object: Record -): object is Partial => { - return object.__typename === "SponsorsListing"; -}; - -export const SponsorsListing: SponsorsListingSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The full description of the listing. - */ - fullDescription: () => new Field("fullDescription"), - - /** - * @description The full description of the listing rendered to HTML. - */ - fullDescriptionHTML: () => new Field("fullDescriptionHTML"), - id: () => new Field("id"), - - /** - * @description The listing's full name. - */ - name: () => new Field("name"), - - /** - * @description The short description of the listing. - */ - shortDescription: () => new Field("shortDescription"), - - /** - * @description The short name of the listing. - */ - slug: () => new Field("slug"), - - /** - * @description The published tiers for this GitHub Sponsors listing. - */ - - tiers: (variables, select) => - new Field( - "tiers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorsTierConnection)) - ), -}; - -export interface ISponsorsTier extends INode { - readonly __typename: "SponsorsTier"; - readonly adminInfo: ISponsorsTierAdminInfo | null; - readonly createdAt: unknown; - readonly description: string; - readonly descriptionHTML: unknown; - readonly monthlyPriceInCents: number; - readonly monthlyPriceInDollars: number; - readonly name: string; - readonly sponsorsListing: ISponsorsListing; - readonly updatedAt: unknown; -} - -interface SponsorsTierSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description SponsorsTier information only visible to users that can administer the associated Sponsors listing. - */ - - readonly adminInfo: >( - select: (t: SponsorsTierAdminInfoSelector) => T - ) => Field<"adminInfo", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The description of the tier. - */ - - readonly description: () => Field<"description">; - - /** - * @description The tier description rendered to HTML - */ - - readonly descriptionHTML: () => Field<"descriptionHTML">; - - readonly id: () => Field<"id">; - - /** - * @description How much this tier costs per month in cents. - */ - - readonly monthlyPriceInCents: () => Field<"monthlyPriceInCents">; - - /** - * @description How much this tier costs per month in dollars. - */ - - readonly monthlyPriceInDollars: () => Field<"monthlyPriceInDollars">; - - /** - * @description The name of the tier. - */ - - readonly name: () => Field<"name">; - - /** - * @description The sponsors listing that this tier belongs to. - */ - - readonly sponsorsListing: >( - select: (t: SponsorsListingSelector) => T - ) => Field<"sponsorsListing", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isSponsorsTier = ( - object: Record -): object is Partial => { - return object.__typename === "SponsorsTier"; -}; - -export const SponsorsTier: SponsorsTierSelector = { - __typename: () => new Field("__typename"), - - /** - * @description SponsorsTier information only visible to users that can administer the associated Sponsors listing. - */ - - adminInfo: (select) => - new Field( - "adminInfo", - undefined as never, - new SelectionSet(select(SponsorsTierAdminInfo)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The description of the tier. - */ - description: () => new Field("description"), - - /** - * @description The tier description rendered to HTML - */ - descriptionHTML: () => new Field("descriptionHTML"), - id: () => new Field("id"), - - /** - * @description How much this tier costs per month in cents. - */ - monthlyPriceInCents: () => new Field("monthlyPriceInCents"), - - /** - * @description How much this tier costs per month in dollars. - */ - monthlyPriceInDollars: () => new Field("monthlyPriceInDollars"), - - /** - * @description The name of the tier. - */ - name: () => new Field("name"), - - /** - * @description The sponsors listing that this tier belongs to. - */ - - sponsorsListing: (select) => - new Field( - "sponsorsListing", - undefined as never, - new SelectionSet(select(SponsorsListing)) - ), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface ISponsorsTierAdminInfo { - readonly __typename: "SponsorsTierAdminInfo"; - readonly sponsorships: ISponsorshipConnection; -} - -interface SponsorsTierAdminInfoSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The sponsorships associated with this tier. - */ - - readonly sponsorships: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - includePrivate?: Variable<"includePrivate"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorships", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"includePrivate", Variable<"includePrivate"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; -} - -export const SponsorsTierAdminInfo: SponsorsTierAdminInfoSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The sponsorships associated with this tier. - */ - - sponsorships: (variables, select) => - new Field( - "sponsorships", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("includePrivate", variables.includePrivate, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), -}; - -export interface ISponsorsTierConnection { - readonly __typename: "SponsorsTierConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SponsorsTierConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SponsorsTierEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SponsorsTierSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SponsorsTierConnection: SponsorsTierConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SponsorsTierEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(SponsorsTier)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISponsorsTierEdge { - readonly __typename: "SponsorsTierEdge"; - readonly cursor: string; - readonly node: ISponsorsTier | null; -} - -interface SponsorsTierEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SponsorsTierSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SponsorsTierEdge: SponsorsTierEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(SponsorsTier)) - ), -}; - -export interface ISponsorship extends INode { - readonly __typename: "Sponsorship"; - readonly createdAt: unknown; - readonly maintainer: IUser; - readonly privacyLevel: SponsorshipPrivacy; - readonly sponsor: IUser | null; - readonly sponsorEntity: ISponsor | null; - readonly sponsorable: ISponsorable; - readonly tier: ISponsorsTier | null; -} - -interface SponsorshipSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The entity that is being sponsored - * @deprecated `Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC. - */ - - readonly maintainer: >( - select: (t: UserSelector) => T - ) => Field<"maintainer", never, SelectionSet>; - - /** - * @description The privacy level for this sponsorship. - */ - - readonly privacyLevel: () => Field<"privacyLevel">; - - /** - * @description The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. - * @deprecated `Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC. - */ - - readonly sponsor: >( - select: (t: UserSelector) => T - ) => Field<"sponsor", never, SelectionSet>; - - /** - * @description The user or organization that is sponsoring, if you have permission to view them. - */ - - readonly sponsorEntity: >( - select: (t: SponsorSelector) => T - ) => Field<"sponsorEntity", never, SelectionSet>; - - /** - * @description The entity that is being sponsored - */ - - readonly sponsorable: >( - select: (t: SponsorableSelector) => T - ) => Field<"sponsorable", never, SelectionSet>; - - /** - * @description The associated sponsorship tier - */ - - readonly tier: >( - select: (t: SponsorsTierSelector) => T - ) => Field<"tier", never, SelectionSet>; -} - -export const isSponsorship = ( - object: Record -): object is Partial => { - return object.__typename === "Sponsorship"; -}; - -export const Sponsorship: SponsorshipSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The entity that is being sponsored - * @deprecated `Sponsorship.maintainer` will be removed. Use `Sponsorship.sponsorable` instead. Removal on 2020-04-01 UTC. - */ - - maintainer: (select) => - new Field("maintainer", undefined as never, new SelectionSet(select(User))), - - /** - * @description The privacy level for this sponsorship. - */ - privacyLevel: () => new Field("privacyLevel"), - - /** - * @description The user that is sponsoring. Returns null if the sponsorship is private or if sponsor is not a user. - * @deprecated `Sponsorship.sponsor` will be removed. Use `Sponsorship.sponsorEntity` instead. Removal on 2020-10-01 UTC. - */ - - sponsor: (select) => - new Field("sponsor", undefined as never, new SelectionSet(select(User))), - - /** - * @description The user or organization that is sponsoring, if you have permission to view them. - */ - - sponsorEntity: (select) => - new Field( - "sponsorEntity", - undefined as never, - new SelectionSet(select(Sponsor)) - ), - - /** - * @description The entity that is being sponsored - */ - - sponsorable: (select) => - new Field( - "sponsorable", - undefined as never, - new SelectionSet(select(Sponsorable)) - ), - - /** - * @description The associated sponsorship tier - */ - - tier: (select) => - new Field( - "tier", - undefined as never, - new SelectionSet(select(SponsorsTier)) - ), -}; - -export interface ISponsorshipConnection { - readonly __typename: "SponsorshipConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SponsorshipConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SponsorshipEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SponsorshipSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SponsorshipConnection: SponsorshipConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SponsorshipEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Sponsorship)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISponsorshipEdge { - readonly __typename: "SponsorshipEdge"; - readonly cursor: string; - readonly node: ISponsorship | null; -} - -interface SponsorshipEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SponsorshipSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SponsorshipEdge: SponsorshipEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(Sponsorship)) - ), -}; - -export interface IStargazerConnection { - readonly __typename: "StargazerConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface StargazerConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: StargazerEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const StargazerConnection: StargazerConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(StargazerEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IStargazerEdge { - readonly __typename: "StargazerEdge"; - readonly cursor: string; - readonly node: IUser; - readonly starredAt: unknown; -} - -interface StargazerEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description Identifies when the item was starred. - */ - - readonly starredAt: () => Field<"starredAt">; -} - -export const StargazerEdge: StargazerEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description Identifies when the item was starred. - */ - starredAt: () => new Field("starredAt"), -}; - -export interface IStarrable { - readonly __typename: string; - readonly id: string; - readonly stargazerCount: number; - readonly stargazers: IStargazerConnection; - readonly viewerHasStarred: boolean; -} - -interface StarrableSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Returns a count of how many stargazers there are on this object - */ - - readonly stargazerCount: () => Field<"stargazerCount">; - - /** - * @description A list of users who have starred this starrable. - */ - - readonly stargazers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | StarOrder; - }, - select: (t: StargazerConnectionSelector) => T - ) => Field< - "stargazers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | StarOrder> - ], - SelectionSet - >; - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - - readonly viewerHasStarred: () => Field<"viewerHasStarred">; - - readonly on: < - T extends Array, - F extends "Gist" | "Repository" | "Topic" - >( - type: F, - select: ( - t: F extends "Gist" - ? GistSelector - : F extends "Repository" - ? RepositorySelector - : F extends "Topic" - ? TopicSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Starrable: StarrableSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Returns a count of how many stargazers there are on this object - */ - stargazerCount: () => new Field("stargazerCount"), - - /** - * @description A list of users who have starred this starrable. - */ - - stargazers: (variables, select) => - new Field( - "stargazers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(StargazerConnection)) - ), - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - viewerHasStarred: () => new Field("viewerHasStarred"), - - on: (type, select) => { - switch (type) { - case "Gist": { - return new InlineFragment( - new NamedType("Gist") as any, - new SelectionSet(select(Gist as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "Topic": { - return new InlineFragment( - new NamedType("Topic") as any, - new SelectionSet(select(Topic as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Starrable", - }); - } - }, -}; - -export interface IStarredRepositoryConnection { - readonly __typename: "StarredRepositoryConnection"; - readonly edges: ReadonlyArray | null; - readonly isOverLimit: boolean; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface StarredRepositoryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: StarredRepositoryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description Is the list of stars for this user truncated? This is true for users that have many stars. - */ - - readonly isOverLimit: () => Field<"isOverLimit">; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositorySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const StarredRepositoryConnection: StarredRepositoryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(StarredRepositoryEdge)) - ), - - /** - * @description Is the list of stars for this user truncated? This is true for users that have many stars. - */ - isOverLimit: () => new Field("isOverLimit"), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IStarredRepositoryEdge { - readonly __typename: "StarredRepositoryEdge"; - readonly cursor: string; - readonly node: IRepository; - readonly starredAt: unknown; -} - -interface StarredRepositoryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: RepositorySelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description Identifies when the item was starred. - */ - - readonly starredAt: () => Field<"starredAt">; -} - -export const StarredRepositoryEdge: StarredRepositoryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Repository))), - - /** - * @description Identifies when the item was starred. - */ - starredAt: () => new Field("starredAt"), -}; - -export interface IStatus extends INode { - readonly __typename: "Status"; - readonly combinedContexts: IStatusCheckRollupContextConnection; - readonly commit: ICommit | null; - readonly context: IStatusContext | null; - readonly contexts: ReadonlyArray; - readonly state: StatusState; -} - -interface StatusSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of status contexts and check runs for this commit. - */ - - readonly combinedContexts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: StatusCheckRollupContextConnectionSelector) => T - ) => Field< - "combinedContexts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The commit this status is attached to. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description Looks up an individual status context by context name. - */ - - readonly context: >( - variables: { name?: Variable<"name"> | string }, - select: (t: StatusContextSelector) => T - ) => Field< - "context", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description The individual status contexts for this commit. - */ - - readonly contexts: >( - select: (t: StatusContextSelector) => T - ) => Field<"contexts", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The combined commit status. - */ - - readonly state: () => Field<"state">; -} - -export const isStatus = ( - object: Record -): object is Partial => { - return object.__typename === "Status"; -}; - -export const Status: StatusSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of status contexts and check runs for this commit. - */ - - combinedContexts: (variables, select) => - new Field( - "combinedContexts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(StatusCheckRollupContextConnection)) - ), - - /** - * @description The commit this status is attached to. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description Looks up an individual status context by context name. - */ - - context: (variables, select) => - new Field( - "context", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(StatusContext)) - ), - - /** - * @description The individual status contexts for this commit. - */ - - contexts: (select) => - new Field( - "contexts", - undefined as never, - new SelectionSet(select(StatusContext)) - ), - - id: () => new Field("id"), - - /** - * @description The combined commit status. - */ - state: () => new Field("state"), -}; - -export interface IStatusCheckRollup extends INode { - readonly __typename: "StatusCheckRollup"; - readonly commit: ICommit | null; - readonly contexts: IStatusCheckRollupContextConnection; - readonly state: StatusState; -} - -interface StatusCheckRollupSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The commit the status and check runs are attached to. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description A list of status contexts and check runs for this commit. - */ - - readonly contexts: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: StatusCheckRollupContextConnectionSelector) => T - ) => Field< - "contexts", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The combined status for the commit. - */ - - readonly state: () => Field<"state">; -} - -export const isStatusCheckRollup = ( - object: Record -): object is Partial => { - return object.__typename === "StatusCheckRollup"; -}; - -export const StatusCheckRollup: StatusCheckRollupSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The commit the status and check runs are attached to. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description A list of status contexts and check runs for this commit. - */ - - contexts: (variables, select) => - new Field( - "contexts", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(StatusCheckRollupContextConnection)) - ), - - id: () => new Field("id"), - - /** - * @description The combined status for the commit. - */ - state: () => new Field("state"), -}; - -export interface IStatusCheckRollupContextConnection { - readonly __typename: "StatusCheckRollupContextConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface StatusCheckRollupContextConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: StatusCheckRollupContextEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: StatusCheckRollupContextSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const StatusCheckRollupContextConnection: StatusCheckRollupContextConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(StatusCheckRollupContextEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(StatusCheckRollupContext)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IStatusCheckRollupContextEdge { - readonly __typename: "StatusCheckRollupContextEdge"; - readonly cursor: string; - readonly node: IStatusCheckRollupContext | null; -} - -interface StatusCheckRollupContextEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: StatusCheckRollupContextSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const StatusCheckRollupContextEdge: StatusCheckRollupContextEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(StatusCheckRollupContext)) - ), -}; - -export interface IStatusContext extends INode { - readonly __typename: "StatusContext"; - readonly avatarUrl: unknown | null; - readonly commit: ICommit | null; - readonly context: string; - readonly createdAt: unknown; - readonly creator: IActor | null; - readonly description: string | null; - readonly state: StatusState; - readonly targetUrl: unknown | null; -} - -interface StatusContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The avatar of the OAuth application or the user that created the status - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description This commit this status context is attached to. - */ - - readonly commit: >( - select: (t: CommitSelector) => T - ) => Field<"commit", never, SelectionSet>; - - /** - * @description The name of this status context. - */ - - readonly context: () => Field<"context">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The actor who created this status context. - */ - - readonly creator: >( - select: (t: ActorSelector) => T - ) => Field<"creator", never, SelectionSet>; - - /** - * @description The description for this status context. - */ - - readonly description: () => Field<"description">; - - readonly id: () => Field<"id">; - - /** - * @description The state of this status context. - */ - - readonly state: () => Field<"state">; - - /** - * @description The URL for this status context. - */ - - readonly targetUrl: () => Field<"targetUrl">; -} - -export const isStatusContext = ( - object: Record -): object is Partial => { - return object.__typename === "StatusContext"; -}; - -export const StatusContext: StatusContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The avatar of the OAuth application or the user that created the status - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description This commit this status context is attached to. - */ - - commit: (select) => - new Field("commit", undefined as never, new SelectionSet(select(Commit))), - - /** - * @description The name of this status context. - */ - context: () => new Field("context"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The actor who created this status context. - */ - - creator: (select) => - new Field("creator", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description The description for this status context. - */ - description: () => new Field("description"), - id: () => new Field("id"), - - /** - * @description The state of this status context. - */ - state: () => new Field("state"), - - /** - * @description The URL for this status context. - */ - targetUrl: () => new Field("targetUrl"), -}; - -export interface ISubmitPullRequestReviewPayload { - readonly __typename: "SubmitPullRequestReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; -} - -interface SubmitPullRequestReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The submitted pull request review. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; -} - -export const SubmitPullRequestReviewPayload: SubmitPullRequestReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The submitted pull request review. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface ISubmodule { - readonly __typename: "Submodule"; - readonly branch: string | null; - readonly gitUrl: unknown; - readonly name: string; - readonly path: string; - readonly subprojectCommitOid: unknown | null; -} - -interface SubmoduleSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The branch of the upstream submodule for tracking updates - */ - - readonly branch: () => Field<"branch">; - - /** - * @description The git URL of the submodule repository - */ - - readonly gitUrl: () => Field<"gitUrl">; - - /** - * @description The name of the submodule in .gitmodules - */ - - readonly name: () => Field<"name">; - - /** - * @description The path in the superproject that this submodule is located in - */ - - readonly path: () => Field<"path">; - - /** - * @description The commit revision of the subproject repository being tracked by the submodule - */ - - readonly subprojectCommitOid: () => Field<"subprojectCommitOid">; -} - -export const Submodule: SubmoduleSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The branch of the upstream submodule for tracking updates - */ - branch: () => new Field("branch"), - - /** - * @description The git URL of the submodule repository - */ - gitUrl: () => new Field("gitUrl"), - - /** - * @description The name of the submodule in .gitmodules - */ - name: () => new Field("name"), - - /** - * @description The path in the superproject that this submodule is located in - */ - path: () => new Field("path"), - - /** - * @description The commit revision of the subproject repository being tracked by the submodule - */ - subprojectCommitOid: () => new Field("subprojectCommitOid"), -}; - -export interface ISubmoduleConnection { - readonly __typename: "SubmoduleConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface SubmoduleConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: SubmoduleEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: SubmoduleSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const SubmoduleConnection: SubmoduleConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(SubmoduleEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Submodule))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ISubmoduleEdge { - readonly __typename: "SubmoduleEdge"; - readonly cursor: string; - readonly node: ISubmodule | null; -} - -interface SubmoduleEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: SubmoduleSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const SubmoduleEdge: SubmoduleEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Submodule))), -}; - -export interface ISubscribable { - readonly __typename: string; - readonly id: string; - readonly viewerCanSubscribe: boolean; - readonly viewerSubscription: SubscriptionState | null; -} - -interface SubscribableSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; - - readonly on: < - T extends Array, - F extends - | "Commit" - | "Issue" - | "PullRequest" - | "Repository" - | "Team" - | "TeamDiscussion" - >( - type: F, - select: ( - t: F extends "Commit" - ? CommitSelector - : F extends "Issue" - ? IssueSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "Repository" - ? RepositorySelector - : F extends "Team" - ? TeamSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Subscribable: SubscribableSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), - - on: (type, select) => { - switch (type) { - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "Team": { - return new InlineFragment( - new NamedType("Team") as any, - new SelectionSet(select(Team as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Subscribable", - }); - } - }, -}; - -export interface ISubscribedEvent extends INode { - readonly __typename: "SubscribedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly subscribable: ISubscribable; -} - -interface SubscribedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Object referenced by event. - */ - - readonly subscribable: >( - select: (t: SubscribableSelector) => T - ) => Field<"subscribable", never, SelectionSet>; -} - -export const isSubscribedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "SubscribedEvent"; -}; - -export const SubscribedEvent: SubscribedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Object referenced by event. - */ - - subscribable: (select) => - new Field( - "subscribable", - undefined as never, - new SelectionSet(select(Subscribable)) - ), -}; - -export interface ISuggestedReviewer { - readonly __typename: "SuggestedReviewer"; - readonly isAuthor: boolean; - readonly isCommenter: boolean; - readonly reviewer: IUser; -} - -interface SuggestedReviewerSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Is this suggestion based on past commits? - */ - - readonly isAuthor: () => Field<"isAuthor">; - - /** - * @description Is this suggestion based on past review comments? - */ - - readonly isCommenter: () => Field<"isCommenter">; - - /** - * @description Identifies the user suggested to review the pull request. - */ - - readonly reviewer: >( - select: (t: UserSelector) => T - ) => Field<"reviewer", never, SelectionSet>; -} - -export const SuggestedReviewer: SuggestedReviewerSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Is this suggestion based on past commits? - */ - isAuthor: () => new Field("isAuthor"), - - /** - * @description Is this suggestion based on past review comments? - */ - isCommenter: () => new Field("isCommenter"), - - /** - * @description Identifies the user suggested to review the pull request. - */ - - reviewer: (select) => - new Field("reviewer", undefined as never, new SelectionSet(select(User))), -}; - -export interface ITag extends IGitObject, INode { - readonly __typename: "Tag"; - readonly message: string | null; - readonly name: string; - readonly tagger: IGitActor | null; - readonly target: IGitObject; -} - -interface TagSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An abbreviated version of the Git object ID - */ - - readonly abbreviatedOid: () => Field<"abbreviatedOid">; - - /** - * @description The HTTP path for this Git object - */ - - readonly commitResourcePath: () => Field<"commitResourcePath">; - - /** - * @description The HTTP URL for this Git object - */ - - readonly commitUrl: () => Field<"commitUrl">; - - readonly id: () => Field<"id">; - - /** - * @description The Git tag message. - */ - - readonly message: () => Field<"message">; - - /** - * @description The Git tag name. - */ - - readonly name: () => Field<"name">; - - /** - * @description The Git object ID - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The Repository the Git object belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description Details about the tag author. - */ - - readonly tagger: >( - select: (t: GitActorSelector) => T - ) => Field<"tagger", never, SelectionSet>; - - /** - * @description The Git object the tag points to. - */ - - readonly target: >( - select: (t: GitObjectSelector) => T - ) => Field<"target", never, SelectionSet>; -} - -export const isTag = (object: Record): object is Partial => { - return object.__typename === "Tag"; -}; - -export const Tag: TagSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An abbreviated version of the Git object ID - */ - abbreviatedOid: () => new Field("abbreviatedOid"), - - /** - * @description The HTTP path for this Git object - */ - commitResourcePath: () => new Field("commitResourcePath"), - - /** - * @description The HTTP URL for this Git object - */ - commitUrl: () => new Field("commitUrl"), - id: () => new Field("id"), - - /** - * @description The Git tag message. - */ - message: () => new Field("message"), - - /** - * @description The Git tag name. - */ - name: () => new Field("name"), - - /** - * @description The Git object ID - */ - oid: () => new Field("oid"), - - /** - * @description The Repository the Git object belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Details about the tag author. - */ - - tagger: (select) => - new Field("tagger", undefined as never, new SelectionSet(select(GitActor))), - - /** - * @description The Git object the tag points to. - */ - - target: (select) => - new Field( - "target", - undefined as never, - new SelectionSet(select(GitObject)) - ), -}; - -export interface ITeam extends IMemberStatusable, INode, ISubscribable { - readonly __typename: "Team"; - readonly ancestors: ITeamConnection; - readonly avatarUrl: unknown | null; - readonly childTeams: ITeamConnection; - readonly combinedSlug: string; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly description: string | null; - readonly discussion: ITeamDiscussion | null; - readonly discussions: ITeamDiscussionConnection; - readonly discussionsResourcePath: unknown; - readonly discussionsUrl: unknown; - readonly editTeamResourcePath: unknown; - readonly editTeamUrl: unknown; - readonly invitations: IOrganizationInvitationConnection | null; - readonly members: ITeamMemberConnection; - readonly membersResourcePath: unknown; - readonly membersUrl: unknown; - readonly name: string; - readonly newTeamResourcePath: unknown; - readonly newTeamUrl: unknown; - readonly organization: IOrganization; - readonly parentTeam: ITeam | null; - readonly privacy: TeamPrivacy; - readonly repositories: ITeamRepositoryConnection; - readonly repositoriesResourcePath: unknown; - readonly repositoriesUrl: unknown; - readonly resourcePath: unknown; - readonly slug: string; - readonly teamsResourcePath: unknown; - readonly teamsUrl: unknown; - readonly updatedAt: unknown; - readonly url: unknown; - readonly viewerCanAdminister: boolean; -} - -interface TeamSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of teams that are ancestors of this team. - */ - - readonly ancestors: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: TeamConnectionSelector) => T - ) => Field< - "ancestors", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A URL pointing to the team's avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description List of child teams belonging to this team - */ - - readonly childTeams: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - immediateOnly?: Variable<"immediateOnly"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | TeamOrder; - userLogins?: Variable<"userLogins"> | string; - }, - select: (t: TeamConnectionSelector) => T - ) => Field< - "childTeams", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"immediateOnly", Variable<"immediateOnly"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | TeamOrder>, - Argument<"userLogins", Variable<"userLogins"> | string> - ], - SelectionSet - >; - - /** - * @description The slug corresponding to the organization and team. - */ - - readonly combinedSlug: () => Field<"combinedSlug">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The description of the team. - */ - - readonly description: () => Field<"description">; - - /** - * @description Find a team discussion by its number. - */ - - readonly discussion: >( - variables: { number?: Variable<"number"> | number }, - select: (t: TeamDiscussionSelector) => T - ) => Field< - "discussion", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of team discussions. - */ - - readonly discussions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isPinned?: Variable<"isPinned"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | TeamDiscussionOrder; - }, - select: (t: TeamDiscussionConnectionSelector) => T - ) => Field< - "discussions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isPinned", Variable<"isPinned"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | TeamDiscussionOrder> - ], - SelectionSet - >; - - /** - * @description The HTTP path for team discussions - */ - - readonly discussionsResourcePath: () => Field<"discussionsResourcePath">; - - /** - * @description The HTTP URL for team discussions - */ - - readonly discussionsUrl: () => Field<"discussionsUrl">; - - /** - * @description The HTTP path for editing this team - */ - - readonly editTeamResourcePath: () => Field<"editTeamResourcePath">; - - /** - * @description The HTTP URL for editing this team - */ - - readonly editTeamUrl: () => Field<"editTeamUrl">; - - readonly id: () => Field<"id">; - - /** - * @description A list of pending invitations for users to this team - */ - - readonly invitations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: OrganizationInvitationConnectionSelector) => T - ) => Field< - "invitations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - readonly memberStatuses: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | UserStatusOrder; - }, - select: (t: UserStatusConnectionSelector) => T - ) => Field< - "memberStatuses", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | UserStatusOrder> - ], - SelectionSet - >; - - /** - * @description A list of users who are members of this team. - */ - - readonly members: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - membership?: Variable<"membership"> | TeamMembershipType; - orderBy?: Variable<"orderBy"> | TeamMemberOrder; - query?: Variable<"query"> | string; - role?: Variable<"role"> | TeamMemberRole; - }, - select: (t: TeamMemberConnectionSelector) => T - ) => Field< - "members", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"membership", Variable<"membership"> | TeamMembershipType>, - Argument<"orderBy", Variable<"orderBy"> | TeamMemberOrder>, - Argument<"query", Variable<"query"> | string>, - Argument<"role", Variable<"role"> | TeamMemberRole> - ], - SelectionSet - >; - - /** - * @description The HTTP path for the team' members - */ - - readonly membersResourcePath: () => Field<"membersResourcePath">; - - /** - * @description The HTTP URL for the team' members - */ - - readonly membersUrl: () => Field<"membersUrl">; - - /** - * @description The name of the team. - */ - - readonly name: () => Field<"name">; - - /** - * @description The HTTP path creating a new team - */ - - readonly newTeamResourcePath: () => Field<"newTeamResourcePath">; - - /** - * @description The HTTP URL creating a new team - */ - - readonly newTeamUrl: () => Field<"newTeamUrl">; - - /** - * @description The organization that owns this team. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The parent team of the team. - */ - - readonly parentTeam: >( - select: (t: TeamSelector) => T - ) => Field<"parentTeam", never, SelectionSet>; - - /** - * @description The level of privacy the team has. - */ - - readonly privacy: () => Field<"privacy">; - - /** - * @description A list of repositories this team has access to. - */ - - readonly repositories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | TeamRepositoryOrder; - query?: Variable<"query"> | string; - }, - select: (t: TeamRepositoryConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | TeamRepositoryOrder>, - Argument<"query", Variable<"query"> | string> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this team's repositories - */ - - readonly repositoriesResourcePath: () => Field<"repositoriesResourcePath">; - - /** - * @description The HTTP URL for this team's repositories - */ - - readonly repositoriesUrl: () => Field<"repositoriesUrl">; - - /** - * @description The HTTP path for this team - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The slug corresponding to the team. - */ - - readonly slug: () => Field<"slug">; - - /** - * @description The HTTP path for this team's teams - */ - - readonly teamsResourcePath: () => Field<"teamsResourcePath">; - - /** - * @description The HTTP URL for this team's teams - */ - - readonly teamsUrl: () => Field<"teamsUrl">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this team - */ - - readonly url: () => Field<"url">; - - /** - * @description Team is adminable by the viewer. - */ - - readonly viewerCanAdminister: () => Field<"viewerCanAdminister">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; -} - -export const isTeam = ( - object: Record -): object is Partial => { - return object.__typename === "Team"; -}; - -export const Team: TeamSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of teams that are ancestors of this team. - */ - - ancestors: (variables, select) => - new Field( - "ancestors", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(TeamConnection)) - ), - - /** - * @description A URL pointing to the team's avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description List of child teams belonging to this team - */ - - childTeams: (variables, select) => - new Field( - "childTeams", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("immediateOnly", variables.immediateOnly, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("userLogins", variables.userLogins, _ENUM_VALUES), - ], - new SelectionSet(select(TeamConnection)) - ), - - /** - * @description The slug corresponding to the organization and team. - */ - combinedSlug: () => new Field("combinedSlug"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The description of the team. - */ - description: () => new Field("description"), - - /** - * @description Find a team discussion by its number. - */ - - discussion: (variables, select) => - new Field( - "discussion", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(TeamDiscussion)) - ), - - /** - * @description A list of team discussions. - */ - - discussions: (variables, select) => - new Field( - "discussions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isPinned", variables.isPinned, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(TeamDiscussionConnection)) - ), - - /** - * @description The HTTP path for team discussions - */ - discussionsResourcePath: () => new Field("discussionsResourcePath"), - - /** - * @description The HTTP URL for team discussions - */ - discussionsUrl: () => new Field("discussionsUrl"), - - /** - * @description The HTTP path for editing this team - */ - editTeamResourcePath: () => new Field("editTeamResourcePath"), - - /** - * @description The HTTP URL for editing this team - */ - editTeamUrl: () => new Field("editTeamUrl"), - id: () => new Field("id"), - - /** - * @description A list of pending invitations for users to this team - */ - - invitations: (variables, select) => - new Field( - "invitations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationInvitationConnection)) - ), - - /** - * @description Get the status messages members of this entity have set that are either public or visible only to the organization. - */ - - memberStatuses: (variables, select) => - new Field( - "memberStatuses", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(UserStatusConnection)) - ), - - /** - * @description A list of users who are members of this team. - */ - - members: (variables, select) => - new Field( - "members", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("membership", variables.membership, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - new Argument("role", variables.role, _ENUM_VALUES), - ], - new SelectionSet(select(TeamMemberConnection)) - ), - - /** - * @description The HTTP path for the team' members - */ - membersResourcePath: () => new Field("membersResourcePath"), - - /** - * @description The HTTP URL for the team' members - */ - membersUrl: () => new Field("membersUrl"), - - /** - * @description The name of the team. - */ - name: () => new Field("name"), - - /** - * @description The HTTP path creating a new team - */ - newTeamResourcePath: () => new Field("newTeamResourcePath"), - - /** - * @description The HTTP URL creating a new team - */ - newTeamUrl: () => new Field("newTeamUrl"), - - /** - * @description The organization that owns this team. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The parent team of the team. - */ - - parentTeam: (select) => - new Field("parentTeam", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The level of privacy the team has. - */ - privacy: () => new Field("privacy"), - - /** - * @description A list of repositories this team has access to. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("query", variables.query, _ENUM_VALUES), - ], - new SelectionSet(select(TeamRepositoryConnection)) - ), - - /** - * @description The HTTP path for this team's repositories - */ - repositoriesResourcePath: () => new Field("repositoriesResourcePath"), - - /** - * @description The HTTP URL for this team's repositories - */ - repositoriesUrl: () => new Field("repositoriesUrl"), - - /** - * @description The HTTP path for this team - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The slug corresponding to the team. - */ - slug: () => new Field("slug"), - - /** - * @description The HTTP path for this team's teams - */ - teamsResourcePath: () => new Field("teamsResourcePath"), - - /** - * @description The HTTP URL for this team's teams - */ - teamsUrl: () => new Field("teamsUrl"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this team - */ - url: () => new Field("url"), - - /** - * @description Team is adminable by the viewer. - */ - viewerCanAdminister: () => new Field("viewerCanAdminister"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), -}; - -export interface ITeamAddMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - ITeamAuditEntryData { - readonly __typename: "TeamAddMemberAuditEntry"; - readonly isLdapMapped: boolean | null; -} - -interface TeamAddMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - - readonly isLdapMapped: () => Field<"isLdapMapped">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isTeamAddMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "TeamAddMemberAuditEntry"; -}; - -export const TeamAddMemberAuditEntry: TeamAddMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - isLdapMapped: () => new Field("isLdapMapped"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface ITeamAddRepositoryAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData, - ITeamAuditEntryData { - readonly __typename: "TeamAddRepositoryAuditEntry"; - readonly isLdapMapped: boolean | null; -} - -interface TeamAddRepositoryAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - - readonly isLdapMapped: () => Field<"isLdapMapped">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isTeamAddRepositoryAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "TeamAddRepositoryAuditEntry"; -}; - -export const TeamAddRepositoryAuditEntry: TeamAddRepositoryAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - isLdapMapped: () => new Field("isLdapMapped"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface ITeamAuditEntryData { - readonly __typename: string; - readonly team: ITeam | null; - readonly teamName: string | null; - readonly teamResourcePath: unknown | null; - readonly teamUrl: unknown | null; -} - -interface TeamAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - readonly on: < - T extends Array, - F extends - | "OrgRestoreMemberMembershipTeamAuditEntryData" - | "TeamAddMemberAuditEntry" - | "TeamAddRepositoryAuditEntry" - | "TeamChangeParentTeamAuditEntry" - | "TeamRemoveMemberAuditEntry" - | "TeamRemoveRepositoryAuditEntry" - >( - type: F, - select: ( - t: F extends "OrgRestoreMemberMembershipTeamAuditEntryData" - ? OrgRestoreMemberMembershipTeamAuditEntryDataSelector - : F extends "TeamAddMemberAuditEntry" - ? TeamAddMemberAuditEntrySelector - : F extends "TeamAddRepositoryAuditEntry" - ? TeamAddRepositoryAuditEntrySelector - : F extends "TeamChangeParentTeamAuditEntry" - ? TeamChangeParentTeamAuditEntrySelector - : F extends "TeamRemoveMemberAuditEntry" - ? TeamRemoveMemberAuditEntrySelector - : F extends "TeamRemoveRepositoryAuditEntry" - ? TeamRemoveRepositoryAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const TeamAuditEntryData: TeamAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - on: (type, select) => { - switch (type) { - case "OrgRestoreMemberMembershipTeamAuditEntryData": { - return new InlineFragment( - new NamedType("OrgRestoreMemberMembershipTeamAuditEntryData") as any, - new SelectionSet( - select(OrgRestoreMemberMembershipTeamAuditEntryData as any) - ) - ); - } - - case "TeamAddMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddMemberAuditEntry") as any, - new SelectionSet(select(TeamAddMemberAuditEntry as any)) - ); - } - - case "TeamAddRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamAddRepositoryAuditEntry") as any, - new SelectionSet(select(TeamAddRepositoryAuditEntry as any)) - ); - } - - case "TeamChangeParentTeamAuditEntry": { - return new InlineFragment( - new NamedType("TeamChangeParentTeamAuditEntry") as any, - new SelectionSet(select(TeamChangeParentTeamAuditEntry as any)) - ); - } - - case "TeamRemoveMemberAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveMemberAuditEntry") as any, - new SelectionSet(select(TeamRemoveMemberAuditEntry as any)) - ); - } - - case "TeamRemoveRepositoryAuditEntry": { - return new InlineFragment( - new NamedType("TeamRemoveRepositoryAuditEntry") as any, - new SelectionSet(select(TeamRemoveRepositoryAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "TeamAuditEntryData", - }); - } - }, -}; - -export interface ITeamChangeParentTeamAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - ITeamAuditEntryData { - readonly __typename: "TeamChangeParentTeamAuditEntry"; - readonly isLdapMapped: boolean | null; - readonly parentTeam: ITeam | null; - readonly parentTeamName: string | null; - readonly parentTeamNameWas: string | null; - readonly parentTeamResourcePath: unknown | null; - readonly parentTeamUrl: unknown | null; - readonly parentTeamWas: ITeam | null; - readonly parentTeamWasResourcePath: unknown | null; - readonly parentTeamWasUrl: unknown | null; -} - -interface TeamChangeParentTeamAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - - readonly isLdapMapped: () => Field<"isLdapMapped">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The new parent team. - */ - - readonly parentTeam: >( - select: (t: TeamSelector) => T - ) => Field<"parentTeam", never, SelectionSet>; - - /** - * @description The name of the new parent team - */ - - readonly parentTeamName: () => Field<"parentTeamName">; - - /** - * @description The name of the former parent team - */ - - readonly parentTeamNameWas: () => Field<"parentTeamNameWas">; - - /** - * @description The HTTP path for the parent team - */ - - readonly parentTeamResourcePath: () => Field<"parentTeamResourcePath">; - - /** - * @description The HTTP URL for the parent team - */ - - readonly parentTeamUrl: () => Field<"parentTeamUrl">; - - /** - * @description The former parent team. - */ - - readonly parentTeamWas: >( - select: (t: TeamSelector) => T - ) => Field<"parentTeamWas", never, SelectionSet>; - - /** - * @description The HTTP path for the previous parent team - */ - - readonly parentTeamWasResourcePath: () => Field<"parentTeamWasResourcePath">; - - /** - * @description The HTTP URL for the previous parent team - */ - - readonly parentTeamWasUrl: () => Field<"parentTeamWasUrl">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isTeamChangeParentTeamAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "TeamChangeParentTeamAuditEntry"; -}; - -export const TeamChangeParentTeamAuditEntry: TeamChangeParentTeamAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - isLdapMapped: () => new Field("isLdapMapped"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The new parent team. - */ - - parentTeam: (select) => - new Field("parentTeam", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the new parent team - */ - parentTeamName: () => new Field("parentTeamName"), - - /** - * @description The name of the former parent team - */ - parentTeamNameWas: () => new Field("parentTeamNameWas"), - - /** - * @description The HTTP path for the parent team - */ - parentTeamResourcePath: () => new Field("parentTeamResourcePath"), - - /** - * @description The HTTP URL for the parent team - */ - parentTeamUrl: () => new Field("parentTeamUrl"), - - /** - * @description The former parent team. - */ - - parentTeamWas: (select) => - new Field( - "parentTeamWas", - undefined as never, - new SelectionSet(select(Team)) - ), - - /** - * @description The HTTP path for the previous parent team - */ - parentTeamWasResourcePath: () => new Field("parentTeamWasResourcePath"), - - /** - * @description The HTTP URL for the previous parent team - */ - parentTeamWasUrl: () => new Field("parentTeamWasUrl"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface ITeamConnection { - readonly __typename: "TeamConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface TeamConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: TeamEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: TeamSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const TeamConnection: TeamConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(TeamEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(Team))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ITeamDiscussion - extends IComment, - IDeletable, - INode, - IReactable, - ISubscribable, - IUniformResourceLocatable, - IUpdatable, - IUpdatableComment { - readonly __typename: "TeamDiscussion"; - readonly bodyVersion: string; - readonly comments: ITeamDiscussionCommentConnection; - readonly commentsResourcePath: unknown; - readonly commentsUrl: unknown; - readonly isPinned: boolean; - readonly isPrivate: boolean; - readonly number: number; - readonly team: ITeam; - readonly title: string; - readonly viewerCanPin: boolean; -} - -interface TeamDiscussionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the discussion's team. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description The body as Markdown. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description Identifies the discussion body hash. - */ - - readonly bodyVersion: () => Field<"bodyVersion">; - - /** - * @description A list of comments on this discussion. - */ - - readonly comments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - fromComment?: Variable<"fromComment"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | TeamDiscussionCommentOrder; - }, - select: (t: TeamDiscussionCommentConnectionSelector) => T - ) => Field< - "comments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"fromComment", Variable<"fromComment"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | TeamDiscussionCommentOrder> - ], - SelectionSet - >; - - /** - * @description The HTTP path for discussion comments - */ - - readonly commentsResourcePath: () => Field<"commentsResourcePath">; - - /** - * @description The HTTP URL for discussion comments - */ - - readonly commentsUrl: () => Field<"commentsUrl">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description Whether or not the discussion is pinned. - */ - - readonly isPinned: () => Field<"isPinned">; - - /** - * @description Whether or not the discussion is only visible to team members and org admins. - */ - - readonly isPrivate: () => Field<"isPrivate">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Identifies the discussion within its team. - */ - - readonly number: () => Field<"number">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this discussion - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The team that defines the context of this discussion. - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The title of the discussion - */ - - readonly title: () => Field<"title">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this discussion - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Whether or not the current viewer can pin this discussion. - */ - - readonly viewerCanPin: () => Field<"viewerCanPin">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - - readonly viewerCanSubscribe: () => Field<"viewerCanSubscribe">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - - readonly viewerSubscription: () => Field<"viewerSubscription">; -} - -export const isTeamDiscussion = ( - object: Record -): object is Partial => { - return object.__typename === "TeamDiscussion"; -}; - -export const TeamDiscussion: TeamDiscussionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the discussion's team. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description The body as Markdown. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description Identifies the discussion body hash. - */ - bodyVersion: () => new Field("bodyVersion"), - - /** - * @description A list of comments on this discussion. - */ - - comments: (variables, select) => - new Field( - "comments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("fromComment", variables.fromComment, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(TeamDiscussionCommentConnection)) - ), - - /** - * @description The HTTP path for discussion comments - */ - commentsResourcePath: () => new Field("commentsResourcePath"), - - /** - * @description The HTTP URL for discussion comments - */ - commentsUrl: () => new Field("commentsUrl"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description Whether or not the discussion is pinned. - */ - isPinned: () => new Field("isPinned"), - - /** - * @description Whether or not the discussion is only visible to team members and org admins. - */ - isPrivate: () => new Field("isPrivate"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Identifies the discussion within its team. - */ - number: () => new Field("number"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The HTTP path for this discussion - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The team that defines the context of this discussion. - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The title of the discussion - */ - title: () => new Field("title"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this discussion - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Whether or not the current viewer can pin this discussion. - */ - viewerCanPin: () => new Field("viewerCanPin"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the viewer is able to change their subscription status for the repository. - */ - viewerCanSubscribe: () => new Field("viewerCanSubscribe"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), - - /** - * @description Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. - */ - viewerSubscription: () => new Field("viewerSubscription"), -}; - -export interface ITeamDiscussionComment - extends IComment, - IDeletable, - INode, - IReactable, - IUniformResourceLocatable, - IUpdatable, - IUpdatableComment { - readonly __typename: "TeamDiscussionComment"; - readonly bodyVersion: string; - readonly discussion: ITeamDiscussion; - readonly number: number; -} - -interface TeamDiscussionCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The actor who authored the comment. - */ - - readonly author: >( - select: (t: ActorSelector) => T - ) => Field<"author", never, SelectionSet>; - - /** - * @description Author's association with the comment's team. - */ - - readonly authorAssociation: () => Field<"authorAssociation">; - - /** - * @description The body as Markdown. - */ - - readonly body: () => Field<"body">; - - /** - * @description The body rendered to HTML. - */ - - readonly bodyHTML: () => Field<"bodyHTML">; - - /** - * @description The body rendered to text. - */ - - readonly bodyText: () => Field<"bodyText">; - - /** - * @description The current version of the body content. - */ - - readonly bodyVersion: () => Field<"bodyVersion">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Check if this comment was created via an email reply. - */ - - readonly createdViaEmail: () => Field<"createdViaEmail">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The discussion this comment is about. - */ - - readonly discussion: >( - select: (t: TeamDiscussionSelector) => T - ) => Field<"discussion", never, SelectionSet>; - - /** - * @description The actor who edited the comment. - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - - readonly includesCreatedEdit: () => Field<"includesCreatedEdit">; - - /** - * @description The moment the editor made the last edit - */ - - readonly lastEditedAt: () => Field<"lastEditedAt">; - - /** - * @description Identifies the comment number. - */ - - readonly number: () => Field<"number">; - - /** - * @description Identifies when the comment was published at. - */ - - readonly publishedAt: () => Field<"publishedAt">; - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - readonly reactionGroups: >( - select: (t: ReactionGroupSelector) => T - ) => Field<"reactionGroups", never, SelectionSet>; - - /** - * @description A list of Reactions left on the Issue. - */ - - readonly reactions: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - content?: Variable<"content"> | ReactionContent; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ReactionOrder; - }, - select: (t: ReactionConnectionSelector) => T - ) => Field< - "reactions", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"content", Variable<"content"> | ReactionContent>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ReactionOrder> - ], - SelectionSet - >; - - /** - * @description The HTTP path for this comment - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this comment - */ - - readonly url: () => Field<"url">; - - /** - * @description A list of edits to this content. - */ - - readonly userContentEdits: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: UserContentEditConnectionSelector) => T - ) => Field< - "userContentEdits", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Check if the current viewer can delete this object. - */ - - readonly viewerCanDelete: () => Field<"viewerCanDelete">; - - /** - * @description Can user react to this subject - */ - - readonly viewerCanReact: () => Field<"viewerCanReact">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - /** - * @description Did the viewer author this comment. - */ - - readonly viewerDidAuthor: () => Field<"viewerDidAuthor">; -} - -export const isTeamDiscussionComment = ( - object: Record -): object is Partial => { - return object.__typename === "TeamDiscussionComment"; -}; - -export const TeamDiscussionComment: TeamDiscussionCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The actor who authored the comment. - */ - - author: (select) => - new Field("author", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Author's association with the comment's team. - */ - authorAssociation: () => new Field("authorAssociation"), - - /** - * @description The body as Markdown. - */ - body: () => new Field("body"), - - /** - * @description The body rendered to HTML. - */ - bodyHTML: () => new Field("bodyHTML"), - - /** - * @description The body rendered to text. - */ - bodyText: () => new Field("bodyText"), - - /** - * @description The current version of the body content. - */ - bodyVersion: () => new Field("bodyVersion"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Check if this comment was created via an email reply. - */ - createdViaEmail: () => new Field("createdViaEmail"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The discussion this comment is about. - */ - - discussion: (select) => - new Field( - "discussion", - undefined as never, - new SelectionSet(select(TeamDiscussion)) - ), - - /** - * @description The actor who edited the comment. - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Check if this comment was edited and includes an edit with the creation data - */ - includesCreatedEdit: () => new Field("includesCreatedEdit"), - - /** - * @description The moment the editor made the last edit - */ - lastEditedAt: () => new Field("lastEditedAt"), - - /** - * @description Identifies the comment number. - */ - number: () => new Field("number"), - - /** - * @description Identifies when the comment was published at. - */ - publishedAt: () => new Field("publishedAt"), - - /** - * @description A list of reactions grouped by content left on the subject. - */ - - reactionGroups: (select) => - new Field( - "reactionGroups", - undefined as never, - new SelectionSet(select(ReactionGroup)) - ), - - /** - * @description A list of Reactions left on the Issue. - */ - - reactions: (variables, select) => - new Field( - "reactions", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("content", variables.content, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(ReactionConnection)) - ), - - /** - * @description The HTTP path for this comment - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this comment - */ - url: () => new Field("url"), - - /** - * @description A list of edits to this content. - */ - - userContentEdits: (variables, select) => - new Field( - "userContentEdits", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(UserContentEditConnection)) - ), - - /** - * @description Check if the current viewer can delete this object. - */ - viewerCanDelete: () => new Field("viewerCanDelete"), - - /** - * @description Can user react to this subject - */ - viewerCanReact: () => new Field("viewerCanReact"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - /** - * @description Did the viewer author this comment. - */ - viewerDidAuthor: () => new Field("viewerDidAuthor"), -}; - -export interface ITeamDiscussionCommentConnection { - readonly __typename: "TeamDiscussionCommentConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface TeamDiscussionCommentConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: TeamDiscussionCommentEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: TeamDiscussionCommentSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const TeamDiscussionCommentConnection: TeamDiscussionCommentConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(TeamDiscussionCommentEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(TeamDiscussionComment)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ITeamDiscussionCommentEdge { - readonly __typename: "TeamDiscussionCommentEdge"; - readonly cursor: string; - readonly node: ITeamDiscussionComment | null; -} - -interface TeamDiscussionCommentEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: TeamDiscussionCommentSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const TeamDiscussionCommentEdge: TeamDiscussionCommentEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(TeamDiscussionComment)) - ), -}; - -export interface ITeamDiscussionConnection { - readonly __typename: "TeamDiscussionConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface TeamDiscussionConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: TeamDiscussionEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: TeamDiscussionSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const TeamDiscussionConnection: TeamDiscussionConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(TeamDiscussionEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(TeamDiscussion)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ITeamDiscussionEdge { - readonly __typename: "TeamDiscussionEdge"; - readonly cursor: string; - readonly node: ITeamDiscussion | null; -} - -interface TeamDiscussionEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: TeamDiscussionSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const TeamDiscussionEdge: TeamDiscussionEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(TeamDiscussion)) - ), -}; - -export interface ITeamEdge { - readonly __typename: "TeamEdge"; - readonly cursor: string; - readonly node: ITeam | null; -} - -interface TeamEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: TeamSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const TeamEdge: TeamEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Team))), -}; - -export interface ITeamMemberConnection { - readonly __typename: "TeamMemberConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface TeamMemberConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: TeamMemberEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const TeamMemberConnection: TeamMemberConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(TeamMemberEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ITeamMemberEdge { - readonly __typename: "TeamMemberEdge"; - readonly cursor: string; - readonly memberAccessResourcePath: unknown; - readonly memberAccessUrl: unknown; - readonly node: IUser; - readonly role: TeamMemberRole; -} - -interface TeamMemberEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The HTTP path to the organization's member access page. - */ - - readonly memberAccessResourcePath: () => Field<"memberAccessResourcePath">; - - /** - * @description The HTTP URL to the organization's member access page. - */ - - readonly memberAccessUrl: () => Field<"memberAccessUrl">; - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The role the member has on the team. - */ - - readonly role: () => Field<"role">; -} - -export const TeamMemberEdge: TeamMemberEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The HTTP path to the organization's member access page. - */ - memberAccessResourcePath: () => new Field("memberAccessResourcePath"), - - /** - * @description The HTTP URL to the organization's member access page. - */ - memberAccessUrl: () => new Field("memberAccessUrl"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), - - /** - * @description The role the member has on the team. - */ - role: () => new Field("role"), -}; - -export interface ITeamRemoveMemberAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - ITeamAuditEntryData { - readonly __typename: "TeamRemoveMemberAuditEntry"; - readonly isLdapMapped: boolean | null; -} - -interface TeamRemoveMemberAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - - readonly isLdapMapped: () => Field<"isLdapMapped">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isTeamRemoveMemberAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "TeamRemoveMemberAuditEntry"; -}; - -export const TeamRemoveMemberAuditEntry: TeamRemoveMemberAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - isLdapMapped: () => new Field("isLdapMapped"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface ITeamRemoveRepositoryAuditEntry - extends IAuditEntry, - INode, - IOrganizationAuditEntryData, - IRepositoryAuditEntryData, - ITeamAuditEntryData { - readonly __typename: "TeamRemoveRepositoryAuditEntry"; - readonly isLdapMapped: boolean | null; -} - -interface TeamRemoveRepositoryAuditEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The action name - */ - - readonly action: () => Field<"action">; - - /** - * @description The user who initiated the action - */ - - readonly actor: >( - select: (t: AuditEntryActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The IP address of the actor - */ - - readonly actorIp: () => Field<"actorIp">; - - /** - * @description A readable representation of the actor's location - */ - - readonly actorLocation: >( - select: (t: ActorLocationSelector) => T - ) => Field<"actorLocation", never, SelectionSet>; - - /** - * @description The username of the user who initiated the action - */ - - readonly actorLogin: () => Field<"actorLogin">; - - /** - * @description The HTTP path for the actor. - */ - - readonly actorResourcePath: () => Field<"actorResourcePath">; - - /** - * @description The HTTP URL for the actor. - */ - - readonly actorUrl: () => Field<"actorUrl">; - - /** - * @description The time the action was initiated - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - - readonly isLdapMapped: () => Field<"isLdapMapped">; - - /** - * @description The corresponding operation type for the action - */ - - readonly operationType: () => Field<"operationType">; - - /** - * @description The Organization associated with the Audit Entry. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description The name of the Organization. - */ - - readonly organizationName: () => Field<"organizationName">; - - /** - * @description The HTTP path for the organization - */ - - readonly organizationResourcePath: () => Field<"organizationResourcePath">; - - /** - * @description The HTTP URL for the organization - */ - - readonly organizationUrl: () => Field<"organizationUrl">; - - /** - * @description The repository associated with the action - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description The name of the repository - */ - - readonly repositoryName: () => Field<"repositoryName">; - - /** - * @description The HTTP path for the repository - */ - - readonly repositoryResourcePath: () => Field<"repositoryResourcePath">; - - /** - * @description The HTTP URL for the repository - */ - - readonly repositoryUrl: () => Field<"repositoryUrl">; - - /** - * @description The team associated with the action - */ - - readonly team: >( - select: (t: TeamSelector) => T - ) => Field<"team", never, SelectionSet>; - - /** - * @description The name of the team - */ - - readonly teamName: () => Field<"teamName">; - - /** - * @description The HTTP path for this team - */ - - readonly teamResourcePath: () => Field<"teamResourcePath">; - - /** - * @description The HTTP URL for this team - */ - - readonly teamUrl: () => Field<"teamUrl">; - - /** - * @description The user affected by the action - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - - readonly userLogin: () => Field<"userLogin">; - - /** - * @description The HTTP path for the user. - */ - - readonly userResourcePath: () => Field<"userResourcePath">; - - /** - * @description The HTTP URL for the user. - */ - - readonly userUrl: () => Field<"userUrl">; -} - -export const isTeamRemoveRepositoryAuditEntry = ( - object: Record -): object is Partial => { - return object.__typename === "TeamRemoveRepositoryAuditEntry"; -}; - -export const TeamRemoveRepositoryAuditEntry: TeamRemoveRepositoryAuditEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The action name - */ - action: () => new Field("action"), - - /** - * @description The user who initiated the action - */ - - actor: (select) => - new Field( - "actor", - undefined as never, - new SelectionSet(select(AuditEntryActor)) - ), - - /** - * @description The IP address of the actor - */ - actorIp: () => new Field("actorIp"), - - /** - * @description A readable representation of the actor's location - */ - - actorLocation: (select) => - new Field( - "actorLocation", - undefined as never, - new SelectionSet(select(ActorLocation)) - ), - - /** - * @description The username of the user who initiated the action - */ - actorLogin: () => new Field("actorLogin"), - - /** - * @description The HTTP path for the actor. - */ - actorResourcePath: () => new Field("actorResourcePath"), - - /** - * @description The HTTP URL for the actor. - */ - actorUrl: () => new Field("actorUrl"), - - /** - * @description The time the action was initiated - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Whether the team was mapped to an LDAP Group. - */ - isLdapMapped: () => new Field("isLdapMapped"), - - /** - * @description The corresponding operation type for the action - */ - operationType: () => new Field("operationType"), - - /** - * @description The Organization associated with the Audit Entry. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description The name of the Organization. - */ - organizationName: () => new Field("organizationName"), - - /** - * @description The HTTP path for the organization - */ - organizationResourcePath: () => new Field("organizationResourcePath"), - - /** - * @description The HTTP URL for the organization - */ - organizationUrl: () => new Field("organizationUrl"), - - /** - * @description The repository associated with the action - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description The name of the repository - */ - repositoryName: () => new Field("repositoryName"), - - /** - * @description The HTTP path for the repository - */ - repositoryResourcePath: () => new Field("repositoryResourcePath"), - - /** - * @description The HTTP URL for the repository - */ - repositoryUrl: () => new Field("repositoryUrl"), - - /** - * @description The team associated with the action - */ - - team: (select) => - new Field("team", undefined as never, new SelectionSet(select(Team))), - - /** - * @description The name of the team - */ - teamName: () => new Field("teamName"), - - /** - * @description The HTTP path for this team - */ - teamResourcePath: () => new Field("teamResourcePath"), - - /** - * @description The HTTP URL for this team - */ - teamUrl: () => new Field("teamUrl"), - - /** - * @description The user affected by the action - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), - - /** - * @description For actions involving two users, the actor is the initiator and the user is the affected user. - */ - userLogin: () => new Field("userLogin"), - - /** - * @description The HTTP path for the user. - */ - userResourcePath: () => new Field("userResourcePath"), - - /** - * @description The HTTP URL for the user. - */ - userUrl: () => new Field("userUrl"), -}; - -export interface ITeamRepositoryConnection { - readonly __typename: "TeamRepositoryConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface TeamRepositoryConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: TeamRepositoryEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: RepositorySelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const TeamRepositoryConnection: TeamRepositoryConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(TeamRepositoryEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface ITeamRepositoryEdge { - readonly __typename: "TeamRepositoryEdge"; - readonly cursor: string; - readonly node: IRepository; - readonly permission: RepositoryPermission; -} - -interface TeamRepositoryEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - readonly node: >( - select: (t: RepositorySelector) => T - ) => Field<"node", never, SelectionSet>; - - /** - * @description The permission level the team has on the repository - */ - - readonly permission: () => Field<"permission">; -} - -export const TeamRepositoryEdge: TeamRepositoryEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Repository))), - - /** - * @description The permission level the team has on the repository - */ - permission: () => new Field("permission"), -}; - -export interface ITextMatch { - readonly __typename: "TextMatch"; - readonly fragment: string; - readonly highlights: ReadonlyArray; - readonly property: string; -} - -interface TextMatchSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The specific text fragment within the property matched on. - */ - - readonly fragment: () => Field<"fragment">; - - /** - * @description Highlights within the matched fragment. - */ - - readonly highlights: >( - select: (t: TextMatchHighlightSelector) => T - ) => Field<"highlights", never, SelectionSet>; - - /** - * @description The property matched on. - */ - - readonly property: () => Field<"property">; -} - -export const TextMatch: TextMatchSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The specific text fragment within the property matched on. - */ - fragment: () => new Field("fragment"), - - /** - * @description Highlights within the matched fragment. - */ - - highlights: (select) => - new Field( - "highlights", - undefined as never, - new SelectionSet(select(TextMatchHighlight)) - ), - - /** - * @description The property matched on. - */ - property: () => new Field("property"), -}; - -export interface ITextMatchHighlight { - readonly __typename: "TextMatchHighlight"; - readonly beginIndice: number; - readonly endIndice: number; - readonly text: string; -} - -interface TextMatchHighlightSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The indice in the fragment where the matched text begins. - */ - - readonly beginIndice: () => Field<"beginIndice">; - - /** - * @description The indice in the fragment where the matched text ends. - */ - - readonly endIndice: () => Field<"endIndice">; - - /** - * @description The text matched. - */ - - readonly text: () => Field<"text">; -} - -export const TextMatchHighlight: TextMatchHighlightSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The indice in the fragment where the matched text begins. - */ - beginIndice: () => new Field("beginIndice"), - - /** - * @description The indice in the fragment where the matched text ends. - */ - endIndice: () => new Field("endIndice"), - - /** - * @description The text matched. - */ - text: () => new Field("text"), -}; - -export interface ITopic extends INode, IStarrable { - readonly __typename: "Topic"; - readonly name: string; - readonly relatedTopics: ReadonlyArray; -} - -interface TopicSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - /** - * @description The topic's name. - */ - - readonly name: () => Field<"name">; - - /** - * @description A list of related topics, including aliases of this topic, sorted with the most relevant -first. Returns up to 10 Topics. - */ - - readonly relatedTopics: >( - variables: { first?: Variable<"first"> | number }, - select: (t: TopicSelector) => T - ) => Field< - "relatedTopics", - [Argument<"first", Variable<"first"> | number>], - SelectionSet - >; - - /** - * @description Returns a count of how many stargazers there are on this object - */ - - readonly stargazerCount: () => Field<"stargazerCount">; - - /** - * @description A list of users who have starred this starrable. - */ - - readonly stargazers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | StarOrder; - }, - select: (t: StargazerConnectionSelector) => T - ) => Field< - "stargazers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | StarOrder> - ], - SelectionSet - >; - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - - readonly viewerHasStarred: () => Field<"viewerHasStarred">; -} - -export const isTopic = ( - object: Record -): object is Partial => { - return object.__typename === "Topic"; -}; - -export const Topic: TopicSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - - /** - * @description The topic's name. - */ - name: () => new Field("name"), - - /** - * @description A list of related topics, including aliases of this topic, sorted with the most relevant -first. Returns up to 10 Topics. - */ - - relatedTopics: (variables, select) => - new Field( - "relatedTopics", - [new Argument("first", variables.first, _ENUM_VALUES)], - new SelectionSet(select(Topic)) - ), - - /** - * @description Returns a count of how many stargazers there are on this object - */ - stargazerCount: () => new Field("stargazerCount"), - - /** - * @description A list of users who have starred this starrable. - */ - - stargazers: (variables, select) => - new Field( - "stargazers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(StargazerConnection)) - ), - - /** - * @description Returns a boolean indicating whether the viewing user has starred this starrable. - */ - viewerHasStarred: () => new Field("viewerHasStarred"), -}; - -export interface ITopicAuditEntryData { - readonly __typename: string; - readonly topic: ITopic | null; - readonly topicName: string | null; -} - -interface TopicAuditEntryDataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The name of the topic added to the repository - */ - - readonly topic: >( - select: (t: TopicSelector) => T - ) => Field<"topic", never, SelectionSet>; - - /** - * @description The name of the topic added to the repository - */ - - readonly topicName: () => Field<"topicName">; - - readonly on: < - T extends Array, - F extends "RepoAddTopicAuditEntry" | "RepoRemoveTopicAuditEntry" - >( - type: F, - select: ( - t: F extends "RepoAddTopicAuditEntry" - ? RepoAddTopicAuditEntrySelector - : F extends "RepoRemoveTopicAuditEntry" - ? RepoRemoveTopicAuditEntrySelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const TopicAuditEntryData: TopicAuditEntryDataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The name of the topic added to the repository - */ - - topic: (select) => - new Field("topic", undefined as never, new SelectionSet(select(Topic))), - - /** - * @description The name of the topic added to the repository - */ - topicName: () => new Field("topicName"), - - on: (type, select) => { - switch (type) { - case "RepoAddTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoAddTopicAuditEntry") as any, - new SelectionSet(select(RepoAddTopicAuditEntry as any)) - ); - } - - case "RepoRemoveTopicAuditEntry": { - return new InlineFragment( - new NamedType("RepoRemoveTopicAuditEntry") as any, - new SelectionSet(select(RepoRemoveTopicAuditEntry as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "TopicAuditEntryData", - }); - } - }, -}; - -export interface ITransferIssuePayload { - readonly __typename: "TransferIssuePayload"; - readonly clientMutationId: string | null; - readonly issue: IIssue | null; -} - -interface TransferIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The issue that was transferred - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const TransferIssuePayload: TransferIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The issue that was transferred - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface ITransferredEvent extends INode { - readonly __typename: "TransferredEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly fromRepository: IRepository | null; - readonly issue: IIssue; -} - -interface TransferredEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The repository this came from - */ - - readonly fromRepository: >( - select: (t: RepositorySelector) => T - ) => Field<"fromRepository", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the issue associated with the event. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const isTransferredEvent = ( - object: Record -): object is Partial => { - return object.__typename === "TransferredEvent"; -}; - -export const TransferredEvent: TransferredEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The repository this came from - */ - - fromRepository: (select) => - new Field( - "fromRepository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - id: () => new Field("id"), - - /** - * @description Identifies the issue associated with the event. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface ITree extends IGitObject, INode { - readonly __typename: "Tree"; - readonly entries: ReadonlyArray | null; -} - -interface TreeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An abbreviated version of the Git object ID - */ - - readonly abbreviatedOid: () => Field<"abbreviatedOid">; - - /** - * @description The HTTP path for this Git object - */ - - readonly commitResourcePath: () => Field<"commitResourcePath">; - - /** - * @description The HTTP URL for this Git object - */ - - readonly commitUrl: () => Field<"commitUrl">; - - /** - * @description A list of tree entries. - */ - - readonly entries: >( - select: (t: TreeEntrySelector) => T - ) => Field<"entries", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description The Git object ID - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The Repository the Git object belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const isTree = ( - object: Record -): object is Partial => { - return object.__typename === "Tree"; -}; - -export const Tree: TreeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An abbreviated version of the Git object ID - */ - abbreviatedOid: () => new Field("abbreviatedOid"), - - /** - * @description The HTTP path for this Git object - */ - commitResourcePath: () => new Field("commitResourcePath"), - - /** - * @description The HTTP URL for this Git object - */ - commitUrl: () => new Field("commitUrl"), - - /** - * @description A list of tree entries. - */ - - entries: (select) => - new Field( - "entries", - undefined as never, - new SelectionSet(select(TreeEntry)) - ), - - id: () => new Field("id"), - - /** - * @description The Git object ID - */ - oid: () => new Field("oid"), - - /** - * @description The Repository the Git object belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface ITreeEntry { - readonly __typename: "TreeEntry"; - readonly extension: string | null; - readonly isGenerated: boolean; - readonly mode: number; - readonly name: string; - readonly object: IGitObject | null; - readonly oid: unknown; - readonly path: string | null; - readonly repository: IRepository; - readonly submodule: ISubmodule | null; - readonly type: string; -} - -interface TreeEntrySelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The extension of the file - */ - - readonly extension: () => Field<"extension">; - - /** - * @description Whether or not this tree entry is generated - */ - - readonly isGenerated: () => Field<"isGenerated">; - - /** - * @description Entry file mode. - */ - - readonly mode: () => Field<"mode">; - - /** - * @description Entry file name. - */ - - readonly name: () => Field<"name">; - - /** - * @description Entry file object. - */ - - readonly object: >( - select: (t: GitObjectSelector) => T - ) => Field<"object", never, SelectionSet>; - - /** - * @description Entry file Git object ID. - */ - - readonly oid: () => Field<"oid">; - - /** - * @description The full path of the file. - */ - - readonly path: () => Field<"path">; - - /** - * @description The Repository the tree entry belongs to - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; - - /** - * @description If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule - */ - - readonly submodule: >( - select: (t: SubmoduleSelector) => T - ) => Field<"submodule", never, SelectionSet>; - - /** - * @description Entry file type. - */ - - readonly type: () => Field<"type">; -} - -export const TreeEntry: TreeEntrySelector = { - __typename: () => new Field("__typename"), - - /** - * @description The extension of the file - */ - extension: () => new Field("extension"), - - /** - * @description Whether or not this tree entry is generated - */ - isGenerated: () => new Field("isGenerated"), - - /** - * @description Entry file mode. - */ - mode: () => new Field("mode"), - - /** - * @description Entry file name. - */ - name: () => new Field("name"), - - /** - * @description Entry file object. - */ - - object: (select) => - new Field( - "object", - undefined as never, - new SelectionSet(select(GitObject)) - ), - - /** - * @description Entry file Git object ID. - */ - oid: () => new Field("oid"), - - /** - * @description The full path of the file. - */ - path: () => new Field("path"), - - /** - * @description The Repository the tree entry belongs to - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), - - /** - * @description If the TreeEntry is for a directory occupied by a submodule project, this returns the corresponding submodule - */ - - submodule: (select) => - new Field( - "submodule", - undefined as never, - new SelectionSet(select(Submodule)) - ), - - /** - * @description Entry file type. - */ - type: () => new Field("type"), -}; - -export interface IUnarchiveRepositoryPayload { - readonly __typename: "UnarchiveRepositoryPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface UnarchiveRepositoryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The repository that was unarchived. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const UnarchiveRepositoryPayload: UnarchiveRepositoryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The repository that was unarchived. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IUnassignedEvent extends INode { - readonly __typename: "UnassignedEvent"; - readonly actor: IActor | null; - readonly assignable: IAssignable; - readonly assignee: IAssignee | null; - readonly createdAt: unknown; - readonly user: IUser | null; -} - -interface UnassignedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the assignable associated with the event. - */ - - readonly assignable: >( - select: (t: AssignableSelector) => T - ) => Field<"assignable", never, SelectionSet>; - - /** - * @description Identifies the user or mannequin that was unassigned. - */ - - readonly assignee: >( - select: (t: AssigneeSelector) => T - ) => Field<"assignee", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the subject (user) who was unassigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isUnassignedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnassignedEvent"; -}; - -export const UnassignedEvent: UnassignedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the assignable associated with the event. - */ - - assignable: (select) => - new Field( - "assignable", - undefined as never, - new SelectionSet(select(Assignable)) - ), - - /** - * @description Identifies the user or mannequin that was unassigned. - */ - - assignee: (select) => - new Field( - "assignee", - undefined as never, - new SelectionSet(select(Assignee)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the subject (user) who was unassigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IUnfollowUserPayload { - readonly __typename: "UnfollowUserPayload"; - readonly clientMutationId: string | null; - readonly user: IUser | null; -} - -interface UnfollowUserPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The user that was unfollowed. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const UnfollowUserPayload: UnfollowUserPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The user that was unfollowed. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IUniformResourceLocatable { - readonly __typename: string; - readonly resourcePath: unknown; - readonly url: unknown; -} - -interface UniformResourceLocatableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The HTML path to this resource. - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description The URL to this resource. - */ - - readonly url: () => Field<"url">; - - readonly on: < - T extends Array, - F extends - | "Bot" - | "CheckRun" - | "ClosedEvent" - | "Commit" - | "ConvertToDraftEvent" - | "CrossReferencedEvent" - | "Gist" - | "Issue" - | "Mannequin" - | "MergedEvent" - | "Milestone" - | "Organization" - | "PullRequest" - | "PullRequestCommit" - | "ReadyForReviewEvent" - | "Release" - | "Repository" - | "RepositoryTopic" - | "ReviewDismissedEvent" - | "TeamDiscussion" - | "TeamDiscussionComment" - | "User" - >( - type: F, - select: ( - t: F extends "Bot" - ? BotSelector - : F extends "CheckRun" - ? CheckRunSelector - : F extends "ClosedEvent" - ? ClosedEventSelector - : F extends "Commit" - ? CommitSelector - : F extends "ConvertToDraftEvent" - ? ConvertToDraftEventSelector - : F extends "CrossReferencedEvent" - ? CrossReferencedEventSelector - : F extends "Gist" - ? GistSelector - : F extends "Issue" - ? IssueSelector - : F extends "Mannequin" - ? MannequinSelector - : F extends "MergedEvent" - ? MergedEventSelector - : F extends "Milestone" - ? MilestoneSelector - : F extends "Organization" - ? OrganizationSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestCommit" - ? PullRequestCommitSelector - : F extends "ReadyForReviewEvent" - ? ReadyForReviewEventSelector - : F extends "Release" - ? ReleaseSelector - : F extends "Repository" - ? RepositorySelector - : F extends "RepositoryTopic" - ? RepositoryTopicSelector - : F extends "ReviewDismissedEvent" - ? ReviewDismissedEventSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : F extends "User" - ? UserSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const UniformResourceLocatable: UniformResourceLocatableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The HTML path to this resource. - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description The URL to this resource. - */ - url: () => new Field("url"), - - on: (type, select) => { - switch (type) { - case "Bot": { - return new InlineFragment( - new NamedType("Bot") as any, - new SelectionSet(select(Bot as any)) - ); - } - - case "CheckRun": { - return new InlineFragment( - new NamedType("CheckRun") as any, - new SelectionSet(select(CheckRun as any)) - ); - } - - case "ClosedEvent": { - return new InlineFragment( - new NamedType("ClosedEvent") as any, - new SelectionSet(select(ClosedEvent as any)) - ); - } - - case "Commit": { - return new InlineFragment( - new NamedType("Commit") as any, - new SelectionSet(select(Commit as any)) - ); - } - - case "ConvertToDraftEvent": { - return new InlineFragment( - new NamedType("ConvertToDraftEvent") as any, - new SelectionSet(select(ConvertToDraftEvent as any)) - ); - } - - case "CrossReferencedEvent": { - return new InlineFragment( - new NamedType("CrossReferencedEvent") as any, - new SelectionSet(select(CrossReferencedEvent as any)) - ); - } - - case "Gist": { - return new InlineFragment( - new NamedType("Gist") as any, - new SelectionSet(select(Gist as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "Mannequin": { - return new InlineFragment( - new NamedType("Mannequin") as any, - new SelectionSet(select(Mannequin as any)) - ); - } - - case "MergedEvent": { - return new InlineFragment( - new NamedType("MergedEvent") as any, - new SelectionSet(select(MergedEvent as any)) - ); - } - - case "Milestone": { - return new InlineFragment( - new NamedType("Milestone") as any, - new SelectionSet(select(Milestone as any)) - ); - } - - case "Organization": { - return new InlineFragment( - new NamedType("Organization") as any, - new SelectionSet(select(Organization as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestCommit": { - return new InlineFragment( - new NamedType("PullRequestCommit") as any, - new SelectionSet(select(PullRequestCommit as any)) - ); - } - - case "ReadyForReviewEvent": { - return new InlineFragment( - new NamedType("ReadyForReviewEvent") as any, - new SelectionSet(select(ReadyForReviewEvent as any)) - ); - } - - case "Release": { - return new InlineFragment( - new NamedType("Release") as any, - new SelectionSet(select(Release as any)) - ); - } - - case "Repository": { - return new InlineFragment( - new NamedType("Repository") as any, - new SelectionSet(select(Repository as any)) - ); - } - - case "RepositoryTopic": { - return new InlineFragment( - new NamedType("RepositoryTopic") as any, - new SelectionSet(select(RepositoryTopic as any)) - ); - } - - case "ReviewDismissedEvent": { - return new InlineFragment( - new NamedType("ReviewDismissedEvent") as any, - new SelectionSet(select(ReviewDismissedEvent as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - case "User": { - return new InlineFragment( - new NamedType("User") as any, - new SelectionSet(select(User as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "UniformResourceLocatable", - }); - } - }, -}; - -export interface IUnknownSignature extends IGitSignature { - readonly __typename: "UnknownSignature"; -} - -interface UnknownSignatureSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Email used to sign this object. - */ - - readonly email: () => Field<"email">; - - /** - * @description True if the signature is valid and verified by GitHub. - */ - - readonly isValid: () => Field<"isValid">; - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - - readonly payload: () => Field<"payload">; - - /** - * @description ASCII-armored signature header from object. - */ - - readonly signature: () => Field<"signature">; - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - readonly signer: >( - select: (t: UserSelector) => T - ) => Field<"signer", never, SelectionSet>; - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - - readonly state: () => Field<"state">; - - /** - * @description True if the signature was made with GitHub's signing key. - */ - - readonly wasSignedByGitHub: () => Field<"wasSignedByGitHub">; -} - -export const isUnknownSignature = ( - object: Record -): object is Partial => { - return object.__typename === "UnknownSignature"; -}; - -export const UnknownSignature: UnknownSignatureSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Email used to sign this object. - */ - email: () => new Field("email"), - - /** - * @description True if the signature is valid and verified by GitHub. - */ - isValid: () => new Field("isValid"), - - /** - * @description Payload for GPG signing object. Raw ODB object without the signature header. - */ - payload: () => new Field("payload"), - - /** - * @description ASCII-armored signature header from object. - */ - signature: () => new Field("signature"), - - /** - * @description GitHub user corresponding to the email signing this commit. - */ - - signer: (select) => - new Field("signer", undefined as never, new SelectionSet(select(User))), - - /** - * @description The state of this signature. `VALID` if signature is valid and verified by -GitHub, otherwise represents reason why signature is considered invalid. - */ - state: () => new Field("state"), - - /** - * @description True if the signature was made with GitHub's signing key. - */ - wasSignedByGitHub: () => new Field("wasSignedByGitHub"), -}; - -export interface IUnlabeledEvent extends INode { - readonly __typename: "UnlabeledEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly label: ILabel; - readonly labelable: ILabelable; -} - -interface UnlabeledEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the label associated with the 'unlabeled' event. - */ - - readonly label: >( - select: (t: LabelSelector) => T - ) => Field<"label", never, SelectionSet>; - - /** - * @description Identifies the `Labelable` associated with the event. - */ - - readonly labelable: >( - select: (t: LabelableSelector) => T - ) => Field<"labelable", never, SelectionSet>; -} - -export const isUnlabeledEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnlabeledEvent"; -}; - -export const UnlabeledEvent: UnlabeledEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the label associated with the 'unlabeled' event. - */ - - label: (select) => - new Field("label", undefined as never, new SelectionSet(select(Label))), - - /** - * @description Identifies the `Labelable` associated with the event. - */ - - labelable: (select) => - new Field( - "labelable", - undefined as never, - new SelectionSet(select(Labelable)) - ), -}; - -export interface IUnlinkRepositoryFromProjectPayload { - readonly __typename: "UnlinkRepositoryFromProjectPayload"; - readonly clientMutationId: string | null; - readonly project: IProject | null; - readonly repository: IRepository | null; -} - -interface UnlinkRepositoryFromProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The linked Project. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; - - /** - * @description The linked Repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const UnlinkRepositoryFromProjectPayload: UnlinkRepositoryFromProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The linked Project. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), - - /** - * @description The linked Repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IUnlockLockablePayload { - readonly __typename: "UnlockLockablePayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly unlockedRecord: ILockable | null; -} - -interface UnlockLockablePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The item that was unlocked. - */ - - readonly unlockedRecord: >( - select: (t: LockableSelector) => T - ) => Field<"unlockedRecord", never, SelectionSet>; -} - -export const UnlockLockablePayload: UnlockLockablePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The item that was unlocked. - */ - - unlockedRecord: (select) => - new Field( - "unlockedRecord", - undefined as never, - new SelectionSet(select(Lockable)) - ), -}; - -export interface IUnlockedEvent extends INode { - readonly __typename: "UnlockedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly lockable: ILockable; -} - -interface UnlockedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Object that was unlocked. - */ - - readonly lockable: >( - select: (t: LockableSelector) => T - ) => Field<"lockable", never, SelectionSet>; -} - -export const isUnlockedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnlockedEvent"; -}; - -export const UnlockedEvent: UnlockedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Object that was unlocked. - */ - - lockable: (select) => - new Field( - "lockable", - undefined as never, - new SelectionSet(select(Lockable)) - ), -}; - -export interface IUnmarkFileAsViewedPayload { - readonly __typename: "UnmarkFileAsViewedPayload"; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface UnmarkFileAsViewedPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated pull request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const UnmarkFileAsViewedPayload: UnmarkFileAsViewedPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated pull request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IUnmarkIssueAsDuplicatePayload { - readonly __typename: "UnmarkIssueAsDuplicatePayload"; - readonly clientMutationId: string | null; - readonly duplicate: IIssueOrPullRequest | null; -} - -interface UnmarkIssueAsDuplicatePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The issue or pull request that was marked as a duplicate. - */ - - readonly duplicate: >( - select: (t: IssueOrPullRequestSelector) => T - ) => Field<"duplicate", never, SelectionSet>; -} - -export const UnmarkIssueAsDuplicatePayload: UnmarkIssueAsDuplicatePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The issue or pull request that was marked as a duplicate. - */ - - duplicate: (select) => - new Field( - "duplicate", - undefined as never, - new SelectionSet(select(IssueOrPullRequest)) - ), -}; - -export interface IUnmarkedAsDuplicateEvent extends INode { - readonly __typename: "UnmarkedAsDuplicateEvent"; - readonly actor: IActor | null; - readonly canonical: IIssueOrPullRequest | null; - readonly createdAt: unknown; - readonly duplicate: IIssueOrPullRequest | null; - readonly isCrossRepository: boolean; -} - -interface UnmarkedAsDuplicateEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description The authoritative issue or pull request which has been duplicated by another. - */ - - readonly canonical: >( - select: (t: IssueOrPullRequestSelector) => T - ) => Field<"canonical", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description The issue or pull request which has been marked as a duplicate of another. - */ - - readonly duplicate: >( - select: (t: IssueOrPullRequestSelector) => T - ) => Field<"duplicate", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Canonical and duplicate belong to different repositories. - */ - - readonly isCrossRepository: () => Field<"isCrossRepository">; -} - -export const isUnmarkedAsDuplicateEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnmarkedAsDuplicateEvent"; -}; - -export const UnmarkedAsDuplicateEvent: UnmarkedAsDuplicateEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description The authoritative issue or pull request which has been duplicated by another. - */ - - canonical: (select) => - new Field( - "canonical", - undefined as never, - new SelectionSet(select(IssueOrPullRequest)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description The issue or pull request which has been marked as a duplicate of another. - */ - - duplicate: (select) => - new Field( - "duplicate", - undefined as never, - new SelectionSet(select(IssueOrPullRequest)) - ), - - id: () => new Field("id"), - - /** - * @description Canonical and duplicate belong to different repositories. - */ - isCrossRepository: () => new Field("isCrossRepository"), -}; - -export interface IUnminimizeCommentPayload { - readonly __typename: "UnminimizeCommentPayload"; - readonly clientMutationId: string | null; - readonly unminimizedComment: IMinimizable | null; -} - -interface UnminimizeCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The comment that was unminimized. - */ - - readonly unminimizedComment: >( - select: (t: MinimizableSelector) => T - ) => Field<"unminimizedComment", never, SelectionSet>; -} - -export const UnminimizeCommentPayload: UnminimizeCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The comment that was unminimized. - */ - - unminimizedComment: (select) => - new Field( - "unminimizedComment", - undefined as never, - new SelectionSet(select(Minimizable)) - ), -}; - -export interface IUnpinnedEvent extends INode { - readonly __typename: "UnpinnedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly issue: IIssue; -} - -interface UnpinnedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the issue associated with the event. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const isUnpinnedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnpinnedEvent"; -}; - -export const UnpinnedEvent: UnpinnedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Identifies the issue associated with the event. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IUnresolveReviewThreadPayload { - readonly __typename: "UnresolveReviewThreadPayload"; - readonly clientMutationId: string | null; - readonly thread: IPullRequestReviewThread | null; -} - -interface UnresolveReviewThreadPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The thread to resolve. - */ - - readonly thread: >( - select: (t: PullRequestReviewThreadSelector) => T - ) => Field<"thread", never, SelectionSet>; -} - -export const UnresolveReviewThreadPayload: UnresolveReviewThreadPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The thread to resolve. - */ - - thread: (select) => - new Field( - "thread", - undefined as never, - new SelectionSet(select(PullRequestReviewThread)) - ), -}; - -export interface IUnsubscribedEvent extends INode { - readonly __typename: "UnsubscribedEvent"; - readonly actor: IActor | null; - readonly createdAt: unknown; - readonly subscribable: ISubscribable; -} - -interface UnsubscribedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description Object referenced by event. - */ - - readonly subscribable: >( - select: (t: SubscribableSelector) => T - ) => Field<"subscribable", never, SelectionSet>; -} - -export const isUnsubscribedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UnsubscribedEvent"; -}; - -export const UnsubscribedEvent: UnsubscribedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description Object referenced by event. - */ - - subscribable: (select) => - new Field( - "subscribable", - undefined as never, - new SelectionSet(select(Subscribable)) - ), -}; - -export interface IUpdatable { - readonly __typename: string; - readonly viewerCanUpdate: boolean; -} - -interface UpdatableSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Check if the current viewer can update this object. - */ - - readonly viewerCanUpdate: () => Field<"viewerCanUpdate">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "GistComment" - | "Issue" - | "IssueComment" - | "Project" - | "PullRequest" - | "PullRequestReview" - | "PullRequestReviewComment" - | "TeamDiscussion" - | "TeamDiscussionComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "Project" - ? ProjectSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Updatable: UpdatableSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Check if the current viewer can update this object. - */ - viewerCanUpdate: () => new Field("viewerCanUpdate"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "Project": { - return new InlineFragment( - new NamedType("Project") as any, - new SelectionSet(select(Project as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Updatable", - }); - } - }, -}; - -export interface IUpdatableComment { - readonly __typename: string; - readonly viewerCannotUpdateReasons: ReadonlyArray; -} - -interface UpdatableCommentSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Reasons why the current viewer can not update this comment. - */ - - readonly viewerCannotUpdateReasons: () => Field<"viewerCannotUpdateReasons">; - - readonly on: < - T extends Array, - F extends - | "CommitComment" - | "GistComment" - | "Issue" - | "IssueComment" - | "PullRequest" - | "PullRequestReview" - | "PullRequestReviewComment" - | "TeamDiscussion" - | "TeamDiscussionComment" - >( - type: F, - select: ( - t: F extends "CommitComment" - ? CommitCommentSelector - : F extends "GistComment" - ? GistCommentSelector - : F extends "Issue" - ? IssueSelector - : F extends "IssueComment" - ? IssueCommentSelector - : F extends "PullRequest" - ? PullRequestSelector - : F extends "PullRequestReview" - ? PullRequestReviewSelector - : F extends "PullRequestReviewComment" - ? PullRequestReviewCommentSelector - : F extends "TeamDiscussion" - ? TeamDiscussionSelector - : F extends "TeamDiscussionComment" - ? TeamDiscussionCommentSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const UpdatableComment: UpdatableCommentSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Reasons why the current viewer can not update this comment. - */ - viewerCannotUpdateReasons: () => new Field("viewerCannotUpdateReasons"), - - on: (type, select) => { - switch (type) { - case "CommitComment": { - return new InlineFragment( - new NamedType("CommitComment") as any, - new SelectionSet(select(CommitComment as any)) - ); - } - - case "GistComment": { - return new InlineFragment( - new NamedType("GistComment") as any, - new SelectionSet(select(GistComment as any)) - ); - } - - case "Issue": { - return new InlineFragment( - new NamedType("Issue") as any, - new SelectionSet(select(Issue as any)) - ); - } - - case "IssueComment": { - return new InlineFragment( - new NamedType("IssueComment") as any, - new SelectionSet(select(IssueComment as any)) - ); - } - - case "PullRequest": { - return new InlineFragment( - new NamedType("PullRequest") as any, - new SelectionSet(select(PullRequest as any)) - ); - } - - case "PullRequestReview": { - return new InlineFragment( - new NamedType("PullRequestReview") as any, - new SelectionSet(select(PullRequestReview as any)) - ); - } - - case "PullRequestReviewComment": { - return new InlineFragment( - new NamedType("PullRequestReviewComment") as any, - new SelectionSet(select(PullRequestReviewComment as any)) - ); - } - - case "TeamDiscussion": { - return new InlineFragment( - new NamedType("TeamDiscussion") as any, - new SelectionSet(select(TeamDiscussion as any)) - ); - } - - case "TeamDiscussionComment": { - return new InlineFragment( - new NamedType("TeamDiscussionComment") as any, - new SelectionSet(select(TeamDiscussionComment as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "UpdatableComment", - }); - } - }, -}; - -export interface IUpdateBranchProtectionRulePayload { - readonly __typename: "UpdateBranchProtectionRulePayload"; - readonly branchProtectionRule: IBranchProtectionRule | null; - readonly clientMutationId: string | null; -} - -interface UpdateBranchProtectionRulePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The newly created BranchProtectionRule. - */ - - readonly branchProtectionRule: >( - select: (t: BranchProtectionRuleSelector) => T - ) => Field<"branchProtectionRule", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const UpdateBranchProtectionRulePayload: UpdateBranchProtectionRulePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The newly created BranchProtectionRule. - */ - - branchProtectionRule: (select) => - new Field( - "branchProtectionRule", - undefined as never, - new SelectionSet(select(BranchProtectionRule)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IUpdateCheckRunPayload { - readonly __typename: "UpdateCheckRunPayload"; - readonly checkRun: ICheckRun | null; - readonly clientMutationId: string | null; -} - -interface UpdateCheckRunPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The updated check run. - */ - - readonly checkRun: >( - select: (t: CheckRunSelector) => T - ) => Field<"checkRun", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; -} - -export const UpdateCheckRunPayload: UpdateCheckRunPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The updated check run. - */ - - checkRun: (select) => - new Field( - "checkRun", - undefined as never, - new SelectionSet(select(CheckRun)) - ), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), -}; - -export interface IUpdateCheckSuitePreferencesPayload { - readonly __typename: "UpdateCheckSuitePreferencesPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface UpdateCheckSuitePreferencesPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const UpdateCheckSuitePreferencesPayload: UpdateCheckSuitePreferencesPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IUpdateEnterpriseAdministratorRolePayload { - readonly __typename: "UpdateEnterpriseAdministratorRolePayload"; - readonly clientMutationId: string | null; - readonly message: string | null; -} - -interface UpdateEnterpriseAdministratorRolePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description A message confirming the result of changing the administrator's role. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseAdministratorRolePayload: UpdateEnterpriseAdministratorRolePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description A message confirming the result of changing the administrator's role. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload { - readonly __typename: "UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated allow private repository forking setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the allow private repository forking setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayload: UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated allow private repository forking setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the allow private repository forking setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseDefaultRepositoryPermissionSettingPayload { - readonly __typename: "UpdateEnterpriseDefaultRepositoryPermissionSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseDefaultRepositoryPermissionSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated default repository permission setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the default repository permission setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseDefaultRepositoryPermissionSettingPayload: UpdateEnterpriseDefaultRepositoryPermissionSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated default repository permission setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the default repository permission setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can change repository visibility setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can change repository visibility setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayload: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can change repository visibility setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can change repository visibility setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanCreateRepositoriesSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanCreateRepositoriesSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can create repositories setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can create repositories setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanCreateRepositoriesSettingPayload: UpdateEnterpriseMembersCanCreateRepositoriesSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can create repositories setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can create repositories setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanDeleteIssuesSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanDeleteIssuesSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanDeleteIssuesSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can delete issues setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can delete issues setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanDeleteIssuesSettingPayload: UpdateEnterpriseMembersCanDeleteIssuesSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can delete issues setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can delete issues setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can delete repositories setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can delete repositories setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayload: UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can delete repositories setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can delete repositories setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can invite collaborators setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can invite collaborators setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayload: UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can invite collaborators setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can invite collaborators setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanMakePurchasesSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanMakePurchasesSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanMakePurchasesSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can make purchases setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can make purchases setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanMakePurchasesSettingPayload: UpdateEnterpriseMembersCanMakePurchasesSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can make purchases setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can make purchases setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can update protected branches setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can update protected branches setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayload: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can update protected branches setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can update protected branches setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload { - readonly __typename: "UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated members can view dependency insights setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the members can view dependency insights setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayload: UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated members can view dependency insights setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the members can view dependency insights setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseOrganizationProjectsSettingPayload { - readonly __typename: "UpdateEnterpriseOrganizationProjectsSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseOrganizationProjectsSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated organization projects setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the organization projects setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseOrganizationProjectsSettingPayload: UpdateEnterpriseOrganizationProjectsSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated organization projects setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the organization projects setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseProfilePayload { - readonly __typename: "UpdateEnterpriseProfilePayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; -} - -interface UpdateEnterpriseProfilePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated enterprise. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; -} - -export const UpdateEnterpriseProfilePayload: UpdateEnterpriseProfilePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated enterprise. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), -}; - -export interface IUpdateEnterpriseRepositoryProjectsSettingPayload { - readonly __typename: "UpdateEnterpriseRepositoryProjectsSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseRepositoryProjectsSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated repository projects setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the repository projects setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseRepositoryProjectsSettingPayload: UpdateEnterpriseRepositoryProjectsSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated repository projects setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the repository projects setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseTeamDiscussionsSettingPayload { - readonly __typename: "UpdateEnterpriseTeamDiscussionsSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseTeamDiscussionsSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated team discussions setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the team discussions setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseTeamDiscussionsSettingPayload: UpdateEnterpriseTeamDiscussionsSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated team discussions setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the team discussions setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload { - readonly __typename: "UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload"; - readonly clientMutationId: string | null; - readonly enterprise: IEnterprise | null; - readonly message: string | null; -} - -interface UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The enterprise with the updated two factor authentication required setting. - */ - - readonly enterprise: >( - select: (t: EnterpriseSelector) => T - ) => Field<"enterprise", never, SelectionSet>; - - /** - * @description A message confirming the result of updating the two factor authentication required setting. - */ - - readonly message: () => Field<"message">; -} - -export const UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayload: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The enterprise with the updated two factor authentication required setting. - */ - - enterprise: (select) => - new Field( - "enterprise", - undefined as never, - new SelectionSet(select(Enterprise)) - ), - - /** - * @description A message confirming the result of updating the two factor authentication required setting. - */ - message: () => new Field("message"), -}; - -export interface IUpdateIpAllowListEnabledSettingPayload { - readonly __typename: "UpdateIpAllowListEnabledSettingPayload"; - readonly clientMutationId: string | null; - readonly owner: IIpAllowListOwner | null; -} - -interface UpdateIpAllowListEnabledSettingPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The IP allow list owner on which the setting was updated. - */ - - readonly owner: >( - select: (t: IpAllowListOwnerSelector) => T - ) => Field<"owner", never, SelectionSet>; -} - -export const UpdateIpAllowListEnabledSettingPayload: UpdateIpAllowListEnabledSettingPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The IP allow list owner on which the setting was updated. - */ - - owner: (select) => - new Field( - "owner", - undefined as never, - new SelectionSet(select(IpAllowListOwner)) - ), -}; - -export interface IUpdateIpAllowListEntryPayload { - readonly __typename: "UpdateIpAllowListEntryPayload"; - readonly clientMutationId: string | null; - readonly ipAllowListEntry: IIpAllowListEntry | null; -} - -interface UpdateIpAllowListEntryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The IP allow list entry that was updated. - */ - - readonly ipAllowListEntry: >( - select: (t: IpAllowListEntrySelector) => T - ) => Field<"ipAllowListEntry", never, SelectionSet>; -} - -export const UpdateIpAllowListEntryPayload: UpdateIpAllowListEntryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The IP allow list entry that was updated. - */ - - ipAllowListEntry: (select) => - new Field( - "ipAllowListEntry", - undefined as never, - new SelectionSet(select(IpAllowListEntry)) - ), -}; - -export interface IUpdateIssueCommentPayload { - readonly __typename: "UpdateIssueCommentPayload"; - readonly clientMutationId: string | null; - readonly issueComment: IIssueComment | null; -} - -interface UpdateIssueCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated comment. - */ - - readonly issueComment: >( - select: (t: IssueCommentSelector) => T - ) => Field<"issueComment", never, SelectionSet>; -} - -export const UpdateIssueCommentPayload: UpdateIssueCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated comment. - */ - - issueComment: (select) => - new Field( - "issueComment", - undefined as never, - new SelectionSet(select(IssueComment)) - ), -}; - -export interface IUpdateIssuePayload { - readonly __typename: "UpdateIssuePayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly issue: IIssue | null; -} - -interface UpdateIssuePayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The issue. - */ - - readonly issue: >( - select: (t: IssueSelector) => T - ) => Field<"issue", never, SelectionSet>; -} - -export const UpdateIssuePayload: UpdateIssuePayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The issue. - */ - - issue: (select) => - new Field("issue", undefined as never, new SelectionSet(select(Issue))), -}; - -export interface IUpdateProjectCardPayload { - readonly __typename: "UpdateProjectCardPayload"; - readonly clientMutationId: string | null; - readonly projectCard: IProjectCard | null; -} - -interface UpdateProjectCardPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated ProjectCard. - */ - - readonly projectCard: >( - select: (t: ProjectCardSelector) => T - ) => Field<"projectCard", never, SelectionSet>; -} - -export const UpdateProjectCardPayload: UpdateProjectCardPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated ProjectCard. - */ - - projectCard: (select) => - new Field( - "projectCard", - undefined as never, - new SelectionSet(select(ProjectCard)) - ), -}; - -export interface IUpdateProjectColumnPayload { - readonly __typename: "UpdateProjectColumnPayload"; - readonly clientMutationId: string | null; - readonly projectColumn: IProjectColumn | null; -} - -interface UpdateProjectColumnPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated project column. - */ - - readonly projectColumn: >( - select: (t: ProjectColumnSelector) => T - ) => Field<"projectColumn", never, SelectionSet>; -} - -export const UpdateProjectColumnPayload: UpdateProjectColumnPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated project column. - */ - - projectColumn: (select) => - new Field( - "projectColumn", - undefined as never, - new SelectionSet(select(ProjectColumn)) - ), -}; - -export interface IUpdateProjectPayload { - readonly __typename: "UpdateProjectPayload"; - readonly clientMutationId: string | null; - readonly project: IProject | null; -} - -interface UpdateProjectPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated project. - */ - - readonly project: >( - select: (t: ProjectSelector) => T - ) => Field<"project", never, SelectionSet>; -} - -export const UpdateProjectPayload: UpdateProjectPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated project. - */ - - project: (select) => - new Field("project", undefined as never, new SelectionSet(select(Project))), -}; - -export interface IUpdatePullRequestPayload { - readonly __typename: "UpdatePullRequestPayload"; - readonly actor: IActor | null; - readonly clientMutationId: string | null; - readonly pullRequest: IPullRequest | null; -} - -interface UpdatePullRequestPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated pull request. - */ - - readonly pullRequest: >( - select: (t: PullRequestSelector) => T - ) => Field<"pullRequest", never, SelectionSet>; -} - -export const UpdatePullRequestPayload: UpdatePullRequestPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated pull request. - */ - - pullRequest: (select) => - new Field( - "pullRequest", - undefined as never, - new SelectionSet(select(PullRequest)) - ), -}; - -export interface IUpdatePullRequestReviewCommentPayload { - readonly __typename: "UpdatePullRequestReviewCommentPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReviewComment: IPullRequestReviewComment | null; -} - -interface UpdatePullRequestReviewCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated comment. - */ - - readonly pullRequestReviewComment: >( - select: (t: PullRequestReviewCommentSelector) => T - ) => Field<"pullRequestReviewComment", never, SelectionSet>; -} - -export const UpdatePullRequestReviewCommentPayload: UpdatePullRequestReviewCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated comment. - */ - - pullRequestReviewComment: (select) => - new Field( - "pullRequestReviewComment", - undefined as never, - new SelectionSet(select(PullRequestReviewComment)) - ), -}; - -export interface IUpdatePullRequestReviewPayload { - readonly __typename: "UpdatePullRequestReviewPayload"; - readonly clientMutationId: string | null; - readonly pullRequestReview: IPullRequestReview | null; -} - -interface UpdatePullRequestReviewPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated pull request review. - */ - - readonly pullRequestReview: >( - select: (t: PullRequestReviewSelector) => T - ) => Field<"pullRequestReview", never, SelectionSet>; -} - -export const UpdatePullRequestReviewPayload: UpdatePullRequestReviewPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated pull request review. - */ - - pullRequestReview: (select) => - new Field( - "pullRequestReview", - undefined as never, - new SelectionSet(select(PullRequestReview)) - ), -}; - -export interface IUpdateRefPayload { - readonly __typename: "UpdateRefPayload"; - readonly clientMutationId: string | null; - readonly ref: IRef | null; -} - -interface UpdateRefPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated Ref. - */ - - readonly ref: >( - select: (t: RefSelector) => T - ) => Field<"ref", never, SelectionSet>; -} - -export const UpdateRefPayload: UpdateRefPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated Ref. - */ - - ref: (select) => - new Field("ref", undefined as never, new SelectionSet(select(Ref))), -}; - -export interface IUpdateRepositoryPayload { - readonly __typename: "UpdateRepositoryPayload"; - readonly clientMutationId: string | null; - readonly repository: IRepository | null; -} - -interface UpdateRepositoryPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const UpdateRepositoryPayload: UpdateRepositoryPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IUpdateSubscriptionPayload { - readonly __typename: "UpdateSubscriptionPayload"; - readonly clientMutationId: string | null; - readonly subscribable: ISubscribable | null; -} - -interface UpdateSubscriptionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The input subscribable entity. - */ - - readonly subscribable: >( - select: (t: SubscribableSelector) => T - ) => Field<"subscribable", never, SelectionSet>; -} - -export const UpdateSubscriptionPayload: UpdateSubscriptionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The input subscribable entity. - */ - - subscribable: (select) => - new Field( - "subscribable", - undefined as never, - new SelectionSet(select(Subscribable)) - ), -}; - -export interface IUpdateTeamDiscussionCommentPayload { - readonly __typename: "UpdateTeamDiscussionCommentPayload"; - readonly clientMutationId: string | null; - readonly teamDiscussionComment: ITeamDiscussionComment | null; -} - -interface UpdateTeamDiscussionCommentPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated comment. - */ - - readonly teamDiscussionComment: >( - select: (t: TeamDiscussionCommentSelector) => T - ) => Field<"teamDiscussionComment", never, SelectionSet>; -} - -export const UpdateTeamDiscussionCommentPayload: UpdateTeamDiscussionCommentPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated comment. - */ - - teamDiscussionComment: (select) => - new Field( - "teamDiscussionComment", - undefined as never, - new SelectionSet(select(TeamDiscussionComment)) - ), -}; - -export interface IUpdateTeamDiscussionPayload { - readonly __typename: "UpdateTeamDiscussionPayload"; - readonly clientMutationId: string | null; - readonly teamDiscussion: ITeamDiscussion | null; -} - -interface UpdateTeamDiscussionPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description The updated discussion. - */ - - readonly teamDiscussion: >( - select: (t: TeamDiscussionSelector) => T - ) => Field<"teamDiscussion", never, SelectionSet>; -} - -export const UpdateTeamDiscussionPayload: UpdateTeamDiscussionPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description The updated discussion. - */ - - teamDiscussion: (select) => - new Field( - "teamDiscussion", - undefined as never, - new SelectionSet(select(TeamDiscussion)) - ), -}; - -export interface IUpdateTopicsPayload { - readonly __typename: "UpdateTopicsPayload"; - readonly clientMutationId: string | null; - readonly invalidTopicNames: ReadonlyArray | null; - readonly repository: IRepository | null; -} - -interface UpdateTopicsPayloadSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A unique identifier for the client performing the mutation. - */ - - readonly clientMutationId: () => Field<"clientMutationId">; - - /** - * @description Names of the provided topics that are not valid. - */ - - readonly invalidTopicNames: () => Field<"invalidTopicNames">; - - /** - * @description The updated repository. - */ - - readonly repository: >( - select: (t: RepositorySelector) => T - ) => Field<"repository", never, SelectionSet>; -} - -export const UpdateTopicsPayload: UpdateTopicsPayloadSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A unique identifier for the client performing the mutation. - */ - clientMutationId: () => new Field("clientMutationId"), - - /** - * @description Names of the provided topics that are not valid. - */ - invalidTopicNames: () => new Field("invalidTopicNames"), - - /** - * @description The updated repository. - */ - - repository: (select) => - new Field( - "repository", - undefined as never, - new SelectionSet(select(Repository)) - ), -}; - -export interface IUser - extends IActor, - INode, - IPackageOwner, - IProfileOwner, - IProjectOwner, - IRepositoryOwner, - ISponsorable, - IUniformResourceLocatable { - readonly __typename: "User"; - readonly bio: string | null; - readonly bioHTML: unknown; - readonly commitComments: ICommitCommentConnection; - readonly company: string | null; - readonly companyHTML: unknown; - readonly contributionsCollection: IContributionsCollection; - readonly createdAt: unknown; - readonly databaseId: number | null; - readonly followers: IFollowerConnection; - readonly following: IFollowingConnection; - readonly gist: IGist | null; - readonly gistComments: IGistCommentConnection; - readonly gists: IGistConnection; - readonly hovercard: IHovercard; - readonly interactionAbility: IRepositoryInteractionAbility | null; - readonly isBountyHunter: boolean; - readonly isCampusExpert: boolean; - readonly isDeveloperProgramMember: boolean; - readonly isEmployee: boolean; - readonly isHireable: boolean; - readonly isSiteAdmin: boolean; - readonly isViewer: boolean; - readonly issueComments: IIssueCommentConnection; - readonly issues: IIssueConnection; - readonly organization: IOrganization | null; - readonly organizationVerifiedDomainEmails: ReadonlyArray; - readonly organizations: IOrganizationConnection; - readonly publicKeys: IPublicKeyConnection; - readonly pullRequests: IPullRequestConnection; - readonly repositoriesContributedTo: IRepositoryConnection; - readonly savedReplies: ISavedReplyConnection | null; - readonly starredRepositories: IStarredRepositoryConnection; - readonly status: IUserStatus | null; - readonly topRepositories: IRepositoryConnection; - readonly twitterUsername: string | null; - readonly updatedAt: unknown; - readonly viewerCanFollow: boolean; - readonly viewerIsFollowing: boolean; - readonly watching: IRepositoryConnection; -} - -interface UserSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - - readonly anyPinnableItems: (variables: { - type?: Variable<"type"> | PinnableItemType; - }) => Field< - "anyPinnableItems", - [Argument<"type", Variable<"type"> | PinnableItemType>] - >; - - /** - * @description A URL pointing to the user's public avatar. - */ - - readonly avatarUrl: (variables: { - size?: Variable<"size"> | number; - }) => Field<"avatarUrl", [Argument<"size", Variable<"size"> | number>]>; - - /** - * @description The user's public profile bio. - */ - - readonly bio: () => Field<"bio">; - - /** - * @description The user's public profile bio as HTML. - */ - - readonly bioHTML: () => Field<"bioHTML">; - - /** - * @description A list of commit comments made by this user. - */ - - readonly commitComments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: CommitCommentConnectionSelector) => T - ) => Field< - "commitComments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description The user's public profile company. - */ - - readonly company: () => Field<"company">; - - /** - * @description The user's public profile company as HTML. - */ - - readonly companyHTML: () => Field<"companyHTML">; - - /** - * @description The collection of contributions this user has made to different repositories. - */ - - readonly contributionsCollection: >( - variables: { - from?: Variable<"from"> | unknown; - organizationID?: Variable<"organizationID"> | string; - to?: Variable<"to"> | unknown; - }, - select: (t: ContributionsCollectionSelector) => T - ) => Field< - "contributionsCollection", - [ - Argument<"from", Variable<"from"> | unknown>, - Argument<"organizationID", Variable<"organizationID"> | string>, - Argument<"to", Variable<"to"> | unknown> - ], - SelectionSet - >; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the primary key from the database. - */ - - readonly databaseId: () => Field<"databaseId">; - - /** - * @description The user's publicly visible profile email. - */ - - readonly email: () => Field<"email">; - - /** - * @description A list of users the given user is followed by. - */ - - readonly followers: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: FollowerConnectionSelector) => T - ) => Field< - "followers", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of users the given user is following. - */ - - readonly following: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: FollowingConnectionSelector) => T - ) => Field< - "following", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description Find gist by repo name. - */ - - readonly gist: >( - variables: { name?: Variable<"name"> | string }, - select: (t: GistSelector) => T - ) => Field< - "gist", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description A list of gist comments made by this user. - */ - - readonly gistComments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: GistCommentConnectionSelector) => T - ) => Field< - "gistComments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of the Gists the user has created. - */ - - readonly gists: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | GistOrder; - privacy?: Variable<"privacy"> | GistPrivacy; - }, - select: (t: GistConnectionSelector) => T - ) => Field< - "gists", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | GistOrder>, - Argument<"privacy", Variable<"privacy"> | GistPrivacy> - ], - SelectionSet - >; - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - - readonly hasSponsorsListing: () => Field<"hasSponsorsListing">; - - /** - * @description The hovercard information for this user in a given context - */ - - readonly hovercard: >( - variables: { primarySubjectId?: Variable<"primarySubjectId"> | string }, - select: (t: HovercardSelector) => T - ) => Field< - "hovercard", - [Argument<"primarySubjectId", Variable<"primarySubjectId"> | string>], - SelectionSet - >; - - readonly id: () => Field<"id">; - - /** - * @description The interaction ability settings for this user. - */ - - readonly interactionAbility: >( - select: (t: RepositoryInteractionAbilitySelector) => T - ) => Field<"interactionAbility", never, SelectionSet>; - - /** - * @description Whether or not this user is a participant in the GitHub Security Bug Bounty. - */ - - readonly isBountyHunter: () => Field<"isBountyHunter">; - - /** - * @description Whether or not this user is a participant in the GitHub Campus Experts Program. - */ - - readonly isCampusExpert: () => Field<"isCampusExpert">; - - /** - * @description Whether or not this user is a GitHub Developer Program member. - */ - - readonly isDeveloperProgramMember: () => Field<"isDeveloperProgramMember">; - - /** - * @description Whether or not this user is a GitHub employee. - */ - - readonly isEmployee: () => Field<"isEmployee">; - - /** - * @description Whether or not the user has marked themselves as for hire. - */ - - readonly isHireable: () => Field<"isHireable">; - - /** - * @description Whether or not this user is a site administrator. - */ - - readonly isSiteAdmin: () => Field<"isSiteAdmin">; - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - - readonly isSponsoringViewer: () => Field<"isSponsoringViewer">; - - /** - * @description Whether or not this user is the viewing user. - */ - - readonly isViewer: () => Field<"isViewer">; - - /** - * @description A list of issue comments made by this user. - */ - - readonly issueComments: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueCommentOrder; - }, - select: (t: IssueCommentConnectionSelector) => T - ) => Field< - "issueComments", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueCommentOrder> - ], - SelectionSet - >; - - /** - * @description A list of issues associated with this user. - */ - - readonly issues: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - filterBy?: Variable<"filterBy"> | IssueFilters; - first?: Variable<"first"> | number; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | IssueState; - }, - select: (t: IssueConnectionSelector) => T - ) => Field< - "issues", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"filterBy", Variable<"filterBy"> | IssueFilters>, - Argument<"first", Variable<"first"> | number>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | IssueState> - ], - SelectionSet - >; - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - readonly itemShowcase: >( - select: (t: ProfileItemShowcaseSelector) => T - ) => Field<"itemShowcase", never, SelectionSet>; - - /** - * @description The user's public profile location. - */ - - readonly location: () => Field<"location">; - - /** - * @description The username used to login. - */ - - readonly login: () => Field<"login">; - - /** - * @description The user's public profile name. - */ - - readonly name: () => Field<"name">; - - /** - * @description Find an organization by its login that the user belongs to. - */ - - readonly organization: >( - variables: { login?: Variable<"login"> | string }, - select: (t: OrganizationSelector) => T - ) => Field< - "organization", - [Argument<"login", Variable<"login"> | string>], - SelectionSet - >; - - /** - * @description Verified email addresses that match verified domains for a specified organization the user is a member of. - */ - - readonly organizationVerifiedDomainEmails: (variables: { - login?: Variable<"login"> | string; - }) => Field< - "organizationVerifiedDomainEmails", - [Argument<"login", Variable<"login"> | string>] - >; - - /** - * @description A list of organizations the user belongs to. - */ - - readonly organizations: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: OrganizationConnectionSelector) => T - ) => Field< - "organizations", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of packages under the owner. - */ - - readonly packages: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - names?: Variable<"names"> | string; - orderBy?: Variable<"orderBy"> | PackageOrder; - packageType?: Variable<"packageType"> | PackageType; - repositoryId?: Variable<"repositoryId"> | string; - }, - select: (t: PackageConnectionSelector) => T - ) => Field< - "packages", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"names", Variable<"names"> | string>, - Argument<"orderBy", Variable<"orderBy"> | PackageOrder>, - Argument<"packageType", Variable<"packageType"> | PackageType>, - Argument<"repositoryId", Variable<"repositoryId"> | string> - ], - SelectionSet - >; - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - readonly pinnableItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnableItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - readonly pinnedItems: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - types?: Variable<"types"> | PinnableItemType; - }, - select: (t: PinnableItemConnectionSelector) => T - ) => Field< - "pinnedItems", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"types", Variable<"types"> | PinnableItemType> - ], - SelectionSet - >; - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - - readonly pinnedItemsRemaining: () => Field<"pinnedItemsRemaining">; - - /** - * @description Find project by number. - */ - - readonly project: >( - variables: { number?: Variable<"number"> | number }, - select: (t: ProjectSelector) => T - ) => Field< - "project", - [Argument<"number", Variable<"number"> | number>], - SelectionSet - >; - - /** - * @description A list of projects under the owner. - */ - - readonly projects: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | ProjectOrder; - search?: Variable<"search"> | string; - states?: Variable<"states"> | ProjectState; - }, - select: (t: ProjectConnectionSelector) => T - ) => Field< - "projects", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | ProjectOrder>, - Argument<"search", Variable<"search"> | string>, - Argument<"states", Variable<"states"> | ProjectState> - ], - SelectionSet - >; - - /** - * @description The HTTP path listing user's projects - */ - - readonly projectsResourcePath: () => Field<"projectsResourcePath">; - - /** - * @description The HTTP URL listing user's projects - */ - - readonly projectsUrl: () => Field<"projectsUrl">; - - /** - * @description A list of public keys associated with this user. - */ - - readonly publicKeys: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - }, - select: (t: PublicKeyConnectionSelector) => T - ) => Field< - "publicKeys", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number> - ], - SelectionSet - >; - - /** - * @description A list of pull requests associated with this user. - */ - - readonly pullRequests: >( - variables: { - after?: Variable<"after"> | string; - baseRefName?: Variable<"baseRefName"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - headRefName?: Variable<"headRefName"> | string; - labels?: Variable<"labels"> | string; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | IssueOrder; - states?: Variable<"states"> | PullRequestState; - }, - select: (t: PullRequestConnectionSelector) => T - ) => Field< - "pullRequests", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"baseRefName", Variable<"baseRefName"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"headRefName", Variable<"headRefName"> | string>, - Argument<"labels", Variable<"labels"> | string>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | IssueOrder>, - Argument<"states", Variable<"states"> | PullRequestState> - ], - SelectionSet - >; - - /** - * @description A list of repositories that the user owns. - */ - - readonly repositories: >( - variables: { - affiliations?: Variable<"affiliations"> | RepositoryAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isFork?: Variable<"isFork"> | boolean; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - ownerAffiliations?: Variable<"ownerAffiliations"> | RepositoryAffiliation; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "repositories", - [ - Argument< - "affiliations", - Variable<"affiliations"> | RepositoryAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isFork", Variable<"isFork"> | boolean>, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument< - "ownerAffiliations", - Variable<"ownerAffiliations"> | RepositoryAffiliation - >, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description A list of repositories that the user recently contributed to. - */ - - readonly repositoriesContributedTo: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - contributionTypes?: - | Variable<"contributionTypes"> - | RepositoryContributionType; - first?: Variable<"first"> | number; - includeUserRepositories?: Variable<"includeUserRepositories"> | boolean; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "repositoriesContributedTo", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument< - "contributionTypes", - Variable<"contributionTypes"> | RepositoryContributionType - >, - Argument<"first", Variable<"first"> | number>, - Argument< - "includeUserRepositories", - Variable<"includeUserRepositories"> | boolean - >, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description Find Repository. - */ - - readonly repository: >( - variables: { name?: Variable<"name"> | string }, - select: (t: RepositorySelector) => T - ) => Field< - "repository", - [Argument<"name", Variable<"name"> | string>], - SelectionSet - >; - - /** - * @description The HTTP path for this user - */ - - readonly resourcePath: () => Field<"resourcePath">; - - /** - * @description Replies this user has saved - */ - - readonly savedReplies: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SavedReplyOrder; - }, - select: (t: SavedReplyConnectionSelector) => T - ) => Field< - "savedReplies", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SavedReplyOrder> - ], - SelectionSet - >; - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - readonly sponsorsListing: >( - select: (t: SponsorsListingSelector) => T - ) => Field<"sponsorsListing", never, SelectionSet>; - - /** - * @description This object's sponsorships as the maintainer. - */ - - readonly sponsorshipsAsMaintainer: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - includePrivate?: Variable<"includePrivate"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsMaintainer", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"includePrivate", Variable<"includePrivate"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description This object's sponsorships as the sponsor. - */ - - readonly sponsorshipsAsSponsor: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | SponsorshipOrder; - }, - select: (t: SponsorshipConnectionSelector) => T - ) => Field< - "sponsorshipsAsSponsor", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | SponsorshipOrder> - ], - SelectionSet - >; - - /** - * @description Repositories the user has starred. - */ - - readonly starredRepositories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | StarOrder; - ownedByViewer?: Variable<"ownedByViewer"> | boolean; - }, - select: (t: StarredRepositoryConnectionSelector) => T - ) => Field< - "starredRepositories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | StarOrder>, - Argument<"ownedByViewer", Variable<"ownedByViewer"> | boolean> - ], - SelectionSet - >; - - /** - * @description The user's description of what they're currently doing. - */ - - readonly status: >( - select: (t: UserStatusSelector) => T - ) => Field<"status", never, SelectionSet>; - - /** - * @description Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created - */ - - readonly topRepositories: >( - variables: { - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - since?: Variable<"since"> | unknown; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "topRepositories", - [ - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument<"since", Variable<"since"> | unknown> - ], - SelectionSet - >; - - /** - * @description The user's Twitter username. - */ - - readonly twitterUsername: () => Field<"twitterUsername">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The HTTP URL for this user - */ - - readonly url: () => Field<"url">; - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - - readonly viewerCanChangePinnedItems: () => Field<"viewerCanChangePinnedItems">; - - /** - * @description Can the current viewer create new projects on this owner. - */ - - readonly viewerCanCreateProjects: () => Field<"viewerCanCreateProjects">; - - /** - * @description Whether or not the viewer is able to follow the user. - */ - - readonly viewerCanFollow: () => Field<"viewerCanFollow">; - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - - readonly viewerCanSponsor: () => Field<"viewerCanSponsor">; - - /** - * @description Whether or not this user is followed by the viewer. - */ - - readonly viewerIsFollowing: () => Field<"viewerIsFollowing">; - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - - readonly viewerIsSponsoring: () => Field<"viewerIsSponsoring">; - - /** - * @description A list of repositories the given user is watching. - */ - - readonly watching: >( - variables: { - affiliations?: Variable<"affiliations"> | RepositoryAffiliation; - after?: Variable<"after"> | string; - before?: Variable<"before"> | string; - first?: Variable<"first"> | number; - isLocked?: Variable<"isLocked"> | boolean; - last?: Variable<"last"> | number; - orderBy?: Variable<"orderBy"> | RepositoryOrder; - ownerAffiliations?: Variable<"ownerAffiliations"> | RepositoryAffiliation; - privacy?: Variable<"privacy"> | RepositoryPrivacy; - }, - select: (t: RepositoryConnectionSelector) => T - ) => Field< - "watching", - [ - Argument< - "affiliations", - Variable<"affiliations"> | RepositoryAffiliation - >, - Argument<"after", Variable<"after"> | string>, - Argument<"before", Variable<"before"> | string>, - Argument<"first", Variable<"first"> | number>, - Argument<"isLocked", Variable<"isLocked"> | boolean>, - Argument<"last", Variable<"last"> | number>, - Argument<"orderBy", Variable<"orderBy"> | RepositoryOrder>, - Argument< - "ownerAffiliations", - Variable<"ownerAffiliations"> | RepositoryAffiliation - >, - Argument<"privacy", Variable<"privacy"> | RepositoryPrivacy> - ], - SelectionSet - >; - - /** - * @description A URL pointing to the user's public website/blog. - */ - - readonly websiteUrl: () => Field<"websiteUrl">; -} - -export const isUser = ( - object: Record -): object is Partial => { - return object.__typename === "User"; -}; - -export const User: UserSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Determine if this repository owner has any items that can be pinned to their profile. - */ - anyPinnableItems: (variables) => new Field("anyPinnableItems"), - - /** - * @description A URL pointing to the user's public avatar. - */ - avatarUrl: (variables) => new Field("avatarUrl"), - - /** - * @description The user's public profile bio. - */ - bio: () => new Field("bio"), - - /** - * @description The user's public profile bio as HTML. - */ - bioHTML: () => new Field("bioHTML"), - - /** - * @description A list of commit comments made by this user. - */ - - commitComments: (variables, select) => - new Field( - "commitComments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(CommitCommentConnection)) - ), - - /** - * @description The user's public profile company. - */ - company: () => new Field("company"), - - /** - * @description The user's public profile company as HTML. - */ - companyHTML: () => new Field("companyHTML"), - - /** - * @description The collection of contributions this user has made to different repositories. - */ - - contributionsCollection: (variables, select) => - new Field( - "contributionsCollection", - [ - new Argument("from", variables.from, _ENUM_VALUES), - new Argument("organizationID", variables.organizationID, _ENUM_VALUES), - new Argument("to", variables.to, _ENUM_VALUES), - ], - new SelectionSet(select(ContributionsCollection)) - ), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the primary key from the database. - */ - databaseId: () => new Field("databaseId"), - - /** - * @description The user's publicly visible profile email. - */ - email: () => new Field("email"), - - /** - * @description A list of users the given user is followed by. - */ - - followers: (variables, select) => - new Field( - "followers", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(FollowerConnection)) - ), - - /** - * @description A list of users the given user is following. - */ - - following: (variables, select) => - new Field( - "following", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(FollowingConnection)) - ), - - /** - * @description Find gist by repo name. - */ - - gist: (variables, select) => - new Field( - "gist", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Gist)) - ), - - /** - * @description A list of gist comments made by this user. - */ - - gistComments: (variables, select) => - new Field( - "gistComments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(GistCommentConnection)) - ), - - /** - * @description A list of the Gists the user has created. - */ - - gists: (variables, select) => - new Field( - "gists", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(GistConnection)) - ), - - /** - * @description True if this user/organization has a GitHub Sponsors listing. - */ - hasSponsorsListing: () => new Field("hasSponsorsListing"), - - /** - * @description The hovercard information for this user in a given context - */ - - hovercard: (variables, select) => - new Field( - "hovercard", - [ - new Argument( - "primarySubjectId", - variables.primarySubjectId, - _ENUM_VALUES - ), - ], - new SelectionSet(select(Hovercard)) - ), - - id: () => new Field("id"), - - /** - * @description The interaction ability settings for this user. - */ - - interactionAbility: (select) => - new Field( - "interactionAbility", - undefined as never, - new SelectionSet(select(RepositoryInteractionAbility)) - ), - - /** - * @description Whether or not this user is a participant in the GitHub Security Bug Bounty. - */ - isBountyHunter: () => new Field("isBountyHunter"), - - /** - * @description Whether or not this user is a participant in the GitHub Campus Experts Program. - */ - isCampusExpert: () => new Field("isCampusExpert"), - - /** - * @description Whether or not this user is a GitHub Developer Program member. - */ - isDeveloperProgramMember: () => new Field("isDeveloperProgramMember"), - - /** - * @description Whether or not this user is a GitHub employee. - */ - isEmployee: () => new Field("isEmployee"), - - /** - * @description Whether or not the user has marked themselves as for hire. - */ - isHireable: () => new Field("isHireable"), - - /** - * @description Whether or not this user is a site administrator. - */ - isSiteAdmin: () => new Field("isSiteAdmin"), - - /** - * @description True if the viewer is sponsored by this user/organization. - */ - isSponsoringViewer: () => new Field("isSponsoringViewer"), - - /** - * @description Whether or not this user is the viewing user. - */ - isViewer: () => new Field("isViewer"), - - /** - * @description A list of issue comments made by this user. - */ - - issueComments: (variables, select) => - new Field( - "issueComments", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(IssueCommentConnection)) - ), - - /** - * @description A list of issues associated with this user. - */ - - issues: (variables, select) => - new Field( - "issues", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("filterBy", variables.filterBy, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(IssueConnection)) - ), - - /** - * @description Showcases a selection of repositories and gists that the profile owner has -either curated or that have been selected automatically based on popularity. - */ - - itemShowcase: (select) => - new Field( - "itemShowcase", - undefined as never, - new SelectionSet(select(ProfileItemShowcase)) - ), - - /** - * @description The user's public profile location. - */ - location: () => new Field("location"), - - /** - * @description The username used to login. - */ - login: () => new Field("login"), - - /** - * @description The user's public profile name. - */ - name: () => new Field("name"), - - /** - * @description Find an organization by its login that the user belongs to. - */ - - organization: (variables, select) => - new Field( - "organization", - [new Argument("login", variables.login, _ENUM_VALUES)], - new SelectionSet(select(Organization)) - ), - - /** - * @description Verified email addresses that match verified domains for a specified organization the user is a member of. - */ - organizationVerifiedDomainEmails: (variables) => - new Field("organizationVerifiedDomainEmails"), - - /** - * @description A list of organizations the user belongs to. - */ - - organizations: (variables, select) => - new Field( - "organizations", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(OrganizationConnection)) - ), - - /** - * @description A list of packages under the owner. - */ - - packages: (variables, select) => - new Field( - "packages", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("names", variables.names, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("packageType", variables.packageType, _ENUM_VALUES), - new Argument("repositoryId", variables.repositoryId, _ENUM_VALUES), - ], - new SelectionSet(select(PackageConnection)) - ), - - /** - * @description A list of repositories and gists this profile owner can pin to their profile. - */ - - pinnableItems: (variables, select) => - new Field( - "pinnableItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description A list of repositories and gists this profile owner has pinned to their profile - */ - - pinnedItems: (variables, select) => - new Field( - "pinnedItems", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("types", variables.types, _ENUM_VALUES), - ], - new SelectionSet(select(PinnableItemConnection)) - ), - - /** - * @description Returns how many more items this profile owner can pin to their profile. - */ - pinnedItemsRemaining: () => new Field("pinnedItemsRemaining"), - - /** - * @description Find project by number. - */ - - project: (variables, select) => - new Field( - "project", - [new Argument("number", variables.number, _ENUM_VALUES)], - new SelectionSet(select(Project)) - ), - - /** - * @description A list of projects under the owner. - */ - - projects: (variables, select) => - new Field( - "projects", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("search", variables.search, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(ProjectConnection)) - ), - - /** - * @description The HTTP path listing user's projects - */ - projectsResourcePath: () => new Field("projectsResourcePath"), - - /** - * @description The HTTP URL listing user's projects - */ - projectsUrl: () => new Field("projectsUrl"), - - /** - * @description A list of public keys associated with this user. - */ - - publicKeys: (variables, select) => - new Field( - "publicKeys", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - ], - new SelectionSet(select(PublicKeyConnection)) - ), - - /** - * @description A list of pull requests associated with this user. - */ - - pullRequests: (variables, select) => - new Field( - "pullRequests", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("baseRefName", variables.baseRefName, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("headRefName", variables.headRefName, _ENUM_VALUES), - new Argument("labels", variables.labels, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("states", variables.states, _ENUM_VALUES), - ], - new SelectionSet(select(PullRequestConnection)) - ), - - /** - * @description A list of repositories that the user owns. - */ - - repositories: (variables, select) => - new Field( - "repositories", - [ - new Argument("affiliations", variables.affiliations, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isFork", variables.isFork, _ENUM_VALUES), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "ownerAffiliations", - variables.ownerAffiliations, - _ENUM_VALUES - ), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description A list of repositories that the user recently contributed to. - */ - - repositoriesContributedTo: (variables, select) => - new Field( - "repositoriesContributedTo", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument( - "contributionTypes", - variables.contributionTypes, - _ENUM_VALUES - ), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument( - "includeUserRepositories", - variables.includeUserRepositories, - _ENUM_VALUES - ), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description Find Repository. - */ - - repository: (variables, select) => - new Field( - "repository", - [new Argument("name", variables.name, _ENUM_VALUES)], - new SelectionSet(select(Repository)) - ), - - /** - * @description The HTTP path for this user - */ - resourcePath: () => new Field("resourcePath"), - - /** - * @description Replies this user has saved - */ - - savedReplies: (variables, select) => - new Field( - "savedReplies", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SavedReplyConnection)) - ), - - /** - * @description The GitHub Sponsors listing for this user or organization. - */ - - sponsorsListing: (select) => - new Field( - "sponsorsListing", - undefined as never, - new SelectionSet(select(SponsorsListing)) - ), - - /** - * @description This object's sponsorships as the maintainer. - */ - - sponsorshipsAsMaintainer: (variables, select) => - new Field( - "sponsorshipsAsMaintainer", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("includePrivate", variables.includePrivate, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description This object's sponsorships as the sponsor. - */ - - sponsorshipsAsSponsor: (variables, select) => - new Field( - "sponsorshipsAsSponsor", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - ], - new SelectionSet(select(SponsorshipConnection)) - ), - - /** - * @description Repositories the user has starred. - */ - - starredRepositories: (variables, select) => - new Field( - "starredRepositories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("ownedByViewer", variables.ownedByViewer, _ENUM_VALUES), - ], - new SelectionSet(select(StarredRepositoryConnection)) - ), - - /** - * @description The user's description of what they're currently doing. - */ - - status: (select) => - new Field( - "status", - undefined as never, - new SelectionSet(select(UserStatus)) - ), - - /** - * @description Repositories the user has contributed to, ordered by contribution rank, plus repositories the user has created - */ - - topRepositories: (variables, select) => - new Field( - "topRepositories", - [ - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument("since", variables.since, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description The user's Twitter username. - */ - twitterUsername: () => new Field("twitterUsername"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The HTTP URL for this user - */ - url: () => new Field("url"), - - /** - * @description Can the viewer pin repositories and gists to the profile? - */ - viewerCanChangePinnedItems: () => new Field("viewerCanChangePinnedItems"), - - /** - * @description Can the current viewer create new projects on this owner. - */ - viewerCanCreateProjects: () => new Field("viewerCanCreateProjects"), - - /** - * @description Whether or not the viewer is able to follow the user. - */ - viewerCanFollow: () => new Field("viewerCanFollow"), - - /** - * @description Whether or not the viewer is able to sponsor this user/organization. - */ - viewerCanSponsor: () => new Field("viewerCanSponsor"), - - /** - * @description Whether or not this user is followed by the viewer. - */ - viewerIsFollowing: () => new Field("viewerIsFollowing"), - - /** - * @description True if the viewer is sponsoring this user/organization. - */ - viewerIsSponsoring: () => new Field("viewerIsSponsoring"), - - /** - * @description A list of repositories the given user is watching. - */ - - watching: (variables, select) => - new Field( - "watching", - [ - new Argument("affiliations", variables.affiliations, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - new Argument("before", variables.before, _ENUM_VALUES), - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("isLocked", variables.isLocked, _ENUM_VALUES), - new Argument("last", variables.last, _ENUM_VALUES), - new Argument("orderBy", variables.orderBy, _ENUM_VALUES), - new Argument( - "ownerAffiliations", - variables.ownerAffiliations, - _ENUM_VALUES - ), - new Argument("privacy", variables.privacy, _ENUM_VALUES), - ], - new SelectionSet(select(RepositoryConnection)) - ), - - /** - * @description A URL pointing to the user's public website/blog. - */ - websiteUrl: () => new Field("websiteUrl"), -}; - -export interface IUserBlockedEvent extends INode { - readonly __typename: "UserBlockedEvent"; - readonly actor: IActor | null; - readonly blockDuration: UserBlockDuration; - readonly createdAt: unknown; - readonly subject: IUser | null; -} - -interface UserBlockedEventSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the actor who performed the event. - */ - - readonly actor: >( - select: (t: ActorSelector) => T - ) => Field<"actor", never, SelectionSet>; - - /** - * @description Number of days that the user was blocked for. - */ - - readonly blockDuration: () => Field<"blockDuration">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - readonly id: () => Field<"id">; - - /** - * @description The user who was blocked. - */ - - readonly subject: >( - select: (t: UserSelector) => T - ) => Field<"subject", never, SelectionSet>; -} - -export const isUserBlockedEvent = ( - object: Record -): object is Partial => { - return object.__typename === "UserBlockedEvent"; -}; - -export const UserBlockedEvent: UserBlockedEventSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the actor who performed the event. - */ - - actor: (select) => - new Field("actor", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description Number of days that the user was blocked for. - */ - blockDuration: () => new Field("blockDuration"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - id: () => new Field("id"), - - /** - * @description The user who was blocked. - */ - - subject: (select) => - new Field("subject", undefined as never, new SelectionSet(select(User))), -}; - -export interface IUserConnection { - readonly __typename: "UserConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface UserConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: UserEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const UserConnection: UserConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field("edges", undefined as never, new SelectionSet(select(UserEdge))), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(User))), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IUserContentEdit extends INode { - readonly __typename: "UserContentEdit"; - readonly createdAt: unknown; - readonly deletedAt: unknown | null; - readonly deletedBy: IActor | null; - readonly diff: string | null; - readonly editedAt: unknown; - readonly editor: IActor | null; - readonly updatedAt: unknown; -} - -interface UserContentEditSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description Identifies the date and time when the object was deleted. - */ - - readonly deletedAt: () => Field<"deletedAt">; - - /** - * @description The actor who deleted this content - */ - - readonly deletedBy: >( - select: (t: ActorSelector) => T - ) => Field<"deletedBy", never, SelectionSet>; - - /** - * @description A summary of the changes for this edit - */ - - readonly diff: () => Field<"diff">; - - /** - * @description When this content was edited - */ - - readonly editedAt: () => Field<"editedAt">; - - /** - * @description The actor who edited this content - */ - - readonly editor: >( - select: (t: ActorSelector) => T - ) => Field<"editor", never, SelectionSet>; - - readonly id: () => Field<"id">; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; -} - -export const isUserContentEdit = ( - object: Record -): object is Partial => { - return object.__typename === "UserContentEdit"; -}; - -export const UserContentEdit: UserContentEditSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description Identifies the date and time when the object was deleted. - */ - deletedAt: () => new Field("deletedAt"), - - /** - * @description The actor who deleted this content - */ - - deletedBy: (select) => - new Field("deletedBy", undefined as never, new SelectionSet(select(Actor))), - - /** - * @description A summary of the changes for this edit - */ - diff: () => new Field("diff"), - - /** - * @description When this content was edited - */ - editedAt: () => new Field("editedAt"), - - /** - * @description The actor who edited this content - */ - - editor: (select) => - new Field("editor", undefined as never, new SelectionSet(select(Actor))), - - id: () => new Field("id"), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), -}; - -export interface IUserContentEditConnection { - readonly __typename: "UserContentEditConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface UserContentEditConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: UserContentEditEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserContentEditSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const UserContentEditConnection: UserContentEditConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(UserContentEditEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(UserContentEdit)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IUserContentEditEdge { - readonly __typename: "UserContentEditEdge"; - readonly cursor: string; - readonly node: IUserContentEdit | null; -} - -interface UserContentEditEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserContentEditSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const UserContentEditEdge: UserContentEditEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field( - "node", - undefined as never, - new SelectionSet(select(UserContentEdit)) - ), -}; - -export interface IUserEdge { - readonly __typename: "UserEdge"; - readonly cursor: string; - readonly node: IUser | null; -} - -interface UserEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const UserEdge: UserEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(User))), -}; - -export interface IUserEmailMetadata { - readonly __typename: "UserEmailMetadata"; - readonly primary: boolean | null; - readonly type: string | null; - readonly value: string; -} - -interface UserEmailMetadataSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Boolean to identify primary emails - */ - - readonly primary: () => Field<"primary">; - - /** - * @description Type of email - */ - - readonly type: () => Field<"type">; - - /** - * @description Email id - */ - - readonly value: () => Field<"value">; -} - -export const UserEmailMetadata: UserEmailMetadataSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Boolean to identify primary emails - */ - primary: () => new Field("primary"), - - /** - * @description Type of email - */ - type: () => new Field("type"), - - /** - * @description Email id - */ - value: () => new Field("value"), -}; - -export interface IUserStatus extends INode { - readonly __typename: "UserStatus"; - readonly createdAt: unknown; - readonly emoji: string | null; - readonly emojiHTML: unknown | null; - readonly expiresAt: unknown | null; - readonly indicatesLimitedAvailability: boolean; - readonly message: string | null; - readonly organization: IOrganization | null; - readonly updatedAt: unknown; - readonly user: IUser; -} - -interface UserStatusSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description Identifies the date and time when the object was created. - */ - - readonly createdAt: () => Field<"createdAt">; - - /** - * @description An emoji summarizing the user's status. - */ - - readonly emoji: () => Field<"emoji">; - - /** - * @description The status emoji as HTML. - */ - - readonly emojiHTML: () => Field<"emojiHTML">; - - /** - * @description If set, the status will not be shown after this date. - */ - - readonly expiresAt: () => Field<"expiresAt">; - - /** - * @description ID of the object. - */ - - readonly id: () => Field<"id">; - - /** - * @description Whether this status indicates the user is not fully available on GitHub. - */ - - readonly indicatesLimitedAvailability: () => Field<"indicatesLimitedAvailability">; - - /** - * @description A brief message describing what the user is doing. - */ - - readonly message: () => Field<"message">; - - /** - * @description The organization whose members can see this status. If null, this status is publicly visible. - */ - - readonly organization: >( - select: (t: OrganizationSelector) => T - ) => Field<"organization", never, SelectionSet>; - - /** - * @description Identifies the date and time when the object was last updated. - */ - - readonly updatedAt: () => Field<"updatedAt">; - - /** - * @description The user who has this status. - */ - - readonly user: >( - select: (t: UserSelector) => T - ) => Field<"user", never, SelectionSet>; -} - -export const isUserStatus = ( - object: Record -): object is Partial => { - return object.__typename === "UserStatus"; -}; - -export const UserStatus: UserStatusSelector = { - __typename: () => new Field("__typename"), - - /** - * @description Identifies the date and time when the object was created. - */ - createdAt: () => new Field("createdAt"), - - /** - * @description An emoji summarizing the user's status. - */ - emoji: () => new Field("emoji"), - - /** - * @description The status emoji as HTML. - */ - emojiHTML: () => new Field("emojiHTML"), - - /** - * @description If set, the status will not be shown after this date. - */ - expiresAt: () => new Field("expiresAt"), - - /** - * @description ID of the object. - */ - id: () => new Field("id"), - - /** - * @description Whether this status indicates the user is not fully available on GitHub. - */ - indicatesLimitedAvailability: () => new Field("indicatesLimitedAvailability"), - - /** - * @description A brief message describing what the user is doing. - */ - message: () => new Field("message"), - - /** - * @description The organization whose members can see this status. If null, this status is publicly visible. - */ - - organization: (select) => - new Field( - "organization", - undefined as never, - new SelectionSet(select(Organization)) - ), - - /** - * @description Identifies the date and time when the object was last updated. - */ - updatedAt: () => new Field("updatedAt"), - - /** - * @description The user who has this status. - */ - - user: (select) => - new Field("user", undefined as never, new SelectionSet(select(User))), -}; - -export interface IUserStatusConnection { - readonly __typename: "UserStatusConnection"; - readonly edges: ReadonlyArray | null; - readonly nodes: ReadonlyArray | null; - readonly pageInfo: IPageInfo; - readonly totalCount: number; -} - -interface UserStatusConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A list of edges. - */ - - readonly edges: >( - select: (t: UserStatusEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of nodes. - */ - - readonly nodes: >( - select: (t: UserStatusSelector) => T - ) => Field<"nodes", never, SelectionSet>; - - /** - * @description Information to aid in pagination. - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; - - /** - * @description Identifies the total count of items in the connection. - */ - - readonly totalCount: () => Field<"totalCount">; -} - -export const UserStatusConnection: UserStatusConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A list of edges. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(UserStatusEdge)) - ), - - /** - * @description A list of nodes. - */ - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(UserStatus)) - ), - - /** - * @description Information to aid in pagination. - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), - - /** - * @description Identifies the total count of items in the connection. - */ - totalCount: () => new Field("totalCount"), -}; - -export interface IUserStatusEdge { - readonly __typename: "UserStatusEdge"; - readonly cursor: string; - readonly node: IUserStatus | null; -} - -interface UserStatusEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor for use in pagination. - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The item at the end of the edge. - */ - - readonly node: >( - select: (t: UserStatusSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const UserStatusEdge: UserStatusEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor for use in pagination. - */ - cursor: () => new Field("cursor"), - - /** - * @description The item at the end of the edge. - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(UserStatus))), -}; - -export interface IViewerHovercardContext extends IHovercardContext { - readonly __typename: "ViewerHovercardContext"; - readonly viewer: IUser; -} - -interface ViewerHovercardContextSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A string describing this context - */ - - readonly message: () => Field<"message">; - - /** - * @description An octicon to accompany this context - */ - - readonly octicon: () => Field<"octicon">; - - /** - * @description Identifies the user who is related to this context. - */ - - readonly viewer: >( - select: (t: UserSelector) => T - ) => Field<"viewer", never, SelectionSet>; -} - -export const isViewerHovercardContext = ( - object: Record -): object is Partial => { - return object.__typename === "ViewerHovercardContext"; -}; - -export const ViewerHovercardContext: ViewerHovercardContextSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A string describing this context - */ - message: () => new Field("message"), - - /** - * @description An octicon to accompany this context - */ - octicon: () => new Field("octicon"), - - /** - * @description Identifies the user who is related to this context. - */ - - viewer: (select) => - new Field("viewer", undefined as never, new SelectionSet(select(User))), -}; - -export const query = >( - name: string, - select: (t: typeof Query) => T -): Operation> => - new Operation(name, "query", new SelectionSet(select(Query))); - -export const mutation = >( - name: string, - select: (t: typeof Mutation) => T -): Operation> => - new Operation(name, "mutation", new SelectionSet(select(Mutation))); - -export class Github implements Client { - public static readonly VERSION = VERSION; - public static readonly SCHEMA_SHA = SCHEMA_SHA; - - constructor(public readonly executor: Executor) {} - - public readonly query = { - /** - * @description Look up a code of conduct by its key - */ - - codeOfConduct: async >( - variables: { key?: string }, - select: (t: CodeOfConductSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"codeOfConduct", any, SelectionSet>]> - > - >( - new Operation( - "codeOfConduct", - "query", - new SelectionSet([Query.codeOfConduct(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "codeOfConduct", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "codeOfConduct", result }); - } else if (result.data) { - return result.data.codeOfConduct; - } else { - throw new ExecutionError({ name: "codeOfConduct", result }); - } - }, - - /** - * @description Look up a code of conduct by its key - */ - - codesOfConduct: async >( - select: (t: CodeOfConductSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"codesOfConduct", any, SelectionSet>]> - > - >( - new Operation( - "codesOfConduct", - "query", - new SelectionSet([Query.codesOfConduct(select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "codesOfConduct", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "codesOfConduct", result }); - } else if (result.data) { - return result.data.codesOfConduct; - } else { - throw new ExecutionError({ name: "codesOfConduct", result }); - } - }, - - /** - * @description Look up an enterprise by URL slug. - */ - - enterprise: async >( - variables: { invitationToken?: string; slug?: string }, - select: (t: EnterpriseSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "enterprise", - "query", - new SelectionSet([Query.enterprise(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "enterprise", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "enterprise", result }); - } else if (result.data) { - return result.data.enterprise; - } else { - throw new ExecutionError({ name: "enterprise", result }); - } - }, - - /** - * @description Look up a pending enterprise administrator invitation by invitee, enterprise and role. - */ - - enterpriseAdministratorInvitation: async >( - variables: { - enterpriseSlug?: string; - role?: EnterpriseAdministratorRole; - userLogin?: string; - }, - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet< - [Field<"enterpriseAdministratorInvitation", any, SelectionSet>] - > - > - >( - new Operation( - "enterpriseAdministratorInvitation", - "query", - new SelectionSet([ - Query.enterpriseAdministratorInvitation(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitation", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitation", - result, - }); - } else if (result.data) { - return result.data.enterpriseAdministratorInvitation; - } else { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitation", - result, - }); - } - }, - - /** - * @description Look up a pending enterprise administrator invitation by invitation token. - */ - - enterpriseAdministratorInvitationByToken: async < - T extends Array - >( - variables: { invitationToken?: string }, - select: (t: EnterpriseAdministratorInvitationSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet< - [ - Field< - "enterpriseAdministratorInvitationByToken", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "enterpriseAdministratorInvitationByToken", - "query", - new SelectionSet([ - Query.enterpriseAdministratorInvitationByToken( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitationByToken", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitationByToken", - result, - }); - } else if (result.data) { - return result.data.enterpriseAdministratorInvitationByToken; - } else { - throw new ExecutionError({ - name: "enterpriseAdministratorInvitationByToken", - result, - }); - } - }, - - /** - * @description Look up an open source license by its key - */ - - license: async >( - variables: { key?: string }, - select: (t: LicenseSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "license", - "query", - new SelectionSet([Query.license(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "license", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "license", result }); - } else if (result.data) { - return result.data.license; - } else { - throw new ExecutionError({ name: "license", result }); - } - }, - - /** - * @description Return a list of known open source licenses - */ - - licenses: async >( - select: (t: LicenseSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "licenses", - "query", - new SelectionSet([Query.licenses(select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "licenses", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "licenses", result }); - } else if (result.data) { - return result.data.licenses; - } else { - throw new ExecutionError({ name: "licenses", result }); - } - }, - - /** - * @description Get alphabetically sorted list of Marketplace categories - */ - - marketplaceCategories: async >( - variables: { - excludeEmpty?: boolean; - excludeSubcategories?: boolean; - includeCategories?: string; - }, - select: (t: MarketplaceCategorySelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"marketplaceCategories", any, SelectionSet>]> - > - >( - new Operation( - "marketplaceCategories", - "query", - new SelectionSet([ - Query.marketplaceCategories(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "marketplaceCategories", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "marketplaceCategories", result }); - } else if (result.data) { - return result.data.marketplaceCategories; - } else { - throw new ExecutionError({ name: "marketplaceCategories", result }); - } - }, - - /** - * @description Look up a Marketplace category by its slug. - */ - - marketplaceCategory: async >( - variables: { slug?: string; useTopicAliases?: boolean }, - select: (t: MarketplaceCategorySelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"marketplaceCategory", any, SelectionSet>]> - > - >( - new Operation( - "marketplaceCategory", - "query", - new SelectionSet([Query.marketplaceCategory(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "marketplaceCategory", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "marketplaceCategory", result }); - } else if (result.data) { - return result.data.marketplaceCategory; - } else { - throw new ExecutionError({ name: "marketplaceCategory", result }); - } - }, - - /** - * @description Look up a single Marketplace listing - */ - - marketplaceListing: async >( - variables: { slug?: string }, - select: (t: MarketplaceListingSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"marketplaceListing", any, SelectionSet>]> - > - >( - new Operation( - "marketplaceListing", - "query", - new SelectionSet([Query.marketplaceListing(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "marketplaceListing", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "marketplaceListing", result }); - } else if (result.data) { - return result.data.marketplaceListing; - } else { - throw new ExecutionError({ name: "marketplaceListing", result }); - } - }, - - /** - * @description Look up Marketplace listings - */ - - marketplaceListings: async >( - variables: { - adminId?: string; - after?: string; - allStates?: boolean; - before?: string; - categorySlug?: string; - first?: number; - last?: number; - organizationId?: string; - primaryCategoryOnly?: boolean; - slugs?: string; - useTopicAliases?: boolean; - viewerCanAdmin?: boolean; - withFreeTrialsOnly?: boolean; - }, - select: (t: MarketplaceListingConnectionSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"marketplaceListings", any, SelectionSet>]> - > - >( - new Operation( - "marketplaceListings", - "query", - new SelectionSet([Query.marketplaceListings(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "marketplaceListings", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "marketplaceListings", result }); - } else if (result.data) { - return result.data.marketplaceListings; - } else { - throw new ExecutionError({ name: "marketplaceListings", result }); - } - }, - - /** - * @description Return information about the GitHub instance - */ - - meta: async >( - select: (t: GitHubMetadataSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "meta", - "query", - new SelectionSet([Query.meta(select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "meta", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "meta", result }); - } else if (result.data) { - return result.data.meta; - } else { - throw new ExecutionError({ name: "meta", result }); - } - }, - - /** - * @description Fetches an object given its ID. - */ - - node: async >( - variables: { id?: string }, - select: (t: NodeSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "node", - "query", - new SelectionSet([Query.node(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "node", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "node", result }); - } else if (result.data) { - return result.data.node; - } else { - throw new ExecutionError({ name: "node", result }); - } - }, - - /** - * @description Lookup nodes by a list of IDs. - */ - - nodes: async >( - variables: { ids?: string }, - select: (t: NodeSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "nodes", - "query", - new SelectionSet([Query.nodes(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "nodes", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "nodes", result }); - } else if (result.data) { - return result.data.nodes; - } else { - throw new ExecutionError({ name: "nodes", result }); - } - }, - - /** - * @description Lookup a organization by login. - */ - - organization: async >( - variables: { login?: string }, - select: (t: OrganizationSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "organization", - "query", - new SelectionSet([Query.organization(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "organization", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "organization", result }); - } else if (result.data) { - return result.data.organization; - } else { - throw new ExecutionError({ name: "organization", result }); - } - }, - - /** - * @description The client's rate limit information. - */ - - rateLimit: async >( - variables: { dryRun?: boolean }, - select: (t: RateLimitSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "rateLimit", - "query", - new SelectionSet([Query.rateLimit(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "rateLimit", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "rateLimit", result }); - } else if (result.data) { - return result.data.rateLimit; - } else { - throw new ExecutionError({ name: "rateLimit", result }); - } - }, - - /** - * @description Hack to workaround https://github.com/facebook/relay/issues/112 re-exposing the root query object - */ - - relay: async >( - select: (t: QuerySelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "relay", - "query", - new SelectionSet([Query.relay(select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "relay", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "relay", result }); - } else if (result.data) { - return result.data.relay; - } else { - throw new ExecutionError({ name: "relay", result }); - } - }, - - /** - * @description Lookup a given repository by the owner and repository name. - */ - - repository: async >( - variables: { name?: string; owner?: string }, - select: (t: RepositorySelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "repository", - "query", - new SelectionSet([Query.repository(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "repository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "repository", result }); - } else if (result.data) { - return result.data.repository; - } else { - throw new ExecutionError({ name: "repository", result }); - } - }, - - /** - * @description Lookup a repository owner (ie. either a User or an Organization) by login. - */ - - repositoryOwner: async >( - variables: { login?: string }, - select: (t: RepositoryOwnerSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"repositoryOwner", any, SelectionSet>]> - > - >( - new Operation( - "repositoryOwner", - "query", - new SelectionSet([Query.repositoryOwner(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "repositoryOwner", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "repositoryOwner", result }); - } else if (result.data) { - return result.data.repositoryOwner; - } else { - throw new ExecutionError({ name: "repositoryOwner", result }); - } - }, - - /** - * @description Lookup resource by a URL. - */ - - resource: async >( - variables: { url?: unknown }, - select: (t: UniformResourceLocatableSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "resource", - "query", - new SelectionSet([Query.resource(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "resource", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "resource", result }); - } else if (result.data) { - return result.data.resource; - } else { - throw new ExecutionError({ name: "resource", result }); - } - }, - - /** - * @description Perform a search across resources. - */ - - search: async >( - variables: { - after?: string; - before?: string; - first?: number; - last?: number; - query?: string; - type?: SearchType; - }, - select: (t: SearchResultItemConnectionSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "search", - "query", - new SelectionSet([Query.search(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "search", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "search", result }); - } else if (result.data) { - return result.data.search; - } else { - throw new ExecutionError({ name: "search", result }); - } - }, - - /** - * @description GitHub Security Advisories - */ - - securityAdvisories: async >( - variables: { - after?: string; - before?: string; - first?: number; - identifier?: SecurityAdvisoryIdentifierFilter; - last?: number; - orderBy?: SecurityAdvisoryOrder; - publishedSince?: unknown; - updatedSince?: unknown; - }, - select: (t: SecurityAdvisoryConnectionSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"securityAdvisories", any, SelectionSet>]> - > - >( - new Operation( - "securityAdvisories", - "query", - new SelectionSet([Query.securityAdvisories(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "securityAdvisories", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "securityAdvisories", result }); - } else if (result.data) { - return result.data.securityAdvisories; - } else { - throw new ExecutionError({ name: "securityAdvisories", result }); - } - }, - - /** - * @description Fetch a Security Advisory by its GHSA ID - */ - - securityAdvisory: async >( - variables: { ghsaId?: string }, - select: (t: SecurityAdvisorySelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"securityAdvisory", any, SelectionSet>]> - > - >( - new Operation( - "securityAdvisory", - "query", - new SelectionSet([Query.securityAdvisory(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "securityAdvisory", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "securityAdvisory", result }); - } else if (result.data) { - return result.data.securityAdvisory; - } else { - throw new ExecutionError({ name: "securityAdvisory", result }); - } - }, - - /** - * @description Software Vulnerabilities documented by GitHub Security Advisories - */ - - securityVulnerabilities: async >( - variables: { - after?: string; - before?: string; - ecosystem?: SecurityAdvisoryEcosystem; - first?: number; - last?: number; - orderBy?: SecurityVulnerabilityOrder; - package?: string; - severities?: SecurityAdvisorySeverity; - }, - select: (t: SecurityVulnerabilityConnectionSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet< - [Field<"securityVulnerabilities", any, SelectionSet>] - > - > - >( - new Operation( - "securityVulnerabilities", - "query", - new SelectionSet([ - Query.securityVulnerabilities(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "securityVulnerabilities", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "securityVulnerabilities", result }); - } else if (result.data) { - return result.data.securityVulnerabilities; - } else { - throw new ExecutionError({ name: "securityVulnerabilities", result }); - } - }, - - /** - * @description Look up a single Sponsors Listing - * @deprecated `Query.sponsorsListing` will be removed. Use `Sponsorable.sponsorsListing` instead. Removal on 2020-04-01 UTC. - */ - - sponsorsListing: async >( - variables: { slug?: string }, - select: (t: SponsorsListingSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation< - SelectionSet<[Field<"sponsorsListing", any, SelectionSet>]> - > - >( - new Operation( - "sponsorsListing", - "query", - new SelectionSet([Query.sponsorsListing(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "sponsorsListing", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "sponsorsListing", result }); - } else if (result.data) { - return result.data.sponsorsListing; - } else { - throw new ExecutionError({ name: "sponsorsListing", result }); - } - }, - - /** - * @description Look up a topic by name. - */ - - topic: async >( - variables: { name?: string }, - select: (t: TopicSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "topic", - "query", - new SelectionSet([Query.topic(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "topic", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "topic", result }); - } else if (result.data) { - return result.data.topic; - } else { - throw new ExecutionError({ name: "topic", result }); - } - }, - - /** - * @description Lookup a user by login. - */ - - user: async >( - variables: { login?: string }, - select: (t: UserSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "user", - "query", - new SelectionSet([Query.user(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "user", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "user", result }); - } else if (result.data) { - return result.data.user; - } else { - throw new ExecutionError({ name: "user", result }); - } - }, - - /** - * @description The currently authenticated user. - */ - - viewer: async >( - select: (t: UserSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "viewer", - "query", - new SelectionSet([Query.viewer(select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "viewer", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "viewer", result }); - } else if (result.data) { - return result.data.viewer; - } else { - throw new ExecutionError({ name: "viewer", result }); - } - }, - }; - - public readonly mutate = { - /** - * @description Accepts a pending invitation for a user to become an administrator of an enterprise. - */ - - acceptEnterpriseAdministratorInvitation: async >( - variables: { input?: AcceptEnterpriseAdministratorInvitationInput }, - select: (t: AcceptEnterpriseAdministratorInvitationPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "acceptEnterpriseAdministratorInvitation", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "acceptEnterpriseAdministratorInvitation", - "mutation", - new SelectionSet([ - Mutation.acceptEnterpriseAdministratorInvitation( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "acceptEnterpriseAdministratorInvitation", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "acceptEnterpriseAdministratorInvitation", - result, - }); - } else if (result.data) { - return result.data.acceptEnterpriseAdministratorInvitation; - } else { - throw new ExecutionError({ - name: "acceptEnterpriseAdministratorInvitation", - result, - }); - } - }, - - /** - * @description Applies a suggested topic to the repository. - */ - - acceptTopicSuggestion: async >( - variables: { input?: AcceptTopicSuggestionInput }, - select: (t: AcceptTopicSuggestionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"acceptTopicSuggestion", any, SelectionSet>]> - > - >( - new Operation( - "acceptTopicSuggestion", - "mutation", - new SelectionSet([ - Mutation.acceptTopicSuggestion(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "acceptTopicSuggestion", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "acceptTopicSuggestion", result }); - } else if (result.data) { - return result.data.acceptTopicSuggestion; - } else { - throw new ExecutionError({ name: "acceptTopicSuggestion", result }); - } - }, - - /** - * @description Adds assignees to an assignable object. - */ - - addAssigneesToAssignable: async >( - variables: { input?: AddAssigneesToAssignableInput }, - select: (t: AddAssigneesToAssignablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"addAssigneesToAssignable", any, SelectionSet>] - > - > - >( - new Operation( - "addAssigneesToAssignable", - "mutation", - new SelectionSet([ - Mutation.addAssigneesToAssignable(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addAssigneesToAssignable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addAssigneesToAssignable", result }); - } else if (result.data) { - return result.data.addAssigneesToAssignable; - } else { - throw new ExecutionError({ name: "addAssigneesToAssignable", result }); - } - }, - - /** - * @description Adds a comment to an Issue or Pull Request. - */ - - addComment: async >( - variables: { input?: AddCommentInput }, - select: (t: AddCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "addComment", - "mutation", - new SelectionSet([Mutation.addComment(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addComment", result }); - } else if (result.data) { - return result.data.addComment; - } else { - throw new ExecutionError({ name: "addComment", result }); - } - }, - - /** - * @description Adds labels to a labelable object. - */ - - addLabelsToLabelable: async >( - variables: { input?: AddLabelsToLabelableInput }, - select: (t: AddLabelsToLabelablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"addLabelsToLabelable", any, SelectionSet>]> - > - >( - new Operation( - "addLabelsToLabelable", - "mutation", - new SelectionSet([ - Mutation.addLabelsToLabelable(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addLabelsToLabelable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addLabelsToLabelable", result }); - } else if (result.data) { - return result.data.addLabelsToLabelable; - } else { - throw new ExecutionError({ name: "addLabelsToLabelable", result }); - } - }, - - /** - * @description Adds a card to a ProjectColumn. Either `contentId` or `note` must be provided but **not** both. - */ - - addProjectCard: async >( - variables: { input?: AddProjectCardInput }, - select: (t: AddProjectCardPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"addProjectCard", any, SelectionSet>]> - > - >( - new Operation( - "addProjectCard", - "mutation", - new SelectionSet([Mutation.addProjectCard(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addProjectCard", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addProjectCard", result }); - } else if (result.data) { - return result.data.addProjectCard; - } else { - throw new ExecutionError({ name: "addProjectCard", result }); - } - }, - - /** - * @description Adds a column to a Project. - */ - - addProjectColumn: async >( - variables: { input?: AddProjectColumnInput }, - select: (t: AddProjectColumnPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"addProjectColumn", any, SelectionSet>]> - > - >( - new Operation( - "addProjectColumn", - "mutation", - new SelectionSet([Mutation.addProjectColumn(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addProjectColumn", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addProjectColumn", result }); - } else if (result.data) { - return result.data.addProjectColumn; - } else { - throw new ExecutionError({ name: "addProjectColumn", result }); - } - }, - - /** - * @description Adds a review to a Pull Request. - */ - - addPullRequestReview: async >( - variables: { input?: AddPullRequestReviewInput }, - select: (t: AddPullRequestReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"addPullRequestReview", any, SelectionSet>]> - > - >( - new Operation( - "addPullRequestReview", - "mutation", - new SelectionSet([ - Mutation.addPullRequestReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addPullRequestReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addPullRequestReview", result }); - } else if (result.data) { - return result.data.addPullRequestReview; - } else { - throw new ExecutionError({ name: "addPullRequestReview", result }); - } - }, - - /** - * @description Adds a comment to a review. - */ - - addPullRequestReviewComment: async >( - variables: { input?: AddPullRequestReviewCommentInput }, - select: (t: AddPullRequestReviewCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"addPullRequestReviewComment", any, SelectionSet>] - > - > - >( - new Operation( - "addPullRequestReviewComment", - "mutation", - new SelectionSet([ - Mutation.addPullRequestReviewComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addPullRequestReviewComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "addPullRequestReviewComment", - result, - }); - } else if (result.data) { - return result.data.addPullRequestReviewComment; - } else { - throw new ExecutionError({ - name: "addPullRequestReviewComment", - result, - }); - } - }, - - /** - * @description Adds a new thread to a pending Pull Request Review. - */ - - addPullRequestReviewThread: async >( - variables: { input?: AddPullRequestReviewThreadInput }, - select: (t: AddPullRequestReviewThreadPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"addPullRequestReviewThread", any, SelectionSet>] - > - > - >( - new Operation( - "addPullRequestReviewThread", - "mutation", - new SelectionSet([ - Mutation.addPullRequestReviewThread(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addPullRequestReviewThread", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "addPullRequestReviewThread", - result, - }); - } else if (result.data) { - return result.data.addPullRequestReviewThread; - } else { - throw new ExecutionError({ - name: "addPullRequestReviewThread", - result, - }); - } - }, - - /** - * @description Adds a reaction to a subject. - */ - - addReaction: async >( - variables: { input?: AddReactionInput }, - select: (t: AddReactionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "addReaction", - "mutation", - new SelectionSet([Mutation.addReaction(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "addReaction", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addReaction", result }); - } else if (result.data) { - return result.data.addReaction; - } else { - throw new ExecutionError({ name: "addReaction", result }); - } - }, - - /** - * @description Adds a star to a Starrable. - */ - - addStar: async >( - variables: { input?: AddStarInput }, - select: (t: AddStarPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "addStar", - "mutation", - new SelectionSet([Mutation.addStar(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "addStar", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "addStar", result }); - } else if (result.data) { - return result.data.addStar; - } else { - throw new ExecutionError({ name: "addStar", result }); - } - }, - - /** - * @description Marks a repository as archived. - */ - - archiveRepository: async >( - variables: { input?: ArchiveRepositoryInput }, - select: (t: ArchiveRepositoryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"archiveRepository", any, SelectionSet>]> - > - >( - new Operation( - "archiveRepository", - "mutation", - new SelectionSet([Mutation.archiveRepository(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "archiveRepository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "archiveRepository", result }); - } else if (result.data) { - return result.data.archiveRepository; - } else { - throw new ExecutionError({ name: "archiveRepository", result }); - } - }, - - /** - * @description Cancels a pending invitation for an administrator to join an enterprise. - */ - - cancelEnterpriseAdminInvitation: async >( - variables: { input?: CancelEnterpriseAdminInvitationInput }, - select: (t: CancelEnterpriseAdminInvitationPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"cancelEnterpriseAdminInvitation", any, SelectionSet>] - > - > - >( - new Operation( - "cancelEnterpriseAdminInvitation", - "mutation", - new SelectionSet([ - Mutation.cancelEnterpriseAdminInvitation(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "cancelEnterpriseAdminInvitation", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "cancelEnterpriseAdminInvitation", - result, - }); - } else if (result.data) { - return result.data.cancelEnterpriseAdminInvitation; - } else { - throw new ExecutionError({ - name: "cancelEnterpriseAdminInvitation", - result, - }); - } - }, - - /** - * @description Update your status on GitHub. - */ - - changeUserStatus: async >( - variables: { input?: ChangeUserStatusInput }, - select: (t: ChangeUserStatusPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"changeUserStatus", any, SelectionSet>]> - > - >( - new Operation( - "changeUserStatus", - "mutation", - new SelectionSet([Mutation.changeUserStatus(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "changeUserStatus", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "changeUserStatus", result }); - } else if (result.data) { - return result.data.changeUserStatus; - } else { - throw new ExecutionError({ name: "changeUserStatus", result }); - } - }, - - /** - * @description Clears all labels from a labelable object. - */ - - clearLabelsFromLabelable: async >( - variables: { input?: ClearLabelsFromLabelableInput }, - select: (t: ClearLabelsFromLabelablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"clearLabelsFromLabelable", any, SelectionSet>] - > - > - >( - new Operation( - "clearLabelsFromLabelable", - "mutation", - new SelectionSet([ - Mutation.clearLabelsFromLabelable(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "clearLabelsFromLabelable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "clearLabelsFromLabelable", result }); - } else if (result.data) { - return result.data.clearLabelsFromLabelable; - } else { - throw new ExecutionError({ name: "clearLabelsFromLabelable", result }); - } - }, - - /** - * @description Creates a new project by cloning configuration from an existing project. - */ - - cloneProject: async >( - variables: { input?: CloneProjectInput }, - select: (t: CloneProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "cloneProject", - "mutation", - new SelectionSet([Mutation.cloneProject(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "cloneProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "cloneProject", result }); - } else if (result.data) { - return result.data.cloneProject; - } else { - throw new ExecutionError({ name: "cloneProject", result }); - } - }, - - /** - * @description Create a new repository with the same files and directory structure as a template repository. - */ - - cloneTemplateRepository: async >( - variables: { input?: CloneTemplateRepositoryInput }, - select: (t: CloneTemplateRepositoryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"cloneTemplateRepository", any, SelectionSet>] - > - > - >( - new Operation( - "cloneTemplateRepository", - "mutation", - new SelectionSet([ - Mutation.cloneTemplateRepository(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "cloneTemplateRepository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "cloneTemplateRepository", result }); - } else if (result.data) { - return result.data.cloneTemplateRepository; - } else { - throw new ExecutionError({ name: "cloneTemplateRepository", result }); - } - }, - - /** - * @description Close an issue. - */ - - closeIssue: async >( - variables: { input?: CloseIssueInput }, - select: (t: CloseIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "closeIssue", - "mutation", - new SelectionSet([Mutation.closeIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "closeIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "closeIssue", result }); - } else if (result.data) { - return result.data.closeIssue; - } else { - throw new ExecutionError({ name: "closeIssue", result }); - } - }, - - /** - * @description Close a pull request. - */ - - closePullRequest: async >( - variables: { input?: ClosePullRequestInput }, - select: (t: ClosePullRequestPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"closePullRequest", any, SelectionSet>]> - > - >( - new Operation( - "closePullRequest", - "mutation", - new SelectionSet([Mutation.closePullRequest(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "closePullRequest", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "closePullRequest", result }); - } else if (result.data) { - return result.data.closePullRequest; - } else { - throw new ExecutionError({ name: "closePullRequest", result }); - } - }, - - /** - * @description Convert a project note card to one associated with a newly created issue. - */ - - convertProjectCardNoteToIssue: async >( - variables: { input?: ConvertProjectCardNoteToIssueInput }, - select: (t: ConvertProjectCardNoteToIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"convertProjectCardNoteToIssue", any, SelectionSet>] - > - > - >( - new Operation( - "convertProjectCardNoteToIssue", - "mutation", - new SelectionSet([ - Mutation.convertProjectCardNoteToIssue(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "convertProjectCardNoteToIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "convertProjectCardNoteToIssue", - result, - }); - } else if (result.data) { - return result.data.convertProjectCardNoteToIssue; - } else { - throw new ExecutionError({ - name: "convertProjectCardNoteToIssue", - result, - }); - } - }, - - /** - * @description Create a new branch protection rule - */ - - createBranchProtectionRule: async >( - variables: { input?: CreateBranchProtectionRuleInput }, - select: (t: CreateBranchProtectionRulePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"createBranchProtectionRule", any, SelectionSet>] - > - > - >( - new Operation( - "createBranchProtectionRule", - "mutation", - new SelectionSet([ - Mutation.createBranchProtectionRule(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createBranchProtectionRule", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "createBranchProtectionRule", - result, - }); - } else if (result.data) { - return result.data.createBranchProtectionRule; - } else { - throw new ExecutionError({ - name: "createBranchProtectionRule", - result, - }); - } - }, - - /** - * @description Create a check run. - */ - - createCheckRun: async >( - variables: { input?: CreateCheckRunInput }, - select: (t: CreateCheckRunPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createCheckRun", any, SelectionSet>]> - > - >( - new Operation( - "createCheckRun", - "mutation", - new SelectionSet([Mutation.createCheckRun(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createCheckRun", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createCheckRun", result }); - } else if (result.data) { - return result.data.createCheckRun; - } else { - throw new ExecutionError({ name: "createCheckRun", result }); - } - }, - - /** - * @description Create a check suite - */ - - createCheckSuite: async >( - variables: { input?: CreateCheckSuiteInput }, - select: (t: CreateCheckSuitePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createCheckSuite", any, SelectionSet>]> - > - >( - new Operation( - "createCheckSuite", - "mutation", - new SelectionSet([Mutation.createCheckSuite(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createCheckSuite", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createCheckSuite", result }); - } else if (result.data) { - return result.data.createCheckSuite; - } else { - throw new ExecutionError({ name: "createCheckSuite", result }); - } - }, - - /** - * @description Creates an organization as part of an enterprise account. - */ - - createEnterpriseOrganization: async >( - variables: { input?: CreateEnterpriseOrganizationInput }, - select: (t: CreateEnterpriseOrganizationPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"createEnterpriseOrganization", any, SelectionSet>] - > - > - >( - new Operation( - "createEnterpriseOrganization", - "mutation", - new SelectionSet([ - Mutation.createEnterpriseOrganization(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createEnterpriseOrganization", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "createEnterpriseOrganization", - result, - }); - } else if (result.data) { - return result.data.createEnterpriseOrganization; - } else { - throw new ExecutionError({ - name: "createEnterpriseOrganization", - result, - }); - } - }, - - /** - * @description Creates a new IP allow list entry. - */ - - createIpAllowListEntry: async >( - variables: { input?: CreateIpAllowListEntryInput }, - select: (t: CreateIpAllowListEntryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"createIpAllowListEntry", any, SelectionSet>] - > - > - >( - new Operation( - "createIpAllowListEntry", - "mutation", - new SelectionSet([ - Mutation.createIpAllowListEntry(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createIpAllowListEntry", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createIpAllowListEntry", result }); - } else if (result.data) { - return result.data.createIpAllowListEntry; - } else { - throw new ExecutionError({ name: "createIpAllowListEntry", result }); - } - }, - - /** - * @description Creates a new issue. - */ - - createIssue: async >( - variables: { input?: CreateIssueInput }, - select: (t: CreateIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "createIssue", - "mutation", - new SelectionSet([Mutation.createIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createIssue", result }); - } else if (result.data) { - return result.data.createIssue; - } else { - throw new ExecutionError({ name: "createIssue", result }); - } - }, - - /** - * @description Creates a new project. - */ - - createProject: async >( - variables: { input?: CreateProjectInput }, - select: (t: CreateProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createProject", any, SelectionSet>]> - > - >( - new Operation( - "createProject", - "mutation", - new SelectionSet([Mutation.createProject(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createProject", result }); - } else if (result.data) { - return result.data.createProject; - } else { - throw new ExecutionError({ name: "createProject", result }); - } - }, - - /** - * @description Create a new pull request - */ - - createPullRequest: async >( - variables: { input?: CreatePullRequestInput }, - select: (t: CreatePullRequestPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createPullRequest", any, SelectionSet>]> - > - >( - new Operation( - "createPullRequest", - "mutation", - new SelectionSet([Mutation.createPullRequest(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createPullRequest", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createPullRequest", result }); - } else if (result.data) { - return result.data.createPullRequest; - } else { - throw new ExecutionError({ name: "createPullRequest", result }); - } - }, - - /** - * @description Create a new Git Ref. - */ - - createRef: async >( - variables: { input?: CreateRefInput }, - select: (t: CreateRefPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "createRef", - "mutation", - new SelectionSet([Mutation.createRef(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createRef", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createRef", result }); - } else if (result.data) { - return result.data.createRef; - } else { - throw new ExecutionError({ name: "createRef", result }); - } - }, - - /** - * @description Create a new repository. - */ - - createRepository: async >( - variables: { input?: CreateRepositoryInput }, - select: (t: CreateRepositoryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createRepository", any, SelectionSet>]> - > - >( - new Operation( - "createRepository", - "mutation", - new SelectionSet([Mutation.createRepository(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createRepository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createRepository", result }); - } else if (result.data) { - return result.data.createRepository; - } else { - throw new ExecutionError({ name: "createRepository", result }); - } - }, - - /** - * @description Creates a new team discussion. - */ - - createTeamDiscussion: async >( - variables: { input?: CreateTeamDiscussionInput }, - select: (t: CreateTeamDiscussionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"createTeamDiscussion", any, SelectionSet>]> - > - >( - new Operation( - "createTeamDiscussion", - "mutation", - new SelectionSet([ - Mutation.createTeamDiscussion(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createTeamDiscussion", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createTeamDiscussion", result }); - } else if (result.data) { - return result.data.createTeamDiscussion; - } else { - throw new ExecutionError({ name: "createTeamDiscussion", result }); - } - }, - - /** - * @description Creates a new team discussion comment. - */ - - createTeamDiscussionComment: async >( - variables: { input?: CreateTeamDiscussionCommentInput }, - select: (t: CreateTeamDiscussionCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"createTeamDiscussionComment", any, SelectionSet>] - > - > - >( - new Operation( - "createTeamDiscussionComment", - "mutation", - new SelectionSet([ - Mutation.createTeamDiscussionComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createTeamDiscussionComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "createTeamDiscussionComment", - result, - }); - } else if (result.data) { - return result.data.createTeamDiscussionComment; - } else { - throw new ExecutionError({ - name: "createTeamDiscussionComment", - result, - }); - } - }, - - /** - * @description Rejects a suggested topic for the repository. - */ - - declineTopicSuggestion: async >( - variables: { input?: DeclineTopicSuggestionInput }, - select: (t: DeclineTopicSuggestionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"declineTopicSuggestion", any, SelectionSet>] - > - > - >( - new Operation( - "declineTopicSuggestion", - "mutation", - new SelectionSet([ - Mutation.declineTopicSuggestion(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "declineTopicSuggestion", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "declineTopicSuggestion", result }); - } else if (result.data) { - return result.data.declineTopicSuggestion; - } else { - throw new ExecutionError({ name: "declineTopicSuggestion", result }); - } - }, - - /** - * @description Delete a branch protection rule - */ - - deleteBranchProtectionRule: async >( - variables: { input?: DeleteBranchProtectionRuleInput }, - select: (t: DeleteBranchProtectionRulePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"deleteBranchProtectionRule", any, SelectionSet>] - > - > - >( - new Operation( - "deleteBranchProtectionRule", - "mutation", - new SelectionSet([ - Mutation.deleteBranchProtectionRule(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteBranchProtectionRule", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "deleteBranchProtectionRule", - result, - }); - } else if (result.data) { - return result.data.deleteBranchProtectionRule; - } else { - throw new ExecutionError({ - name: "deleteBranchProtectionRule", - result, - }); - } - }, - - /** - * @description Deletes a deployment. - */ - - deleteDeployment: async >( - variables: { input?: DeleteDeploymentInput }, - select: (t: DeleteDeploymentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteDeployment", any, SelectionSet>]> - > - >( - new Operation( - "deleteDeployment", - "mutation", - new SelectionSet([Mutation.deleteDeployment(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteDeployment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteDeployment", result }); - } else if (result.data) { - return result.data.deleteDeployment; - } else { - throw new ExecutionError({ name: "deleteDeployment", result }); - } - }, - - /** - * @description Deletes an IP allow list entry. - */ - - deleteIpAllowListEntry: async >( - variables: { input?: DeleteIpAllowListEntryInput }, - select: (t: DeleteIpAllowListEntryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"deleteIpAllowListEntry", any, SelectionSet>] - > - > - >( - new Operation( - "deleteIpAllowListEntry", - "mutation", - new SelectionSet([ - Mutation.deleteIpAllowListEntry(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteIpAllowListEntry", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteIpAllowListEntry", result }); - } else if (result.data) { - return result.data.deleteIpAllowListEntry; - } else { - throw new ExecutionError({ name: "deleteIpAllowListEntry", result }); - } - }, - - /** - * @description Deletes an Issue object. - */ - - deleteIssue: async >( - variables: { input?: DeleteIssueInput }, - select: (t: DeleteIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "deleteIssue", - "mutation", - new SelectionSet([Mutation.deleteIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteIssue", result }); - } else if (result.data) { - return result.data.deleteIssue; - } else { - throw new ExecutionError({ name: "deleteIssue", result }); - } - }, - - /** - * @description Deletes an IssueComment object. - */ - - deleteIssueComment: async >( - variables: { input?: DeleteIssueCommentInput }, - select: (t: DeleteIssueCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteIssueComment", any, SelectionSet>]> - > - >( - new Operation( - "deleteIssueComment", - "mutation", - new SelectionSet([ - Mutation.deleteIssueComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteIssueComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteIssueComment", result }); - } else if (result.data) { - return result.data.deleteIssueComment; - } else { - throw new ExecutionError({ name: "deleteIssueComment", result }); - } - }, - - /** - * @description Deletes a project. - */ - - deleteProject: async >( - variables: { input?: DeleteProjectInput }, - select: (t: DeleteProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteProject", any, SelectionSet>]> - > - >( - new Operation( - "deleteProject", - "mutation", - new SelectionSet([Mutation.deleteProject(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteProject", result }); - } else if (result.data) { - return result.data.deleteProject; - } else { - throw new ExecutionError({ name: "deleteProject", result }); - } - }, - - /** - * @description Deletes a project card. - */ - - deleteProjectCard: async >( - variables: { input?: DeleteProjectCardInput }, - select: (t: DeleteProjectCardPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteProjectCard", any, SelectionSet>]> - > - >( - new Operation( - "deleteProjectCard", - "mutation", - new SelectionSet([Mutation.deleteProjectCard(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteProjectCard", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteProjectCard", result }); - } else if (result.data) { - return result.data.deleteProjectCard; - } else { - throw new ExecutionError({ name: "deleteProjectCard", result }); - } - }, - - /** - * @description Deletes a project column. - */ - - deleteProjectColumn: async >( - variables: { input?: DeleteProjectColumnInput }, - select: (t: DeleteProjectColumnPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteProjectColumn", any, SelectionSet>]> - > - >( - new Operation( - "deleteProjectColumn", - "mutation", - new SelectionSet([ - Mutation.deleteProjectColumn(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteProjectColumn", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteProjectColumn", result }); - } else if (result.data) { - return result.data.deleteProjectColumn; - } else { - throw new ExecutionError({ name: "deleteProjectColumn", result }); - } - }, - - /** - * @description Deletes a pull request review. - */ - - deletePullRequestReview: async >( - variables: { input?: DeletePullRequestReviewInput }, - select: (t: DeletePullRequestReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"deletePullRequestReview", any, SelectionSet>] - > - > - >( - new Operation( - "deletePullRequestReview", - "mutation", - new SelectionSet([ - Mutation.deletePullRequestReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deletePullRequestReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deletePullRequestReview", result }); - } else if (result.data) { - return result.data.deletePullRequestReview; - } else { - throw new ExecutionError({ name: "deletePullRequestReview", result }); - } - }, - - /** - * @description Deletes a pull request review comment. - */ - - deletePullRequestReviewComment: async >( - variables: { input?: DeletePullRequestReviewCommentInput }, - select: (t: DeletePullRequestReviewCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"deletePullRequestReviewComment", any, SelectionSet>] - > - > - >( - new Operation( - "deletePullRequestReviewComment", - "mutation", - new SelectionSet([ - Mutation.deletePullRequestReviewComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deletePullRequestReviewComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "deletePullRequestReviewComment", - result, - }); - } else if (result.data) { - return result.data.deletePullRequestReviewComment; - } else { - throw new ExecutionError({ - name: "deletePullRequestReviewComment", - result, - }); - } - }, - - /** - * @description Delete a Git Ref. - */ - - deleteRef: async >( - variables: { input?: DeleteRefInput }, - select: (t: DeleteRefPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "deleteRef", - "mutation", - new SelectionSet([Mutation.deleteRef(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteRef", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteRef", result }); - } else if (result.data) { - return result.data.deleteRef; - } else { - throw new ExecutionError({ name: "deleteRef", result }); - } - }, - - /** - * @description Deletes a team discussion. - */ - - deleteTeamDiscussion: async >( - variables: { input?: DeleteTeamDiscussionInput }, - select: (t: DeleteTeamDiscussionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"deleteTeamDiscussion", any, SelectionSet>]> - > - >( - new Operation( - "deleteTeamDiscussion", - "mutation", - new SelectionSet([ - Mutation.deleteTeamDiscussion(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteTeamDiscussion", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "deleteTeamDiscussion", result }); - } else if (result.data) { - return result.data.deleteTeamDiscussion; - } else { - throw new ExecutionError({ name: "deleteTeamDiscussion", result }); - } - }, - - /** - * @description Deletes a team discussion comment. - */ - - deleteTeamDiscussionComment: async >( - variables: { input?: DeleteTeamDiscussionCommentInput }, - select: (t: DeleteTeamDiscussionCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"deleteTeamDiscussionComment", any, SelectionSet>] - > - > - >( - new Operation( - "deleteTeamDiscussionComment", - "mutation", - new SelectionSet([ - Mutation.deleteTeamDiscussionComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "deleteTeamDiscussionComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "deleteTeamDiscussionComment", - result, - }); - } else if (result.data) { - return result.data.deleteTeamDiscussionComment; - } else { - throw new ExecutionError({ - name: "deleteTeamDiscussionComment", - result, - }); - } - }, - - /** - * @description Dismisses an approved or rejected pull request review. - */ - - dismissPullRequestReview: async >( - variables: { input?: DismissPullRequestReviewInput }, - select: (t: DismissPullRequestReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"dismissPullRequestReview", any, SelectionSet>] - > - > - >( - new Operation( - "dismissPullRequestReview", - "mutation", - new SelectionSet([ - Mutation.dismissPullRequestReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "dismissPullRequestReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "dismissPullRequestReview", result }); - } else if (result.data) { - return result.data.dismissPullRequestReview; - } else { - throw new ExecutionError({ name: "dismissPullRequestReview", result }); - } - }, - - /** - * @description Follow a user. - */ - - followUser: async >( - variables: { input?: FollowUserInput }, - select: (t: FollowUserPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "followUser", - "mutation", - new SelectionSet([Mutation.followUser(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "followUser", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "followUser", result }); - } else if (result.data) { - return result.data.followUser; - } else { - throw new ExecutionError({ name: "followUser", result }); - } - }, - - /** - * @description Invite someone to become an administrator of the enterprise. - */ - - inviteEnterpriseAdmin: async >( - variables: { input?: InviteEnterpriseAdminInput }, - select: (t: InviteEnterpriseAdminPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"inviteEnterpriseAdmin", any, SelectionSet>]> - > - >( - new Operation( - "inviteEnterpriseAdmin", - "mutation", - new SelectionSet([ - Mutation.inviteEnterpriseAdmin(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "inviteEnterpriseAdmin", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "inviteEnterpriseAdmin", result }); - } else if (result.data) { - return result.data.inviteEnterpriseAdmin; - } else { - throw new ExecutionError({ name: "inviteEnterpriseAdmin", result }); - } - }, - - /** - * @description Creates a repository link for a project. - */ - - linkRepositoryToProject: async >( - variables: { input?: LinkRepositoryToProjectInput }, - select: (t: LinkRepositoryToProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"linkRepositoryToProject", any, SelectionSet>] - > - > - >( - new Operation( - "linkRepositoryToProject", - "mutation", - new SelectionSet([ - Mutation.linkRepositoryToProject(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "linkRepositoryToProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "linkRepositoryToProject", result }); - } else if (result.data) { - return result.data.linkRepositoryToProject; - } else { - throw new ExecutionError({ name: "linkRepositoryToProject", result }); - } - }, - - /** - * @description Lock a lockable object - */ - - lockLockable: async >( - variables: { input?: LockLockableInput }, - select: (t: LockLockablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "lockLockable", - "mutation", - new SelectionSet([Mutation.lockLockable(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "lockLockable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "lockLockable", result }); - } else if (result.data) { - return result.data.lockLockable; - } else { - throw new ExecutionError({ name: "lockLockable", result }); - } - }, - - /** - * @description Mark a pull request file as viewed - */ - - markFileAsViewed: async >( - variables: { input?: MarkFileAsViewedInput }, - select: (t: MarkFileAsViewedPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"markFileAsViewed", any, SelectionSet>]> - > - >( - new Operation( - "markFileAsViewed", - "mutation", - new SelectionSet([Mutation.markFileAsViewed(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "markFileAsViewed", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "markFileAsViewed", result }); - } else if (result.data) { - return result.data.markFileAsViewed; - } else { - throw new ExecutionError({ name: "markFileAsViewed", result }); - } - }, - - /** - * @description Marks a pull request ready for review. - */ - - markPullRequestReadyForReview: async >( - variables: { input?: MarkPullRequestReadyForReviewInput }, - select: (t: MarkPullRequestReadyForReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"markPullRequestReadyForReview", any, SelectionSet>] - > - > - >( - new Operation( - "markPullRequestReadyForReview", - "mutation", - new SelectionSet([ - Mutation.markPullRequestReadyForReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "markPullRequestReadyForReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "markPullRequestReadyForReview", - result, - }); - } else if (result.data) { - return result.data.markPullRequestReadyForReview; - } else { - throw new ExecutionError({ - name: "markPullRequestReadyForReview", - result, - }); - } - }, - - /** - * @description Merge a head into a branch. - */ - - mergeBranch: async >( - variables: { input?: MergeBranchInput }, - select: (t: MergeBranchPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "mergeBranch", - "mutation", - new SelectionSet([Mutation.mergeBranch(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "mergeBranch", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "mergeBranch", result }); - } else if (result.data) { - return result.data.mergeBranch; - } else { - throw new ExecutionError({ name: "mergeBranch", result }); - } - }, - - /** - * @description Merge a pull request. - */ - - mergePullRequest: async >( - variables: { input?: MergePullRequestInput }, - select: (t: MergePullRequestPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"mergePullRequest", any, SelectionSet>]> - > - >( - new Operation( - "mergePullRequest", - "mutation", - new SelectionSet([Mutation.mergePullRequest(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "mergePullRequest", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "mergePullRequest", result }); - } else if (result.data) { - return result.data.mergePullRequest; - } else { - throw new ExecutionError({ name: "mergePullRequest", result }); - } - }, - - /** - * @description Minimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - minimizeComment: async >( - variables: { input?: MinimizeCommentInput }, - select: (t: MinimizeCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"minimizeComment", any, SelectionSet>]> - > - >( - new Operation( - "minimizeComment", - "mutation", - new SelectionSet([Mutation.minimizeComment(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "minimizeComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "minimizeComment", result }); - } else if (result.data) { - return result.data.minimizeComment; - } else { - throw new ExecutionError({ name: "minimizeComment", result }); - } - }, - - /** - * @description Moves a project card to another place. - */ - - moveProjectCard: async >( - variables: { input?: MoveProjectCardInput }, - select: (t: MoveProjectCardPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"moveProjectCard", any, SelectionSet>]> - > - >( - new Operation( - "moveProjectCard", - "mutation", - new SelectionSet([Mutation.moveProjectCard(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "moveProjectCard", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "moveProjectCard", result }); - } else if (result.data) { - return result.data.moveProjectCard; - } else { - throw new ExecutionError({ name: "moveProjectCard", result }); - } - }, - - /** - * @description Moves a project column to another place. - */ - - moveProjectColumn: async >( - variables: { input?: MoveProjectColumnInput }, - select: (t: MoveProjectColumnPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"moveProjectColumn", any, SelectionSet>]> - > - >( - new Operation( - "moveProjectColumn", - "mutation", - new SelectionSet([Mutation.moveProjectColumn(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "moveProjectColumn", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "moveProjectColumn", result }); - } else if (result.data) { - return result.data.moveProjectColumn; - } else { - throw new ExecutionError({ name: "moveProjectColumn", result }); - } - }, - - /** - * @description Regenerates the identity provider recovery codes for an enterprise - */ - - regenerateEnterpriseIdentityProviderRecoveryCodes: async < - T extends Array - >( - variables: { - input?: RegenerateEnterpriseIdentityProviderRecoveryCodesInput; - }, - select: ( - t: RegenerateEnterpriseIdentityProviderRecoveryCodesPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "regenerateEnterpriseIdentityProviderRecoveryCodes", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "regenerateEnterpriseIdentityProviderRecoveryCodes", - "mutation", - new SelectionSet([ - Mutation.regenerateEnterpriseIdentityProviderRecoveryCodes( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "regenerateEnterpriseIdentityProviderRecoveryCodes", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "regenerateEnterpriseIdentityProviderRecoveryCodes", - result, - }); - } else if (result.data) { - return result.data.regenerateEnterpriseIdentityProviderRecoveryCodes; - } else { - throw new ExecutionError({ - name: "regenerateEnterpriseIdentityProviderRecoveryCodes", - result, - }); - } - }, - - /** - * @description Removes assignees from an assignable object. - */ - - removeAssigneesFromAssignable: async >( - variables: { input?: RemoveAssigneesFromAssignableInput }, - select: (t: RemoveAssigneesFromAssignablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"removeAssigneesFromAssignable", any, SelectionSet>] - > - > - >( - new Operation( - "removeAssigneesFromAssignable", - "mutation", - new SelectionSet([ - Mutation.removeAssigneesFromAssignable(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeAssigneesFromAssignable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "removeAssigneesFromAssignable", - result, - }); - } else if (result.data) { - return result.data.removeAssigneesFromAssignable; - } else { - throw new ExecutionError({ - name: "removeAssigneesFromAssignable", - result, - }); - } - }, - - /** - * @description Removes an administrator from the enterprise. - */ - - removeEnterpriseAdmin: async >( - variables: { input?: RemoveEnterpriseAdminInput }, - select: (t: RemoveEnterpriseAdminPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"removeEnterpriseAdmin", any, SelectionSet>]> - > - >( - new Operation( - "removeEnterpriseAdmin", - "mutation", - new SelectionSet([ - Mutation.removeEnterpriseAdmin(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeEnterpriseAdmin", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "removeEnterpriseAdmin", result }); - } else if (result.data) { - return result.data.removeEnterpriseAdmin; - } else { - throw new ExecutionError({ name: "removeEnterpriseAdmin", result }); - } - }, - - /** - * @description Removes the identity provider from an enterprise - */ - - removeEnterpriseIdentityProvider: async >( - variables: { input?: RemoveEnterpriseIdentityProviderInput }, - select: (t: RemoveEnterpriseIdentityProviderPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"removeEnterpriseIdentityProvider", any, SelectionSet>] - > - > - >( - new Operation( - "removeEnterpriseIdentityProvider", - "mutation", - new SelectionSet([ - Mutation.removeEnterpriseIdentityProvider(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeEnterpriseIdentityProvider", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "removeEnterpriseIdentityProvider", - result, - }); - } else if (result.data) { - return result.data.removeEnterpriseIdentityProvider; - } else { - throw new ExecutionError({ - name: "removeEnterpriseIdentityProvider", - result, - }); - } - }, - - /** - * @description Removes an organization from the enterprise - */ - - removeEnterpriseOrganization: async >( - variables: { input?: RemoveEnterpriseOrganizationInput }, - select: (t: RemoveEnterpriseOrganizationPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"removeEnterpriseOrganization", any, SelectionSet>] - > - > - >( - new Operation( - "removeEnterpriseOrganization", - "mutation", - new SelectionSet([ - Mutation.removeEnterpriseOrganization(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeEnterpriseOrganization", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "removeEnterpriseOrganization", - result, - }); - } else if (result.data) { - return result.data.removeEnterpriseOrganization; - } else { - throw new ExecutionError({ - name: "removeEnterpriseOrganization", - result, - }); - } - }, - - /** - * @description Removes labels from a Labelable object. - */ - - removeLabelsFromLabelable: async >( - variables: { input?: RemoveLabelsFromLabelableInput }, - select: (t: RemoveLabelsFromLabelablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"removeLabelsFromLabelable", any, SelectionSet>] - > - > - >( - new Operation( - "removeLabelsFromLabelable", - "mutation", - new SelectionSet([ - Mutation.removeLabelsFromLabelable(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeLabelsFromLabelable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "removeLabelsFromLabelable", result }); - } else if (result.data) { - return result.data.removeLabelsFromLabelable; - } else { - throw new ExecutionError({ name: "removeLabelsFromLabelable", result }); - } - }, - - /** - * @description Removes outside collaborator from all repositories in an organization. - */ - - removeOutsideCollaborator: async >( - variables: { input?: RemoveOutsideCollaboratorInput }, - select: (t: RemoveOutsideCollaboratorPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"removeOutsideCollaborator", any, SelectionSet>] - > - > - >( - new Operation( - "removeOutsideCollaborator", - "mutation", - new SelectionSet([ - Mutation.removeOutsideCollaborator(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeOutsideCollaborator", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "removeOutsideCollaborator", result }); - } else if (result.data) { - return result.data.removeOutsideCollaborator; - } else { - throw new ExecutionError({ name: "removeOutsideCollaborator", result }); - } - }, - - /** - * @description Removes a reaction from a subject. - */ - - removeReaction: async >( - variables: { input?: RemoveReactionInput }, - select: (t: RemoveReactionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"removeReaction", any, SelectionSet>]> - > - >( - new Operation( - "removeReaction", - "mutation", - new SelectionSet([Mutation.removeReaction(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeReaction", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "removeReaction", result }); - } else if (result.data) { - return result.data.removeReaction; - } else { - throw new ExecutionError({ name: "removeReaction", result }); - } - }, - - /** - * @description Removes a star from a Starrable. - */ - - removeStar: async >( - variables: { input?: RemoveStarInput }, - select: (t: RemoveStarPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "removeStar", - "mutation", - new SelectionSet([Mutation.removeStar(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "removeStar", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "removeStar", result }); - } else if (result.data) { - return result.data.removeStar; - } else { - throw new ExecutionError({ name: "removeStar", result }); - } - }, - - /** - * @description Reopen a issue. - */ - - reopenIssue: async >( - variables: { input?: ReopenIssueInput }, - select: (t: ReopenIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "reopenIssue", - "mutation", - new SelectionSet([Mutation.reopenIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "reopenIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "reopenIssue", result }); - } else if (result.data) { - return result.data.reopenIssue; - } else { - throw new ExecutionError({ name: "reopenIssue", result }); - } - }, - - /** - * @description Reopen a pull request. - */ - - reopenPullRequest: async >( - variables: { input?: ReopenPullRequestInput }, - select: (t: ReopenPullRequestPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"reopenPullRequest", any, SelectionSet>]> - > - >( - new Operation( - "reopenPullRequest", - "mutation", - new SelectionSet([Mutation.reopenPullRequest(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "reopenPullRequest", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "reopenPullRequest", result }); - } else if (result.data) { - return result.data.reopenPullRequest; - } else { - throw new ExecutionError({ name: "reopenPullRequest", result }); - } - }, - - /** - * @description Set review requests on a pull request. - */ - - requestReviews: async >( - variables: { input?: RequestReviewsInput }, - select: (t: RequestReviewsPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"requestReviews", any, SelectionSet>]> - > - >( - new Operation( - "requestReviews", - "mutation", - new SelectionSet([Mutation.requestReviews(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "requestReviews", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "requestReviews", result }); - } else if (result.data) { - return result.data.requestReviews; - } else { - throw new ExecutionError({ name: "requestReviews", result }); - } - }, - - /** - * @description Rerequests an existing check suite. - */ - - rerequestCheckSuite: async >( - variables: { input?: RerequestCheckSuiteInput }, - select: (t: RerequestCheckSuitePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"rerequestCheckSuite", any, SelectionSet>]> - > - >( - new Operation( - "rerequestCheckSuite", - "mutation", - new SelectionSet([ - Mutation.rerequestCheckSuite(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "rerequestCheckSuite", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "rerequestCheckSuite", result }); - } else if (result.data) { - return result.data.rerequestCheckSuite; - } else { - throw new ExecutionError({ name: "rerequestCheckSuite", result }); - } - }, - - /** - * @description Marks a review thread as resolved. - */ - - resolveReviewThread: async >( - variables: { input?: ResolveReviewThreadInput }, - select: (t: ResolveReviewThreadPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"resolveReviewThread", any, SelectionSet>]> - > - >( - new Operation( - "resolveReviewThread", - "mutation", - new SelectionSet([ - Mutation.resolveReviewThread(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "resolveReviewThread", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "resolveReviewThread", result }); - } else if (result.data) { - return result.data.resolveReviewThread; - } else { - throw new ExecutionError({ name: "resolveReviewThread", result }); - } - }, - - /** - * @description Creates or updates the identity provider for an enterprise. - */ - - setEnterpriseIdentityProvider: async >( - variables: { input?: SetEnterpriseIdentityProviderInput }, - select: (t: SetEnterpriseIdentityProviderPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"setEnterpriseIdentityProvider", any, SelectionSet>] - > - > - >( - new Operation( - "setEnterpriseIdentityProvider", - "mutation", - new SelectionSet([ - Mutation.setEnterpriseIdentityProvider(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "setEnterpriseIdentityProvider", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "setEnterpriseIdentityProvider", - result, - }); - } else if (result.data) { - return result.data.setEnterpriseIdentityProvider; - } else { - throw new ExecutionError({ - name: "setEnterpriseIdentityProvider", - result, - }); - } - }, - - /** - * @description Set an organization level interaction limit for an organization's public repositories. - */ - - setOrganizationInteractionLimit: async >( - variables: { input?: SetOrganizationInteractionLimitInput }, - select: (t: SetOrganizationInteractionLimitPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"setOrganizationInteractionLimit", any, SelectionSet>] - > - > - >( - new Operation( - "setOrganizationInteractionLimit", - "mutation", - new SelectionSet([ - Mutation.setOrganizationInteractionLimit(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "setOrganizationInteractionLimit", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "setOrganizationInteractionLimit", - result, - }); - } else if (result.data) { - return result.data.setOrganizationInteractionLimit; - } else { - throw new ExecutionError({ - name: "setOrganizationInteractionLimit", - result, - }); - } - }, - - /** - * @description Sets an interaction limit setting for a repository. - */ - - setRepositoryInteractionLimit: async >( - variables: { input?: SetRepositoryInteractionLimitInput }, - select: (t: SetRepositoryInteractionLimitPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"setRepositoryInteractionLimit", any, SelectionSet>] - > - > - >( - new Operation( - "setRepositoryInteractionLimit", - "mutation", - new SelectionSet([ - Mutation.setRepositoryInteractionLimit(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "setRepositoryInteractionLimit", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "setRepositoryInteractionLimit", - result, - }); - } else if (result.data) { - return result.data.setRepositoryInteractionLimit; - } else { - throw new ExecutionError({ - name: "setRepositoryInteractionLimit", - result, - }); - } - }, - - /** - * @description Set a user level interaction limit for an user's public repositories. - */ - - setUserInteractionLimit: async >( - variables: { input?: SetUserInteractionLimitInput }, - select: (t: SetUserInteractionLimitPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"setUserInteractionLimit", any, SelectionSet>] - > - > - >( - new Operation( - "setUserInteractionLimit", - "mutation", - new SelectionSet([ - Mutation.setUserInteractionLimit(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "setUserInteractionLimit", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "setUserInteractionLimit", result }); - } else if (result.data) { - return result.data.setUserInteractionLimit; - } else { - throw new ExecutionError({ name: "setUserInteractionLimit", result }); - } - }, - - /** - * @description Submits a pending pull request review. - */ - - submitPullRequestReview: async >( - variables: { input?: SubmitPullRequestReviewInput }, - select: (t: SubmitPullRequestReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"submitPullRequestReview", any, SelectionSet>] - > - > - >( - new Operation( - "submitPullRequestReview", - "mutation", - new SelectionSet([ - Mutation.submitPullRequestReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "submitPullRequestReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "submitPullRequestReview", result }); - } else if (result.data) { - return result.data.submitPullRequestReview; - } else { - throw new ExecutionError({ name: "submitPullRequestReview", result }); - } - }, - - /** - * @description Transfer an issue to a different repository - */ - - transferIssue: async >( - variables: { input?: TransferIssueInput }, - select: (t: TransferIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"transferIssue", any, SelectionSet>]> - > - >( - new Operation( - "transferIssue", - "mutation", - new SelectionSet([Mutation.transferIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "transferIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "transferIssue", result }); - } else if (result.data) { - return result.data.transferIssue; - } else { - throw new ExecutionError({ name: "transferIssue", result }); - } - }, - - /** - * @description Unarchives a repository. - */ - - unarchiveRepository: async >( - variables: { input?: UnarchiveRepositoryInput }, - select: (t: UnarchiveRepositoryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"unarchiveRepository", any, SelectionSet>]> - > - >( - new Operation( - "unarchiveRepository", - "mutation", - new SelectionSet([ - Mutation.unarchiveRepository(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unarchiveRepository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unarchiveRepository", result }); - } else if (result.data) { - return result.data.unarchiveRepository; - } else { - throw new ExecutionError({ name: "unarchiveRepository", result }); - } - }, - - /** - * @description Unfollow a user. - */ - - unfollowUser: async >( - variables: { input?: UnfollowUserInput }, - select: (t: UnfollowUserPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "unfollowUser", - "mutation", - new SelectionSet([Mutation.unfollowUser(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unfollowUser", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unfollowUser", result }); - } else if (result.data) { - return result.data.unfollowUser; - } else { - throw new ExecutionError({ name: "unfollowUser", result }); - } - }, - - /** - * @description Deletes a repository link from a project. - */ - - unlinkRepositoryFromProject: async >( - variables: { input?: UnlinkRepositoryFromProjectInput }, - select: (t: UnlinkRepositoryFromProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"unlinkRepositoryFromProject", any, SelectionSet>] - > - > - >( - new Operation( - "unlinkRepositoryFromProject", - "mutation", - new SelectionSet([ - Mutation.unlinkRepositoryFromProject(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unlinkRepositoryFromProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "unlinkRepositoryFromProject", - result, - }); - } else if (result.data) { - return result.data.unlinkRepositoryFromProject; - } else { - throw new ExecutionError({ - name: "unlinkRepositoryFromProject", - result, - }); - } - }, - - /** - * @description Unlock a lockable object - */ - - unlockLockable: async >( - variables: { input?: UnlockLockableInput }, - select: (t: UnlockLockablePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"unlockLockable", any, SelectionSet>]> - > - >( - new Operation( - "unlockLockable", - "mutation", - new SelectionSet([Mutation.unlockLockable(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unlockLockable", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unlockLockable", result }); - } else if (result.data) { - return result.data.unlockLockable; - } else { - throw new ExecutionError({ name: "unlockLockable", result }); - } - }, - - /** - * @description Unmark a pull request file as viewed - */ - - unmarkFileAsViewed: async >( - variables: { input?: UnmarkFileAsViewedInput }, - select: (t: UnmarkFileAsViewedPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"unmarkFileAsViewed", any, SelectionSet>]> - > - >( - new Operation( - "unmarkFileAsViewed", - "mutation", - new SelectionSet([ - Mutation.unmarkFileAsViewed(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unmarkFileAsViewed", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unmarkFileAsViewed", result }); - } else if (result.data) { - return result.data.unmarkFileAsViewed; - } else { - throw new ExecutionError({ name: "unmarkFileAsViewed", result }); - } - }, - - /** - * @description Unmark an issue as a duplicate of another issue. - */ - - unmarkIssueAsDuplicate: async >( - variables: { input?: UnmarkIssueAsDuplicateInput }, - select: (t: UnmarkIssueAsDuplicatePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"unmarkIssueAsDuplicate", any, SelectionSet>] - > - > - >( - new Operation( - "unmarkIssueAsDuplicate", - "mutation", - new SelectionSet([ - Mutation.unmarkIssueAsDuplicate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unmarkIssueAsDuplicate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unmarkIssueAsDuplicate", result }); - } else if (result.data) { - return result.data.unmarkIssueAsDuplicate; - } else { - throw new ExecutionError({ name: "unmarkIssueAsDuplicate", result }); - } - }, - - /** - * @description Unminimizes a comment on an Issue, Commit, Pull Request, or Gist - */ - - unminimizeComment: async >( - variables: { input?: UnminimizeCommentInput }, - select: (t: UnminimizeCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"unminimizeComment", any, SelectionSet>]> - > - >( - new Operation( - "unminimizeComment", - "mutation", - new SelectionSet([Mutation.unminimizeComment(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unminimizeComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unminimizeComment", result }); - } else if (result.data) { - return result.data.unminimizeComment; - } else { - throw new ExecutionError({ name: "unminimizeComment", result }); - } - }, - - /** - * @description Marks a review thread as unresolved. - */ - - unresolveReviewThread: async >( - variables: { input?: UnresolveReviewThreadInput }, - select: (t: UnresolveReviewThreadPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"unresolveReviewThread", any, SelectionSet>]> - > - >( - new Operation( - "unresolveReviewThread", - "mutation", - new SelectionSet([ - Mutation.unresolveReviewThread(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "unresolveReviewThread", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "unresolveReviewThread", result }); - } else if (result.data) { - return result.data.unresolveReviewThread; - } else { - throw new ExecutionError({ name: "unresolveReviewThread", result }); - } - }, - - /** - * @description Create a new branch protection rule - */ - - updateBranchProtectionRule: async >( - variables: { input?: UpdateBranchProtectionRuleInput }, - select: (t: UpdateBranchProtectionRulePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateBranchProtectionRule", any, SelectionSet>] - > - > - >( - new Operation( - "updateBranchProtectionRule", - "mutation", - new SelectionSet([ - Mutation.updateBranchProtectionRule(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateBranchProtectionRule", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateBranchProtectionRule", - result, - }); - } else if (result.data) { - return result.data.updateBranchProtectionRule; - } else { - throw new ExecutionError({ - name: "updateBranchProtectionRule", - result, - }); - } - }, - - /** - * @description Update a check run - */ - - updateCheckRun: async >( - variables: { input?: UpdateCheckRunInput }, - select: (t: UpdateCheckRunPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateCheckRun", any, SelectionSet>]> - > - >( - new Operation( - "updateCheckRun", - "mutation", - new SelectionSet([Mutation.updateCheckRun(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateCheckRun", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateCheckRun", result }); - } else if (result.data) { - return result.data.updateCheckRun; - } else { - throw new ExecutionError({ name: "updateCheckRun", result }); - } - }, - - /** - * @description Modifies the settings of an existing check suite - */ - - updateCheckSuitePreferences: async >( - variables: { input?: UpdateCheckSuitePreferencesInput }, - select: (t: UpdateCheckSuitePreferencesPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateCheckSuitePreferences", any, SelectionSet>] - > - > - >( - new Operation( - "updateCheckSuitePreferences", - "mutation", - new SelectionSet([ - Mutation.updateCheckSuitePreferences(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateCheckSuitePreferences", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateCheckSuitePreferences", - result, - }); - } else if (result.data) { - return result.data.updateCheckSuitePreferences; - } else { - throw new ExecutionError({ - name: "updateCheckSuitePreferences", - result, - }); - } - }, - - /** - * @description Updates the role of an enterprise administrator. - */ - - updateEnterpriseAdministratorRole: async >( - variables: { input?: UpdateEnterpriseAdministratorRoleInput }, - select: (t: UpdateEnterpriseAdministratorRolePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateEnterpriseAdministratorRole", any, SelectionSet>] - > - > - >( - new Operation( - "updateEnterpriseAdministratorRole", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseAdministratorRole(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseAdministratorRole", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseAdministratorRole", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseAdministratorRole; - } else { - throw new ExecutionError({ - name: "updateEnterpriseAdministratorRole", - result, - }); - } - }, - - /** - * @description Sets whether private repository forks are enabled for an enterprise. - */ - - updateEnterpriseAllowPrivateRepositoryForkingSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput; - }, - select: ( - t: UpdateEnterpriseAllowPrivateRepositoryForkingSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseAllowPrivateRepositoryForkingSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseAllowPrivateRepositoryForkingSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseAllowPrivateRepositoryForkingSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseAllowPrivateRepositoryForkingSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseAllowPrivateRepositoryForkingSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseAllowPrivateRepositoryForkingSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseAllowPrivateRepositoryForkingSetting", - result, - }); - } - }, - - /** - * @description Sets the default repository permission for organizations in an enterprise. - */ - - updateEnterpriseDefaultRepositoryPermissionSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseDefaultRepositoryPermissionSettingInput; - }, - select: ( - t: UpdateEnterpriseDefaultRepositoryPermissionSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseDefaultRepositoryPermissionSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseDefaultRepositoryPermissionSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseDefaultRepositoryPermissionSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseDefaultRepositoryPermissionSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseDefaultRepositoryPermissionSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseDefaultRepositoryPermissionSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseDefaultRepositoryPermissionSetting", - result, - }); - } - }, - - /** - * @description Sets whether organization members with admin permissions on a repository can change repository visibility. - */ - - updateEnterpriseMembersCanChangeRepositoryVisibilitySetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanChangeRepositoryVisibilitySettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanChangeRepositoryVisibilitySetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - result, - }); - } else if (result.data) { - return result.data - .updateEnterpriseMembersCanChangeRepositoryVisibilitySetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanChangeRepositoryVisibilitySetting", - result, - }); - } - }, - - /** - * @description Sets the members can create repositories setting for an enterprise. - */ - - updateEnterpriseMembersCanCreateRepositoriesSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanCreateRepositoriesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanCreateRepositoriesSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanCreateRepositoriesSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanCreateRepositoriesSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanCreateRepositoriesSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanCreateRepositoriesSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanCreateRepositoriesSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseMembersCanCreateRepositoriesSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanCreateRepositoriesSetting", - result, - }); - } - }, - - /** - * @description Sets the members can delete issues setting for an enterprise. - */ - - updateEnterpriseMembersCanDeleteIssuesSetting: async < - T extends Array - >( - variables: { input?: UpdateEnterpriseMembersCanDeleteIssuesSettingInput }, - select: ( - t: UpdateEnterpriseMembersCanDeleteIssuesSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanDeleteIssuesSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanDeleteIssuesSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanDeleteIssuesSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteIssuesSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteIssuesSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseMembersCanDeleteIssuesSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteIssuesSetting", - result, - }); - } - }, - - /** - * @description Sets the members can delete repositories setting for an enterprise. - */ - - updateEnterpriseMembersCanDeleteRepositoriesSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanDeleteRepositoriesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanDeleteRepositoriesSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanDeleteRepositoriesSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanDeleteRepositoriesSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanDeleteRepositoriesSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteRepositoriesSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteRepositoriesSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseMembersCanDeleteRepositoriesSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanDeleteRepositoriesSetting", - result, - }); - } - }, - - /** - * @description Sets whether members can invite collaborators are enabled for an enterprise. - */ - - updateEnterpriseMembersCanInviteCollaboratorsSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanInviteCollaboratorsSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanInviteCollaboratorsSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanInviteCollaboratorsSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanInviteCollaboratorsSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanInviteCollaboratorsSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanInviteCollaboratorsSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanInviteCollaboratorsSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseMembersCanInviteCollaboratorsSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanInviteCollaboratorsSetting", - result, - }); - } - }, - - /** - * @description Sets whether or not an organization admin can make purchases. - */ - - updateEnterpriseMembersCanMakePurchasesSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanMakePurchasesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanMakePurchasesSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanMakePurchasesSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanMakePurchasesSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanMakePurchasesSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanMakePurchasesSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanMakePurchasesSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseMembersCanMakePurchasesSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanMakePurchasesSetting", - result, - }); - } - }, - - /** - * @description Sets the members can update protected branches setting for an enterprise. - */ - - updateEnterpriseMembersCanUpdateProtectedBranchesSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanUpdateProtectedBranchesSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanUpdateProtectedBranchesSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - result, - }); - } else if (result.data) { - return result.data - .updateEnterpriseMembersCanUpdateProtectedBranchesSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanUpdateProtectedBranchesSetting", - result, - }); - } - }, - - /** - * @description Sets the members can view dependency insights for an enterprise. - */ - - updateEnterpriseMembersCanViewDependencyInsightsSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseMembersCanViewDependencyInsightsSettingInput; - }, - select: ( - t: UpdateEnterpriseMembersCanViewDependencyInsightsSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseMembersCanViewDependencyInsightsSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseMembersCanViewDependencyInsightsSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseMembersCanViewDependencyInsightsSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanViewDependencyInsightsSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanViewDependencyInsightsSetting", - result, - }); - } else if (result.data) { - return result.data - .updateEnterpriseMembersCanViewDependencyInsightsSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseMembersCanViewDependencyInsightsSetting", - result, - }); - } - }, - - /** - * @description Sets whether organization projects are enabled for an enterprise. - */ - - updateEnterpriseOrganizationProjectsSetting: async < - T extends Array - >( - variables: { input?: UpdateEnterpriseOrganizationProjectsSettingInput }, - select: ( - t: UpdateEnterpriseOrganizationProjectsSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseOrganizationProjectsSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseOrganizationProjectsSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseOrganizationProjectsSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseOrganizationProjectsSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseOrganizationProjectsSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseOrganizationProjectsSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseOrganizationProjectsSetting", - result, - }); - } - }, - - /** - * @description Updates an enterprise's profile. - */ - - updateEnterpriseProfile: async >( - variables: { input?: UpdateEnterpriseProfileInput }, - select: (t: UpdateEnterpriseProfilePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateEnterpriseProfile", any, SelectionSet>] - > - > - >( - new Operation( - "updateEnterpriseProfile", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseProfile(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseProfile", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateEnterpriseProfile", result }); - } else if (result.data) { - return result.data.updateEnterpriseProfile; - } else { - throw new ExecutionError({ name: "updateEnterpriseProfile", result }); - } - }, - - /** - * @description Sets whether repository projects are enabled for a enterprise. - */ - - updateEnterpriseRepositoryProjectsSetting: async < - T extends Array - >( - variables: { input?: UpdateEnterpriseRepositoryProjectsSettingInput }, - select: (t: UpdateEnterpriseRepositoryProjectsSettingPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseRepositoryProjectsSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseRepositoryProjectsSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseRepositoryProjectsSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseRepositoryProjectsSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseRepositoryProjectsSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseRepositoryProjectsSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseRepositoryProjectsSetting", - result, - }); - } - }, - - /** - * @description Sets whether team discussions are enabled for an enterprise. - */ - - updateEnterpriseTeamDiscussionsSetting: async >( - variables: { input?: UpdateEnterpriseTeamDiscussionsSettingInput }, - select: (t: UpdateEnterpriseTeamDiscussionsSettingPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseTeamDiscussionsSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseTeamDiscussionsSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseTeamDiscussionsSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseTeamDiscussionsSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseTeamDiscussionsSetting", - result, - }); - } else if (result.data) { - return result.data.updateEnterpriseTeamDiscussionsSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseTeamDiscussionsSetting", - result, - }); - } - }, - - /** - * @description Sets whether two factor authentication is required for all users in an enterprise. - */ - - updateEnterpriseTwoFactorAuthenticationRequiredSetting: async < - T extends Array - >( - variables: { - input?: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingInput; - }, - select: ( - t: UpdateEnterpriseTwoFactorAuthenticationRequiredSettingPayloadSelector - ) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [ - Field< - "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - any, - SelectionSet - > - ] - > - > - >( - new Operation( - "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - "mutation", - new SelectionSet([ - Mutation.updateEnterpriseTwoFactorAuthenticationRequiredSetting( - variables, - select - ), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - result, - }); - } else if (result.data) { - return result.data - .updateEnterpriseTwoFactorAuthenticationRequiredSetting; - } else { - throw new ExecutionError({ - name: "updateEnterpriseTwoFactorAuthenticationRequiredSetting", - result, - }); - } - }, - - /** - * @description Sets whether an IP allow list is enabled on an owner. - */ - - updateIpAllowListEnabledSetting: async >( - variables: { input?: UpdateIpAllowListEnabledSettingInput }, - select: (t: UpdateIpAllowListEnabledSettingPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateIpAllowListEnabledSetting", any, SelectionSet>] - > - > - >( - new Operation( - "updateIpAllowListEnabledSetting", - "mutation", - new SelectionSet([ - Mutation.updateIpAllowListEnabledSetting(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateIpAllowListEnabledSetting", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateIpAllowListEnabledSetting", - result, - }); - } else if (result.data) { - return result.data.updateIpAllowListEnabledSetting; - } else { - throw new ExecutionError({ - name: "updateIpAllowListEnabledSetting", - result, - }); - } - }, - - /** - * @description Updates an IP allow list entry. - */ - - updateIpAllowListEntry: async >( - variables: { input?: UpdateIpAllowListEntryInput }, - select: (t: UpdateIpAllowListEntryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateIpAllowListEntry", any, SelectionSet>] - > - > - >( - new Operation( - "updateIpAllowListEntry", - "mutation", - new SelectionSet([ - Mutation.updateIpAllowListEntry(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateIpAllowListEntry", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateIpAllowListEntry", result }); - } else if (result.data) { - return result.data.updateIpAllowListEntry; - } else { - throw new ExecutionError({ name: "updateIpAllowListEntry", result }); - } - }, - - /** - * @description Updates an Issue. - */ - - updateIssue: async >( - variables: { input?: UpdateIssueInput }, - select: (t: UpdateIssuePayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "updateIssue", - "mutation", - new SelectionSet([Mutation.updateIssue(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateIssue", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateIssue", result }); - } else if (result.data) { - return result.data.updateIssue; - } else { - throw new ExecutionError({ name: "updateIssue", result }); - } - }, - - /** - * @description Updates an IssueComment object. - */ - - updateIssueComment: async >( - variables: { input?: UpdateIssueCommentInput }, - select: (t: UpdateIssueCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateIssueComment", any, SelectionSet>]> - > - >( - new Operation( - "updateIssueComment", - "mutation", - new SelectionSet([ - Mutation.updateIssueComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateIssueComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateIssueComment", result }); - } else if (result.data) { - return result.data.updateIssueComment; - } else { - throw new ExecutionError({ name: "updateIssueComment", result }); - } - }, - - /** - * @description Updates an existing project. - */ - - updateProject: async >( - variables: { input?: UpdateProjectInput }, - select: (t: UpdateProjectPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateProject", any, SelectionSet>]> - > - >( - new Operation( - "updateProject", - "mutation", - new SelectionSet([Mutation.updateProject(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateProject", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateProject", result }); - } else if (result.data) { - return result.data.updateProject; - } else { - throw new ExecutionError({ name: "updateProject", result }); - } - }, - - /** - * @description Updates an existing project card. - */ - - updateProjectCard: async >( - variables: { input?: UpdateProjectCardInput }, - select: (t: UpdateProjectCardPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateProjectCard", any, SelectionSet>]> - > - >( - new Operation( - "updateProjectCard", - "mutation", - new SelectionSet([Mutation.updateProjectCard(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateProjectCard", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateProjectCard", result }); - } else if (result.data) { - return result.data.updateProjectCard; - } else { - throw new ExecutionError({ name: "updateProjectCard", result }); - } - }, - - /** - * @description Updates an existing project column. - */ - - updateProjectColumn: async >( - variables: { input?: UpdateProjectColumnInput }, - select: (t: UpdateProjectColumnPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateProjectColumn", any, SelectionSet>]> - > - >( - new Operation( - "updateProjectColumn", - "mutation", - new SelectionSet([ - Mutation.updateProjectColumn(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateProjectColumn", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateProjectColumn", result }); - } else if (result.data) { - return result.data.updateProjectColumn; - } else { - throw new ExecutionError({ name: "updateProjectColumn", result }); - } - }, - - /** - * @description Update a pull request - */ - - updatePullRequest: async >( - variables: { input?: UpdatePullRequestInput }, - select: (t: UpdatePullRequestPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updatePullRequest", any, SelectionSet>]> - > - >( - new Operation( - "updatePullRequest", - "mutation", - new SelectionSet([Mutation.updatePullRequest(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updatePullRequest", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updatePullRequest", result }); - } else if (result.data) { - return result.data.updatePullRequest; - } else { - throw new ExecutionError({ name: "updatePullRequest", result }); - } - }, - - /** - * @description Updates the body of a pull request review. - */ - - updatePullRequestReview: async >( - variables: { input?: UpdatePullRequestReviewInput }, - select: (t: UpdatePullRequestReviewPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updatePullRequestReview", any, SelectionSet>] - > - > - >( - new Operation( - "updatePullRequestReview", - "mutation", - new SelectionSet([ - Mutation.updatePullRequestReview(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updatePullRequestReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updatePullRequestReview", result }); - } else if (result.data) { - return result.data.updatePullRequestReview; - } else { - throw new ExecutionError({ name: "updatePullRequestReview", result }); - } - }, - - /** - * @description Updates a pull request review comment. - */ - - updatePullRequestReviewComment: async >( - variables: { input?: UpdatePullRequestReviewCommentInput }, - select: (t: UpdatePullRequestReviewCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updatePullRequestReviewComment", any, SelectionSet>] - > - > - >( - new Operation( - "updatePullRequestReviewComment", - "mutation", - new SelectionSet([ - Mutation.updatePullRequestReviewComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updatePullRequestReviewComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updatePullRequestReviewComment", - result, - }); - } else if (result.data) { - return result.data.updatePullRequestReviewComment; - } else { - throw new ExecutionError({ - name: "updatePullRequestReviewComment", - result, - }); - } - }, - - /** - * @description Update a Git Ref. - */ - - updateRef: async >( - variables: { input?: UpdateRefInput }, - select: (t: UpdateRefPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "updateRef", - "mutation", - new SelectionSet([Mutation.updateRef(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateRef", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateRef", result }); - } else if (result.data) { - return result.data.updateRef; - } else { - throw new ExecutionError({ name: "updateRef", result }); - } - }, - - /** - * @description Update information about a repository. - */ - - updateRepository: async >( - variables: { input?: UpdateRepositoryInput }, - select: (t: UpdateRepositoryPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateRepository", any, SelectionSet>]> - > - >( - new Operation( - "updateRepository", - "mutation", - new SelectionSet([Mutation.updateRepository(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateRepository", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateRepository", result }); - } else if (result.data) { - return result.data.updateRepository; - } else { - throw new ExecutionError({ name: "updateRepository", result }); - } - }, - - /** - * @description Updates the state for subscribable subjects. - */ - - updateSubscription: async >( - variables: { input?: UpdateSubscriptionInput }, - select: (t: UpdateSubscriptionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateSubscription", any, SelectionSet>]> - > - >( - new Operation( - "updateSubscription", - "mutation", - new SelectionSet([ - Mutation.updateSubscription(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateSubscription", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateSubscription", result }); - } else if (result.data) { - return result.data.updateSubscription; - } else { - throw new ExecutionError({ name: "updateSubscription", result }); - } - }, - - /** - * @description Updates a team discussion. - */ - - updateTeamDiscussion: async >( - variables: { input?: UpdateTeamDiscussionInput }, - select: (t: UpdateTeamDiscussionPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet<[Field<"updateTeamDiscussion", any, SelectionSet>]> - > - >( - new Operation( - "updateTeamDiscussion", - "mutation", - new SelectionSet([ - Mutation.updateTeamDiscussion(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateTeamDiscussion", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateTeamDiscussion", result }); - } else if (result.data) { - return result.data.updateTeamDiscussion; - } else { - throw new ExecutionError({ name: "updateTeamDiscussion", result }); - } - }, - - /** - * @description Updates a discussion comment. - */ - - updateTeamDiscussionComment: async >( - variables: { input?: UpdateTeamDiscussionCommentInput }, - select: (t: UpdateTeamDiscussionCommentPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation< - SelectionSet< - [Field<"updateTeamDiscussionComment", any, SelectionSet>] - > - > - >( - new Operation( - "updateTeamDiscussionComment", - "mutation", - new SelectionSet([ - Mutation.updateTeamDiscussionComment(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateTeamDiscussionComment", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "updateTeamDiscussionComment", - result, - }); - } else if (result.data) { - return result.data.updateTeamDiscussionComment; - } else { - throw new ExecutionError({ - name: "updateTeamDiscussionComment", - result, - }); - } - }, - - /** - * @description Replaces the repository's topics with the given topics. - */ - - updateTopics: async >( - variables: { input?: UpdateTopicsInput }, - select: (t: UpdateTopicsPayloadSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "updateTopics", - "mutation", - new SelectionSet([Mutation.updateTopics(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "updateTopics", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "updateTopics", result }); - } else if (result.data) { - return result.data.updateTopics; - } else { - throw new ExecutionError({ name: "updateTopics", result }); - } - }, - }; -} diff --git a/__tests__/github/operations.ts b/__tests__/github/operations.ts deleted file mode 100644 index 1f2ddb2..0000000 --- a/__tests__/github/operations.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { query } from "./github.sdk"; - -export const viewer = query("Viewer", (t) => [ - t.viewer((t) => [ - t.name(), - t.twitterUsername(), - t.status((t) => [t.emoji(), t.expiresAt()]), - - t.repositories({ first: 3 }, (t) => [ - t.pageInfo((t) => [ - t.endCursor(), - t.startCursor(), - t.hasNextPage(), - t.hasPreviousPage(), - ]), - - t.nodes((t) => [t.__typename(), t.id(), t.name(), t.createdAt()]), - - t.edges((t) => [t.cursor(), t.node((t) => [t.id()])]), - ]), - ]), -]); diff --git a/__tests__/hasura/hasura.schema.graphql b/__tests__/hasura/hasura.schema.graphql deleted file mode 100644 index cf6b230..0000000 --- a/__tests__/hasura/hasura.schema.graphql +++ /dev/null @@ -1,2713 +0,0 @@ -schema { - query: query_root - mutation: mutation_root - subscription: subscription_root -} - -""" -expression to compare columns of type Int. All fields are combined with logical 'AND'. -""" -input Int_comparison_exp { - _eq: Int - _gt: Int - _gte: Int - _in: [Int!] - _is_null: Boolean - _lt: Int - _lte: Int - _neq: Int - _nin: [Int!] -} - -""" -expression to compare columns of type String. All fields are combined with logical 'AND'. -""" -input String_comparison_exp { - _eq: String - _gt: String - _gte: String - _ilike: String - _in: [String!] - _is_null: Boolean - _like: String - _lt: String - _lte: String - _neq: String - _nilike: String - _nin: [String!] - _nlike: String - _nsimilar: String - _similar: String -} - -""" -columns and relationships of "bookmarks" -""" -type bookmarks { - """An array relationship""" - children( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): [bookmarks!]! - - """An aggregated array relationship""" - children_aggregate( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): bookmarks_aggregate! - createdUtc: timestamp - id: Int! - name: String! - - """An object relationship""" - owner: users! - ownerUserId: Int! - parent: Int - - """An object relationship""" - parentBookmark: bookmarks - value( - """JSON select path""" - path: String - ): json! -} - -""" -aggregated selection of "bookmarks" -""" -type bookmarks_aggregate { - aggregate: bookmarks_aggregate_fields - nodes: [bookmarks!]! -} - -""" -aggregate fields of "bookmarks" -""" -type bookmarks_aggregate_fields { - avg: bookmarks_avg_fields - count(columns: [bookmarks_select_column!], distinct: Boolean): Int - max: bookmarks_max_fields - min: bookmarks_min_fields - stddev: bookmarks_stddev_fields - stddev_pop: bookmarks_stddev_pop_fields - stddev_samp: bookmarks_stddev_samp_fields - sum: bookmarks_sum_fields - var_pop: bookmarks_var_pop_fields - var_samp: bookmarks_var_samp_fields - variance: bookmarks_variance_fields -} - -""" -order by aggregate values of table "bookmarks" -""" -input bookmarks_aggregate_order_by { - avg: bookmarks_avg_order_by - count: order_by - max: bookmarks_max_order_by - min: bookmarks_min_order_by - stddev: bookmarks_stddev_order_by - stddev_pop: bookmarks_stddev_pop_order_by - stddev_samp: bookmarks_stddev_samp_order_by - sum: bookmarks_sum_order_by - var_pop: bookmarks_var_pop_order_by - var_samp: bookmarks_var_samp_order_by - variance: bookmarks_variance_order_by -} - -""" -input type for inserting array relation for remote table "bookmarks" -""" -input bookmarks_arr_rel_insert_input { - data: [bookmarks_insert_input!]! - on_conflict: bookmarks_on_conflict -} - -"""aggregate avg on columns""" -type bookmarks_avg_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by avg() on columns of table "bookmarks" -""" -input bookmarks_avg_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -""" -Boolean expression to filter rows from the table "bookmarks". All fields are combined with a logical 'AND'. -""" -input bookmarks_bool_exp { - _and: [bookmarks_bool_exp] - _not: bookmarks_bool_exp - _or: [bookmarks_bool_exp] - children: bookmarks_bool_exp - createdUtc: timestamp_comparison_exp - id: Int_comparison_exp - name: String_comparison_exp - owner: users_bool_exp - ownerUserId: Int_comparison_exp - parent: Int_comparison_exp - parentBookmark: bookmarks_bool_exp - value: json_comparison_exp -} - -""" -unique or primary key constraints on table "bookmarks" -""" -enum bookmarks_constraint { - """unique or primary key constraint""" - idx_16652_primary -} - -""" -input type for incrementing integer column in table "bookmarks" -""" -input bookmarks_inc_input { - id: Int - ownerUserId: Int - parent: Int -} - -""" -input type for inserting data into table "bookmarks" -""" -input bookmarks_insert_input { - children: bookmarks_arr_rel_insert_input - createdUtc: timestamp - id: Int - name: String - owner: users_obj_rel_insert_input - ownerUserId: Int - parent: Int - parentBookmark: bookmarks_obj_rel_insert_input - value: json -} - -"""aggregate max on columns""" -type bookmarks_max_fields { - createdUtc: timestamp - id: Int - name: String - ownerUserId: Int - parent: Int -} - -""" -order by max() on columns of table "bookmarks" -""" -input bookmarks_max_order_by { - createdUtc: order_by - id: order_by - name: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate min on columns""" -type bookmarks_min_fields { - createdUtc: timestamp - id: Int - name: String - ownerUserId: Int - parent: Int -} - -""" -order by min() on columns of table "bookmarks" -""" -input bookmarks_min_order_by { - createdUtc: order_by - id: order_by - name: order_by - ownerUserId: order_by - parent: order_by -} - -""" -response of any mutation on the table "bookmarks" -""" -type bookmarks_mutation_response { - """number of affected rows by the mutation""" - affected_rows: Int! - - """data of the affected rows by the mutation""" - returning: [bookmarks!]! -} - -""" -input type for inserting object relation for remote table "bookmarks" -""" -input bookmarks_obj_rel_insert_input { - data: bookmarks_insert_input! - on_conflict: bookmarks_on_conflict -} - -""" -on conflict condition type for table "bookmarks" -""" -input bookmarks_on_conflict { - constraint: bookmarks_constraint! - update_columns: [bookmarks_update_column!]! - where: bookmarks_bool_exp -} - -""" -ordering options when selecting data from "bookmarks" -""" -input bookmarks_order_by { - children_aggregate: bookmarks_aggregate_order_by - createdUtc: order_by - id: order_by - name: order_by - owner: users_order_by - ownerUserId: order_by - parent: order_by - parentBookmark: bookmarks_order_by - value: order_by -} - -""" -primary key columns input for table: "bookmarks" -""" -input bookmarks_pk_columns_input { - id: Int! -} - -""" -select columns of table "bookmarks" -""" -enum bookmarks_select_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - ownerUserId - - """column name""" - parent - - """column name""" - value -} - -""" -input type for updating data in table "bookmarks" -""" -input bookmarks_set_input { - createdUtc: timestamp - id: Int - name: String - ownerUserId: Int - parent: Int - value: json -} - -"""aggregate stddev on columns""" -type bookmarks_stddev_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by stddev() on columns of table "bookmarks" -""" -input bookmarks_stddev_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate stddev_pop on columns""" -type bookmarks_stddev_pop_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by stddev_pop() on columns of table "bookmarks" -""" -input bookmarks_stddev_pop_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate stddev_samp on columns""" -type bookmarks_stddev_samp_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by stddev_samp() on columns of table "bookmarks" -""" -input bookmarks_stddev_samp_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate sum on columns""" -type bookmarks_sum_fields { - id: Int - ownerUserId: Int - parent: Int -} - -""" -order by sum() on columns of table "bookmarks" -""" -input bookmarks_sum_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -""" -update columns of table "bookmarks" -""" -enum bookmarks_update_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - ownerUserId - - """column name""" - parent - - """column name""" - value -} - -"""aggregate var_pop on columns""" -type bookmarks_var_pop_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by var_pop() on columns of table "bookmarks" -""" -input bookmarks_var_pop_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate var_samp on columns""" -type bookmarks_var_samp_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by var_samp() on columns of table "bookmarks" -""" -input bookmarks_var_samp_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -"""aggregate variance on columns""" -type bookmarks_variance_fields { - id: Float - ownerUserId: Float - parent: Float -} - -""" -order by variance() on columns of table "bookmarks" -""" -input bookmarks_variance_order_by { - id: order_by - ownerUserId: order_by - parent: order_by -} - -scalar json - -""" -expression to compare columns of type json. All fields are combined with logical 'AND'. -""" -input json_comparison_exp { - _eq: json - _gt: json - _gte: json - _in: [json!] - _is_null: Boolean - _lt: json - _lte: json - _neq: json - _nin: [json!] -} - -"""mutation root""" -type mutation_root { - """ - delete data from the table: "bookmarks" - """ - delete_bookmarks( - """filter the rows which have to be deleted""" - where: bookmarks_bool_exp! - ): bookmarks_mutation_response - - """ - delete single row from the table: "bookmarks" - """ - delete_bookmarks_by_pk(id: Int!): bookmarks - - """ - delete data from the table: "playlist_items" - """ - delete_playlist_items( - """filter the rows which have to be deleted""" - where: playlist_items_bool_exp! - ): playlist_items_mutation_response - - """ - delete single row from the table: "playlist_items" - """ - delete_playlist_items_by_pk(id: Int!): playlist_items - - """ - delete data from the table: "playlists" - """ - delete_playlists( - """filter the rows which have to be deleted""" - where: playlists_bool_exp! - ): playlists_mutation_response - - """ - delete single row from the table: "playlists" - """ - delete_playlists_by_pk(id: Int!): playlists - - """ - delete data from the table: "tracks" - """ - delete_tracks( - """filter the rows which have to be deleted""" - where: tracks_bool_exp! - ): tracks_mutation_response - - """ - delete single row from the table: "tracks" - """ - delete_tracks_by_pk(id: Int!): tracks - - """ - delete data from the table: "users" - """ - delete_users( - """filter the rows which have to be deleted""" - where: users_bool_exp! - ): users_mutation_response - - """ - delete single row from the table: "users" - """ - delete_users_by_pk(id: Int!): users - - """ - insert data into the table: "bookmarks" - """ - insert_bookmarks( - """the rows to be inserted""" - objects: [bookmarks_insert_input!]! - - """on conflict condition""" - on_conflict: bookmarks_on_conflict - ): bookmarks_mutation_response - - """ - insert a single row into the table: "bookmarks" - """ - insert_bookmarks_one( - """the row to be inserted""" - object: bookmarks_insert_input! - - """on conflict condition""" - on_conflict: bookmarks_on_conflict - ): bookmarks - - """ - insert data into the table: "playlist_items" - """ - insert_playlist_items( - """the rows to be inserted""" - objects: [playlist_items_insert_input!]! - - """on conflict condition""" - on_conflict: playlist_items_on_conflict - ): playlist_items_mutation_response - - """ - insert a single row into the table: "playlist_items" - """ - insert_playlist_items_one( - """the row to be inserted""" - object: playlist_items_insert_input! - - """on conflict condition""" - on_conflict: playlist_items_on_conflict - ): playlist_items - - """ - insert data into the table: "playlists" - """ - insert_playlists( - """the rows to be inserted""" - objects: [playlists_insert_input!]! - - """on conflict condition""" - on_conflict: playlists_on_conflict - ): playlists_mutation_response - - """ - insert a single row into the table: "playlists" - """ - insert_playlists_one( - """the row to be inserted""" - object: playlists_insert_input! - - """on conflict condition""" - on_conflict: playlists_on_conflict - ): playlists - - """ - insert data into the table: "tracks" - """ - insert_tracks( - """the rows to be inserted""" - objects: [tracks_insert_input!]! - - """on conflict condition""" - on_conflict: tracks_on_conflict - ): tracks_mutation_response - - """ - insert a single row into the table: "tracks" - """ - insert_tracks_one( - """the row to be inserted""" - object: tracks_insert_input! - - """on conflict condition""" - on_conflict: tracks_on_conflict - ): tracks - - """ - insert data into the table: "users" - """ - insert_users( - """the rows to be inserted""" - objects: [users_insert_input!]! - - """on conflict condition""" - on_conflict: users_on_conflict - ): users_mutation_response - - """ - insert a single row into the table: "users" - """ - insert_users_one( - """the row to be inserted""" - object: users_insert_input! - - """on conflict condition""" - on_conflict: users_on_conflict - ): users - - """ - update data of the table: "bookmarks" - """ - update_bookmarks( - """increments the integer columns with given value of the filtered values""" - _inc: bookmarks_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: bookmarks_set_input - - """filter the rows which have to be updated""" - where: bookmarks_bool_exp! - ): bookmarks_mutation_response - - """ - update single row of the table: "bookmarks" - """ - update_bookmarks_by_pk( - """increments the integer columns with given value of the filtered values""" - _inc: bookmarks_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: bookmarks_set_input - pk_columns: bookmarks_pk_columns_input! - ): bookmarks - - """ - update data of the table: "playlist_items" - """ - update_playlist_items( - """increments the integer columns with given value of the filtered values""" - _inc: playlist_items_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: playlist_items_set_input - - """filter the rows which have to be updated""" - where: playlist_items_bool_exp! - ): playlist_items_mutation_response - - """ - update single row of the table: "playlist_items" - """ - update_playlist_items_by_pk( - """increments the integer columns with given value of the filtered values""" - _inc: playlist_items_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: playlist_items_set_input - pk_columns: playlist_items_pk_columns_input! - ): playlist_items - - """ - update data of the table: "playlists" - """ - update_playlists( - """increments the integer columns with given value of the filtered values""" - _inc: playlists_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: playlists_set_input - - """filter the rows which have to be updated""" - where: playlists_bool_exp! - ): playlists_mutation_response - - """ - update single row of the table: "playlists" - """ - update_playlists_by_pk( - """increments the integer columns with given value of the filtered values""" - _inc: playlists_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: playlists_set_input - pk_columns: playlists_pk_columns_input! - ): playlists - - """ - update data of the table: "tracks" - """ - update_tracks( - """increments the integer columns with given value of the filtered values""" - _inc: tracks_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: tracks_set_input - - """filter the rows which have to be updated""" - where: tracks_bool_exp! - ): tracks_mutation_response - - """ - update single row of the table: "tracks" - """ - update_tracks_by_pk( - """increments the integer columns with given value of the filtered values""" - _inc: tracks_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: tracks_set_input - pk_columns: tracks_pk_columns_input! - ): tracks - - """ - update data of the table: "users" - """ - update_users( - """increments the integer columns with given value of the filtered values""" - _inc: users_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: users_set_input - - """filter the rows which have to be updated""" - where: users_bool_exp! - ): users_mutation_response - - """ - update single row of the table: "users" - """ - update_users_by_pk( - """increments the integer columns with given value of the filtered values""" - _inc: users_inc_input - - """sets the columns of the filtered rows to the given values""" - _set: users_set_input - pk_columns: users_pk_columns_input! - ): users -} - -"""column ordering options""" -enum order_by { - """in the ascending order, nulls last""" - asc - - """in the ascending order, nulls first""" - asc_nulls_first - - """in the ascending order, nulls last""" - asc_nulls_last - - """in the descending order, nulls first""" - desc - - """in the descending order, nulls first""" - desc_nulls_first - - """in the descending order, nulls last""" - desc_nulls_last -} - -""" -columns and relationships of "playlist_items" -""" -type playlist_items { - createdUtc: timestamp - id: Int! - playlistId: Int! - position: Int! - trackId: Int! -} - -""" -aggregated selection of "playlist_items" -""" -type playlist_items_aggregate { - aggregate: playlist_items_aggregate_fields - nodes: [playlist_items!]! -} - -""" -aggregate fields of "playlist_items" -""" -type playlist_items_aggregate_fields { - avg: playlist_items_avg_fields - count(columns: [playlist_items_select_column!], distinct: Boolean): Int - max: playlist_items_max_fields - min: playlist_items_min_fields - stddev: playlist_items_stddev_fields - stddev_pop: playlist_items_stddev_pop_fields - stddev_samp: playlist_items_stddev_samp_fields - sum: playlist_items_sum_fields - var_pop: playlist_items_var_pop_fields - var_samp: playlist_items_var_samp_fields - variance: playlist_items_variance_fields -} - -""" -order by aggregate values of table "playlist_items" -""" -input playlist_items_aggregate_order_by { - avg: playlist_items_avg_order_by - count: order_by - max: playlist_items_max_order_by - min: playlist_items_min_order_by - stddev: playlist_items_stddev_order_by - stddev_pop: playlist_items_stddev_pop_order_by - stddev_samp: playlist_items_stddev_samp_order_by - sum: playlist_items_sum_order_by - var_pop: playlist_items_var_pop_order_by - var_samp: playlist_items_var_samp_order_by - variance: playlist_items_variance_order_by -} - -""" -input type for inserting array relation for remote table "playlist_items" -""" -input playlist_items_arr_rel_insert_input { - data: [playlist_items_insert_input!]! - on_conflict: playlist_items_on_conflict -} - -"""aggregate avg on columns""" -type playlist_items_avg_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by avg() on columns of table "playlist_items" -""" -input playlist_items_avg_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -""" -Boolean expression to filter rows from the table "playlist_items". All fields are combined with a logical 'AND'. -""" -input playlist_items_bool_exp { - _and: [playlist_items_bool_exp] - _not: playlist_items_bool_exp - _or: [playlist_items_bool_exp] - createdUtc: timestamp_comparison_exp - id: Int_comparison_exp - playlistId: Int_comparison_exp - position: Int_comparison_exp - trackId: Int_comparison_exp -} - -""" -unique or primary key constraints on table "playlist_items" -""" -enum playlist_items_constraint { - """unique or primary key constraint""" - idx_16694_primary -} - -""" -input type for incrementing integer column in table "playlist_items" -""" -input playlist_items_inc_input { - id: Int - playlistId: Int - position: Int - trackId: Int -} - -""" -input type for inserting data into table "playlist_items" -""" -input playlist_items_insert_input { - createdUtc: timestamp - id: Int - playlistId: Int - position: Int - trackId: Int -} - -"""aggregate max on columns""" -type playlist_items_max_fields { - createdUtc: timestamp - id: Int - playlistId: Int - position: Int - trackId: Int -} - -""" -order by max() on columns of table "playlist_items" -""" -input playlist_items_max_order_by { - createdUtc: order_by - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate min on columns""" -type playlist_items_min_fields { - createdUtc: timestamp - id: Int - playlistId: Int - position: Int - trackId: Int -} - -""" -order by min() on columns of table "playlist_items" -""" -input playlist_items_min_order_by { - createdUtc: order_by - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -""" -response of any mutation on the table "playlist_items" -""" -type playlist_items_mutation_response { - """number of affected rows by the mutation""" - affected_rows: Int! - - """data of the affected rows by the mutation""" - returning: [playlist_items!]! -} - -""" -input type for inserting object relation for remote table "playlist_items" -""" -input playlist_items_obj_rel_insert_input { - data: playlist_items_insert_input! - on_conflict: playlist_items_on_conflict -} - -""" -on conflict condition type for table "playlist_items" -""" -input playlist_items_on_conflict { - constraint: playlist_items_constraint! - update_columns: [playlist_items_update_column!]! - where: playlist_items_bool_exp -} - -""" -ordering options when selecting data from "playlist_items" -""" -input playlist_items_order_by { - createdUtc: order_by - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -""" -primary key columns input for table: "playlist_items" -""" -input playlist_items_pk_columns_input { - id: Int! -} - -""" -select columns of table "playlist_items" -""" -enum playlist_items_select_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - playlistId - - """column name""" - position - - """column name""" - trackId -} - -""" -input type for updating data in table "playlist_items" -""" -input playlist_items_set_input { - createdUtc: timestamp - id: Int - playlistId: Int - position: Int - trackId: Int -} - -"""aggregate stddev on columns""" -type playlist_items_stddev_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by stddev() on columns of table "playlist_items" -""" -input playlist_items_stddev_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate stddev_pop on columns""" -type playlist_items_stddev_pop_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by stddev_pop() on columns of table "playlist_items" -""" -input playlist_items_stddev_pop_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate stddev_samp on columns""" -type playlist_items_stddev_samp_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by stddev_samp() on columns of table "playlist_items" -""" -input playlist_items_stddev_samp_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate sum on columns""" -type playlist_items_sum_fields { - id: Int - playlistId: Int - position: Int - trackId: Int -} - -""" -order by sum() on columns of table "playlist_items" -""" -input playlist_items_sum_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -""" -update columns of table "playlist_items" -""" -enum playlist_items_update_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - playlistId - - """column name""" - position - - """column name""" - trackId -} - -"""aggregate var_pop on columns""" -type playlist_items_var_pop_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by var_pop() on columns of table "playlist_items" -""" -input playlist_items_var_pop_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate var_samp on columns""" -type playlist_items_var_samp_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by var_samp() on columns of table "playlist_items" -""" -input playlist_items_var_samp_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -"""aggregate variance on columns""" -type playlist_items_variance_fields { - id: Float - playlistId: Float - position: Float - trackId: Float -} - -""" -order by variance() on columns of table "playlist_items" -""" -input playlist_items_variance_order_by { - id: order_by - playlistId: order_by - position: order_by - trackId: order_by -} - -""" -columns and relationships of "playlists" -""" -type playlists { - createdUtc: timestamptz - id: Int! - name: String! - ownerUserId: Int! -} - -""" -aggregated selection of "playlists" -""" -type playlists_aggregate { - aggregate: playlists_aggregate_fields - nodes: [playlists!]! -} - -""" -aggregate fields of "playlists" -""" -type playlists_aggregate_fields { - avg: playlists_avg_fields - count(columns: [playlists_select_column!], distinct: Boolean): Int - max: playlists_max_fields - min: playlists_min_fields - stddev: playlists_stddev_fields - stddev_pop: playlists_stddev_pop_fields - stddev_samp: playlists_stddev_samp_fields - sum: playlists_sum_fields - var_pop: playlists_var_pop_fields - var_samp: playlists_var_samp_fields - variance: playlists_variance_fields -} - -""" -order by aggregate values of table "playlists" -""" -input playlists_aggregate_order_by { - avg: playlists_avg_order_by - count: order_by - max: playlists_max_order_by - min: playlists_min_order_by - stddev: playlists_stddev_order_by - stddev_pop: playlists_stddev_pop_order_by - stddev_samp: playlists_stddev_samp_order_by - sum: playlists_sum_order_by - var_pop: playlists_var_pop_order_by - var_samp: playlists_var_samp_order_by - variance: playlists_variance_order_by -} - -""" -input type for inserting array relation for remote table "playlists" -""" -input playlists_arr_rel_insert_input { - data: [playlists_insert_input!]! - on_conflict: playlists_on_conflict -} - -"""aggregate avg on columns""" -type playlists_avg_fields { - id: Float - ownerUserId: Float -} - -""" -order by avg() on columns of table "playlists" -""" -input playlists_avg_order_by { - id: order_by - ownerUserId: order_by -} - -""" -Boolean expression to filter rows from the table "playlists". All fields are combined with a logical 'AND'. -""" -input playlists_bool_exp { - _and: [playlists_bool_exp] - _not: playlists_bool_exp - _or: [playlists_bool_exp] - createdUtc: timestamptz_comparison_exp - id: Int_comparison_exp - name: String_comparison_exp - ownerUserId: Int_comparison_exp -} - -""" -unique or primary key constraints on table "playlists" -""" -enum playlists_constraint { - """unique or primary key constraint""" - idx_16687_primary -} - -""" -input type for incrementing integer column in table "playlists" -""" -input playlists_inc_input { - id: Int - ownerUserId: Int -} - -""" -input type for inserting data into table "playlists" -""" -input playlists_insert_input { - createdUtc: timestamptz - id: Int - name: String - ownerUserId: Int -} - -"""aggregate max on columns""" -type playlists_max_fields { - createdUtc: timestamptz - id: Int - name: String - ownerUserId: Int -} - -""" -order by max() on columns of table "playlists" -""" -input playlists_max_order_by { - createdUtc: order_by - id: order_by - name: order_by - ownerUserId: order_by -} - -"""aggregate min on columns""" -type playlists_min_fields { - createdUtc: timestamptz - id: Int - name: String - ownerUserId: Int -} - -""" -order by min() on columns of table "playlists" -""" -input playlists_min_order_by { - createdUtc: order_by - id: order_by - name: order_by - ownerUserId: order_by -} - -""" -response of any mutation on the table "playlists" -""" -type playlists_mutation_response { - """number of affected rows by the mutation""" - affected_rows: Int! - - """data of the affected rows by the mutation""" - returning: [playlists!]! -} - -""" -input type for inserting object relation for remote table "playlists" -""" -input playlists_obj_rel_insert_input { - data: playlists_insert_input! - on_conflict: playlists_on_conflict -} - -""" -on conflict condition type for table "playlists" -""" -input playlists_on_conflict { - constraint: playlists_constraint! - update_columns: [playlists_update_column!]! - where: playlists_bool_exp -} - -""" -ordering options when selecting data from "playlists" -""" -input playlists_order_by { - createdUtc: order_by - id: order_by - name: order_by - ownerUserId: order_by -} - -""" -primary key columns input for table: "playlists" -""" -input playlists_pk_columns_input { - id: Int! -} - -""" -select columns of table "playlists" -""" -enum playlists_select_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - ownerUserId -} - -""" -input type for updating data in table "playlists" -""" -input playlists_set_input { - createdUtc: timestamptz - id: Int - name: String - ownerUserId: Int -} - -"""aggregate stddev on columns""" -type playlists_stddev_fields { - id: Float - ownerUserId: Float -} - -""" -order by stddev() on columns of table "playlists" -""" -input playlists_stddev_order_by { - id: order_by - ownerUserId: order_by -} - -"""aggregate stddev_pop on columns""" -type playlists_stddev_pop_fields { - id: Float - ownerUserId: Float -} - -""" -order by stddev_pop() on columns of table "playlists" -""" -input playlists_stddev_pop_order_by { - id: order_by - ownerUserId: order_by -} - -"""aggregate stddev_samp on columns""" -type playlists_stddev_samp_fields { - id: Float - ownerUserId: Float -} - -""" -order by stddev_samp() on columns of table "playlists" -""" -input playlists_stddev_samp_order_by { - id: order_by - ownerUserId: order_by -} - -"""aggregate sum on columns""" -type playlists_sum_fields { - id: Int - ownerUserId: Int -} - -""" -order by sum() on columns of table "playlists" -""" -input playlists_sum_order_by { - id: order_by - ownerUserId: order_by -} - -""" -update columns of table "playlists" -""" -enum playlists_update_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - ownerUserId -} - -"""aggregate var_pop on columns""" -type playlists_var_pop_fields { - id: Float - ownerUserId: Float -} - -""" -order by var_pop() on columns of table "playlists" -""" -input playlists_var_pop_order_by { - id: order_by - ownerUserId: order_by -} - -"""aggregate var_samp on columns""" -type playlists_var_samp_fields { - id: Float - ownerUserId: Float -} - -""" -order by var_samp() on columns of table "playlists" -""" -input playlists_var_samp_order_by { - id: order_by - ownerUserId: order_by -} - -"""aggregate variance on columns""" -type playlists_variance_fields { - id: Float - ownerUserId: Float -} - -""" -order by variance() on columns of table "playlists" -""" -input playlists_variance_order_by { - id: order_by - ownerUserId: order_by -} - -"""query root""" -type query_root { - """ - fetch data from the table: "bookmarks" - """ - bookmarks( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): [bookmarks!]! - - """ - fetch aggregated fields from the table: "bookmarks" - """ - bookmarks_aggregate( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): bookmarks_aggregate! - - """fetch data from the table: "bookmarks" using primary key columns""" - bookmarks_by_pk(id: Int!): bookmarks - - """ - fetch data from the table: "playlist_items" - """ - playlist_items( - """distinct select on columns""" - distinct_on: [playlist_items_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlist_items_order_by!] - - """filter the rows returned""" - where: playlist_items_bool_exp - ): [playlist_items!]! - - """ - fetch aggregated fields from the table: "playlist_items" - """ - playlist_items_aggregate( - """distinct select on columns""" - distinct_on: [playlist_items_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlist_items_order_by!] - - """filter the rows returned""" - where: playlist_items_bool_exp - ): playlist_items_aggregate! - - """fetch data from the table: "playlist_items" using primary key columns""" - playlist_items_by_pk(id: Int!): playlist_items - - """ - fetch data from the table: "playlists" - """ - playlists( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): [playlists!]! - - """ - fetch aggregated fields from the table: "playlists" - """ - playlists_aggregate( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): playlists_aggregate! - - """fetch data from the table: "playlists" using primary key columns""" - playlists_by_pk(id: Int!): playlists - - """ - fetch data from the table: "tracks" - """ - tracks( - """distinct select on columns""" - distinct_on: [tracks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [tracks_order_by!] - - """filter the rows returned""" - where: tracks_bool_exp - ): [tracks!]! - - """ - fetch aggregated fields from the table: "tracks" - """ - tracks_aggregate( - """distinct select on columns""" - distinct_on: [tracks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [tracks_order_by!] - - """filter the rows returned""" - where: tracks_bool_exp - ): tracks_aggregate! - - """fetch data from the table: "tracks" using primary key columns""" - tracks_by_pk(id: Int!): tracks - - """ - fetch data from the table: "users" - """ - users( - """distinct select on columns""" - distinct_on: [users_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [users_order_by!] - - """filter the rows returned""" - where: users_bool_exp - ): [users!]! - - """ - fetch aggregated fields from the table: "users" - """ - users_aggregate( - """distinct select on columns""" - distinct_on: [users_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [users_order_by!] - - """filter the rows returned""" - where: users_bool_exp - ): users_aggregate! - - """fetch data from the table: "users" using primary key columns""" - users_by_pk(id: Int!): users -} - -"""subscription root""" -type subscription_root { - """ - fetch data from the table: "bookmarks" - """ - bookmarks( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): [bookmarks!]! - - """ - fetch aggregated fields from the table: "bookmarks" - """ - bookmarks_aggregate( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): bookmarks_aggregate! - - """fetch data from the table: "bookmarks" using primary key columns""" - bookmarks_by_pk(id: Int!): bookmarks - - """ - fetch data from the table: "playlist_items" - """ - playlist_items( - """distinct select on columns""" - distinct_on: [playlist_items_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlist_items_order_by!] - - """filter the rows returned""" - where: playlist_items_bool_exp - ): [playlist_items!]! - - """ - fetch aggregated fields from the table: "playlist_items" - """ - playlist_items_aggregate( - """distinct select on columns""" - distinct_on: [playlist_items_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlist_items_order_by!] - - """filter the rows returned""" - where: playlist_items_bool_exp - ): playlist_items_aggregate! - - """fetch data from the table: "playlist_items" using primary key columns""" - playlist_items_by_pk(id: Int!): playlist_items - - """ - fetch data from the table: "playlists" - """ - playlists( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): [playlists!]! - - """ - fetch aggregated fields from the table: "playlists" - """ - playlists_aggregate( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): playlists_aggregate! - - """fetch data from the table: "playlists" using primary key columns""" - playlists_by_pk(id: Int!): playlists - - """ - fetch data from the table: "tracks" - """ - tracks( - """distinct select on columns""" - distinct_on: [tracks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [tracks_order_by!] - - """filter the rows returned""" - where: tracks_bool_exp - ): [tracks!]! - - """ - fetch aggregated fields from the table: "tracks" - """ - tracks_aggregate( - """distinct select on columns""" - distinct_on: [tracks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [tracks_order_by!] - - """filter the rows returned""" - where: tracks_bool_exp - ): tracks_aggregate! - - """fetch data from the table: "tracks" using primary key columns""" - tracks_by_pk(id: Int!): tracks - - """ - fetch data from the table: "users" - """ - users( - """distinct select on columns""" - distinct_on: [users_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [users_order_by!] - - """filter the rows returned""" - where: users_bool_exp - ): [users!]! - - """ - fetch aggregated fields from the table: "users" - """ - users_aggregate( - """distinct select on columns""" - distinct_on: [users_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [users_order_by!] - - """filter the rows returned""" - where: users_bool_exp - ): users_aggregate! - - """fetch data from the table: "users" using primary key columns""" - users_by_pk(id: Int!): users -} - -scalar timestamp - -""" -expression to compare columns of type timestamp. All fields are combined with logical 'AND'. -""" -input timestamp_comparison_exp { - _eq: timestamp - _gt: timestamp - _gte: timestamp - _in: [timestamp!] - _is_null: Boolean - _lt: timestamp - _lte: timestamp - _neq: timestamp - _nin: [timestamp!] -} - -scalar timestamptz - -""" -expression to compare columns of type timestamptz. All fields are combined with logical 'AND'. -""" -input timestamptz_comparison_exp { - _eq: timestamptz - _gt: timestamptz - _gte: timestamptz - _in: [timestamptz!] - _is_null: Boolean - _lt: timestamptz - _lte: timestamptz - _neq: timestamptz - _nin: [timestamptz!] -} - -""" -columns and relationships of "tracks" -""" -type tracks { - createdUtc: timestamp! - id: Int! - name: String! - napsterId: String -} - -""" -aggregated selection of "tracks" -""" -type tracks_aggregate { - aggregate: tracks_aggregate_fields - nodes: [tracks!]! -} - -""" -aggregate fields of "tracks" -""" -type tracks_aggregate_fields { - avg: tracks_avg_fields - count(columns: [tracks_select_column!], distinct: Boolean): Int - max: tracks_max_fields - min: tracks_min_fields - stddev: tracks_stddev_fields - stddev_pop: tracks_stddev_pop_fields - stddev_samp: tracks_stddev_samp_fields - sum: tracks_sum_fields - var_pop: tracks_var_pop_fields - var_samp: tracks_var_samp_fields - variance: tracks_variance_fields -} - -""" -order by aggregate values of table "tracks" -""" -input tracks_aggregate_order_by { - avg: tracks_avg_order_by - count: order_by - max: tracks_max_order_by - min: tracks_min_order_by - stddev: tracks_stddev_order_by - stddev_pop: tracks_stddev_pop_order_by - stddev_samp: tracks_stddev_samp_order_by - sum: tracks_sum_order_by - var_pop: tracks_var_pop_order_by - var_samp: tracks_var_samp_order_by - variance: tracks_variance_order_by -} - -""" -input type for inserting array relation for remote table "tracks" -""" -input tracks_arr_rel_insert_input { - data: [tracks_insert_input!]! - on_conflict: tracks_on_conflict -} - -"""aggregate avg on columns""" -type tracks_avg_fields { - id: Float -} - -""" -order by avg() on columns of table "tracks" -""" -input tracks_avg_order_by { - id: order_by -} - -""" -Boolean expression to filter rows from the table "tracks". All fields are combined with a logical 'AND'. -""" -input tracks_bool_exp { - _and: [tracks_bool_exp] - _not: tracks_bool_exp - _or: [tracks_bool_exp] - createdUtc: timestamp_comparison_exp - id: Int_comparison_exp - name: String_comparison_exp - napsterId: String_comparison_exp -} - -""" -unique or primary key constraints on table "tracks" -""" -enum tracks_constraint { - """unique or primary key constraint""" - idx_16710_napsterid - - """unique or primary key constraint""" - idx_16710_primary -} - -""" -input type for incrementing integer column in table "tracks" -""" -input tracks_inc_input { - id: Int -} - -""" -input type for inserting data into table "tracks" -""" -input tracks_insert_input { - createdUtc: timestamp - id: Int - name: String - napsterId: String -} - -"""aggregate max on columns""" -type tracks_max_fields { - createdUtc: timestamp - id: Int - name: String - napsterId: String -} - -""" -order by max() on columns of table "tracks" -""" -input tracks_max_order_by { - createdUtc: order_by - id: order_by - name: order_by - napsterId: order_by -} - -"""aggregate min on columns""" -type tracks_min_fields { - createdUtc: timestamp - id: Int - name: String - napsterId: String -} - -""" -order by min() on columns of table "tracks" -""" -input tracks_min_order_by { - createdUtc: order_by - id: order_by - name: order_by - napsterId: order_by -} - -""" -response of any mutation on the table "tracks" -""" -type tracks_mutation_response { - """number of affected rows by the mutation""" - affected_rows: Int! - - """data of the affected rows by the mutation""" - returning: [tracks!]! -} - -""" -input type for inserting object relation for remote table "tracks" -""" -input tracks_obj_rel_insert_input { - data: tracks_insert_input! - on_conflict: tracks_on_conflict -} - -""" -on conflict condition type for table "tracks" -""" -input tracks_on_conflict { - constraint: tracks_constraint! - update_columns: [tracks_update_column!]! - where: tracks_bool_exp -} - -""" -ordering options when selecting data from "tracks" -""" -input tracks_order_by { - createdUtc: order_by - id: order_by - name: order_by - napsterId: order_by -} - -""" -primary key columns input for table: "tracks" -""" -input tracks_pk_columns_input { - id: Int! -} - -""" -select columns of table "tracks" -""" -enum tracks_select_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - napsterId -} - -""" -input type for updating data in table "tracks" -""" -input tracks_set_input { - createdUtc: timestamp - id: Int - name: String - napsterId: String -} - -"""aggregate stddev on columns""" -type tracks_stddev_fields { - id: Float -} - -""" -order by stddev() on columns of table "tracks" -""" -input tracks_stddev_order_by { - id: order_by -} - -"""aggregate stddev_pop on columns""" -type tracks_stddev_pop_fields { - id: Float -} - -""" -order by stddev_pop() on columns of table "tracks" -""" -input tracks_stddev_pop_order_by { - id: order_by -} - -"""aggregate stddev_samp on columns""" -type tracks_stddev_samp_fields { - id: Float -} - -""" -order by stddev_samp() on columns of table "tracks" -""" -input tracks_stddev_samp_order_by { - id: order_by -} - -"""aggregate sum on columns""" -type tracks_sum_fields { - id: Int -} - -""" -order by sum() on columns of table "tracks" -""" -input tracks_sum_order_by { - id: order_by -} - -""" -update columns of table "tracks" -""" -enum tracks_update_column { - """column name""" - createdUtc - - """column name""" - id - - """column name""" - name - - """column name""" - napsterId -} - -"""aggregate var_pop on columns""" -type tracks_var_pop_fields { - id: Float -} - -""" -order by var_pop() on columns of table "tracks" -""" -input tracks_var_pop_order_by { - id: order_by -} - -"""aggregate var_samp on columns""" -type tracks_var_samp_fields { - id: Float -} - -""" -order by var_samp() on columns of table "tracks" -""" -input tracks_var_samp_order_by { - id: order_by -} - -"""aggregate variance on columns""" -type tracks_variance_fields { - id: Float -} - -""" -order by variance() on columns of table "tracks" -""" -input tracks_variance_order_by { - id: order_by -} - -""" -columns and relationships of "users" -""" -type users { - """An array relationship""" - bookmarks( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): [bookmarks!]! - - """An aggregated array relationship""" - bookmarks_aggregate( - """distinct select on columns""" - distinct_on: [bookmarks_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [bookmarks_order_by!] - - """filter the rows returned""" - where: bookmarks_bool_exp - ): bookmarks_aggregate! - createdUtc: timestamp - email: String - id: Int! - - """An array relationship""" - playlists( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): [playlists!]! - - """An aggregated array relationship""" - playlists_aggregate( - """distinct select on columns""" - distinct_on: [playlists_select_column!] - - """limit the number of rows returned""" - limit: Int - - """skip the first n rows. Use only with order_by""" - offset: Int - - """sort the rows by one or more columns""" - order_by: [playlists_order_by!] - - """filter the rows returned""" - where: playlists_bool_exp - ): playlists_aggregate! -} - -""" -aggregated selection of "users" -""" -type users_aggregate { - aggregate: users_aggregate_fields - nodes: [users!]! -} - -""" -aggregate fields of "users" -""" -type users_aggregate_fields { - avg: users_avg_fields - count(columns: [users_select_column!], distinct: Boolean): Int - max: users_max_fields - min: users_min_fields - stddev: users_stddev_fields - stddev_pop: users_stddev_pop_fields - stddev_samp: users_stddev_samp_fields - sum: users_sum_fields - var_pop: users_var_pop_fields - var_samp: users_var_samp_fields - variance: users_variance_fields -} - -""" -order by aggregate values of table "users" -""" -input users_aggregate_order_by { - avg: users_avg_order_by - count: order_by - max: users_max_order_by - min: users_min_order_by - stddev: users_stddev_order_by - stddev_pop: users_stddev_pop_order_by - stddev_samp: users_stddev_samp_order_by - sum: users_sum_order_by - var_pop: users_var_pop_order_by - var_samp: users_var_samp_order_by - variance: users_variance_order_by -} - -""" -input type for inserting array relation for remote table "users" -""" -input users_arr_rel_insert_input { - data: [users_insert_input!]! - on_conflict: users_on_conflict -} - -"""aggregate avg on columns""" -type users_avg_fields { - id: Float -} - -""" -order by avg() on columns of table "users" -""" -input users_avg_order_by { - id: order_by -} - -""" -Boolean expression to filter rows from the table "users". All fields are combined with a logical 'AND'. -""" -input users_bool_exp { - _and: [users_bool_exp] - _not: users_bool_exp - _or: [users_bool_exp] - bookmarks: bookmarks_bool_exp - createdUtc: timestamp_comparison_exp - email: String_comparison_exp - id: Int_comparison_exp - playlists: playlists_bool_exp -} - -""" -unique or primary key constraints on table "users" -""" -enum users_constraint { - """unique or primary key constraint""" - idx_16717_primary -} - -""" -input type for incrementing integer column in table "users" -""" -input users_inc_input { - id: Int -} - -""" -input type for inserting data into table "users" -""" -input users_insert_input { - bookmarks: bookmarks_arr_rel_insert_input - createdUtc: timestamp - email: String - id: Int - playlists: playlists_arr_rel_insert_input -} - -"""aggregate max on columns""" -type users_max_fields { - createdUtc: timestamp - email: String - id: Int -} - -""" -order by max() on columns of table "users" -""" -input users_max_order_by { - createdUtc: order_by - email: order_by - id: order_by -} - -"""aggregate min on columns""" -type users_min_fields { - createdUtc: timestamp - email: String - id: Int -} - -""" -order by min() on columns of table "users" -""" -input users_min_order_by { - createdUtc: order_by - email: order_by - id: order_by -} - -""" -response of any mutation on the table "users" -""" -type users_mutation_response { - """number of affected rows by the mutation""" - affected_rows: Int! - - """data of the affected rows by the mutation""" - returning: [users!]! -} - -""" -input type for inserting object relation for remote table "users" -""" -input users_obj_rel_insert_input { - data: users_insert_input! - on_conflict: users_on_conflict -} - -""" -on conflict condition type for table "users" -""" -input users_on_conflict { - constraint: users_constraint! - update_columns: [users_update_column!]! - where: users_bool_exp -} - -""" -ordering options when selecting data from "users" -""" -input users_order_by { - bookmarks_aggregate: bookmarks_aggregate_order_by - createdUtc: order_by - email: order_by - id: order_by - playlists_aggregate: playlists_aggregate_order_by -} - -""" -primary key columns input for table: "users" -""" -input users_pk_columns_input { - id: Int! -} - -""" -select columns of table "users" -""" -enum users_select_column { - """column name""" - createdUtc - - """column name""" - email - - """column name""" - id -} - -""" -input type for updating data in table "users" -""" -input users_set_input { - createdUtc: timestamp - email: String - id: Int -} - -"""aggregate stddev on columns""" -type users_stddev_fields { - id: Float -} - -""" -order by stddev() on columns of table "users" -""" -input users_stddev_order_by { - id: order_by -} - -"""aggregate stddev_pop on columns""" -type users_stddev_pop_fields { - id: Float -} - -""" -order by stddev_pop() on columns of table "users" -""" -input users_stddev_pop_order_by { - id: order_by -} - -"""aggregate stddev_samp on columns""" -type users_stddev_samp_fields { - id: Float -} - -""" -order by stddev_samp() on columns of table "users" -""" -input users_stddev_samp_order_by { - id: order_by -} - -"""aggregate sum on columns""" -type users_sum_fields { - id: Int -} - -""" -order by sum() on columns of table "users" -""" -input users_sum_order_by { - id: order_by -} - -""" -update columns of table "users" -""" -enum users_update_column { - """column name""" - createdUtc - - """column name""" - email - - """column name""" - id -} - -"""aggregate var_pop on columns""" -type users_var_pop_fields { - id: Float -} - -""" -order by var_pop() on columns of table "users" -""" -input users_var_pop_order_by { - id: order_by -} - -"""aggregate var_samp on columns""" -type users_var_samp_fields { - id: Float -} - -""" -order by var_samp() on columns of table "users" -""" -input users_var_samp_order_by { - id: order_by -} - -"""aggregate variance on columns""" -type users_variance_fields { - id: Float -} - -""" -order by variance() on columns of table "users" -""" -input users_variance_order_by { - id: order_by -} \ No newline at end of file diff --git a/__tests__/hasura/hasura.sdk.ts b/__tests__/hasura/hasura.sdk.ts deleted file mode 100644 index 57fbbeb..0000000 --- a/__tests__/hasura/hasura.sdk.ts +++ /dev/null @@ -1,8318 +0,0 @@ -import { - NamedType, - Argument, - Field, - InlineFragment, - Operation, - Selection, - SelectionSet, - Variable, - Executor, - Client, - TypeConditionError, - ExecutionError, -} from "../../src"; - -export const VERSION = "unversioned"; - -export const SCHEMA_SHA = "12df668"; - -const _ENUM_VALUES = { - idx_16652_primary: true, - createdUtc: true, - id: true, - name: true, - ownerUserId: true, - parent: true, - value: true, - asc: true, - asc_nulls_first: true, - asc_nulls_last: true, - desc: true, - desc_nulls_first: true, - desc_nulls_last: true, - idx_16694_primary: true, - playlistId: true, - position: true, - trackId: true, - idx_16687_primary: true, - idx_16710_napsterid: true, - idx_16710_primary: true, - napsterId: true, - idx_16717_primary: true, - email: true, - SCALAR: true, - OBJECT: true, - INTERFACE: true, - UNION: true, - ENUM: true, - INPUT_OBJECT: true, - LIST: true, - NON_NULL: true, - QUERY: true, - MUTATION: true, - SUBSCRIPTION: true, - FIELD: true, - FRAGMENT_DEFINITION: true, - FRAGMENT_SPREAD: true, - INLINE_FRAGMENT: true, - VARIABLE_DEFINITION: true, - SCHEMA: true, - FIELD_DEFINITION: true, - ARGUMENT_DEFINITION: true, - ENUM_VALUE: true, - INPUT_FIELD_DEFINITION: true, -} as const; - -export enum bookmarks_constraint { - idx_16652_primary = "idx_16652_primary", -} - -export enum bookmarks_select_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - ownerUserId = "ownerUserId", - parent = "parent", - value = "value", -} - -export enum bookmarks_update_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - ownerUserId = "ownerUserId", - parent = "parent", - value = "value", -} - -export enum order_by { - asc = "asc", - asc_nulls_first = "asc_nulls_first", - asc_nulls_last = "asc_nulls_last", - desc = "desc", - desc_nulls_first = "desc_nulls_first", - desc_nulls_last = "desc_nulls_last", -} - -export enum playlist_items_constraint { - idx_16694_primary = "idx_16694_primary", -} - -export enum playlist_items_select_column { - createdUtc = "createdUtc", - id = "id", - playlistId = "playlistId", - position = "position", - trackId = "trackId", -} - -export enum playlist_items_update_column { - createdUtc = "createdUtc", - id = "id", - playlistId = "playlistId", - position = "position", - trackId = "trackId", -} - -export enum playlists_constraint { - idx_16687_primary = "idx_16687_primary", -} - -export enum playlists_select_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - ownerUserId = "ownerUserId", -} - -export enum playlists_update_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - ownerUserId = "ownerUserId", -} - -export enum tracks_constraint { - idx_16710_napsterid = "idx_16710_napsterid", - idx_16710_primary = "idx_16710_primary", -} - -export enum tracks_select_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - napsterId = "napsterId", -} - -export enum tracks_update_column { - createdUtc = "createdUtc", - id = "id", - name = "name", - napsterId = "napsterId", -} - -export enum users_constraint { - idx_16717_primary = "idx_16717_primary", -} - -export enum users_select_column { - createdUtc = "createdUtc", - email = "email", - id = "id", -} - -export enum users_update_column { - createdUtc = "createdUtc", - email = "email", - id = "id", -} - -export interface Int_comparison_exp { - readonly _eq?: number; - readonly _gt?: number; - readonly _gte?: number; - readonly _in?: number[]; - readonly _is_null?: boolean; - readonly _lt?: number; - readonly _lte?: number; - readonly _neq?: number; - readonly _nin?: number[]; -} - -export interface String_comparison_exp { - readonly _eq?: string; - readonly _gt?: string; - readonly _gte?: string; - readonly _ilike?: string; - readonly _in?: string[]; - readonly _is_null?: boolean; - readonly _like?: string; - readonly _lt?: string; - readonly _lte?: string; - readonly _neq?: string; - readonly _nilike?: string; - readonly _nin?: string[]; - readonly _nlike?: string; - readonly _nsimilar?: string; - readonly _similar?: string; -} - -export interface bookmarks_aggregate_order_by { - readonly avg?: bookmarks_avg_order_by; - readonly count?: order_by; - readonly max?: bookmarks_max_order_by; - readonly min?: bookmarks_min_order_by; - readonly stddev?: bookmarks_stddev_order_by; - readonly stddev_pop?: bookmarks_stddev_pop_order_by; - readonly stddev_samp?: bookmarks_stddev_samp_order_by; - readonly sum?: bookmarks_sum_order_by; - readonly var_pop?: bookmarks_var_pop_order_by; - readonly var_samp?: bookmarks_var_samp_order_by; - readonly variance?: bookmarks_variance_order_by; -} - -export interface bookmarks_arr_rel_insert_input { - readonly data: bookmarks_insert_input; - readonly on_conflict?: bookmarks_on_conflict; -} - -export interface bookmarks_avg_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_bool_exp { - readonly _and?: bookmarks_bool_exp[]; - readonly _not?: bookmarks_bool_exp; - readonly _or?: bookmarks_bool_exp[]; - readonly children?: bookmarks_bool_exp; - readonly createdUtc?: timestamp_comparison_exp; - readonly id?: Int_comparison_exp; - readonly name?: String_comparison_exp; - readonly owner?: users_bool_exp; - readonly ownerUserId?: Int_comparison_exp; - readonly parent?: Int_comparison_exp; - readonly parentBookmark?: bookmarks_bool_exp; - readonly value?: json_comparison_exp; -} - -export interface bookmarks_inc_input { - readonly id?: number; - readonly ownerUserId?: number; - readonly parent?: number; -} - -export interface bookmarks_insert_input { - readonly children?: bookmarks_arr_rel_insert_input; - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly owner?: users_obj_rel_insert_input; - readonly ownerUserId?: number; - readonly parent?: number; - readonly parentBookmark?: bookmarks_obj_rel_insert_input; - readonly value?: unknown; -} - -export interface bookmarks_max_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_min_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_obj_rel_insert_input { - readonly data: bookmarks_insert_input; - readonly on_conflict?: bookmarks_on_conflict; -} - -export interface bookmarks_on_conflict { - readonly constraint: bookmarks_constraint; - readonly update_columns: bookmarks_update_column; - readonly where?: bookmarks_bool_exp; -} - -export interface bookmarks_order_by { - readonly children_aggregate?: bookmarks_aggregate_order_by; - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly owner?: users_order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; - readonly parentBookmark?: bookmarks_order_by; - readonly value?: order_by; -} - -export interface bookmarks_pk_columns_input { - readonly id: number; -} - -export interface bookmarks_set_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly ownerUserId?: number; - readonly parent?: number; - readonly value?: unknown; -} - -export interface bookmarks_stddev_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_stddev_pop_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_stddev_samp_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_sum_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_var_pop_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_var_samp_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface bookmarks_variance_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; - readonly parent?: order_by; -} - -export interface json_comparison_exp { - readonly _eq?: unknown; - readonly _gt?: unknown; - readonly _gte?: unknown; - readonly _in?: unknown[]; - readonly _is_null?: boolean; - readonly _lt?: unknown; - readonly _lte?: unknown; - readonly _neq?: unknown; - readonly _nin?: unknown[]; -} - -export interface playlist_items_aggregate_order_by { - readonly avg?: playlist_items_avg_order_by; - readonly count?: order_by; - readonly max?: playlist_items_max_order_by; - readonly min?: playlist_items_min_order_by; - readonly stddev?: playlist_items_stddev_order_by; - readonly stddev_pop?: playlist_items_stddev_pop_order_by; - readonly stddev_samp?: playlist_items_stddev_samp_order_by; - readonly sum?: playlist_items_sum_order_by; - readonly var_pop?: playlist_items_var_pop_order_by; - readonly var_samp?: playlist_items_var_samp_order_by; - readonly variance?: playlist_items_variance_order_by; -} - -export interface playlist_items_arr_rel_insert_input { - readonly data: playlist_items_insert_input; - readonly on_conflict?: playlist_items_on_conflict; -} - -export interface playlist_items_avg_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_bool_exp { - readonly _and?: playlist_items_bool_exp[]; - readonly _not?: playlist_items_bool_exp; - readonly _or?: playlist_items_bool_exp[]; - readonly createdUtc?: timestamp_comparison_exp; - readonly id?: Int_comparison_exp; - readonly playlistId?: Int_comparison_exp; - readonly position?: Int_comparison_exp; - readonly trackId?: Int_comparison_exp; -} - -export interface playlist_items_inc_input { - readonly id?: number; - readonly playlistId?: number; - readonly position?: number; - readonly trackId?: number; -} - -export interface playlist_items_insert_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly playlistId?: number; - readonly position?: number; - readonly trackId?: number; -} - -export interface playlist_items_max_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_min_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_obj_rel_insert_input { - readonly data: playlist_items_insert_input; - readonly on_conflict?: playlist_items_on_conflict; -} - -export interface playlist_items_on_conflict { - readonly constraint: playlist_items_constraint; - readonly update_columns: playlist_items_update_column; - readonly where?: playlist_items_bool_exp; -} - -export interface playlist_items_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_pk_columns_input { - readonly id: number; -} - -export interface playlist_items_set_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly playlistId?: number; - readonly position?: number; - readonly trackId?: number; -} - -export interface playlist_items_stddev_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_stddev_pop_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_stddev_samp_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_sum_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_var_pop_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_var_samp_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlist_items_variance_order_by { - readonly id?: order_by; - readonly playlistId?: order_by; - readonly position?: order_by; - readonly trackId?: order_by; -} - -export interface playlists_aggregate_order_by { - readonly avg?: playlists_avg_order_by; - readonly count?: order_by; - readonly max?: playlists_max_order_by; - readonly min?: playlists_min_order_by; - readonly stddev?: playlists_stddev_order_by; - readonly stddev_pop?: playlists_stddev_pop_order_by; - readonly stddev_samp?: playlists_stddev_samp_order_by; - readonly sum?: playlists_sum_order_by; - readonly var_pop?: playlists_var_pop_order_by; - readonly var_samp?: playlists_var_samp_order_by; - readonly variance?: playlists_variance_order_by; -} - -export interface playlists_arr_rel_insert_input { - readonly data: playlists_insert_input; - readonly on_conflict?: playlists_on_conflict; -} - -export interface playlists_avg_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_bool_exp { - readonly _and?: playlists_bool_exp[]; - readonly _not?: playlists_bool_exp; - readonly _or?: playlists_bool_exp[]; - readonly createdUtc?: timestamptz_comparison_exp; - readonly id?: Int_comparison_exp; - readonly name?: String_comparison_exp; - readonly ownerUserId?: Int_comparison_exp; -} - -export interface playlists_inc_input { - readonly id?: number; - readonly ownerUserId?: number; -} - -export interface playlists_insert_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly ownerUserId?: number; -} - -export interface playlists_max_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_min_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_obj_rel_insert_input { - readonly data: playlists_insert_input; - readonly on_conflict?: playlists_on_conflict; -} - -export interface playlists_on_conflict { - readonly constraint: playlists_constraint; - readonly update_columns: playlists_update_column; - readonly where?: playlists_bool_exp; -} - -export interface playlists_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_pk_columns_input { - readonly id: number; -} - -export interface playlists_set_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly ownerUserId?: number; -} - -export interface playlists_stddev_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_stddev_pop_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_stddev_samp_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_sum_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_var_pop_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_var_samp_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface playlists_variance_order_by { - readonly id?: order_by; - readonly ownerUserId?: order_by; -} - -export interface timestamp_comparison_exp { - readonly _eq?: unknown; - readonly _gt?: unknown; - readonly _gte?: unknown; - readonly _in?: unknown[]; - readonly _is_null?: boolean; - readonly _lt?: unknown; - readonly _lte?: unknown; - readonly _neq?: unknown; - readonly _nin?: unknown[]; -} - -export interface timestamptz_comparison_exp { - readonly _eq?: unknown; - readonly _gt?: unknown; - readonly _gte?: unknown; - readonly _in?: unknown[]; - readonly _is_null?: boolean; - readonly _lt?: unknown; - readonly _lte?: unknown; - readonly _neq?: unknown; - readonly _nin?: unknown[]; -} - -export interface tracks_aggregate_order_by { - readonly avg?: tracks_avg_order_by; - readonly count?: order_by; - readonly max?: tracks_max_order_by; - readonly min?: tracks_min_order_by; - readonly stddev?: tracks_stddev_order_by; - readonly stddev_pop?: tracks_stddev_pop_order_by; - readonly stddev_samp?: tracks_stddev_samp_order_by; - readonly sum?: tracks_sum_order_by; - readonly var_pop?: tracks_var_pop_order_by; - readonly var_samp?: tracks_var_samp_order_by; - readonly variance?: tracks_variance_order_by; -} - -export interface tracks_arr_rel_insert_input { - readonly data: tracks_insert_input; - readonly on_conflict?: tracks_on_conflict; -} - -export interface tracks_avg_order_by { - readonly id?: order_by; -} - -export interface tracks_bool_exp { - readonly _and?: tracks_bool_exp[]; - readonly _not?: tracks_bool_exp; - readonly _or?: tracks_bool_exp[]; - readonly createdUtc?: timestamp_comparison_exp; - readonly id?: Int_comparison_exp; - readonly name?: String_comparison_exp; - readonly napsterId?: String_comparison_exp; -} - -export interface tracks_inc_input { - readonly id?: number; -} - -export interface tracks_insert_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly napsterId?: string; -} - -export interface tracks_max_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly napsterId?: order_by; -} - -export interface tracks_min_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly napsterId?: order_by; -} - -export interface tracks_obj_rel_insert_input { - readonly data: tracks_insert_input; - readonly on_conflict?: tracks_on_conflict; -} - -export interface tracks_on_conflict { - readonly constraint: tracks_constraint; - readonly update_columns: tracks_update_column; - readonly where?: tracks_bool_exp; -} - -export interface tracks_order_by { - readonly createdUtc?: order_by; - readonly id?: order_by; - readonly name?: order_by; - readonly napsterId?: order_by; -} - -export interface tracks_pk_columns_input { - readonly id: number; -} - -export interface tracks_set_input { - readonly createdUtc?: unknown; - readonly id?: number; - readonly name?: string; - readonly napsterId?: string; -} - -export interface tracks_stddev_order_by { - readonly id?: order_by; -} - -export interface tracks_stddev_pop_order_by { - readonly id?: order_by; -} - -export interface tracks_stddev_samp_order_by { - readonly id?: order_by; -} - -export interface tracks_sum_order_by { - readonly id?: order_by; -} - -export interface tracks_var_pop_order_by { - readonly id?: order_by; -} - -export interface tracks_var_samp_order_by { - readonly id?: order_by; -} - -export interface tracks_variance_order_by { - readonly id?: order_by; -} - -export interface users_aggregate_order_by { - readonly avg?: users_avg_order_by; - readonly count?: order_by; - readonly max?: users_max_order_by; - readonly min?: users_min_order_by; - readonly stddev?: users_stddev_order_by; - readonly stddev_pop?: users_stddev_pop_order_by; - readonly stddev_samp?: users_stddev_samp_order_by; - readonly sum?: users_sum_order_by; - readonly var_pop?: users_var_pop_order_by; - readonly var_samp?: users_var_samp_order_by; - readonly variance?: users_variance_order_by; -} - -export interface users_arr_rel_insert_input { - readonly data: users_insert_input; - readonly on_conflict?: users_on_conflict; -} - -export interface users_avg_order_by { - readonly id?: order_by; -} - -export interface users_bool_exp { - readonly _and?: users_bool_exp[]; - readonly _not?: users_bool_exp; - readonly _or?: users_bool_exp[]; - readonly bookmarks?: bookmarks_bool_exp; - readonly createdUtc?: timestamp_comparison_exp; - readonly email?: String_comparison_exp; - readonly id?: Int_comparison_exp; - readonly playlists?: playlists_bool_exp; -} - -export interface users_inc_input { - readonly id?: number; -} - -export interface users_insert_input { - readonly bookmarks?: bookmarks_arr_rel_insert_input; - readonly createdUtc?: unknown; - readonly email?: string; - readonly id?: number; - readonly playlists?: playlists_arr_rel_insert_input; -} - -export interface users_max_order_by { - readonly createdUtc?: order_by; - readonly email?: order_by; - readonly id?: order_by; -} - -export interface users_min_order_by { - readonly createdUtc?: order_by; - readonly email?: order_by; - readonly id?: order_by; -} - -export interface users_obj_rel_insert_input { - readonly data: users_insert_input; - readonly on_conflict?: users_on_conflict; -} - -export interface users_on_conflict { - readonly constraint: users_constraint; - readonly update_columns: users_update_column; - readonly where?: users_bool_exp; -} - -export interface users_order_by { - readonly bookmarks_aggregate?: bookmarks_aggregate_order_by; - readonly createdUtc?: order_by; - readonly email?: order_by; - readonly id?: order_by; - readonly playlists_aggregate?: playlists_aggregate_order_by; -} - -export interface users_pk_columns_input { - readonly id: number; -} - -export interface users_set_input { - readonly createdUtc?: unknown; - readonly email?: string; - readonly id?: number; -} - -export interface users_stddev_order_by { - readonly id?: order_by; -} - -export interface users_stddev_pop_order_by { - readonly id?: order_by; -} - -export interface users_stddev_samp_order_by { - readonly id?: order_by; -} - -export interface users_sum_order_by { - readonly id?: order_by; -} - -export interface users_var_pop_order_by { - readonly id?: order_by; -} - -export interface users_var_samp_order_by { - readonly id?: order_by; -} - -export interface users_variance_order_by { - readonly id?: order_by; -} - -export interface Ibookmarks { - readonly __typename: "bookmarks"; - readonly children: ReadonlyArray; - readonly children_aggregate: Ibookmarks_aggregate; - readonly createdUtc: unknown | null; - readonly id: number; - readonly name: string; - readonly owner: Iusers; - readonly ownerUserId: number; - readonly parent: number | null; - readonly parentBookmark: Ibookmarks | null; - readonly value: unknown; -} - -interface bookmarksSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An array relationship - */ - - readonly children: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "children", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description An aggregated array relationship - */ - - readonly children_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => Field< - "children_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - /** - * @description An object relationship - */ - - readonly owner: >( - select: (t: usersSelector) => T - ) => Field<"owner", never, SelectionSet>; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; - - /** - * @description An object relationship - */ - - readonly parentBookmark: >( - select: (t: bookmarksSelector) => T - ) => Field<"parentBookmark", never, SelectionSet>; - - readonly value: (variables: { - path?: Variable<"path"> | string; - }) => Field<"value", [Argument<"path", Variable<"path"> | string>]>; -} - -export const bookmarks: bookmarksSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An array relationship - */ - - children: (variables, select) => - new Field( - "children", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description An aggregated array relationship - */ - - children_aggregate: (variables, select) => - new Field( - "children_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_aggregate)) - ), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - - /** - * @description An object relationship - */ - - owner: (select) => - new Field("owner", undefined as never, new SelectionSet(select(users))), - - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), - - /** - * @description An object relationship - */ - - parentBookmark: (select) => - new Field( - "parentBookmark", - undefined as never, - new SelectionSet(select(bookmarks)) - ), - - value: (variables) => new Field("value"), -}; - -export interface Ibookmarks_aggregate { - readonly __typename: "bookmarks_aggregate"; - readonly aggregate: Ibookmarks_aggregate_fields | null; - readonly nodes: ReadonlyArray; -} - -interface bookmarks_aggregateSelector { - readonly __typename: () => Field<"__typename">; - - readonly aggregate: >( - select: (t: bookmarks_aggregate_fieldsSelector) => T - ) => Field<"aggregate", never, SelectionSet>; - - readonly nodes: >( - select: (t: bookmarksSelector) => T - ) => Field<"nodes", never, SelectionSet>; -} - -export const bookmarks_aggregate: bookmarks_aggregateSelector = { - __typename: () => new Field("__typename"), - - aggregate: (select) => - new Field( - "aggregate", - undefined as never, - new SelectionSet(select(bookmarks_aggregate_fields)) - ), - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(bookmarks))), -}; - -export interface Ibookmarks_aggregate_fields { - readonly __typename: "bookmarks_aggregate_fields"; - readonly avg: Ibookmarks_avg_fields | null; - readonly count: number | null; - readonly max: Ibookmarks_max_fields | null; - readonly min: Ibookmarks_min_fields | null; - readonly stddev: Ibookmarks_stddev_fields | null; - readonly stddev_pop: Ibookmarks_stddev_pop_fields | null; - readonly stddev_samp: Ibookmarks_stddev_samp_fields | null; - readonly sum: Ibookmarks_sum_fields | null; - readonly var_pop: Ibookmarks_var_pop_fields | null; - readonly var_samp: Ibookmarks_var_samp_fields | null; - readonly variance: Ibookmarks_variance_fields | null; -} - -interface bookmarks_aggregate_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly avg: >( - select: (t: bookmarks_avg_fieldsSelector) => T - ) => Field<"avg", never, SelectionSet>; - - readonly count: (variables: { - columns?: Variable<"columns"> | bookmarks_select_column; - distinct?: Variable<"distinct"> | boolean; - }) => Field< - "count", - [ - Argument<"columns", Variable<"columns"> | bookmarks_select_column>, - Argument<"distinct", Variable<"distinct"> | boolean> - ] - >; - - readonly max: >( - select: (t: bookmarks_max_fieldsSelector) => T - ) => Field<"max", never, SelectionSet>; - - readonly min: >( - select: (t: bookmarks_min_fieldsSelector) => T - ) => Field<"min", never, SelectionSet>; - - readonly stddev: >( - select: (t: bookmarks_stddev_fieldsSelector) => T - ) => Field<"stddev", never, SelectionSet>; - - readonly stddev_pop: >( - select: (t: bookmarks_stddev_pop_fieldsSelector) => T - ) => Field<"stddev_pop", never, SelectionSet>; - - readonly stddev_samp: >( - select: (t: bookmarks_stddev_samp_fieldsSelector) => T - ) => Field<"stddev_samp", never, SelectionSet>; - - readonly sum: >( - select: (t: bookmarks_sum_fieldsSelector) => T - ) => Field<"sum", never, SelectionSet>; - - readonly var_pop: >( - select: (t: bookmarks_var_pop_fieldsSelector) => T - ) => Field<"var_pop", never, SelectionSet>; - - readonly var_samp: >( - select: (t: bookmarks_var_samp_fieldsSelector) => T - ) => Field<"var_samp", never, SelectionSet>; - - readonly variance: >( - select: (t: bookmarks_variance_fieldsSelector) => T - ) => Field<"variance", never, SelectionSet>; -} - -export const bookmarks_aggregate_fields: bookmarks_aggregate_fieldsSelector = { - __typename: () => new Field("__typename"), - - avg: (select) => - new Field( - "avg", - undefined as never, - new SelectionSet(select(bookmarks_avg_fields)) - ), - - count: (variables) => new Field("count"), - - max: (select) => - new Field( - "max", - undefined as never, - new SelectionSet(select(bookmarks_max_fields)) - ), - - min: (select) => - new Field( - "min", - undefined as never, - new SelectionSet(select(bookmarks_min_fields)) - ), - - stddev: (select) => - new Field( - "stddev", - undefined as never, - new SelectionSet(select(bookmarks_stddev_fields)) - ), - - stddev_pop: (select) => - new Field( - "stddev_pop", - undefined as never, - new SelectionSet(select(bookmarks_stddev_pop_fields)) - ), - - stddev_samp: (select) => - new Field( - "stddev_samp", - undefined as never, - new SelectionSet(select(bookmarks_stddev_samp_fields)) - ), - - sum: (select) => - new Field( - "sum", - undefined as never, - new SelectionSet(select(bookmarks_sum_fields)) - ), - - var_pop: (select) => - new Field( - "var_pop", - undefined as never, - new SelectionSet(select(bookmarks_var_pop_fields)) - ), - - var_samp: (select) => - new Field( - "var_samp", - undefined as never, - new SelectionSet(select(bookmarks_var_samp_fields)) - ), - - variance: (select) => - new Field( - "variance", - undefined as never, - new SelectionSet(select(bookmarks_variance_fields)) - ), -}; - -export interface Ibookmarks_avg_fields { - readonly __typename: "bookmarks_avg_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_avg_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_avg_fields: bookmarks_avg_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_max_fields { - readonly __typename: "bookmarks_max_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_max_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_max_fields: bookmarks_max_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_min_fields { - readonly __typename: "bookmarks_min_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_min_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_min_fields: bookmarks_min_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_mutation_response { - readonly __typename: "bookmarks_mutation_response"; - readonly affected_rows: number; - readonly returning: ReadonlyArray; -} - -interface bookmarks_mutation_responseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description number of affected rows by the mutation - */ - - readonly affected_rows: () => Field<"affected_rows">; - - /** - * @description data of the affected rows by the mutation - */ - - readonly returning: >( - select: (t: bookmarksSelector) => T - ) => Field<"returning", never, SelectionSet>; -} - -export const bookmarks_mutation_response: bookmarks_mutation_responseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description number of affected rows by the mutation - */ - affected_rows: () => new Field("affected_rows"), - - /** - * @description data of the affected rows by the mutation - */ - - returning: (select) => - new Field( - "returning", - undefined as never, - new SelectionSet(select(bookmarks)) - ), -}; - -export interface Ibookmarks_stddev_fields { - readonly __typename: "bookmarks_stddev_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_stddev_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_stddev_fields: bookmarks_stddev_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_stddev_pop_fields { - readonly __typename: "bookmarks_stddev_pop_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_stddev_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_stddev_pop_fields: bookmarks_stddev_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_stddev_samp_fields { - readonly __typename: "bookmarks_stddev_samp_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_stddev_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_stddev_samp_fields: bookmarks_stddev_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_sum_fields { - readonly __typename: "bookmarks_sum_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_sum_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_sum_fields: bookmarks_sum_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_var_pop_fields { - readonly __typename: "bookmarks_var_pop_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_var_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_var_pop_fields: bookmarks_var_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_var_samp_fields { - readonly __typename: "bookmarks_var_samp_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_var_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_var_samp_fields: bookmarks_var_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Ibookmarks_variance_fields { - readonly __typename: "bookmarks_variance_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; - readonly parent: number | null; -} - -interface bookmarks_variance_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; - - readonly parent: () => Field<"parent">; -} - -export const bookmarks_variance_fields: bookmarks_variance_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), - parent: () => new Field("parent"), -}; - -export interface Imutation_root { - readonly __typename: "mutation_root"; - readonly delete_bookmarks: Ibookmarks_mutation_response | null; - readonly delete_bookmarks_by_pk: Ibookmarks | null; - readonly delete_playlist_items: Iplaylist_items_mutation_response | null; - readonly delete_playlist_items_by_pk: Iplaylist_items | null; - readonly delete_playlists: Iplaylists_mutation_response | null; - readonly delete_playlists_by_pk: Iplaylists | null; - readonly delete_tracks: Itracks_mutation_response | null; - readonly delete_tracks_by_pk: Itracks | null; - readonly delete_users: Iusers_mutation_response | null; - readonly delete_users_by_pk: Iusers | null; - readonly insert_bookmarks: Ibookmarks_mutation_response | null; - readonly insert_bookmarks_one: Ibookmarks | null; - readonly insert_playlist_items: Iplaylist_items_mutation_response | null; - readonly insert_playlist_items_one: Iplaylist_items | null; - readonly insert_playlists: Iplaylists_mutation_response | null; - readonly insert_playlists_one: Iplaylists | null; - readonly insert_tracks: Itracks_mutation_response | null; - readonly insert_tracks_one: Itracks | null; - readonly insert_users: Iusers_mutation_response | null; - readonly insert_users_one: Iusers | null; - readonly update_bookmarks: Ibookmarks_mutation_response | null; - readonly update_bookmarks_by_pk: Ibookmarks | null; - readonly update_playlist_items: Iplaylist_items_mutation_response | null; - readonly update_playlist_items_by_pk: Iplaylist_items | null; - readonly update_playlists: Iplaylists_mutation_response | null; - readonly update_playlists_by_pk: Iplaylists | null; - readonly update_tracks: Itracks_mutation_response | null; - readonly update_tracks_by_pk: Itracks | null; - readonly update_users: Iusers_mutation_response | null; - readonly update_users_by_pk: Iusers | null; -} - -interface mutation_rootSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description delete data from the table: "bookmarks" - */ - - readonly delete_bookmarks: >( - variables: { where?: Variable<"where"> | bookmarks_bool_exp }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => Field< - "delete_bookmarks", - [Argument<"where", Variable<"where"> | bookmarks_bool_exp>], - SelectionSet - >; - - /** - * @description delete single row from the table: "bookmarks" - */ - - readonly delete_bookmarks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: bookmarksSelector) => T - ) => Field< - "delete_bookmarks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description delete data from the table: "playlist_items" - */ - - readonly delete_playlist_items: >( - variables: { where?: Variable<"where"> | playlist_items_bool_exp }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => Field< - "delete_playlist_items", - [Argument<"where", Variable<"where"> | playlist_items_bool_exp>], - SelectionSet - >; - - /** - * @description delete single row from the table: "playlist_items" - */ - - readonly delete_playlist_items_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "delete_playlist_items_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description delete data from the table: "playlists" - */ - - readonly delete_playlists: >( - variables: { where?: Variable<"where"> | playlists_bool_exp }, - select: (t: playlists_mutation_responseSelector) => T - ) => Field< - "delete_playlists", - [Argument<"where", Variable<"where"> | playlists_bool_exp>], - SelectionSet - >; - - /** - * @description delete single row from the table: "playlists" - */ - - readonly delete_playlists_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlistsSelector) => T - ) => Field< - "delete_playlists_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description delete data from the table: "tracks" - */ - - readonly delete_tracks: >( - variables: { where?: Variable<"where"> | tracks_bool_exp }, - select: (t: tracks_mutation_responseSelector) => T - ) => Field< - "delete_tracks", - [Argument<"where", Variable<"where"> | tracks_bool_exp>], - SelectionSet - >; - - /** - * @description delete single row from the table: "tracks" - */ - - readonly delete_tracks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: tracksSelector) => T - ) => Field< - "delete_tracks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description delete data from the table: "users" - */ - - readonly delete_users: >( - variables: { where?: Variable<"where"> | users_bool_exp }, - select: (t: users_mutation_responseSelector) => T - ) => Field< - "delete_users", - [Argument<"where", Variable<"where"> | users_bool_exp>], - SelectionSet - >; - - /** - * @description delete single row from the table: "users" - */ - - readonly delete_users_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: usersSelector) => T - ) => Field< - "delete_users_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description insert data into the table: "bookmarks" - */ - - readonly insert_bookmarks: >( - variables: { - objects?: Variable<"objects"> | bookmarks_insert_input; - on_conflict?: Variable<"on_conflict"> | bookmarks_on_conflict; - }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => Field< - "insert_bookmarks", - [ - Argument<"objects", Variable<"objects"> | bookmarks_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | bookmarks_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert a single row into the table: "bookmarks" - */ - - readonly insert_bookmarks_one: >( - variables: { - object?: Variable<"object"> | bookmarks_insert_input; - on_conflict?: Variable<"on_conflict"> | bookmarks_on_conflict; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "insert_bookmarks_one", - [ - Argument<"object", Variable<"object"> | bookmarks_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | bookmarks_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert data into the table: "playlist_items" - */ - - readonly insert_playlist_items: >( - variables: { - objects?: Variable<"objects"> | playlist_items_insert_input; - on_conflict?: Variable<"on_conflict"> | playlist_items_on_conflict; - }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => Field< - "insert_playlist_items", - [ - Argument<"objects", Variable<"objects"> | playlist_items_insert_input>, - Argument< - "on_conflict", - Variable<"on_conflict"> | playlist_items_on_conflict - > - ], - SelectionSet - >; - - /** - * @description insert a single row into the table: "playlist_items" - */ - - readonly insert_playlist_items_one: >( - variables: { - object?: Variable<"object"> | playlist_items_insert_input; - on_conflict?: Variable<"on_conflict"> | playlist_items_on_conflict; - }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "insert_playlist_items_one", - [ - Argument<"object", Variable<"object"> | playlist_items_insert_input>, - Argument< - "on_conflict", - Variable<"on_conflict"> | playlist_items_on_conflict - > - ], - SelectionSet - >; - - /** - * @description insert data into the table: "playlists" - */ - - readonly insert_playlists: >( - variables: { - objects?: Variable<"objects"> | playlists_insert_input; - on_conflict?: Variable<"on_conflict"> | playlists_on_conflict; - }, - select: (t: playlists_mutation_responseSelector) => T - ) => Field< - "insert_playlists", - [ - Argument<"objects", Variable<"objects"> | playlists_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | playlists_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert a single row into the table: "playlists" - */ - - readonly insert_playlists_one: >( - variables: { - object?: Variable<"object"> | playlists_insert_input; - on_conflict?: Variable<"on_conflict"> | playlists_on_conflict; - }, - select: (t: playlistsSelector) => T - ) => Field< - "insert_playlists_one", - [ - Argument<"object", Variable<"object"> | playlists_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | playlists_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert data into the table: "tracks" - */ - - readonly insert_tracks: >( - variables: { - objects?: Variable<"objects"> | tracks_insert_input; - on_conflict?: Variable<"on_conflict"> | tracks_on_conflict; - }, - select: (t: tracks_mutation_responseSelector) => T - ) => Field< - "insert_tracks", - [ - Argument<"objects", Variable<"objects"> | tracks_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | tracks_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert a single row into the table: "tracks" - */ - - readonly insert_tracks_one: >( - variables: { - object?: Variable<"object"> | tracks_insert_input; - on_conflict?: Variable<"on_conflict"> | tracks_on_conflict; - }, - select: (t: tracksSelector) => T - ) => Field< - "insert_tracks_one", - [ - Argument<"object", Variable<"object"> | tracks_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | tracks_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert data into the table: "users" - */ - - readonly insert_users: >( - variables: { - objects?: Variable<"objects"> | users_insert_input; - on_conflict?: Variable<"on_conflict"> | users_on_conflict; - }, - select: (t: users_mutation_responseSelector) => T - ) => Field< - "insert_users", - [ - Argument<"objects", Variable<"objects"> | users_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | users_on_conflict> - ], - SelectionSet - >; - - /** - * @description insert a single row into the table: "users" - */ - - readonly insert_users_one: >( - variables: { - object?: Variable<"object"> | users_insert_input; - on_conflict?: Variable<"on_conflict"> | users_on_conflict; - }, - select: (t: usersSelector) => T - ) => Field< - "insert_users_one", - [ - Argument<"object", Variable<"object"> | users_insert_input>, - Argument<"on_conflict", Variable<"on_conflict"> | users_on_conflict> - ], - SelectionSet - >; - - /** - * @description update data of the table: "bookmarks" - */ - - readonly update_bookmarks: >( - variables: { - _inc?: Variable<"_inc"> | bookmarks_inc_input; - _set?: Variable<"_set"> | bookmarks_set_input; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => Field< - "update_bookmarks", - [ - Argument<"_inc", Variable<"_inc"> | bookmarks_inc_input>, - Argument<"_set", Variable<"_set"> | bookmarks_set_input>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description update single row of the table: "bookmarks" - */ - - readonly update_bookmarks_by_pk: >( - variables: { - _inc?: Variable<"_inc"> | bookmarks_inc_input; - _set?: Variable<"_set"> | bookmarks_set_input; - pk_columns?: Variable<"pk_columns"> | bookmarks_pk_columns_input; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "update_bookmarks_by_pk", - [ - Argument<"_inc", Variable<"_inc"> | bookmarks_inc_input>, - Argument<"_set", Variable<"_set"> | bookmarks_set_input>, - Argument< - "pk_columns", - Variable<"pk_columns"> | bookmarks_pk_columns_input - > - ], - SelectionSet - >; - - /** - * @description update data of the table: "playlist_items" - */ - - readonly update_playlist_items: >( - variables: { - _inc?: Variable<"_inc"> | playlist_items_inc_input; - _set?: Variable<"_set"> | playlist_items_set_input; - where?: Variable<"where"> | playlist_items_bool_exp; - }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => Field< - "update_playlist_items", - [ - Argument<"_inc", Variable<"_inc"> | playlist_items_inc_input>, - Argument<"_set", Variable<"_set"> | playlist_items_set_input>, - Argument<"where", Variable<"where"> | playlist_items_bool_exp> - ], - SelectionSet - >; - - /** - * @description update single row of the table: "playlist_items" - */ - - readonly update_playlist_items_by_pk: >( - variables: { - _inc?: Variable<"_inc"> | playlist_items_inc_input; - _set?: Variable<"_set"> | playlist_items_set_input; - pk_columns?: Variable<"pk_columns"> | playlist_items_pk_columns_input; - }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "update_playlist_items_by_pk", - [ - Argument<"_inc", Variable<"_inc"> | playlist_items_inc_input>, - Argument<"_set", Variable<"_set"> | playlist_items_set_input>, - Argument< - "pk_columns", - Variable<"pk_columns"> | playlist_items_pk_columns_input - > - ], - SelectionSet - >; - - /** - * @description update data of the table: "playlists" - */ - - readonly update_playlists: >( - variables: { - _inc?: Variable<"_inc"> | playlists_inc_input; - _set?: Variable<"_set"> | playlists_set_input; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlists_mutation_responseSelector) => T - ) => Field< - "update_playlists", - [ - Argument<"_inc", Variable<"_inc"> | playlists_inc_input>, - Argument<"_set", Variable<"_set"> | playlists_set_input>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description update single row of the table: "playlists" - */ - - readonly update_playlists_by_pk: >( - variables: { - _inc?: Variable<"_inc"> | playlists_inc_input; - _set?: Variable<"_set"> | playlists_set_input; - pk_columns?: Variable<"pk_columns"> | playlists_pk_columns_input; - }, - select: (t: playlistsSelector) => T - ) => Field< - "update_playlists_by_pk", - [ - Argument<"_inc", Variable<"_inc"> | playlists_inc_input>, - Argument<"_set", Variable<"_set"> | playlists_set_input>, - Argument< - "pk_columns", - Variable<"pk_columns"> | playlists_pk_columns_input - > - ], - SelectionSet - >; - - /** - * @description update data of the table: "tracks" - */ - - readonly update_tracks: >( - variables: { - _inc?: Variable<"_inc"> | tracks_inc_input; - _set?: Variable<"_set"> | tracks_set_input; - where?: Variable<"where"> | tracks_bool_exp; - }, - select: (t: tracks_mutation_responseSelector) => T - ) => Field< - "update_tracks", - [ - Argument<"_inc", Variable<"_inc"> | tracks_inc_input>, - Argument<"_set", Variable<"_set"> | tracks_set_input>, - Argument<"where", Variable<"where"> | tracks_bool_exp> - ], - SelectionSet - >; - - /** - * @description update single row of the table: "tracks" - */ - - readonly update_tracks_by_pk: >( - variables: { - _inc?: Variable<"_inc"> | tracks_inc_input; - _set?: Variable<"_set"> | tracks_set_input; - pk_columns?: Variable<"pk_columns"> | tracks_pk_columns_input; - }, - select: (t: tracksSelector) => T - ) => Field< - "update_tracks_by_pk", - [ - Argument<"_inc", Variable<"_inc"> | tracks_inc_input>, - Argument<"_set", Variable<"_set"> | tracks_set_input>, - Argument<"pk_columns", Variable<"pk_columns"> | tracks_pk_columns_input> - ], - SelectionSet - >; - - /** - * @description update data of the table: "users" - */ - - readonly update_users: >( - variables: { - _inc?: Variable<"_inc"> | users_inc_input; - _set?: Variable<"_set"> | users_set_input; - where?: Variable<"where"> | users_bool_exp; - }, - select: (t: users_mutation_responseSelector) => T - ) => Field< - "update_users", - [ - Argument<"_inc", Variable<"_inc"> | users_inc_input>, - Argument<"_set", Variable<"_set"> | users_set_input>, - Argument<"where", Variable<"where"> | users_bool_exp> - ], - SelectionSet - >; - - /** - * @description update single row of the table: "users" - */ - - readonly update_users_by_pk: >( - variables: { - _inc?: Variable<"_inc"> | users_inc_input; - _set?: Variable<"_set"> | users_set_input; - pk_columns?: Variable<"pk_columns"> | users_pk_columns_input; - }, - select: (t: usersSelector) => T - ) => Field< - "update_users_by_pk", - [ - Argument<"_inc", Variable<"_inc"> | users_inc_input>, - Argument<"_set", Variable<"_set"> | users_set_input>, - Argument<"pk_columns", Variable<"pk_columns"> | users_pk_columns_input> - ], - SelectionSet - >; -} - -export const mutation_root: mutation_rootSelector = { - __typename: () => new Field("__typename"), - - /** - * @description delete data from the table: "bookmarks" - */ - - delete_bookmarks: (variables, select) => - new Field( - "delete_bookmarks", - [new Argument("where", variables.where, _ENUM_VALUES)], - new SelectionSet(select(bookmarks_mutation_response)) - ), - - /** - * @description delete single row from the table: "bookmarks" - */ - - delete_bookmarks_by_pk: (variables, select) => - new Field( - "delete_bookmarks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description delete data from the table: "playlist_items" - */ - - delete_playlist_items: (variables, select) => - new Field( - "delete_playlist_items", - [new Argument("where", variables.where, _ENUM_VALUES)], - new SelectionSet(select(playlist_items_mutation_response)) - ), - - /** - * @description delete single row from the table: "playlist_items" - */ - - delete_playlist_items_by_pk: (variables, select) => - new Field( - "delete_playlist_items_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description delete data from the table: "playlists" - */ - - delete_playlists: (variables, select) => - new Field( - "delete_playlists", - [new Argument("where", variables.where, _ENUM_VALUES)], - new SelectionSet(select(playlists_mutation_response)) - ), - - /** - * @description delete single row from the table: "playlists" - */ - - delete_playlists_by_pk: (variables, select) => - new Field( - "delete_playlists_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlists)) - ), - - /** - * @description delete data from the table: "tracks" - */ - - delete_tracks: (variables, select) => - new Field( - "delete_tracks", - [new Argument("where", variables.where, _ENUM_VALUES)], - new SelectionSet(select(tracks_mutation_response)) - ), - - /** - * @description delete single row from the table: "tracks" - */ - - delete_tracks_by_pk: (variables, select) => - new Field( - "delete_tracks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(tracks)) - ), - - /** - * @description delete data from the table: "users" - */ - - delete_users: (variables, select) => - new Field( - "delete_users", - [new Argument("where", variables.where, _ENUM_VALUES)], - new SelectionSet(select(users_mutation_response)) - ), - - /** - * @description delete single row from the table: "users" - */ - - delete_users_by_pk: (variables, select) => - new Field( - "delete_users_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(users)) - ), - - /** - * @description insert data into the table: "bookmarks" - */ - - insert_bookmarks: (variables, select) => - new Field( - "insert_bookmarks", - [ - new Argument("objects", variables.objects, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_mutation_response)) - ), - - /** - * @description insert a single row into the table: "bookmarks" - */ - - insert_bookmarks_one: (variables, select) => - new Field( - "insert_bookmarks_one", - [ - new Argument("object", variables.object, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description insert data into the table: "playlist_items" - */ - - insert_playlist_items: (variables, select) => - new Field( - "insert_playlist_items", - [ - new Argument("objects", variables.objects, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items_mutation_response)) - ), - - /** - * @description insert a single row into the table: "playlist_items" - */ - - insert_playlist_items_one: (variables, select) => - new Field( - "insert_playlist_items_one", - [ - new Argument("object", variables.object, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description insert data into the table: "playlists" - */ - - insert_playlists: (variables, select) => - new Field( - "insert_playlists", - [ - new Argument("objects", variables.objects, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(playlists_mutation_response)) - ), - - /** - * @description insert a single row into the table: "playlists" - */ - - insert_playlists_one: (variables, select) => - new Field( - "insert_playlists_one", - [ - new Argument("object", variables.object, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(playlists)) - ), - - /** - * @description insert data into the table: "tracks" - */ - - insert_tracks: (variables, select) => - new Field( - "insert_tracks", - [ - new Argument("objects", variables.objects, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(tracks_mutation_response)) - ), - - /** - * @description insert a single row into the table: "tracks" - */ - - insert_tracks_one: (variables, select) => - new Field( - "insert_tracks_one", - [ - new Argument("object", variables.object, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(tracks)) - ), - - /** - * @description insert data into the table: "users" - */ - - insert_users: (variables, select) => - new Field( - "insert_users", - [ - new Argument("objects", variables.objects, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(users_mutation_response)) - ), - - /** - * @description insert a single row into the table: "users" - */ - - insert_users_one: (variables, select) => - new Field( - "insert_users_one", - [ - new Argument("object", variables.object, _ENUM_VALUES), - new Argument("on_conflict", variables.on_conflict, _ENUM_VALUES), - ], - new SelectionSet(select(users)) - ), - - /** - * @description update data of the table: "bookmarks" - */ - - update_bookmarks: (variables, select) => - new Field( - "update_bookmarks", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_mutation_response)) - ), - - /** - * @description update single row of the table: "bookmarks" - */ - - update_bookmarks_by_pk: (variables, select) => - new Field( - "update_bookmarks_by_pk", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("pk_columns", variables.pk_columns, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description update data of the table: "playlist_items" - */ - - update_playlist_items: (variables, select) => - new Field( - "update_playlist_items", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items_mutation_response)) - ), - - /** - * @description update single row of the table: "playlist_items" - */ - - update_playlist_items_by_pk: (variables, select) => - new Field( - "update_playlist_items_by_pk", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("pk_columns", variables.pk_columns, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description update data of the table: "playlists" - */ - - update_playlists: (variables, select) => - new Field( - "update_playlists", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists_mutation_response)) - ), - - /** - * @description update single row of the table: "playlists" - */ - - update_playlists_by_pk: (variables, select) => - new Field( - "update_playlists_by_pk", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("pk_columns", variables.pk_columns, _ENUM_VALUES), - ], - new SelectionSet(select(playlists)) - ), - - /** - * @description update data of the table: "tracks" - */ - - update_tracks: (variables, select) => - new Field( - "update_tracks", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(tracks_mutation_response)) - ), - - /** - * @description update single row of the table: "tracks" - */ - - update_tracks_by_pk: (variables, select) => - new Field( - "update_tracks_by_pk", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("pk_columns", variables.pk_columns, _ENUM_VALUES), - ], - new SelectionSet(select(tracks)) - ), - - /** - * @description update data of the table: "users" - */ - - update_users: (variables, select) => - new Field( - "update_users", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(users_mutation_response)) - ), - - /** - * @description update single row of the table: "users" - */ - - update_users_by_pk: (variables, select) => - new Field( - "update_users_by_pk", - [ - new Argument("_inc", variables._inc, _ENUM_VALUES), - new Argument("_set", variables._set, _ENUM_VALUES), - new Argument("pk_columns", variables.pk_columns, _ENUM_VALUES), - ], - new SelectionSet(select(users)) - ), -}; - -export interface Iplaylist_items { - readonly __typename: "playlist_items"; - readonly createdUtc: unknown | null; - readonly id: number; - readonly playlistId: number; - readonly position: number; - readonly trackId: number; -} - -interface playlist_itemsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items: playlist_itemsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_aggregate { - readonly __typename: "playlist_items_aggregate"; - readonly aggregate: Iplaylist_items_aggregate_fields | null; - readonly nodes: ReadonlyArray; -} - -interface playlist_items_aggregateSelector { - readonly __typename: () => Field<"__typename">; - - readonly aggregate: >( - select: (t: playlist_items_aggregate_fieldsSelector) => T - ) => Field<"aggregate", never, SelectionSet>; - - readonly nodes: >( - select: (t: playlist_itemsSelector) => T - ) => Field<"nodes", never, SelectionSet>; -} - -export const playlist_items_aggregate: playlist_items_aggregateSelector = { - __typename: () => new Field("__typename"), - - aggregate: (select) => - new Field( - "aggregate", - undefined as never, - new SelectionSet(select(playlist_items_aggregate_fields)) - ), - - nodes: (select) => - new Field( - "nodes", - undefined as never, - new SelectionSet(select(playlist_items)) - ), -}; - -export interface Iplaylist_items_aggregate_fields { - readonly __typename: "playlist_items_aggregate_fields"; - readonly avg: Iplaylist_items_avg_fields | null; - readonly count: number | null; - readonly max: Iplaylist_items_max_fields | null; - readonly min: Iplaylist_items_min_fields | null; - readonly stddev: Iplaylist_items_stddev_fields | null; - readonly stddev_pop: Iplaylist_items_stddev_pop_fields | null; - readonly stddev_samp: Iplaylist_items_stddev_samp_fields | null; - readonly sum: Iplaylist_items_sum_fields | null; - readonly var_pop: Iplaylist_items_var_pop_fields | null; - readonly var_samp: Iplaylist_items_var_samp_fields | null; - readonly variance: Iplaylist_items_variance_fields | null; -} - -interface playlist_items_aggregate_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly avg: >( - select: (t: playlist_items_avg_fieldsSelector) => T - ) => Field<"avg", never, SelectionSet>; - - readonly count: (variables: { - columns?: Variable<"columns"> | playlist_items_select_column; - distinct?: Variable<"distinct"> | boolean; - }) => Field< - "count", - [ - Argument<"columns", Variable<"columns"> | playlist_items_select_column>, - Argument<"distinct", Variable<"distinct"> | boolean> - ] - >; - - readonly max: >( - select: (t: playlist_items_max_fieldsSelector) => T - ) => Field<"max", never, SelectionSet>; - - readonly min: >( - select: (t: playlist_items_min_fieldsSelector) => T - ) => Field<"min", never, SelectionSet>; - - readonly stddev: >( - select: (t: playlist_items_stddev_fieldsSelector) => T - ) => Field<"stddev", never, SelectionSet>; - - readonly stddev_pop: >( - select: (t: playlist_items_stddev_pop_fieldsSelector) => T - ) => Field<"stddev_pop", never, SelectionSet>; - - readonly stddev_samp: >( - select: (t: playlist_items_stddev_samp_fieldsSelector) => T - ) => Field<"stddev_samp", never, SelectionSet>; - - readonly sum: >( - select: (t: playlist_items_sum_fieldsSelector) => T - ) => Field<"sum", never, SelectionSet>; - - readonly var_pop: >( - select: (t: playlist_items_var_pop_fieldsSelector) => T - ) => Field<"var_pop", never, SelectionSet>; - - readonly var_samp: >( - select: (t: playlist_items_var_samp_fieldsSelector) => T - ) => Field<"var_samp", never, SelectionSet>; - - readonly variance: >( - select: (t: playlist_items_variance_fieldsSelector) => T - ) => Field<"variance", never, SelectionSet>; -} - -export const playlist_items_aggregate_fields: playlist_items_aggregate_fieldsSelector = { - __typename: () => new Field("__typename"), - - avg: (select) => - new Field( - "avg", - undefined as never, - new SelectionSet(select(playlist_items_avg_fields)) - ), - - count: (variables) => new Field("count"), - - max: (select) => - new Field( - "max", - undefined as never, - new SelectionSet(select(playlist_items_max_fields)) - ), - - min: (select) => - new Field( - "min", - undefined as never, - new SelectionSet(select(playlist_items_min_fields)) - ), - - stddev: (select) => - new Field( - "stddev", - undefined as never, - new SelectionSet(select(playlist_items_stddev_fields)) - ), - - stddev_pop: (select) => - new Field( - "stddev_pop", - undefined as never, - new SelectionSet(select(playlist_items_stddev_pop_fields)) - ), - - stddev_samp: (select) => - new Field( - "stddev_samp", - undefined as never, - new SelectionSet(select(playlist_items_stddev_samp_fields)) - ), - - sum: (select) => - new Field( - "sum", - undefined as never, - new SelectionSet(select(playlist_items_sum_fields)) - ), - - var_pop: (select) => - new Field( - "var_pop", - undefined as never, - new SelectionSet(select(playlist_items_var_pop_fields)) - ), - - var_samp: (select) => - new Field( - "var_samp", - undefined as never, - new SelectionSet(select(playlist_items_var_samp_fields)) - ), - - variance: (select) => - new Field( - "variance", - undefined as never, - new SelectionSet(select(playlist_items_variance_fields)) - ), -}; - -export interface Iplaylist_items_avg_fields { - readonly __typename: "playlist_items_avg_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_avg_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_avg_fields: playlist_items_avg_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_max_fields { - readonly __typename: "playlist_items_max_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_max_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_max_fields: playlist_items_max_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_min_fields { - readonly __typename: "playlist_items_min_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_min_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_min_fields: playlist_items_min_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_mutation_response { - readonly __typename: "playlist_items_mutation_response"; - readonly affected_rows: number; - readonly returning: ReadonlyArray; -} - -interface playlist_items_mutation_responseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description number of affected rows by the mutation - */ - - readonly affected_rows: () => Field<"affected_rows">; - - /** - * @description data of the affected rows by the mutation - */ - - readonly returning: >( - select: (t: playlist_itemsSelector) => T - ) => Field<"returning", never, SelectionSet>; -} - -export const playlist_items_mutation_response: playlist_items_mutation_responseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description number of affected rows by the mutation - */ - affected_rows: () => new Field("affected_rows"), - - /** - * @description data of the affected rows by the mutation - */ - - returning: (select) => - new Field( - "returning", - undefined as never, - new SelectionSet(select(playlist_items)) - ), -}; - -export interface Iplaylist_items_stddev_fields { - readonly __typename: "playlist_items_stddev_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_stddev_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_stddev_fields: playlist_items_stddev_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_stddev_pop_fields { - readonly __typename: "playlist_items_stddev_pop_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_stddev_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_stddev_pop_fields: playlist_items_stddev_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_stddev_samp_fields { - readonly __typename: "playlist_items_stddev_samp_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_stddev_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_stddev_samp_fields: playlist_items_stddev_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_sum_fields { - readonly __typename: "playlist_items_sum_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_sum_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_sum_fields: playlist_items_sum_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_var_pop_fields { - readonly __typename: "playlist_items_var_pop_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_var_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_var_pop_fields: playlist_items_var_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_var_samp_fields { - readonly __typename: "playlist_items_var_samp_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_var_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_var_samp_fields: playlist_items_var_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylist_items_variance_fields { - readonly __typename: "playlist_items_variance_fields"; - readonly id: number | null; - readonly playlistId: number | null; - readonly position: number | null; - readonly trackId: number | null; -} - -interface playlist_items_variance_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly playlistId: () => Field<"playlistId">; - - readonly position: () => Field<"position">; - - readonly trackId: () => Field<"trackId">; -} - -export const playlist_items_variance_fields: playlist_items_variance_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - playlistId: () => new Field("playlistId"), - position: () => new Field("position"), - trackId: () => new Field("trackId"), -}; - -export interface Iplaylists { - readonly __typename: "playlists"; - readonly createdUtc: unknown | null; - readonly id: number; - readonly name: string; - readonly ownerUserId: number; -} - -interface playlistsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists: playlistsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_aggregate { - readonly __typename: "playlists_aggregate"; - readonly aggregate: Iplaylists_aggregate_fields | null; - readonly nodes: ReadonlyArray; -} - -interface playlists_aggregateSelector { - readonly __typename: () => Field<"__typename">; - - readonly aggregate: >( - select: (t: playlists_aggregate_fieldsSelector) => T - ) => Field<"aggregate", never, SelectionSet>; - - readonly nodes: >( - select: (t: playlistsSelector) => T - ) => Field<"nodes", never, SelectionSet>; -} - -export const playlists_aggregate: playlists_aggregateSelector = { - __typename: () => new Field("__typename"), - - aggregate: (select) => - new Field( - "aggregate", - undefined as never, - new SelectionSet(select(playlists_aggregate_fields)) - ), - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(playlists))), -}; - -export interface Iplaylists_aggregate_fields { - readonly __typename: "playlists_aggregate_fields"; - readonly avg: Iplaylists_avg_fields | null; - readonly count: number | null; - readonly max: Iplaylists_max_fields | null; - readonly min: Iplaylists_min_fields | null; - readonly stddev: Iplaylists_stddev_fields | null; - readonly stddev_pop: Iplaylists_stddev_pop_fields | null; - readonly stddev_samp: Iplaylists_stddev_samp_fields | null; - readonly sum: Iplaylists_sum_fields | null; - readonly var_pop: Iplaylists_var_pop_fields | null; - readonly var_samp: Iplaylists_var_samp_fields | null; - readonly variance: Iplaylists_variance_fields | null; -} - -interface playlists_aggregate_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly avg: >( - select: (t: playlists_avg_fieldsSelector) => T - ) => Field<"avg", never, SelectionSet>; - - readonly count: (variables: { - columns?: Variable<"columns"> | playlists_select_column; - distinct?: Variable<"distinct"> | boolean; - }) => Field< - "count", - [ - Argument<"columns", Variable<"columns"> | playlists_select_column>, - Argument<"distinct", Variable<"distinct"> | boolean> - ] - >; - - readonly max: >( - select: (t: playlists_max_fieldsSelector) => T - ) => Field<"max", never, SelectionSet>; - - readonly min: >( - select: (t: playlists_min_fieldsSelector) => T - ) => Field<"min", never, SelectionSet>; - - readonly stddev: >( - select: (t: playlists_stddev_fieldsSelector) => T - ) => Field<"stddev", never, SelectionSet>; - - readonly stddev_pop: >( - select: (t: playlists_stddev_pop_fieldsSelector) => T - ) => Field<"stddev_pop", never, SelectionSet>; - - readonly stddev_samp: >( - select: (t: playlists_stddev_samp_fieldsSelector) => T - ) => Field<"stddev_samp", never, SelectionSet>; - - readonly sum: >( - select: (t: playlists_sum_fieldsSelector) => T - ) => Field<"sum", never, SelectionSet>; - - readonly var_pop: >( - select: (t: playlists_var_pop_fieldsSelector) => T - ) => Field<"var_pop", never, SelectionSet>; - - readonly var_samp: >( - select: (t: playlists_var_samp_fieldsSelector) => T - ) => Field<"var_samp", never, SelectionSet>; - - readonly variance: >( - select: (t: playlists_variance_fieldsSelector) => T - ) => Field<"variance", never, SelectionSet>; -} - -export const playlists_aggregate_fields: playlists_aggregate_fieldsSelector = { - __typename: () => new Field("__typename"), - - avg: (select) => - new Field( - "avg", - undefined as never, - new SelectionSet(select(playlists_avg_fields)) - ), - - count: (variables) => new Field("count"), - - max: (select) => - new Field( - "max", - undefined as never, - new SelectionSet(select(playlists_max_fields)) - ), - - min: (select) => - new Field( - "min", - undefined as never, - new SelectionSet(select(playlists_min_fields)) - ), - - stddev: (select) => - new Field( - "stddev", - undefined as never, - new SelectionSet(select(playlists_stddev_fields)) - ), - - stddev_pop: (select) => - new Field( - "stddev_pop", - undefined as never, - new SelectionSet(select(playlists_stddev_pop_fields)) - ), - - stddev_samp: (select) => - new Field( - "stddev_samp", - undefined as never, - new SelectionSet(select(playlists_stddev_samp_fields)) - ), - - sum: (select) => - new Field( - "sum", - undefined as never, - new SelectionSet(select(playlists_sum_fields)) - ), - - var_pop: (select) => - new Field( - "var_pop", - undefined as never, - new SelectionSet(select(playlists_var_pop_fields)) - ), - - var_samp: (select) => - new Field( - "var_samp", - undefined as never, - new SelectionSet(select(playlists_var_samp_fields)) - ), - - variance: (select) => - new Field( - "variance", - undefined as never, - new SelectionSet(select(playlists_variance_fields)) - ), -}; - -export interface Iplaylists_avg_fields { - readonly __typename: "playlists_avg_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_avg_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_avg_fields: playlists_avg_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_max_fields { - readonly __typename: "playlists_max_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly ownerUserId: number | null; -} - -interface playlists_max_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_max_fields: playlists_max_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_min_fields { - readonly __typename: "playlists_min_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly ownerUserId: number | null; -} - -interface playlists_min_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_min_fields: playlists_min_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_mutation_response { - readonly __typename: "playlists_mutation_response"; - readonly affected_rows: number; - readonly returning: ReadonlyArray; -} - -interface playlists_mutation_responseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description number of affected rows by the mutation - */ - - readonly affected_rows: () => Field<"affected_rows">; - - /** - * @description data of the affected rows by the mutation - */ - - readonly returning: >( - select: (t: playlistsSelector) => T - ) => Field<"returning", never, SelectionSet>; -} - -export const playlists_mutation_response: playlists_mutation_responseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description number of affected rows by the mutation - */ - affected_rows: () => new Field("affected_rows"), - - /** - * @description data of the affected rows by the mutation - */ - - returning: (select) => - new Field( - "returning", - undefined as never, - new SelectionSet(select(playlists)) - ), -}; - -export interface Iplaylists_stddev_fields { - readonly __typename: "playlists_stddev_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_stddev_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_stddev_fields: playlists_stddev_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_stddev_pop_fields { - readonly __typename: "playlists_stddev_pop_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_stddev_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_stddev_pop_fields: playlists_stddev_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_stddev_samp_fields { - readonly __typename: "playlists_stddev_samp_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_stddev_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_stddev_samp_fields: playlists_stddev_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_sum_fields { - readonly __typename: "playlists_sum_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_sum_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_sum_fields: playlists_sum_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_var_pop_fields { - readonly __typename: "playlists_var_pop_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_var_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_var_pop_fields: playlists_var_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_var_samp_fields { - readonly __typename: "playlists_var_samp_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_var_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_var_samp_fields: playlists_var_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iplaylists_variance_fields { - readonly __typename: "playlists_variance_fields"; - readonly id: number | null; - readonly ownerUserId: number | null; -} - -interface playlists_variance_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; - - readonly ownerUserId: () => Field<"ownerUserId">; -} - -export const playlists_variance_fields: playlists_variance_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), - ownerUserId: () => new Field("ownerUserId"), -}; - -export interface Iquery_root { - readonly __typename: "query_root"; - readonly bookmarks: ReadonlyArray; - readonly bookmarks_aggregate: Ibookmarks_aggregate; - readonly bookmarks_by_pk: Ibookmarks | null; - readonly playlist_items: ReadonlyArray; - readonly playlist_items_aggregate: Iplaylist_items_aggregate; - readonly playlist_items_by_pk: Iplaylist_items | null; - readonly playlists: ReadonlyArray; - readonly playlists_aggregate: Iplaylists_aggregate; - readonly playlists_by_pk: Iplaylists | null; - readonly tracks: ReadonlyArray; - readonly tracks_aggregate: Itracks_aggregate; - readonly tracks_by_pk: Itracks | null; - readonly users: ReadonlyArray; - readonly users_aggregate: Iusers_aggregate; - readonly users_by_pk: Iusers | null; -} - -interface query_rootSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description fetch data from the table: "bookmarks" - */ - - readonly bookmarks: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "bookmarks", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - readonly bookmarks_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => Field< - "bookmarks_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - readonly bookmarks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: bookmarksSelector) => T - ) => Field< - "bookmarks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlist_items" - */ - - readonly playlist_items: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlist_items_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlist_items_order_by; - where?: Variable<"where"> | playlist_items_bool_exp; - }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "playlist_items", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlist_items_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlist_items_order_by>, - Argument<"where", Variable<"where"> | playlist_items_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - readonly playlist_items_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlist_items_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlist_items_order_by; - where?: Variable<"where"> | playlist_items_bool_exp; - }, - select: (t: playlist_items_aggregateSelector) => T - ) => Field< - "playlist_items_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlist_items_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlist_items_order_by>, - Argument<"where", Variable<"where"> | playlist_items_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - readonly playlist_items_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "playlist_items_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlists" - */ - - readonly playlists: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlistsSelector) => T - ) => Field< - "playlists", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - readonly playlists_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlists_aggregateSelector) => T - ) => Field< - "playlists_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - readonly playlists_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlistsSelector) => T - ) => Field< - "playlists_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "tracks" - */ - - readonly tracks: >( - variables: { - distinct_on?: Variable<"distinct_on"> | tracks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | tracks_order_by; - where?: Variable<"where"> | tracks_bool_exp; - }, - select: (t: tracksSelector) => T - ) => Field< - "tracks", - [ - Argument<"distinct_on", Variable<"distinct_on"> | tracks_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | tracks_order_by>, - Argument<"where", Variable<"where"> | tracks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - readonly tracks_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | tracks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | tracks_order_by; - where?: Variable<"where"> | tracks_bool_exp; - }, - select: (t: tracks_aggregateSelector) => T - ) => Field< - "tracks_aggregate", - [ - Argument<"distinct_on", Variable<"distinct_on"> | tracks_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | tracks_order_by>, - Argument<"where", Variable<"where"> | tracks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - readonly tracks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: tracksSelector) => T - ) => Field< - "tracks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "users" - */ - - readonly users: >( - variables: { - distinct_on?: Variable<"distinct_on"> | users_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | users_order_by; - where?: Variable<"where"> | users_bool_exp; - }, - select: (t: usersSelector) => T - ) => Field< - "users", - [ - Argument<"distinct_on", Variable<"distinct_on"> | users_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | users_order_by>, - Argument<"where", Variable<"where"> | users_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "users" - */ - - readonly users_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | users_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | users_order_by; - where?: Variable<"where"> | users_bool_exp; - }, - select: (t: users_aggregateSelector) => T - ) => Field< - "users_aggregate", - [ - Argument<"distinct_on", Variable<"distinct_on"> | users_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | users_order_by>, - Argument<"where", Variable<"where"> | users_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - readonly users_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: usersSelector) => T - ) => Field< - "users_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; -} - -export const query_root: query_rootSelector = { - __typename: () => new Field("__typename"), - - /** - * @description fetch data from the table: "bookmarks" - */ - - bookmarks: (variables, select) => - new Field( - "bookmarks", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - bookmarks_aggregate: (variables, select) => - new Field( - "bookmarks_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_aggregate)) - ), - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - bookmarks_by_pk: (variables, select) => - new Field( - "bookmarks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description fetch data from the table: "playlist_items" - */ - - playlist_items: (variables, select) => - new Field( - "playlist_items", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - playlist_items_aggregate: (variables, select) => - new Field( - "playlist_items_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items_aggregate)) - ), - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - playlist_items_by_pk: (variables, select) => - new Field( - "playlist_items_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description fetch data from the table: "playlists" - */ - - playlists: (variables, select) => - new Field( - "playlists", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists)) - ), - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - playlists_aggregate: (variables, select) => - new Field( - "playlists_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists_aggregate)) - ), - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - playlists_by_pk: (variables, select) => - new Field( - "playlists_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlists)) - ), - - /** - * @description fetch data from the table: "tracks" - */ - - tracks: (variables, select) => - new Field( - "tracks", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(tracks)) - ), - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - tracks_aggregate: (variables, select) => - new Field( - "tracks_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(tracks_aggregate)) - ), - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - tracks_by_pk: (variables, select) => - new Field( - "tracks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(tracks)) - ), - - /** - * @description fetch data from the table: "users" - */ - - users: (variables, select) => - new Field( - "users", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(users)) - ), - - /** - * @description fetch aggregated fields from the table: "users" - */ - - users_aggregate: (variables, select) => - new Field( - "users_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(users_aggregate)) - ), - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - users_by_pk: (variables, select) => - new Field( - "users_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(users)) - ), -}; - -export interface Isubscription_root { - readonly __typename: "subscription_root"; - readonly bookmarks: ReadonlyArray; - readonly bookmarks_aggregate: Ibookmarks_aggregate; - readonly bookmarks_by_pk: Ibookmarks | null; - readonly playlist_items: ReadonlyArray; - readonly playlist_items_aggregate: Iplaylist_items_aggregate; - readonly playlist_items_by_pk: Iplaylist_items | null; - readonly playlists: ReadonlyArray; - readonly playlists_aggregate: Iplaylists_aggregate; - readonly playlists_by_pk: Iplaylists | null; - readonly tracks: ReadonlyArray; - readonly tracks_aggregate: Itracks_aggregate; - readonly tracks_by_pk: Itracks | null; - readonly users: ReadonlyArray; - readonly users_aggregate: Iusers_aggregate; - readonly users_by_pk: Iusers | null; -} - -interface subscription_rootSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description fetch data from the table: "bookmarks" - */ - - readonly bookmarks: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "bookmarks", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - readonly bookmarks_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => Field< - "bookmarks_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - readonly bookmarks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: bookmarksSelector) => T - ) => Field< - "bookmarks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlist_items" - */ - - readonly playlist_items: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlist_items_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlist_items_order_by; - where?: Variable<"where"> | playlist_items_bool_exp; - }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "playlist_items", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlist_items_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlist_items_order_by>, - Argument<"where", Variable<"where"> | playlist_items_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - readonly playlist_items_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlist_items_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlist_items_order_by; - where?: Variable<"where"> | playlist_items_bool_exp; - }, - select: (t: playlist_items_aggregateSelector) => T - ) => Field< - "playlist_items_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlist_items_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlist_items_order_by>, - Argument<"where", Variable<"where"> | playlist_items_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - readonly playlist_items_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlist_itemsSelector) => T - ) => Field< - "playlist_items_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlists" - */ - - readonly playlists: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlistsSelector) => T - ) => Field< - "playlists", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - readonly playlists_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlists_aggregateSelector) => T - ) => Field< - "playlists_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - readonly playlists_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: playlistsSelector) => T - ) => Field< - "playlists_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "tracks" - */ - - readonly tracks: >( - variables: { - distinct_on?: Variable<"distinct_on"> | tracks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | tracks_order_by; - where?: Variable<"where"> | tracks_bool_exp; - }, - select: (t: tracksSelector) => T - ) => Field< - "tracks", - [ - Argument<"distinct_on", Variable<"distinct_on"> | tracks_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | tracks_order_by>, - Argument<"where", Variable<"where"> | tracks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - readonly tracks_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | tracks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | tracks_order_by; - where?: Variable<"where"> | tracks_bool_exp; - }, - select: (t: tracks_aggregateSelector) => T - ) => Field< - "tracks_aggregate", - [ - Argument<"distinct_on", Variable<"distinct_on"> | tracks_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | tracks_order_by>, - Argument<"where", Variable<"where"> | tracks_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - readonly tracks_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: tracksSelector) => T - ) => Field< - "tracks_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; - - /** - * @description fetch data from the table: "users" - */ - - readonly users: >( - variables: { - distinct_on?: Variable<"distinct_on"> | users_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | users_order_by; - where?: Variable<"where"> | users_bool_exp; - }, - select: (t: usersSelector) => T - ) => Field< - "users", - [ - Argument<"distinct_on", Variable<"distinct_on"> | users_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | users_order_by>, - Argument<"where", Variable<"where"> | users_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch aggregated fields from the table: "users" - */ - - readonly users_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | users_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | users_order_by; - where?: Variable<"where"> | users_bool_exp; - }, - select: (t: users_aggregateSelector) => T - ) => Field< - "users_aggregate", - [ - Argument<"distinct_on", Variable<"distinct_on"> | users_select_column>, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | users_order_by>, - Argument<"where", Variable<"where"> | users_bool_exp> - ], - SelectionSet - >; - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - readonly users_by_pk: >( - variables: { id?: Variable<"id"> | number }, - select: (t: usersSelector) => T - ) => Field< - "users_by_pk", - [Argument<"id", Variable<"id"> | number>], - SelectionSet - >; -} - -export const subscription_root: subscription_rootSelector = { - __typename: () => new Field("__typename"), - - /** - * @description fetch data from the table: "bookmarks" - */ - - bookmarks: (variables, select) => - new Field( - "bookmarks", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - bookmarks_aggregate: (variables, select) => - new Field( - "bookmarks_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_aggregate)) - ), - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - bookmarks_by_pk: (variables, select) => - new Field( - "bookmarks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description fetch data from the table: "playlist_items" - */ - - playlist_items: (variables, select) => - new Field( - "playlist_items", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - playlist_items_aggregate: (variables, select) => - new Field( - "playlist_items_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlist_items_aggregate)) - ), - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - playlist_items_by_pk: (variables, select) => - new Field( - "playlist_items_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlist_items)) - ), - - /** - * @description fetch data from the table: "playlists" - */ - - playlists: (variables, select) => - new Field( - "playlists", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists)) - ), - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - playlists_aggregate: (variables, select) => - new Field( - "playlists_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists_aggregate)) - ), - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - playlists_by_pk: (variables, select) => - new Field( - "playlists_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(playlists)) - ), - - /** - * @description fetch data from the table: "tracks" - */ - - tracks: (variables, select) => - new Field( - "tracks", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(tracks)) - ), - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - tracks_aggregate: (variables, select) => - new Field( - "tracks_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(tracks_aggregate)) - ), - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - tracks_by_pk: (variables, select) => - new Field( - "tracks_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(tracks)) - ), - - /** - * @description fetch data from the table: "users" - */ - - users: (variables, select) => - new Field( - "users", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(users)) - ), - - /** - * @description fetch aggregated fields from the table: "users" - */ - - users_aggregate: (variables, select) => - new Field( - "users_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(users_aggregate)) - ), - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - users_by_pk: (variables, select) => - new Field( - "users_by_pk", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(users)) - ), -}; - -export interface Itracks { - readonly __typename: "tracks"; - readonly createdUtc: unknown; - readonly id: number; - readonly name: string; - readonly napsterId: string | null; -} - -interface tracksSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly napsterId: () => Field<"napsterId">; -} - -export const tracks: tracksSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - napsterId: () => new Field("napsterId"), -}; - -export interface Itracks_aggregate { - readonly __typename: "tracks_aggregate"; - readonly aggregate: Itracks_aggregate_fields | null; - readonly nodes: ReadonlyArray; -} - -interface tracks_aggregateSelector { - readonly __typename: () => Field<"__typename">; - - readonly aggregate: >( - select: (t: tracks_aggregate_fieldsSelector) => T - ) => Field<"aggregate", never, SelectionSet>; - - readonly nodes: >( - select: (t: tracksSelector) => T - ) => Field<"nodes", never, SelectionSet>; -} - -export const tracks_aggregate: tracks_aggregateSelector = { - __typename: () => new Field("__typename"), - - aggregate: (select) => - new Field( - "aggregate", - undefined as never, - new SelectionSet(select(tracks_aggregate_fields)) - ), - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(tracks))), -}; - -export interface Itracks_aggregate_fields { - readonly __typename: "tracks_aggregate_fields"; - readonly avg: Itracks_avg_fields | null; - readonly count: number | null; - readonly max: Itracks_max_fields | null; - readonly min: Itracks_min_fields | null; - readonly stddev: Itracks_stddev_fields | null; - readonly stddev_pop: Itracks_stddev_pop_fields | null; - readonly stddev_samp: Itracks_stddev_samp_fields | null; - readonly sum: Itracks_sum_fields | null; - readonly var_pop: Itracks_var_pop_fields | null; - readonly var_samp: Itracks_var_samp_fields | null; - readonly variance: Itracks_variance_fields | null; -} - -interface tracks_aggregate_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly avg: >( - select: (t: tracks_avg_fieldsSelector) => T - ) => Field<"avg", never, SelectionSet>; - - readonly count: (variables: { - columns?: Variable<"columns"> | tracks_select_column; - distinct?: Variable<"distinct"> | boolean; - }) => Field< - "count", - [ - Argument<"columns", Variable<"columns"> | tracks_select_column>, - Argument<"distinct", Variable<"distinct"> | boolean> - ] - >; - - readonly max: >( - select: (t: tracks_max_fieldsSelector) => T - ) => Field<"max", never, SelectionSet>; - - readonly min: >( - select: (t: tracks_min_fieldsSelector) => T - ) => Field<"min", never, SelectionSet>; - - readonly stddev: >( - select: (t: tracks_stddev_fieldsSelector) => T - ) => Field<"stddev", never, SelectionSet>; - - readonly stddev_pop: >( - select: (t: tracks_stddev_pop_fieldsSelector) => T - ) => Field<"stddev_pop", never, SelectionSet>; - - readonly stddev_samp: >( - select: (t: tracks_stddev_samp_fieldsSelector) => T - ) => Field<"stddev_samp", never, SelectionSet>; - - readonly sum: >( - select: (t: tracks_sum_fieldsSelector) => T - ) => Field<"sum", never, SelectionSet>; - - readonly var_pop: >( - select: (t: tracks_var_pop_fieldsSelector) => T - ) => Field<"var_pop", never, SelectionSet>; - - readonly var_samp: >( - select: (t: tracks_var_samp_fieldsSelector) => T - ) => Field<"var_samp", never, SelectionSet>; - - readonly variance: >( - select: (t: tracks_variance_fieldsSelector) => T - ) => Field<"variance", never, SelectionSet>; -} - -export const tracks_aggregate_fields: tracks_aggregate_fieldsSelector = { - __typename: () => new Field("__typename"), - - avg: (select) => - new Field( - "avg", - undefined as never, - new SelectionSet(select(tracks_avg_fields)) - ), - - count: (variables) => new Field("count"), - - max: (select) => - new Field( - "max", - undefined as never, - new SelectionSet(select(tracks_max_fields)) - ), - - min: (select) => - new Field( - "min", - undefined as never, - new SelectionSet(select(tracks_min_fields)) - ), - - stddev: (select) => - new Field( - "stddev", - undefined as never, - new SelectionSet(select(tracks_stddev_fields)) - ), - - stddev_pop: (select) => - new Field( - "stddev_pop", - undefined as never, - new SelectionSet(select(tracks_stddev_pop_fields)) - ), - - stddev_samp: (select) => - new Field( - "stddev_samp", - undefined as never, - new SelectionSet(select(tracks_stddev_samp_fields)) - ), - - sum: (select) => - new Field( - "sum", - undefined as never, - new SelectionSet(select(tracks_sum_fields)) - ), - - var_pop: (select) => - new Field( - "var_pop", - undefined as never, - new SelectionSet(select(tracks_var_pop_fields)) - ), - - var_samp: (select) => - new Field( - "var_samp", - undefined as never, - new SelectionSet(select(tracks_var_samp_fields)) - ), - - variance: (select) => - new Field( - "variance", - undefined as never, - new SelectionSet(select(tracks_variance_fields)) - ), -}; - -export interface Itracks_avg_fields { - readonly __typename: "tracks_avg_fields"; - readonly id: number | null; -} - -interface tracks_avg_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_avg_fields: tracks_avg_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_max_fields { - readonly __typename: "tracks_max_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly napsterId: string | null; -} - -interface tracks_max_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly napsterId: () => Field<"napsterId">; -} - -export const tracks_max_fields: tracks_max_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - napsterId: () => new Field("napsterId"), -}; - -export interface Itracks_min_fields { - readonly __typename: "tracks_min_fields"; - readonly createdUtc: unknown | null; - readonly id: number | null; - readonly name: string | null; - readonly napsterId: string | null; -} - -interface tracks_min_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly id: () => Field<"id">; - - readonly name: () => Field<"name">; - - readonly napsterId: () => Field<"napsterId">; -} - -export const tracks_min_fields: tracks_min_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - id: () => new Field("id"), - name: () => new Field("name"), - napsterId: () => new Field("napsterId"), -}; - -export interface Itracks_mutation_response { - readonly __typename: "tracks_mutation_response"; - readonly affected_rows: number; - readonly returning: ReadonlyArray; -} - -interface tracks_mutation_responseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description number of affected rows by the mutation - */ - - readonly affected_rows: () => Field<"affected_rows">; - - /** - * @description data of the affected rows by the mutation - */ - - readonly returning: >( - select: (t: tracksSelector) => T - ) => Field<"returning", never, SelectionSet>; -} - -export const tracks_mutation_response: tracks_mutation_responseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description number of affected rows by the mutation - */ - affected_rows: () => new Field("affected_rows"), - - /** - * @description data of the affected rows by the mutation - */ - - returning: (select) => - new Field( - "returning", - undefined as never, - new SelectionSet(select(tracks)) - ), -}; - -export interface Itracks_stddev_fields { - readonly __typename: "tracks_stddev_fields"; - readonly id: number | null; -} - -interface tracks_stddev_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_stddev_fields: tracks_stddev_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_stddev_pop_fields { - readonly __typename: "tracks_stddev_pop_fields"; - readonly id: number | null; -} - -interface tracks_stddev_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_stddev_pop_fields: tracks_stddev_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_stddev_samp_fields { - readonly __typename: "tracks_stddev_samp_fields"; - readonly id: number | null; -} - -interface tracks_stddev_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_stddev_samp_fields: tracks_stddev_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_sum_fields { - readonly __typename: "tracks_sum_fields"; - readonly id: number | null; -} - -interface tracks_sum_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_sum_fields: tracks_sum_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_var_pop_fields { - readonly __typename: "tracks_var_pop_fields"; - readonly id: number | null; -} - -interface tracks_var_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_var_pop_fields: tracks_var_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_var_samp_fields { - readonly __typename: "tracks_var_samp_fields"; - readonly id: number | null; -} - -interface tracks_var_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_var_samp_fields: tracks_var_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Itracks_variance_fields { - readonly __typename: "tracks_variance_fields"; - readonly id: number | null; -} - -interface tracks_variance_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const tracks_variance_fields: tracks_variance_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers { - readonly __typename: "users"; - readonly bookmarks: ReadonlyArray; - readonly bookmarks_aggregate: Ibookmarks_aggregate; - readonly createdUtc: unknown | null; - readonly email: string | null; - readonly id: number; - readonly playlists: ReadonlyArray; - readonly playlists_aggregate: Iplaylists_aggregate; -} - -interface usersSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description An array relationship - */ - - readonly bookmarks: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => Field< - "bookmarks", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - /** - * @description An aggregated array relationship - */ - - readonly bookmarks_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | bookmarks_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | bookmarks_order_by; - where?: Variable<"where"> | bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => Field< - "bookmarks_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | bookmarks_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | bookmarks_order_by>, - Argument<"where", Variable<"where"> | bookmarks_bool_exp> - ], - SelectionSet - >; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; - - /** - * @description An array relationship - */ - - readonly playlists: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlistsSelector) => T - ) => Field< - "playlists", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; - - /** - * @description An aggregated array relationship - */ - - readonly playlists_aggregate: >( - variables: { - distinct_on?: Variable<"distinct_on"> | playlists_select_column; - limit?: Variable<"limit"> | number; - offset?: Variable<"offset"> | number; - order_by?: Variable<"order_by"> | playlists_order_by; - where?: Variable<"where"> | playlists_bool_exp; - }, - select: (t: playlists_aggregateSelector) => T - ) => Field< - "playlists_aggregate", - [ - Argument< - "distinct_on", - Variable<"distinct_on"> | playlists_select_column - >, - Argument<"limit", Variable<"limit"> | number>, - Argument<"offset", Variable<"offset"> | number>, - Argument<"order_by", Variable<"order_by"> | playlists_order_by>, - Argument<"where", Variable<"where"> | playlists_bool_exp> - ], - SelectionSet - >; -} - -export const users: usersSelector = { - __typename: () => new Field("__typename"), - - /** - * @description An array relationship - */ - - bookmarks: (variables, select) => - new Field( - "bookmarks", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks)) - ), - - /** - * @description An aggregated array relationship - */ - - bookmarks_aggregate: (variables, select) => - new Field( - "bookmarks_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(bookmarks_aggregate)) - ), - - createdUtc: () => new Field("createdUtc"), - email: () => new Field("email"), - id: () => new Field("id"), - - /** - * @description An array relationship - */ - - playlists: (variables, select) => - new Field( - "playlists", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists)) - ), - - /** - * @description An aggregated array relationship - */ - - playlists_aggregate: (variables, select) => - new Field( - "playlists_aggregate", - [ - new Argument("distinct_on", variables.distinct_on, _ENUM_VALUES), - new Argument("limit", variables.limit, _ENUM_VALUES), - new Argument("offset", variables.offset, _ENUM_VALUES), - new Argument("order_by", variables.order_by, _ENUM_VALUES), - new Argument("where", variables.where, _ENUM_VALUES), - ], - new SelectionSet(select(playlists_aggregate)) - ), -}; - -export interface Iusers_aggregate { - readonly __typename: "users_aggregate"; - readonly aggregate: Iusers_aggregate_fields | null; - readonly nodes: ReadonlyArray; -} - -interface users_aggregateSelector { - readonly __typename: () => Field<"__typename">; - - readonly aggregate: >( - select: (t: users_aggregate_fieldsSelector) => T - ) => Field<"aggregate", never, SelectionSet>; - - readonly nodes: >( - select: (t: usersSelector) => T - ) => Field<"nodes", never, SelectionSet>; -} - -export const users_aggregate: users_aggregateSelector = { - __typename: () => new Field("__typename"), - - aggregate: (select) => - new Field( - "aggregate", - undefined as never, - new SelectionSet(select(users_aggregate_fields)) - ), - - nodes: (select) => - new Field("nodes", undefined as never, new SelectionSet(select(users))), -}; - -export interface Iusers_aggregate_fields { - readonly __typename: "users_aggregate_fields"; - readonly avg: Iusers_avg_fields | null; - readonly count: number | null; - readonly max: Iusers_max_fields | null; - readonly min: Iusers_min_fields | null; - readonly stddev: Iusers_stddev_fields | null; - readonly stddev_pop: Iusers_stddev_pop_fields | null; - readonly stddev_samp: Iusers_stddev_samp_fields | null; - readonly sum: Iusers_sum_fields | null; - readonly var_pop: Iusers_var_pop_fields | null; - readonly var_samp: Iusers_var_samp_fields | null; - readonly variance: Iusers_variance_fields | null; -} - -interface users_aggregate_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly avg: >( - select: (t: users_avg_fieldsSelector) => T - ) => Field<"avg", never, SelectionSet>; - - readonly count: (variables: { - columns?: Variable<"columns"> | users_select_column; - distinct?: Variable<"distinct"> | boolean; - }) => Field< - "count", - [ - Argument<"columns", Variable<"columns"> | users_select_column>, - Argument<"distinct", Variable<"distinct"> | boolean> - ] - >; - - readonly max: >( - select: (t: users_max_fieldsSelector) => T - ) => Field<"max", never, SelectionSet>; - - readonly min: >( - select: (t: users_min_fieldsSelector) => T - ) => Field<"min", never, SelectionSet>; - - readonly stddev: >( - select: (t: users_stddev_fieldsSelector) => T - ) => Field<"stddev", never, SelectionSet>; - - readonly stddev_pop: >( - select: (t: users_stddev_pop_fieldsSelector) => T - ) => Field<"stddev_pop", never, SelectionSet>; - - readonly stddev_samp: >( - select: (t: users_stddev_samp_fieldsSelector) => T - ) => Field<"stddev_samp", never, SelectionSet>; - - readonly sum: >( - select: (t: users_sum_fieldsSelector) => T - ) => Field<"sum", never, SelectionSet>; - - readonly var_pop: >( - select: (t: users_var_pop_fieldsSelector) => T - ) => Field<"var_pop", never, SelectionSet>; - - readonly var_samp: >( - select: (t: users_var_samp_fieldsSelector) => T - ) => Field<"var_samp", never, SelectionSet>; - - readonly variance: >( - select: (t: users_variance_fieldsSelector) => T - ) => Field<"variance", never, SelectionSet>; -} - -export const users_aggregate_fields: users_aggregate_fieldsSelector = { - __typename: () => new Field("__typename"), - - avg: (select) => - new Field( - "avg", - undefined as never, - new SelectionSet(select(users_avg_fields)) - ), - - count: (variables) => new Field("count"), - - max: (select) => - new Field( - "max", - undefined as never, - new SelectionSet(select(users_max_fields)) - ), - - min: (select) => - new Field( - "min", - undefined as never, - new SelectionSet(select(users_min_fields)) - ), - - stddev: (select) => - new Field( - "stddev", - undefined as never, - new SelectionSet(select(users_stddev_fields)) - ), - - stddev_pop: (select) => - new Field( - "stddev_pop", - undefined as never, - new SelectionSet(select(users_stddev_pop_fields)) - ), - - stddev_samp: (select) => - new Field( - "stddev_samp", - undefined as never, - new SelectionSet(select(users_stddev_samp_fields)) - ), - - sum: (select) => - new Field( - "sum", - undefined as never, - new SelectionSet(select(users_sum_fields)) - ), - - var_pop: (select) => - new Field( - "var_pop", - undefined as never, - new SelectionSet(select(users_var_pop_fields)) - ), - - var_samp: (select) => - new Field( - "var_samp", - undefined as never, - new SelectionSet(select(users_var_samp_fields)) - ), - - variance: (select) => - new Field( - "variance", - undefined as never, - new SelectionSet(select(users_variance_fields)) - ), -}; - -export interface Iusers_avg_fields { - readonly __typename: "users_avg_fields"; - readonly id: number | null; -} - -interface users_avg_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_avg_fields: users_avg_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_max_fields { - readonly __typename: "users_max_fields"; - readonly createdUtc: unknown | null; - readonly email: string | null; - readonly id: number | null; -} - -interface users_max_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; -} - -export const users_max_fields: users_max_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - email: () => new Field("email"), - id: () => new Field("id"), -}; - -export interface Iusers_min_fields { - readonly __typename: "users_min_fields"; - readonly createdUtc: unknown | null; - readonly email: string | null; - readonly id: number | null; -} - -interface users_min_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly createdUtc: () => Field<"createdUtc">; - - readonly email: () => Field<"email">; - - readonly id: () => Field<"id">; -} - -export const users_min_fields: users_min_fieldsSelector = { - __typename: () => new Field("__typename"), - - createdUtc: () => new Field("createdUtc"), - email: () => new Field("email"), - id: () => new Field("id"), -}; - -export interface Iusers_mutation_response { - readonly __typename: "users_mutation_response"; - readonly affected_rows: number; - readonly returning: ReadonlyArray; -} - -interface users_mutation_responseSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description number of affected rows by the mutation - */ - - readonly affected_rows: () => Field<"affected_rows">; - - /** - * @description data of the affected rows by the mutation - */ - - readonly returning: >( - select: (t: usersSelector) => T - ) => Field<"returning", never, SelectionSet>; -} - -export const users_mutation_response: users_mutation_responseSelector = { - __typename: () => new Field("__typename"), - - /** - * @description number of affected rows by the mutation - */ - affected_rows: () => new Field("affected_rows"), - - /** - * @description data of the affected rows by the mutation - */ - - returning: (select) => - new Field("returning", undefined as never, new SelectionSet(select(users))), -}; - -export interface Iusers_stddev_fields { - readonly __typename: "users_stddev_fields"; - readonly id: number | null; -} - -interface users_stddev_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_stddev_fields: users_stddev_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_stddev_pop_fields { - readonly __typename: "users_stddev_pop_fields"; - readonly id: number | null; -} - -interface users_stddev_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_stddev_pop_fields: users_stddev_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_stddev_samp_fields { - readonly __typename: "users_stddev_samp_fields"; - readonly id: number | null; -} - -interface users_stddev_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_stddev_samp_fields: users_stddev_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_sum_fields { - readonly __typename: "users_sum_fields"; - readonly id: number | null; -} - -interface users_sum_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_sum_fields: users_sum_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_var_pop_fields { - readonly __typename: "users_var_pop_fields"; - readonly id: number | null; -} - -interface users_var_pop_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_var_pop_fields: users_var_pop_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_var_samp_fields { - readonly __typename: "users_var_samp_fields"; - readonly id: number | null; -} - -interface users_var_samp_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_var_samp_fields: users_var_samp_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export interface Iusers_variance_fields { - readonly __typename: "users_variance_fields"; - readonly id: number | null; -} - -interface users_variance_fieldsSelector { - readonly __typename: () => Field<"__typename">; - - readonly id: () => Field<"id">; -} - -export const users_variance_fields: users_variance_fieldsSelector = { - __typename: () => new Field("__typename"), - - id: () => new Field("id"), -}; - -export const query = >( - name: string, - select: (t: typeof query_root) => T -): Operation> => - new Operation(name, "query", new SelectionSet(select(query_root))); - -export const mutation = >( - name: string, - select: (t: typeof mutation_root) => T -): Operation> => - new Operation(name, "mutation", new SelectionSet(select(mutation_root))); - -export const subscription = >( - name: string, - select: (t: typeof subscription_root) => T -): Operation> => - new Operation( - name, - "subscription", - new SelectionSet(select(subscription_root)) - ); - -export class Hasura implements Client { - public static readonly VERSION = VERSION; - public static readonly SCHEMA_SHA = SCHEMA_SHA; - - constructor(public readonly executor: Executor) {} - - public readonly query = { - /** - * @description fetch data from the table: "bookmarks" - */ - - bookmarks: async >( - variables: { - distinct_on?: bookmarks_select_column; - limit?: number; - offset?: number; - order_by?: bookmarks_order_by; - where?: bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "bookmarks", - "query", - new SelectionSet([query_root.bookmarks(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks", result }); - } else if (result.data) { - return result.data.bookmarks; - } else { - throw new ExecutionError({ name: "bookmarks", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - bookmarks_aggregate: async >( - variables: { - distinct_on?: bookmarks_select_column; - limit?: number; - offset?: number; - order_by?: bookmarks_order_by; - where?: bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"bookmarks_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "bookmarks_aggregate", - "query", - new SelectionSet([ - query_root.bookmarks_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks_aggregate", result }); - } else if (result.data) { - return result.data.bookmarks_aggregate; - } else { - throw new ExecutionError({ name: "bookmarks_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - bookmarks_by_pk: async >( - variables: { id?: number }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"bookmarks_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "bookmarks_by_pk", - "query", - new SelectionSet([query_root.bookmarks_by_pk(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks_by_pk", result }); - } else if (result.data) { - return result.data.bookmarks_by_pk; - } else { - throw new ExecutionError({ name: "bookmarks_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "playlist_items" - */ - - playlist_items: async >( - variables: { - distinct_on?: playlist_items_select_column; - limit?: number; - offset?: number; - order_by?: playlist_items_order_by; - where?: playlist_items_bool_exp; - }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"playlist_items", any, SelectionSet>]> - > - >( - new Operation( - "playlist_items", - "query", - new SelectionSet([query_root.playlist_items(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items", result }); - } else if (result.data) { - return result.data.playlist_items; - } else { - throw new ExecutionError({ name: "playlist_items", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - playlist_items_aggregate: async >( - variables: { - distinct_on?: playlist_items_select_column; - limit?: number; - offset?: number; - order_by?: playlist_items_order_by; - where?: playlist_items_bool_exp; - }, - select: (t: playlist_items_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet< - [Field<"playlist_items_aggregate", any, SelectionSet>] - > - > - >( - new Operation( - "playlist_items_aggregate", - "query", - new SelectionSet([ - query_root.playlist_items_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items_aggregate", result }); - } else if (result.data) { - return result.data.playlist_items_aggregate; - } else { - throw new ExecutionError({ name: "playlist_items_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - playlist_items_by_pk: async >( - variables: { id?: number }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"playlist_items_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "playlist_items_by_pk", - "query", - new SelectionSet([ - query_root.playlist_items_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items_by_pk", result }); - } else if (result.data) { - return result.data.playlist_items_by_pk; - } else { - throw new ExecutionError({ name: "playlist_items_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "playlists" - */ - - playlists: async >( - variables: { - distinct_on?: playlists_select_column; - limit?: number; - offset?: number; - order_by?: playlists_order_by; - where?: playlists_bool_exp; - }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "playlists", - "query", - new SelectionSet([query_root.playlists(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists", result }); - } else if (result.data) { - return result.data.playlists; - } else { - throw new ExecutionError({ name: "playlists", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - playlists_aggregate: async >( - variables: { - distinct_on?: playlists_select_column; - limit?: number; - offset?: number; - order_by?: playlists_order_by; - where?: playlists_bool_exp; - }, - select: (t: playlists_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"playlists_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "playlists_aggregate", - "query", - new SelectionSet([ - query_root.playlists_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists_aggregate", result }); - } else if (result.data) { - return result.data.playlists_aggregate; - } else { - throw new ExecutionError({ name: "playlists_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - playlists_by_pk: async >( - variables: { id?: number }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"playlists_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "playlists_by_pk", - "query", - new SelectionSet([query_root.playlists_by_pk(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists_by_pk", result }); - } else if (result.data) { - return result.data.playlists_by_pk; - } else { - throw new ExecutionError({ name: "playlists_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "tracks" - */ - - tracks: async >( - variables: { - distinct_on?: tracks_select_column; - limit?: number; - offset?: number; - order_by?: tracks_order_by; - where?: tracks_bool_exp; - }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "tracks", - "query", - new SelectionSet([query_root.tracks(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "tracks", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks", result }); - } else if (result.data) { - return result.data.tracks; - } else { - throw new ExecutionError({ name: "tracks", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - tracks_aggregate: async >( - variables: { - distinct_on?: tracks_select_column; - limit?: number; - offset?: number; - order_by?: tracks_order_by; - where?: tracks_bool_exp; - }, - select: (t: tracks_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"tracks_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "tracks_aggregate", - "query", - new SelectionSet([ - query_root.tracks_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "tracks_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks_aggregate", result }); - } else if (result.data) { - return result.data.tracks_aggregate; - } else { - throw new ExecutionError({ name: "tracks_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - tracks_by_pk: async >( - variables: { id?: number }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "tracks_by_pk", - "query", - new SelectionSet([query_root.tracks_by_pk(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "tracks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks_by_pk", result }); - } else if (result.data) { - return result.data.tracks_by_pk; - } else { - throw new ExecutionError({ name: "tracks_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "users" - */ - - users: async >( - variables: { - distinct_on?: users_select_column; - limit?: number; - offset?: number; - order_by?: users_order_by; - where?: users_bool_exp; - }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "users", - "query", - new SelectionSet([query_root.users(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "users", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users", result }); - } else if (result.data) { - return result.data.users; - } else { - throw new ExecutionError({ name: "users", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "users" - */ - - users_aggregate: async >( - variables: { - distinct_on?: users_select_column; - limit?: number; - offset?: number; - order_by?: users_order_by; - where?: users_bool_exp; - }, - select: (t: users_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation< - SelectionSet<[Field<"users_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "users_aggregate", - "query", - new SelectionSet([query_root.users_aggregate(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "users_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users_aggregate", result }); - } else if (result.data) { - return result.data.users_aggregate; - } else { - throw new ExecutionError({ name: "users_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - users_by_pk: async >( - variables: { id?: number }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Iquery_root, - Operation>]>> - >( - new Operation( - "users_by_pk", - "query", - new SelectionSet([query_root.users_by_pk(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "users_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users_by_pk", result }); - } else if (result.data) { - return result.data.users_by_pk; - } else { - throw new ExecutionError({ name: "users_by_pk", result }); - } - }, - }; - - public readonly mutate = { - /** - * @description delete data from the table: "bookmarks" - */ - - delete_bookmarks: async >( - variables: { where?: bookmarks_bool_exp }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_bookmarks", any, SelectionSet>]> - > - >( - new Operation( - "delete_bookmarks", - "mutation", - new SelectionSet([ - mutation_root.delete_bookmarks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_bookmarks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_bookmarks", result }); - } else if (result.data) { - return result.data.delete_bookmarks; - } else { - throw new ExecutionError({ name: "delete_bookmarks", result }); - } - }, - - /** - * @description delete single row from the table: "bookmarks" - */ - - delete_bookmarks_by_pk: async >( - variables: { id?: number }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"delete_bookmarks_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "delete_bookmarks_by_pk", - "mutation", - new SelectionSet([ - mutation_root.delete_bookmarks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_bookmarks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_bookmarks_by_pk", result }); - } else if (result.data) { - return result.data.delete_bookmarks_by_pk; - } else { - throw new ExecutionError({ name: "delete_bookmarks_by_pk", result }); - } - }, - - /** - * @description delete data from the table: "playlist_items" - */ - - delete_playlist_items: async >( - variables: { where?: playlist_items_bool_exp }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_playlist_items", any, SelectionSet>]> - > - >( - new Operation( - "delete_playlist_items", - "mutation", - new SelectionSet([ - mutation_root.delete_playlist_items(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_playlist_items", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_playlist_items", result }); - } else if (result.data) { - return result.data.delete_playlist_items; - } else { - throw new ExecutionError({ name: "delete_playlist_items", result }); - } - }, - - /** - * @description delete single row from the table: "playlist_items" - */ - - delete_playlist_items_by_pk: async >( - variables: { id?: number }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"delete_playlist_items_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "delete_playlist_items_by_pk", - "mutation", - new SelectionSet([ - mutation_root.delete_playlist_items_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_playlist_items_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "delete_playlist_items_by_pk", - result, - }); - } else if (result.data) { - return result.data.delete_playlist_items_by_pk; - } else { - throw new ExecutionError({ - name: "delete_playlist_items_by_pk", - result, - }); - } - }, - - /** - * @description delete data from the table: "playlists" - */ - - delete_playlists: async >( - variables: { where?: playlists_bool_exp }, - select: (t: playlists_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_playlists", any, SelectionSet>]> - > - >( - new Operation( - "delete_playlists", - "mutation", - new SelectionSet([ - mutation_root.delete_playlists(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_playlists", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_playlists", result }); - } else if (result.data) { - return result.data.delete_playlists; - } else { - throw new ExecutionError({ name: "delete_playlists", result }); - } - }, - - /** - * @description delete single row from the table: "playlists" - */ - - delete_playlists_by_pk: async >( - variables: { id?: number }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"delete_playlists_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "delete_playlists_by_pk", - "mutation", - new SelectionSet([ - mutation_root.delete_playlists_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_playlists_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_playlists_by_pk", result }); - } else if (result.data) { - return result.data.delete_playlists_by_pk; - } else { - throw new ExecutionError({ name: "delete_playlists_by_pk", result }); - } - }, - - /** - * @description delete data from the table: "tracks" - */ - - delete_tracks: async >( - variables: { where?: tracks_bool_exp }, - select: (t: tracks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_tracks", any, SelectionSet>]> - > - >( - new Operation( - "delete_tracks", - "mutation", - new SelectionSet([ - mutation_root.delete_tracks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_tracks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_tracks", result }); - } else if (result.data) { - return result.data.delete_tracks; - } else { - throw new ExecutionError({ name: "delete_tracks", result }); - } - }, - - /** - * @description delete single row from the table: "tracks" - */ - - delete_tracks_by_pk: async >( - variables: { id?: number }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_tracks_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "delete_tracks_by_pk", - "mutation", - new SelectionSet([ - mutation_root.delete_tracks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_tracks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_tracks_by_pk", result }); - } else if (result.data) { - return result.data.delete_tracks_by_pk; - } else { - throw new ExecutionError({ name: "delete_tracks_by_pk", result }); - } - }, - - /** - * @description delete data from the table: "users" - */ - - delete_users: async >( - variables: { where?: users_bool_exp }, - select: (t: users_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation>]>> - >( - new Operation( - "delete_users", - "mutation", - new SelectionSet([mutation_root.delete_users(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_users", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_users", result }); - } else if (result.data) { - return result.data.delete_users; - } else { - throw new ExecutionError({ name: "delete_users", result }); - } - }, - - /** - * @description delete single row from the table: "users" - */ - - delete_users_by_pk: async >( - variables: { id?: number }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"delete_users_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "delete_users_by_pk", - "mutation", - new SelectionSet([ - mutation_root.delete_users_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "delete_users_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "delete_users_by_pk", result }); - } else if (result.data) { - return result.data.delete_users_by_pk; - } else { - throw new ExecutionError({ name: "delete_users_by_pk", result }); - } - }, - - /** - * @description insert data into the table: "bookmarks" - */ - - insert_bookmarks: async >( - variables: { - objects?: bookmarks_insert_input; - on_conflict?: bookmarks_on_conflict; - }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_bookmarks", any, SelectionSet>]> - > - >( - new Operation( - "insert_bookmarks", - "mutation", - new SelectionSet([ - mutation_root.insert_bookmarks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_bookmarks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_bookmarks", result }); - } else if (result.data) { - return result.data.insert_bookmarks; - } else { - throw new ExecutionError({ name: "insert_bookmarks", result }); - } - }, - - /** - * @description insert a single row into the table: "bookmarks" - */ - - insert_bookmarks_one: async >( - variables: { - object?: bookmarks_insert_input; - on_conflict?: bookmarks_on_conflict; - }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_bookmarks_one", any, SelectionSet>]> - > - >( - new Operation( - "insert_bookmarks_one", - "mutation", - new SelectionSet([ - mutation_root.insert_bookmarks_one(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_bookmarks_one", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_bookmarks_one", result }); - } else if (result.data) { - return result.data.insert_bookmarks_one; - } else { - throw new ExecutionError({ name: "insert_bookmarks_one", result }); - } - }, - - /** - * @description insert data into the table: "playlist_items" - */ - - insert_playlist_items: async >( - variables: { - objects?: playlist_items_insert_input; - on_conflict?: playlist_items_on_conflict; - }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_playlist_items", any, SelectionSet>]> - > - >( - new Operation( - "insert_playlist_items", - "mutation", - new SelectionSet([ - mutation_root.insert_playlist_items(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_playlist_items", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_playlist_items", result }); - } else if (result.data) { - return result.data.insert_playlist_items; - } else { - throw new ExecutionError({ name: "insert_playlist_items", result }); - } - }, - - /** - * @description insert a single row into the table: "playlist_items" - */ - - insert_playlist_items_one: async >( - variables: { - object?: playlist_items_insert_input; - on_conflict?: playlist_items_on_conflict; - }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"insert_playlist_items_one", any, SelectionSet>] - > - > - >( - new Operation( - "insert_playlist_items_one", - "mutation", - new SelectionSet([ - mutation_root.insert_playlist_items_one(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_playlist_items_one", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_playlist_items_one", result }); - } else if (result.data) { - return result.data.insert_playlist_items_one; - } else { - throw new ExecutionError({ name: "insert_playlist_items_one", result }); - } - }, - - /** - * @description insert data into the table: "playlists" - */ - - insert_playlists: async >( - variables: { - objects?: playlists_insert_input; - on_conflict?: playlists_on_conflict; - }, - select: (t: playlists_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_playlists", any, SelectionSet>]> - > - >( - new Operation( - "insert_playlists", - "mutation", - new SelectionSet([ - mutation_root.insert_playlists(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_playlists", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_playlists", result }); - } else if (result.data) { - return result.data.insert_playlists; - } else { - throw new ExecutionError({ name: "insert_playlists", result }); - } - }, - - /** - * @description insert a single row into the table: "playlists" - */ - - insert_playlists_one: async >( - variables: { - object?: playlists_insert_input; - on_conflict?: playlists_on_conflict; - }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_playlists_one", any, SelectionSet>]> - > - >( - new Operation( - "insert_playlists_one", - "mutation", - new SelectionSet([ - mutation_root.insert_playlists_one(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_playlists_one", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_playlists_one", result }); - } else if (result.data) { - return result.data.insert_playlists_one; - } else { - throw new ExecutionError({ name: "insert_playlists_one", result }); - } - }, - - /** - * @description insert data into the table: "tracks" - */ - - insert_tracks: async >( - variables: { - objects?: tracks_insert_input; - on_conflict?: tracks_on_conflict; - }, - select: (t: tracks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_tracks", any, SelectionSet>]> - > - >( - new Operation( - "insert_tracks", - "mutation", - new SelectionSet([ - mutation_root.insert_tracks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_tracks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_tracks", result }); - } else if (result.data) { - return result.data.insert_tracks; - } else { - throw new ExecutionError({ name: "insert_tracks", result }); - } - }, - - /** - * @description insert a single row into the table: "tracks" - */ - - insert_tracks_one: async >( - variables: { - object?: tracks_insert_input; - on_conflict?: tracks_on_conflict; - }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_tracks_one", any, SelectionSet>]> - > - >( - new Operation( - "insert_tracks_one", - "mutation", - new SelectionSet([ - mutation_root.insert_tracks_one(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_tracks_one", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_tracks_one", result }); - } else if (result.data) { - return result.data.insert_tracks_one; - } else { - throw new ExecutionError({ name: "insert_tracks_one", result }); - } - }, - - /** - * @description insert data into the table: "users" - */ - - insert_users: async >( - variables: { - objects?: users_insert_input; - on_conflict?: users_on_conflict; - }, - select: (t: users_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation>]>> - >( - new Operation( - "insert_users", - "mutation", - new SelectionSet([mutation_root.insert_users(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_users", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_users", result }); - } else if (result.data) { - return result.data.insert_users; - } else { - throw new ExecutionError({ name: "insert_users", result }); - } - }, - - /** - * @description insert a single row into the table: "users" - */ - - insert_users_one: async >( - variables: { - object?: users_insert_input; - on_conflict?: users_on_conflict; - }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"insert_users_one", any, SelectionSet>]> - > - >( - new Operation( - "insert_users_one", - "mutation", - new SelectionSet([ - mutation_root.insert_users_one(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "insert_users_one", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "insert_users_one", result }); - } else if (result.data) { - return result.data.insert_users_one; - } else { - throw new ExecutionError({ name: "insert_users_one", result }); - } - }, - - /** - * @description update data of the table: "bookmarks" - */ - - update_bookmarks: async >( - variables: { - _inc?: bookmarks_inc_input; - _set?: bookmarks_set_input; - where?: bookmarks_bool_exp; - }, - select: (t: bookmarks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_bookmarks", any, SelectionSet>]> - > - >( - new Operation( - "update_bookmarks", - "mutation", - new SelectionSet([ - mutation_root.update_bookmarks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_bookmarks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_bookmarks", result }); - } else if (result.data) { - return result.data.update_bookmarks; - } else { - throw new ExecutionError({ name: "update_bookmarks", result }); - } - }, - - /** - * @description update single row of the table: "bookmarks" - */ - - update_bookmarks_by_pk: async >( - variables: { - _inc?: bookmarks_inc_input; - _set?: bookmarks_set_input; - pk_columns?: bookmarks_pk_columns_input; - }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"update_bookmarks_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "update_bookmarks_by_pk", - "mutation", - new SelectionSet([ - mutation_root.update_bookmarks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_bookmarks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_bookmarks_by_pk", result }); - } else if (result.data) { - return result.data.update_bookmarks_by_pk; - } else { - throw new ExecutionError({ name: "update_bookmarks_by_pk", result }); - } - }, - - /** - * @description update data of the table: "playlist_items" - */ - - update_playlist_items: async >( - variables: { - _inc?: playlist_items_inc_input; - _set?: playlist_items_set_input; - where?: playlist_items_bool_exp; - }, - select: (t: playlist_items_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_playlist_items", any, SelectionSet>]> - > - >( - new Operation( - "update_playlist_items", - "mutation", - new SelectionSet([ - mutation_root.update_playlist_items(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_playlist_items", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_playlist_items", result }); - } else if (result.data) { - return result.data.update_playlist_items; - } else { - throw new ExecutionError({ name: "update_playlist_items", result }); - } - }, - - /** - * @description update single row of the table: "playlist_items" - */ - - update_playlist_items_by_pk: async >( - variables: { - _inc?: playlist_items_inc_input; - _set?: playlist_items_set_input; - pk_columns?: playlist_items_pk_columns_input; - }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"update_playlist_items_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "update_playlist_items_by_pk", - "mutation", - new SelectionSet([ - mutation_root.update_playlist_items_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_playlist_items_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ - name: "update_playlist_items_by_pk", - result, - }); - } else if (result.data) { - return result.data.update_playlist_items_by_pk; - } else { - throw new ExecutionError({ - name: "update_playlist_items_by_pk", - result, - }); - } - }, - - /** - * @description update data of the table: "playlists" - */ - - update_playlists: async >( - variables: { - _inc?: playlists_inc_input; - _set?: playlists_set_input; - where?: playlists_bool_exp; - }, - select: (t: playlists_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_playlists", any, SelectionSet>]> - > - >( - new Operation( - "update_playlists", - "mutation", - new SelectionSet([ - mutation_root.update_playlists(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_playlists", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_playlists", result }); - } else if (result.data) { - return result.data.update_playlists; - } else { - throw new ExecutionError({ name: "update_playlists", result }); - } - }, - - /** - * @description update single row of the table: "playlists" - */ - - update_playlists_by_pk: async >( - variables: { - _inc?: playlists_inc_input; - _set?: playlists_set_input; - pk_columns?: playlists_pk_columns_input; - }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet< - [Field<"update_playlists_by_pk", any, SelectionSet>] - > - > - >( - new Operation( - "update_playlists_by_pk", - "mutation", - new SelectionSet([ - mutation_root.update_playlists_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_playlists_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_playlists_by_pk", result }); - } else if (result.data) { - return result.data.update_playlists_by_pk; - } else { - throw new ExecutionError({ name: "update_playlists_by_pk", result }); - } - }, - - /** - * @description update data of the table: "tracks" - */ - - update_tracks: async >( - variables: { - _inc?: tracks_inc_input; - _set?: tracks_set_input; - where?: tracks_bool_exp; - }, - select: (t: tracks_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_tracks", any, SelectionSet>]> - > - >( - new Operation( - "update_tracks", - "mutation", - new SelectionSet([ - mutation_root.update_tracks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_tracks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_tracks", result }); - } else if (result.data) { - return result.data.update_tracks; - } else { - throw new ExecutionError({ name: "update_tracks", result }); - } - }, - - /** - * @description update single row of the table: "tracks" - */ - - update_tracks_by_pk: async >( - variables: { - _inc?: tracks_inc_input; - _set?: tracks_set_input; - pk_columns?: tracks_pk_columns_input; - }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_tracks_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "update_tracks_by_pk", - "mutation", - new SelectionSet([ - mutation_root.update_tracks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_tracks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_tracks_by_pk", result }); - } else if (result.data) { - return result.data.update_tracks_by_pk; - } else { - throw new ExecutionError({ name: "update_tracks_by_pk", result }); - } - }, - - /** - * @description update data of the table: "users" - */ - - update_users: async >( - variables: { - _inc?: users_inc_input; - _set?: users_set_input; - where?: users_bool_exp; - }, - select: (t: users_mutation_responseSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation>]>> - >( - new Operation( - "update_users", - "mutation", - new SelectionSet([mutation_root.update_users(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_users", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_users", result }); - } else if (result.data) { - return result.data.update_users; - } else { - throw new ExecutionError({ name: "update_users", result }); - } - }, - - /** - * @description update single row of the table: "users" - */ - - update_users_by_pk: async >( - variables: { - _inc?: users_inc_input; - _set?: users_set_input; - pk_columns?: users_pk_columns_input; - }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Imutation_root, - Operation< - SelectionSet<[Field<"update_users_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "update_users_by_pk", - "mutation", - new SelectionSet([ - mutation_root.update_users_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "update_users_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "update_users_by_pk", result }); - } else if (result.data) { - return result.data.update_users_by_pk; - } else { - throw new ExecutionError({ name: "update_users_by_pk", result }); - } - }, - }; - - public readonly subscribe = { - /** - * @description fetch data from the table: "bookmarks" - */ - - bookmarks: async >( - variables: { - distinct_on?: bookmarks_select_column; - limit?: number; - offset?: number; - order_by?: bookmarks_order_by; - where?: bookmarks_bool_exp; - }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "bookmarks", - "subscription", - new SelectionSet([ - subscription_root.bookmarks(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks", result }); - } else if (result.data) { - return result.data.bookmarks; - } else { - throw new ExecutionError({ name: "bookmarks", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "bookmarks" - */ - - bookmarks_aggregate: async >( - variables: { - distinct_on?: bookmarks_select_column; - limit?: number; - offset?: number; - order_by?: bookmarks_order_by; - where?: bookmarks_bool_exp; - }, - select: (t: bookmarks_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"bookmarks_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "bookmarks_aggregate", - "subscription", - new SelectionSet([ - subscription_root.bookmarks_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks_aggregate", result }); - } else if (result.data) { - return result.data.bookmarks_aggregate; - } else { - throw new ExecutionError({ name: "bookmarks_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "bookmarks" using primary key columns - */ - - bookmarks_by_pk: async >( - variables: { id?: number }, - select: (t: bookmarksSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"bookmarks_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "bookmarks_by_pk", - "subscription", - new SelectionSet([ - subscription_root.bookmarks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "bookmarks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "bookmarks_by_pk", result }); - } else if (result.data) { - return result.data.bookmarks_by_pk; - } else { - throw new ExecutionError({ name: "bookmarks_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "playlist_items" - */ - - playlist_items: async >( - variables: { - distinct_on?: playlist_items_select_column; - limit?: number; - offset?: number; - order_by?: playlist_items_order_by; - where?: playlist_items_bool_exp; - }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"playlist_items", any, SelectionSet>]> - > - >( - new Operation( - "playlist_items", - "subscription", - new SelectionSet([ - subscription_root.playlist_items(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items", result }); - } else if (result.data) { - return result.data.playlist_items; - } else { - throw new ExecutionError({ name: "playlist_items", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "playlist_items" - */ - - playlist_items_aggregate: async >( - variables: { - distinct_on?: playlist_items_select_column; - limit?: number; - offset?: number; - order_by?: playlist_items_order_by; - where?: playlist_items_bool_exp; - }, - select: (t: playlist_items_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet< - [Field<"playlist_items_aggregate", any, SelectionSet>] - > - > - >( - new Operation( - "playlist_items_aggregate", - "subscription", - new SelectionSet([ - subscription_root.playlist_items_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items_aggregate", result }); - } else if (result.data) { - return result.data.playlist_items_aggregate; - } else { - throw new ExecutionError({ name: "playlist_items_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "playlist_items" using primary key columns - */ - - playlist_items_by_pk: async >( - variables: { id?: number }, - select: (t: playlist_itemsSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"playlist_items_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "playlist_items_by_pk", - "subscription", - new SelectionSet([ - subscription_root.playlist_items_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlist_items_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlist_items_by_pk", result }); - } else if (result.data) { - return result.data.playlist_items_by_pk; - } else { - throw new ExecutionError({ name: "playlist_items_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "playlists" - */ - - playlists: async >( - variables: { - distinct_on?: playlists_select_column; - limit?: number; - offset?: number; - order_by?: playlists_order_by; - where?: playlists_bool_exp; - }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "playlists", - "subscription", - new SelectionSet([ - subscription_root.playlists(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists", result }); - } else if (result.data) { - return result.data.playlists; - } else { - throw new ExecutionError({ name: "playlists", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "playlists" - */ - - playlists_aggregate: async >( - variables: { - distinct_on?: playlists_select_column; - limit?: number; - offset?: number; - order_by?: playlists_order_by; - where?: playlists_bool_exp; - }, - select: (t: playlists_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"playlists_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "playlists_aggregate", - "subscription", - new SelectionSet([ - subscription_root.playlists_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists_aggregate", result }); - } else if (result.data) { - return result.data.playlists_aggregate; - } else { - throw new ExecutionError({ name: "playlists_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "playlists" using primary key columns - */ - - playlists_by_pk: async >( - variables: { id?: number }, - select: (t: playlistsSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"playlists_by_pk", any, SelectionSet>]> - > - >( - new Operation( - "playlists_by_pk", - "subscription", - new SelectionSet([ - subscription_root.playlists_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "playlists_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "playlists_by_pk", result }); - } else if (result.data) { - return result.data.playlists_by_pk; - } else { - throw new ExecutionError({ name: "playlists_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "tracks" - */ - - tracks: async >( - variables: { - distinct_on?: tracks_select_column; - limit?: number; - offset?: number; - order_by?: tracks_order_by; - where?: tracks_bool_exp; - }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "tracks", - "subscription", - new SelectionSet([subscription_root.tracks(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "tracks", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks", result }); - } else if (result.data) { - return result.data.tracks; - } else { - throw new ExecutionError({ name: "tracks", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "tracks" - */ - - tracks_aggregate: async >( - variables: { - distinct_on?: tracks_select_column; - limit?: number; - offset?: number; - order_by?: tracks_order_by; - where?: tracks_bool_exp; - }, - select: (t: tracks_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"tracks_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "tracks_aggregate", - "subscription", - new SelectionSet([ - subscription_root.tracks_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "tracks_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks_aggregate", result }); - } else if (result.data) { - return result.data.tracks_aggregate; - } else { - throw new ExecutionError({ name: "tracks_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "tracks" using primary key columns - */ - - tracks_by_pk: async >( - variables: { id?: number }, - select: (t: tracksSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "tracks_by_pk", - "subscription", - new SelectionSet([ - subscription_root.tracks_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "tracks_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "tracks_by_pk", result }); - } else if (result.data) { - return result.data.tracks_by_pk; - } else { - throw new ExecutionError({ name: "tracks_by_pk", result }); - } - }, - - /** - * @description fetch data from the table: "users" - */ - - users: async >( - variables: { - distinct_on?: users_select_column; - limit?: number; - offset?: number; - order_by?: users_order_by; - where?: users_bool_exp; - }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "users", - "subscription", - new SelectionSet([subscription_root.users(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "users", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users", result }); - } else if (result.data) { - return result.data.users; - } else { - throw new ExecutionError({ name: "users", result }); - } - }, - - /** - * @description fetch aggregated fields from the table: "users" - */ - - users_aggregate: async >( - variables: { - distinct_on?: users_select_column; - limit?: number; - offset?: number; - order_by?: users_order_by; - where?: users_bool_exp; - }, - select: (t: users_aggregateSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation< - SelectionSet<[Field<"users_aggregate", any, SelectionSet>]> - > - >( - new Operation( - "users_aggregate", - "subscription", - new SelectionSet([ - subscription_root.users_aggregate(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "users_aggregate", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users_aggregate", result }); - } else if (result.data) { - return result.data.users_aggregate; - } else { - throw new ExecutionError({ name: "users_aggregate", result }); - } - }, - - /** - * @description fetch data from the table: "users" using primary key columns - */ - - users_by_pk: async >( - variables: { id?: number }, - select: (t: usersSelector) => T - ) => { - const result = await this.executor - .execute< - Isubscription_root, - Operation>]>> - >( - new Operation( - "users_by_pk", - "subscription", - new SelectionSet([ - subscription_root.users_by_pk(variables, select), - ]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "users_by_pk", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "users_by_pk", result }); - } else if (result.data) { - return result.data.users_by_pk; - } else { - throw new ExecutionError({ name: "users_by_pk", result }); - } - }, - }; -} diff --git a/__tests__/hasura/operationts.ts b/__tests__/hasura/operationts.ts deleted file mode 100644 index eb6fc3f..0000000 --- a/__tests__/hasura/operationts.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { query, bookmarks_select_column } from "./hasura.sdk"; - -export const bookmarks = query("Bookmarks", (t) => [ - t.bookmarks({ limit: 10 }, (t) => [ - t.id(), - t.name(), - - t.children_aggregate( - { distinct_on: bookmarks_select_column.createdUtc }, - (t) => [ - t.aggregate((t) => [t.min((t) => [t.id()]), t.max((t) => [t.id()])]), - t.nodes((t) => [t.id(), t.createdUtc()]), - ] - ), - ]), - - // @note Possible `graphql-js` bug when passing an `ID!` of `0` (evaluates to false) - t.playlist_items_by_pk({ id: 1 }, (t) => [ - t.__typename(), - t.id(), - t.position(), - ]), -]); diff --git a/__tests__/schemas.test.ts b/__tests__/schemas.test.ts deleted file mode 100644 index 99370d4..0000000 --- a/__tests__/schemas.test.ts +++ /dev/null @@ -1,94 +0,0 @@ -import fs from "fs"; -import path from "path"; -import { parse, validate, execute, buildSchema } from "graphql"; - -import * as starwarsOps from "./starwars/operations"; -import * as githubOps from "./github/operations"; -import * as hasuraOps from "./hasura/operationts"; - -import { StarWarsSchema } from "./starwars/starwars.schema"; - -describe("Schemas", () => { - describe("Star Wars", () => { - const typeDefs = fs - .readFileSync( - path.resolve(__dirname, "./starwars/starwars.schema.graphql") - ) - .toString("utf-8"); - const schema = buildSchema(typeDefs); - - describe.each([[starwarsOps.kitchensink.name, starwarsOps.kitchensink]])( - `%s`, - (_operationName, operation) => { - it("renders the expected operation", () => { - expect(operation.toString()).toMatchSnapshot(); - }); - - it("renders a parsable operation", () => { - expect(() => parse(operation.toString())).not.toThrow(); - }); - - it("renders a valid operation", () => { - expect(validate(schema, operation.toDocument()).length).toBe(0); - }); - - it("renders an executable operation", async () => { - await expect( - execute({ - schema: StarWarsSchema, - document: operation.toDocument(), - }) - ).resolves.toMatchSnapshot(); - }); - } - ); - }); - - describe("GitHub", () => { - const typeDefs = fs - .readFileSync(path.resolve(__dirname, "./github/github.schema.graphql")) - .toString("utf-8"); - const schema = buildSchema(typeDefs); - - describe.each([[githubOps.viewer.name, githubOps.viewer]])( - `%s`, - (_operationName, operation) => { - it("renders the expected operation", () => { - expect(operation.toString()).toMatchSnapshot(); - }); - - it("renders a parsable operation", () => { - expect(() => parse(operation.toString())).not.toThrow(); - }); - - it("renders a valid operation", () => { - expect(validate(schema, operation.toDocument()).length).toBe(0); - }); - } - ); - }); - - describe("Hasura", () => { - const typeDefs = fs - .readFileSync(path.resolve(__dirname, "./hasura/hasura.schema.graphql")) - .toString("utf-8"); - const schema = buildSchema(typeDefs); - - describe.each([[hasuraOps.bookmarks.name, hasuraOps.bookmarks]])( - `%s`, - (_operationName, operation) => { - it("renders the expected operation", () => { - expect(operation.toString()).toMatchSnapshot(); - }); - - it("renders a parsable operation", () => { - expect(() => parse(operation.toString())).not.toThrow(); - }); - - it("renders a valid operation", () => { - expect(validate(schema, operation.toDocument()).length).toBe(0); - }); - } - ); - }); -}); diff --git a/__tests__/starwars/starwars.schema.graphql b/__tests__/starwars.schema.graphql similarity index 100% rename from __tests__/starwars/starwars.schema.graphql rename to __tests__/starwars.schema.graphql diff --git a/__tests__/starwars/client.test.ts b/__tests__/starwars/client.test.ts deleted file mode 100644 index e4770cc..0000000 --- a/__tests__/starwars/client.test.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Executor } from "../../src"; -import { Episode, Starwars } from "./starwars.sdk"; - -describe("Starwars SDK Client", () => { - const starwars = new Starwars(new Executor({ uri: "http://localhost:8080" })); - - it.skip("returns type-safe results", async () => { - const reviews = await starwars.query.reviews( - { episode: Episode.EMPIRE }, - (t) => [t.stars(), t.commentary()] - ); - - expect(reviews?.map((t) => t)).toBeInstanceOf(Array); - }); -}); diff --git a/__tests__/starwars/operations.ts b/__tests__/starwars/operations.ts deleted file mode 100644 index 7779641..0000000 --- a/__tests__/starwars/operations.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { query, Episode } from "./starwars.sdk"; - -export const kitchensink = query("Example", (t) => [ - t.search({ text: "han" }, (t) => [ - t.__typename(), - - t.on("Human", (t) => [t.id(), t.name()]), - ]), - - t.reviews({ episode: Episode.EMPIRE }, (t) => [t.stars(), t.commentary()]), - - t.human({ id: "1002" }, (t) => [ - t.__typename(), - t.id(), - t.name(), - t.appearsIn(), - t.homePlanet(), - - // @note Deprecated field should be properly picked-up by VSCode! - t.mass(), - - t.friends((t) => [ - t.__typename(), - t.id(), - t.name(), - t.appearsIn(), - - t.on("Human", (t) => [t.homePlanet()]), - t.on("Droid", (t) => [t.primaryFunction()]), - ]), - - t.starships((t) => [t.id(), t.name()]), - ]), -]); diff --git a/__tests__/starwars/starwars.schema.ts b/__tests__/starwars/starwars.schema.ts deleted file mode 100644 index d3863f6..0000000 --- a/__tests__/starwars/starwars.schema.ts +++ /dev/null @@ -1,512 +0,0 @@ -// @ts-nocheck - -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - -import { - GraphQLSchema, - GraphQLObjectType, - GraphQLInterfaceType, - GraphQLEnumType, - GraphQLList, - GraphQLNonNull, - GraphQLString, -} from "graphql"; - -import { makeExecutableSchema } from "graphql-tools"; - -import { PubSub, withFilter } from "graphql-subscriptions"; - -const pubsub = new PubSub(); -const ADDED_REVIEW_TOPIC = "new_review"; - -const schemaString = ` -schema { - query: Query - mutation: Mutation - subscription: Subscription -} -# The query type, represents all of the entry points into our object graph -type Query { - hero(episode: Episode): Character - reviews(episode: Episode!): [Review] - search(text: String): [SearchResult] - character(id: ID!): Character - droid(id: ID!): Droid - human(id: ID!): Human - starship(id: ID!): Starship -} -# The mutation type, represents all updates we can make to our data -type Mutation { - createReview(episode: Episode, review: ReviewInput!): Review -} -# The subscription type, represents all subscriptions we can make to our data -type Subscription { - reviewAdded(episode: Episode): Review -} -# The episodes in the Star Wars trilogy -enum Episode { - # Star Wars Episode IV: A New Hope, released in 1977. - NEWHOPE - # Star Wars Episode V: The Empire Strikes Back, released in 1980. - EMPIRE - # Star Wars Episode VI: Return of the Jedi, released in 1983. - JEDI -} -# A character from the Star Wars universe -interface Character { - # The ID of the character - id: ID! - # The name of the character - name: String! - # The friends of the character, or an empty list if they have none - friends: [Character] - # The friends of the character exposed as a connection with edges - friendsConnection(first: Int, after: ID): FriendsConnection! - # The movies this character appears in - appearsIn: [Episode]! -} -# Units of height -enum LengthUnit { - # The standard unit around the world - METER - # Primarily used in the United States - FOOT -} -# A humanoid creature from the Star Wars universe -type Human implements Character { - # The ID of the human - id: ID! - # What this human calls themselves - name: String! - # The home planet of the human, or null if unknown - homePlanet: String - # Height in the preferred unit, default is meters - height(unit: LengthUnit = METER): Float - # Mass in kilograms, or null if unknown - mass: Float - # This human's friends, or an empty list if they have none - friends: [Character] - # The friends of the human exposed as a connection with edges - friendsConnection(first: Int, after: ID): FriendsConnection! - # The movies this human appears in - appearsIn: [Episode]! - # A list of starships this person has piloted, or an empty list if none - starships: [Starship] -} -# An autonomous mechanical character in the Star Wars universe -type Droid implements Character { - # The ID of the droid - id: ID! - # What others call this droid - name: String! - # This droid's friends, or an empty list if they have none - friends: [Character] - # The friends of the droid exposed as a connection with edges - friendsConnection(first: Int, after: ID): FriendsConnection! - # The movies this droid appears in - appearsIn: [Episode]! - # This droid's primary function - primaryFunction: String -} -# A connection object for a character's friends -type FriendsConnection { - # The total number of friends - totalCount: Int - # The edges for each of the character's friends. - edges: [FriendsEdge] - # A list of the friends, as a convenience when edges are not needed. - friends: [Character] - # Information for paginating this connection - pageInfo: PageInfo! -} -# An edge object for a character's friends -type FriendsEdge { - # A cursor used for pagination - cursor: ID! - # The character represented by this friendship edge - node: Character -} -# Information for paginating this connection -type PageInfo { - startCursor: ID - endCursor: ID - hasNextPage: Boolean! -} -# Represents a review for a movie -type Review { - # The movie - episode: Episode - # The number of stars this review gave, 1-5 - stars: Int! - # Comment about the movie - commentary: String -} -# The input object sent when someone is creating a new review -input ReviewInput { - # 0-5 stars - stars: Int! - # Comment about the movie, optional - commentary: String - # Favorite color, optional - favorite_color: ColorInput -} -# The input object sent when passing in a color -input ColorInput { - red: Int! - green: Int! - blue: Int! -} -type Starship { - # The ID of the starship - id: ID! - # The name of the starship - name: String! - # Length of the starship, along the longest axis - length(unit: LengthUnit = METER): Float - coordinates: [[Float!]!] -} -union SearchResult = Human | Droid | Starship -`; - -/** - * This defines a basic set of data for our Star Wars Schema. - * - * This data is hard coded for the sake of the demo, but you could imagine - * fetching this data from a backend service rather than from hardcoded - * JSON objects in a more complex demo. - */ - -const humans = [ - { - id: "1000", - name: "Luke Skywalker", - friends: ["1002", "1003", "2000", "2001"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - homePlanet: "Tatooine", - height: 1.72, - mass: 77, - starships: ["3001", "3003"], - }, - { - id: "1001", - name: "Darth Vader", - friends: ["1004"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - homePlanet: "Tatooine", - height: 2.02, - mass: 136, - starships: ["3002"], - }, - { - id: "1002", - name: "Han Solo", - friends: ["1000", "1003", "2001"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - height: 1.8, - mass: 80, - starships: ["3000", "3003"], - }, - { - id: "1003", - name: "Leia Organa", - friends: ["1000", "1002", "2000", "2001"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - homePlanet: "Alderaan", - height: 1.5, - mass: 49, - starships: [], - }, - { - id: "1004", - name: "Wilhuff Tarkin", - friends: ["1001"], - appearsIn: ["NEWHOPE"], - height: 1.8, - mass: null, - starships: [], - }, -]; - -const humanData = {}; -humans.forEach((ship) => { - humanData[ship.id] = ship; -}); - -const droids = [ - { - id: "2000", - name: "C-3PO", - friends: ["1000", "1002", "1003", "2001"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - primaryFunction: "Protocol", - }, - { - id: "2001", - name: "R2-D2", - friends: ["1000", "1002", "1003"], - appearsIn: ["NEWHOPE", "EMPIRE", "JEDI"], - primaryFunction: "Astromech", - }, -]; - -const droidData = {}; -droids.forEach((ship) => { - droidData[ship.id] = ship; -}); - -const starships = [ - { - id: "3000", - name: "Millenium Falcon", - length: 34.37, - }, - { - id: "3001", - name: "X-Wing", - length: 12.5, - }, - { - id: "3002", - name: "TIE Advanced x1", - length: 9.2, - }, - { - id: "3003", - name: "Imperial shuttle", - length: 20, - }, -]; - -const starshipData = {}; -starships.forEach((ship) => { - starshipData[ship.id] = ship; -}); - -var reviews = { - NEWHOPE: [], - EMPIRE: [], - JEDI: [], -}; - -/** - * Helper function to get a character by ID. - */ -function getCharacter(id) { - // Returning a promise just to illustrate GraphQL.js's support. - return Promise.resolve(humanData[id] || droidData[id]); -} - -/** - * Allows us to query for a character's friends. - */ -function getFriends(character) { - return character.friends.map((id) => getCharacter(id)); -} - -/** - * Allows us to fetch the undisputed hero of the Star Wars trilogy, R2-D2. - */ -function getHero(episode) { - if (episode === "EMPIRE") { - // Luke is the hero of Episode V. - return humanData["1000"]; - } - // Artoo is the hero otherwise. - return droidData["2001"]; -} - -/** - * Allows us to fetch the ephemeral reviews for each episode - */ -function getReviews(episode) { - return reviews[episode]; -} - -/** - * Allows us to query for the human with the given id. - */ -function getHuman(id) { - return humanData[id]; -} - -/** - * Allows us to query for the droid with the given id. - */ -function getDroid(id) { - return droidData[id]; -} - -function getStarship(id) { - return starshipData[id]; -} - -function toCursor(str) { - return Buffer.from("cursor" + str).toString("base64"); -} - -function fromCursor(str) { - return Buffer.from(str, "base64").toString().slice(6); -} - -const resolvers = { - Query: { - hero: (root, { episode }) => getHero(episode), - character: (root, { id }) => getCharacter(id), - human: (root, { id }) => getHuman(id), - droid: (root, { id }) => getDroid(id), - starship: (root, { id }) => getStarship(id), - reviews: (root, { episode }) => getReviews(episode), - search: (root, { text }) => { - const re = new RegExp(text, "i"); - - const allData = [...humans, ...droids, ...starships]; - - return allData.filter((obj) => re.test(obj.name)); - }, - }, - Mutation: { - createReview: (root, { episode, review }) => { - reviews[episode].push(review); - review.episode = episode; - pubsub.publish(ADDED_REVIEW_TOPIC, { reviewAdded: review }); - return review; - }, - }, - Subscription: { - reviewAdded: { - subscribe: withFilter( - () => pubsub.asyncIterator(ADDED_REVIEW_TOPIC), - (payload, variables) => { - return ( - payload !== undefined && - (variables.episode === null || - payload.reviewAdded.episode === variables.episode) - ); - } - ), - }, - }, - Character: { - __resolveType(data, context, info) { - if (humanData[data.id]) { - return info.schema.getType("Human"); - } - if (droidData[data.id]) { - return info.schema.getType("Droid"); - } - return null; - }, - }, - Human: { - height: ({ height }, { unit }) => { - if (unit === "FOOT") { - return height * 3.28084; - } - - return height; - }, - friends: ({ friends }) => friends.map(getCharacter), - friendsConnection: ({ friends }, { first, after }) => { - first = first || friends.length; - after = after ? parseInt(fromCursor(after), 10) : 0; - const edges = friends - .map((friend, i) => ({ - cursor: toCursor(i + 1), - node: getCharacter(friend), - })) - .slice(after, first + after); - const slicedFriends = edges.map(({ node }) => node); - return { - edges, - friends: slicedFriends, - pageInfo: { - startCursor: edges.length > 0 ? edges[0].cursor : null, - hasNextPage: first + after < friends.length, - endCursor: edges.length > 0 ? edges[edges.length - 1].cursor : null, - }, - totalCount: friends.length, - }; - }, - starships: ({ starships }) => starships.map(getStarship), - appearsIn: ({ appearsIn }) => appearsIn, - }, - Droid: { - friends: ({ friends }) => friends.map(getCharacter), - friendsConnection: ({ friends }, { first, after }) => { - first = first || friends.length; - after = after ? parseInt(fromCursor(after), 10) : 0; - const edges = friends - .map((friend, i) => ({ - cursor: toCursor(i + 1), - node: getCharacter(friend), - })) - .slice(after, first + after); - const slicedFriends = edges.map(({ node }) => node); - return { - edges, - friends: slicedFriends, - pageInfo: { - startCursor: edges.length > 0 ? edges[0].cursor : null, - hasNextPage: first + after < friends.length, - endCursor: edges.length > 0 ? edges[edges.length - 1].cursor : null, - }, - totalCount: friends.length, - }; - }, - appearsIn: ({ appearsIn }) => appearsIn, - }, - FriendsConnection: { - edges: ({ edges }) => edges, - friends: ({ friends }) => friends, - pageInfo: ({ pageInfo }) => pageInfo, - totalCount: ({ totalCount }) => totalCount, - }, - FriendsEdge: { - node: ({ node }) => node, - cursor: ({ cursor }) => cursor, - }, - Starship: { - length: ({ length }, { unit }) => { - if (unit === "FOOT") { - return length * 3.28084; - } - - return length; - }, - coordinates: () => { - return [ - [1, 2], - [3, 4], - ]; - }, - }, - SearchResult: { - __resolveType(data, context, info) { - if (humanData[data.id]) { - return info.schema.getType("Human"); - } - if (droidData[data.id]) { - return info.schema.getType("Droid"); - } - if (starshipData[data.id]) { - return info.schema.getType("Starship"); - } - return null; - }, - }, -}; - -/** - * Finally, we construct our schema (whose starting query type is the query - * type we defined above) and export it. - */ -export const StarWarsSchema = makeExecutableSchema({ - typeDefs: [schemaString], - resolvers, -}); diff --git a/__tests__/starwars/starwars.sdk.ts b/__tests__/starwars/starwars.sdk.ts deleted file mode 100644 index 2db83f3..0000000 --- a/__tests__/starwars/starwars.sdk.ts +++ /dev/null @@ -1,1223 +0,0 @@ -import { - NamedType, - Argument, - Field, - InlineFragment, - Operation, - Selection, - SelectionSet, - Variable, - Executor, - Client, - TypeConditionError, - ExecutionError, -} from "../../src"; - -export const VERSION = "unversioned"; - -export const SCHEMA_SHA = "4c13c55"; - -const _ENUM_VALUES = { - NEWHOPE: true, - EMPIRE: true, - JEDI: true, - METER: true, - FOOT: true, - CUBIT: true, - SCALAR: true, - OBJECT: true, - INTERFACE: true, - UNION: true, - ENUM: true, - INPUT_OBJECT: true, - LIST: true, - NON_NULL: true, - QUERY: true, - MUTATION: true, - SUBSCRIPTION: true, - FIELD: true, - FRAGMENT_DEFINITION: true, - FRAGMENT_SPREAD: true, - INLINE_FRAGMENT: true, - VARIABLE_DEFINITION: true, - SCHEMA: true, - FIELD_DEFINITION: true, - ARGUMENT_DEFINITION: true, - ENUM_VALUE: true, - INPUT_FIELD_DEFINITION: true, -} as const; - -export enum Episode { - NEWHOPE = "NEWHOPE", - EMPIRE = "EMPIRE", - JEDI = "JEDI", -} - -export enum LengthUnit { - METER = "METER", - FOOT = "FOOT", - CUBIT = "CUBIT", -} - -export interface ReviewInput { - readonly stars: number; - readonly commentary?: string; - readonly favorite_color?: ColorInput; -} - -export interface ColorInput { - readonly red: number; - readonly green: number; - readonly blue: number; -} - -type ISearchResult = IHuman | IDroid | IStarship; - -export const isSearchResult = ( - object: Record -): object is Partial => { - return object.__typename === "SearchResult"; -}; - -interface SearchResultSelector { - readonly __typename: () => Field<"__typename">; - - readonly on: < - T extends Array, - F extends "Human" | "Droid" | "Starship" - >( - type: F, - select: ( - t: F extends "Human" - ? HumanSelector - : F extends "Droid" - ? DroidSelector - : F extends "Starship" - ? StarshipSelector - : never - ) => T - ) => InlineFragment< - NamedType< - F, - F extends "Human" - ? IHuman - : F extends "Droid" - ? IDroid - : F extends "Starship" - ? IStarship - : never - >, - SelectionSet - >; -} - -export const SearchResult: SearchResultSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Human": { - return new InlineFragment( - new NamedType("Human") as any, - new SelectionSet(select(Human as any)) - ); - } - - case "Droid": { - return new InlineFragment( - new NamedType("Droid") as any, - new SelectionSet(select(Droid as any)) - ); - } - - case "Starship": { - return new InlineFragment( - new NamedType("Starship") as any, - new SelectionSet(select(Starship as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "SearchResult", - }); - } - }, -}; - -export interface IQuery { - readonly __typename: "Query"; - readonly hero: ICharacter | null; - readonly reviews: ReadonlyArray | null; - readonly search: ReadonlyArray | null; - readonly character: ICharacter | null; - readonly droid: IDroid | null; - readonly human: IHuman | null; - readonly starship: IStarship | null; -} - -interface QuerySelector { - readonly __typename: () => Field<"__typename">; - - readonly hero: >( - variables: { episode?: Variable<"episode"> | Episode }, - select: (t: CharacterSelector) => T - ) => Field< - "hero", - [Argument<"episode", Variable<"episode"> | Episode>], - SelectionSet - >; - - readonly reviews: >( - variables: { episode?: Variable<"episode"> | Episode }, - select: (t: ReviewSelector) => T - ) => Field< - "reviews", - [Argument<"episode", Variable<"episode"> | Episode>], - SelectionSet - >; - - readonly search: >( - variables: { text?: Variable<"text"> | string }, - select: (t: SearchResultSelector) => T - ) => Field< - "search", - [Argument<"text", Variable<"text"> | string>], - SelectionSet - >; - - readonly character: >( - variables: { id?: Variable<"id"> | string }, - select: (t: CharacterSelector) => T - ) => Field< - "character", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - readonly droid: >( - variables: { id?: Variable<"id"> | string }, - select: (t: DroidSelector) => T - ) => Field< - "droid", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - readonly human: >( - variables: { id?: Variable<"id"> | string }, - select: (t: HumanSelector) => T - ) => Field< - "human", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - readonly starship: >( - variables: { id?: Variable<"id"> | string }, - select: (t: StarshipSelector) => T - ) => Field< - "starship", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; -} - -export const Query: QuerySelector = { - __typename: () => new Field("__typename"), - - hero: (variables, select) => - new Field( - "hero", - [new Argument("episode", variables.episode, _ENUM_VALUES)], - new SelectionSet(select(Character)) - ), - - reviews: (variables, select) => - new Field( - "reviews", - [new Argument("episode", variables.episode, _ENUM_VALUES)], - new SelectionSet(select(Review)) - ), - - search: (variables, select) => - new Field( - "search", - [new Argument("text", variables.text, _ENUM_VALUES)], - new SelectionSet(select(SearchResult)) - ), - - character: (variables, select) => - new Field( - "character", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(Character)) - ), - - droid: (variables, select) => - new Field( - "droid", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(Droid)) - ), - - human: (variables, select) => - new Field( - "human", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(Human)) - ), - - starship: (variables, select) => - new Field( - "starship", - [new Argument("id", variables.id, _ENUM_VALUES)], - new SelectionSet(select(Starship)) - ), -}; - -export interface IMutation { - readonly __typename: "Mutation"; - readonly createReview: IReview | null; -} - -interface MutationSelector { - readonly __typename: () => Field<"__typename">; - - readonly createReview: >( - variables: { - episode?: Variable<"episode"> | Episode; - review?: Variable<"review"> | ReviewInput; - }, - select: (t: ReviewSelector) => T - ) => Field< - "createReview", - [ - Argument<"episode", Variable<"episode"> | Episode>, - Argument<"review", Variable<"review"> | ReviewInput> - ], - SelectionSet - >; -} - -export const Mutation: MutationSelector = { - __typename: () => new Field("__typename"), - - createReview: (variables, select) => - new Field( - "createReview", - [ - new Argument("episode", variables.episode, _ENUM_VALUES), - new Argument("review", variables.review, _ENUM_VALUES), - ], - new SelectionSet(select(Review)) - ), -}; - -export interface ICharacter { - readonly __typename: string; - readonly id: string; - readonly name: string; - readonly friends: ReadonlyArray | null; - readonly friendsConnection: IFriendsConnection; - readonly appearsIn: ReadonlyArray; -} - -interface CharacterSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The ID of the character - */ - - readonly id: () => Field<"id">; - - /** - * @description The name of the character - */ - - readonly name: () => Field<"name">; - - /** - * @description The friends of the character, or an empty list if they have none - */ - - readonly friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the character exposed as a connection with edges - */ - - readonly friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this character appears in - */ - - readonly appearsIn: () => Field<"appearsIn">; - - readonly on: , F extends "Human" | "Droid">( - type: F, - select: ( - t: F extends "Human" - ? HumanSelector - : F extends "Droid" - ? DroidSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Character: CharacterSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the character - */ - id: () => new Field("id"), - - /** - * @description The name of the character - */ - name: () => new Field("name"), - - /** - * @description The friends of the character, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the character exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this character appears in - */ - appearsIn: () => new Field("appearsIn"), - - on: (type, select) => { - switch (type) { - case "Human": { - return new InlineFragment( - new NamedType("Human") as any, - new SelectionSet(select(Human as any)) - ); - } - - case "Droid": { - return new InlineFragment( - new NamedType("Droid") as any, - new SelectionSet(select(Droid as any)) - ); - } - - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "Character", - }); - } - }, -}; - -export interface IHuman extends ICharacter { - readonly __typename: "Human"; - readonly homePlanet: string | null; - readonly height: number | null; - readonly mass: number | null; - readonly starships: ReadonlyArray | null; -} - -interface HumanSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The ID of the human - */ - - readonly id: () => Field<"id">; - - /** - * @description What this human calls themselves - */ - - readonly name: () => Field<"name">; - - /** - * @description The home planet of the human, or null if unknown - */ - - readonly homePlanet: () => Field<"homePlanet">; - - /** - * @description Height in the preferred unit, default is meters - */ - - readonly height: (variables: { - unit?: Variable<"unit"> | LengthUnit; - }) => Field<"height", [Argument<"unit", Variable<"unit"> | LengthUnit>]>; - - /** - * @description Mass in kilograms, or null if unknown - * @deprecated Weight is a sensitive subject! - */ - - readonly mass: () => Field<"mass">; - - /** - * @description This human's friends, or an empty list if they have none - */ - - readonly friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the human exposed as a connection with edges - */ - - readonly friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this human appears in - */ - - readonly appearsIn: () => Field<"appearsIn">; - - /** - * @description A list of starships this person has piloted, or an empty list if none - */ - - readonly starships: >( - select: (t: StarshipSelector) => T - ) => Field<"starships", never, SelectionSet>; -} - -export const isHuman = ( - object: Record -): object is Partial => { - return object.__typename === "Human"; -}; - -export const Human: HumanSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the human - */ - id: () => new Field("id"), - - /** - * @description What this human calls themselves - */ - name: () => new Field("name"), - - /** - * @description The home planet of the human, or null if unknown - */ - homePlanet: () => new Field("homePlanet"), - - /** - * @description Height in the preferred unit, default is meters - */ - height: (variables) => new Field("height"), - - /** - * @description Mass in kilograms, or null if unknown - * @deprecated Weight is a sensitive subject! - */ - mass: () => new Field("mass"), - - /** - * @description This human's friends, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the human exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this human appears in - */ - appearsIn: () => new Field("appearsIn"), - - /** - * @description A list of starships this person has piloted, or an empty list if none - */ - - starships: (select) => - new Field( - "starships", - undefined as never, - new SelectionSet(select(Starship)) - ), -}; - -export interface IDroid extends ICharacter { - readonly __typename: "Droid"; - readonly primaryFunction: string | null; -} - -interface DroidSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The ID of the droid - */ - - readonly id: () => Field<"id">; - - /** - * @description What others call this droid - */ - - readonly name: () => Field<"name">; - - /** - * @description This droid's friends, or an empty list if they have none - */ - - readonly friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the droid exposed as a connection with edges - */ - - readonly friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this droid appears in - */ - - readonly appearsIn: () => Field<"appearsIn">; - - /** - * @description This droid's primary function - */ - - readonly primaryFunction: () => Field<"primaryFunction">; -} - -export const isDroid = ( - object: Record -): object is Partial => { - return object.__typename === "Droid"; -}; - -export const Droid: DroidSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the droid - */ - id: () => new Field("id"), - - /** - * @description What others call this droid - */ - name: () => new Field("name"), - - /** - * @description This droid's friends, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the droid exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first, _ENUM_VALUES), - new Argument("after", variables.after, _ENUM_VALUES), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this droid appears in - */ - appearsIn: () => new Field("appearsIn"), - - /** - * @description This droid's primary function - */ - primaryFunction: () => new Field("primaryFunction"), -}; - -export interface IFriendsConnection { - readonly __typename: "FriendsConnection"; - readonly totalCount: number | null; - readonly edges: ReadonlyArray | null; - readonly friends: ReadonlyArray | null; - readonly pageInfo: IPageInfo; -} - -interface FriendsConnectionSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The total number of friends - */ - - readonly totalCount: () => Field<"totalCount">; - - /** - * @description The edges for each of the character's friends. - */ - - readonly edges: >( - select: (t: FriendsEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of the friends, as a convenience when edges are not needed. - */ - - readonly friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description Information for paginating this connection - */ - - readonly pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; -} - -export const FriendsConnection: FriendsConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The total number of friends - */ - totalCount: () => new Field("totalCount"), - - /** - * @description The edges for each of the character's friends. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(FriendsEdge)) - ), - - /** - * @description A list of the friends, as a convenience when edges are not needed. - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description Information for paginating this connection - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), -}; - -export interface IFriendsEdge { - readonly __typename: "FriendsEdge"; - readonly cursor: string; - readonly node: ICharacter | null; -} - -interface FriendsEdgeSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description A cursor used for pagination - */ - - readonly cursor: () => Field<"cursor">; - - /** - * @description The character represented by this friendship edge - */ - - readonly node: >( - select: (t: CharacterSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const FriendsEdge: FriendsEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor used for pagination - */ - cursor: () => new Field("cursor"), - - /** - * @description The character represented by this friendship edge - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Character))), -}; - -export interface IPageInfo { - readonly __typename: "PageInfo"; - readonly startCursor: string | null; - readonly endCursor: string | null; - readonly hasNextPage: boolean; -} - -interface PageInfoSelector { - readonly __typename: () => Field<"__typename">; - - readonly startCursor: () => Field<"startCursor">; - - readonly endCursor: () => Field<"endCursor">; - - readonly hasNextPage: () => Field<"hasNextPage">; -} - -export const PageInfo: PageInfoSelector = { - __typename: () => new Field("__typename"), - - startCursor: () => new Field("startCursor"), - endCursor: () => new Field("endCursor"), - hasNextPage: () => new Field("hasNextPage"), -}; - -export interface IReview { - readonly __typename: "Review"; - readonly stars: number; - readonly commentary: string | null; -} - -interface ReviewSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The number of stars this review gave, 1-5 - */ - - readonly stars: () => Field<"stars">; - - /** - * @description Comment about the movie - */ - - readonly commentary: () => Field<"commentary">; -} - -export const Review: ReviewSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of stars this review gave, 1-5 - */ - stars: () => new Field("stars"), - - /** - * @description Comment about the movie - */ - commentary: () => new Field("commentary"), -}; - -export interface IStarship { - readonly __typename: "Starship"; - readonly id: string; - readonly name: string; - readonly length: number | null; - readonly coordinates: ReadonlyArray | null; -} - -interface StarshipSelector { - readonly __typename: () => Field<"__typename">; - - /** - * @description The ID of the starship - */ - - readonly id: () => Field<"id">; - - /** - * @description The name of the starship - */ - - readonly name: () => Field<"name">; - - /** - * @description Length of the starship, along the longest axis - */ - - readonly length: (variables: { - unit?: Variable<"unit"> | LengthUnit; - }) => Field<"length", [Argument<"unit", Variable<"unit"> | LengthUnit>]>; - - readonly coordinates: () => Field<"coordinates">; -} - -export const Starship: StarshipSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the starship - */ - id: () => new Field("id"), - - /** - * @description The name of the starship - */ - name: () => new Field("name"), - - /** - * @description Length of the starship, along the longest axis - */ - length: (variables) => new Field("length"), - coordinates: () => new Field("coordinates"), -}; - -export const query = >( - name: string, - select: (t: typeof Query) => T -): Operation> => - new Operation(name, "query", new SelectionSet(select(Query))); - -export const mutation = >( - name: string, - select: (t: typeof Mutation) => T -): Operation> => - new Operation(name, "mutation", new SelectionSet(select(Mutation))); - -export class Starwars implements Client { - public static readonly VERSION = VERSION; - public static readonly SCHEMA_SHA = SCHEMA_SHA; - - constructor(public readonly executor: Executor) {} - - public readonly query = { - hero: async >( - variables: { episode?: Episode }, - select: (t: CharacterSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "hero", - "query", - new SelectionSet([Query.hero(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "hero", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "hero", result }); - } else if (result.data) { - return result.data.hero; - } else { - throw new ExecutionError({ name: "hero", result }); - } - }, - - reviews: async >( - variables: { episode?: Episode }, - select: (t: ReviewSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "reviews", - "query", - new SelectionSet([Query.reviews(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "reviews", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "reviews", result }); - } else if (result.data) { - return result.data.reviews; - } else { - throw new ExecutionError({ name: "reviews", result }); - } - }, - - search: async >( - variables: { text?: string }, - select: (t: SearchResultSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "search", - "query", - new SelectionSet([Query.search(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "search", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "search", result }); - } else if (result.data) { - return result.data.search; - } else { - throw new ExecutionError({ name: "search", result }); - } - }, - - character: async >( - variables: { id?: string }, - select: (t: CharacterSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "character", - "query", - new SelectionSet([Query.character(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "character", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "character", result }); - } else if (result.data) { - return result.data.character; - } else { - throw new ExecutionError({ name: "character", result }); - } - }, - - droid: async >( - variables: { id?: string }, - select: (t: DroidSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "droid", - "query", - new SelectionSet([Query.droid(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "droid", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "droid", result }); - } else if (result.data) { - return result.data.droid; - } else { - throw new ExecutionError({ name: "droid", result }); - } - }, - - human: async >( - variables: { id?: string }, - select: (t: HumanSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "human", - "query", - new SelectionSet([Query.human(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "human", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "human", result }); - } else if (result.data) { - return result.data.human; - } else { - throw new ExecutionError({ name: "human", result }); - } - }, - - starship: async >( - variables: { id?: string }, - select: (t: StarshipSelector) => T - ) => { - const result = await this.executor - .execute< - IQuery, - Operation>]>> - >( - new Operation( - "starship", - "query", - new SelectionSet([Query.starship(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ name: "starship", transportError: error }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "starship", result }); - } else if (result.data) { - return result.data.starship; - } else { - throw new ExecutionError({ name: "starship", result }); - } - }, - }; - - public readonly mutate = { - createReview: async >( - variables: { episode?: Episode; review?: ReviewInput }, - select: (t: ReviewSelector) => T - ) => { - const result = await this.executor - .execute< - IMutation, - Operation>]>> - >( - new Operation( - "createReview", - "mutation", - new SelectionSet([Mutation.createReview(variables, select)]) - ) - ) - .catch((error: any) => { - throw new ExecutionError({ - name: "createReview", - transportError: error, - }); - }); - - if (result.errors) { - throw new ExecutionError({ name: "createReview", result }); - } else if (result.data) { - return result.data.createReview; - } else { - throw new ExecutionError({ name: "createReview", result }); - } - }, - }; -} diff --git a/codegen/__tests__/.gitkeep b/codegen/__tests__/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bin/index b/codegen/bin/index similarity index 100% rename from bin/index rename to codegen/bin/index diff --git a/codegen/package.json b/codegen/package.json new file mode 100644 index 0000000..6a1249a --- /dev/null +++ b/codegen/package.json @@ -0,0 +1,55 @@ +{ + "name": "@timkendall/tql-gen", + "version": "1.0.0-rc.1", + "description": "Code generator for @timkendall/tql.", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "files": [ + "dist", + "bin" + ], + "bin": { + "tql-gen": "bin/index" + }, + "scripts": { + "build": "tsc -b", + "build:release": "tsc --build tsconfig.release.json", + "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.release.tsbuildinfo", + "dev": "tsc -b -w", + "test": "jest --cache=false", + "type-test": "tsd", + "format": "prettier --write", + "version": "auto-changelog -p && git add CHANGELOG.md" + }, + "author": "Tim Kendall", + "license": "MIT", + "dependencies": { + "ast-types": "^0.14.2", + "fs-extra": "^9.0.1", + "graphql": "^15.3.0", + "jssha": "^3.2.0", + "node-fetch": "^2.6.1", + "outvariant": "^1.2.1", + "prettier": "^2.1.2", + "ts-poet": "^4.5.0", + "ts-toolbelt": "^9.6.0", + "yargs": "^16.1.0" + }, + "devDependencies": { + "@arkweid/lefthook": "^0.7.2", + "@types/fs-extra": "^9.0.2", + "@types/jest": "^26.0.19", + "@types/node": "^16.11.7", + "@types/node-fetch": "^2.5.7", + "@types/prettier": "^2.1.5", + "@types/yargs": "^15.0.12", + "auto-changelog": "^2.2.1", + "jest": "^26.6.3", + "ts-jest": "^26.4.4", + "ts-node": "^9.0.0", + "typescript": "^4.5.2" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/codegen/src/CLI.ts b/codegen/src/CLI.ts new file mode 100644 index 0000000..855ff53 --- /dev/null +++ b/codegen/src/CLI.ts @@ -0,0 +1,48 @@ +import Yargs from "yargs"; +import fs from "fs-extra"; +import fetch from "node-fetch"; +import { getIntrospectionQuery, buildClientSchema, printSchema } from "graphql"; + +import { render } from "./render"; + +Yargs.command( + "$0 ", + "Generate a fluent TypeScript client for your GraphQL API.", + (yargs) => + yargs.positional("schema", { + describe: "ex. https://graphql.org/swapi-graphql/", + type: "string", + demandOption: true, + }), + async (argv) => { + const schemaPath = argv.schema; + + const schema = schemaPath.startsWith("http") + ? await remoteSchema(schemaPath) + : await localSchema(schemaPath); + + process.stdout.write(render(schema)); + } +).argv; + +async function localSchema(path: string) { + const typeDefs = await fs.readFile(path, "utf-8"); + return typeDefs; +} + +async function remoteSchema(url: string) { + const { data, errors } = await fetch(url, { + method: "post", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ + operationName: "IntrospectionQuery", + query: getIntrospectionQuery(), + }), + }).then((res) => res.json()); + + if (errors) { + throw new Error("Error fetching remote schema!"); + } + + return printSchema(buildClientSchema(data)); +} diff --git a/codegen/src/__tests__/render.test.ts b/codegen/src/__tests__/render.test.ts new file mode 100644 index 0000000..1a08b5c --- /dev/null +++ b/codegen/src/__tests__/render.test.ts @@ -0,0 +1,132 @@ +import { render } from "../render"; + +describe.skip("Codegen", () => { + describe("schema", () => { + describe("scalars", () => { + it("converts ScalarTypes to primitives", () => { + const input = ` + scalar String + scalar Int + scalar Float + scalar ID + scalar Boolean + `; + + const output = render(input); + + expect(output).toBe( + expect.stringContaining(` + interface ISchema { + String: string + Int: number + Float: number + ID: string + Boolean: boolean + } + `) + ); + }); + + it("converts custom scalars to string types", () => { + const input = ` + scalar DateTime + `; + + const output = render(input); + + expect(output).toBe( + expect.stringContaining(` + interface ISchema { + String: string + Int: number + Float: number + ID: string + Boolean: boolean + DateTime: string + } + `) + ); + }); + }); + + describe("enums", () => { + it("converts EnumTypes to enums", () => { + const input = ` + enum Foo { + BAR + BAZ + } + `; + + const output = render(input); + + expect(output).toBe( + expect.stringContaining(` + interface ISchema { + Foo: Foo + } + + export enum Foo { + BAR = 'BAR', + BAZ = 'BAZ' + } + `) + ); + }); + }); + + describe("objects", () => { + it.todo("converts ObjectTypes to interfaces"); + }); + + describe("input objects", () => { + it.todo("converts InputObjectTypes to interfaces"); + }); + + describe("interfaces", () => { + it.todo("converts InterfaceTypes to interfaces"); + }); + + describe("unions", () => { + it.todo("converts UnionTypes to unions"); + }); + }); + + describe("selectors", () => { + describe("scalars", () => { + it.todo("generates a method for defining a `Field` selection"); + }); + + describe("enums", () => { + it.todo("generates a method for defining a `Field` selection"); + }); + + describe("objects", () => { + it.todo("generates a method for defining a `Field` selection"); + }); + + describe("interfaces", () => { + it.todo( + "generates an `on` method for defining an `InlineFragment` selection" + ); + }); + + describe("unions", () => { + it.todo( + "generates an `on` method for defining an `InlineFragment` selection" + ); + }); + }); + + describe("top-level API", () => { + // for defining variables + it.todo("exposes a `$` fn"); + // for constructing inline-fragments + it.todo("exposes a `on` selector fn"); + }); + + describe("utilities", () => { + it.todo("generates a const `_ENUM_VALUES` object"); + it.todo("generates a const `SCHEMA_SHA` string"); + }); +}); diff --git a/codegen/src/index.ts b/codegen/src/index.ts new file mode 100644 index 0000000..4e32bd7 --- /dev/null +++ b/codegen/src/index.ts @@ -0,0 +1,3 @@ +export * from "./transforms"; +export * from "./utils"; +export * from "./render"; diff --git a/codegen/src/render.ts b/codegen/src/render.ts new file mode 100644 index 0000000..9e213b5 --- /dev/null +++ b/codegen/src/render.ts @@ -0,0 +1,69 @@ +import { parse, buildSchema, visit, GraphQLEnumType } from "graphql"; +import type { Code } from "ts-poet"; +import prettier from "prettier"; + +import { typeTransform, selectorInterfaceTransform } from "./transforms"; + +export const render = (sdl: string): string => { + const ast = parse(sdl); + const schema = buildSchema(sdl); + + const transforms = [ + typeTransform(ast, schema), + selectorInterfaceTransform(ast, schema), + ]; + + // additive transforms + const results: ReadonlyArray<{ definitions: Code[] }> = transforms.map( + (vistor) => visit(ast, vistor) + ); + + const enumValues = new Set( + Object.values(schema.getTypeMap()) + .filter((type) => type instanceof GraphQLEnumType) + .flatMap((type) => + (type as GraphQLEnumType).getValues().map((value) => value.value) + ) + ); + + const ENUMS = ` + Object.freeze({ + ${Array.from(enumValues) + .map((value) => `${value}: true`) + .join(",\n")} + } as const) + `; + + const source = + `import { + TypeConditionError, + NamedType, + Field, + InlineFragment, + Argument, + Variable, + Selection, + SelectionSet, + SelectionBuilder, + namedType, + field, + inlineFragment, + argument, + selectionSet + } from './src' + + export { Result, Variables, $ } from './src' + ` + + ` + export const SCHEMA = ${JSON.stringify(ast)} + + export const ENUMS = ${ENUMS} + ` + + results + .flatMap((result) => + result.definitions.map((code) => code.toCodeString()) + ) + .join("\n"); + + return prettier.format(source, { parser: "typescript" }); +}; diff --git a/codegen/src/transforms/index.ts b/codegen/src/transforms/index.ts new file mode 100644 index 0000000..3b70c8f --- /dev/null +++ b/codegen/src/transforms/index.ts @@ -0,0 +1,2 @@ +export { transform as typeTransform } from "./types"; +export { transform as selectorInterfaceTransform } from "./selectors"; diff --git a/codegen/src/transforms/selectors.ts b/codegen/src/transforms/selectors.ts new file mode 100644 index 0000000..c51540a --- /dev/null +++ b/codegen/src/transforms/selectors.ts @@ -0,0 +1,387 @@ +import { + GraphQLSchema, + ASTVisitor, + Kind, + GraphQLArgument, + isListType, + isNonNullType, + GraphQLField, + GraphQLObjectType, + GraphQLInputObjectType, + GraphQLInputType, + GraphQLOutputType, + GraphQLNonNull, + GraphQLList, + GraphQLScalarType, + GraphQLEnumType, + GraphQLNamedType, + GraphQLUnionType, + GraphQLInterfaceType, + DocumentNode, +} from "graphql"; +import { imp, code } from "ts-poet"; +import { invariant } from "outvariant"; + +import { + inputType, + outputType, + listType, + toPrimitive, + toLower, +} from "../utils"; + +const printConditionalNamedType = (types: string[]) => { + const [first, ...rest] = types; + + if (rest.length === 0) { + return `I${first}`; + } else { + return types + .map((t) => `F extends "${t}" ? I${t} : `) + .join("") + .concat(" never"); + } +}; + +// ex. F extends "Human" ? HumanSelector : DroidSelector +const printConditionalSelectorArg = (types: string[]) => { + const [first, ...rest] = types; + + if (rest.length === 0) { + return `${first}Selector`; + } else { + return types + .map((t) => `F extends "${t}" ? I${t}Selector : `) + .join("") + .concat(" never"); + } +}; + +const printInputType = (type: GraphQLInputType): string => { + const _base = inputType(type); + + if (_base instanceof GraphQLScalarType) { + return toPrimitive(_base); + } else if (_base instanceof GraphQLEnumType) { + return _base.name; + } else if (_base instanceof GraphQLInputObjectType) { + return "I" + _base.name; + } else { + throw new Error("Unable to render inputType."); + } +}; + +const printArgument = (arg: GraphQLArgument): string => { + const type = inputType(arg.type); + const typename = + type instanceof GraphQLScalarType + ? toPrimitive(type) + : type instanceof GraphQLEnumType + ? type.toString() + : "I" + type.toString(); + + return `Argument<"${arg.name}", V['${arg.name}']>`; +}; + +const printVariable = (arg: GraphQLArgument): string => { + return `${arg.name}${ + arg.type instanceof GraphQLNonNull ? "" : "?" + }: Variable | ${printInputType(arg.type)}`; +}; + +const printMethod = (field: GraphQLField): string => { + const { name, args } = field; + + const type = outputType(field.type); + + const comments = [ + field.description && `@description ${field.description}`, + field.deprecationReason && `@deprecated ${field.deprecationReason}`, + ].filter(Boolean); + + const jsDocComment = + comments.length > 0 + ? ` + /** + ${comments.map((comment) => "* " + comment).join("\n")} + */ + ` + : ""; + + if (type instanceof GraphQLScalarType || type instanceof GraphQLEnumType) { + // @todo render arguments correctly + return args.length > 0 + ? jsDocComment.concat( + `${name}: (variables) => field("${name}", Object.entries(variables).map(([k, v]) => argument(k, v)) as any),` + ) + : jsDocComment.concat(`${name}: () => field("${name}"),`); + } else { + const renderArgument = (arg: GraphQLArgument): string => { + return `argument("${arg.name}", variables.${arg.name})`; + }; + + // @todo restrict allowed Field types + return args.length > 0 + ? ` + ${jsDocComment} + ${name}:( + variables, + select, + ) => field("${name}", Object.entries(variables).map(([k, v]) => argument(k, v)) as any, selectionSet(select(${type.toString()}Selector))), + ` + : ` + ${jsDocComment} + ${name}: ( + select, + ) => field("${name}", undefined as never, selectionSet(select(${type.toString()}Selector))), + `; + } +}; + +const printSignature = (field: GraphQLField): string => { + const { name, args } = field; + + const type = outputType(field.type); + + const comments = [ + field.description && `@description ${field.description}`, + field.deprecationReason && `@deprecated ${field.deprecationReason}`, + ].filter(Boolean) as string[]; + + const jsDocComment = + comments.length > 0 + ? ` + /** + ${comments.map((comment) => "* " + comment).join("\n")} + */ + ` + : ""; + + // @todo define Args type parameter as mapped type OR non-constant (i.e Array | Argument<...>>) + if (type instanceof GraphQLScalarType || type instanceof GraphQLEnumType) { + return args.length > 0 + ? `${jsDocComment}\n readonly ${name}: (variables: V) => Field<"${name}", [ ${args + .map(printArgument) + .join(", ")} ]>` + : `${jsDocComment}\n readonly ${name}: () => Field<"${name}">`; + } else { + // @todo restrict allowed Field types + return args.length > 0 + ? ` + ${jsDocComment} + readonly ${name}: >( + variables: V, + select: (t: I${type.toString()}Selector) => T + ) => Field<"${name}", [ ${args + .map(printArgument) + .join(", ")} ], SelectionSet>, + ` + : ` + ${jsDocComment} + readonly ${name}: >( + select: (t: I${type.toString()}Selector) => T + ) => Field<"${name}", never, SelectionSet>, + `; + } +}; + +export const transform = ( + ast: DocumentNode, + schema: GraphQLSchema +): ASTVisitor => { + // const Field = imp("Field@timkendall@tql"); + // const Argument = imp("Argument@timkendall@tql"); + // const Variable = imp("Variable@timkendall@tql"); + // const InlineFragment = imp("InlineFragment@timkendall@tql"); + + return { + [Kind.ENUM_TYPE_DEFINITION]: (node) => { + return null; + }, + + [Kind.ENUM_VALUE_DEFINITION]: (node) => { + return null; + }, + + [Kind.INPUT_OBJECT_TYPE_DEFINITION]: (def) => { + return null; + }, + + [Kind.OBJECT_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLObjectType, + `Type "${typename}" was not instance of expected class GraphQLObjectType.` + ); + + const fields = Object.values(type.getFields()); + + return code` + ${/* selector interface */ ""} + interface I${type.name}Selector { + readonly __typename: () => Field<"__typename"> + ${fields.map(printSignature).join("\n")} + } + + ${/* selector object */ ""} + const ${typename}Selector: I${typename}Selector = { + __typename: () => field("__typename"), + ${fields.map(printMethod).join("\n")} + } + + ${/* select fn */ ""} + export const ${toLower( + typename + )} = >(select: (t: I${typename}Selector) => T) => new SelectionBuilder(SCHEMA as any, "${typename}", select(${typename}Selector)) + `; + }, + + [Kind.INTERFACE_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLInterfaceType, + `Type "${typename}" was not instance of expected class GraphQLInterfaceType.` + ); + + // @note Get all implementors of this union + const implementations = schema + .getPossibleTypes(type) + .map((type) => type.name); + + const fields = Object.values(type.getFields()); + + return code` + ${/* selector interface */ ""} + interface I${type.name}Selector { + readonly __typename: () => Field<"__typename"> + + ${fields.map(printSignature).join("\n")} + + readonly on: , F extends ${implementations + .map((name) => `"${name}"`) + .join(" | ")}>( + type: F, + select: (t: ${printConditionalSelectorArg( + implementations.map((name) => name) + )}) => T + ) => InlineFragment, SelectionSet> + } + + ${/* selector object */ ""} + const ${typename}Selector: I${typename}Selector = { + __typename: () => field("__typename"), + + ${fields.map(printMethod).join("\n")} + + on: ( + type, + select, + ) => { + switch(type) { + ${implementations + .map( + (name) => ` + case "${name}": { + return inlineFragment( + namedType("${name}"), + selectionSet(select(${name}Selector as Parameters[0])), + ) + } + ` + ) + .join("\n")} + default: + throw new TypeConditionError({ + selectedType: type, + abstractType: "${type.name}", + }) + } + }, + } + + ${/* select fn */ ""} + export const ${toLower( + typename + )} = >(select: (t: I${typename}Selector) => T) => new SelectionBuilder(SCHEMA as any, "${typename}", select(${typename}Selector)) + `; + }, + + [Kind.UNION_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLUnionType, + `Type "${typename}" was not instance of expected class GraphQLUnionType.` + ); + + // @note Get all implementors of this union + const implementations = schema + .getPossibleTypes(type) + .map((type) => type.name); + + return code` + ${/* selector interface */ ""} + interface I${type.name}Selector { + readonly __typename: () => Field<"__typename"> + + readonly on: , F extends ${implementations + .map((name) => `"${name}"`) + .join(" | ")}>( + type: F, + select: (t: ${printConditionalSelectorArg( + implementations.map((name) => name) + )}) => T + ) => InlineFragment, SelectionSet> + } + + ${/* selector object */ ""} + const ${typename}Selector: I${typename}Selector = { + __typename: () => field("__typename"), + + on: ( + type, + select, + ) => { + switch(type) { + ${implementations + .map( + (name) => ` + case "${name}": { + return inlineFragment( + namedType("${name}"), + selectionSet(select(${name}Selector as Parameters[0])), + ) + } + ` + ) + .join("\n")} + default: + throw new TypeConditionError({ + selectedType: type, + abstractType: "${type.name}", + }) + } + }, + } + + ${/* select fn */ ""} + export const ${toLower( + typename + )} = >(select: (t: I${typename}Selector) => T) => new SelectionBuilder(SCHEMA as any, "${typename}", select(${typename}Selector)) + `; + }, + + [Kind.SCHEMA_DEFINITION]: (node) => { + return null; + }, + }; +}; diff --git a/codegen/src/transforms/types.ts b/codegen/src/transforms/types.ts new file mode 100644 index 0000000..842e116 --- /dev/null +++ b/codegen/src/transforms/types.ts @@ -0,0 +1,265 @@ +import { + GraphQLSchema, + ASTVisitor, + Kind, + GraphQLArgument, + isListType, + isNonNullType, + GraphQLField, + GraphQLObjectType, + GraphQLInputObjectType, + GraphQLInputType, + GraphQLOutputType, + GraphQLNonNull, + GraphQLList, + GraphQLScalarType, + GraphQLEnumType, + GraphQLNamedType, + GraphQLUnionType, + GraphQLInterfaceType, + DocumentNode, + GraphQLInputField, +} from "graphql"; +import { code } from "ts-poet"; +import { invariant } from "outvariant"; + +import { inputType, outputType, listType, toPrimitive } from "../utils"; + +const printInputType = (type: GraphQLInputType): string => { + const _base = inputType(type); + + if (_base instanceof GraphQLScalarType) { + return toPrimitive(_base); + } else if (_base instanceof GraphQLEnumType) { + return _base.name; + } else if (_base instanceof GraphQLInputObjectType) { + return "I" + _base.name; + } else { + throw new Error("Unable to render inputType."); + } +}; + +const printVariable = (arg: GraphQLArgument): string => { + return `${arg.name}: ${printInputType(arg.type)} ${ + arg.type instanceof GraphQLNonNull ? "" : "| undefined" + }`; +}; + +const printField = (field: GraphQLField): string => { + const { name, args } = field; + + const isList = listType(field.type); + const isNonNull = field.type instanceof GraphQLNonNull; + const type = outputType(field.type); + + const printVariables = () => { + return args.length > 0 + ? `(variables: { ${args.map(printVariable).join(", ")} })` + : ""; + }; + + if (type instanceof GraphQLScalarType) { + return ( + `${args.length > 0 ? "" : "readonly"} ${field.name}${printVariables()}: ${ + isList ? `ReadonlyArray<${toPrimitive(type)}>` : `${toPrimitive(type)}` + }` + (isNonNull ? "" : " | null") + ); + } else if (type instanceof GraphQLEnumType) { + return ( + `${args.length > 0 ? "" : "readonly"} ${field.name}${printVariables()}: ${ + isList ? `ReadonlyArray<${type.name}>` : `${type.name}` + }` + (isNonNull ? "" : " | null") + ); + } else if ( + type instanceof GraphQLInterfaceType || + type instanceof GraphQLUnionType || + type instanceof GraphQLObjectType + ) { + return ( + `${args.length > 0 ? "" : "readonly"} ${field.name}${printVariables()}: ${ + isList ? `ReadonlyArray` : `I${type.name}` + }` + (isNonNull ? "" : " | null") + ); + } else { + throw new Error("Unable to print field."); + } +}; + +export const transform = ( + ast: DocumentNode, + schema: GraphQLSchema +): ASTVisitor => { + // @note needed to serialize inline enum values correctly at runtime + const enumValues = new Set(); + + return { + [Kind.ENUM_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const values = node.values?.map((v) => v.name.value) ?? []; + + const printMember = (member: string): string => { + return `${member} = "${member}"`; + }; + + return code` + export enum ${typename} { + ${values.map(printMember).join(",\n")} + } + `; + }, + + [Kind.ENUM_VALUE_DEFINITION]: (node) => { + enumValues.add(node.name.value); + return null; + }, + + [Kind.INPUT_OBJECT_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLInputObjectType, + `Type "${typename}" was not instance of expected class GraphQLInputObjectType.` + ); + + const fields = Object.values(type.getFields()); + + const printField = (field: GraphQLInputField) => { + const isList = isListType(field.type); + const isNonNull = isNonNullType(field.type); + const baseType = inputType(field.type); + + let tsType: string; + + if (baseType instanceof GraphQLScalarType) { + tsType = toPrimitive(baseType); + } else if ( + baseType instanceof GraphQLEnumType || + baseType instanceof GraphQLInputObjectType + ) { + tsType = "I" + baseType.name; + } else { + throw new Error("Unable to render inputField!"); + } + + return [ + field.name, + isNonNull ? ":" : "?:", + " ", + tsType, + isList ? "[]" : "", + ].join(""); + }; + + return code` + export interface I${typename} { + ${fields.map(printField).join("\n")} + } + `; + }, + + [Kind.OBJECT_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLObjectType, + `Type "${typename}" was not instance of expected class GraphQLObjectType.` + ); + + const fields = Object.values(type.getFields()); + const interfaces = type.getInterfaces(); + + // @note TypeScript only requires new fields to be defined on interface extendors + const interfaceFields = interfaces.flatMap((i) => + Object.values(i.getFields()).map((field) => field.name) + ); + const uncommonFields = fields.filter( + (field) => !interfaceFields.includes(field.name) + ); + + // @todo extend any implemented interfaces + // @todo only render fields unique to this type + const extensions = + interfaces.length > 0 + ? `extends ${interfaces.map((i) => "I" + i.name).join(", ")}` + : ""; + + return code` + export interface I${typename} ${extensions} { + readonly __typename: ${`"${typename}"`} + ${uncommonFields.map(printField).join("\n")} + } + `; + }, + + [Kind.INTERFACE_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLInterfaceType, + `Type "${typename}" was not instance of expected class GraphQLInterfaceType.` + ); + + // @note Get all implementors of this union + const implementations = schema + .getPossibleTypes(type) + .map((type) => type.name); + + const fields = Object.values(type.getFields()); + + return code` + export interface I${typename} { + readonly __typename: ${implementations + .map((type) => `"${type}"`) + .join(" | ")} + ${fields.map(printField).join("\n")} + } + `; + }, + + [Kind.UNION_TYPE_DEFINITION]: (node) => { + const typename = node.name.value; + const type = schema.getType(typename); + + invariant( + type instanceof GraphQLUnionType, + `Type "${typename}" was not instance of expected class GraphQLUnionType.` + ); + + // @note Get all implementors of this union + const implementations = schema + .getPossibleTypes(type) + .map((type) => type.name); + + return code` + export type ${"I" + type.name} = ${implementations + .map((type) => `I${type}`) + .join(" | ")} + `; + }, + + [Kind.SCHEMA_DEFINITION]: (node) => { + const types = Object.values(schema.getTypeMap()).filter( + (type) => !type.name.startsWith("__") + ); + + const printType = (type: GraphQLNamedType) => { + if (type instanceof GraphQLScalarType) { + return `${type.name}: ${toPrimitive(type)}`; + } else if (type instanceof GraphQLEnumType) { + return `${type.name}: ${type.name}`; + } else { + return `${type.name}: I${type.name}`; + } + }; + + return code` + export interface ISchema { + ${types.map(printType).join("\n")} + } + `; + }, + }; +}; diff --git a/codegen/src/utils.ts b/codegen/src/utils.ts new file mode 100644 index 0000000..388b792 --- /dev/null +++ b/codegen/src/utils.ts @@ -0,0 +1,62 @@ +import { + GraphQLInputType, + GraphQLOutputType, + GraphQLNonNull, + GraphQLList, + GraphQLScalarType, +} from "graphql"; + +export function toUpper(word: string): string { + return word.charAt(0).toUpperCase() + word.slice(1); +} + +export function toLower(word: string): string { + return word.charAt(0).toLowerCase() + word.slice(1); +} + +export function inputType(type: GraphQLInputType): GraphQLInputType { + if (type instanceof GraphQLNonNull) { + return inputType(type.ofType); + } else if (type instanceof GraphQLList) { + return inputType(type.ofType); + } else { + return type; + } +} + +export function outputType(type: GraphQLOutputType): GraphQLOutputType { + if (type instanceof GraphQLNonNull) { + return outputType(type.ofType); + } else if (type instanceof GraphQLList) { + return outputType(type.ofType); + } else { + return type; + } +} + +export function listType(type: GraphQLOutputType): boolean { + if (type instanceof GraphQLNonNull) { + return listType(type.ofType); + } else if (type instanceof GraphQLList) { + return true; + } else { + return false; + } +} + +export const toPrimitive = ( + scalar: GraphQLScalarType +): "number" | "string" | "boolean" => { + switch (scalar.name) { + case "ID": + case "String": + return "string"; + case "Boolean": + return "boolean"; + case "Int": + case "Float": + return "number"; + default: + return "string"; + } +}; diff --git a/codegen/tsconfig.json b/codegen/tsconfig.json new file mode 100644 index 0000000..d545959 --- /dev/null +++ b/codegen/tsconfig.json @@ -0,0 +1,24 @@ +{ + "include": ["src/**/*", "__tests__/**/*"], + "compilerOptions": { + "strict": true, + "noEmit": true, + "rootDir": ".", + "outDir": "dist", + "sourceMap": true, + "target": "ES2020", + "module": "commonjs", + "noUnusedLocals": false, + "allowJs": false, + "declaration": true, + "declarationMap": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "moduleResolution": "node", + "strictPropertyInitialization": false, + "skipLibCheck": true, + "incremental": true, + "forceConsistentCasingInFileNames": true, + "lib": ["ES2020"] + } +} \ No newline at end of file diff --git a/codegen/tsconfig.release.json b/codegen/tsconfig.release.json new file mode 100644 index 0000000..e79e6fb --- /dev/null +++ b/codegen/tsconfig.release.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "compilerOptions": { + "rootDir": "src", + "outDir": "dist", + "noEmit": false, + "sourceMap": true, + } +} \ No newline at end of file diff --git a/examples/apollo-client/index.ts b/examples/apollo-client/index.ts deleted file mode 100644 index 5d38abe..0000000 --- a/examples/apollo-client/index.ts +++ /dev/null @@ -1,36 +0,0 @@ -import fetch from "node-fetch"; -import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client"; - -import { Result } from "../../src"; -import { - query, - IQuery, - LengthUnit, - Episode, -} from "../../__tests__/starwars/starwars.sdk"; - -(async () => { - const client = new ApolloClient({ - link: new HttpLink({ uri: "http://localhost:8080/graphql", fetch }), - cache: new InMemoryCache(), - }); - - const example = query("ApolloExample", (t) => [ - t.character({ id: "foo" }, (t) => [t.id(), t.friends((t) => [t.id()])]), - - t.starship({ id: "foo" }, (t) => [ - t.id(), - t.name(), - t.length({ unit: LengthUnit.FOOT }), - t.coordinates(), - ]), - - t.reviews({ episode: Episode.JEDI }, (t) => [t.commentary()]), - ]); - - const result = await client.query< - Result - >({ query: example.toDocument() }); - - console.log(`Found Starship "${result.data.starship?.name}"!`); -})(); diff --git a/examples/apollo-client/package-lock.json b/examples/apollo-client/package-lock.json deleted file mode 100644 index 834506c..0000000 --- a/examples/apollo-client/package-lock.json +++ /dev/null @@ -1,513 +0,0 @@ -{ - "name": "apollo-client", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "@apollo/client": "^3.3.20", - "node-fetch": "^2.6.1", - "react": "^17.0.2" - }, - "devDependencies": { - "@types/react": "^17.0.11" - } - }, - "node_modules/@apollo/client": { - "version": "3.3.20", - "resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.3.20.tgz", - "integrity": "sha512-hS7UmBwJweudw/J3M0RAcusMHNiRuGqkRH6g91PM2ev8cXScIMdXr/++9jo7wD1nAITMCMF4HQQ3LFaw/Or0Bw==", - "dependencies": { - "@graphql-typed-document-node/core": "^3.0.0", - "@types/zen-observable": "^0.8.0", - "@wry/context": "^0.6.0", - "@wry/equality": "^0.5.0", - "fast-json-stable-stringify": "^2.0.0", - "graphql-tag": "^2.12.0", - "hoist-non-react-statics": "^3.3.2", - "optimism": "^0.16.0", - "prop-types": "^15.7.2", - "symbol-observable": "^4.0.0", - "ts-invariant": "^0.7.0", - "tslib": "^1.10.0", - "zen-observable": "^0.8.14" - }, - "peerDependencies": { - "graphql": "^14.0.0 || ^15.0.0", - "react": "^16.8.0 || ^17.0.0", - "subscriptions-transport-ws": "^0.9.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "subscriptions-transport-ws": { - "optional": true - } - } - }, - "node_modules/@graphql-typed-document-node/core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.0.tgz", - "integrity": "sha512-wYn6r8zVZyQJ6rQaALBEln5B1pzxb9shV5Ef97kTvn6yVGrqyXVnDqnU24MXnFubR+rZjBY9NWuxX3FB2sTsjg==", - "peerDependencies": { - "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" - } - }, - "node_modules/@types/prop-types": { - "version": "15.7.3", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true - }, - "node_modules/@types/react": { - "version": "17.0.11", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.11.tgz", - "integrity": "sha512-yFRQbD+whVonItSk7ZzP/L+gPTJVBkL/7shLEF+i9GC/1cV3JmUxEQz6+9ylhUpWSDuqo1N9qEvqS6vTj4USUA==", - "dev": true, - "dependencies": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/scheduler": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", - "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "dev": true - }, - "node_modules/@types/zen-observable": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.8.2.tgz", - "integrity": "sha512-HrCIVMLjE1MOozVoD86622S7aunluLb2PJdPfb3nYiEtohm8mIB/vyv0Fd37AdeMFrTUQXEunw78YloMA3Qilg==" - }, - "node_modules/@wry/context": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.6.0.tgz", - "integrity": "sha512-sAgendOXR8dM7stJw3FusRxFHF/ZinU0lffsA2YTyyIOfic86JX02qlPqPVqJNZJPAxFt+2EE8bvq6ZlS0Kf+Q==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wry/context/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, - "node_modules/@wry/equality": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/@wry/equality/-/equality-0.5.1.tgz", - "integrity": "sha512-FZKbdpbcVcbDxQrKcaBClNsQaMg9nof1RKM7mReJe5DKUzM5u8S7T+PqwNqvib5O2j2xxF1R4p5O3+b6baTrbw==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wry/equality/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, - "node_modules/@wry/trie": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@wry/trie/-/trie-0.3.0.tgz", - "integrity": "sha512-Yw1akIogPhAT6XPYsRHlZZIS0tIGmAl9EYXHi2scf7LPKKqdqmow/Hu4kEqP2cJR3EjaU/9L0ZlAjFf3hFxmug==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@wry/trie/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, - "node_modules/csstype": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", - "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "dev": true - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "node_modules/graphql": { - "version": "15.5.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.1.tgz", - "integrity": "sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw==", - "peer": true, - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/graphql-tag": { - "version": "2.12.4", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.4.tgz", - "integrity": "sha512-VV1U4O+9x99EkNpNmCUV5RZwq6MnK4+pGbRYWG+lA/m3uo7TSqJF81OkcOP148gFP6fzdl7JWYBrwWVTS9jXww==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" - } - }, - "node_modules/graphql-tag/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, - "node_modules/hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dependencies": { - "react-is": "^16.7.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", - "engines": { - "node": "4.x || >=6.0.0" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/optimism": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.16.1.tgz", - "integrity": "sha512-64i+Uw3otrndfq5kaoGNoY7pvOhSsjFEN4bdEFh80MWVk/dbgJfMv7VFDeCT8LxNAlEVhQmdVEbfE7X2nWNIIg==", - "dependencies": { - "@wry/context": "^0.6.0", - "@wry/trie": "^0.3.0" - } - }, - "node_modules/prop-types": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", - "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.8.1" - } - }, - "node_modules/react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "dependencies": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "node_modules/symbol-observable": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", - "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/ts-invariant": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.7.5.tgz", - "integrity": "sha512-qfVyqTYWEqADMtncLqwpUdMjMSXnsqOeqGtj1LeJNFDjz8oqZ1YxLEp29YCOq65z0LgEiERqQ8ThVjnfibJNpg==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ts-invariant/node_modules/tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - }, - "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/zen-observable": { - "version": "0.8.15", - "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.15.tgz", - "integrity": "sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==" - } - }, - "dependencies": { - "@apollo/client": { - "version": "3.3.20", - "resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.3.20.tgz", - "integrity": "sha512-hS7UmBwJweudw/J3M0RAcusMHNiRuGqkRH6g91PM2ev8cXScIMdXr/++9jo7wD1nAITMCMF4HQQ3LFaw/Or0Bw==", - "requires": { - "@graphql-typed-document-node/core": "^3.0.0", - "@types/zen-observable": "^0.8.0", - "@wry/context": "^0.6.0", - "@wry/equality": "^0.5.0", - "fast-json-stable-stringify": "^2.0.0", - "graphql-tag": "^2.12.0", - "hoist-non-react-statics": "^3.3.2", - "optimism": "^0.16.0", - "prop-types": "^15.7.2", - "symbol-observable": "^4.0.0", - "ts-invariant": "^0.7.0", - "tslib": "^1.10.0", - "zen-observable": "^0.8.14" - } - }, - "@graphql-typed-document-node/core": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.0.tgz", - "integrity": "sha512-wYn6r8zVZyQJ6rQaALBEln5B1pzxb9shV5Ef97kTvn6yVGrqyXVnDqnU24MXnFubR+rZjBY9NWuxX3FB2sTsjg==", - "requires": {} - }, - "@types/prop-types": { - "version": "15.7.3", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true - }, - "@types/react": { - "version": "17.0.11", - "resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.11.tgz", - "integrity": "sha512-yFRQbD+whVonItSk7ZzP/L+gPTJVBkL/7shLEF+i9GC/1cV3JmUxEQz6+9ylhUpWSDuqo1N9qEvqS6vTj4USUA==", - "dev": true, - "requires": { - "@types/prop-types": "*", - "@types/scheduler": "*", - "csstype": "^3.0.2" - } - }, - "@types/scheduler": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", - "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "dev": true - }, - "@types/zen-observable": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/@types/zen-observable/-/zen-observable-0.8.2.tgz", - "integrity": "sha512-HrCIVMLjE1MOozVoD86622S7aunluLb2PJdPfb3nYiEtohm8mIB/vyv0Fd37AdeMFrTUQXEunw78YloMA3Qilg==" - }, - "@wry/context": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.6.0.tgz", - "integrity": "sha512-sAgendOXR8dM7stJw3FusRxFHF/ZinU0lffsA2YTyyIOfic86JX02qlPqPVqJNZJPAxFt+2EE8bvq6ZlS0Kf+Q==", - "requires": { - "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } - } - }, - "@wry/equality": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/@wry/equality/-/equality-0.5.1.tgz", - "integrity": "sha512-FZKbdpbcVcbDxQrKcaBClNsQaMg9nof1RKM7mReJe5DKUzM5u8S7T+PqwNqvib5O2j2xxF1R4p5O3+b6baTrbw==", - "requires": { - "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } - } - }, - "@wry/trie": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@wry/trie/-/trie-0.3.0.tgz", - "integrity": "sha512-Yw1akIogPhAT6XPYsRHlZZIS0tIGmAl9EYXHi2scf7LPKKqdqmow/Hu4kEqP2cJR3EjaU/9L0ZlAjFf3hFxmug==", - "requires": { - "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } - } - }, - "csstype": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", - "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==", - "dev": true - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "graphql": { - "version": "15.5.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.1.tgz", - "integrity": "sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw==", - "peer": true - }, - "graphql-tag": { - "version": "2.12.4", - "resolved": "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.4.tgz", - "integrity": "sha512-VV1U4O+9x99EkNpNmCUV5RZwq6MnK4+pGbRYWG+lA/m3uo7TSqJF81OkcOP148gFP6fzdl7JWYBrwWVTS9jXww==", - "requires": { - "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } - } - }, - "hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "requires": { - "react-is": "^16.7.0" - } - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" - }, - "optimism": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/optimism/-/optimism-0.16.1.tgz", - "integrity": "sha512-64i+Uw3otrndfq5kaoGNoY7pvOhSsjFEN4bdEFh80MWVk/dbgJfMv7VFDeCT8LxNAlEVhQmdVEbfE7X2nWNIIg==", - "requires": { - "@wry/context": "^0.6.0", - "@wry/trie": "^0.3.0" - } - }, - "prop-types": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", - "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.8.1" - } - }, - "react": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", - "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1" - } - }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" - }, - "symbol-observable": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-4.0.0.tgz", - "integrity": "sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==" - }, - "ts-invariant": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.7.5.tgz", - "integrity": "sha512-qfVyqTYWEqADMtncLqwpUdMjMSXnsqOeqGtj1LeJNFDjz8oqZ1YxLEp29YCOq65z0LgEiERqQ8ThVjnfibJNpg==", - "requires": { - "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz", - "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" - } - } - }, - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "zen-observable": { - "version": "0.8.15", - "resolved": "https://registry.npmjs.org/zen-observable/-/zen-observable-0.8.15.tgz", - "integrity": "sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==" - } - } -} diff --git a/examples/apollo-client/package.json b/examples/apollo-client/package.json deleted file mode 100644 index 5cf91e0..0000000 --- a/examples/apollo-client/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "apollo-client", - "version": "1.0.0", - "private": true, - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "@apollo/client": "^3.3.20", - "node-fetch": "^2.6.1", - "react": "^17.0.2" - }, - "devDependencies": { - "@types/react": "^17.0.11" - } -} diff --git a/examples/graphql-request/index.ts b/examples/graphql-request/index.ts deleted file mode 100644 index bf5e60a..0000000 --- a/examples/graphql-request/index.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { request, rawRequest } from "graphql-request"; - -import { Result } from "../../src"; -import { IQuery, query } from "../../__tests__/starwars/starwars.sdk"; -(async () => { - const operation = query("Test", (t) => [ - t.character({ id: "1001" }, (t) => [t.__typename(), t.id(), t.name()]), - ]); - - type Data = Result; - - const [result, rawResult] = await Promise.all([ - request("http://localhost:8080/graphql", operation.toDocument()), - rawRequest("http://localhost:8080/graphql", operation.toString()), - ]); - - console.log(`Found Character "${result.character?.name}"!`); - console.log(`Found Character "${rawResult.data?.character?.name}" again!`); -})(); diff --git a/examples/graphql-request/package-lock.json b/examples/graphql-request/package-lock.json deleted file mode 100644 index 22ff7cd..0000000 --- a/examples/graphql-request/package-lock.json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "name": "graphql-request", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "graphql": "^15.5.1", - "graphql-request": "^3.4.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/cross-fetch": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", - "dependencies": { - "node-fetch": "2.6.1" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/extract-files": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", - "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==", - "engines": { - "node": "^10.17.0 || ^12.0.0 || >= 13.7.0" - }, - "funding": { - "url": "https://github.com/sponsors/jaydenseric" - } - }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/graphql": { - "version": "15.5.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.1.tgz", - "integrity": "sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw==", - "engines": { - "node": ">= 10.x" - } - }, - "node_modules/graphql-request": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.4.0.tgz", - "integrity": "sha512-acrTzidSlwAj8wBNO7Q/UQHS8T+z5qRGquCQRv9J1InwR01BBWV9ObnoE+JS5nCCEj8wSGS0yrDXVDoRiKZuOg==", - "dependencies": { - "cross-fetch": "^3.0.6", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - }, - "peerDependencies": { - "graphql": "14.x || 15.x" - } - }, - "node_modules/mime-db": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", - "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.31", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", - "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", - "dependencies": { - "mime-db": "1.48.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", - "engines": { - "node": "4.x || >=6.0.0" - } - } - }, - "dependencies": { - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "cross-fetch": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.4.tgz", - "integrity": "sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==", - "requires": { - "node-fetch": "2.6.1" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "extract-files": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz", - "integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==" - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "graphql": { - "version": "15.5.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.5.1.tgz", - "integrity": "sha512-FeTRX67T3LoE3LWAxxOlW2K3Bz+rMYAC18rRguK4wgXaTZMiJwSUwDmPFo3UadAKbzirKIg5Qy+sNJXbpPRnQw==" - }, - "graphql-request": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/graphql-request/-/graphql-request-3.4.0.tgz", - "integrity": "sha512-acrTzidSlwAj8wBNO7Q/UQHS8T+z5qRGquCQRv9J1InwR01BBWV9ObnoE+JS5nCCEj8wSGS0yrDXVDoRiKZuOg==", - "requires": { - "cross-fetch": "^3.0.6", - "extract-files": "^9.0.0", - "form-data": "^3.0.0" - } - }, - "mime-db": { - "version": "1.48.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", - "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==" - }, - "mime-types": { - "version": "2.1.31", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", - "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", - "requires": { - "mime-db": "1.48.0" - } - }, - "node-fetch": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", - "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" - } - } -} diff --git a/examples/graphql-request/package.json b/examples/graphql-request/package.json deleted file mode 100644 index d1ab1f6..0000000 --- a/examples/graphql-request/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "graphql-request", - "version": "1.0.0", - "private": true, - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "dependencies": { - "graphql": "^15.5.1", - "graphql-request": "^3.4.0" - } -} diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..3bd16e1 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export * from "./src"; diff --git a/jest.config.js b/jest.config.js index 95bdd4c..39957ab 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,8 +5,8 @@ module.exports = { name: pack.name, displayName: pack.name, testEnvironment: "node", - moduleDirectories: ['node_modules', 'resource', 'src', '__tests__'], + moduleDirectories: ['node_modules', 'src', '__tests__'], testPathIgnorePatterns: ['build'], testRegex: "(/(__tests__|src)/.*(\\.|/)(test|spec))\\.(ts|tsx)$", - moduleDirectories: ['node_modules', 'resource', 'src', '__tests__'] + moduleDirectories: ['node_modules', 'src', '__tests__'] } \ No newline at end of file diff --git a/lefthook.yml b/lefthook.yml index 91fd981..c3a1c57 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -4,4 +4,4 @@ pre-commit: formatter: files: git diff --name-only --staged glob: "*.{ts}" - run: yarn format {files} && git add {files} \ No newline at end of file + run: pnpm format {files} && git add {files} \ No newline at end of file diff --git a/package.json b/package.json index 9945648..602ba6c 100644 --- a/package.json +++ b/package.json @@ -2,56 +2,63 @@ "name": "@timkendall/tql", "author": "Timothy Kendall", "license": "MIT", - "version": "0.8.0", + "version": "1.0.0-rc.1", "description": "Write GraphQL queries in TypeScript.", - "keywords": ["graphql", "typescript", "query builder", "codegen"], + "sideEffects": false, + "keywords": [ + "graphql", + "typescript", + "query builder", + "codegen" + ], "main": "dist/index.js", "types": "dist/index.d.ts", - "bin": { - "tql": "bin/index" - }, "files": [ - "dist", - "bin" + "dist" + ], + "workspaces": [ + ".", + "codegen" ], "scripts": { "build": "tsc -b", "build:release": "tsc --build tsconfig.release.json", "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.release.tsbuildinfo", "dev": "tsc -b -w", - "prepush": "yarn test", - "prepublish": "yarn clean && yarn build:release", "test": "jest --cache=false", + "type-test": "tsd", "format": "prettier --write", "version": "auto-changelog -p && git add CHANGELOG.md" }, "dependencies": { - "fs-extra": "^9.0.1", - "jssha": "^3.2.0", - "node-fetch": "^2.6.1", - "prettier": "^2.1.2", - "yargs": "^16.1.0" + "@graphql-typed-document-node/core": "^3.0.0", + "ts-toolbelt": "^9.6.0" }, "devDependencies": { - "@apollo/client": "^3.4.4", + "@apollo/client": "^3.4.16", "@arkweid/lefthook": "^0.7.2", + "@types/deep-freeze": "^0.1.2", "@types/fs-extra": "^9.0.2", "@types/jest": "^26.0.19", - "@types/node": "^14.6.2", + "@types/node": "^16.11.7", "@types/node-fetch": "^2.5.7", "@types/prettier": "^2.1.5", "@types/yargs": "^15.0.12", "auto-changelog": "^2.2.1", + "deep-freeze": "^0.0.1", "graphql": "^15.3.0", - "graphql-request": "^3.5.0", - "graphql-subscriptions": "^1.0.0", - "graphql-tools": "^4.0.8", + "graphql-request": "^3.6.1", "jest": "^26.6.3", + "prettier": "^2.1.2", "ts-jest": "^26.4.4", "ts-node": "^9.0.0", - "typescript": "^4.2.3" + "tsd": "^0.18.0", + "typescript": "^4.5.2" }, "peerDependencies": { - "graphql": "^15.3.0" + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0" + }, + "publishConfig": { + "access": "public" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..bed463b --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,4321 @@ +lockfileVersion: 5.3 + +importers: + + .: + specifiers: + '@apollo/client': ^3.4.16 + '@arkweid/lefthook': ^0.7.2 + '@graphql-typed-document-node/core': ^3.0.0 + '@types/deep-freeze': ^0.1.2 + '@types/fs-extra': ^9.0.2 + '@types/jest': ^26.0.19 + '@types/node': ^16.11.7 + '@types/node-fetch': ^2.5.7 + '@types/prettier': ^2.1.5 + '@types/yargs': ^15.0.12 + auto-changelog: ^2.2.1 + deep-freeze: ^0.0.1 + graphql: ^15.3.0 + graphql-request: ^3.6.1 + jest: ^26.6.3 + prettier: ^2.1.2 + ts-jest: ^26.4.4 + ts-node: ^9.0.0 + ts-toolbelt: ^9.6.0 + tsd: ^0.18.0 + typescript: ^4.5.2 + dependencies: + '@graphql-typed-document-node/core': 3.1.1_graphql@15.7.2 + ts-toolbelt: 9.6.0 + devDependencies: + '@apollo/client': 3.4.16_graphql@15.7.2 + '@arkweid/lefthook': 0.7.7 + '@types/deep-freeze': 0.1.2 + '@types/fs-extra': 9.0.13 + '@types/jest': 26.0.24 + '@types/node': 16.11.7 + '@types/node-fetch': 2.5.12 + '@types/prettier': 2.4.1 + '@types/yargs': 15.0.14 + auto-changelog: 2.3.0 + deep-freeze: 0.0.1 + graphql: 15.7.2 + graphql-request: 3.6.1_graphql@15.7.2 + jest: 26.6.3_ts-node@9.1.1 + prettier: 2.4.1 + ts-jest: 26.5.6_jest@26.6.3+typescript@4.5.2 + ts-node: 9.1.1_typescript@4.5.2 + tsd: 0.18.0 + typescript: 4.5.2 + + codegen: + specifiers: + '@arkweid/lefthook': ^0.7.2 + '@types/fs-extra': ^9.0.2 + '@types/jest': ^26.0.19 + '@types/node': ^16.11.7 + '@types/node-fetch': ^2.5.7 + '@types/prettier': ^2.1.5 + '@types/yargs': ^15.0.12 + ast-types: ^0.14.2 + auto-changelog: ^2.2.1 + fs-extra: ^9.0.1 + graphql: ^15.3.0 + jest: ^26.6.3 + jssha: ^3.2.0 + node-fetch: ^2.6.1 + outvariant: ^1.2.1 + prettier: ^2.1.2 + ts-jest: ^26.4.4 + ts-node: ^9.0.0 + ts-poet: ^4.5.0 + ts-toolbelt: ^9.6.0 + typescript: ^4.5.2 + yargs: ^16.1.0 + dependencies: + ast-types: 0.14.2 + fs-extra: 9.1.0 + graphql: 15.7.2 + jssha: 3.2.0 + node-fetch: 2.6.6 + outvariant: 1.2.1 + prettier: 2.4.1 + ts-poet: 4.6.1 + ts-toolbelt: 9.6.0 + yargs: 16.2.0 + devDependencies: + '@arkweid/lefthook': 0.7.7 + '@types/fs-extra': 9.0.13 + '@types/jest': 26.0.24 + '@types/node': 16.11.7 + '@types/node-fetch': 2.5.12 + '@types/prettier': 2.4.1 + '@types/yargs': 15.0.14 + auto-changelog: 2.3.0 + jest: 26.6.3_ts-node@9.1.1 + ts-jest: 26.5.6_jest@26.6.3+typescript@4.5.2 + ts-node: 9.1.1_typescript@4.5.2 + typescript: 4.5.2 + +packages: + + /@apollo/client/3.4.16_graphql@15.7.2: + resolution: {integrity: sha512-iF4zEYwvebkri0BZQyv8zfavPfVEafsK0wkOofa6eC2yZu50J18uTutKtC174rjHZ2eyxZ8tV7NvAPKRT+OtZw==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 + react: ^16.8.0 || ^17.0.0 + subscriptions-transport-ws: ^0.9.0 + peerDependenciesMeta: + react: + optional: true + subscriptions-transport-ws: + optional: true + dependencies: + '@graphql-typed-document-node/core': 3.1.1_graphql@15.7.2 + '@wry/context': 0.6.1 + '@wry/equality': 0.5.2 + '@wry/trie': 0.3.1 + graphql: 15.7.2 + graphql-tag: 2.12.5_graphql@15.7.2 + hoist-non-react-statics: 3.3.2 + optimism: 0.16.1 + prop-types: 15.7.2 + symbol-observable: 4.0.0 + ts-invariant: 0.9.3 + tslib: 2.3.1 + zen-observable-ts: 1.1.0 + dev: true + + /@arkweid/lefthook/0.7.7: + resolution: {integrity: sha512-Eq30OXKmjxIAIsTtbX2fcF3SNZIXS8yry1u8yty7PQFYRctx04rVlhOJCEB2UmfTh8T2vrOMC9IHHUvvo5zbaQ==} + cpu: [x64, arm64, ia32] + os: [darwin, linux, win32] + hasBin: true + requiresBuild: true + dev: true + + /@babel/code-frame/7.16.0: + resolution: {integrity: sha512-IF4EOMEV+bfYwOmNxGzSnjR2EmQod7f1UXOpZM3l4i4o4QNwzjtJAu/HxdjHq0aYBvdqMuQEY1eg0nqW9ZPORA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': 7.16.0 + dev: true + + /@babel/compat-data/7.16.0: + resolution: {integrity: sha512-DGjt2QZse5SGd9nfOSqO4WLJ8NN/oHkijbXbPrxuoJO3oIPJL3TciZs9FX+cOHNiY9E9l0opL8g7BmLe3T+9ew==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/core/7.16.0: + resolution: {integrity: sha512-mYZEvshBRHGsIAiyH5PzCFTCfbWfoYbO/jcSdXQSUQu1/pW0xDZAUP7KEc32heqWTAfAHhV9j1vH8Sav7l+JNQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.0 + '@babel/generator': 7.16.0 + '@babel/helper-compilation-targets': 7.16.0_@babel+core@7.16.0 + '@babel/helper-module-transforms': 7.16.0 + '@babel/helpers': 7.16.0 + '@babel/parser': 7.16.2 + '@babel/template': 7.16.0 + '@babel/traverse': 7.16.0 + '@babel/types': 7.16.0 + convert-source-map: 1.8.0 + debug: 4.3.2 + gensync: 1.0.0-beta.2 + json5: 2.2.0 + semver: 6.3.0 + source-map: 0.5.7 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/generator/7.16.0: + resolution: {integrity: sha512-RR8hUCfRQn9j9RPKEVXo9LiwoxLPYn6hNZlvUOR8tSnaxlD0p0+la00ZP9/SnRt6HchKr+X0fO2r8vrETiJGew==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + jsesc: 2.5.2 + source-map: 0.5.7 + dev: true + + /@babel/helper-compilation-targets/7.16.0_@babel+core@7.16.0: + resolution: {integrity: sha512-S7iaOT1SYlqK0sQaCi21RX4+13hmdmnxIEAnQUB/eh7GeAnRjOUgTYpLkUOiRXzD+yog1JxP0qyAQZ7ZxVxLVg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/compat-data': 7.16.0 + '@babel/core': 7.16.0 + '@babel/helper-validator-option': 7.14.5 + browserslist: 4.17.6 + semver: 6.3.0 + dev: true + + /@babel/helper-function-name/7.16.0: + resolution: {integrity: sha512-BZh4mEk1xi2h4HFjWUXRQX5AEx4rvaZxHgax9gcjdLWdkjsY7MKt5p0otjsg5noXw+pB+clMCjw+aEVYADMjog==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-get-function-arity': 7.16.0 + '@babel/template': 7.16.0 + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-get-function-arity/7.16.0: + resolution: {integrity: sha512-ASCquNcywC1NkYh/z7Cgp3w31YW8aojjYIlNg4VeJiHkqyP4AzIvr4qx7pYDb4/s8YcsZWqqOSxgkvjUz1kpDQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-hoist-variables/7.16.0: + resolution: {integrity: sha512-1AZlpazjUR0EQZQv3sgRNfM9mEVWPK3M6vlalczA+EECcPz3XPh6VplbErL5UoMpChhSck5wAJHthlj1bYpcmg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-member-expression-to-functions/7.16.0: + resolution: {integrity: sha512-bsjlBFPuWT6IWhl28EdrQ+gTvSvj5tqVP5Xeftp07SEuz5pLnsXZuDkDD3Rfcxy0IsHmbZ+7B2/9SHzxO0T+sQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-module-imports/7.16.0: + resolution: {integrity: sha512-kkH7sWzKPq0xt3H1n+ghb4xEMP8k0U7XV3kkB+ZGy69kDk2ySFW1qPi06sjKzFY3t1j6XbJSqr4mF9L7CYVyhg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-module-transforms/7.16.0: + resolution: {integrity: sha512-My4cr9ATcaBbmaEa8M0dZNA74cfI6gitvUAskgDtAFmAqyFKDSHQo5YstxPbN+lzHl2D9l/YOEFqb2mtUh4gfA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-module-imports': 7.16.0 + '@babel/helper-replace-supers': 7.16.0 + '@babel/helper-simple-access': 7.16.0 + '@babel/helper-split-export-declaration': 7.16.0 + '@babel/helper-validator-identifier': 7.15.7 + '@babel/template': 7.16.0 + '@babel/traverse': 7.16.0 + '@babel/types': 7.16.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-optimise-call-expression/7.16.0: + resolution: {integrity: sha512-SuI467Gi2V8fkofm2JPnZzB/SUuXoJA5zXe/xzyPP2M04686RzFKFHPK6HDVN6JvWBIEW8tt9hPR7fXdn2Lgpw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-plugin-utils/7.14.5: + resolution: {integrity: sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-replace-supers/7.16.0: + resolution: {integrity: sha512-TQxuQfSCdoha7cpRNJvfaYxxxzmbxXw/+6cS7V02eeDYyhxderSoMVALvwupA54/pZcOTtVeJ0xccp1nGWladA==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-member-expression-to-functions': 7.16.0 + '@babel/helper-optimise-call-expression': 7.16.0 + '@babel/traverse': 7.16.0 + '@babel/types': 7.16.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/helper-simple-access/7.16.0: + resolution: {integrity: sha512-o1rjBT/gppAqKsYfUdfHq5Rk03lMQrkPHG1OWzHWpLgVXRH4HnMM9Et9CVdIqwkCQlobnGHEJMsgWP/jE1zUiw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-split-export-declaration/7.16.0: + resolution: {integrity: sha512-0YMMRpuDFNGTHNRiiqJX19GjNXA4H0E8jZ2ibccfSxaCogbm3am5WN/2nQNj0YnQwGWM1J06GOcQ2qnh3+0paw==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@babel/helper-validator-identifier/7.15.7: + resolution: {integrity: sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helper-validator-option/7.14.5: + resolution: {integrity: sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==} + engines: {node: '>=6.9.0'} + dev: true + + /@babel/helpers/7.16.0: + resolution: {integrity: sha512-dVRM0StFMdKlkt7cVcGgwD8UMaBfWJHl3A83Yfs8GQ3MO0LHIIIMvK7Fa0RGOGUQ10qikLaX6D7o5htcQWgTMQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': 7.16.0 + '@babel/traverse': 7.16.0 + '@babel/types': 7.16.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/highlight/7.16.0: + resolution: {integrity: sha512-t8MH41kUQylBtu2+4IQA3atqevA2lRgqA2wyVB/YiWmsDSuylZZuXOUy9ric30hfzauEFfdsuk/eXTRrGrfd0g==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.15.7 + chalk: 2.4.2 + js-tokens: 4.0.0 + dev: true + + /@babel/parser/7.16.2: + resolution: {integrity: sha512-RUVpT0G2h6rOZwqLDTrKk7ksNv7YpAilTnYe1/Q+eDjxEceRMKVWbCsX7t8h6C1qCFi/1Y8WZjcEPBAFG27GPw==} + engines: {node: '>=6.0.0'} + hasBin: true + dev: true + + /@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.16.0: + resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-bigint/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-class-properties/7.12.13_@babel+core@7.16.0: + resolution: {integrity: sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-import-meta/7.10.4_@babel+core@7.16.0: + resolution: {integrity: sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-json-strings/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-logical-assignment-operators/7.10.4_@babel+core@7.16.0: + resolution: {integrity: sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-nullish-coalescing-operator/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-numeric-separator/7.10.4_@babel+core@7.16.0: + resolution: {integrity: sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-object-rest-spread/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-optional-catch-binding/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-optional-chaining/7.8.3_@babel+core@7.16.0: + resolution: {integrity: sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/plugin-syntax-top-level-await/7.14.5_@babel+core@7.16.0: + resolution: {integrity: sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.16.0 + '@babel/helper-plugin-utils': 7.14.5 + dev: true + + /@babel/template/7.16.0: + resolution: {integrity: sha512-MnZdpFD/ZdYhXwiunMqqgyZyucaYsbL0IrjoGjaVhGilz+x8YB++kRfygSOIj1yOtWKPlx7NBp+9I1RQSgsd5A==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.0 + '@babel/parser': 7.16.2 + '@babel/types': 7.16.0 + dev: true + + /@babel/traverse/7.16.0: + resolution: {integrity: sha512-qQ84jIs1aRQxaGaxSysII9TuDaguZ5yVrEuC0BN2vcPlalwfLovVmCjbFDPECPXcYM/wLvNFfp8uDOliLxIoUQ==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': 7.16.0 + '@babel/generator': 7.16.0 + '@babel/helper-function-name': 7.16.0 + '@babel/helper-hoist-variables': 7.16.0 + '@babel/helper-split-export-declaration': 7.16.0 + '@babel/parser': 7.16.2 + '@babel/types': 7.16.0 + debug: 4.3.2 + globals: 11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + /@babel/types/7.16.0: + resolution: {integrity: sha512-PJgg/k3SdLsGb3hhisFvtLOw5ts113klrpLuIPtCJIU+BB24fqq6lf8RWqKJEjzqXR9AEH1rIb5XTqwBHB+kQg==} + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': 7.15.7 + to-fast-properties: 2.0.0 + dev: true + + /@bcoe/v8-coverage/0.2.3: + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + dev: true + + /@cnakazawa/watch/1.0.4: + resolution: {integrity: sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==} + engines: {node: '>=0.1.95'} + hasBin: true + dependencies: + exec-sh: 0.3.6 + minimist: 1.2.5 + dev: true + + /@graphql-typed-document-node/core/3.1.1_graphql@15.7.2: + resolution: {integrity: sha512-NQ17ii0rK1b34VZonlmT2QMJFI70m0TRwbknO/ihlbatXyaktDhN/98vBiUU6kNBPljqGqyIrl2T4nY2RpFANg==} + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + graphql: 15.7.2 + + /@istanbuljs/load-nyc-config/1.1.0: + resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + find-up: 4.1.0 + get-package-type: 0.1.0 + js-yaml: 3.14.1 + resolve-from: 5.0.0 + dev: true + + /@istanbuljs/schema/0.1.3: + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + dev: true + + /@jest/console/26.6.2: + resolution: {integrity: sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + chalk: 4.1.2 + jest-message-util: 26.6.2 + jest-util: 26.6.2 + slash: 3.0.0 + dev: true + + /@jest/core/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/console': 26.6.2 + '@jest/reporters': 26.6.2 + '@jest/test-result': 26.6.2 + '@jest/transform': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.8 + jest-changed-files: 26.6.2 + jest-config: 26.6.3_ts-node@9.1.1 + jest-haste-map: 26.6.2 + jest-message-util: 26.6.2 + jest-regex-util: 26.0.0 + jest-resolve: 26.6.2 + jest-resolve-dependencies: 26.6.3 + jest-runner: 26.6.3_ts-node@9.1.1 + jest-runtime: 26.6.3_ts-node@9.1.1 + jest-snapshot: 26.6.2 + jest-util: 26.6.2 + jest-validate: 26.6.2 + jest-watcher: 26.6.2 + micromatch: 4.0.4 + p-each-series: 2.2.0 + rimraf: 3.0.2 + slash: 3.0.0 + strip-ansi: 6.0.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /@jest/environment/26.6.2: + resolution: {integrity: sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/fake-timers': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + jest-mock: 26.6.2 + dev: true + + /@jest/fake-timers/26.6.2: + resolution: {integrity: sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@sinonjs/fake-timers': 6.0.1 + '@types/node': 16.11.7 + jest-message-util: 26.6.2 + jest-mock: 26.6.2 + jest-util: 26.6.2 + dev: true + + /@jest/globals/26.6.2: + resolution: {integrity: sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/environment': 26.6.2 + '@jest/types': 26.6.2 + expect: 26.6.2 + dev: true + + /@jest/reporters/26.6.2: + resolution: {integrity: sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==} + engines: {node: '>= 10.14.2'} + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@jest/console': 26.6.2 + '@jest/test-result': 26.6.2 + '@jest/transform': 26.6.2 + '@jest/types': 26.6.2 + chalk: 4.1.2 + collect-v8-coverage: 1.0.1 + exit: 0.1.2 + glob: 7.2.0 + graceful-fs: 4.2.8 + istanbul-lib-coverage: 3.2.0 + istanbul-lib-instrument: 4.0.3 + istanbul-lib-report: 3.0.0 + istanbul-lib-source-maps: 4.0.1 + istanbul-reports: 3.0.5 + jest-haste-map: 26.6.2 + jest-resolve: 26.6.2 + jest-util: 26.6.2 + jest-worker: 26.6.2 + slash: 3.0.0 + source-map: 0.6.1 + string-length: 4.0.2 + terminal-link: 2.1.1 + v8-to-istanbul: 7.1.2 + optionalDependencies: + node-notifier: 8.0.2 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/source-map/26.6.2: + resolution: {integrity: sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==} + engines: {node: '>= 10.14.2'} + dependencies: + callsites: 3.1.0 + graceful-fs: 4.2.8 + source-map: 0.6.1 + dev: true + + /@jest/test-result/26.6.2: + resolution: {integrity: sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/console': 26.6.2 + '@jest/types': 26.6.2 + '@types/istanbul-lib-coverage': 2.0.3 + collect-v8-coverage: 1.0.1 + dev: true + + /@jest/test-sequencer/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/test-result': 26.6.2 + graceful-fs: 4.2.8 + jest-haste-map: 26.6.2 + jest-runner: 26.6.3_ts-node@9.1.1 + jest-runtime: 26.6.3_ts-node@9.1.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /@jest/transform/26.6.2: + resolution: {integrity: sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/core': 7.16.0 + '@jest/types': 26.6.2 + babel-plugin-istanbul: 6.1.1 + chalk: 4.1.2 + convert-source-map: 1.8.0 + fast-json-stable-stringify: 2.1.0 + graceful-fs: 4.2.8 + jest-haste-map: 26.6.2 + jest-regex-util: 26.0.0 + jest-util: 26.6.2 + micromatch: 4.0.4 + pirates: 4.0.1 + slash: 3.0.0 + source-map: 0.6.1 + write-file-atomic: 3.0.3 + transitivePeerDependencies: + - supports-color + dev: true + + /@jest/types/26.6.2: + resolution: {integrity: sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.3 + '@types/istanbul-reports': 3.0.1 + '@types/node': 16.11.7 + '@types/yargs': 15.0.14 + chalk: 4.1.2 + dev: true + + /@nodelib/fs.scandir/2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + dev: true + + /@nodelib/fs.stat/2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + dev: true + + /@nodelib/fs.walk/1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.13.0 + dev: true + + /@sinonjs/commons/1.8.3: + resolution: {integrity: sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==} + dependencies: + type-detect: 4.0.8 + dev: true + + /@sinonjs/fake-timers/6.0.1: + resolution: {integrity: sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==} + dependencies: + '@sinonjs/commons': 1.8.3 + dev: true + + /@tootallnate/once/1.1.2: + resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} + engines: {node: '>= 6'} + dev: true + + /@tsd/typescript/4.4.4: + resolution: {integrity: sha512-XNaotnbhU6sKSXYg9rVz4L9i9g+j+x1IIgMPztK8KumtMEsrLXcqPBKp/qzmUKwAZEqgHs4+TTz90dUu5/aIqQ==} + hasBin: true + dev: true + + /@types/babel__core/7.1.16: + resolution: {integrity: sha512-EAEHtisTMM+KaKwfWdC3oyllIqswlznXCIVCt7/oRNrh+DhgT4UEBNC/jlADNjvw7UnfbcdkGQcPVZ1xYiLcrQ==} + dependencies: + '@babel/parser': 7.16.2 + '@babel/types': 7.16.0 + '@types/babel__generator': 7.6.3 + '@types/babel__template': 7.4.1 + '@types/babel__traverse': 7.14.2 + dev: true + + /@types/babel__generator/7.6.3: + resolution: {integrity: sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA==} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@types/babel__template/7.4.1: + resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} + dependencies: + '@babel/parser': 7.16.2 + '@babel/types': 7.16.0 + dev: true + + /@types/babel__traverse/7.14.2: + resolution: {integrity: sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==} + dependencies: + '@babel/types': 7.16.0 + dev: true + + /@types/deep-freeze/0.1.2: + resolution: {integrity: sha512-M6x29Vk4681dght4IMnPIcF1SNmeEm0c4uatlTFhp+++H1oDK1THEIzuCC2WeCBVhX+gU0NndsseDS3zaCtlcQ==} + dev: true + + /@types/eslint/7.28.2: + resolution: {integrity: sha512-KubbADPkfoU75KgKeKLsFHXnU4ipH7wYg0TRT33NK3N3yiu7jlFAAoygIWBV+KbuHx/G+AvuGX6DllnK35gfJA==} + dependencies: + '@types/estree': 0.0.50 + '@types/json-schema': 7.0.9 + dev: true + + /@types/estree/0.0.50: + resolution: {integrity: sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==} + dev: true + + /@types/fs-extra/9.0.13: + resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} + dependencies: + '@types/node': 16.11.7 + dev: true + + /@types/graceful-fs/4.1.5: + resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==} + dependencies: + '@types/node': 16.11.7 + dev: true + + /@types/istanbul-lib-coverage/2.0.3: + resolution: {integrity: sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==} + dev: true + + /@types/istanbul-lib-report/3.0.0: + resolution: {integrity: sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==} + dependencies: + '@types/istanbul-lib-coverage': 2.0.3 + dev: true + + /@types/istanbul-reports/3.0.1: + resolution: {integrity: sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==} + dependencies: + '@types/istanbul-lib-report': 3.0.0 + dev: true + + /@types/jest/26.0.24: + resolution: {integrity: sha512-E/X5Vib8BWqZNRlDxj9vYXhsDwPYbPINqKF9BsnSoon4RQ0D9moEuLD8txgyypFLH7J4+Lho9Nr/c8H0Fi+17w==} + dependencies: + jest-diff: 26.6.2 + pretty-format: 26.6.2 + dev: true + + /@types/json-schema/7.0.9: + resolution: {integrity: sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==} + dev: true + + /@types/minimist/1.2.2: + resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==} + dev: true + + /@types/node-fetch/2.5.12: + resolution: {integrity: sha512-MKgC4dlq4kKNa/mYrwpKfzQMB5X3ee5U6fSprkKpToBqBmX4nFZL9cW5jl6sWn+xpRJ7ypWh2yyqqr8UUCstSw==} + dependencies: + '@types/node': 16.11.7 + form-data: 3.0.1 + dev: true + + /@types/node/16.11.7: + resolution: {integrity: sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==} + dev: true + + /@types/normalize-package-data/2.4.1: + resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} + dev: true + + /@types/prettier/1.19.1: + resolution: {integrity: sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ==} + dev: false + + /@types/prettier/2.4.1: + resolution: {integrity: sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw==} + dev: true + + /@types/stack-utils/2.0.1: + resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} + dev: true + + /@types/yargs-parser/20.2.1: + resolution: {integrity: sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==} + dev: true + + /@types/yargs/15.0.14: + resolution: {integrity: sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==} + dependencies: + '@types/yargs-parser': 20.2.1 + dev: true + + /@types/zen-observable/0.8.3: + resolution: {integrity: sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==} + dev: true + + /@wry/context/0.6.1: + resolution: {integrity: sha512-LOmVnY1iTU2D8tv4Xf6MVMZZ+juIJ87Kt/plMijjN20NMAXGmH4u8bS1t0uT74cZ5gwpocYueV58YwyI8y+GKw==} + engines: {node: '>=8'} + dependencies: + tslib: 2.3.1 + dev: true + + /@wry/equality/0.5.2: + resolution: {integrity: sha512-oVMxbUXL48EV/C0/M7gLVsoK6qRHPS85x8zECofEZOVvxGmIPLA9o5Z27cc2PoAyZz1S2VoM2A7FLAnpfGlneA==} + engines: {node: '>=8'} + dependencies: + tslib: 2.3.1 + dev: true + + /@wry/trie/0.3.1: + resolution: {integrity: sha512-WwB53ikYudh9pIorgxrkHKrQZcCqNM/Q/bDzZBffEaGUKGuHrRb3zZUT9Sh2qw9yogC7SsdRmQ1ER0pqvd3bfw==} + engines: {node: '>=8'} + dependencies: + tslib: 2.3.1 + dev: true + + /abab/2.0.5: + resolution: {integrity: sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==} + dev: true + + /acorn-globals/6.0.0: + resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} + dependencies: + acorn: 7.4.1 + acorn-walk: 7.2.0 + dev: true + + /acorn-walk/7.2.0: + resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} + engines: {node: '>=0.4.0'} + dev: true + + /acorn/7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /acorn/8.5.0: + resolution: {integrity: sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + /agent-base/6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + dependencies: + debug: 4.3.2 + transitivePeerDependencies: + - supports-color + dev: true + + /ansi-escapes/4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + dependencies: + type-fest: 0.21.3 + dev: true + + /ansi-regex/5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + /ansi-styles/3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} + engines: {node: '>=4'} + dependencies: + color-convert: 1.9.3 + dev: true + + /ansi-styles/4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + dependencies: + color-convert: 2.0.1 + + /anymatch/2.0.0: + resolution: {integrity: sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==} + dependencies: + micromatch: 3.1.10 + normalize-path: 2.1.1 + dev: true + + /anymatch/3.1.2: + resolution: {integrity: sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==} + engines: {node: '>= 8'} + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.0 + dev: true + + /arg/4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + + /argparse/1.0.10: + resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + dependencies: + sprintf-js: 1.0.3 + dev: true + + /arr-diff/4.0.0: + resolution: {integrity: sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=} + engines: {node: '>=0.10.0'} + dev: true + + /arr-flatten/1.1.0: + resolution: {integrity: sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==} + engines: {node: '>=0.10.0'} + dev: true + + /arr-union/3.1.0: + resolution: {integrity: sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=} + engines: {node: '>=0.10.0'} + dev: true + + /array-union/2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} + engines: {node: '>=8'} + dev: true + + /array-unique/0.3.2: + resolution: {integrity: sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=} + engines: {node: '>=0.10.0'} + dev: true + + /arrify/1.0.1: + resolution: {integrity: sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=} + engines: {node: '>=0.10.0'} + dev: true + + /assign-symbols/1.0.0: + resolution: {integrity: sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=} + engines: {node: '>=0.10.0'} + dev: true + + /ast-types/0.14.2: + resolution: {integrity: sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==} + engines: {node: '>=4'} + dependencies: + tslib: 2.3.1 + dev: false + + /asynckit/0.4.0: + resolution: {integrity: sha1-x57Zf380y48robyXkLzDZkdLS3k=} + dev: true + + /at-least-node/1.0.0: + resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} + engines: {node: '>= 4.0.0'} + dev: false + + /atob/2.1.2: + resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} + engines: {node: '>= 4.5.0'} + hasBin: true + dev: true + + /auto-changelog/2.3.0: + resolution: {integrity: sha512-S2B+RtTgytsa7l5iFGBoWT9W9ylITT5JJ8OaMJ7nrwvnlRm1dSS2tghaYueDeInZZafOE+1llH3tUQjMDRVS1g==} + engines: {node: '>=8.3'} + hasBin: true + dependencies: + commander: 5.1.0 + handlebars: 4.7.7 + node-fetch: 2.6.6 + parse-github-url: 1.0.2 + semver: 6.3.0 + dev: true + + /babel-jest/26.6.3_@babel+core@7.16.0: + resolution: {integrity: sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==} + engines: {node: '>= 10.14.2'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.16.0 + '@jest/transform': 26.6.2 + '@jest/types': 26.6.2 + '@types/babel__core': 7.1.16 + babel-plugin-istanbul: 6.1.1 + babel-preset-jest: 26.6.2_@babel+core@7.16.0 + chalk: 4.1.2 + graceful-fs: 4.2.8 + slash: 3.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-istanbul/6.1.1: + resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} + engines: {node: '>=8'} + dependencies: + '@babel/helper-plugin-utils': 7.14.5 + '@istanbuljs/load-nyc-config': 1.1.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-instrument: 5.1.0 + test-exclude: 6.0.0 + transitivePeerDependencies: + - supports-color + dev: true + + /babel-plugin-jest-hoist/26.6.2: + resolution: {integrity: sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/template': 7.16.0 + '@babel/types': 7.16.0 + '@types/babel__core': 7.1.16 + '@types/babel__traverse': 7.14.2 + dev: true + + /babel-preset-current-node-syntax/1.0.1_@babel+core@7.16.0: + resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.16.0 + '@babel/plugin-syntax-async-generators': 7.8.4_@babel+core@7.16.0 + '@babel/plugin-syntax-bigint': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-class-properties': 7.12.13_@babel+core@7.16.0 + '@babel/plugin-syntax-import-meta': 7.10.4_@babel+core@7.16.0 + '@babel/plugin-syntax-json-strings': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4_@babel+core@7.16.0 + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-numeric-separator': 7.10.4_@babel+core@7.16.0 + '@babel/plugin-syntax-object-rest-spread': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-optional-catch-binding': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-optional-chaining': 7.8.3_@babel+core@7.16.0 + '@babel/plugin-syntax-top-level-await': 7.14.5_@babel+core@7.16.0 + dev: true + + /babel-preset-jest/26.6.2_@babel+core@7.16.0: + resolution: {integrity: sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==} + engines: {node: '>= 10.14.2'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': 7.16.0 + babel-plugin-jest-hoist: 26.6.2 + babel-preset-current-node-syntax: 1.0.1_@babel+core@7.16.0 + dev: true + + /balanced-match/1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + dev: true + + /base/0.11.2: + resolution: {integrity: sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==} + engines: {node: '>=0.10.0'} + dependencies: + cache-base: 1.0.1 + class-utils: 0.3.6 + component-emitter: 1.3.0 + define-property: 1.0.0 + isobject: 3.0.1 + mixin-deep: 1.3.2 + pascalcase: 0.1.1 + dev: true + + /brace-expansion/1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + dev: true + + /braces/2.3.2: + resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==} + engines: {node: '>=0.10.0'} + dependencies: + arr-flatten: 1.1.0 + array-unique: 0.3.2 + extend-shallow: 2.0.1 + fill-range: 4.0.0 + isobject: 3.0.1 + repeat-element: 1.1.4 + snapdragon: 0.8.2 + snapdragon-node: 2.1.1 + split-string: 3.1.0 + to-regex: 3.0.2 + dev: true + + /braces/3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} + engines: {node: '>=8'} + dependencies: + fill-range: 7.0.1 + dev: true + + /browser-process-hrtime/1.0.0: + resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} + dev: true + + /browserslist/4.17.6: + resolution: {integrity: sha512-uPgz3vyRTlEiCv4ee9KlsKgo2V6qPk7Jsn0KAn2OBqbqKo3iNcPEC1Ti6J4dwnz+aIRfEEEuOzC9IBk8tXUomw==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001275 + electron-to-chromium: 1.3.888 + escalade: 3.1.1 + node-releases: 2.0.1 + picocolors: 1.0.0 + dev: true + + /bs-logger/0.2.6: + resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} + engines: {node: '>= 6'} + dependencies: + fast-json-stable-stringify: 2.1.0 + dev: true + + /bser/2.1.1: + resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + dependencies: + node-int64: 0.4.0 + dev: true + + /buffer-from/1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + dev: true + + /cache-base/1.0.1: + resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==} + engines: {node: '>=0.10.0'} + dependencies: + collection-visit: 1.0.0 + component-emitter: 1.3.0 + get-value: 2.0.6 + has-value: 1.0.0 + isobject: 3.0.1 + set-value: 2.0.1 + to-object-path: 0.3.0 + union-value: 1.0.1 + unset-value: 1.0.0 + dev: true + + /callsites/3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + dev: true + + /camelcase-keys/6.2.2: + resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} + engines: {node: '>=8'} + dependencies: + camelcase: 5.3.1 + map-obj: 4.3.0 + quick-lru: 4.0.1 + dev: true + + /camelcase/5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + dev: true + + /camelcase/6.2.0: + resolution: {integrity: sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==} + engines: {node: '>=10'} + dev: true + + /caniuse-lite/1.0.30001275: + resolution: {integrity: sha512-ihJVvj8RX0kn9GgP43HKhb5q9s2XQn4nEQhdldEJvZhCsuiB2XOq6fAMYQZaN6FPWfsr2qU0cdL0CSbETwbJAg==} + dev: true + + /capture-exit/2.0.0: + resolution: {integrity: sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==} + engines: {node: 6.* || 8.* || >= 10.*} + dependencies: + rsvp: 4.8.5 + dev: true + + /chalk/2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} + engines: {node: '>=4'} + dependencies: + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 + dev: true + + /chalk/4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + dev: true + + /char-regex/1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + dev: true + + /ci-info/2.0.0: + resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==} + dev: true + + /cjs-module-lexer/0.6.0: + resolution: {integrity: sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==} + dev: true + + /class-utils/0.3.6: + resolution: {integrity: sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-union: 3.1.0 + define-property: 0.2.5 + isobject: 3.0.1 + static-extend: 0.1.2 + dev: true + + /cliui/6.0.0: + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + dev: true + + /cliui/7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + dev: false + + /co/4.6.0: + resolution: {integrity: sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=} + engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} + dev: true + + /collect-v8-coverage/1.0.1: + resolution: {integrity: sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==} + dev: true + + /collection-visit/1.0.0: + resolution: {integrity: sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=} + engines: {node: '>=0.10.0'} + dependencies: + map-visit: 1.0.0 + object-visit: 1.0.1 + dev: true + + /color-convert/1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} + dependencies: + color-name: 1.1.3 + dev: true + + /color-convert/2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + dependencies: + color-name: 1.1.4 + + /color-name/1.1.3: + resolution: {integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=} + dev: true + + /color-name/1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + /combined-stream/1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + dependencies: + delayed-stream: 1.0.0 + dev: true + + /commander/5.1.0: + resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} + engines: {node: '>= 6'} + dev: true + + /component-emitter/1.3.0: + resolution: {integrity: sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==} + dev: true + + /concat-map/0.0.1: + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} + dev: true + + /convert-source-map/1.8.0: + resolution: {integrity: sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==} + dependencies: + safe-buffer: 5.1.2 + dev: true + + /copy-descriptor/0.1.1: + resolution: {integrity: sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=} + engines: {node: '>=0.10.0'} + dev: true + + /create-require/1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + + /cross-fetch/3.1.4: + resolution: {integrity: sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==} + dependencies: + node-fetch: 2.6.1 + dev: true + + /cross-spawn/6.0.5: + resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} + engines: {node: '>=4.8'} + dependencies: + nice-try: 1.0.5 + path-key: 2.0.1 + semver: 5.7.1 + shebang-command: 1.2.0 + which: 1.3.1 + dev: true + + /cross-spawn/7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + dev: true + + /cssom/0.3.8: + resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} + dev: true + + /cssom/0.4.4: + resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} + dev: true + + /cssstyle/2.3.0: + resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} + engines: {node: '>=8'} + dependencies: + cssom: 0.3.8 + dev: true + + /data-urls/2.0.0: + resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} + engines: {node: '>=10'} + dependencies: + abab: 2.0.5 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + dev: true + + /debug/2.6.9: + resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} + dependencies: + ms: 2.0.0 + dev: true + + /debug/4.3.2: + resolution: {integrity: sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: 2.1.2 + dev: true + + /decamelize-keys/1.1.0: + resolution: {integrity: sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=} + engines: {node: '>=0.10.0'} + dependencies: + decamelize: 1.2.0 + map-obj: 1.0.1 + dev: true + + /decamelize/1.2.0: + resolution: {integrity: sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=} + engines: {node: '>=0.10.0'} + dev: true + + /decimal.js/10.3.1: + resolution: {integrity: sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==} + dev: true + + /decode-uri-component/0.2.0: + resolution: {integrity: sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=} + engines: {node: '>=0.10'} + dev: true + + /deep-freeze/0.0.1: + resolution: {integrity: sha1-OgsABd4YZygZ39OM0x+RF5yJPoQ=} + dev: true + + /deep-is/0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + dev: true + + /deepmerge/4.2.2: + resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==} + engines: {node: '>=0.10.0'} + dev: true + + /define-property/0.2.5: + resolution: {integrity: sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 0.1.6 + dev: true + + /define-property/1.0.0: + resolution: {integrity: sha1-dp66rz9KY6rTr56NMEybvnm/sOY=} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 1.0.2 + dev: true + + /define-property/2.0.2: + resolution: {integrity: sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==} + engines: {node: '>=0.10.0'} + dependencies: + is-descriptor: 1.0.2 + isobject: 3.0.1 + dev: true + + /delayed-stream/1.0.0: + resolution: {integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=} + engines: {node: '>=0.4.0'} + dev: true + + /detect-newline/3.1.0: + resolution: {integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==} + engines: {node: '>=8'} + dev: true + + /diff-sequences/26.6.2: + resolution: {integrity: sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==} + engines: {node: '>= 10.14.2'} + dev: true + + /diff/4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + + /dir-glob/3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} + engines: {node: '>=8'} + dependencies: + path-type: 4.0.0 + dev: true + + /domexception/2.0.1: + resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} + engines: {node: '>=8'} + dependencies: + webidl-conversions: 5.0.0 + dev: true + + /electron-to-chromium/1.3.888: + resolution: {integrity: sha512-5iD1zgyPpFER4kJ716VsA4MxQ6x405dxdFNCEK2mITL075VHO5ResjY0xzQUZguCww/KlBxCA6JmBA9sDt1PRw==} + dev: true + + /emittery/0.7.2: + resolution: {integrity: sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==} + engines: {node: '>=10'} + dev: true + + /emoji-regex/8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + /end-of-stream/1.4.4: + resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + dependencies: + once: 1.4.0 + dev: true + + /error-ex/1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + dependencies: + is-arrayish: 0.2.1 + dev: true + + /escalade/3.1.1: + resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} + engines: {node: '>=6'} + + /escape-string-regexp/1.0.5: + resolution: {integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=} + engines: {node: '>=0.8.0'} + dev: true + + /escape-string-regexp/2.0.0: + resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} + engines: {node: '>=8'} + dev: true + + /escodegen/2.0.0: + resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} + engines: {node: '>=6.0'} + hasBin: true + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionator: 0.8.3 + optionalDependencies: + source-map: 0.6.1 + dev: true + + /eslint-formatter-pretty/4.1.0: + resolution: {integrity: sha512-IsUTtGxF1hrH6lMWiSl1WbGaiP01eT6kzywdY1U+zLc0MP+nwEnUiS9UI8IaOTUhTeQJLlCEWIbXINBH4YJbBQ==} + engines: {node: '>=10'} + dependencies: + '@types/eslint': 7.28.2 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + eslint-rule-docs: 1.1.231 + log-symbols: 4.1.0 + plur: 4.0.0 + string-width: 4.2.3 + supports-hyperlinks: 2.2.0 + dev: true + + /eslint-rule-docs/1.1.231: + resolution: {integrity: sha512-egHz9A1WG7b8CS0x1P6P/Rj5FqZOjray/VjpJa14tMZalfRKvpE2ONJ3plCM7+PcinmU4tcmbPLv0VtwzSdLVA==} + dev: true + + /esprima/4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /estraverse/5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + dev: true + + /esutils/2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + dev: true + + /exec-sh/0.3.6: + resolution: {integrity: sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==} + dev: true + + /execa/1.0.0: + resolution: {integrity: sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==} + engines: {node: '>=6'} + dependencies: + cross-spawn: 6.0.5 + get-stream: 4.1.0 + is-stream: 1.1.0 + npm-run-path: 2.0.2 + p-finally: 1.0.0 + signal-exit: 3.0.5 + strip-eof: 1.0.0 + dev: true + + /execa/4.1.0: + resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==} + engines: {node: '>=10'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 5.2.0 + human-signals: 1.1.1 + is-stream: 2.0.1 + merge-stream: 2.0.0 + npm-run-path: 4.0.1 + onetime: 5.1.2 + signal-exit: 3.0.5 + strip-final-newline: 2.0.0 + dev: true + + /exit/0.1.2: + resolution: {integrity: sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=} + engines: {node: '>= 0.8.0'} + dev: true + + /expand-brackets/2.1.4: + resolution: {integrity: sha1-t3c14xXOMPa27/D4OwQVGiJEliI=} + engines: {node: '>=0.10.0'} + dependencies: + debug: 2.6.9 + define-property: 0.2.5 + extend-shallow: 2.0.1 + posix-character-classes: 0.1.1 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + dev: true + + /expect/26.6.2: + resolution: {integrity: sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + ansi-styles: 4.3.0 + jest-get-type: 26.3.0 + jest-matcher-utils: 26.6.2 + jest-message-util: 26.6.2 + jest-regex-util: 26.0.0 + dev: true + + /extend-shallow/2.0.1: + resolution: {integrity: sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=} + engines: {node: '>=0.10.0'} + dependencies: + is-extendable: 0.1.1 + dev: true + + /extend-shallow/3.0.2: + resolution: {integrity: sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=} + engines: {node: '>=0.10.0'} + dependencies: + assign-symbols: 1.0.0 + is-extendable: 1.0.1 + dev: true + + /extglob/2.0.4: + resolution: {integrity: sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==} + engines: {node: '>=0.10.0'} + dependencies: + array-unique: 0.3.2 + define-property: 1.0.0 + expand-brackets: 2.1.4 + extend-shallow: 2.0.1 + fragment-cache: 0.2.1 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + dev: true + + /extract-files/9.0.0: + resolution: {integrity: sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==} + engines: {node: ^10.17.0 || ^12.0.0 || >= 13.7.0} + dev: true + + /fast-glob/3.2.7: + resolution: {integrity: sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==} + engines: {node: '>=8'} + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.4 + dev: true + + /fast-json-stable-stringify/2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + dev: true + + /fast-levenshtein/2.0.6: + resolution: {integrity: sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=} + dev: true + + /fastq/1.13.0: + resolution: {integrity: sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==} + dependencies: + reusify: 1.0.4 + dev: true + + /fb-watchman/2.0.1: + resolution: {integrity: sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==} + dependencies: + bser: 2.1.1 + dev: true + + /fill-range/4.0.0: + resolution: {integrity: sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + is-number: 3.0.0 + repeat-string: 1.6.1 + to-regex-range: 2.1.1 + dev: true + + /fill-range/7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} + engines: {node: '>=8'} + dependencies: + to-regex-range: 5.0.1 + dev: true + + /find-up/4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + dev: true + + /for-in/1.0.2: + resolution: {integrity: sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=} + engines: {node: '>=0.10.0'} + dev: true + + /form-data/3.0.1: + resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==} + engines: {node: '>= 6'} + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + mime-types: 2.1.33 + dev: true + + /fragment-cache/0.2.1: + resolution: {integrity: sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=} + engines: {node: '>=0.10.0'} + dependencies: + map-cache: 0.2.2 + dev: true + + /fs-extra/9.1.0: + resolution: {integrity: sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==} + engines: {node: '>=10'} + dependencies: + at-least-node: 1.0.0 + graceful-fs: 4.2.8 + jsonfile: 6.1.0 + universalify: 2.0.0 + dev: false + + /fs.realpath/1.0.0: + resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=} + dev: true + + /fsevents/2.3.2: + resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /function-bind/1.1.1: + resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + dev: true + + /gensync/1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + dev: true + + /get-caller-file/2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + /get-package-type/0.1.0: + resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} + engines: {node: '>=8.0.0'} + dev: true + + /get-stream/4.1.0: + resolution: {integrity: sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==} + engines: {node: '>=6'} + dependencies: + pump: 3.0.0 + dev: true + + /get-stream/5.2.0: + resolution: {integrity: sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==} + engines: {node: '>=8'} + dependencies: + pump: 3.0.0 + dev: true + + /get-value/2.0.6: + resolution: {integrity: sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=} + engines: {node: '>=0.10.0'} + dev: true + + /glob-parent/5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + dependencies: + is-glob: 4.0.3 + dev: true + + /glob/7.2.0: + resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==} + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.0.4 + once: 1.4.0 + path-is-absolute: 1.0.1 + dev: true + + /globals/11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} + engines: {node: '>=4'} + dev: true + + /globby/11.0.4: + resolution: {integrity: sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==} + engines: {node: '>=10'} + dependencies: + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.2.7 + ignore: 5.1.9 + merge2: 1.4.1 + slash: 3.0.0 + dev: true + + /graceful-fs/4.2.8: + resolution: {integrity: sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==} + + /graphql-request/3.6.1_graphql@15.7.2: + resolution: {integrity: sha512-Nm1EasrAQVZllyNTlHDLnLZjlhC6eRWnWP6KH//ytnAL08pjlLkdI2K+s6OV92p45hn5b/kUlLbDwACmRoLwrQ==} + peerDependencies: + graphql: 14.x || 15.x + dependencies: + cross-fetch: 3.1.4 + extract-files: 9.0.0 + form-data: 3.0.1 + graphql: 15.7.2 + dev: true + + /graphql-tag/2.12.5_graphql@15.7.2: + resolution: {integrity: sha512-5xNhP4063d16Pz3HBtKprutsPrmHZi5IdUGOWRxA2B6VF7BIRGOHZ5WQvDmJXZuPcBg7rYwaFxvQYjqkSdR3TQ==} + engines: {node: '>=10'} + peerDependencies: + graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 + dependencies: + graphql: 15.7.2 + tslib: 2.3.1 + dev: true + + /graphql/15.7.2: + resolution: {integrity: sha512-AnnKk7hFQFmU/2I9YSQf3xw44ctnSFCfp3zE0N6W174gqe9fWG/2rKaKxROK7CcI3XtERpjEKFqts8o319Kf7A==} + engines: {node: '>= 10.x'} + + /growly/1.3.0: + resolution: {integrity: sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=} + dev: true + optional: true + + /handlebars/4.7.7: + resolution: {integrity: sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==} + engines: {node: '>=0.4.7'} + hasBin: true + dependencies: + minimist: 1.2.5 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.14.3 + dev: true + + /hard-rejection/2.1.0: + resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==} + engines: {node: '>=6'} + dev: true + + /has-flag/3.0.0: + resolution: {integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0=} + engines: {node: '>=4'} + dev: true + + /has-flag/4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + dev: true + + /has-value/0.3.1: + resolution: {integrity: sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=} + engines: {node: '>=0.10.0'} + dependencies: + get-value: 2.0.6 + has-values: 0.1.4 + isobject: 2.1.0 + dev: true + + /has-value/1.0.0: + resolution: {integrity: sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=} + engines: {node: '>=0.10.0'} + dependencies: + get-value: 2.0.6 + has-values: 1.0.0 + isobject: 3.0.1 + dev: true + + /has-values/0.1.4: + resolution: {integrity: sha1-bWHeldkd/Km5oCCJrThL/49it3E=} + engines: {node: '>=0.10.0'} + dev: true + + /has-values/1.0.0: + resolution: {integrity: sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=} + engines: {node: '>=0.10.0'} + dependencies: + is-number: 3.0.0 + kind-of: 4.0.0 + dev: true + + /has/1.0.3: + resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} + engines: {node: '>= 0.4.0'} + dependencies: + function-bind: 1.1.1 + dev: true + + /hoist-non-react-statics/3.3.2: + resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} + dependencies: + react-is: 16.13.1 + dev: true + + /hosted-git-info/2.8.9: + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + dev: true + + /hosted-git-info/4.0.2: + resolution: {integrity: sha512-c9OGXbZ3guC/xOlCg1Ci/VgWlwsqDv1yMQL1CWqXDL0hDjXuNcq0zuR4xqPSuasI3kqFDhqSyTjREz5gzq0fXg==} + engines: {node: '>=10'} + dependencies: + lru-cache: 6.0.0 + dev: true + + /html-encoding-sniffer/2.0.1: + resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} + engines: {node: '>=10'} + dependencies: + whatwg-encoding: 1.0.5 + dev: true + + /html-escaper/2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + dev: true + + /http-proxy-agent/4.0.1: + resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} + engines: {node: '>= 6'} + dependencies: + '@tootallnate/once': 1.1.2 + agent-base: 6.0.2 + debug: 4.3.2 + transitivePeerDependencies: + - supports-color + dev: true + + /https-proxy-agent/5.0.0: + resolution: {integrity: sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==} + engines: {node: '>= 6'} + dependencies: + agent-base: 6.0.2 + debug: 4.3.2 + transitivePeerDependencies: + - supports-color + dev: true + + /human-signals/1.1.1: + resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} + engines: {node: '>=8.12.0'} + dev: true + + /iconv-lite/0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + dependencies: + safer-buffer: 2.1.2 + dev: true + + /ignore/5.1.9: + resolution: {integrity: sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==} + engines: {node: '>= 4'} + dev: true + + /import-local/3.0.3: + resolution: {integrity: sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==} + engines: {node: '>=8'} + hasBin: true + dependencies: + pkg-dir: 4.2.0 + resolve-cwd: 3.0.0 + dev: true + + /imurmurhash/0.1.4: + resolution: {integrity: sha1-khi5srkoojixPcT7a21XbyMUU+o=} + engines: {node: '>=0.8.19'} + dev: true + + /indent-string/4.0.0: + resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} + engines: {node: '>=8'} + dev: true + + /inflight/1.0.6: + resolution: {integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=} + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + dev: true + + /inherits/2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true + + /irregular-plurals/3.3.0: + resolution: {integrity: sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g==} + engines: {node: '>=8'} + dev: true + + /is-accessor-descriptor/0.1.6: + resolution: {integrity: sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-accessor-descriptor/1.0.0: + resolution: {integrity: sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 6.0.3 + dev: true + + /is-arrayish/0.2.1: + resolution: {integrity: sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=} + dev: true + + /is-buffer/1.1.6: + resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==} + dev: true + + /is-ci/2.0.0: + resolution: {integrity: sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==} + hasBin: true + dependencies: + ci-info: 2.0.0 + dev: true + + /is-core-module/2.8.0: + resolution: {integrity: sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==} + dependencies: + has: 1.0.3 + dev: true + + /is-data-descriptor/0.1.4: + resolution: {integrity: sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-data-descriptor/1.0.0: + resolution: {integrity: sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 6.0.3 + dev: true + + /is-descriptor/0.1.6: + resolution: {integrity: sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==} + engines: {node: '>=0.10.0'} + dependencies: + is-accessor-descriptor: 0.1.6 + is-data-descriptor: 0.1.4 + kind-of: 5.1.0 + dev: true + + /is-descriptor/1.0.2: + resolution: {integrity: sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==} + engines: {node: '>=0.10.0'} + dependencies: + is-accessor-descriptor: 1.0.0 + is-data-descriptor: 1.0.0 + kind-of: 6.0.3 + dev: true + + /is-docker/2.2.1: + resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} + engines: {node: '>=8'} + hasBin: true + dev: true + optional: true + + /is-extendable/0.1.1: + resolution: {integrity: sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=} + engines: {node: '>=0.10.0'} + dev: true + + /is-extendable/1.0.1: + resolution: {integrity: sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==} + engines: {node: '>=0.10.0'} + dependencies: + is-plain-object: 2.0.4 + dev: true + + /is-extglob/2.1.1: + resolution: {integrity: sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=} + engines: {node: '>=0.10.0'} + dev: true + + /is-fullwidth-code-point/3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + /is-generator-fn/2.1.0: + resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} + engines: {node: '>=6'} + dev: true + + /is-glob/4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: 2.1.1 + dev: true + + /is-number/3.0.0: + resolution: {integrity: sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /is-number/7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + dev: true + + /is-plain-obj/1.1.0: + resolution: {integrity: sha1-caUMhCnfync8kqOQpKA7OfzVHT4=} + engines: {node: '>=0.10.0'} + dev: true + + /is-plain-object/2.0.4: + resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /is-potential-custom-element-name/1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + dev: true + + /is-stream/1.1.0: + resolution: {integrity: sha1-EtSj3U5o4Lec6428hBc66A2RykQ=} + engines: {node: '>=0.10.0'} + dev: true + + /is-stream/2.0.1: + resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} + engines: {node: '>=8'} + dev: true + + /is-typedarray/1.0.0: + resolution: {integrity: sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=} + dev: true + + /is-unicode-supported/0.1.0: + resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==} + engines: {node: '>=10'} + dev: true + + /is-windows/1.0.2: + resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} + engines: {node: '>=0.10.0'} + dev: true + + /is-wsl/2.2.0: + resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==} + engines: {node: '>=8'} + dependencies: + is-docker: 2.2.1 + dev: true + optional: true + + /isarray/1.0.0: + resolution: {integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=} + dev: true + + /isexe/2.0.0: + resolution: {integrity: sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=} + dev: true + + /isobject/2.1.0: + resolution: {integrity: sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=} + engines: {node: '>=0.10.0'} + dependencies: + isarray: 1.0.0 + dev: true + + /isobject/3.0.1: + resolution: {integrity: sha1-TkMekrEalzFjaqH5yNHMvP2reN8=} + engines: {node: '>=0.10.0'} + dev: true + + /istanbul-lib-coverage/3.2.0: + resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} + engines: {node: '>=8'} + dev: true + + /istanbul-lib-instrument/4.0.3: + resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} + engines: {node: '>=8'} + dependencies: + '@babel/core': 7.16.0 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.0 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-lib-instrument/5.1.0: + resolution: {integrity: sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==} + engines: {node: '>=8'} + dependencies: + '@babel/core': 7.16.0 + '@babel/parser': 7.16.2 + '@istanbuljs/schema': 0.1.3 + istanbul-lib-coverage: 3.2.0 + semver: 6.3.0 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-lib-report/3.0.0: + resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} + engines: {node: '>=8'} + dependencies: + istanbul-lib-coverage: 3.2.0 + make-dir: 3.1.0 + supports-color: 7.2.0 + dev: true + + /istanbul-lib-source-maps/4.0.1: + resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} + engines: {node: '>=10'} + dependencies: + debug: 4.3.2 + istanbul-lib-coverage: 3.2.0 + source-map: 0.6.1 + transitivePeerDependencies: + - supports-color + dev: true + + /istanbul-reports/3.0.5: + resolution: {integrity: sha512-5+19PlhnGabNWB7kOFnuxT8H3T/iIyQzIbQMxXsURmmvKg86P2sbkrGOT77VnHw0Qr0gc2XzRaRfMZYYbSQCJQ==} + engines: {node: '>=8'} + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.0 + dev: true + + /jest-changed-files/26.6.2: + resolution: {integrity: sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + execa: 4.1.0 + throat: 5.0.0 + dev: true + + /jest-cli/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==} + engines: {node: '>= 10.14.2'} + hasBin: true + dependencies: + '@jest/core': 26.6.3_ts-node@9.1.1 + '@jest/test-result': 26.6.2 + '@jest/types': 26.6.2 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.8 + import-local: 3.0.3 + is-ci: 2.0.0 + jest-config: 26.6.3_ts-node@9.1.1 + jest-util: 26.6.2 + jest-validate: 26.6.2 + prompts: 2.4.2 + yargs: 15.4.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-config/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==} + engines: {node: '>= 10.14.2'} + peerDependencies: + ts-node: '>=9.0.0' + peerDependenciesMeta: + ts-node: + optional: true + dependencies: + '@babel/core': 7.16.0 + '@jest/test-sequencer': 26.6.3_ts-node@9.1.1 + '@jest/types': 26.6.2 + babel-jest: 26.6.3_@babel+core@7.16.0 + chalk: 4.1.2 + deepmerge: 4.2.2 + glob: 7.2.0 + graceful-fs: 4.2.8 + jest-environment-jsdom: 26.6.2 + jest-environment-node: 26.6.2 + jest-get-type: 26.3.0 + jest-jasmine2: 26.6.3_ts-node@9.1.1 + jest-regex-util: 26.0.0 + jest-resolve: 26.6.2 + jest-util: 26.6.2 + jest-validate: 26.6.2 + micromatch: 4.0.4 + pretty-format: 26.6.2 + ts-node: 9.1.1_typescript@4.5.2 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-diff/26.6.2: + resolution: {integrity: sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==} + engines: {node: '>= 10.14.2'} + dependencies: + chalk: 4.1.2 + diff-sequences: 26.6.2 + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-docblock/26.0.0: + resolution: {integrity: sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==} + engines: {node: '>= 10.14.2'} + dependencies: + detect-newline: 3.1.0 + dev: true + + /jest-each/26.6.2: + resolution: {integrity: sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + chalk: 4.1.2 + jest-get-type: 26.3.0 + jest-util: 26.6.2 + pretty-format: 26.6.2 + dev: true + + /jest-environment-jsdom/26.6.2: + resolution: {integrity: sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/environment': 26.6.2 + '@jest/fake-timers': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + jest-mock: 26.6.2 + jest-util: 26.6.2 + jsdom: 16.7.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - utf-8-validate + dev: true + + /jest-environment-node/26.6.2: + resolution: {integrity: sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/environment': 26.6.2 + '@jest/fake-timers': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + jest-mock: 26.6.2 + jest-util: 26.6.2 + dev: true + + /jest-get-type/26.3.0: + resolution: {integrity: sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==} + engines: {node: '>= 10.14.2'} + dev: true + + /jest-haste-map/26.6.2: + resolution: {integrity: sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/graceful-fs': 4.1.5 + '@types/node': 16.11.7 + anymatch: 3.1.2 + fb-watchman: 2.0.1 + graceful-fs: 4.2.8 + jest-regex-util: 26.0.0 + jest-serializer: 26.6.2 + jest-util: 26.6.2 + jest-worker: 26.6.2 + micromatch: 4.0.4 + sane: 4.1.0 + walker: 1.0.8 + optionalDependencies: + fsevents: 2.3.2 + dev: true + + /jest-jasmine2/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/traverse': 7.16.0 + '@jest/environment': 26.6.2 + '@jest/source-map': 26.6.2 + '@jest/test-result': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + chalk: 4.1.2 + co: 4.6.0 + expect: 26.6.2 + is-generator-fn: 2.1.0 + jest-each: 26.6.2 + jest-matcher-utils: 26.6.2 + jest-message-util: 26.6.2 + jest-runtime: 26.6.3_ts-node@9.1.1 + jest-snapshot: 26.6.2 + jest-util: 26.6.2 + pretty-format: 26.6.2 + throat: 5.0.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-leak-detector/26.6.2: + resolution: {integrity: sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==} + engines: {node: '>= 10.14.2'} + dependencies: + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-matcher-utils/26.6.2: + resolution: {integrity: sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==} + engines: {node: '>= 10.14.2'} + dependencies: + chalk: 4.1.2 + jest-diff: 26.6.2 + jest-get-type: 26.3.0 + pretty-format: 26.6.2 + dev: true + + /jest-message-util/26.6.2: + resolution: {integrity: sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/code-frame': 7.16.0 + '@jest/types': 26.6.2 + '@types/stack-utils': 2.0.1 + chalk: 4.1.2 + graceful-fs: 4.2.8 + micromatch: 4.0.4 + pretty-format: 26.6.2 + slash: 3.0.0 + stack-utils: 2.0.5 + dev: true + + /jest-mock/26.6.2: + resolution: {integrity: sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + dev: true + + /jest-pnp-resolver/1.2.2_jest-resolve@26.6.2: + resolution: {integrity: sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==} + engines: {node: '>=6'} + peerDependencies: + jest-resolve: '*' + peerDependenciesMeta: + jest-resolve: + optional: true + dependencies: + jest-resolve: 26.6.2 + dev: true + + /jest-regex-util/26.0.0: + resolution: {integrity: sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==} + engines: {node: '>= 10.14.2'} + dev: true + + /jest-resolve-dependencies/26.6.3: + resolution: {integrity: sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + jest-regex-util: 26.0.0 + jest-snapshot: 26.6.2 + dev: true + + /jest-resolve/26.6.2: + resolution: {integrity: sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + chalk: 4.1.2 + graceful-fs: 4.2.8 + jest-pnp-resolver: 1.2.2_jest-resolve@26.6.2 + jest-util: 26.6.2 + read-pkg-up: 7.0.1 + resolve: 1.20.0 + slash: 3.0.0 + dev: true + + /jest-runner/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/console': 26.6.2 + '@jest/environment': 26.6.2 + '@jest/test-result': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + chalk: 4.1.2 + emittery: 0.7.2 + exit: 0.1.2 + graceful-fs: 4.2.8 + jest-config: 26.6.3_ts-node@9.1.1 + jest-docblock: 26.0.0 + jest-haste-map: 26.6.2 + jest-leak-detector: 26.6.2 + jest-message-util: 26.6.2 + jest-resolve: 26.6.2 + jest-runtime: 26.6.3_ts-node@9.1.1 + jest-util: 26.6.2 + jest-worker: 26.6.2 + source-map-support: 0.5.20 + throat: 5.0.0 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-runtime/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==} + engines: {node: '>= 10.14.2'} + hasBin: true + dependencies: + '@jest/console': 26.6.2 + '@jest/environment': 26.6.2 + '@jest/fake-timers': 26.6.2 + '@jest/globals': 26.6.2 + '@jest/source-map': 26.6.2 + '@jest/test-result': 26.6.2 + '@jest/transform': 26.6.2 + '@jest/types': 26.6.2 + '@types/yargs': 15.0.14 + chalk: 4.1.2 + cjs-module-lexer: 0.6.0 + collect-v8-coverage: 1.0.1 + exit: 0.1.2 + glob: 7.2.0 + graceful-fs: 4.2.8 + jest-config: 26.6.3_ts-node@9.1.1 + jest-haste-map: 26.6.2 + jest-message-util: 26.6.2 + jest-mock: 26.6.2 + jest-regex-util: 26.0.0 + jest-resolve: 26.6.2 + jest-snapshot: 26.6.2 + jest-util: 26.6.2 + jest-validate: 26.6.2 + slash: 3.0.0 + strip-bom: 4.0.0 + yargs: 15.4.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /jest-serializer/26.6.2: + resolution: {integrity: sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==} + engines: {node: '>= 10.14.2'} + dependencies: + '@types/node': 16.11.7 + graceful-fs: 4.2.8 + dev: true + + /jest-snapshot/26.6.2: + resolution: {integrity: sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==} + engines: {node: '>= 10.14.2'} + dependencies: + '@babel/types': 7.16.0 + '@jest/types': 26.6.2 + '@types/babel__traverse': 7.14.2 + '@types/prettier': 2.4.1 + chalk: 4.1.2 + expect: 26.6.2 + graceful-fs: 4.2.8 + jest-diff: 26.6.2 + jest-get-type: 26.3.0 + jest-haste-map: 26.6.2 + jest-matcher-utils: 26.6.2 + jest-message-util: 26.6.2 + jest-resolve: 26.6.2 + natural-compare: 1.4.0 + pretty-format: 26.6.2 + semver: 7.3.5 + dev: true + + /jest-util/26.6.2: + resolution: {integrity: sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + chalk: 4.1.2 + graceful-fs: 4.2.8 + is-ci: 2.0.0 + micromatch: 4.0.4 + dev: true + + /jest-validate/26.6.2: + resolution: {integrity: sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/types': 26.6.2 + camelcase: 6.2.0 + chalk: 4.1.2 + jest-get-type: 26.3.0 + leven: 3.1.0 + pretty-format: 26.6.2 + dev: true + + /jest-watcher/26.6.2: + resolution: {integrity: sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==} + engines: {node: '>= 10.14.2'} + dependencies: + '@jest/test-result': 26.6.2 + '@jest/types': 26.6.2 + '@types/node': 16.11.7 + ansi-escapes: 4.3.2 + chalk: 4.1.2 + jest-util: 26.6.2 + string-length: 4.0.2 + dev: true + + /jest-worker/26.6.2: + resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} + engines: {node: '>= 10.13.0'} + dependencies: + '@types/node': 16.11.7 + merge-stream: 2.0.0 + supports-color: 7.2.0 + dev: true + + /jest/26.6.3_ts-node@9.1.1: + resolution: {integrity: sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==} + engines: {node: '>= 10.14.2'} + hasBin: true + dependencies: + '@jest/core': 26.6.3_ts-node@9.1.1 + import-local: 3.0.3 + jest-cli: 26.6.3_ts-node@9.1.1 + transitivePeerDependencies: + - bufferutil + - canvas + - supports-color + - ts-node + - utf-8-validate + dev: true + + /js-tokens/4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + dev: true + + /js-yaml/3.14.1: + resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} + hasBin: true + dependencies: + argparse: 1.0.10 + esprima: 4.0.1 + dev: true + + /jsdom/16.7.0: + resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} + engines: {node: '>=10'} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true + dependencies: + abab: 2.0.5 + acorn: 8.5.0 + acorn-globals: 6.0.0 + cssom: 0.4.4 + cssstyle: 2.3.0 + data-urls: 2.0.0 + decimal.js: 10.3.1 + domexception: 2.0.1 + escodegen: 2.0.0 + form-data: 3.0.1 + html-encoding-sniffer: 2.0.1 + http-proxy-agent: 4.0.1 + https-proxy-agent: 5.0.0 + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.0 + parse5: 6.0.1 + saxes: 5.0.1 + symbol-tree: 3.2.4 + tough-cookie: 4.0.0 + w3c-hr-time: 1.0.2 + w3c-xmlserializer: 2.0.0 + webidl-conversions: 6.1.0 + whatwg-encoding: 1.0.5 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + ws: 7.5.5 + xml-name-validator: 3.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + dev: true + + /jsesc/2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} + engines: {node: '>=4'} + hasBin: true + dev: true + + /json-parse-even-better-errors/2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + dev: true + + /json5/2.2.0: + resolution: {integrity: sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==} + engines: {node: '>=6'} + hasBin: true + dependencies: + minimist: 1.2.5 + dev: true + + /jsonfile/6.1.0: + resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} + dependencies: + universalify: 2.0.0 + optionalDependencies: + graceful-fs: 4.2.8 + dev: false + + /jssha/3.2.0: + resolution: {integrity: sha512-QuruyBENDWdN4tZwJbQq7/eAK85FqrI4oDbXjy5IBhYD+2pTJyBUWZe8ctWaCkrV0gy6AaelgOZZBMeswEa/6Q==} + dev: false + + /kind-of/3.2.2: + resolution: {integrity: sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=} + engines: {node: '>=0.10.0'} + dependencies: + is-buffer: 1.1.6 + dev: true + + /kind-of/4.0.0: + resolution: {integrity: sha1-IIE989cSkosgc3hpGkUGb65y3Vc=} + engines: {node: '>=0.10.0'} + dependencies: + is-buffer: 1.1.6 + dev: true + + /kind-of/5.1.0: + resolution: {integrity: sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==} + engines: {node: '>=0.10.0'} + dev: true + + /kind-of/6.0.3: + resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} + engines: {node: '>=0.10.0'} + dev: true + + /kleur/3.0.3: + resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==} + engines: {node: '>=6'} + dev: true + + /leven/3.1.0: + resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} + engines: {node: '>=6'} + dev: true + + /levn/0.3.0: + resolution: {integrity: sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.1.2 + type-check: 0.3.2 + dev: true + + /lines-and-columns/1.1.6: + resolution: {integrity: sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=} + dev: true + + /locate-path/5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + dependencies: + p-locate: 4.1.0 + dev: true + + /lodash/4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + /log-symbols/4.1.0: + resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} + engines: {node: '>=10'} + dependencies: + chalk: 4.1.2 + is-unicode-supported: 0.1.0 + dev: true + + /loose-envify/1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + dependencies: + js-tokens: 4.0.0 + dev: true + + /lru-cache/6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} + engines: {node: '>=10'} + dependencies: + yallist: 4.0.0 + dev: true + + /make-dir/3.1.0: + resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} + engines: {node: '>=8'} + dependencies: + semver: 6.3.0 + dev: true + + /make-error/1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true + + /makeerror/1.0.12: + resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} + dependencies: + tmpl: 1.0.5 + dev: true + + /map-cache/0.2.2: + resolution: {integrity: sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=} + engines: {node: '>=0.10.0'} + dev: true + + /map-obj/1.0.1: + resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} + engines: {node: '>=0.10.0'} + dev: true + + /map-obj/4.3.0: + resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==} + engines: {node: '>=8'} + dev: true + + /map-visit/1.0.0: + resolution: {integrity: sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=} + engines: {node: '>=0.10.0'} + dependencies: + object-visit: 1.0.1 + dev: true + + /meow/9.0.0: + resolution: {integrity: sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ==} + engines: {node: '>=10'} + dependencies: + '@types/minimist': 1.2.2 + camelcase-keys: 6.2.2 + decamelize: 1.2.0 + decamelize-keys: 1.1.0 + hard-rejection: 2.1.0 + minimist-options: 4.1.0 + normalize-package-data: 3.0.3 + read-pkg-up: 7.0.1 + redent: 3.0.0 + trim-newlines: 3.0.1 + type-fest: 0.18.1 + yargs-parser: 20.2.9 + dev: true + + /merge-stream/2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + dev: true + + /merge2/1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + dev: true + + /micromatch/3.1.10: + resolution: {integrity: sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-diff: 4.0.0 + array-unique: 0.3.2 + braces: 2.3.2 + define-property: 2.0.2 + extend-shallow: 3.0.2 + extglob: 2.0.4 + fragment-cache: 0.2.1 + kind-of: 6.0.3 + nanomatch: 1.2.13 + object.pick: 1.3.0 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + dev: true + + /micromatch/4.0.4: + resolution: {integrity: sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==} + engines: {node: '>=8.6'} + dependencies: + braces: 3.0.2 + picomatch: 2.3.0 + dev: true + + /mime-db/1.50.0: + resolution: {integrity: sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==} + engines: {node: '>= 0.6'} + dev: true + + /mime-types/2.1.33: + resolution: {integrity: sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==} + engines: {node: '>= 0.6'} + dependencies: + mime-db: 1.50.0 + dev: true + + /mimic-fn/2.1.0: + resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} + engines: {node: '>=6'} + dev: true + + /min-indent/1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + dev: true + + /minimatch/3.0.4: + resolution: {integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==} + dependencies: + brace-expansion: 1.1.11 + dev: true + + /minimist-options/4.1.0: + resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} + engines: {node: '>= 6'} + dependencies: + arrify: 1.0.1 + is-plain-obj: 1.1.0 + kind-of: 6.0.3 + dev: true + + /minimist/1.2.5: + resolution: {integrity: sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==} + dev: true + + /mixin-deep/1.3.2: + resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==} + engines: {node: '>=0.10.0'} + dependencies: + for-in: 1.0.2 + is-extendable: 1.0.1 + dev: true + + /mkdirp/1.0.4: + resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} + engines: {node: '>=10'} + hasBin: true + dev: true + + /ms/2.0.0: + resolution: {integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=} + dev: true + + /ms/2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} + dev: true + + /nanomatch/1.2.13: + resolution: {integrity: sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==} + engines: {node: '>=0.10.0'} + dependencies: + arr-diff: 4.0.0 + array-unique: 0.3.2 + define-property: 2.0.2 + extend-shallow: 3.0.2 + fragment-cache: 0.2.1 + is-windows: 1.0.2 + kind-of: 6.0.3 + object.pick: 1.3.0 + regex-not: 1.0.2 + snapdragon: 0.8.2 + to-regex: 3.0.2 + dev: true + + /natural-compare/1.4.0: + resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=} + dev: true + + /neo-async/2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + dev: true + + /nice-try/1.0.5: + resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==} + dev: true + + /node-fetch/2.6.1: + resolution: {integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==} + engines: {node: 4.x || >=6.0.0} + dev: true + + /node-fetch/2.6.6: + resolution: {integrity: sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==} + engines: {node: 4.x || >=6.0.0} + dependencies: + whatwg-url: 5.0.0 + + /node-int64/0.4.0: + resolution: {integrity: sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=} + dev: true + + /node-modules-regexp/1.0.0: + resolution: {integrity: sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=} + engines: {node: '>=0.10.0'} + dev: true + + /node-notifier/8.0.2: + resolution: {integrity: sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==} + requiresBuild: true + dependencies: + growly: 1.3.0 + is-wsl: 2.2.0 + semver: 7.3.5 + shellwords: 0.1.1 + uuid: 8.3.2 + which: 2.0.2 + dev: true + optional: true + + /node-releases/2.0.1: + resolution: {integrity: sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==} + dev: true + + /normalize-package-data/2.5.0: + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} + dependencies: + hosted-git-info: 2.8.9 + resolve: 1.20.0 + semver: 5.7.1 + validate-npm-package-license: 3.0.4 + dev: true + + /normalize-package-data/3.0.3: + resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} + engines: {node: '>=10'} + dependencies: + hosted-git-info: 4.0.2 + is-core-module: 2.8.0 + semver: 7.3.5 + validate-npm-package-license: 3.0.4 + dev: true + + /normalize-path/2.1.1: + resolution: {integrity: sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=} + engines: {node: '>=0.10.0'} + dependencies: + remove-trailing-separator: 1.1.0 + dev: true + + /normalize-path/3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + dev: true + + /npm-run-path/2.0.2: + resolution: {integrity: sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=} + engines: {node: '>=4'} + dependencies: + path-key: 2.0.1 + dev: true + + /npm-run-path/4.0.1: + resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} + engines: {node: '>=8'} + dependencies: + path-key: 3.1.1 + dev: true + + /nwsapi/2.2.0: + resolution: {integrity: sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==} + dev: true + + /object-assign/4.1.1: + resolution: {integrity: sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=} + engines: {node: '>=0.10.0'} + dev: true + + /object-copy/0.1.0: + resolution: {integrity: sha1-fn2Fi3gb18mRpBupde04EnVOmYw=} + engines: {node: '>=0.10.0'} + dependencies: + copy-descriptor: 0.1.1 + define-property: 0.2.5 + kind-of: 3.2.2 + dev: true + + /object-visit/1.0.1: + resolution: {integrity: sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /object.pick/1.3.0: + resolution: {integrity: sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=} + engines: {node: '>=0.10.0'} + dependencies: + isobject: 3.0.1 + dev: true + + /once/1.4.0: + resolution: {integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E=} + dependencies: + wrappy: 1.0.2 + dev: true + + /onetime/5.1.2: + resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} + engines: {node: '>=6'} + dependencies: + mimic-fn: 2.1.0 + dev: true + + /optimism/0.16.1: + resolution: {integrity: sha512-64i+Uw3otrndfq5kaoGNoY7pvOhSsjFEN4bdEFh80MWVk/dbgJfMv7VFDeCT8LxNAlEVhQmdVEbfE7X2nWNIIg==} + dependencies: + '@wry/context': 0.6.1 + '@wry/trie': 0.3.1 + dev: true + + /optionator/0.8.3: + resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} + engines: {node: '>= 0.8.0'} + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.3.0 + prelude-ls: 1.1.2 + type-check: 0.3.2 + word-wrap: 1.2.3 + dev: true + + /outvariant/1.2.1: + resolution: {integrity: sha512-bcILvFkvpMXh66+Ubax/inxbKRyWTUiiFIW2DWkiS79wakrLGn3Ydy+GvukadiyfZjaL6C7YhIem4EZSM282wA==} + dev: false + + /p-each-series/2.2.0: + resolution: {integrity: sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==} + engines: {node: '>=8'} + dev: true + + /p-finally/1.0.0: + resolution: {integrity: sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=} + engines: {node: '>=4'} + dev: true + + /p-limit/2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + dependencies: + p-try: 2.2.0 + dev: true + + /p-locate/4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + dependencies: + p-limit: 2.3.0 + dev: true + + /p-try/2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + dev: true + + /parse-github-url/1.0.2: + resolution: {integrity: sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==} + engines: {node: '>=0.10.0'} + hasBin: true + dev: true + + /parse-json/5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': 7.16.0 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.1.6 + dev: true + + /parse5/6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + dev: true + + /pascalcase/0.1.1: + resolution: {integrity: sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=} + engines: {node: '>=0.10.0'} + dev: true + + /path-exists/4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + dev: true + + /path-is-absolute/1.0.1: + resolution: {integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18=} + engines: {node: '>=0.10.0'} + dev: true + + /path-key/2.0.1: + resolution: {integrity: sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=} + engines: {node: '>=4'} + dev: true + + /path-key/3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + dev: true + + /path-parse/1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + dev: true + + /path-type/4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} + engines: {node: '>=8'} + dev: true + + /picocolors/1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} + dev: true + + /picomatch/2.3.0: + resolution: {integrity: sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==} + engines: {node: '>=8.6'} + dev: true + + /pirates/4.0.1: + resolution: {integrity: sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==} + engines: {node: '>= 6'} + dependencies: + node-modules-regexp: 1.0.0 + dev: true + + /pkg-dir/4.2.0: + resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + dev: true + + /plur/4.0.0: + resolution: {integrity: sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==} + engines: {node: '>=10'} + dependencies: + irregular-plurals: 3.3.0 + dev: true + + /posix-character-classes/0.1.1: + resolution: {integrity: sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=} + engines: {node: '>=0.10.0'} + dev: true + + /prelude-ls/1.1.2: + resolution: {integrity: sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=} + engines: {node: '>= 0.8.0'} + dev: true + + /prettier/2.4.1: + resolution: {integrity: sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==} + engines: {node: '>=10.13.0'} + hasBin: true + + /pretty-format/26.6.2: + resolution: {integrity: sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==} + engines: {node: '>= 10'} + dependencies: + '@jest/types': 26.6.2 + ansi-regex: 5.0.1 + ansi-styles: 4.3.0 + react-is: 17.0.2 + dev: true + + /prompts/2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} + engines: {node: '>= 6'} + dependencies: + kleur: 3.0.3 + sisteransi: 1.0.5 + dev: true + + /prop-types/15.7.2: + resolution: {integrity: sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==} + dependencies: + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 + dev: true + + /psl/1.8.0: + resolution: {integrity: sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==} + dev: true + + /pump/3.0.0: + resolution: {integrity: sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==} + dependencies: + end-of-stream: 1.4.4 + once: 1.4.0 + dev: true + + /punycode/2.1.1: + resolution: {integrity: sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==} + engines: {node: '>=6'} + dev: true + + /queue-microtask/1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + dev: true + + /quick-lru/4.0.1: + resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} + engines: {node: '>=8'} + dev: true + + /react-is/16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} + dev: true + + /react-is/17.0.2: + resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} + dev: true + + /read-pkg-up/7.0.1: + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} + dependencies: + find-up: 4.1.0 + read-pkg: 5.2.0 + type-fest: 0.8.1 + dev: true + + /read-pkg/5.2.0: + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 2.5.0 + parse-json: 5.2.0 + type-fest: 0.6.0 + dev: true + + /redent/3.0.0: + resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==} + engines: {node: '>=8'} + dependencies: + indent-string: 4.0.0 + strip-indent: 3.0.0 + dev: true + + /regex-not/1.0.2: + resolution: {integrity: sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 3.0.2 + safe-regex: 1.1.0 + dev: true + + /remove-trailing-separator/1.1.0: + resolution: {integrity: sha1-wkvOKig62tW8P1jg1IJJuSN52O8=} + dev: true + + /repeat-element/1.1.4: + resolution: {integrity: sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==} + engines: {node: '>=0.10.0'} + dev: true + + /repeat-string/1.6.1: + resolution: {integrity: sha1-jcrkcOHIirwtYA//Sndihtp15jc=} + engines: {node: '>=0.10'} + dev: true + + /require-directory/2.1.1: + resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=} + engines: {node: '>=0.10.0'} + + /require-main-filename/2.0.0: + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} + dev: true + + /resolve-cwd/3.0.0: + resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} + engines: {node: '>=8'} + dependencies: + resolve-from: 5.0.0 + dev: true + + /resolve-from/5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + dev: true + + /resolve-url/0.2.1: + resolution: {integrity: sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=} + deprecated: https://github.com/lydell/resolve-url#deprecated + dev: true + + /resolve/1.20.0: + resolution: {integrity: sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==} + dependencies: + is-core-module: 2.8.0 + path-parse: 1.0.7 + dev: true + + /ret/0.1.15: + resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==} + engines: {node: '>=0.12'} + dev: true + + /reusify/1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + /rimraf/3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + hasBin: true + dependencies: + glob: 7.2.0 + dev: true + + /rsvp/4.8.5: + resolution: {integrity: sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==} + engines: {node: 6.* || >= 7.*} + dev: true + + /run-parallel/1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /safe-buffer/5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + dev: true + + /safe-regex/1.1.0: + resolution: {integrity: sha1-QKNmnzsHfR6UPURinhV91IAjvy4=} + dependencies: + ret: 0.1.15 + dev: true + + /safer-buffer/2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + dev: true + + /sane/4.1.0: + resolution: {integrity: sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==} + engines: {node: 6.* || 8.* || >= 10.*} + deprecated: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added + hasBin: true + dependencies: + '@cnakazawa/watch': 1.0.4 + anymatch: 2.0.0 + capture-exit: 2.0.0 + exec-sh: 0.3.6 + execa: 1.0.0 + fb-watchman: 2.0.1 + micromatch: 3.1.10 + minimist: 1.2.5 + walker: 1.0.8 + dev: true + + /saxes/5.0.1: + resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} + engines: {node: '>=10'} + dependencies: + xmlchars: 2.2.0 + dev: true + + /semver/5.7.1: + resolution: {integrity: sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==} + hasBin: true + dev: true + + /semver/6.3.0: + resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} + hasBin: true + dev: true + + /semver/7.3.5: + resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 + dev: true + + /set-blocking/2.0.0: + resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=} + dev: true + + /set-value/2.0.1: + resolution: {integrity: sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 2.0.1 + is-extendable: 0.1.1 + is-plain-object: 2.0.4 + split-string: 3.1.0 + dev: true + + /shebang-command/1.2.0: + resolution: {integrity: sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=} + engines: {node: '>=0.10.0'} + dependencies: + shebang-regex: 1.0.0 + dev: true + + /shebang-command/2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + dependencies: + shebang-regex: 3.0.0 + dev: true + + /shebang-regex/1.0.0: + resolution: {integrity: sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=} + engines: {node: '>=0.10.0'} + dev: true + + /shebang-regex/3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + dev: true + + /shellwords/0.1.1: + resolution: {integrity: sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==} + dev: true + optional: true + + /signal-exit/3.0.5: + resolution: {integrity: sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==} + dev: true + + /sisteransi/1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + dev: true + + /slash/3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} + engines: {node: '>=8'} + dev: true + + /snapdragon-node/2.1.1: + resolution: {integrity: sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 1.0.0 + isobject: 3.0.1 + snapdragon-util: 3.0.1 + dev: true + + /snapdragon-util/3.0.1: + resolution: {integrity: sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /snapdragon/0.8.2: + resolution: {integrity: sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==} + engines: {node: '>=0.10.0'} + dependencies: + base: 0.11.2 + debug: 2.6.9 + define-property: 0.2.5 + extend-shallow: 2.0.1 + map-cache: 0.2.2 + source-map: 0.5.7 + source-map-resolve: 0.5.3 + use: 3.1.1 + dev: true + + /source-map-resolve/0.5.3: + resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} + dependencies: + atob: 2.1.2 + decode-uri-component: 0.2.0 + resolve-url: 0.2.1 + source-map-url: 0.4.1 + urix: 0.1.0 + dev: true + + /source-map-support/0.5.20: + resolution: {integrity: sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==} + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + dev: true + + /source-map-url/0.4.1: + resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==} + dev: true + + /source-map/0.5.7: + resolution: {integrity: sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=} + engines: {node: '>=0.10.0'} + dev: true + + /source-map/0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + dev: true + + /source-map/0.7.3: + resolution: {integrity: sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==} + engines: {node: '>= 8'} + dev: true + + /spdx-correct/3.1.1: + resolution: {integrity: sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==} + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.10 + dev: true + + /spdx-exceptions/2.3.0: + resolution: {integrity: sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==} + dev: true + + /spdx-expression-parse/3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + dependencies: + spdx-exceptions: 2.3.0 + spdx-license-ids: 3.0.10 + dev: true + + /spdx-license-ids/3.0.10: + resolution: {integrity: sha512-oie3/+gKf7QtpitB0LYLETe+k8SifzsX4KixvpOsbI6S0kRiRQ5MKOio8eMSAKQ17N06+wdEOXRiId+zOxo0hA==} + dev: true + + /split-string/3.1.0: + resolution: {integrity: sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==} + engines: {node: '>=0.10.0'} + dependencies: + extend-shallow: 3.0.2 + dev: true + + /sprintf-js/1.0.3: + resolution: {integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=} + dev: true + + /stack-utils/2.0.5: + resolution: {integrity: sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==} + engines: {node: '>=10'} + dependencies: + escape-string-regexp: 2.0.0 + dev: true + + /static-extend/0.1.2: + resolution: {integrity: sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 0.2.5 + object-copy: 0.1.0 + dev: true + + /string-length/4.0.2: + resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} + engines: {node: '>=10'} + dependencies: + char-regex: 1.0.2 + strip-ansi: 6.0.1 + dev: true + + /string-width/4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + /strip-ansi/6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + dependencies: + ansi-regex: 5.0.1 + + /strip-bom/4.0.0: + resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} + engines: {node: '>=8'} + dev: true + + /strip-eof/1.0.0: + resolution: {integrity: sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=} + engines: {node: '>=0.10.0'} + dev: true + + /strip-final-newline/2.0.0: + resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} + engines: {node: '>=6'} + dev: true + + /strip-indent/3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + dependencies: + min-indent: 1.0.1 + dev: true + + /supports-color/5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + dependencies: + has-flag: 3.0.0 + dev: true + + /supports-color/7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + dev: true + + /supports-hyperlinks/2.2.0: + resolution: {integrity: sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==} + engines: {node: '>=8'} + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + dev: true + + /symbol-observable/4.0.0: + resolution: {integrity: sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==} + engines: {node: '>=0.10'} + dev: true + + /symbol-tree/3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + dev: true + + /terminal-link/2.1.1: + resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==} + engines: {node: '>=8'} + dependencies: + ansi-escapes: 4.3.2 + supports-hyperlinks: 2.2.0 + dev: true + + /test-exclude/6.0.0: + resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} + engines: {node: '>=8'} + dependencies: + '@istanbuljs/schema': 0.1.3 + glob: 7.2.0 + minimatch: 3.0.4 + dev: true + + /throat/5.0.0: + resolution: {integrity: sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==} + dev: true + + /tmpl/1.0.5: + resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} + dev: true + + /to-fast-properties/2.0.0: + resolution: {integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=} + engines: {node: '>=4'} + dev: true + + /to-object-path/0.3.0: + resolution: {integrity: sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=} + engines: {node: '>=0.10.0'} + dependencies: + kind-of: 3.2.2 + dev: true + + /to-regex-range/2.1.1: + resolution: {integrity: sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=} + engines: {node: '>=0.10.0'} + dependencies: + is-number: 3.0.0 + repeat-string: 1.6.1 + dev: true + + /to-regex-range/5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + dependencies: + is-number: 7.0.0 + dev: true + + /to-regex/3.0.2: + resolution: {integrity: sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==} + engines: {node: '>=0.10.0'} + dependencies: + define-property: 2.0.2 + extend-shallow: 3.0.2 + regex-not: 1.0.2 + safe-regex: 1.1.0 + dev: true + + /tough-cookie/4.0.0: + resolution: {integrity: sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==} + engines: {node: '>=6'} + dependencies: + psl: 1.8.0 + punycode: 2.1.1 + universalify: 0.1.2 + dev: true + + /tr46/0.0.3: + resolution: {integrity: sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=} + + /tr46/2.1.0: + resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} + engines: {node: '>=8'} + dependencies: + punycode: 2.1.1 + dev: true + + /trim-newlines/3.0.1: + resolution: {integrity: sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==} + engines: {node: '>=8'} + dev: true + + /ts-invariant/0.9.3: + resolution: {integrity: sha512-HinBlTbFslQI0OHP07JLsSXPibSegec6r9ai5xxq/qHYCsIQbzpymLpDhAUsnXcSrDEcd0L62L8vsOEdzM0qlA==} + engines: {node: '>=8'} + dependencies: + tslib: 2.3.1 + dev: true + + /ts-jest/26.5.6_jest@26.6.3+typescript@4.5.2: + resolution: {integrity: sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==} + engines: {node: '>= 10'} + hasBin: true + peerDependencies: + jest: '>=26 <27' + typescript: '>=3.8 <5.0' + dependencies: + bs-logger: 0.2.6 + buffer-from: 1.1.2 + fast-json-stable-stringify: 2.1.0 + jest: 26.6.3_ts-node@9.1.1 + jest-util: 26.6.2 + json5: 2.2.0 + lodash: 4.17.21 + make-error: 1.3.6 + mkdirp: 1.0.4 + semver: 7.3.5 + typescript: 4.5.2 + yargs-parser: 20.2.9 + dev: true + + /ts-node/9.1.1_typescript@4.5.2: + resolution: {integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==} + engines: {node: '>=10.0.0'} + hasBin: true + peerDependencies: + typescript: '>=2.7' + dependencies: + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + source-map-support: 0.5.20 + typescript: 4.5.2 + yn: 3.1.1 + dev: true + + /ts-poet/4.6.1: + resolution: {integrity: sha512-DXJ+mBJIDp+jiaUgB4N5I/sczHHDU2FWacdbDNVAVS4Mh4hb7ckpvUWVW7m7/nAOcjR0r4Wt+7AoO7FeJKExfA==} + dependencies: + '@types/prettier': 1.19.1 + lodash: 4.17.21 + prettier: 2.4.1 + dev: false + + /ts-toolbelt/9.6.0: + resolution: {integrity: sha512-nsZd8ZeNUzukXPlJmTBwUAuABDe/9qtVDelJeT/qW0ow3ZS3BsQJtNkan1802aM9Uf68/Y8ljw86Hu0h5IUW3w==} + dev: false + + /tsd/0.18.0: + resolution: {integrity: sha512-UIkxm2CLmSjXlQs4zqxgVV9UmzK8VgJ63eBpgkH/ZsMkiUdzxxHvdCCg8F314HDxzfQl2muJEy/TEcXHIFIPXg==} + engines: {node: '>=12'} + hasBin: true + dependencies: + '@tsd/typescript': 4.4.4 + eslint-formatter-pretty: 4.1.0 + globby: 11.0.4 + meow: 9.0.0 + path-exists: 4.0.0 + read-pkg-up: 7.0.1 + dev: true + + /tslib/2.3.1: + resolution: {integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==} + + /type-check/0.3.2: + resolution: {integrity: sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=} + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: 1.1.2 + dev: true + + /type-detect/4.0.8: + resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} + engines: {node: '>=4'} + dev: true + + /type-fest/0.18.1: + resolution: {integrity: sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw==} + engines: {node: '>=10'} + dev: true + + /type-fest/0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + dev: true + + /type-fest/0.6.0: + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} + dev: true + + /type-fest/0.8.1: + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} + dev: true + + /typedarray-to-buffer/3.1.5: + resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} + dependencies: + is-typedarray: 1.0.0 + dev: true + + /typescript/4.5.2: + resolution: {integrity: sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: true + + /uglify-js/3.14.3: + resolution: {integrity: sha512-mic3aOdiq01DuSVx0TseaEzMIVqebMZ0Z3vaeDhFEh9bsc24hV1TFvN74reA2vs08D0ZWfNjAcJ3UbVLaBss+g==} + engines: {node: '>=0.8.0'} + hasBin: true + requiresBuild: true + dev: true + optional: true + + /union-value/1.0.1: + resolution: {integrity: sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==} + engines: {node: '>=0.10.0'} + dependencies: + arr-union: 3.1.0 + get-value: 2.0.6 + is-extendable: 0.1.1 + set-value: 2.0.1 + dev: true + + /universalify/0.1.2: + resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} + engines: {node: '>= 4.0.0'} + dev: true + + /universalify/2.0.0: + resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + engines: {node: '>= 10.0.0'} + dev: false + + /unset-value/1.0.0: + resolution: {integrity: sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=} + engines: {node: '>=0.10.0'} + dependencies: + has-value: 0.3.1 + isobject: 3.0.1 + dev: true + + /urix/0.1.0: + resolution: {integrity: sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=} + deprecated: Please see https://github.com/lydell/urix#deprecated + dev: true + + /use/3.1.1: + resolution: {integrity: sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==} + engines: {node: '>=0.10.0'} + dev: true + + /uuid/8.3.2: + resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + hasBin: true + dev: true + optional: true + + /v8-to-istanbul/7.1.2: + resolution: {integrity: sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==} + engines: {node: '>=10.10.0'} + dependencies: + '@types/istanbul-lib-coverage': 2.0.3 + convert-source-map: 1.8.0 + source-map: 0.7.3 + dev: true + + /validate-npm-package-license/3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + dependencies: + spdx-correct: 3.1.1 + spdx-expression-parse: 3.0.1 + dev: true + + /w3c-hr-time/1.0.2: + resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} + dependencies: + browser-process-hrtime: 1.0.0 + dev: true + + /w3c-xmlserializer/2.0.0: + resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} + engines: {node: '>=10'} + dependencies: + xml-name-validator: 3.0.0 + dev: true + + /walker/1.0.8: + resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} + dependencies: + makeerror: 1.0.12 + dev: true + + /webidl-conversions/3.0.1: + resolution: {integrity: sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=} + + /webidl-conversions/5.0.0: + resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} + engines: {node: '>=8'} + dev: true + + /webidl-conversions/6.1.0: + resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} + engines: {node: '>=10.4'} + dev: true + + /whatwg-encoding/1.0.5: + resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} + dependencies: + iconv-lite: 0.4.24 + dev: true + + /whatwg-mimetype/2.3.0: + resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} + dev: true + + /whatwg-url/5.0.0: + resolution: {integrity: sha1-lmRU6HZUYuN2RNNib2dCzotwll0=} + dependencies: + tr46: 0.0.3 + webidl-conversions: 3.0.1 + + /whatwg-url/8.7.0: + resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} + engines: {node: '>=10'} + dependencies: + lodash: 4.17.21 + tr46: 2.1.0 + webidl-conversions: 6.1.0 + dev: true + + /which-module/2.0.0: + resolution: {integrity: sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=} + dev: true + + /which/1.3.1: + resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /which/2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: true + + /word-wrap/1.2.3: + resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==} + engines: {node: '>=0.10.0'} + dev: true + + /wordwrap/1.0.0: + resolution: {integrity: sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=} + dev: true + + /wrap-ansi/6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: true + + /wrap-ansi/7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + dev: false + + /wrappy/1.0.2: + resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} + dev: true + + /write-file-atomic/3.0.3: + resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==} + dependencies: + imurmurhash: 0.1.4 + is-typedarray: 1.0.0 + signal-exit: 3.0.5 + typedarray-to-buffer: 3.1.5 + dev: true + + /ws/7.5.5: + resolution: {integrity: sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==} + engines: {node: '>=8.3.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + + /xml-name-validator/3.0.0: + resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} + dev: true + + /xmlchars/2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + dev: true + + /y18n/4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + dev: true + + /y18n/5.0.8: + resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} + engines: {node: '>=10'} + dev: false + + /yallist/4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true + + /yargs-parser/18.1.3: + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + dev: true + + /yargs-parser/20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + + /yargs/15.4.1: + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.3 + which-module: 2.0.0 + y18n: 4.0.3 + yargs-parser: 18.1.3 + dev: true + + /yargs/16.2.0: + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} + dependencies: + cliui: 7.0.4 + escalade: 3.1.1 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + dev: false + + /yn/3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + + /zen-observable-ts/1.1.0: + resolution: {integrity: sha512-1h4zlLSqI2cRLPJUHJFL8bCWHhkpuXkF+dbGkRaWjgDIG26DmzyshUMrdV/rL3UnR+mhaX4fRq8LPouq0MYYIA==} + dependencies: + '@types/zen-observable': 0.8.3 + zen-observable: 0.8.15 + dev: true + + /zen-observable/0.8.15: + resolution: {integrity: sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==} + dev: true diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..3080585 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - 'codegen' \ No newline at end of file diff --git a/src/AST.ts b/src/AST.ts index fb35c96..333ff63 100644 --- a/src/AST.ts +++ b/src/AST.ts @@ -1,6 +1,5 @@ -import { - Kind, - NameNode, +import { Kind } from "graphql/language"; +import type { TypeNode, NamedTypeNode, ListTypeNode, @@ -12,147 +11,250 @@ import { SelectionNode, VariableDefinitionNode, SelectionSetNode, - OperationTypeNode, OperationDefinitionNode, DefinitionNode, DocumentNode, FieldNode, InlineFragmentNode, -} from "graphql"; + FragmentDefinitionNode, + FragmentSpreadNode, +} from "graphql/language"; -export const documentOf = ( - nodes: ReadonlyArray -): DocumentNode => ({ - kind: Kind.DOCUMENT, - definitions: nodes, +export type Primitive = + | string + | number + | bigint + | boolean + | symbol + | null + | undefined; + +export interface NonNullType | ListType> + extends NonNullTypeNode { + type: Type; +} + +export const nonNull = | ListType>( + type: Type +): NonNullType => ({ + kind: Kind.NON_NULL_TYPE, + type, }); -export const operationOf = ({ - operation, - name, - variables = [], - directives = [], - selectionSet, -}: { - operation: OperationTypeNode; - name: string; - selectionSet: SelectionSetNode; - variables?: ReadonlyArray; - directives?: DirectiveNode[]; -}): OperationDefinitionNode => ({ - kind: Kind.OPERATION_DEFINITION, - operation, - name: nameNodeOf(name), - variableDefinitions: variables, - selectionSet, - directives, +export interface ListType | NonNullType> + extends ListTypeNode { + type: Type; +} + +export interface NamedType extends NamedTypeNode { + name: { kind: "Name"; value: Name }; +} + +export const namedType = ( + name: string +): NamedType => ({ + kind: Kind.NAMED_TYPE, + name: { kind: Kind.NAME, value: name as Name }, +}); + +export type Type = NamedType | ListType | NonNullType; + +export interface Variable extends VariableNode { + name: { kind: "Name"; value: Name }; +} + +export const variable = (name: Name): Variable => ({ + kind: "Variable", + name: { + kind: "Name", + value: name, + }, }); -export const selectionSetOf = ( - selections: SelectionNode[] -): SelectionSetNode => ({ +// @todo define extensions on `ValueNode` +export type Value = Variable | Primitive; + +export interface Argument + extends ArgumentNode { + readonly name: { kind: "Name"; value: Name }; +} + +export const argument = ( + name: Name, + value: Value +): Argument => ({ + kind: Kind.ARGUMENT, + name: { kind: Kind.NAME, value: name }, + value: toValueNode(value), +}); + +export interface VariableDefinition, T extends Type> + extends VariableDefinitionNode {} + +export const variableDefinition = , T extends Type>( + variable: V, + type: T +): VariableDefinition => ({ + kind: "VariableDefinition", + variable, + type, // TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode; + + // @todo + // defaultValue?: ValueNode; + // readonly directives?: ReadonlyArray; +}); + +export interface SelectionSet> + extends SelectionSetNode { + selections: T; +} + +export const selectionSet = >( + selections: T +): SelectionSet => ({ kind: Kind.SELECTION_SET, selections, }); -export const inlineFragmentOf = ({ - typeCondition, - directives = [], - selectionSet, -}: { - typeCondition: NamedTypeNode; - directives?: DirectiveNode[]; - selectionSet: SelectionSetNode; -}): InlineFragmentNode => ({ +export interface Field< + Name extends string, + Arguments extends Array> | undefined = undefined, + SS extends SelectionSet | undefined = undefined +> extends FieldNode { + name: { kind: "Name"; value: Name }; + arguments?: Arguments; + selectionSet?: SS; +} + +export const field = < + Name extends string, + Arguments extends Array> | undefined = undefined, + SS extends SelectionSet | undefined = undefined +>( + name: Name, + args?: Arguments, + selectionSet?: SS +): Field => ({ + kind: "Field", + name: { kind: "Name", value: name }, + directives: [], + arguments: args, + alias: undefined, + selectionSet: selectionSet, +}); + +export interface InlineFragment< + TypeCondition extends NamedType, + SS extends SelectionSet> +> extends InlineFragmentNode {} + +export const inlineFragment = < + TypeCondition extends NamedType, + SS extends SelectionSet> +>( + typeCondition: TypeCondition, + selectionSet: SS +): InlineFragment => ({ kind: Kind.INLINE_FRAGMENT, typeCondition, - directives, + directives: [ + /* @todo*/ + ], selectionSet, }); -export const fieldOf = ({ - name, - args = [], - directives = [], - selectionSet, -}: { - name: string; - args?: ArgumentNode[]; - directives?: DirectiveNode[]; - selectionSet?: SelectionSetNode; -}): FieldNode => ({ - kind: Kind.FIELD, - name: nameNodeOf(name), - arguments: args, - directives, +export interface FragmentDefinition< + Name extends string, + TypeCondition extends NamedType, + SS extends SelectionSet> +> extends FragmentDefinitionNode { + readonly name: { kind: "Name"; value: Name }; + readonly typeCondition: TypeCondition; + readonly selectionSet: SS; +} + +export const fragmentDefinition = < + Name extends string, + TypeCondition extends NamedType, + SS extends SelectionSet> +>( + name: Name, + typeCondition: TypeCondition, + selectionSet: SS +): FragmentDefinition => ({ + kind: "FragmentDefinition", + name: { kind: "Name", value: name }, + typeCondition, selectionSet, + // directives @todo }); -export const argumentOf = ({ - name, - value, -}: { - name: string; - value: ValueNode; -}): ArgumentNode => ({ - kind: Kind.ARGUMENT, - name: nameNodeOf(name), - value, -}); +export interface FragmentSpread + extends FragmentSpreadNode { + readonly name: { kind: "Name"; value: Name }; + // readonly directives?: ReadonlyArray; +} -export const variableOf = ({ name }: { name: string }): VariableNode => ({ - kind: Kind.VARIABLE, - name: nameNodeOf(name), -}); +// SelectionNode +export type Selection = + | Field + | InlineFragment + | FragmentSpread; -export const variableDefinitionOf = ({ - variable, - type, - directives = [], - defaultValue, -}: { - variable: VariableNode; - type: TypeNode; - defaultValue?: ValueNode; - directives?: DirectiveNode[]; -}): VariableDefinitionNode => ({ - kind: Kind.VARIABLE_DEFINITION, - variable, - type, - defaultValue, - directives, -}); +export type Fragment = InlineFragment; /*| NamedFragment */ -export const nonNullTypeOf = ({ - type, -}: { - type: NamedTypeNode | ListTypeNode; -}): NonNullTypeNode => ({ - kind: Kind.NON_NULL_TYPE, - type, -}); +export interface Operation< + Op extends "query" | "mutation" | "subscription", + Name extends string, + VariableDefinitions extends Array> | never, + SS extends SelectionSet +> extends OperationDefinitionNode { + operation: Op; + name: { kind: "Name"; value: Name }; + variableDefinitions: VariableDefinitions; + selectionSet: SS; +} -export const listTypeOf = ({ type }: { type: TypeNode }): ListTypeNode => ({ - kind: Kind.LIST_TYPE, - type, +export const operation = < + Op extends "query" | "mutation" | "subscription", + Name extends string | never, + VariableDefinitions extends Array> | never, + SS extends SelectionSet +>( + op: Op, + name: Name, + selectionSet: SS, + variableDefinitions: VariableDefinitions +): Operation => ({ + kind: "OperationDefinition", + name: { kind: "Name", value: name }, + operation: op, + variableDefinitions, + selectionSet, + directives: [ + /* @todo */ + ], }); -export const namedTypeOf = ({ name }: { name: string }): NamedTypeNode => ({ - kind: Kind.NAMED_TYPE, - name: nameNodeOf(name), -}); +// DefinitionNode +export type Definition = Operation; // | Fragment -export const nameNodeOf = (name: string): NameNode => ({ - kind: Kind.NAME, - value: name, +export interface Document> + extends DocumentNode { + definitions: T; +} + +export const document = >( + definitions: T +): DocumentNode => ({ + kind: Kind.DOCUMENT, + definitions, }); -export const valueNodeOf = ( - value: any, - enumValues: Record -): ValueNode => { +export const toValueNode = (value: any, enums: any[] = []): ValueNode => { if (typeof value === "string") { - if (enumValues[value]) return { kind: Kind.ENUM, value: value }; + if (enums.some((e) => Object.values(e).includes(value))) + return { kind: Kind.ENUM, value: value }; return { kind: Kind.STRING, value: value }; } else if (Number.isInteger(value)) { return { kind: Kind.INT, value: value }; @@ -165,23 +267,41 @@ export const valueNodeOf = ( } else if (Array.isArray(value)) { return { kind: Kind.LIST, - values: value.map((v) => valueNodeOf(v, enumValues)), + values: value.map((v) => toValueNode(v, enums)), }; } else if (typeof value === "object") { - return { - kind: Kind.OBJECT, - fields: Object.entries(value) - .filter(([_, value]) => value !== undefined) - .map(([key, value]) => { - const keyValNode = valueNodeOf(value, enumValues); - return { - kind: Kind.OBJECT_FIELD, - name: nameNodeOf(key), - value: keyValNode, - }; - }), - }; + if (value.kind && value.kind === "Variable") { + return value; + } else { + return { + kind: Kind.OBJECT, + fields: Object.entries(value) + .filter(([_, value]) => value !== undefined) + .map(([key, value]) => { + const keyValNode = toValueNode(value, enums); + return { + kind: Kind.OBJECT_FIELD, + name: { kind: Kind.NAME, value: key }, + value: keyValNode, + }; + }), + }; + } } else { throw new Error(`Unknown value type: ${value}`); } }; + +export function getBaseTypeNode(type: TypeNode): NamedTypeNode { + if (type.kind === Kind.NON_NULL_TYPE) { + return getBaseTypeNode(type.type); + } else if (type.kind === Kind.LIST_TYPE) { + return getBaseTypeNode(type.type); + } else { + return type; + } +} + +export function getBaseType(type: TypeNode): string { + return getBaseTypeNode(type).name.value; +} diff --git a/src/CLI.ts b/src/CLI.ts deleted file mode 100644 index ed66bee..0000000 --- a/src/CLI.ts +++ /dev/null @@ -1,83 +0,0 @@ -import Yargs from "yargs"; -import fs from "fs-extra"; -import fetch from "node-fetch"; -import { - parse, - getIntrospectionQuery, - buildASTSchema, - buildClientSchema, -} from "graphql"; - -import { Codegen } from "./Codegen"; - -Yargs.command( - "$0 ", - "Generate a fluent TypeScript client for your GraphQL API.", - (yargs) => - yargs - .positional("schema", { - describe: "ex. https://graphql.org/swapi-graphql/", - type: "string", - demandOption: true, - }) - .option("client", { - type: "string", - requiresArg: true, - description: "Include an implementation of the Client class.", - }) - .option("tag", { - type: "string", - default: "unversioned", - description: "Semantic versioning tag (ex. 1.0.0).", - }) - .option("mutableFields", { - type: "boolean", - default: false, - description: - "Generate schema types and results as mutable (default is read-only).", - }) - .option("module-path", { - type: "string", - description: "Path to @timkendall/tql module.", - }), - async (argv) => { - const schemaPath = argv.schema; - - const schema = schemaPath.startsWith("http") - ? await remoteSchema(schemaPath) - : await localSchema(schemaPath); - - const codegen = new Codegen({ - schema, - client: argv.client - ? { name: argv.client, version: argv.tag } - : undefined, - mutableFields: argv.mutableFields, - modulePath: argv["module-path"], - }); - - process.stdout.write(codegen.render()); - } -).argv; - -async function localSchema(path: string) { - const typeDefs = await fs.readFile(path, "utf-8"); - return buildASTSchema(parse(typeDefs)); -} - -async function remoteSchema(url: string) { - const { data, errors } = await fetch(url, { - method: "post", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ - operationName: "IntrospectionQuery", - query: getIntrospectionQuery(), - }), - }).then((res) => res.json()); - - if (errors) { - throw new Error("Error fetching remote schema!"); - } - - return buildClientSchema(data); -} diff --git a/src/Client.ts b/src/Client.ts deleted file mode 100644 index 6f502dc..0000000 --- a/src/Client.ts +++ /dev/null @@ -1,81 +0,0 @@ -import fetch from "node-fetch"; -import { ExecutionResult } from "graphql"; - -import { SelectionSet, Operation } from "./Operation"; -import { Result } from "./Result"; - -export interface Client { - readonly query: Record; - readonly mutate?: Record; - readonly subscribe?: Record; -} - -export interface ExecutorConfig { - uri: string; - httpHeaders?: Record | (() => Record); - fetch?: typeof fetch; -} - -export class Executor { - constructor(public readonly config: ExecutorConfig) {} - - execute>>( - operation: TOperation - ): Promise>> { - const _fetch = this.config.fetch ?? fetch; - const headers = - typeof this.config.httpHeaders === "function" - ? this.config.httpHeaders() - : this.config.httpHeaders; - - return _fetch(this.config.uri, { - method: "post", - headers: { - "Content-Type": "application/json", - ...headers, - }, - body: JSON.stringify({ - operationName: operation.name, - // variables, - query: operation.toString(), - }), - }).then((res) => res.json()) as Promise< - ExecutionResult> - >; - } -} - -export class ExecutionError extends Error { - public readonly name: string; - public readonly result?: ExecutionResult; - public readonly transportError?: Error; - - constructor({ - name, - result, - transportError, - }: { - readonly name: string; - readonly result?: ExecutionResult; - readonly transportError?: Error; - }) { - super( - `Failed to execute operation on "${name}". See "ExecutionError.what" for more details.` - ); - - this.result = result; - this.transportError = transportError; - } - - get what() { - return this.transportError ?? this.result; - } -} - -export class TypeConditionError extends Error { - constructor(metadata: { selectedType: string; abstractType: string }) { - super( - `"${metadata.selectedType}" is not a valid type of abstract "${metadata.abstractType}" type.` - ); - } -} diff --git a/src/Codegen.ts b/src/Codegen.ts deleted file mode 100644 index 70c1bdf..0000000 --- a/src/Codegen.ts +++ /dev/null @@ -1,935 +0,0 @@ -import { - GraphQLSchema, - GraphQLObjectType, - GraphQLScalarType, - GraphQLField, - isListType, - isNonNullType, - GraphQLEnumType, - GraphQLInterfaceType, - GraphQLArgument, - GraphQLInputObjectType, - GraphQLNonNull, - GraphQLList, - GraphQLEnumValue, - GraphQLInputField, - GraphQLUnionType, - GraphQLInputType, - GraphQLOutputType, - printSchema, -} from "graphql"; -import prettier from "prettier"; -import SHA from "jssha"; - -export interface CodegenOptions { - readonly schema: GraphQLSchema; - readonly client?: { name: string; version?: string }; - readonly mutableFields?: boolean; - readonly modulePath?: string; -} - -export class Codegen { - public readonly schema: GraphQLSchema; - public readonly modulePath: string; - - private static readonly ENUM_VALUE_MAP = "_ENUM_VALUES"; - - constructor(private readonly options: CodegenOptions) { - this.schema = options.schema; - this.modulePath = options.modulePath ?? "@timkendall/tql"; - } - - private get imports() { - return [ - ` - import { - NamedType, - Argument, - Field, - InlineFragment, - Operation, - Selection, - SelectionSet, - Variable, - Executor, - Client, - TypeConditionError, - ExecutionError, - } from '${this.modulePath}' - `, - ]; - } - - private get version() { - return `export const VERSION = "${ - this.options.client?.version ?? "unversioned" - }"`; - } - - private get schemaSha() { - return `export const SCHEMA_SHA = "${computeSha( - printSchema(this.schema) - )}"`; - } - - private get query() { - const type = this.schema.getQueryType(); - - return type - ? ` - export const query = >( - name: string, - select: (t: typeof ${type.name}) => T - ): Operation> => new Operation(name, "query", new SelectionSet(select(${type.name}))) - ` - : ""; - } - - private get mutation() { - const type = this.schema.getMutationType(); - - return type - ? ` - export const mutation = >( - name: string, - select: (t: typeof ${type.name}) => T - ): Operation> => new Operation(name, "mutation", new SelectionSet(select(${type.name}))) - ` - : ""; - } - - private get subscription() { - const type = this.schema.getSubscriptionType(); - - return type - ? ` - export const subscription = >( - name: string, - select: (t: typeof ${type.name}) => T - ): Operation> => new Operation(name, "subscription", new SelectionSet(select(${type}))) - ` - : ""; - } - - private get client() { - const queryType = this.schema.getQueryType(); - const mutationType = this.schema.getMutationType(); - const subscriptionType = this.schema.getSubscriptionType(); - - const hasQuery = Boolean(queryType); - const hasMutation = Boolean(mutationType); - const hasSubscription = Boolean(subscriptionType); - - return ` - export class ${this.options.client!.name} implements Client { - public static readonly VERSION = VERSION - public static readonly SCHEMA_SHA = SCHEMA_SHA - - constructor(public readonly executor: Executor) {} - - ${ - hasQuery - ? ` - public readonly query = { - ${Object.values(this.schema.getQueryType()!.getFields()) - .map((field) => - renderClientRootField("query", queryType!.name, field) - ) - .join("\n")} - } - ` - : "" - } - - ${ - hasMutation - ? ` - public readonly mutate = { - ${Object.values(this.schema.getMutationType()!.getFields()) - .map((field) => - renderClientRootField("mutation", mutationType!.name, field) - ) - .join("\n")} - } - ` - : "" - } - - ${ - hasSubscription - ? ` - public readonly subscribe = { - ${Object.values(this.schema.getSubscriptionType()!.getFields()) - .map((field) => - renderClientRootField("subscription", subscriptionType!.name, field) - ) - .join("\n")} - } - ` - : "" - } - } - `; - } - - private get enumMap() { - const enums = Object.values(this.schema.getTypeMap()) - .filter((type) => type instanceof GraphQLEnumType) - .flatMap((type) => (type as GraphQLEnumType).getValues()) - .map((enumValue) => enumValue.value); - - const deduplicated = new Set(enums); - - return ` - const ${Codegen.ENUM_VALUE_MAP} = { - ${Array.from(deduplicated) - .map((value) => `${value}: true`) - .join(",\n")} - } as const - `; - } - - public render(): string { - const types = Object.values(this.schema.getTypeMap()).filter( - ({ name }) => !name.startsWith("__") - ); // @note filter internal types - - const enums = types - .filter((type) => type instanceof GraphQLEnumType) - .map((type) => this.enumType(type as GraphQLEnumType)); - - const interfaces = types - .filter((type) => type instanceof GraphQLInputObjectType) - .map((type) => this.inputObjectType(type as GraphQLInputObjectType)); - - const unions = types - .filter((type) => type instanceof GraphQLUnionType) - .map((type) => this.unionType(type as GraphQLUnionType)); - - const consts = types - .filter( - (type) => - type instanceof GraphQLInterfaceType || - type instanceof GraphQLObjectType - ) - .map((type) => { - if (type instanceof GraphQLInterfaceType) { - return this.interfaceType(type); - } else if (type instanceof GraphQLObjectType) { - return this.objectType(type); - } else { - return ""; - } - }); - - const text = [ - ...this.imports, - this.version, - this.schemaSha, - this.enumMap, - ...enums, - ...interfaces, - ...unions, - ...consts, - this.query, - this.mutation, - this.subscription, - this.options.client && this.client, - ]; - - return prettier.format(text.join("\n\n"), { parser: "typescript" }); - } - - private enumType(type: GraphQLEnumType): string { - const values = type.getValues(); - - const renderMember = (enumValue: GraphQLEnumValue): string => { - return `${enumValue.name} = "${enumValue.value}"`; - }; - - return ` - export enum ${type.name} { - ${values.map(renderMember).join(",\n")} - } - `; - } - - private interfaceType(type: GraphQLInterfaceType): string { - const fields = Object.values(type.getFields()); - - // @note Get all implementors of this interface - const implementations = this.schema - .getPossibleTypes(type) - .map((type) => type.name); - - return ` - export interface I${type.name} { - ${this.options.mutableFields ? "" : "readonly"} __typename: string - ${fields - .map( - (field) => - (this.options.mutableFields ? "" : "readonly ") + - renderInterfaceField(field) - ) - .join("\n")} - } - - interface ${type.name}Selector { - readonly __typename: () => Field<"__typename"> - - ${fields.map((field) => this._fieldSignature(field)).join("\n")} - - readonly on: , F extends ${implementations - .map((name) => `"${name}"`) - .join(" | ")}>( - type: F, - select: (t: ${renderConditionalSelectorArgument( - implementations.map((name) => name) - )}) => T - ) => InlineFragment, SelectionSet> - } - - export const ${type.name}: ${type.name}Selector = { - __typename: () => new Field("__typename"), - - ${fields.map((field) => this.field(field)).join("\n")} - - on: ( - type, - select, - ) => { - switch(type) { - ${implementations - .map( - (name) => ` - case "${name}": { - return new InlineFragment( - new NamedType("${name}") as any, - new SelectionSet(select(${name} as any)), - ) - } - ` - ) - .join("\n")} - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "${type.name}", - }) - } - }, - } - `; - } - - private unionType(type: GraphQLUnionType): string { - // @note Get all implementors of this union - const implementations = this.schema - .getPossibleTypes(type) - .map((type) => type.name); - - return ` - type ${"I" + type.name} = ${implementations - .map((type) => `I${type}`) - .join(" | ")} - - export const is${ - type.name - } = (object: Record): object is Partial => { - return object.__typename === "${type.name}"; - }; - - interface ${type.name}Selector { - readonly __typename: () => Field<"__typename"> - - readonly on: , F extends ${implementations - .map((name) => `"${name}"`) - .join(" | ")}>( - type: F, - select: (t: ${renderConditionalSelectorArgument( - implementations.map((name) => name) - )}) => T - ) => InlineFragment name) - )}>, SelectionSet> - } - - export const ${type.name}: ${type.name}Selector = { - __typename: () => new Field("__typename"), - - on: ( - type, - select, - ) => { - switch(type) { - ${implementations - .map( - (name) => ` - case "${name}": { - return new InlineFragment( - new NamedType("${name}") as any, - new SelectionSet(select(${name} as any)), - ) - } - ` - ) - .join("\n")} - default: - throw new TypeConditionError({ - selectedType: type, - abstractType: "${type.name}", - }) - } - }, - } - `; - } - - private objectType(type: GraphQLObjectType): string { - const fields = Object.values(type.getFields()); - - const interfaces = type.getInterfaces(); - - if (interfaces.length > 0) { - // @note TypeScript only requires new fields to be defined on interface extendors - const interfaceFields = interfaces.flatMap((i) => - Object.values(i.getFields()).map((field) => field.name) - ); - const uncommonFields = fields.filter( - (field) => !interfaceFields.includes(field.name) - ); - - return ` - export interface I${type.name} extends ${interfaces - .map((i) => "I" + i.name) - .join(", ")} { - ${this.options.mutableFields ? "" : "readonly"} __typename: "${ - type.name - }" - ${uncommonFields - .map( - (field) => - (this.options.mutableFields ? "" : "readonly ") + - renderInterfaceField(field) - ) - .join("\n")} - } - - interface ${type.name}Selector { - readonly __typename: () => Field<"__typename"> - - ${fields.map((field) => this._fieldSignature(field)).join("\n")} - } - - export const is${ - type.name - } = (object: Record): object is Partial => { - return object.__typename === "${type.name}"; - }; - - export const ${type.name}: ${type.name}Selector = { - __typename: () => new Field("__typename"), - - ${fields.map((field) => this.field(field)).join("\n")} - } - `; - } else { - return ` - export interface I${type.name} { - ${this.options.mutableFields ? "" : "readonly"} __typename: "${ - type.name - }" - ${fields - .map( - (field) => - (this.options.mutableFields ? "" : "readonly ") + - renderInterfaceField(field) - ) - .join("\n")} - } - - interface ${type.name}Selector { - readonly __typename: () => Field<"__typename"> - - ${fields.map((field) => this._fieldSignature(field)).join("\n")} - } - - export const ${type.name}: ${type.name}Selector = { - __typename: () => new Field("__typename"), - - ${fields.map((field) => this.field(field)).join("\n")} - } - `; - } - } - - private inputObjectType(type: GraphQLInputObjectType): string { - const fields = Object.values(type.getFields()); - - return ` - export interface ${type.name} { - ${fields - .map( - (field) => - (this.options.mutableFields ? "" : "readonly ") + - this.inputField(field) - ) - .join("\n")} - } - `; - } - - private inputField(inputField: GraphQLInputField): string { - const isList = isListType(inputField.type); - const isNonNull = isNonNullType(inputField.type); - const baseType = getBaseInputType(inputField.type); - - let tsType: string; - - if (baseType instanceof GraphQLScalarType) { - tsType = toPrimitive(baseType); - } else if ( - baseType instanceof GraphQLEnumType || - baseType instanceof GraphQLInputObjectType - ) { - tsType = baseType.name; - } else { - throw new Error("Unable to render inputField!"); - } - - return [ - inputField.name, - isNonNull ? ":" : "?:", - " ", - tsType, - isList ? "[]" : "", - ].join(""); - } - - private _fieldSignature(field: GraphQLField): string { - const { name, args, type } = field; - - const isList = - type instanceof GraphQLList || - (type instanceof GraphQLNonNull && type.ofType instanceof GraphQLList); - const isNonNull = type instanceof GraphQLNonNull; - const baseType = getBaseOutputType(type); - - const jsDocComments = [ - field.description && `@description ${field.description}`, - field.deprecationReason && `@deprecated ${field.deprecationReason}`, - ].filter(Boolean); - - const jsDocComment = - jsDocComments.length > 0 - ? ` - /** - ${jsDocComments.map((comment) => "* " + comment).join("\n")} - */ - ` - : ""; - - if ( - baseType instanceof GraphQLScalarType || - baseType instanceof GraphQLEnumType - ) { - const fieldType = - baseType instanceof GraphQLScalarType - ? toPrimitive(baseType) - : baseType.name; - - return args.length > 0 - ? `${jsDocComment}\n readonly ${name}: (variables: { ${args - .map(renderVariable) - .join(", ")} }) => Field<"${name}", [ ${args - .map(renderArgument) - .join(", ")} ]>` - : `${jsDocComment}\n readonly ${name}: () => Field<"${name}">`; - } else { - // @todo restrict allowed Field types - return args.length > 0 - ? ` - ${jsDocComment} - readonly ${name}: >( - variables: { ${args.map(renderVariable).join(", ")} }, - select: (t: ${baseType.toString()}Selector) => T - ) => Field<"${name}", [ ${args - .map(renderArgument) - .join(", ")} ], SelectionSet>, - ` - : ` - ${jsDocComment} - readonly ${name}: >( - select: (t: ${baseType.toString()}Selector) => T - ) => Field<"${name}", never, SelectionSet>, - `; - } - } - - private field(field: GraphQLField): string { - const { name, args, type } = field; - - const baseType = getBaseOutputType(type); - - const jsDocComments = [ - field.description && `@description ${field.description}`, - field.deprecationReason && `@deprecated ${field.deprecationReason}`, - ].filter(Boolean); - - const jsDocComment = - jsDocComments.length > 0 - ? ` - /** - ${jsDocComments.map((comment) => "* " + comment).join("\n")} - */ - ` - : ""; - - if ( - baseType instanceof GraphQLScalarType || - baseType instanceof GraphQLEnumType - ) { - // @todo render arguments correctly - return args.length > 0 - ? jsDocComment.concat(`${name}: (variables) => new Field("${name}"),`) - : jsDocComment.concat(`${name}: () => new Field("${name}"),`); - } else { - const renderArgument = (arg: GraphQLArgument): string => { - // @note Janky enum value support - return `new Argument("${arg.name}", variables.${arg.name}, ${Codegen.ENUM_VALUE_MAP})`; - }; - - // @todo restrict allowed Field types - return args.length > 0 - ? ` - ${jsDocComment} - ${name}:( - variables, - select, - ) => new Field("${name}", [ ${args - .map(renderArgument) - .join(", ")} ], new SelectionSet(select(${baseType.toString()}))), - ` - : ` - ${jsDocComment} - ${name}: ( - select, - ) => new Field("${name}", undefined as never, new SelectionSet(select(${baseType.toString()}))), - `; - } - } -} - -function getBaseOutputType(type: GraphQLOutputType): GraphQLOutputType { - if (type instanceof GraphQLNonNull) { - return getBaseOutputType(type.ofType); - } else if (type instanceof GraphQLList) { - return getBaseOutputType(type.ofType); - } else { - return type; - } -} - -function getBaseInputType(type: GraphQLInputType): GraphQLInputType { - if (type instanceof GraphQLNonNull) { - return getBaseInputType(type.ofType); - } else if (type instanceof GraphQLList) { - return getBaseInputType(type.ofType); - } else { - return type; - } -} - -const toPrimitive = ( - scalar: GraphQLScalarType -): "number" | "string" | "boolean" | "unknown" => { - switch (scalar.name) { - case "ID": - case "String": - return "string"; - case "Boolean": - return "boolean"; - case "Int": - case "Float": - return "number"; - default: - return "unknown"; - } -}; - -const unwrapResult = (fieldName: string) => ` - if (result.errors) { - throw new ExecutionError({ name: '${fieldName}', result }) - } else if (result.data) { - return result.data.${fieldName} - } else { - throw new ExecutionError({ name: '${fieldName}', result }) - } -`; - -const renderClientRootField = ( - rootOp: "query" | "mutation" | "subscription", - rootType: string, - field: GraphQLField -): string => { - const baseType = getBaseOutputType(field.type); - - const jsDocComments = [ - field.description && `@description ${field.description}`, - field.deprecationReason && `@deprecated ${field.deprecationReason}`, - ].filter(Boolean); - - const jsDocComment = - jsDocComments.length > 0 - ? ` - /** - ${jsDocComments.map((comment) => "* " + comment).join("\n")} - */ - ` - : ""; - - if ( - baseType instanceof GraphQLScalarType || - baseType instanceof GraphQLEnumType - ) { - return field.args.length > 0 - ? ` - ${jsDocComment} - ${field.name}: async ( - variables: { ${field.args.map(renderVariables).join(", ")} }, - ) => { - const result = await this.executor.execute ]>>>( - new Operation( - "${field.name}", - "${rootOp}", - new SelectionSet([ - ${rootType}.${field.name}( - variables, - ), - ]), - ), - ).catch((error: any) => { - throw new ExecutionError({ name: '${ - field.name - }', transportError: error }) - }) - - ${unwrapResult(field.name)} - }, - ` - : ` - ${jsDocComment} - ${field.name}: async ( - ) => { - const result = await this.executor.execute ]>>>( - new Operation( - "${field.name}", - "${rootType.toLowerCase()}", - new SelectionSet([ - ${rootType}.${field.name}(), - ]), - ) - ).catch((error: any) => { - throw new ExecutionError({ name: '${ - field.name - }', transportError: error }) - }) - - ${unwrapResult(field.name)} - }, - `; - } else { - return field.args.length > 0 - ? ` - ${jsDocComment} - ${field.name}: async >( - variables: { ${field.args.map(renderVariables).join(", ")} }, - select: (t: ${baseType.toString()}Selector) => T - ) => { - const result = await this.executor.execute> ]>>>( - new Operation( - "${field.name}", - "${rootOp}", - new SelectionSet([ - ${rootType}.${field.name}( - variables, - select, - ), - ]), - ), - ).catch((error: any) => { - throw new ExecutionError({ name: '${field.name}', transportError: error }) - }) - - ${unwrapResult(field.name)} - }, - ` - : ` - ${jsDocComment} - ${field.name}: async >( - select: (t: ${baseType.toString()}Selector) => T - ) => { - const result = await this.executor.execute> ]>>>( - new Operation( - "${field.name}", - "${rootType.toLowerCase()}", - new SelectionSet([ - ${rootType}.${field.name}(select), - ]), - ) - ).catch((error: any) => { - throw new ExecutionError({ name: '${ - field.name - }', transportError: error }) - }) - - ${unwrapResult(field.name)} - }, - `; - } -}; - -const renderInterfaceField = ( - field: GraphQLField, - mutable: boolean = false -): string => { - const isList = - field.type instanceof GraphQLList || - (field.type instanceof GraphQLNonNull && - field.type.ofType instanceof GraphQLList); - const isNonNull = field.type instanceof GraphQLNonNull; - const baseType = getBaseOutputType(field.type); - - if (baseType instanceof GraphQLScalarType) { - if (mutable) { - return ( - `${field.name}: ${toPrimitive(baseType)}` + - (isList ? "[]" : "") + - (isNonNull ? "" : " | null") - ); - } else { - return ( - `${field.name}: ${ - isList - ? `ReadonlyArray<${toPrimitive(baseType)}>` - : `${toPrimitive(baseType)}` - }` + (isNonNull ? "" : " | null") - ); - } - } else if (baseType instanceof GraphQLEnumType) { - if (mutable) { - return ( - `${field.name}: ${baseType.name}` + - (isList ? "[]" : "") + - (isNonNull ? "" : " | null") - ); - } else { - return ( - `${field.name}: ${ - isList ? `ReadonlyArray<${baseType.name}>` : `${baseType.name}` - }` + (isNonNull ? "" : " | null") - ); - } - } else if ( - baseType instanceof GraphQLInterfaceType || - baseType instanceof GraphQLUnionType || - baseType instanceof GraphQLObjectType - ) { - if (mutable) { - return ( - `${field.name}: I${baseType.name}` + - (isList ? "[]" : "") + - (isNonNull ? "" : " | null") - ); - } else { - return ( - `${field.name}: ${ - isList ? `ReadonlyArray` : `I${baseType.name}` - }` + (isNonNull ? "" : " | null") - ); - } - } else { - throw new Error("Unable to render interface field."); - } -}; - -// ex. F extends "Human" ? HumanSelector : DroidSelector -const renderConditionalSelectorArgument = (types: string[]) => { - const [first, ...rest] = types; - - if (rest.length === 0) { - return `${first}Selector`; - } else { - return types - .map((t) => `F extends "${t}" ? ${t}Selector : `) - .join("") - .concat(" never"); - } -}; - -const renderConditionalNamedType = (types: string[]) => { - const [first, ...rest] = types; - - if (rest.length === 0) { - return `I${first}`; - } else { - return types - .map((t) => `F extends "${t}" ? I${t} : `) - .join("") - .concat(" never"); - } -}; - -const renderVariables = (arg: GraphQLArgument): string => { - return arg instanceof GraphQLNonNull - ? `${arg.name}: ${renderInputType(arg.type)}` - : `${arg.name}?: ${renderInputType(arg.type)}`; -}; - -const renderVariable = (arg: GraphQLArgument): string => { - return arg instanceof GraphQLNonNull - ? `${arg.name}: Variable<"${arg.name}"> | ${renderInputType(arg.type)}` - : `${arg.name}?: Variable<"${arg.name}"> | ${renderInputType(arg.type)}`; -}; - -const renderArgument = (arg: GraphQLArgument): string => { - const _base = getBaseInputType(arg.type); - - // @note Janky enum value support - return _base instanceof GraphQLEnumType - ? `Argument<"${arg.name}", Variable<"${arg.name}"> | ${getBaseInputType( - arg.type - ).toString()}>` - : `Argument<"${arg.name}", Variable<"${arg.name}"> | ${renderInputType( - arg.type - )}>`; -}; - -const renderInputType = (type: GraphQLInputType): string => { - const _base = getBaseInputType(type); - - if (_base instanceof GraphQLScalarType) { - return toPrimitive(_base); - } else if ( - _base instanceof GraphQLEnumType || - _base instanceof GraphQLInputObjectType - ) { - return _base.name; - } else { - throw new Error("Unable to render inputType."); - } -}; - -export const computeSha = (typeDefs: string): string => { - const sha = new SHA("SHA-256", "TEXT", { encoding: "UTF8" }); - sha.update(typeDefs); - return sha.getHash("HEX").substring(0, 7); -}; diff --git a/src/Operation.ts b/src/Operation.ts deleted file mode 100644 index 4a255ad..0000000 --- a/src/Operation.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { - FieldNode, - OperationDefinitionNode, - SelectionSetNode, - print, - VariableDefinitionNode, - VariableNode, - ArgumentNode, - NonNullTypeNode, - ListTypeNode, - NamedTypeNode, - InlineFragmentNode, -} from "graphql"; -import SHA256 from "jssha/dist/sha256"; - -import { - argumentOf, - namedTypeOf, - variableOf, - valueNodeOf, - inlineFragmentOf, - fieldOf, - selectionSetOf, - operationOf, - variableDefinitionOf, - listTypeOf, - nonNullTypeOf, - documentOf, -} from "./AST"; - -export class Operation> { - constructor( - public readonly name: string, - public readonly operation: "query" | "mutation" | "subscription", - // public readonly directives: Directive[] - // public readonly variableDefinitions: Variable[] - public readonly selectionSet: TSelectionSet - ) {} - - toString() { - return print(this.ast); - } - - toDocument() { - return documentOf([this.ast]); - } - - get sha256() { - const sha = new SHA256("SHA-256", "TEXT", { encoding: "UTF8" }); - sha.update(this.toString()); - return sha.getHash("HEX"); - } - - get ast(): OperationDefinitionNode { - return operationOf({ - operation: this.operation, - name: this.name, - selectionSet: this.selectionSet.ast, - variables: [ - /* @todo */ - ], - directives: [ - /* @todo */ - ], - }); - } -} - -export class SelectionSet> { - constructor(public readonly selections: T) {} - - get ast(): SelectionSetNode { - return selectionSetOf(this.selections.map((s) => s.ast)); - } -} - -export type Selection = Field | InlineFragment; - -export class InlineFragment< - TypeCondition extends Type, - TSelectionSet extends SelectionSet -> { - constructor( - public readonly typeCondition: TypeCondition, - public readonly selectionSet: TSelectionSet - ) {} - - get ast(): InlineFragmentNode { - return inlineFragmentOf({ - typeCondition: getBaseType(this.typeCondition).ast, - selectionSet: this.selectionSet.ast, - }); - } -} - -export class Field< - Name extends string, - Arguments extends Array> | never = never, - TSelectionSet extends SelectionSet | never = never -> { - constructor( - public readonly name: Name, - public readonly args?: Arguments, - public readonly selectionSet?: TSelectionSet - ) {} - - get ast(): FieldNode { - return fieldOf({ - name: this.name, - // @note Filter out args with `undefined` values so they are not included in the operation - args: this.args - ?.filter((arg) => Boolean(arg.value)) - .map((arg) => arg.ast), - directives: [ - /* @todo */ - ], - selectionSet: this.selectionSet?.ast, - }); - } -} - -export type Value = Variable | Primitive; - -export class Argument { - constructor( - public readonly name: Name, - public readonly value?: Value, - // @note Janky enum support - public readonly _enumValues?: Record - ) {} - - get ast(): ArgumentNode { - return argumentOf({ - name: this.name, - value: - this.value instanceof Variable - ? this.value.ast - : valueNodeOf( - this.value, - this._enumValues ?? - { - /* empty */ - } - ), - }); - } -} - -export class Variable { - constructor(public readonly name: Name) {} - - get ast(): VariableNode { - return variableOf({ name: this.name }); - } -} - -export class VariableDefinition, T extends Type> { - constructor(public readonly variable: V, public readonly type: T) {} - - get ast(): VariableDefinitionNode { - return variableDefinitionOf({ - variable: this.variable.ast, - type: this.type.ast, - }); - } -} - -export type Type = NamedType | ListType | NonNullType; - -export function getBaseType(type: Type): NamedType { - if (type instanceof NonNullType) { - return getBaseType(type.type); - } else if (type instanceof ListType) { - return getBaseType(type.type); - } else { - return type; - } -} - -/** - * Utility type for parsing the base type from a `Type` - * - * Example: - * type User = NamedType<'User', { id: string}> - * - * type A = BaseType - * type B = BaseType> - * type C = BaseType> - * type D = BaseType>> - * type E = BaseType>>> - */ -export type BaseType = T extends NamedType - ? Type - : T extends NonNullType - ? BaseType - : T extends ListType - ? BaseType - : never; - -export class NonNullType | ListType> { - constructor(public readonly type: Type) {} - - get ast(): NonNullTypeNode { - return nonNullTypeOf({ type: this.type.ast }); - } -} - -export class ListType | NonNullType> { - constructor(public readonly type: Type) {} - - get ast(): ListTypeNode { - return listTypeOf({ type: this.type.ast }); - } -} - -export class NamedType { - constructor(public readonly name: Name) {} - - get ast(): NamedTypeNode { - return namedTypeOf({ name: this.name }); - } -} - -export type Primitive = - | string - | number - | bigint - | boolean - | symbol - | null - | undefined; diff --git a/src/Query.ts b/src/Query.ts deleted file mode 100644 index c4e57e7..0000000 --- a/src/Query.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { ISelector } from "./Selector"; - -// WIP - -// export const operation = >( -// type: "query" | "mutation" | "subscription", -// selector: S -// ) => >( -// name: string, -// select: (t: S) => T -// ): Operation> => -// new Operation(name, type, new SelectionSet(select(selector))); - -// ``` -// // or new Query({ ... }) -// const operation = query({ -// name: 'Example', -// variables: { -// id: t.string, -// }, -// selection: (t, v) => [ -// t.user({ id: v.id }, t => [ -// t.id, -// t.name, -// t.friends(t => [ -// t.id, -// t.firstName, -// ]) -// ]) -// ] -// extensions: [] -// }) -// ``` - -export interface QueryConfig { - name?: string; - variables?: Record; - selection: ISelector; - // extensions?: Array -} - -export class Query { - // ast?: DocumentNode or OperationDefinitionNode - - constructor(config: QueryConfig) {} - - // toString() -} diff --git a/src/Result.ts b/src/Result.ts index a6608fc..186d8bd 100644 --- a/src/Result.ts +++ b/src/Result.ts @@ -1,51 +1,97 @@ -import { +import { L, Test } from "ts-toolbelt"; + +import type { Primitive, NamedType, SelectionSet, Selection, Field, InlineFragment, -} from "./Operation"; + FragmentSpread, +} from "./AST"; -type FilterFragments< - T extends Array | InlineFragment> -> = Array< - T[number] extends infer U - ? U extends Field - ? T[number] +// @note `Result` takes a root `Type` (TS) and `SelectionSet` (GQL) and recursively walks the +// array of `Selection` nodes's (i.e `Field`, `InlineFragment`, or `FragmentSpread` nodes) +// +// @note We are essentially executing an operation at compile-type to derive the shape of the result. +// This means we need the following pieces of data available to our type: +// Schema, FragmentDefinitions, Operations, Root Type* +export type Result< + Schema extends Record, + Parent, + Selected extends SelectionSet> | undefined +> = + // Lists + Parent extends Array | ReadonlyArray + ? ReadonlyArray> + : // Objects + Parent extends Record + ? Selected extends SelectionSet> + ? HasInlineFragment extends Test.Pass + ? SpreadFragments + : { + readonly // @todo cleanup mapped typed field name mapping + [F in Selected["selections"][number] as F extends Field< + infer Name, + any, + any + > + ? Name + : never]: F extends Field + ? Result< + Schema, + /* @note support parameterized fields */ Parent[Name] extends ( + variables: any + ) => infer T + ? T + : Parent[Name] /*Parent[Name]*/, + SS + > + : never; + } : never + : // Scalars + Parent; + +export type SpreadFragments< + Schema extends Record, + Selected extends SelectionSet> +> = Selected["selections"][number] extends infer Selection + ? Selection extends InlineFragment + ? SpreadFragment< + Schema, + Selection, + SelectionSet>> // @bug are we are losing inference here since `SelectionSet<[Field<'id'>]>` works? + > : never ->; + : never; -export type Result< - Type, - TSelectionSet extends SelectionSet> -> = Type extends Array | ReadonlyArray - ? T extends Primitive - ? // @note Return scalar array - ReadonlyArray - : // @note Wrap complex object in array - ReadonlyArray> - : { - readonly // @note Build out object from non-fragment field selections - [Key in FilterFragments< - TSelectionSet["selections"] - >[number]["name"]]: Type[Key] extends Primitive - ? Type[Key] - : TSelectionSet["selections"][number] extends infer U - ? U extends Field - ? null extends Type[Key] - ? Result, Selections> | null - : Result - : never - : never; - } & - (TSelectionSet["selections"][number] extends infer U - ? U extends InlineFragment - ? TypeCondition extends NamedType - ? null extends Type - ? Result, SelectionSet> | null - : Result - : {} - : {} - : {}); // @note need to use empty objects to not nuke the left side of our intersection type (&) +export type SpreadFragment< + Schema extends Record, + Fragment extends InlineFragment, + CommonSelection extends SelectionSet>> +> = Fragment extends InlineFragment< + NamedType, + infer SelectionSet +> + ? Merge< + { __typename: Typename }, + Result< + Schema, + Schema[Typename], + MergeSelectionSets + > + > + : never; + +export type MergeSelectionSets< + A extends SelectionSet>, + B extends SelectionSet> +> = SelectionSet>; + +type HasInlineFragment | undefined> = + T extends SelectionSet + ? L.Includes> + : never; + +type Merge = Omit & N; diff --git a/src/Selection.ts b/src/Selection.ts new file mode 100644 index 0000000..4b66e6e --- /dev/null +++ b/src/Selection.ts @@ -0,0 +1,113 @@ +import type { GraphQLSchema } from "graphql/type"; +import { OperationTypeNode, print } from "graphql/language"; +// @note v16+ of graphql-js exposes their own version of a typed DocumentNode +// See https://github.com/dotansimha/graphql-typed-document-node/issues/68 +// +// import type { TypedQueryDocumentNode } from "graphql/utilities"; +import type { TypedDocumentNode } from "@graphql-typed-document-node/core"; + +import type * as AST from "./AST"; +import { + fragmentDefinition, + inlineFragment, + namedType, + selectionSet, + operation, + document, +} from "./AST"; +import { Result } from "./Result"; +import { Variables, buildVariableDefinitions } from "./Variables"; + +type Element = T extends Array ? U : never; + +export class Selection< + Schema extends Record, + RootType extends string /* @todo keyof Schema*/, + T extends ReadonlyArray +> extends Array> { + constructor( + public readonly schema: GraphQLSchema, + public readonly type: RootType, + public readonly selections: T + ) { + super(...(selections as unknown as Element[]) /* seems wrong*/); + } + + toSelectionSet(): AST.SelectionSet { + return selectionSet(this.selections); + } + + toFragment( + name: Name + ): AST.FragmentDefinition< + Name, + AST.NamedType, + AST.SelectionSet + > { + return fragmentDefinition( + name, + namedType(this.type), + selectionSet(this.selections) + ); + } + + toInlineFragment(): AST.InlineFragment< + AST.NamedType, + AST.SelectionSet + > { + return inlineFragment(namedType(this.type), selectionSet(this.selections)); + } + + // toOperation? toDocument? + toQuery(options: { + queryName?: string; + useVariables?: boolean; + dropNullInputValues?: boolean; + }): TypedDocumentNode< + Result>, + Variables> + > { + // @todo statically gate? + if ( + this.type !== "Query" && + this.type !== "Mutation" && + this.type !== "Subscription" + ) { + throw new Error("Cannot convert non-root type to query."); + } + + const op = this.type.toLowerCase() as OperationTypeNode; + const selectionSet = this.toSelectionSet(); + const variableDefinitions = buildVariableDefinitions( + op, + this.schema, + selectionSet + ); + + const operationDefinition = operation( + op, + options.queryName ?? "Anonymous", + selectionSet, + variableDefinitions + ); + + return document([operationDefinition]) as TypedDocumentNode< + Result>, + Variables> + >; + } + + // @todo toRequest (converts to node-fetch API compatible `Request` object) + + toString() { + return print(this.toSelectionSet()); + } +} + +export class TypeConditionError extends Error { + constructor(metadata: { selectedType: string; abstractType: string }) { + super( + `"${metadata.selectedType}" is not a valid type of abstract "${metadata.abstractType}" type.` + ); + } +} diff --git a/src/Selector.ts b/src/Selector.ts deleted file mode 100644 index 3e6dc53..0000000 --- a/src/Selector.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { - Field, - SelectionSet, - Selection, - Argument, - Primitive, -} from "./Operation"; - -export type ISelector = { - // @todo use Paramaters to support variables - [F in keyof T]: T[F] extends Primitive - ? (variables?: Record) => Field - : >( - arg0?: ((selector: ISelector) => S) | Record | never, - arg1?: ((selector: ISelector) => S) | never - ) => Field>; -}; - -export class Selector { - constructor(public readonly select: (t: ISelector) => Array) {} - - toSelectionSet() { - return new SelectionSet(this.select(selector())); - } -} - -export const selector = (): ISelector => - new Proxy(Object.create(null), { - get(target, field) /*: FieldFn*/ { - return function fieldFn(...args: any[]) { - if (args.length === 0) { - return new Field(field); - } else if (typeof args[0] === "function") { - return new Field( - field, - undefined, - new SelectionSet(args[0](selector())) - ); - } else if (typeof args[0] === "object") { - if (typeof args[1] === "function") { - return new Field( - field, - Object.entries(args[0]).map( - ([name, value]) => new Argument(name, value) - ), - new SelectionSet(args[1](selector())) - ); - } else { - return new Field( - field, - Object.entries(args[0]).map( - ([name, value]) => new Argument(name, value) - ) - ); - } - } - - throw new Error(`Unable to derive field function from arguments.`); - }; - }, - }); diff --git a/src/Variables.ts b/src/Variables.ts new file mode 100644 index 0000000..0188977 --- /dev/null +++ b/src/Variables.ts @@ -0,0 +1,106 @@ +import type { GraphQLSchema } from "graphql"; +import { Kind, visitWithTypeInfo, TypeInfo, visit } from "graphql"; +import { O, U } from "ts-toolbelt"; + +import { + SelectionSet, + Selection, + Field, + InlineFragment, + Argument, + Variable, + VariableDefinition, + variable, + variableDefinition, + NamedType, +} from "./AST"; + +export const $ = (name: Name): Variable => + variable(name); + +export const buildVariableDefinitions = >( + op: "query" | "mutation" | "subscription", + schema: GraphQLSchema, + selectionSet: T +): Array> => { + const variableDefinitions: VariableDefinition[] = []; + const typeInfo = new TypeInfo(schema); + const visitor = visitWithTypeInfo(typeInfo, { + [Kind.ARGUMENT]: (argNode) => { + if (isVariable(argNode.value) && typeInfo.getArgument()?.astNode?.type) { + // define the `VariableDefinition` + variableDefinitions.push( + variableDefinition( + argNode.value, + typeInfo.getArgument()?.astNode?.type! + ) + ); + } + }, + }); + + // @todo return from here + visit(selectionSet, visitor); + + return variableDefinitions; +}; + +export const isVariable = (value: any): value is Variable => + typeof value === "object" && value.kind === Kind.VARIABLE; + +// @note Traverse the AST extracting `Argument` nodes w/ values of `Variable`. +// Extract the type the Variable value needs to be against/the Schema. +export type Variables< + Schema extends Record, + RootType extends Record, + S extends SelectionSet> | undefined +> = U.Merge< + undefined extends S + ? {} + : S extends SelectionSet> + ? S["selections"][number] extends infer Selection + ? Selection extends Field + ? O.Merge< + FilterMapArguments, + Variables + > + : Selection extends InlineFragment< + NamedType, + infer FragSelection + > + ? Variables + : {} + : {} + : {} +>; + +// @note filter on `Argument`'s that have values of `Variable` +// @todo replace with actual `Filter` type +type FilterMapArguments< + Type extends Record, + FieldName extends string, + FieldArgs extends Array> | undefined +> = FieldArgs extends Array> + ? ArgValue extends Variable + ? Record> + : {} + : {}; + +type VariableType< + Parent extends Record, + Field extends string, + Arg extends string +> = + // see if the field is parameterized + Parent[Field] extends (variables: any) => any + ? Parameters[0] extends infer U // get the `variables` arg + ? // ensure the "variables" parameter is a Record + // @note too-bad JavaScript doesn't support named arguments + U extends Record + ? // exract the cooresponding type for the argument + VarName extends Arg + ? VarType + : never + : never + : never + : never; diff --git a/src/__tests__/Client.test.ts b/src/__tests__/Client.test.ts deleted file mode 100644 index e1752a1..0000000 --- a/src/__tests__/Client.test.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Operation, SelectionSet, Field } from "../Operation"; - -import { Executor } from "../Client"; - -describe("Executor", () => { - it("supports passing static HTTP headers", async () => { - const fetch = jest.fn().mockResolvedValue({ - json: () => - Promise.resolve({ - data: { test: "yay!" }, - errors: undefined, - }), - }); - - const executor = new Executor({ - uri: "http://localhost:8080", - httpHeaders: { Authentication: "my-token" }, - fetch: fetch as any, - }); - - const result = await executor.execute( - new Operation("foo", "query", new SelectionSet([new Field("test")])) - ); - - expect(fetch).toHaveBeenCalledWith("http://localhost:8080", { - body: '{"operationName":"foo","query":"query foo {\\n test\\n}"}', - headers: { - Authentication: "my-token", - "Content-Type": "application/json", - }, - method: "post", - }); - expect(result).toMatchInlineSnapshot(` - Object { - "data": Object { - "test": "yay!", - }, - "errors": undefined, - } - `); - }); - - it("supports passing dynamoc HTTP headers", async () => { - const fetch = jest.fn().mockResolvedValue({ - json: () => - Promise.resolve({ - data: { test: "yay!" }, - errors: undefined, - }), - }); - - const executor = new Executor({ - uri: "http://localhost:8080", - httpHeaders: () => ({ Authentication: "my-token" }), - fetch: fetch as any, - }); - - const result = await executor.execute( - new Operation("foo", "query", new SelectionSet([new Field("test")])) - ); - - expect(fetch).toHaveBeenCalledWith("http://localhost:8080", { - body: '{"operationName":"foo","query":"query foo {\\n test\\n}"}', - headers: { - Authentication: "my-token", - "Content-Type": "application/json", - }, - method: "post", - }); - expect(result).toMatchInlineSnapshot(` - Object { - "data": Object { - "test": "yay!", - }, - "errors": undefined, - } - `); - }); -}); diff --git a/src/__tests__/Operation.test.ts b/src/__tests__/Operation.test.ts deleted file mode 100644 index a0a1f08..0000000 --- a/src/__tests__/Operation.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { Operation, SelectionSet, Field } from "../Operation"; - -describe("Operation", () => { - it("derives a sha256", () => { - const expected = - "b058a36cc1a91b9d31412246c58e6ed0c83f9d282383dbf65fa53e77c170fb31"; - - const operation = new Operation( - "Test", - "query", - new SelectionSet([new Field("helloWorld")]) - ); - - expect(operation.sha256).toBe(expected); - expect(operation.sha256).toBe(expected); - }); - - it("renders to a string", () => { - const operation = new Operation( - "Test", - "query", - new SelectionSet([new Field("helloWorld")]) - ); - expect(operation.toString()).toMatchInlineSnapshot(` - "query Test { - helloWorld - }" - `); - }); - - it("renders to a DocumentNode (ast)", () => { - const operation = new Operation( - "Test", - "query", - new SelectionSet([new Field("helloWorld")]) - ); - expect(operation.toDocument()).toMatchInlineSnapshot(` - Object { - "definitions": Array [ - Object { - "directives": Array [], - "kind": "OperationDefinition", - "name": Object { - "kind": "Name", - "value": "Test", - }, - "operation": "query", - "selectionSet": Object { - "kind": "SelectionSet", - "selections": Array [ - Object { - "arguments": Array [], - "directives": Array [], - "kind": "Field", - "name": Object { - "kind": "Name", - "value": "helloWorld", - }, - "selectionSet": undefined, - }, - ], - }, - "variableDefinitions": Array [], - }, - ], - "kind": "Document", - } - `); - }); -}); diff --git a/src/__tests__/Selected.test.ts b/src/__tests__/Selected.test.ts new file mode 100644 index 0000000..6b70fd6 --- /dev/null +++ b/src/__tests__/Selected.test.ts @@ -0,0 +1,9 @@ +import { Selection } from "../Selection"; + +describe("Selection", () => { + it.todo("is an Array of Selection AST objects"); + it.todo("converts to a SelectionSet AST object"); + it.todo("converts to an InlineFragment AST object"); + it.todo("converts to a NamedFragment AST object"); + it.todo("converts to a string"); +}); diff --git a/src/__tests__/Selector.test.ts b/src/__tests__/Selector.test.ts deleted file mode 100644 index 884322a..0000000 --- a/src/__tests__/Selector.test.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { print } from "graphql"; - -import { selector, Selector } from "../Selector"; -import { SelectionSet } from "../Operation"; -import { Result } from "../Result"; - -describe("Selector", () => { - describe("type-saftey", () => { - it("supports selecting against an interface", () => { - interface Query { - foo: string; - bar: number; - baz: { - id: string; - }; - } - - const { foo, bar, baz } = selector(); - - const selection = [foo(), bar(), baz((t) => [t.id()])]; - type ExampleResult = Result>; - - const query = print(new SelectionSet(selection).ast); - - expect(query).toMatchInlineSnapshot(` - "{ - foo - bar - baz { - id - } - }" - `); - }); - }); - - describe("class API", () => { - it("supports arbitrarily deep seletions", () => { - const selector = new Selector((t) => [ - t.user({ id: "foo" }, (t) => [t.id()]), - ]); - - const query = print(selector.toSelectionSet().ast); - - expect(query).toMatchInlineSnapshot(` - "{ - user(id: \\"foo\\") { - id - } - }" - `); - }); - }); - - describe("function API", () => { - it("supports arbitrarily deep selections", () => { - const { authors, user } = selector(); - - const selection = [ - authors((t) => [t.name(), t.address((t) => [t.country()])]), - - user({ id: "foo" }, (t) => [t.foo((t) => [t.bar((t) => [t.baz()])])]), - ]; - - const query = print(new SelectionSet(selection).ast); - - expect(query).toMatchInlineSnapshot(` - "{ - authors { - name - address { - country - } - } - user(id: \\"foo\\") { - foo { - bar { - baz - } - } - } - }" - `); - }); - }); -}); diff --git a/src/__tests__/Variables.test.ts b/src/__tests__/Variables.test.ts new file mode 100644 index 0000000..f5ae26d --- /dev/null +++ b/src/__tests__/Variables.test.ts @@ -0,0 +1,81 @@ +import { buildSchema } from "graphql"; + +import { + namedType, + nonNull, + field, + argument, + variable, + selectionSet, + variableDefinition, +} from "../AST"; +import { Selection } from "../Selection"; +import { buildVariableDefinitions } from "../Variables"; + +describe("Variables", () => { + it("builds variable definitions", () => { + const schema = buildSchema( + ` + type Query { + hello(name: String!): String! + } + `, + { noLocation: true } + ); + + const selection = new Selection(schema, "Query", [ + field("hello", [argument("name", variable("name"))]), + ]); + + // @note we need a way to get the input type at runtime + const variableDefinitions = buildVariableDefinitions( + "query", + schema, + selectionSet(selection) + ); + + expect(variableDefinitions).toEqual([ + variableDefinition(variable("name"), nonNull(namedType("String"))), + ]); + }); + + it("infers nested variable definitions", () => { + const schema = buildSchema( + ` + type Query { + viewer: User! + } + + type User { + id: ID! + friends(limit: Int = 10): [User!] + } + `, + { noLocation: true } + ); + + const selection = new Selection(schema, "Query", [ + field( + "viewer", + undefined, + selectionSet([ + field( + "friends", + [argument("limit", variable("friendsLimit"))], + selectionSet([field("id")]) + ), + ]) + ), + ]); + + const variableDefinitions = buildVariableDefinitions( + "query", + schema, + selectionSet(selection) + ); + + expect(variableDefinitions).toEqual([ + variableDefinition(variable("friendsLimit"), nonNull(namedType("Int"))), + ]); + }); +}); diff --git a/src/index.ts b/src/index.ts index 069ef84..a48b146 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,4 @@ export * from "./AST"; -export * from "./Selector"; -export * from "./Operation"; -export * from "./Query"; export * from "./Result"; -export * from "./Client"; -export * from "./Codegen"; +export * from "./Variables"; +export { Selection as SelectionBuilder, TypeConditionError } from "./Selection"; diff --git a/starwars.api.ts b/starwars.api.ts deleted file mode 100644 index 288c41a..0000000 --- a/starwars.api.ts +++ /dev/null @@ -1,1044 +0,0 @@ -import { - NamedType, - Argument, - Value, - Field, - InlineFragment, - Operation, - Selection, - SelectionSet, - Variable, - Executor, - Client, -} from "./src"; - -export const VERSION = "unversioned"; - -export const SCHEMA_SHA = "4c13c55"; - -export enum Episode { - NEWHOPE = "NEWHOPE", - EMPIRE = "EMPIRE", - JEDI = "JEDI", -} - -export enum LengthUnit { - METER = "METER", - FOOT = "FOOT", - CUBIT = "CUBIT", -} - -export interface ReviewInput { - stars: number; - commentary?: string; - favorite_color?: ColorInput; -} - -export interface ColorInput { - red: number; - green: number; - blue: number; -} - -type ISearchResult = IHuman | IDroid | IStarship; - -interface SearchResultSelector { - __typename: () => Field<"__typename">; - - on: , F extends "Human" | "Droid" | "Starship">( - type: F, - select: ( - t: F extends "Human" - ? HumanSelector - : F extends "Droid" - ? DroidSelector - : F extends "Starship" - ? StarshipSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const SearchResult: SearchResultSelector = { - __typename: () => new Field("__typename"), - - on: (type, select) => { - switch (type) { - case "Human": { - return new InlineFragment( - new NamedType("Human") as any, - new SelectionSet(select(Human as any)) - ); - } - - case "Droid": { - return new InlineFragment( - new NamedType("Droid") as any, - new SelectionSet(select(Droid as any)) - ); - } - - case "Starship": { - return new InlineFragment( - new NamedType("Starship") as any, - new SelectionSet(select(Starship as any)) - ); - } - - default: - throw new Error("Unknown type!"); - } - }, -}; - -export interface IQuery { - hero: ICharacter; - reviews: IReview[]; - search: ISearchResult[]; - character: ICharacter; - droid: IDroid; - human: IHuman; - starship: IStarship; -} - -interface QuerySelector { - __typename: () => Field<"__typename">; - - hero: >( - variables: { episode?: Variable<"episode"> | Episode }, - select: (t: CharacterSelector) => T - ) => Field< - "hero", - [Argument<"episode", Variable<"episode"> | Episode>], - SelectionSet - >; - - reviews: >( - variables: { episode?: Variable<"episode"> | Episode }, - select: (t: ReviewSelector) => T - ) => Field< - "reviews", - [Argument<"episode", Variable<"episode"> | Episode>], - SelectionSet - >; - - search: >( - variables: { text?: Variable<"text"> | string }, - select: (t: SearchResultSelector) => T - ) => Field< - "search", - [Argument<"text", Variable<"text"> | string>], - SelectionSet - >; - - character: >( - variables: { id?: Variable<"id"> | string }, - select: (t: CharacterSelector) => T - ) => Field< - "character", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - droid: >( - variables: { id?: Variable<"id"> | string }, - select: (t: DroidSelector) => T - ) => Field< - "droid", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - human: >( - variables: { id?: Variable<"id"> | string }, - select: (t: HumanSelector) => T - ) => Field< - "human", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; - - starship: >( - variables: { id?: Variable<"id"> | string }, - select: (t: StarshipSelector) => T - ) => Field< - "starship", - [Argument<"id", Variable<"id"> | string>], - SelectionSet - >; -} - -export const Query: QuerySelector = { - __typename: () => new Field("__typename"), - - hero: (variables, select) => - new Field( - "hero", - [new Argument("episode", variables.episode, Episode)], - new SelectionSet(select(Character)) - ), - - reviews: (variables, select) => - new Field( - "reviews", - [new Argument("episode", variables.episode, Episode)], - new SelectionSet(select(Review)) - ), - - search: (variables, select) => - new Field( - "search", - [new Argument("text", variables.text)], - new SelectionSet(select(SearchResult)) - ), - - character: (variables, select) => - new Field( - "character", - [new Argument("id", variables.id)], - new SelectionSet(select(Character)) - ), - - droid: (variables, select) => - new Field( - "droid", - [new Argument("id", variables.id)], - new SelectionSet(select(Droid)) - ), - - human: (variables, select) => - new Field( - "human", - [new Argument("id", variables.id)], - new SelectionSet(select(Human)) - ), - - starship: (variables, select) => - new Field( - "starship", - [new Argument("id", variables.id)], - new SelectionSet(select(Starship)) - ), -}; - -export interface IMutation { - createReview: IReview; -} - -interface MutationSelector { - __typename: () => Field<"__typename">; - - createReview: >( - variables: { - episode?: Variable<"episode"> | Episode; - review?: Variable<"review"> | ReviewInput; - }, - select: (t: ReviewSelector) => T - ) => Field< - "createReview", - [ - Argument<"episode", Variable<"episode"> | Episode>, - Argument<"review", Variable<"review"> | ReviewInput> - ], - SelectionSet - >; -} - -export const Mutation: MutationSelector = { - __typename: () => new Field("__typename"), - - createReview: (variables, select) => - new Field( - "createReview", - [ - new Argument("episode", variables.episode, Episode), - new Argument("review", variables.review), - ], - new SelectionSet(select(Review)) - ), -}; - -export interface ICharacter { - __typename: string; - id: string; - name: string; - friends: ICharacter[]; - friendsConnection: IFriendsConnection; - appearsIn: Episode[]; -} - -interface CharacterSelector { - __typename: () => Field<"__typename">; - - /** - * @description The ID of the character - */ - - id: () => Field<"id">; - - /** - * @description The name of the character - */ - - name: () => Field<"name">; - - /** - * @description The friends of the character, or an empty list if they have none - */ - - friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the character exposed as a connection with edges - */ - - friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this character appears in - */ - - appearsIn: () => Field<"appearsIn">; - - on: , F extends "Human" | "Droid">( - type: F, - select: ( - t: F extends "Human" - ? HumanSelector - : F extends "Droid" - ? DroidSelector - : never - ) => T - ) => InlineFragment, SelectionSet>; -} - -export const Character: CharacterSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the character - */ - id: () => new Field("id"), - - /** - * @description The name of the character - */ - name: () => new Field("name"), - - /** - * @description The friends of the character, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the character exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first), - new Argument("after", variables.after), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this character appears in - */ - appearsIn: () => new Field("appearsIn"), - - on: (type, select) => { - switch (type) { - case "Human": { - return new InlineFragment( - new NamedType("Human") as any, - new SelectionSet(select(Human as any)) - ); - } - - case "Droid": { - return new InlineFragment( - new NamedType("Droid") as any, - new SelectionSet(select(Droid as any)) - ); - } - - default: - throw new Error("Unknown type!"); - } - }, -}; - -export interface IHuman extends ICharacter { - __typename: "Human"; - homePlanet: string; - height: number; - mass: number; - starships: IStarship[]; -} - -interface HumanSelector { - __typename: () => Field<"__typename">; - - /** - * @description The ID of the human - */ - - id: () => Field<"id">; - - /** - * @description What this human calls themselves - */ - - name: () => Field<"name">; - - /** - * @description The home planet of the human, or null if unknown - */ - - homePlanet: () => Field<"homePlanet">; - - /** - * @description Height in the preferred unit, default is meters - */ - - height: (variables: { unit: unknown }) => Field<"height", [/* @todo */]>; - - /** - * @description Mass in kilograms, or null if unknown - * @deprecated Weight is a sensitive subject! - */ - - mass: () => Field<"mass">; - - /** - * @description This human's friends, or an empty list if they have none - */ - - friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the human exposed as a connection with edges - */ - - friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this human appears in - */ - - appearsIn: () => Field<"appearsIn">; - - /** - * @description A list of starships this person has piloted, or an empty list if none - */ - - starships: >( - select: (t: StarshipSelector) => T - ) => Field<"starships", never, SelectionSet>; -} - -export const isHuman = ( - object: Record -): object is Partial => { - return object.__typename === "Human"; -}; - -export const Human: HumanSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the human - */ - id: () => new Field("id"), - - /** - * @description What this human calls themselves - */ - name: () => new Field("name"), - - /** - * @description The home planet of the human, or null if unknown - */ - homePlanet: () => new Field("homePlanet"), - - /** - * @description Height in the preferred unit, default is meters - */ - height: (variables) => new Field("height"), - - /** - * @description Mass in kilograms, or null if unknown - * @deprecated Weight is a sensitive subject! - */ - mass: () => new Field("mass"), - - /** - * @description This human's friends, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the human exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first), - new Argument("after", variables.after), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this human appears in - */ - appearsIn: () => new Field("appearsIn"), - - /** - * @description A list of starships this person has piloted, or an empty list if none - */ - - starships: (select) => - new Field( - "starships", - undefined as never, - new SelectionSet(select(Starship)) - ), -}; - -export interface IDroid extends ICharacter { - __typename: "Droid"; - primaryFunction: string; -} - -interface DroidSelector { - __typename: () => Field<"__typename">; - - /** - * @description The ID of the droid - */ - - id: () => Field<"id">; - - /** - * @description What others call this droid - */ - - name: () => Field<"name">; - - /** - * @description This droid's friends, or an empty list if they have none - */ - - friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description The friends of the droid exposed as a connection with edges - */ - - friendsConnection: >( - variables: { - first?: Variable<"first"> | number; - after?: Variable<"after"> | string; - }, - select: (t: FriendsConnectionSelector) => T - ) => Field< - "friendsConnection", - [ - Argument<"first", Variable<"first"> | number>, - Argument<"after", Variable<"after"> | string> - ], - SelectionSet - >; - - /** - * @description The movies this droid appears in - */ - - appearsIn: () => Field<"appearsIn">; - - /** - * @description This droid's primary function - */ - - primaryFunction: () => Field<"primaryFunction">; -} - -export const isDroid = ( - object: Record -): object is Partial => { - return object.__typename === "Droid"; -}; - -export const Droid: DroidSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the droid - */ - id: () => new Field("id"), - - /** - * @description What others call this droid - */ - name: () => new Field("name"), - - /** - * @description This droid's friends, or an empty list if they have none - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description The friends of the droid exposed as a connection with edges - */ - - friendsConnection: (variables, select) => - new Field( - "friendsConnection", - [ - new Argument("first", variables.first), - new Argument("after", variables.after), - ], - new SelectionSet(select(FriendsConnection)) - ), - - /** - * @description The movies this droid appears in - */ - appearsIn: () => new Field("appearsIn"), - - /** - * @description This droid's primary function - */ - primaryFunction: () => new Field("primaryFunction"), -}; - -export interface IFriendsConnection { - totalCount: number; - edges: IFriendsEdge[]; - friends: ICharacter[]; - pageInfo: IPageInfo; -} - -interface FriendsConnectionSelector { - __typename: () => Field<"__typename">; - - /** - * @description The total number of friends - */ - - totalCount: () => Field<"totalCount">; - - /** - * @description The edges for each of the character's friends. - */ - - edges: >( - select: (t: FriendsEdgeSelector) => T - ) => Field<"edges", never, SelectionSet>; - - /** - * @description A list of the friends, as a convenience when edges are not needed. - */ - - friends: >( - select: (t: CharacterSelector) => T - ) => Field<"friends", never, SelectionSet>; - - /** - * @description Information for paginating this connection - */ - - pageInfo: >( - select: (t: PageInfoSelector) => T - ) => Field<"pageInfo", never, SelectionSet>; -} - -export const FriendsConnection: FriendsConnectionSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The total number of friends - */ - totalCount: () => new Field("totalCount"), - - /** - * @description The edges for each of the character's friends. - */ - - edges: (select) => - new Field( - "edges", - undefined as never, - new SelectionSet(select(FriendsEdge)) - ), - - /** - * @description A list of the friends, as a convenience when edges are not needed. - */ - - friends: (select) => - new Field( - "friends", - undefined as never, - new SelectionSet(select(Character)) - ), - - /** - * @description Information for paginating this connection - */ - - pageInfo: (select) => - new Field( - "pageInfo", - undefined as never, - new SelectionSet(select(PageInfo)) - ), -}; - -export interface IFriendsEdge { - cursor: string; - node: ICharacter; -} - -interface FriendsEdgeSelector { - __typename: () => Field<"__typename">; - - /** - * @description A cursor used for pagination - */ - - cursor: () => Field<"cursor">; - - /** - * @description The character represented by this friendship edge - */ - - node: >( - select: (t: CharacterSelector) => T - ) => Field<"node", never, SelectionSet>; -} - -export const FriendsEdge: FriendsEdgeSelector = { - __typename: () => new Field("__typename"), - - /** - * @description A cursor used for pagination - */ - cursor: () => new Field("cursor"), - - /** - * @description The character represented by this friendship edge - */ - - node: (select) => - new Field("node", undefined as never, new SelectionSet(select(Character))), -}; - -export interface IPageInfo { - startCursor: string; - endCursor: string; - hasNextPage: boolean; -} - -interface PageInfoSelector { - __typename: () => Field<"__typename">; - - startCursor: () => Field<"startCursor">; - - endCursor: () => Field<"endCursor">; - - hasNextPage: () => Field<"hasNextPage">; -} - -export const PageInfo: PageInfoSelector = { - __typename: () => new Field("__typename"), - - startCursor: () => new Field("startCursor"), - endCursor: () => new Field("endCursor"), - hasNextPage: () => new Field("hasNextPage"), -}; - -export interface IReview { - stars: number; - commentary: string; -} - -interface ReviewSelector { - __typename: () => Field<"__typename">; - - /** - * @description The number of stars this review gave, 1-5 - */ - - stars: () => Field<"stars">; - - /** - * @description Comment about the movie - */ - - commentary: () => Field<"commentary">; -} - -export const Review: ReviewSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The number of stars this review gave, 1-5 - */ - stars: () => new Field("stars"), - - /** - * @description Comment about the movie - */ - commentary: () => new Field("commentary"), -}; - -export interface IStarship { - id: string; - name: string; - length: number; - coordinates: number[]; -} - -interface StarshipSelector { - __typename: () => Field<"__typename">; - - /** - * @description The ID of the starship - */ - - id: () => Field<"id">; - - /** - * @description The name of the starship - */ - - name: () => Field<"name">; - - /** - * @description Length of the starship, along the longest axis - */ - - length: (variables: { unit: unknown }) => Field<"length", [/* @todo */]>; - - coordinates: () => Field<"coordinates">; -} - -export const Starship: StarshipSelector = { - __typename: () => new Field("__typename"), - - /** - * @description The ID of the starship - */ - id: () => new Field("id"), - - /** - * @description The name of the starship - */ - name: () => new Field("name"), - - /** - * @description Length of the starship, along the longest axis - */ - length: (variables) => new Field("length"), - coordinates: () => new Field("coordinates"), -}; - -export const query = >( - name: string, - select: (t: typeof Query) => T -): Operation> => - new Operation(name, "query", new SelectionSet(select(Query))); - -export const mutation = >( - name: string, - select: (t: typeof Mutation) => T -): Operation> => - new Operation(name, "mutation", new SelectionSet(select(Mutation))); - -export class Starwars implements Client { - public static readonly VERSION = VERSION; - public static readonly SCHEMA_SHA = SCHEMA_SHA; - - constructor(public readonly executor: Executor) {} - - public readonly query = { - hero: >( - variables: { episode?: Episode }, - select: (t: CharacterSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "hero", - "query", - new SelectionSet([Query.hero(variables, select)]) - ) - ), - - reviews: >( - variables: { episode?: Episode }, - select: (t: ReviewSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "reviews", - "query", - new SelectionSet([Query.reviews(variables, select)]) - ) - ), - - search: >( - variables: { text?: string }, - select: (t: SearchResultSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "search", - "query", - new SelectionSet([Query.search(variables, select)]) - ) - ), - - character: >( - variables: { id?: string }, - select: (t: CharacterSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "character", - "query", - new SelectionSet([Query.character(variables, select)]) - ) - ), - - droid: >( - variables: { id?: string }, - select: (t: DroidSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "droid", - "query", - new SelectionSet([Query.droid(variables, select)]) - ) - ), - - human: >( - variables: { id?: string }, - select: (t: HumanSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "human", - "query", - new SelectionSet([Query.human(variables, select)]) - ) - ), - - starship: >( - variables: { id?: string }, - select: (t: StarshipSelector) => T - ) => - this.executor.execute< - IQuery, - Operation>]>> - >( - new Operation( - "starship", - "query", - new SelectionSet([Query.starship(variables, select)]) - ) - ), - }; - - public readonly mutate = { - createReview: >( - variables: { episode?: Episode; review?: ReviewInput }, - select: (t: ReviewSelector) => T - ) => - this.executor.execute< - IMutation, - Operation>]>> - >( - new Operation( - "createReview", - "mutation", - new SelectionSet([Mutation.createReview(variables, select)]) - ) - ), - }; -} diff --git a/starwars.example.ts b/starwars.example.ts deleted file mode 100644 index 123d175..0000000 --- a/starwars.example.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Executor } from "./src"; -import { Starwars } from "./starwars.api"; -(async () => { - const starwars = new Starwars(new Executor({ uri: "" })); - - const character = await starwars.query.character({ id: "frf" }, (t) => [ - t.__typename(), - t.id(), - t.friendsConnection({ first: 3 }, (t) => [ - t.totalCount(), - t.friends((t) => [t.id()]), - ]), - - t.on("Droid", (t) => [t.primaryFunction()]), - ]); - - character.data.character.__typename; - character.data.character.id; - character.data.character.friendsConnection.totalCount; -})(); diff --git a/test-d/fragments.test-d.ts b/test-d/fragments.test-d.ts new file mode 100644 index 0000000..e5b53a5 --- /dev/null +++ b/test-d/fragments.test-d.ts @@ -0,0 +1,92 @@ +import { expectAssignable } from "tsd"; +import { L } from "ts-toolbelt"; + +import { + SelectionSet, + selectionSet, + field, + Field, + namedType, + inlineFragment, + InlineFragment, + MergeSelectionSets, + SpreadFragment, + SpreadFragments, +} from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + Node: Node; + Employee: Employee; + Admin: Admin; +} + +interface Query { + __typename: "Query"; + nodes: Node[]; +} + +interface Node { + __typename: "Employee" | "Admin"; + id: string; +} + +interface Employee extends Node { + __typename: "Employee"; + firstName: string; +} + +interface Admin extends Node { + __typename: "Admin"; + badass: boolean; + badgeNumber: number; +} + +const fragment1 = inlineFragment( + namedType<"Employee">("Employee"), + selectionSet([field("firstName")]) +); + +const fragment2 = inlineFragment( + namedType<"Admin">("Admin"), + selectionSet([field("badass"), field("badgeNumber")]) +); + +// need to assert const because not function return? +const s = selectionSet([field("id"), fragment1, fragment2] as const); + +type filtered = L.Filter>; + +// working +type TFragment1 = SpreadFragment>; +type TFragment2 = SpreadFragment>; + +expectAssignable({ __typename: "Employee", firstName: "John" }); +expectAssignable({ + __typename: "Admin", + badass: true, + badgeNumber: 69, +}); + +const data = {} as SpreadFragments; + +if (data.__typename === "Admin") { + data.badass; + data.badgeNumber; +} else { + data.firstName; +} + +type merged = MergeSelectionSets< + SelectionSet<[Field<"id">]>, + SelectionSet<[Field<"name">]> +>; +type merged2 = L.Concat<[Field<"id">], [Field<"name">]>; + +const m = [field("id"), field("name")] as merged2; diff --git a/test-d/interface.test-d.ts b/test-d/interface.test-d.ts new file mode 100644 index 0000000..9b0fe7d --- /dev/null +++ b/test-d/interface.test-d.ts @@ -0,0 +1,96 @@ +import { expectAssignable } from "tsd"; + +import { selectionSet, field, namedType, inlineFragment, Result } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + Node: Node; + Employee: Employee; + Admin: Admin; +} + +interface Query { + __typename: "Query"; + node: Node | null; +} + +interface Node { + __typename: "Employee" | "Admin"; + id: string; +} + +interface Employee extends Node { + __typename: "Employee"; + firstName: string; +} + +interface Admin extends Node { + __typename: "Admin"; + badass: boolean; + badgeNumber: number; +} + +const selection = selectionSet([ + field( + "node", + undefined, + selectionSet([ + field("__typename"), + field("id"), + + inlineFragment( + namedType<"Employee">("Employee"), + selectionSet([field("firstName")] as const) + ), + + inlineFragment( + namedType<"Admin">("Admin"), + selectionSet([ + field("id"), + field("badass"), + field("badgeNumber"), + ] as const) + ), + ] as const) + ), +] as const); + +type Test = Result; + +const data = {} as Test; + +if (data.node?.__typename === "Employee") { + data.node.__typename; + data.node.id; + data.node.firstName; +} else if (data.node?.__typename === "Admin") { + data.node.__typename; + data.node.id; + data.node.badass; + data.node.badgeNumber; +} else { + // expect null + data.node; +} + +expectAssignable({ + node: { + __typename: "Employee", + id: "123", + firstName: "Gina", + }, +}); +expectAssignable({ + node: { + __typename: "Admin", + id: "123", + badass: true, + badgeNumber: 69, + }, +}); diff --git a/test-d/nested-objects.ts b/test-d/nested-objects.ts new file mode 100644 index 0000000..9733e39 --- /dev/null +++ b/test-d/nested-objects.ts @@ -0,0 +1,73 @@ +import { expectAssignable } from "tsd"; +import freeze from "deep-freeze"; + +import { selectionSet, field, Result } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + User: User; +} + +interface Query { + __typename: "Query"; + viewer: User; + friendsByUserId: User[] | null; +} + +interface User { + __typename: "User"; + id: string; + firstName: string; + age: number | null; + friends: User[] | null; +} + +type f = User["friends"] extends Array | null ? true : false; +type isNullable = null extends User["friends"] ? true : false; + +const selection = selectionSet([ + field("viewer", undefined, selectionSet([field("id")])), + field( + "friendsByUserId", + undefined, + selectionSet([ + field("id"), + field("firstName"), + field("age"), + field("friends", undefined, selectionSet([field("id")])), + ]) + ), +]); + +type Test = Result; + +expectAssignable( + freeze({ + viewer: { + id: "foo", + }, + friendsByUserId: [ + { + id: "foo", + firstName: "Tim", + age: 69, + friends: [{ id: "bar" }], + }, + ], + }) +); + +expectAssignable( + freeze({ + viewer: { + id: "foo", + }, + friendsByUserId: null, + }) +); diff --git a/test-d/nested-variables.test-d.ts b/test-d/nested-variables.test-d.ts new file mode 100644 index 0000000..8267dc0 --- /dev/null +++ b/test-d/nested-variables.test-d.ts @@ -0,0 +1,46 @@ +import { expectAssignable } from "tsd"; +import { Variables, selectionSet, field, argument, variable } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + User: User; +} + +interface Query { + __typename: "Query"; + viewer: User; + user(variables: { id: string }): User | null; +} + +interface User { + id: string; + friends(variables: { limit: number | undefined }): User[]; +} + +const selection = selectionSet([ + field("user", [argument("id", variable("id"))], selectionSet([field("id")])), + field( + "viewer", + undefined, + selectionSet([ + field( + "friends", + [argument("limit", variable("limit"))], + selectionSet([field("id")]) + ), + ]) + ), +]); + +type Test = Variables; + +expectAssignable({ + id: "abc", + limit: 5, +}); diff --git a/test-d/optional-variables.test-d.ts b/test-d/optional-variables.test-d.ts new file mode 100644 index 0000000..e69de29 diff --git a/test-d/parameterized.test-d.ts b/test-d/parameterized.test-d.ts new file mode 100644 index 0000000..f3e35a5 --- /dev/null +++ b/test-d/parameterized.test-d.ts @@ -0,0 +1,19 @@ +import { expectType } from "tsd"; +import freeze from "deep-freeze"; + +import { selectionSet, field, Result } from "../src"; + +interface Schema { + Query: Query; +} + +interface Query { + __typename: "Query"; + hello(variables: { name: string }): string; +} + +const selection = selectionSet([field("__typename"), field("hello")]); + +type Test = Result; + +expectType(freeze({ __typename: "Query", hello: "foo" })); diff --git a/test-d/simple-object.ts b/test-d/simple-object.ts new file mode 100644 index 0000000..18fa63a --- /dev/null +++ b/test-d/simple-object.ts @@ -0,0 +1,53 @@ +import { expectAssignable } from "tsd"; +import freeze from "deep-freeze"; +import { O } from "ts-toolbelt"; + +import { selectionSet, field, Result } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + User: User; +} + +interface Query { + __typename: "Query"; + viewer: User; +} + +interface User { + __typename: "User"; + id: string; + firstName: string; + age: number | null; + pronouns: string[]; +} + +const selection = selectionSet([ + field( + "viewer", + undefined, + selectionSet([ + field("id"), + field("firstName"), + field("age"), + field("pronouns"), + ]) + ), +]); + +type Test = Result; + +expectAssignable( + freeze({ viewer: { id: "foo", firstName: "Tim", age: 69, pronouns: [] } }) +); +expectAssignable( + freeze({ + viewer: { id: "foo", firstName: "Tim", age: null, pronouns: ["xenon"] }, + }) +); diff --git a/test-d/simple-scalar.test-d.ts b/test-d/simple-scalar.test-d.ts new file mode 100644 index 0000000..466a231 --- /dev/null +++ b/test-d/simple-scalar.test-d.ts @@ -0,0 +1,19 @@ +import { expectType } from "tsd"; +import freeze from "deep-freeze"; + +import { selectionSet, field, Result } from "../src"; + +interface Schema { + Query: Query; +} + +interface Query { + __typename: "Query"; + hello: string; +} + +const selection = selectionSet([field("__typename"), field("hello")]); + +type Test = Result; + +expectType(freeze({ __typename: "Query", hello: "foo" })); diff --git a/test-d/union.test-d.ts b/test-d/union.test-d.ts new file mode 100644 index 0000000..2414df1 --- /dev/null +++ b/test-d/union.test-d.ts @@ -0,0 +1,104 @@ +import { expectAssignable } from "tsd"; + +import { selectionSet, field, namedType, inlineFragment, Result } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + SearchResult: SearchResult; + Author: Author; + Book: Book; +} + +interface Query { + __typename: "Query"; + search: (SearchResult | null)[] | null; +} + +interface Author { + __typename: "Author"; + name: string; +} + +interface Book { + __typename: "Book"; + title: string; +} + +type SearchResult = Author | Book; + +const selection = selectionSet([ + field( + "search", + undefined, + selectionSet([ + field("__typename"), + + inlineFragment( + namedType<"Author">("Author"), + selectionSet([field("name")] as const) + ), + + inlineFragment( + namedType<"Book">("Book"), + selectionSet([field("title")] as const) + ), + ] as const) + ), +] as const); + +type Test = Result; + +const data = {} as Test; +const first = data.search?.[0]; + +if (first?.__typename === "Author") { + first.__typename; + first.name; +} else if (first?.__typename === "Book") { + first.__typename; + first.title; +} else { + // expect null or undefined + first; +} + +expectAssignable({ + search: null, +}); +expectAssignable({ + search: [], +}); +expectAssignable({ + search: [null], +}); +expectAssignable({ + search: [ + { + __typename: "Author", + name: "John", + }, + ], +}); +expectAssignable({ + search: [ + { + __typename: "Book", + title: "Holy Bible", + }, + ], +}); +expectAssignable({ + search: [ + { + __typename: "Book", + title: "Holy Bible", + }, + null, + ], +}); diff --git a/test-d/variables-nested-in-fragments.test-d.ts b/test-d/variables-nested-in-fragments.test-d.ts new file mode 100644 index 0000000..a69f91b --- /dev/null +++ b/test-d/variables-nested-in-fragments.test-d.ts @@ -0,0 +1,66 @@ +import { expectAssignable } from "tsd"; + +import { + selectionSet, + field, + argument, + variable, + inlineFragment, + namedType, + Variables, + Result, +} from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; + User: User; + + Unit: Unit; +} + +interface Query { + __typename: "Query"; + viewer: User; +} + +enum Unit { + FEET = "FEET", + METERS = "METERS", +} + +interface User { + __typename: "User"; + id: string; + // @todo modify Result's SpreadFragment's to support parameterized fields + height(variables: { unit: Unit }): number; +} + +const selection = selectionSet([ + field( + "viewer", + undefined, + selectionSet([ + field("id"), + + inlineFragment( + namedType<"User">("User"), + selectionSet([ + field("height", [argument("unit", variable("heightUnit"))]), + ] as const) + ), + ] as const) + ), +]); + +type Test = Variables; +type Test2 = Result; + +expectAssignable({ + heightUnit: Unit.FEET, +}); diff --git a/test-d/variables.test-d.ts b/test-d/variables.test-d.ts new file mode 100644 index 0000000..562fe14 --- /dev/null +++ b/test-d/variables.test-d.ts @@ -0,0 +1,28 @@ +import { expectType } from "tsd"; + +import { Variables, selectionSet, field, argument, variable } from "../src"; + +interface Schema { + String: string; + Boolean: boolean; + Int: number; + Float: number; + ID: string; + + Query: Query; +} + +interface Query { + __typename: "Query"; + hello(variables: { name: string }): string; +} + +const selection = selectionSet([ + field("hello", [argument("name", variable("foo"))]), +]); + +type Test = Variables; + +expectType({ + foo: "world", +}); diff --git a/tsconfig.json b/tsconfig.json index da0ef6e..78bc739 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,12 @@ { - "include": ["src/**/*", "examples/**/*", "__tests__/**/*"], + "include": ["src/**/*", "examples/**/*", "__tests__/**/*", "test-d/**/*"], "compilerOptions": { "strict": true, "noEmit": true, "rootDir": ".", - "sourceMap": false, - "target": "ES2019", + "outDir": "dist", + "sourceMap": true, + "target": "ES2020", "module": "commonjs", "noUnusedLocals": false, "allowJs": false, @@ -17,6 +18,7 @@ "strictPropertyInitialization": false, "skipLibCheck": true, "incremental": true, - "lib": ["ES2019"] + "forceConsistentCasingInFileNames": true, + "lib": ["ES2020"] } } \ No newline at end of file diff --git a/tsconfig.release.json b/tsconfig.release.json index e79e6fb..8dae286 100644 --- a/tsconfig.release.json +++ b/tsconfig.release.json @@ -1,6 +1,7 @@ { "extends": "./tsconfig.json", "include": ["src/**/*"], + "exclude": ["src/**/*_test.ts"], "compilerOptions": { "rootDir": "src", "outDir": "dist", diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index d88a957..0000000 --- a/yarn.lock +++ /dev/null @@ -1,4082 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@apollo/client@^3.4.4": - version "3.4.4" - resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.4.4.tgz#6b5d504c0a42593a1a16b9660974748e7ce39b43" - integrity sha512-XuFudJUA/YDBeEbxxkUK80FEhpABaphvOuKu8VPwgvu9681Rrqju9e6tGpsoCBIBtcBjFMrFkEafAai7H+dVNw== - dependencies: - "@graphql-typed-document-node/core" "^3.0.0" - "@wry/context" "^0.6.0" - "@wry/equality" "^0.5.0" - "@wry/trie" "^0.3.0" - graphql-tag "^2.12.3" - hoist-non-react-statics "^3.3.2" - optimism "^0.16.1" - prop-types "^15.7.2" - symbol-observable "^4.0.0" - ts-invariant "^0.9.0" - tslib "^2.3.0" - zen-observable-ts "^1.1.0" - -"@arkweid/lefthook@^0.7.2": - version "0.7.2" - resolved "https://registry.yarnpkg.com/@arkweid/lefthook/-/lefthook-0.7.2.tgz#ce2ee89f32bd8899bfee1a61d1fbe68a7dee7601" - integrity sha512-r34fl/qiny7564aL+MLmkVbUMjr39vSqSGvUoA7e3FwpvD/ubJkxdDFCDJECvOYiYMXwwaqJc6txXtfnvDY3YQ== - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" - integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== - dependencies: - "@babel/highlight" "^7.10.4" - -"@babel/core@^7.1.0", "@babel/core@^7.7.5": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.10.tgz#b79a2e1b9f70ed3d84bbfb6d8c4ef825f606bccd" - integrity sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w== - dependencies: - "@babel/code-frame" "^7.10.4" - "@babel/generator" "^7.12.10" - "@babel/helper-module-transforms" "^7.12.1" - "@babel/helpers" "^7.12.5" - "@babel/parser" "^7.12.10" - "@babel/template" "^7.12.7" - "@babel/traverse" "^7.12.10" - "@babel/types" "^7.12.10" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.1" - json5 "^2.1.2" - lodash "^4.17.19" - semver "^5.4.1" - source-map "^0.5.0" - -"@babel/generator@^7.12.10": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.12.10.tgz#2b188fc329fb8e4f762181703beffc0fe6df3460" - integrity sha512-6mCdfhWgmqLdtTkhXjnIz0LcdVCd26wS2JXRtj2XY0u5klDsXBREA/pG5NVOuVnF2LUrBGNFtQkIqqTbblg0ww== - dependencies: - "@babel/types" "^7.12.10" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/helper-function-name@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz#d2d3b20c59ad8c47112fa7d2a94bc09d5ef82f1a" - integrity sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ== - dependencies: - "@babel/helper-get-function-arity" "^7.10.4" - "@babel/template" "^7.10.4" - "@babel/types" "^7.10.4" - -"@babel/helper-get-function-arity@^7.10.4": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz#b158817a3165b5faa2047825dfa61970ddcc16cf" - integrity sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag== - dependencies: - "@babel/types" "^7.12.10" - -"@babel/helper-member-expression-to-functions@^7.12.1": - version "7.12.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.7.tgz#aa77bd0396ec8114e5e30787efa78599d874a855" - integrity sha512-DCsuPyeWxeHgh1Dus7APn7iza42i/qXqiFPWyBDdOFtvS581JQePsc1F/nD+fHrcswhLlRc2UpYS1NwERxZhHw== - dependencies: - "@babel/types" "^7.12.7" - -"@babel/helper-module-imports@^7.12.1": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.5.tgz#1bfc0229f794988f76ed0a4d4e90860850b54dfb" - integrity sha512-SR713Ogqg6++uexFRORf/+nPXMmWIn80TALu0uaFb+iQIUoR7bOC7zBWyzBs5b3tBBJXuyD0cRu1F15GyzjOWA== - dependencies: - "@babel/types" "^7.12.5" - -"@babel/helper-module-transforms@^7.12.1": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz#7954fec71f5b32c48e4b303b437c34453fd7247c" - integrity sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w== - dependencies: - "@babel/helper-module-imports" "^7.12.1" - "@babel/helper-replace-supers" "^7.12.1" - "@babel/helper-simple-access" "^7.12.1" - "@babel/helper-split-export-declaration" "^7.11.0" - "@babel/helper-validator-identifier" "^7.10.4" - "@babel/template" "^7.10.4" - "@babel/traverse" "^7.12.1" - "@babel/types" "^7.12.1" - lodash "^4.17.19" - -"@babel/helper-optimise-call-expression@^7.10.4": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.12.10.tgz#94ca4e306ee11a7dd6e9f42823e2ac6b49881e2d" - integrity sha512-4tpbU0SrSTjjt65UMWSrUOPZTsgvPgGG4S8QSTNHacKzpS51IVWGDj0yCwyeZND/i+LSN2g/O63jEXEWm49sYQ== - dependencies: - "@babel/types" "^7.12.10" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.8.0": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375" - integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg== - -"@babel/helper-replace-supers@^7.12.1": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.12.5.tgz#f009a17543bbbbce16b06206ae73b63d3fca68d9" - integrity sha512-5YILoed0ZyIpF4gKcpZitEnXEJ9UoDRki1Ey6xz46rxOzfNMAhVIJMoune1hmPVxh40LRv1+oafz7UsWX+vyWA== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.12.1" - "@babel/helper-optimise-call-expression" "^7.10.4" - "@babel/traverse" "^7.12.5" - "@babel/types" "^7.12.5" - -"@babel/helper-simple-access@^7.12.1": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.12.1.tgz#32427e5aa61547d38eb1e6eaf5fd1426fdad9136" - integrity sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA== - dependencies: - "@babel/types" "^7.12.1" - -"@babel/helper-split-export-declaration@^7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz#f8a491244acf6a676158ac42072911ba83ad099f" - integrity sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg== - dependencies: - "@babel/types" "^7.11.0" - -"@babel/helper-validator-identifier@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2" - integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw== - -"@babel/helpers@^7.12.5": - version "7.12.5" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.12.5.tgz#1a1ba4a768d9b58310eda516c449913fe647116e" - integrity sha512-lgKGMQlKqA8meJqKsW6rUnc4MdUk35Ln0ATDqdM1a/UpARODdI4j5Y5lVfUScnSNkJcdCRAaWkspykNoFg9sJA== - dependencies: - "@babel/template" "^7.10.4" - "@babel/traverse" "^7.12.5" - "@babel/types" "^7.12.5" - -"@babel/highlight@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143" - integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA== - dependencies: - "@babel/helper-validator-identifier" "^7.10.4" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/parser@^7.1.0", "@babel/parser@^7.12.10", "@babel/parser@^7.12.7": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.10.tgz#824600d59e96aea26a5a2af5a9d812af05c3ae81" - integrity sha512-PJdRPwyoOqFAWfLytxrWwGrAxghCgh/yTNCYciOz8QgjflA7aZhECPZAa2VUedKg2+QMWkI0L9lynh2SNmNEgA== - -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.8.3": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz#bcb297c5366e79bebadef509549cd93b04f19978" - integrity sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-import-meta@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.12.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz#dd6c0b357ac1bb142d98537450a319625d13d2a0" - integrity sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/template@^7.10.4", "@babel/template@^7.12.7", "@babel/template@^7.3.3": - version "7.12.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.7.tgz#c817233696018e39fbb6c491d2fb684e05ed43bc" - integrity sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow== - dependencies: - "@babel/code-frame" "^7.10.4" - "@babel/parser" "^7.12.7" - "@babel/types" "^7.12.7" - -"@babel/traverse@^7.1.0", "@babel/traverse@^7.12.1", "@babel/traverse@^7.12.10", "@babel/traverse@^7.12.5": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.12.10.tgz#2d1f4041e8bf42ea099e5b2dc48d6a594c00017a" - integrity sha512-6aEtf0IeRgbYWzta29lePeYSk+YAFIC3kyqESeft8o5CkFlYIMX+EQDDWEiAQ9LHOA3d0oHdgrSsID/CKqXJlg== - dependencies: - "@babel/code-frame" "^7.10.4" - "@babel/generator" "^7.12.10" - "@babel/helper-function-name" "^7.10.4" - "@babel/helper-split-export-declaration" "^7.11.0" - "@babel/parser" "^7.12.10" - "@babel/types" "^7.12.10" - debug "^4.1.0" - globals "^11.1.0" - lodash "^4.17.19" - -"@babel/types@^7.0.0", "@babel/types@^7.10.4", "@babel/types@^7.11.0", "@babel/types@^7.12.1", "@babel/types@^7.12.10", "@babel/types@^7.12.5", "@babel/types@^7.12.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.12.10" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.10.tgz#7965e4a7260b26f09c56bcfcb0498af1f6d9b260" - integrity sha512-sf6wboJV5mGyip2hIpDSKsr80RszPinEFjsHTalMxZAZkoQ2/2yQzxlcFN52SJqsyPfLtPmenL4g2KB3KJXPDw== - dependencies: - "@babel/helper-validator-identifier" "^7.10.4" - lodash "^4.17.19" - to-fast-properties "^2.0.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@cnakazawa/watch@^1.0.3": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" - integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== - dependencies: - exec-sh "^0.3.2" - minimist "^1.2.0" - -"@graphql-typed-document-node/core@^3.0.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.1.0.tgz#0eee6373e11418bfe0b5638f654df7a4ca6a3950" - integrity sha512-wYn6r8zVZyQJ6rQaALBEln5B1pzxb9shV5Ef97kTvn6yVGrqyXVnDqnU24MXnFubR+rZjBY9NWuxX3FB2sTsjg== - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.2" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.2.tgz#26520bf09abe4a5644cd5414e37125a8954241dd" - integrity sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw== - -"@jest/console@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2" - integrity sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^26.6.2" - jest-util "^26.6.2" - slash "^3.0.0" - -"@jest/core@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad" - integrity sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw== - dependencies: - "@jest/console" "^26.6.2" - "@jest/reporters" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-changed-files "^26.6.2" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-resolve-dependencies "^26.6.3" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - jest-watcher "^26.6.2" - micromatch "^4.0.2" - p-each-series "^2.1.0" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" - -"@jest/environment@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c" - integrity sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA== - dependencies: - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - -"@jest/fake-timers@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad" - integrity sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA== - dependencies: - "@jest/types" "^26.6.2" - "@sinonjs/fake-timers" "^6.0.1" - "@types/node" "*" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-util "^26.6.2" - -"@jest/globals@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a" - integrity sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/types" "^26.6.2" - expect "^26.6.2" - -"@jest/reporters@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6" - integrity sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.4" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^4.0.3" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.0.2" - jest-haste-map "^26.6.2" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^7.0.0" - optionalDependencies: - node-notifier "^8.0.0" - -"@jest/source-map@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535" - integrity sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA== - dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.4" - source-map "^0.6.0" - -"@jest/test-result@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18" - integrity sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ== - dependencies: - "@jest/console" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^26.6.3": - version "26.6.3" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17" - integrity sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw== - dependencies: - "@jest/test-result" "^26.6.2" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-runner "^26.6.3" - jest-runtime "^26.6.3" - -"@jest/transform@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b" - integrity sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^26.6.2" - babel-plugin-istanbul "^6.0.0" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.4" - jest-haste-map "^26.6.2" - jest-regex-util "^26.0.0" - jest-util "^26.6.2" - micromatch "^4.0.2" - pirates "^4.0.1" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^26.6.2": - version "26.6.2" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e" - integrity sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - -"@sinonjs/commons@^1.7.0": - version "1.8.1" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.1.tgz#e7df00f98a203324f6dc7cc606cad9d4a8ab2217" - integrity sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" - integrity sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA== - dependencies: - "@sinonjs/commons" "^1.7.0" - -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7": - version "7.1.12" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.12.tgz#4d8e9e51eb265552a7e4f1ff2219ab6133bdfb2d" - integrity sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.2.tgz#f3d71178e187858f7c45e30380f8f1b7415a12d8" - integrity sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.0" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.0.tgz#0c888dd70b3ee9eebb6e4f200e809da0076262be" - integrity sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.11.0.tgz#b9a1efa635201ba9bc850323a8793ee2d36c04a0" - integrity sha512-kSjgDMZONiIfSH1Nxcr5JIRMwUetDki63FSQfpTCz8ogF3Ulqm8+mr5f78dUYs6vMiB6gBusQqfQmBvHZj/lwg== - dependencies: - "@babel/types" "^7.3.0" - -"@types/fs-extra@^9.0.2": - version "9.0.5" - resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.5.tgz#2afb76a43a4bef80a363b94b314d0ca1694fc4f8" - integrity sha512-wr3t7wIW1c0A2BIJtdVp4EflriVaVVAsCAIHVzzh8B+GiFv9X1xeJjCs4upRXtzp7kQ6lP5xvskjoD4awJ1ZeA== - dependencies: - "@types/node" "*" - -"@types/graceful-fs@^4.1.2": - version "4.1.4" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.4.tgz#4ff9f641a7c6d1a3508ff88bc3141b152772e753" - integrity sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== - -"@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz#508b13aa344fa4976234e75dddcc34925737d821" - integrity sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/jest@26.x", "@types/jest@^26.0.19": - version "26.0.19" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.19.tgz#e6fa1e3def5842ec85045bd5210e9bb8289de790" - integrity sha512-jqHoirTG61fee6v6rwbnEuKhpSKih0tuhqeFbCmMmErhtu3BYlOZaXWjffgOstMM4S/3iQD31lI5bGLTrs97yQ== - dependencies: - jest-diff "^26.0.0" - pretty-format "^26.0.0" - -"@types/node-fetch@^2.5.7": - version "2.5.7" - resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.7.tgz#20a2afffa882ab04d44ca786449a276f9f6bbf3c" - integrity sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw== - dependencies: - "@types/node" "*" - form-data "^3.0.0" - -"@types/node@*", "@types/node@^14.6.2": - version "14.14.13" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.13.tgz#9e425079799322113ae8477297ae6ef51b8e0cdf" - integrity sha512-vbxr0VZ8exFMMAjCW8rJwaya0dMCDyYW2ZRdTyjtrCvJoENMpdUHOT/eTzvgyA5ZnqRZ/sI0NwqAxNHKYokLJQ== - -"@types/normalize-package-data@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" - integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== - -"@types/prettier@^2.0.0", "@types/prettier@^2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.1.5.tgz#b6ab3bba29e16b821d84e09ecfaded462b816b00" - integrity sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ== - -"@types/stack-utils@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff" - integrity sha512-RJJrrySY7A8havqpGObOB4W92QXKJo63/jFLLgpvOtsGUqbQZ9Sbgl35KMm1DjC6j7AvmmU2bIno+3IyEaemaw== - -"@types/yargs-parser@*": - version "15.0.0" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d" - integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw== - -"@types/yargs@^15.0.0": - version "15.0.11" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.11.tgz#361d7579ecdac1527687bcebf9946621c12ab78c" - integrity sha512-jfcNBxHFYJ4nPIacsi3woz1+kvUO6s1CyeEhtnDHBjHUMNj5UlW2GynmnSgiJJEdNg9yW5C8lfoNRZrHGv5EqA== - dependencies: - "@types/yargs-parser" "*" - -"@types/yargs@^15.0.12": - version "15.0.12" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.12.tgz#6234ce3e3e3fa32c5db301a170f96a599c960d74" - integrity sha512-f+fD/fQAo3BCbCDlrUpznF1A5Zp9rB0noS5vnoormHSIPFKL0Z2DcUJ3Gxp5ytH4uLRNxy7AwYUC9exZzqGMAw== - dependencies: - "@types/yargs-parser" "*" - -"@types/zen-observable@0.8.3": - version "0.8.3" - resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3" - integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw== - -"@wry/context@^0.6.0": - version "0.6.0" - resolved "https://registry.yarnpkg.com/@wry/context/-/context-0.6.0.tgz#f903eceb89d238ef7e8168ed30f4511f92d83e06" - integrity sha512-sAgendOXR8dM7stJw3FusRxFHF/ZinU0lffsA2YTyyIOfic86JX02qlPqPVqJNZJPAxFt+2EE8bvq6ZlS0Kf+Q== - dependencies: - tslib "^2.1.0" - -"@wry/equality@^0.1.2": - version "0.1.11" - resolved "https://registry.yarnpkg.com/@wry/equality/-/equality-0.1.11.tgz#35cb156e4a96695aa81a9ecc4d03787bc17f1790" - integrity sha512-mwEVBDUVODlsQQ5dfuLUS5/Tf7jqUKyhKYHmVi4fPB6bDMOfWvUPJmKgS1Z7Za/sOI3vzWt4+O7yCiL/70MogA== - dependencies: - tslib "^1.9.3" - -"@wry/equality@^0.5.0": - version "0.5.1" - resolved "https://registry.yarnpkg.com/@wry/equality/-/equality-0.5.1.tgz#b22e4e1674d7bf1439f8ccdccfd6a785f6de68b0" - integrity sha512-FZKbdpbcVcbDxQrKcaBClNsQaMg9nof1RKM7mReJe5DKUzM5u8S7T+PqwNqvib5O2j2xxF1R4p5O3+b6baTrbw== - dependencies: - tslib "^2.1.0" - -"@wry/trie@^0.3.0": - version "0.3.0" - resolved "https://registry.yarnpkg.com/@wry/trie/-/trie-0.3.0.tgz#3245e74988c4e3033299e479a1bf004430752463" - integrity sha512-Yw1akIogPhAT6XPYsRHlZZIS0tIGmAl9EYXHi2scf7LPKKqdqmow/Hu4kEqP2cJR3EjaU/9L0ZlAjFf3hFxmug== - dependencies: - tslib "^2.1.0" - -abab@^2.0.3: - version "2.0.5" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" - integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -ajv@^6.12.3: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ansi-escapes@^4.2.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" - integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== - dependencies: - type-fest "^0.11.0" - -ansi-regex@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" - integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== - dependencies: - micromatch "^3.1.4" - normalize-path "^2.1.1" - -anymatch@^3.0.3: - version "3.1.1" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" - integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -apollo-link@^1.2.14: - version "1.2.14" - resolved "https://registry.yarnpkg.com/apollo-link/-/apollo-link-1.2.14.tgz#3feda4b47f9ebba7f4160bef8b977ba725b684d9" - integrity sha512-p67CMEFP7kOG1JZ0ZkYZwRDa369w5PIjtMjvrQd/HnIV8FRsHRqLqK+oAZQnFa1DDdZtOtHTi+aMIW6EatC2jg== - dependencies: - apollo-utilities "^1.3.0" - ts-invariant "^0.4.0" - tslib "^1.9.3" - zen-observable-ts "^0.8.21" - -apollo-utilities@^1.0.1, apollo-utilities@^1.3.0: - version "1.3.4" - resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.3.4.tgz#6129e438e8be201b6c55b0f13ce49d2c7175c9cf" - integrity sha512-pk2hiWrCXMAy2fRPwEyhvka+mqwzeP60Jr1tRYi5xru+3ko94HI9o6lK0CT33/w4RDlxWchmdhDCrvdr+pHCig== - dependencies: - "@wry/equality" "^0.1.2" - fast-json-stable-stringify "^2.0.0" - ts-invariant "^0.4.0" - tslib "^1.10.0" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -asn1@~0.2.3: - version "0.2.4" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" - integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -auto-changelog@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/auto-changelog/-/auto-changelog-2.2.1.tgz#a031fbf1dfe140dda2ec8c77a524031478a0e933" - integrity sha512-XlykJfZrXlWUAADBqGoN1elmntrRcx7oEymyYB3NRPEZxv0TfYHfivmwzejUMnwAdXKCgbQPo7GV5ULs3jwpfw== - dependencies: - commander "^5.0.0" - handlebars "^4.7.3" - lodash.uniqby "^4.7.0" - node-fetch "^2.6.0" - parse-github-url "^1.0.2" - semver "^6.3.0" - -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= - -aws4@^1.8.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" - integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== - -babel-jest@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056" - integrity sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA== - dependencies: - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/babel__core" "^7.1.7" - babel-plugin-istanbul "^6.0.0" - babel-preset-jest "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - slash "^3.0.0" - -babel-plugin-istanbul@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz#e159ccdc9af95e0b570c75b4573b7c34d671d765" - integrity sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^4.0.0" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d" - integrity sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - -babel-preset-current-node-syntax@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.0.tgz#cf5feef29551253471cfa82fc8e0f5063df07a77" - integrity sha512-mGkvkpocWJes1CmMKtgGUwCeeq0pOhALyymozzDWYomHTbDLwueDYG6p4TK1YOeYHCzBzYPsWkgTto10JubI1Q== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" - -babel-preset-jest@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee" - integrity sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ== - dependencies: - babel-plugin-jest-hoist "^26.6.2" - babel-preset-current-node-syntax "^1.0.0" - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= - dependencies: - tweetnacl "^0.14.3" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -bs-logger@0.x: - version "0.2.6" - resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" - integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== - dependencies: - fast-json-stable-stringify "2.x" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -buffer-from@1.x, buffer-from@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" - integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^5.0.0, camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" - integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== - -capture-exit@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" - integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== - dependencies: - rsvp "^4.8.4" - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= - -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -cjs-module-lexer@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f" - integrity sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw== - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= - -collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -commander@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" - integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -cross-fetch@^3.0.6: - version "3.1.4" - resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39" - integrity sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ== - dependencies: - node-fetch "2.6.1" - -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.0: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= - dependencies: - assert-plus "^1.0.0" - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@^4.1.0, debug@^4.1.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee" - integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== - dependencies: - ms "2.1.2" - -decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= - -decimal.js@^10.2.0: - version "10.2.1" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.2.1.tgz#238ae7b0f0c793d3e3cea410108b35a2c01426a3" - integrity sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw== - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -deep-is@~0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" - integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= - -deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= - -deprecated-decorator@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz#00966317b7a12fe92f3cc831f7583af329b86c37" - integrity sha1-AJZjF7ehL+kvPMgx91g68ym4bDc= - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -diff-sequences@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1" - integrity sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - -emittery@^0.7.1: - version "0.7.2" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82" - integrity sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escodegen@^1.14.1: - version "1.14.3" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" - integrity sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw== - dependencies: - esprima "^4.0.1" - estraverse "^4.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -estraverse@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -exec-sh@^0.3.2: - version "0.3.4" - resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5" - integrity sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A== - -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== - dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - -execa@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a" - integrity sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA== - dependencies: - cross-spawn "^7.0.0" - get-stream "^5.0.0" - human-signals "^1.1.1" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.0" - onetime "^5.1.0" - signal-exit "^3.0.2" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expect@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/expect/-/expect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417" - integrity sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA== - dependencies: - "@jest/types" "^26.6.2" - ansi-styles "^4.0.0" - jest-get-type "^26.3.0" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-regex-util "^26.0.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extract-files@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-9.0.0.tgz#8a7744f2437f81f5ed3250ed9f1550de902fe54a" - integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= - -extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= - -fast-deep-equal@^3.1.1: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= - -fb-watchman@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" - integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== - dependencies: - bser "2.1.1" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= - -form-data@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.0.tgz#31b7e39c85f1355b7139ee0c647cf0de7f83c682" - integrity sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" - -fs-extra@^9.0.1: - version "9.0.1" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc" - integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^1.0.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@^2.1.2: - version "2.2.1" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.2.1.tgz#1fb02ded2036a8ac288d507a65962bd87b97628d" - integrity sha512-bTLYHSeC0UH/EFXS9KqWnXuOl/wHK5Z/d+ghd5AsFMYN7wIGkUCOJyzy88+wJKkZPGON8u4Z9f6U4FdgURE9qA== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -gensync@^1.0.0-beta.1: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.1, get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-stream@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - -get-stream@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== - dependencies: - pump "^3.0.0" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= - dependencies: - assert-plus "^1.0.0" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" - integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== - -graphql-request@^3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-3.5.0.tgz#7e69574e15875fb3f660a4b4be3996ecd0bbc8b7" - integrity sha512-Io89QpfU4rqiMbqM/KwMBzKaDLOppi8FU8sEccCE4JqCgz95W9Q8bvxQ4NfPALLSMvg9nafgg8AkYRmgKSlukA== - dependencies: - cross-fetch "^3.0.6" - extract-files "^9.0.0" - form-data "^3.0.0" - -graphql-subscriptions@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/graphql-subscriptions/-/graphql-subscriptions-1.1.0.tgz#5f2fa4233eda44cf7570526adfcf3c16937aef11" - integrity sha512-6WzlBFC0lWmXJbIVE8OgFgXIP4RJi3OQgTPa0DVMsDXdpRDjTsM1K9wfl5HSYX7R87QAGlvcv2Y4BIZa/ItonA== - dependencies: - iterall "^1.2.1" - -graphql-tag@^2.12.3: - version "2.12.5" - resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.5.tgz#5cff974a67b417747d05c8d9f5f3cb4495d0db8f" - integrity sha512-5xNhP4063d16Pz3HBtKprutsPrmHZi5IdUGOWRxA2B6VF7BIRGOHZ5WQvDmJXZuPcBg7rYwaFxvQYjqkSdR3TQ== - dependencies: - tslib "^2.1.0" - -graphql-tools@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.8.tgz#e7fb9f0d43408fb0878ba66b522ce871bafe9d30" - integrity sha512-MW+ioleBrwhRjalKjYaLQbr+920pHBgy9vM/n47sswtns8+96sRn5M/G+J1eu7IMeKWiN/9p6tmwCHU7552VJg== - dependencies: - apollo-link "^1.2.14" - apollo-utilities "^1.0.1" - deprecated-decorator "^0.1.6" - iterall "^1.1.3" - uuid "^3.1.0" - -graphql@^15.3.0: - version "15.4.0" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.4.0.tgz#e459dea1150da5a106486ba7276518b5295a4347" - integrity sha512-EB3zgGchcabbsU9cFe1j+yxdzKQKAbGUWRb13DsrsMN1yyfmmIq+2+L5MqVWcDCE4V89R5AyUOi7sMOGxdsYtA== - -growly@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" - integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= - -handlebars@^4.7.3: - version "4.7.7" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" - integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== - dependencies: - minimist "^1.2.5" - neo-async "^2.6.0" - source-map "^0.6.1" - wordwrap "^1.0.0" - optionalDependencies: - uglify-js "^3.1.4" - -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -hoist-non-react-statics@^3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" - integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== - dependencies: - react-is "^16.7.0" - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -human-signals@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" - integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -import-local@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" - integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ip-regex@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9" - integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk= - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - -is-core-module@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a" - integrity sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ== - dependencies: - has "^1.0.3" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-docker@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156" - integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-potential-custom-element-name@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" - integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= - -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" - integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= - -is-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" - integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== - -is-typedarray@^1.0.0, is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isarray@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= - -istanbul-lib-coverage@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz#f5944a37c70b550b02a78a5c3b2055b280cec8ec" - integrity sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg== - -istanbul-lib-instrument@^4.0.0, istanbul-lib-instrument@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" - integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== - dependencies: - "@babel/core" "^7.7.5" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.0.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz#75743ce6d96bb86dc7ee4352cf6366a23f0b1ad9" - integrity sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.0.2.tgz#d593210e5000683750cb09fc0644e4b6e27fd53b" - integrity sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -iterall@^1.1.3, iterall@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea" - integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg== - -jest-changed-files@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0" - integrity sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ== - dependencies: - "@jest/types" "^26.6.2" - execa "^4.0.0" - throat "^5.0.0" - -jest-cli@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a" - integrity sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg== - dependencies: - "@jest/core" "^26.6.3" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.4" - import-local "^3.0.2" - is-ci "^2.0.0" - jest-config "^26.6.3" - jest-util "^26.6.2" - jest-validate "^26.6.2" - prompts "^2.0.1" - yargs "^15.4.1" - -jest-config@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349" - integrity sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg== - dependencies: - "@babel/core" "^7.1.0" - "@jest/test-sequencer" "^26.6.3" - "@jest/types" "^26.6.2" - babel-jest "^26.6.3" - chalk "^4.0.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.4" - jest-environment-jsdom "^26.6.2" - jest-environment-node "^26.6.2" - jest-get-type "^26.3.0" - jest-jasmine2 "^26.6.3" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - micromatch "^4.0.2" - pretty-format "^26.6.2" - -jest-diff@^26.0.0, jest-diff@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394" - integrity sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA== - dependencies: - chalk "^4.0.0" - diff-sequences "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-docblock@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5" - integrity sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w== - dependencies: - detect-newline "^3.0.0" - -jest-each@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb" - integrity sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A== - dependencies: - "@jest/types" "^26.6.2" - chalk "^4.0.0" - jest-get-type "^26.3.0" - jest-util "^26.6.2" - pretty-format "^26.6.2" - -jest-environment-jsdom@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e" - integrity sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - jsdom "^16.4.0" - -jest-environment-node@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c" - integrity sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag== - dependencies: - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - jest-mock "^26.6.2" - jest-util "^26.6.2" - -jest-get-type@^26.3.0: - version "26.3.0" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0" - integrity sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig== - -jest-haste-map@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa" - integrity sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w== - dependencies: - "@jest/types" "^26.6.2" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.4" - jest-regex-util "^26.0.0" - jest-serializer "^26.6.2" - jest-util "^26.6.2" - jest-worker "^26.6.2" - micromatch "^4.0.2" - sane "^4.0.3" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.1.2" - -jest-jasmine2@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd" - integrity sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg== - dependencies: - "@babel/traverse" "^7.1.0" - "@jest/environment" "^26.6.2" - "@jest/source-map" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^26.6.2" - is-generator-fn "^2.0.0" - jest-each "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-runtime "^26.6.3" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - pretty-format "^26.6.2" - throat "^5.0.0" - -jest-leak-detector@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af" - integrity sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg== - dependencies: - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-matcher-utils@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a" - integrity sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw== - dependencies: - chalk "^4.0.0" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - pretty-format "^26.6.2" - -jest-message-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07" - integrity sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA== - dependencies: - "@babel/code-frame" "^7.0.0" - "@jest/types" "^26.6.2" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.4" - micromatch "^4.0.2" - pretty-format "^26.6.2" - slash "^3.0.0" - stack-utils "^2.0.2" - -jest-mock@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302" - integrity sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - -jest-pnp-resolver@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" - integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== - -jest-regex-util@^26.0.0: - version "26.0.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28" - integrity sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A== - -jest-resolve-dependencies@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6" - integrity sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg== - dependencies: - "@jest/types" "^26.6.2" - jest-regex-util "^26.0.0" - jest-snapshot "^26.6.2" - -jest-resolve@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507" - integrity sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ== - dependencies: - "@jest/types" "^26.6.2" - chalk "^4.0.0" - graceful-fs "^4.2.4" - jest-pnp-resolver "^1.2.2" - jest-util "^26.6.2" - read-pkg-up "^7.0.1" - resolve "^1.18.1" - slash "^3.0.0" - -jest-runner@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159" - integrity sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ== - dependencies: - "@jest/console" "^26.6.2" - "@jest/environment" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.7.1" - exit "^0.1.2" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-docblock "^26.0.0" - jest-haste-map "^26.6.2" - jest-leak-detector "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - jest-runtime "^26.6.3" - jest-util "^26.6.2" - jest-worker "^26.6.2" - source-map-support "^0.5.6" - throat "^5.0.0" - -jest-runtime@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b" - integrity sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw== - dependencies: - "@jest/console" "^26.6.2" - "@jest/environment" "^26.6.2" - "@jest/fake-timers" "^26.6.2" - "@jest/globals" "^26.6.2" - "@jest/source-map" "^26.6.2" - "@jest/test-result" "^26.6.2" - "@jest/transform" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/yargs" "^15.0.0" - chalk "^4.0.0" - cjs-module-lexer "^0.6.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.3" - graceful-fs "^4.2.4" - jest-config "^26.6.3" - jest-haste-map "^26.6.2" - jest-message-util "^26.6.2" - jest-mock "^26.6.2" - jest-regex-util "^26.0.0" - jest-resolve "^26.6.2" - jest-snapshot "^26.6.2" - jest-util "^26.6.2" - jest-validate "^26.6.2" - slash "^3.0.0" - strip-bom "^4.0.0" - yargs "^15.4.1" - -jest-serializer@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1" - integrity sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.4" - -jest-snapshot@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84" - integrity sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og== - dependencies: - "@babel/types" "^7.0.0" - "@jest/types" "^26.6.2" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.0.0" - chalk "^4.0.0" - expect "^26.6.2" - graceful-fs "^4.2.4" - jest-diff "^26.6.2" - jest-get-type "^26.3.0" - jest-haste-map "^26.6.2" - jest-matcher-utils "^26.6.2" - jest-message-util "^26.6.2" - jest-resolve "^26.6.2" - natural-compare "^1.4.0" - pretty-format "^26.6.2" - semver "^7.3.2" - -jest-util@^26.1.0, jest-util@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1" - integrity sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q== - dependencies: - "@jest/types" "^26.6.2" - "@types/node" "*" - chalk "^4.0.0" - graceful-fs "^4.2.4" - is-ci "^2.0.0" - micromatch "^4.0.2" - -jest-validate@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec" - integrity sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ== - dependencies: - "@jest/types" "^26.6.2" - camelcase "^6.0.0" - chalk "^4.0.0" - jest-get-type "^26.3.0" - leven "^3.1.0" - pretty-format "^26.6.2" - -jest-watcher@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975" - integrity sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ== - dependencies: - "@jest/test-result" "^26.6.2" - "@jest/types" "^26.6.2" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^26.6.2" - string-length "^4.0.1" - -jest-worker@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" - integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^7.0.0" - -jest@^26.6.3: - version "26.6.3" - resolved "https://registry.yarnpkg.com/jest/-/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef" - integrity sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q== - dependencies: - "@jest/core" "^26.6.3" - import-local "^3.0.2" - jest-cli "^26.6.3" - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= - -jsdom@^16.4.0: - version "16.4.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.4.0.tgz#36005bde2d136f73eee1a830c6d45e55408edddb" - integrity sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w== - dependencies: - abab "^2.0.3" - acorn "^7.1.1" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.2.0" - data-urls "^2.0.0" - decimal.js "^10.2.0" - domexception "^2.0.1" - escodegen "^1.14.1" - html-encoding-sniffer "^2.0.1" - is-potential-custom-element-name "^1.0.0" - nwsapi "^2.2.0" - parse5 "5.1.1" - request "^2.88.2" - request-promise-native "^1.0.8" - saxes "^5.0.0" - symbol-tree "^3.2.4" - tough-cookie "^3.0.1" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - ws "^7.2.3" - xml-name-validator "^3.0.0" - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= - -json5@2.x, json5@^2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" - integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== - dependencies: - minimist "^1.2.5" - -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - -jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.2.3" - verror "1.10.0" - -jssha@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/jssha/-/jssha-3.2.0.tgz#88ec50b866dd1411deaddbe6b3e3692e4c710f16" - integrity sha512-QuruyBENDWdN4tZwJbQq7/eAK85FqrI4oDbXjy5IBhYD+2pTJyBUWZe8ctWaCkrV0gy6AaelgOZZBMeswEa/6Q== - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -lodash.memoize@4.x: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= - -lodash.sortby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" - integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= - -lodash.uniqby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" - integrity sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI= - -lodash@^4.17.19: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -make-error@1.x, make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - -makeerror@1.0.x: - version "1.0.11" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" - integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= - dependencies: - tmpl "1.0.x" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -micromatch@^3.1.4: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -micromatch@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" - integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== - dependencies: - braces "^3.0.1" - picomatch "^2.0.5" - -mime-db@1.44.0: - version "1.44.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92" - integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg== - -mime-types@^2.1.12, mime-types@~2.1.19: - version "2.1.27" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f" - integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== - dependencies: - mime-db "1.44.0" - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@1.x: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= - -neo-async@^2.6.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== - -node-fetch@2.6.1, node-fetch@^2.6.0, node-fetch@^2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" - integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== - -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= - -node-modules-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" - integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= - -node-notifier@^8.0.0: - version "8.0.1" - resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-8.0.1.tgz#f86e89bbc925f2b068784b31f382afdc6ca56be1" - integrity sha512-BvEXF+UmsnAfYfoapKM9nGxnP+Wn7P91YfXmrKnfcYCx6VBeoN5Ez5Ogck6I8Bi5k4RlpqRYaw75pAwzX9OphA== - dependencies: - growly "^1.3.0" - is-wsl "^2.2.0" - semver "^7.3.2" - shellwords "^0.1.1" - uuid "^8.3.0" - which "^2.0.2" - -normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" - integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= - dependencies: - path-key "^2.0.0" - -npm-run-path@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -nwsapi@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" - integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== - -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -onetime@^5.1.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -optimism@^0.16.1: - version "0.16.1" - resolved "https://registry.yarnpkg.com/optimism/-/optimism-0.16.1.tgz#7c8efc1f3179f18307b887e18c15c5b7133f6e7d" - integrity sha512-64i+Uw3otrndfq5kaoGNoY7pvOhSsjFEN4bdEFh80MWVk/dbgJfMv7VFDeCT8LxNAlEVhQmdVEbfE7X2nWNIIg== - dependencies: - "@wry/context" "^0.6.0" - "@wry/trie" "^0.3.0" - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -p-each-series@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a" - integrity sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA== - -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" - integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= - -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parse-github-url@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395" - integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw== - -parse-json@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.1.0.tgz#f96088cdf24a8faa9aea9a009f2d9d942c999646" - integrity sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse5@5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" - integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" - integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= - -picomatch@^2.0.4, picomatch@^2.0.5: - version "2.2.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" - integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== - -pirates@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" - integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== - dependencies: - node-modules-regexp "^1.0.0" - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= - -prettier@^2.1.2: - version "2.2.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5" - integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q== - -pretty-format@^26.0.0, pretty-format@^26.6.2: - version "26.6.2" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93" - integrity sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg== - dependencies: - "@jest/types" "^26.6.2" - ansi-regex "^5.0.0" - ansi-styles "^4.0.0" - react-is "^17.0.1" - -prompts@^2.0.1: - version "2.4.0" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.0.tgz#4aa5de0723a231d1ee9121c40fdf663df73f61d7" - integrity sha512-awZAKrk3vN6CroQukBL+R9051a4R3zCZBlJm/HBfrSZ8iTpYix3VX1vU4mveiLpiwmOJT4wokTF9m6HUk4KqWQ== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.7.2: - version "15.7.2" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" - integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.8.1" - -psl@^1.1.28: - version "1.8.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" - integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== - -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -punycode@^2.1.0, punycode@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -qs@~6.5.2: - version "6.5.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" - integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== - -react-is@^16.7.0, react-is@^16.8.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-is@^17.0.1: - version "17.0.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.1.tgz#5b3531bd76a645a4c9fb6e693ed36419e3301339" - integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA== - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= - -request-promise-core@1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f" - integrity sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw== - dependencies: - lodash "^4.17.19" - -request-promise-native@^1.0.8: - version "1.0.9" - resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.9.tgz#e407120526a5efdc9a39b28a5679bf47b9d9dc28" - integrity sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g== - dependencies: - request-promise-core "1.1.4" - stealthy-require "^1.1.1" - tough-cookie "^2.3.3" - -request@^2.88.2: - version "2.88.2" - resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - -resolve@^1.10.0, resolve@^1.18.1: - version "1.19.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.19.0.tgz#1af5bf630409734a067cae29318aac7fa29a267c" - integrity sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== - dependencies: - is-core-module "^2.1.0" - path-parse "^1.0.6" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -rimraf@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rsvp@^4.8.4: - version "4.8.5" - resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" - integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== - -safe-buffer@^5.0.1, safe-buffer@^5.1.2: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sane@^4.0.3: - version "4.1.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" - integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== - dependencies: - "@cnakazawa/watch" "^1.0.3" - anymatch "^2.0.0" - capture-exit "^2.0.0" - exec-sh "^0.3.2" - execa "^1.0.0" - fb-watchman "^2.0.0" - micromatch "^3.1.4" - minimist "^1.1.1" - walker "~1.0.5" - -saxes@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@7.x, semver@^7.3.2: - version "7.3.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97" - integrity sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw== - dependencies: - lru-cache "^6.0.0" - -semver@^6.0.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" - integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= - dependencies: - shebang-regex "^1.0.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" - integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shellwords@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" - integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== - -signal-exit@^3.0.0, signal-exit@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" - integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== - -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.5.17, source-map-support@^0.5.6: - version "0.5.19" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" - integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - -source-map@^0.5.0, source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -spdx-correct@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" - integrity sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.7" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz#e9c18a410e5ed7e12442a549fbd8afa767038d65" - integrity sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= - -sshpk@^1.7.0: - version "1.16.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" - integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - -stack-utils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.3.tgz#cd5f030126ff116b78ccb3c027fe302713b61277" - integrity sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw== - dependencies: - escape-string-regexp "^2.0.0" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -stealthy-require@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" - integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= - -string-length@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.1.tgz#4a973bf31ef77c4edbceadd6af2611996985f8a1" - integrity sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" - integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.0" - -strip-ansi@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" - integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== - dependencies: - ansi-regex "^5.0.0" - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" - integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz#f663df252af5f37c5d49bbd7eeefa9e0b9e59e47" - integrity sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -symbol-observable@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" - integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -throat@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b" - integrity sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA== - -tmpl@1.0.x: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -tough-cookie@^2.3.3, tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - -tough-cookie@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.1.tgz#9df4f57e739c26930a018184887f4adb7dca73b2" - integrity sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg== - dependencies: - ip-regex "^2.1.0" - psl "^1.1.28" - punycode "^2.1.1" - -tr46@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.0.2.tgz#03273586def1595ae08fedb38d7733cee91d2479" - integrity sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg== - dependencies: - punycode "^2.1.1" - -ts-invariant@^0.4.0: - version "0.4.4" - resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.4.4.tgz#97a523518688f93aafad01b0e80eb803eb2abd86" - integrity sha512-uEtWkFM/sdZvRNNDL3Ehu4WVpwaulhwQszV8mrtcdeE8nN00BV9mAmQ88RkrBhFgl9gMgvjJLAQcZbnPXI9mlA== - dependencies: - tslib "^1.9.3" - -ts-invariant@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.9.0.tgz#4c60e9159a31742ab0103f13d7f63314fb5409c9" - integrity sha512-+JqhKqywk+ue5JjAC6eTWe57mOIxYXypMUkBDStkAzvnlfkDJ1KGyeMuNRMwOt6GXzHSC1UT9JecowpZDmgXqA== - dependencies: - tslib "^2.1.0" - -ts-jest@^26.4.4: - version "26.4.4" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-26.4.4.tgz#61f13fb21ab400853c532270e52cc0ed7e502c49" - integrity sha512-3lFWKbLxJm34QxyVNNCgXX1u4o/RV0myvA2y2Bxm46iGIjKlaY0own9gIckbjZJPn+WaJEnfPPJ20HHGpoq4yg== - dependencies: - "@types/jest" "26.x" - bs-logger "0.x" - buffer-from "1.x" - fast-json-stable-stringify "2.x" - jest-util "^26.1.0" - json5 "2.x" - lodash.memoize "4.x" - make-error "1.x" - mkdirp "1.x" - semver "7.x" - yargs-parser "20.x" - -ts-node@^9.0.0: - version "9.1.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.1.1.tgz#51a9a450a3e959401bda5f004a72d54b936d376d" - integrity sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg== - dependencies: - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.17" - yn "3.1.1" - -tslib@^1.10.0, tslib@^1.9.3: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.1.0, tslib@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e" - integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" - integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3" - integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw== - -uglify-js@^3.1.4: - version "3.13.6" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.6.tgz#6815ac7fdd155d03c83e2362bb717e5b39b74013" - integrity sha512-rRprLwl8RVaS+Qvx3Wh5hPfPBn9++G6xkGlUupya0s5aDmNjI7z3lnRLB3u7sN4OmbB0pWgzhM9BEJyiWAwtAA== - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -universalify@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" - integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== - -universalify@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" - integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -uri-js@^4.2.2: - version "4.4.0" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.0.tgz#aa714261de793e8a82347a7bcc9ce74e86f28602" - integrity sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g== - dependencies: - punycode "^2.1.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -uuid@^3.1.0, uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -uuid@^8.3.0: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -v8-to-istanbul@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-7.0.0.tgz#b4fe00e35649ef7785a9b7fcebcea05f37c332fc" - integrity sha512-fLL2rFuQpMtm9r8hrAV2apXX/WqHJ6+IC4/eQVdMDGBUgH/YMV4Gv3duk3kjmyg6uiQWBAA9nJwue4iJUOkHeA== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7, walker@~1.0.5: - version "1.0.7" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" - integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= - dependencies: - makeerror "1.0.x" - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^8.0.0: - version "8.4.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.4.0.tgz#50fb9615b05469591d2b2bd6dfaed2942ed72837" - integrity sha512-vwTUFf6V4zhcPkWp/4CQPr1TW9Ml6SF4lVyaIMBdJw5i6qUUJ1QWM4Z6YYVkfka0OUIzVo/0aNtGVGk256IKWw== - dependencies: - lodash.sortby "^4.7.0" - tr46 "^2.0.2" - webidl-conversions "^6.1.0" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= - -which@^1.2.9: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1, which@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@~1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wordwrap@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" - integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^7.2.3: - version "7.4.6" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" - integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== - -y18n@^5.0.5: - version "5.0.5" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18" - integrity sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yargs-parser@20.x, yargs-parser@^20.2.2: - version "20.2.4" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs@^15.4.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yargs@^16.1.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== - -zen-observable-ts@^0.8.21: - version "0.8.21" - resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-0.8.21.tgz#85d0031fbbde1eba3cd07d3ba90da241215f421d" - integrity sha512-Yj3yXweRc8LdRMrCC8nIc4kkjWecPAUVh0TI0OUrWXx6aX790vLcDlWca6I4vsyCGH3LpWxq0dJRcMOFoVqmeg== - dependencies: - tslib "^1.9.3" - zen-observable "^0.8.0" - -zen-observable-ts@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.1.0.tgz#2d1aa9d79b87058e9b75698b92791c1838551f83" - integrity sha512-1h4zlLSqI2cRLPJUHJFL8bCWHhkpuXkF+dbGkRaWjgDIG26DmzyshUMrdV/rL3UnR+mhaX4fRq8LPouq0MYYIA== - dependencies: - "@types/zen-observable" "0.8.3" - zen-observable "0.8.15" - -zen-observable@0.8.15, zen-observable@^0.8.0: - version "0.8.15" - resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15" - integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==