master
  1// DO NOT EDIT. This is a generated file. Instead of this file, edit "user.graphql".
  2
  3const User = `#graphql
  4fragment User on User {
  5  id
  6  login
  7  name
  8  avatarUrl
  9  bio
 10  company
 11  location
 12  email
 13  twitterUsername
 14  websiteUrl
 15  status {
 16    createdAt
 17    emoji
 18    message
 19  }
 20  createdAt
 21  followers {
 22    totalCount
 23  }
 24  following {
 25    totalCount
 26  }
 27  anyPinnableItems
 28  pinnedItems(first: 6) {
 29    totalCount
 30    nodes {
 31      ... on Gist {
 32        name
 33      }
 34      ... on Repository {
 35        name
 36      }
 37    }
 38  }
 39  sponsoring {
 40    totalCount
 41  }
 42  sponsors {
 43    totalCount
 44  }
 45  starredRepositories {
 46    totalCount
 47  }
 48  publicKeys(first: 5) {
 49    totalCount
 50    nodes {
 51      key
 52    }
 53  }
 54}`
 55
 56export type User = {
 57  id: string
 58  login: string
 59  name: string | null
 60  avatarUrl: string
 61  bio: string | null
 62  company: string | null
 63  location: string | null
 64  email: string
 65  twitterUsername: string | null
 66  websiteUrl: string | null
 67  status: {
 68    createdAt: string
 69    emoji: string | null
 70    message: string | null
 71  } | null
 72  createdAt: string
 73  followers: {
 74    totalCount: number
 75  }
 76  following: {
 77    totalCount: number
 78  }
 79  anyPinnableItems: boolean
 80  pinnedItems: {
 81    totalCount: number
 82    nodes: Array<
 83      | ({} & {
 84          name: string
 85        } & {
 86          name: string
 87        })
 88      | null
 89    > | null
 90  }
 91  sponsoring: {
 92    totalCount: number
 93  }
 94  sponsors: {
 95    totalCount: number
 96  }
 97  starredRepositories: {
 98    totalCount: number
 99  }
100  publicKeys: {
101    totalCount: number
102    nodes: Array<{
103      key: string
104    }> | null
105  }
106}
107
108export const UserQuery = `#graphql
109${User}
110query UserQuery($login: String!) {
111  user(login: $login) {
112    ...User
113  }
114  rateLimit {
115    limit
116    cost
117    remaining
118    resetAt
119  }
120}` as string & UserQuery
121
122export type UserQuery = (vars: { login: string }) => {
123  user: ({} & User) | null
124  rateLimit: {
125    limit: number
126    cost: number
127    remaining: number
128    resetAt: string
129  } | null
130}