gql.ts

  1/* eslint-disable */
  2import * as types from './graphql';
  3import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
  4
  5/**
  6 * Map of all GraphQL operations in the project.
  7 *
  8 * This map has several performance disadvantages:
  9 * 1. It is not tree-shakeable, so it will include all operations in the project.
 10 * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
 11 * 3. It does not support dead code elimination, so it will add unused operations.
 12 *
 13 * Therefore it is highly recommended to use the babel or swc plugin for production.
 14 * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
 15 */
 16type Documents = {
 17    "\n  mutation BugAddComment($input: BugAddCommentInput!) {\n    bugAddComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": typeof types.BugAddCommentDocument,
 18    "\n  mutation BugAddCommentAndClose($input: BugAddCommentAndCloseInput!) {\n    bugAddCommentAndClose(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": typeof types.BugAddCommentAndCloseDocument,
 19    "\n  mutation BugAddCommentAndReopen($input: BugAddCommentAndReopenInput!) {\n    bugAddCommentAndReopen(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": typeof types.BugAddCommentAndReopenDocument,
 20    "\n  mutation BugStatusOpen($input: BugStatusOpenInput!) {\n    bugStatusOpen(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n": typeof types.BugStatusOpenDocument,
 21    "\n  mutation BugStatusClose($input: BugStatusCloseInput!) {\n    bugStatusClose(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n": typeof types.BugStatusCloseDocument,
 22    "\n  mutation BugChangeLabels($input: BugChangeLabelInput) {\n    bugChangeLabels(input: $input) {\n      bug {\n        id\n        labels {\n          name\n          ...LabelFields\n        }\n      }\n    }\n  }\n": typeof types.BugChangeLabelsDocument,
 23    "\n  fragment BugCreateCommentFields on BugCreateTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n": typeof types.BugCreateCommentFieldsFragmentDoc,
 24    "\n  fragment BugAddCommentFields on BugAddCommentTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n": typeof types.BugAddCommentFieldsFragmentDoc,
 25    "\n  fragment LabelChangeFields on BugLabelChangeTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    added {\n      ...LabelFields\n    }\n    removed {\n      ...LabelFields\n    }\n  }\n": typeof types.LabelChangeFieldsFragmentDoc,
 26    "\n  fragment StatusChangeFields on BugSetStatusTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    status\n  }\n": typeof types.StatusChangeFieldsFragmentDoc,
 27    "\n  fragment TitleChangeFields on BugSetTitleTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    title\n    was\n  }\n": typeof types.TitleChangeFieldsFragmentDoc,
 28    "\n  mutation BugEditComment($input: BugEditCommentInput!) {\n    bugEditComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": typeof types.BugEditCommentDocument,
 29    "\n  mutation BugSetTitle($input: BugSetTitleInput!) {\n    bugSetTitle(input: $input) {\n      bug {\n        id\n        title\n      }\n    }\n  }\n": typeof types.BugSetTitleDocument,
 30    "\n  query CommitList($repo: String, $ref: String!, $path: String, $after: String, $first: Int) {\n    repository(ref: $repo) {\n      commits(ref: $ref, path: $path, after: $after, first: $first) {\n        nodes {\n          hash\n          shortHash\n          message\n          authorName\n          date\n        }\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n      }\n    }\n  }\n": typeof types.CommitListDocument,
 31    "\n  query FileDiff($repo: String, $hash: String!, $path: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        diff(path: $path) {\n          path\n          oldPath\n          isBinary\n          isNew\n          isDelete\n          hunks {\n            oldStart\n            oldLines\n            newStart\n            newLines\n            lines {\n              type\n              content\n              oldLine\n              newLine\n            }\n          }\n        }\n      }\n    }\n  }\n": typeof types.FileDiffDocument,
 32    "\n  fragment RefSelectorRefs on GitRefConnection {\n    nodes {\n      name\n      shortName\n      type\n    }\n  }\n": typeof types.RefSelectorRefsFragmentDoc,
 33    "\n  fragment IdentitySummary on Identity {\n    id\n    humanId\n    displayName\n    avatarUrl\n  }\n": typeof types.IdentitySummaryFragmentDoc,
 34    "\n  fragment BugSummary on Bug {\n    id\n    humanId\n    status\n    title\n    labels {\n      name\n      ...LabelFields\n    }\n    author {\n      ...IdentitySummary\n    }\n    createdAt\n    comments {\n      totalCount\n    }\n  }\n": typeof types.BugSummaryFragmentDoc,
 35    "\n  fragment LabelFields on Label {\n    name\n    color {\n      R\n      G\n      B\n    }\n  }\n": typeof types.LabelFieldsFragmentDoc,
 36    "\n  query UserIdentity {\n    repository {\n      userIdentity {\n        id\n        humanId\n        name\n        displayName\n        avatarUrl\n        email\n        login\n      }\n    }\n  }\n": typeof types.UserIdentityDocument,
 37    "\n  query CodePageRefs($repo: String) {\n    repository(ref: $repo) {\n      name\n      head {\n        shortName\n      }\n      refs {\n        ...RefSelectorRefs\n      }\n    }\n  }\n": typeof types.CodePageRefsDocument,
 38    "\n  query CodePageBlob($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        path\n        hash\n        text\n        size\n        isBinary\n        isTruncated\n      }\n    }\n  }\n": typeof types.CodePageBlobDocument,
 39    "\n  query CodePageTree($repo: String, $ref: String!, $path: String) {\n    repository(ref: $repo) {\n      tree(ref: $ref, path: $path) {\n        name\n        type\n        hash\n      }\n    }\n  }\n": typeof types.CodePageTreeDocument,
 40    "\n  query CodePageLastCommits(\n    $repo: String\n    $ref: String!\n    $path: String\n    $names: [String!]!\n  ) {\n    repository(ref: $repo) {\n      lastCommits(ref: $ref, path: $path, names: $names) {\n        name\n        commit {\n          hash\n          shortHash\n          message\n          date\n        }\n      }\n    }\n  }\n": typeof types.CodePageLastCommitsDocument,
 41    "\n  query CodePageReadme($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        text\n      }\n    }\n  }\n": typeof types.CodePageReadmeDocument,
 42    "\n  query AllIdentities($ref: String) {\n    repository(ref: $ref) {\n      allIdentities(first: 1000) {\n        nodes {\n          id\n          humanId\n          name\n          email\n          login\n          displayName\n          avatarUrl\n        }\n      }\n    }\n  }\n": typeof types.AllIdentitiesDocument,
 43    "\n  query ValidLabels($ref: String) {\n    repository(ref: $ref) {\n      validLabels {\n        nodes {\n          name\n          color {\n            R\n            G\n            B\n          }\n          ...LabelFields\n        }\n      }\n    }\n  }\n": typeof types.ValidLabelsDocument,
 44    "\n  query BugDetail($ref: String, $prefix: String!) {\n    repository(ref: $ref) {\n      bug(prefix: $prefix) {\n        ...BugSummary\n        lastEdit\n        participants(first: 20) {\n          nodes {\n            ...IdentitySummary\n          }\n        }\n        timeline(first: 250) {\n          nodes {\n            __typename\n            id\n            ... on BugCreateTimelineItem {\n              ...BugCreateCommentFields\n            }\n            ... on BugAddCommentTimelineItem {\n              ...BugAddCommentFields\n            }\n            ... on BugLabelChangeTimelineItem {\n              ...LabelChangeFields\n            }\n            ... on BugSetStatusTimelineItem {\n              ...StatusChangeFields\n            }\n            ... on BugSetTitleTimelineItem {\n              ...TitleChangeFields\n            }\n          }\n        }\n      }\n    }\n  }\n": typeof types.BugDetailDocument,
 45    "\n  query BugList(\n    $ref: String\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $first: Int\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: $first, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n": typeof types.BugListDocument,
 46    "\n  mutation BugCreate($input: BugCreateInput!) {\n    bugCreate(input: $input) {\n      bug {\n        id\n        humanId\n      }\n    }\n  }\n": typeof types.BugCreateDocument,
 47    "\n  query UserProfile(\n    $ref: String\n    $prefix: String!\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      identity(prefix: $prefix) {\n        id\n        humanId\n        name\n        email\n        login\n        displayName\n        avatarUrl\n        isProtected\n      }\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: 25, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n": typeof types.UserProfileDocument,
 48    "\n  query CommitPageDetail($repo: String, $hash: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        hash\n        shortHash\n        message\n        fullMessage\n        authorName\n        authorEmail\n        date\n        parents\n        files {\n          nodes {\n            path\n            oldPath\n            status\n          }\n        }\n      }\n    }\n  }\n": typeof types.CommitPageDetailDocument,
 49    "\n  query Repositories {\n    repositories {\n      nodes {\n        name\n      }\n      totalCount\n    }\n  }\n": typeof types.RepositoriesDocument,
 50};
 51const documents: Documents = {
 52    "\n  mutation BugAddComment($input: BugAddCommentInput!) {\n    bugAddComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": types.BugAddCommentDocument,
 53    "\n  mutation BugAddCommentAndClose($input: BugAddCommentAndCloseInput!) {\n    bugAddCommentAndClose(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": types.BugAddCommentAndCloseDocument,
 54    "\n  mutation BugAddCommentAndReopen($input: BugAddCommentAndReopenInput!) {\n    bugAddCommentAndReopen(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": types.BugAddCommentAndReopenDocument,
 55    "\n  mutation BugStatusOpen($input: BugStatusOpenInput!) {\n    bugStatusOpen(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n": types.BugStatusOpenDocument,
 56    "\n  mutation BugStatusClose($input: BugStatusCloseInput!) {\n    bugStatusClose(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n": types.BugStatusCloseDocument,
 57    "\n  mutation BugChangeLabels($input: BugChangeLabelInput) {\n    bugChangeLabels(input: $input) {\n      bug {\n        id\n        labels {\n          name\n          ...LabelFields\n        }\n      }\n    }\n  }\n": types.BugChangeLabelsDocument,
 58    "\n  fragment BugCreateCommentFields on BugCreateTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n": types.BugCreateCommentFieldsFragmentDoc,
 59    "\n  fragment BugAddCommentFields on BugAddCommentTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n": types.BugAddCommentFieldsFragmentDoc,
 60    "\n  fragment LabelChangeFields on BugLabelChangeTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    added {\n      ...LabelFields\n    }\n    removed {\n      ...LabelFields\n    }\n  }\n": types.LabelChangeFieldsFragmentDoc,
 61    "\n  fragment StatusChangeFields on BugSetStatusTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    status\n  }\n": types.StatusChangeFieldsFragmentDoc,
 62    "\n  fragment TitleChangeFields on BugSetTitleTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    title\n    was\n  }\n": types.TitleChangeFieldsFragmentDoc,
 63    "\n  mutation BugEditComment($input: BugEditCommentInput!) {\n    bugEditComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n": types.BugEditCommentDocument,
 64    "\n  mutation BugSetTitle($input: BugSetTitleInput!) {\n    bugSetTitle(input: $input) {\n      bug {\n        id\n        title\n      }\n    }\n  }\n": types.BugSetTitleDocument,
 65    "\n  query CommitList($repo: String, $ref: String!, $path: String, $after: String, $first: Int) {\n    repository(ref: $repo) {\n      commits(ref: $ref, path: $path, after: $after, first: $first) {\n        nodes {\n          hash\n          shortHash\n          message\n          authorName\n          date\n        }\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n      }\n    }\n  }\n": types.CommitListDocument,
 66    "\n  query FileDiff($repo: String, $hash: String!, $path: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        diff(path: $path) {\n          path\n          oldPath\n          isBinary\n          isNew\n          isDelete\n          hunks {\n            oldStart\n            oldLines\n            newStart\n            newLines\n            lines {\n              type\n              content\n              oldLine\n              newLine\n            }\n          }\n        }\n      }\n    }\n  }\n": types.FileDiffDocument,
 67    "\n  fragment RefSelectorRefs on GitRefConnection {\n    nodes {\n      name\n      shortName\n      type\n    }\n  }\n": types.RefSelectorRefsFragmentDoc,
 68    "\n  fragment IdentitySummary on Identity {\n    id\n    humanId\n    displayName\n    avatarUrl\n  }\n": types.IdentitySummaryFragmentDoc,
 69    "\n  fragment BugSummary on Bug {\n    id\n    humanId\n    status\n    title\n    labels {\n      name\n      ...LabelFields\n    }\n    author {\n      ...IdentitySummary\n    }\n    createdAt\n    comments {\n      totalCount\n    }\n  }\n": types.BugSummaryFragmentDoc,
 70    "\n  fragment LabelFields on Label {\n    name\n    color {\n      R\n      G\n      B\n    }\n  }\n": types.LabelFieldsFragmentDoc,
 71    "\n  query UserIdentity {\n    repository {\n      userIdentity {\n        id\n        humanId\n        name\n        displayName\n        avatarUrl\n        email\n        login\n      }\n    }\n  }\n": types.UserIdentityDocument,
 72    "\n  query CodePageRefs($repo: String) {\n    repository(ref: $repo) {\n      name\n      head {\n        shortName\n      }\n      refs {\n        ...RefSelectorRefs\n      }\n    }\n  }\n": types.CodePageRefsDocument,
 73    "\n  query CodePageBlob($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        path\n        hash\n        text\n        size\n        isBinary\n        isTruncated\n      }\n    }\n  }\n": types.CodePageBlobDocument,
 74    "\n  query CodePageTree($repo: String, $ref: String!, $path: String) {\n    repository(ref: $repo) {\n      tree(ref: $ref, path: $path) {\n        name\n        type\n        hash\n      }\n    }\n  }\n": types.CodePageTreeDocument,
 75    "\n  query CodePageLastCommits(\n    $repo: String\n    $ref: String!\n    $path: String\n    $names: [String!]!\n  ) {\n    repository(ref: $repo) {\n      lastCommits(ref: $ref, path: $path, names: $names) {\n        name\n        commit {\n          hash\n          shortHash\n          message\n          date\n        }\n      }\n    }\n  }\n": types.CodePageLastCommitsDocument,
 76    "\n  query CodePageReadme($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        text\n      }\n    }\n  }\n": types.CodePageReadmeDocument,
 77    "\n  query AllIdentities($ref: String) {\n    repository(ref: $ref) {\n      allIdentities(first: 1000) {\n        nodes {\n          id\n          humanId\n          name\n          email\n          login\n          displayName\n          avatarUrl\n        }\n      }\n    }\n  }\n": types.AllIdentitiesDocument,
 78    "\n  query ValidLabels($ref: String) {\n    repository(ref: $ref) {\n      validLabels {\n        nodes {\n          name\n          color {\n            R\n            G\n            B\n          }\n          ...LabelFields\n        }\n      }\n    }\n  }\n": types.ValidLabelsDocument,
 79    "\n  query BugDetail($ref: String, $prefix: String!) {\n    repository(ref: $ref) {\n      bug(prefix: $prefix) {\n        ...BugSummary\n        lastEdit\n        participants(first: 20) {\n          nodes {\n            ...IdentitySummary\n          }\n        }\n        timeline(first: 250) {\n          nodes {\n            __typename\n            id\n            ... on BugCreateTimelineItem {\n              ...BugCreateCommentFields\n            }\n            ... on BugAddCommentTimelineItem {\n              ...BugAddCommentFields\n            }\n            ... on BugLabelChangeTimelineItem {\n              ...LabelChangeFields\n            }\n            ... on BugSetStatusTimelineItem {\n              ...StatusChangeFields\n            }\n            ... on BugSetTitleTimelineItem {\n              ...TitleChangeFields\n            }\n          }\n        }\n      }\n    }\n  }\n": types.BugDetailDocument,
 80    "\n  query BugList(\n    $ref: String\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $first: Int\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: $first, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n": types.BugListDocument,
 81    "\n  mutation BugCreate($input: BugCreateInput!) {\n    bugCreate(input: $input) {\n      bug {\n        id\n        humanId\n      }\n    }\n  }\n": types.BugCreateDocument,
 82    "\n  query UserProfile(\n    $ref: String\n    $prefix: String!\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      identity(prefix: $prefix) {\n        id\n        humanId\n        name\n        email\n        login\n        displayName\n        avatarUrl\n        isProtected\n      }\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: 25, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n": types.UserProfileDocument,
 83    "\n  query CommitPageDetail($repo: String, $hash: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        hash\n        shortHash\n        message\n        fullMessage\n        authorName\n        authorEmail\n        date\n        parents\n        files {\n          nodes {\n            path\n            oldPath\n            status\n          }\n        }\n      }\n    }\n  }\n": types.CommitPageDetailDocument,
 84    "\n  query Repositories {\n    repositories {\n      nodes {\n        name\n      }\n      totalCount\n    }\n  }\n": types.RepositoriesDocument,
 85};
 86
 87/**
 88 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
 89 *
 90 *
 91 * @example
 92 * ```ts
 93 * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
 94 * ```
 95 *
 96 * The query argument is unknown!
 97 * Please regenerate the types.
 98 */
 99export function graphql(source: string): unknown;
100
101/**
102 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
103 */
104export function graphql(source: "\n  mutation BugAddComment($input: BugAddCommentInput!) {\n    bugAddComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugAddComment($input: BugAddCommentInput!) {\n    bugAddComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"];
105/**
106 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
107 */
108export function graphql(source: "\n  mutation BugAddCommentAndClose($input: BugAddCommentAndCloseInput!) {\n    bugAddCommentAndClose(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugAddCommentAndClose($input: BugAddCommentAndCloseInput!) {\n    bugAddCommentAndClose(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"];
109/**
110 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
111 */
112export function graphql(source: "\n  mutation BugAddCommentAndReopen($input: BugAddCommentAndReopenInput!) {\n    bugAddCommentAndReopen(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugAddCommentAndReopen($input: BugAddCommentAndReopenInput!) {\n    bugAddCommentAndReopen(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"];
113/**
114 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
115 */
116export function graphql(source: "\n  mutation BugStatusOpen($input: BugStatusOpenInput!) {\n    bugStatusOpen(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugStatusOpen($input: BugStatusOpenInput!) {\n    bugStatusOpen(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n"];
117/**
118 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
119 */
120export function graphql(source: "\n  mutation BugStatusClose($input: BugStatusCloseInput!) {\n    bugStatusClose(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugStatusClose($input: BugStatusCloseInput!) {\n    bugStatusClose(input: $input) {\n      bug {\n        id\n        status\n      }\n    }\n  }\n"];
121/**
122 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
123 */
124export function graphql(source: "\n  mutation BugChangeLabels($input: BugChangeLabelInput) {\n    bugChangeLabels(input: $input) {\n      bug {\n        id\n        labels {\n          name\n          ...LabelFields\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugChangeLabels($input: BugChangeLabelInput) {\n    bugChangeLabels(input: $input) {\n      bug {\n        id\n        labels {\n          name\n          ...LabelFields\n        }\n      }\n    }\n  }\n"];
125/**
126 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
127 */
128export function graphql(source: "\n  fragment BugCreateCommentFields on BugCreateTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n"): (typeof documents)["\n  fragment BugCreateCommentFields on BugCreateTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n"];
129/**
130 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
131 */
132export function graphql(source: "\n  fragment BugAddCommentFields on BugAddCommentTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n"): (typeof documents)["\n  fragment BugAddCommentFields on BugAddCommentTimelineItem {\n    author {\n      ...IdentitySummary\n    }\n    message\n    createdAt\n    lastEdit\n    edited\n  }\n"];
133/**
134 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
135 */
136export function graphql(source: "\n  fragment LabelChangeFields on BugLabelChangeTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    added {\n      ...LabelFields\n    }\n    removed {\n      ...LabelFields\n    }\n  }\n"): (typeof documents)["\n  fragment LabelChangeFields on BugLabelChangeTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    added {\n      ...LabelFields\n    }\n    removed {\n      ...LabelFields\n    }\n  }\n"];
137/**
138 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
139 */
140export function graphql(source: "\n  fragment StatusChangeFields on BugSetStatusTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    status\n  }\n"): (typeof documents)["\n  fragment StatusChangeFields on BugSetStatusTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    status\n  }\n"];
141/**
142 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
143 */
144export function graphql(source: "\n  fragment TitleChangeFields on BugSetTitleTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    title\n    was\n  }\n"): (typeof documents)["\n  fragment TitleChangeFields on BugSetTitleTimelineItem {\n    author {\n      humanId\n      displayName\n    }\n    date\n    title\n    was\n  }\n"];
145/**
146 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
147 */
148export function graphql(source: "\n  mutation BugEditComment($input: BugEditCommentInput!) {\n    bugEditComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugEditComment($input: BugEditCommentInput!) {\n    bugEditComment(input: $input) {\n      bug {\n        id\n      }\n    }\n  }\n"];
149/**
150 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
151 */
152export function graphql(source: "\n  mutation BugSetTitle($input: BugSetTitleInput!) {\n    bugSetTitle(input: $input) {\n      bug {\n        id\n        title\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugSetTitle($input: BugSetTitleInput!) {\n    bugSetTitle(input: $input) {\n      bug {\n        id\n        title\n      }\n    }\n  }\n"];
153/**
154 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
155 */
156export function graphql(source: "\n  query CommitList($repo: String, $ref: String!, $path: String, $after: String, $first: Int) {\n    repository(ref: $repo) {\n      commits(ref: $ref, path: $path, after: $after, first: $first) {\n        nodes {\n          hash\n          shortHash\n          message\n          authorName\n          date\n        }\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query CommitList($repo: String, $ref: String!, $path: String, $after: String, $first: Int) {\n    repository(ref: $repo) {\n      commits(ref: $ref, path: $path, after: $after, first: $first) {\n        nodes {\n          hash\n          shortHash\n          message\n          authorName\n          date\n        }\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n      }\n    }\n  }\n"];
157/**
158 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
159 */
160export function graphql(source: "\n  query FileDiff($repo: String, $hash: String!, $path: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        diff(path: $path) {\n          path\n          oldPath\n          isBinary\n          isNew\n          isDelete\n          hunks {\n            oldStart\n            oldLines\n            newStart\n            newLines\n            lines {\n              type\n              content\n              oldLine\n              newLine\n            }\n          }\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query FileDiff($repo: String, $hash: String!, $path: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        diff(path: $path) {\n          path\n          oldPath\n          isBinary\n          isNew\n          isDelete\n          hunks {\n            oldStart\n            oldLines\n            newStart\n            newLines\n            lines {\n              type\n              content\n              oldLine\n              newLine\n            }\n          }\n        }\n      }\n    }\n  }\n"];
161/**
162 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
163 */
164export function graphql(source: "\n  fragment RefSelectorRefs on GitRefConnection {\n    nodes {\n      name\n      shortName\n      type\n    }\n  }\n"): (typeof documents)["\n  fragment RefSelectorRefs on GitRefConnection {\n    nodes {\n      name\n      shortName\n      type\n    }\n  }\n"];
165/**
166 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
167 */
168export function graphql(source: "\n  fragment IdentitySummary on Identity {\n    id\n    humanId\n    displayName\n    avatarUrl\n  }\n"): (typeof documents)["\n  fragment IdentitySummary on Identity {\n    id\n    humanId\n    displayName\n    avatarUrl\n  }\n"];
169/**
170 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
171 */
172export function graphql(source: "\n  fragment BugSummary on Bug {\n    id\n    humanId\n    status\n    title\n    labels {\n      name\n      ...LabelFields\n    }\n    author {\n      ...IdentitySummary\n    }\n    createdAt\n    comments {\n      totalCount\n    }\n  }\n"): (typeof documents)["\n  fragment BugSummary on Bug {\n    id\n    humanId\n    status\n    title\n    labels {\n      name\n      ...LabelFields\n    }\n    author {\n      ...IdentitySummary\n    }\n    createdAt\n    comments {\n      totalCount\n    }\n  }\n"];
173/**
174 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
175 */
176export function graphql(source: "\n  fragment LabelFields on Label {\n    name\n    color {\n      R\n      G\n      B\n    }\n  }\n"): (typeof documents)["\n  fragment LabelFields on Label {\n    name\n    color {\n      R\n      G\n      B\n    }\n  }\n"];
177/**
178 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
179 */
180export function graphql(source: "\n  query UserIdentity {\n    repository {\n      userIdentity {\n        id\n        humanId\n        name\n        displayName\n        avatarUrl\n        email\n        login\n      }\n    }\n  }\n"): (typeof documents)["\n  query UserIdentity {\n    repository {\n      userIdentity {\n        id\n        humanId\n        name\n        displayName\n        avatarUrl\n        email\n        login\n      }\n    }\n  }\n"];
181/**
182 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
183 */
184export function graphql(source: "\n  query CodePageRefs($repo: String) {\n    repository(ref: $repo) {\n      name\n      head {\n        shortName\n      }\n      refs {\n        ...RefSelectorRefs\n      }\n    }\n  }\n"): (typeof documents)["\n  query CodePageRefs($repo: String) {\n    repository(ref: $repo) {\n      name\n      head {\n        shortName\n      }\n      refs {\n        ...RefSelectorRefs\n      }\n    }\n  }\n"];
185/**
186 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
187 */
188export function graphql(source: "\n  query CodePageBlob($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        path\n        hash\n        text\n        size\n        isBinary\n        isTruncated\n      }\n    }\n  }\n"): (typeof documents)["\n  query CodePageBlob($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        path\n        hash\n        text\n        size\n        isBinary\n        isTruncated\n      }\n    }\n  }\n"];
189/**
190 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
191 */
192export function graphql(source: "\n  query CodePageTree($repo: String, $ref: String!, $path: String) {\n    repository(ref: $repo) {\n      tree(ref: $ref, path: $path) {\n        name\n        type\n        hash\n      }\n    }\n  }\n"): (typeof documents)["\n  query CodePageTree($repo: String, $ref: String!, $path: String) {\n    repository(ref: $repo) {\n      tree(ref: $ref, path: $path) {\n        name\n        type\n        hash\n      }\n    }\n  }\n"];
193/**
194 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
195 */
196export function graphql(source: "\n  query CodePageLastCommits(\n    $repo: String\n    $ref: String!\n    $path: String\n    $names: [String!]!\n  ) {\n    repository(ref: $repo) {\n      lastCommits(ref: $ref, path: $path, names: $names) {\n        name\n        commit {\n          hash\n          shortHash\n          message\n          date\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query CodePageLastCommits(\n    $repo: String\n    $ref: String!\n    $path: String\n    $names: [String!]!\n  ) {\n    repository(ref: $repo) {\n      lastCommits(ref: $ref, path: $path, names: $names) {\n        name\n        commit {\n          hash\n          shortHash\n          message\n          date\n        }\n      }\n    }\n  }\n"];
197/**
198 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
199 */
200export function graphql(source: "\n  query CodePageReadme($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        text\n      }\n    }\n  }\n"): (typeof documents)["\n  query CodePageReadme($repo: String, $ref: String!, $path: String!) {\n    repository(ref: $repo) {\n      blob(ref: $ref, path: $path) {\n        text\n      }\n    }\n  }\n"];
201/**
202 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
203 */
204export function graphql(source: "\n  query AllIdentities($ref: String) {\n    repository(ref: $ref) {\n      allIdentities(first: 1000) {\n        nodes {\n          id\n          humanId\n          name\n          email\n          login\n          displayName\n          avatarUrl\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query AllIdentities($ref: String) {\n    repository(ref: $ref) {\n      allIdentities(first: 1000) {\n        nodes {\n          id\n          humanId\n          name\n          email\n          login\n          displayName\n          avatarUrl\n        }\n      }\n    }\n  }\n"];
205/**
206 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
207 */
208export function graphql(source: "\n  query ValidLabels($ref: String) {\n    repository(ref: $ref) {\n      validLabels {\n        nodes {\n          name\n          color {\n            R\n            G\n            B\n          }\n          ...LabelFields\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query ValidLabels($ref: String) {\n    repository(ref: $ref) {\n      validLabels {\n        nodes {\n          name\n          color {\n            R\n            G\n            B\n          }\n          ...LabelFields\n        }\n      }\n    }\n  }\n"];
209/**
210 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
211 */
212export function graphql(source: "\n  query BugDetail($ref: String, $prefix: String!) {\n    repository(ref: $ref) {\n      bug(prefix: $prefix) {\n        ...BugSummary\n        lastEdit\n        participants(first: 20) {\n          nodes {\n            ...IdentitySummary\n          }\n        }\n        timeline(first: 250) {\n          nodes {\n            __typename\n            id\n            ... on BugCreateTimelineItem {\n              ...BugCreateCommentFields\n            }\n            ... on BugAddCommentTimelineItem {\n              ...BugAddCommentFields\n            }\n            ... on BugLabelChangeTimelineItem {\n              ...LabelChangeFields\n            }\n            ... on BugSetStatusTimelineItem {\n              ...StatusChangeFields\n            }\n            ... on BugSetTitleTimelineItem {\n              ...TitleChangeFields\n            }\n          }\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query BugDetail($ref: String, $prefix: String!) {\n    repository(ref: $ref) {\n      bug(prefix: $prefix) {\n        ...BugSummary\n        lastEdit\n        participants(first: 20) {\n          nodes {\n            ...IdentitySummary\n          }\n        }\n        timeline(first: 250) {\n          nodes {\n            __typename\n            id\n            ... on BugCreateTimelineItem {\n              ...BugCreateCommentFields\n            }\n            ... on BugAddCommentTimelineItem {\n              ...BugAddCommentFields\n            }\n            ... on BugLabelChangeTimelineItem {\n              ...LabelChangeFields\n            }\n            ... on BugSetStatusTimelineItem {\n              ...StatusChangeFields\n            }\n            ... on BugSetTitleTimelineItem {\n              ...TitleChangeFields\n            }\n          }\n        }\n      }\n    }\n  }\n"];
213/**
214 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
215 */
216export function graphql(source: "\n  query BugList(\n    $ref: String\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $first: Int\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: $first, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query BugList(\n    $ref: String\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $first: Int\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: $first, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n"];
217/**
218 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
219 */
220export function graphql(source: "\n  mutation BugCreate($input: BugCreateInput!) {\n    bugCreate(input: $input) {\n      bug {\n        id\n        humanId\n      }\n    }\n  }\n"): (typeof documents)["\n  mutation BugCreate($input: BugCreateInput!) {\n    bugCreate(input: $input) {\n      bug {\n        id\n        humanId\n      }\n    }\n  }\n"];
221/**
222 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
223 */
224export function graphql(source: "\n  query UserProfile(\n    $ref: String\n    $prefix: String!\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      identity(prefix: $prefix) {\n        id\n        humanId\n        name\n        email\n        login\n        displayName\n        avatarUrl\n        isProtected\n      }\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: 25, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query UserProfile(\n    $ref: String\n    $prefix: String!\n    $openQuery: String!\n    $closedQuery: String!\n    $listQuery: String!\n    $after: String\n  ) {\n    repository(ref: $ref) {\n      identity(prefix: $prefix) {\n        id\n        humanId\n        name\n        email\n        login\n        displayName\n        avatarUrl\n        isProtected\n      }\n      openCount: allBugs(query: $openQuery, first: 1) {\n        totalCount\n      }\n      closedCount: allBugs(query: $closedQuery, first: 1) {\n        totalCount\n      }\n      bugs: allBugs(query: $listQuery, first: 25, after: $after) {\n        totalCount\n        pageInfo {\n          hasNextPage\n          endCursor\n        }\n        nodes {\n          ...BugSummary\n        }\n      }\n    }\n  }\n"];
225/**
226 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
227 */
228export function graphql(source: "\n  query CommitPageDetail($repo: String, $hash: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        hash\n        shortHash\n        message\n        fullMessage\n        authorName\n        authorEmail\n        date\n        parents\n        files {\n          nodes {\n            path\n            oldPath\n            status\n          }\n        }\n      }\n    }\n  }\n"): (typeof documents)["\n  query CommitPageDetail($repo: String, $hash: String!) {\n    repository(ref: $repo) {\n      commit(hash: $hash) {\n        hash\n        shortHash\n        message\n        fullMessage\n        authorName\n        authorEmail\n        date\n        parents\n        files {\n          nodes {\n            path\n            oldPath\n            status\n          }\n        }\n      }\n    }\n  }\n"];
229/**
230 * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
231 */
232export function graphql(source: "\n  query Repositories {\n    repositories {\n      nodes {\n        name\n      }\n      totalCount\n    }\n  }\n"): (typeof documents)["\n  query Repositories {\n    repositories {\n      nodes {\n        name\n      }\n      totalCount\n    }\n  }\n"];
233
234export function graphql(source: string) {
235  return (documents as any)[source] ?? {};
236}
237
238export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<  infer TType,  any>  ? TType  : never;