graphql.tsx 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
  1. import { gql } from '@apollo/client';
  2. import * as Apollo from '@apollo/client';
  3. export type Maybe<T> = T | null;
  4. export type InputMaybe<T> = Maybe<T>;
  5. export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
  6. export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
  7. export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
  8. const defaultOptions = {} as const;
  9. /** All built-in and custom scalars, mapped to their actual values */
  10. export type Scalars = {
  11. ID: string;
  12. String: string;
  13. Boolean: boolean;
  14. Int: number;
  15. Float: number;
  16. /** The javascript `Date` as string. Type represents date and time as the ISO Date string. */
  17. DateTime: any;
  18. /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
  19. JSONObject: any;
  20. };
  21. export type App = {
  22. __typename?: 'App';
  23. config: Scalars['JSONObject'];
  24. createdAt: Scalars['DateTime'];
  25. domain?: Maybe<Scalars['String']>;
  26. exposed: Scalars['Boolean'];
  27. id: Scalars['String'];
  28. info?: Maybe<AppInfo>;
  29. lastOpened: Scalars['DateTime'];
  30. numOpened: Scalars['Float'];
  31. status: AppStatusEnum;
  32. updateInfo?: Maybe<UpdateInfo>;
  33. updatedAt: Scalars['DateTime'];
  34. version?: Maybe<Scalars['Float']>;
  35. };
  36. export enum AppCategoriesEnum {
  37. Automation = 'AUTOMATION',
  38. Books = 'BOOKS',
  39. Data = 'DATA',
  40. Development = 'DEVELOPMENT',
  41. Featured = 'FEATURED',
  42. Finance = 'FINANCE',
  43. Gaming = 'GAMING',
  44. Media = 'MEDIA',
  45. Music = 'MUSIC',
  46. Network = 'NETWORK',
  47. Photography = 'PHOTOGRAPHY',
  48. Security = 'SECURITY',
  49. Social = 'SOCIAL',
  50. Utilities = 'UTILITIES',
  51. }
  52. export type AppInfo = {
  53. __typename?: 'AppInfo';
  54. author: Scalars['String'];
  55. available: Scalars['Boolean'];
  56. categories: Array<AppCategoriesEnum>;
  57. description: Scalars['String'];
  58. exposable?: Maybe<Scalars['Boolean']>;
  59. form_fields: Array<FormField>;
  60. https?: Maybe<Scalars['Boolean']>;
  61. id: Scalars['String'];
  62. name: Scalars['String'];
  63. no_gui?: Maybe<Scalars['Boolean']>;
  64. port: Scalars['Float'];
  65. short_desc: Scalars['String'];
  66. source: Scalars['String'];
  67. supported_architectures?: Maybe<Array<AppSupportedArchitecturesEnum>>;
  68. tipi_version: Scalars['Float'];
  69. url_suffix?: Maybe<Scalars['String']>;
  70. version?: Maybe<Scalars['String']>;
  71. };
  72. export type AppInputType = {
  73. domain: Scalars['String'];
  74. exposed: Scalars['Boolean'];
  75. form: Scalars['JSONObject'];
  76. id: Scalars['String'];
  77. };
  78. export enum AppStatusEnum {
  79. Installing = 'INSTALLING',
  80. Missing = 'MISSING',
  81. Running = 'RUNNING',
  82. Starting = 'STARTING',
  83. Stopped = 'STOPPED',
  84. Stopping = 'STOPPING',
  85. Uninstalling = 'UNINSTALLING',
  86. Updating = 'UPDATING',
  87. }
  88. export enum AppSupportedArchitecturesEnum {
  89. Amd64 = 'AMD64',
  90. Arm = 'ARM',
  91. Arm64 = 'ARM64',
  92. }
  93. export type Cpu = {
  94. __typename?: 'Cpu';
  95. load: Scalars['Float'];
  96. };
  97. export type DiskMemory = {
  98. __typename?: 'DiskMemory';
  99. available: Scalars['Float'];
  100. total: Scalars['Float'];
  101. used: Scalars['Float'];
  102. };
  103. export enum FieldTypesEnum {
  104. Email = 'email',
  105. Fqdn = 'fqdn',
  106. Fqdnip = 'fqdnip',
  107. Ip = 'ip',
  108. Number = 'number',
  109. Password = 'password',
  110. Random = 'random',
  111. Text = 'text',
  112. Url = 'url',
  113. }
  114. export type FormField = {
  115. __typename?: 'FormField';
  116. env_variable: Scalars['String'];
  117. hint?: Maybe<Scalars['String']>;
  118. label: Scalars['String'];
  119. max?: Maybe<Scalars['Float']>;
  120. min?: Maybe<Scalars['Float']>;
  121. placeholder?: Maybe<Scalars['String']>;
  122. required?: Maybe<Scalars['Boolean']>;
  123. type: FieldTypesEnum;
  124. };
  125. export type ListAppsResonse = {
  126. __typename?: 'ListAppsResonse';
  127. apps: Array<AppInfo>;
  128. total: Scalars['Float'];
  129. };
  130. export type Mutation = {
  131. __typename?: 'Mutation';
  132. installApp: App;
  133. login: TokenResponse;
  134. logout: Scalars['Boolean'];
  135. register: TokenResponse;
  136. restart: Scalars['Boolean'];
  137. startApp: App;
  138. stopApp: App;
  139. uninstallApp: App;
  140. update: Scalars['Boolean'];
  141. updateApp: App;
  142. updateAppConfig: App;
  143. };
  144. export type MutationInstallAppArgs = {
  145. input: AppInputType;
  146. };
  147. export type MutationLoginArgs = {
  148. input: UsernamePasswordInput;
  149. };
  150. export type MutationRegisterArgs = {
  151. input: UsernamePasswordInput;
  152. };
  153. export type MutationStartAppArgs = {
  154. id: Scalars['String'];
  155. };
  156. export type MutationStopAppArgs = {
  157. id: Scalars['String'];
  158. };
  159. export type MutationUninstallAppArgs = {
  160. id: Scalars['String'];
  161. };
  162. export type MutationUpdateAppArgs = {
  163. id: Scalars['String'];
  164. };
  165. export type MutationUpdateAppConfigArgs = {
  166. input: AppInputType;
  167. };
  168. export type Query = {
  169. __typename?: 'Query';
  170. getApp: App;
  171. installedApps: Array<App>;
  172. isConfigured: Scalars['Boolean'];
  173. listAppsInfo: ListAppsResonse;
  174. me?: Maybe<User>;
  175. refreshToken?: Maybe<TokenResponse>;
  176. systemInfo?: Maybe<SystemInfoResponse>;
  177. version: VersionResponse;
  178. };
  179. export type QueryGetAppArgs = {
  180. id: Scalars['String'];
  181. };
  182. export type SystemInfoResponse = {
  183. __typename?: 'SystemInfoResponse';
  184. cpu: Cpu;
  185. disk: DiskMemory;
  186. memory: DiskMemory;
  187. };
  188. export type TokenResponse = {
  189. __typename?: 'TokenResponse';
  190. token: Scalars['String'];
  191. };
  192. export type UpdateInfo = {
  193. __typename?: 'UpdateInfo';
  194. current: Scalars['Float'];
  195. dockerVersion?: Maybe<Scalars['String']>;
  196. latest: Scalars['Float'];
  197. };
  198. export type User = {
  199. __typename?: 'User';
  200. createdAt: Scalars['DateTime'];
  201. id: Scalars['ID'];
  202. updatedAt: Scalars['DateTime'];
  203. username: Scalars['String'];
  204. };
  205. export type UsernamePasswordInput = {
  206. password: Scalars['String'];
  207. username: Scalars['String'];
  208. };
  209. export type VersionResponse = {
  210. __typename?: 'VersionResponse';
  211. current: Scalars['String'];
  212. latest?: Maybe<Scalars['String']>;
  213. };
  214. export type InstallAppMutationVariables = Exact<{
  215. input: AppInputType;
  216. }>;
  217. export type InstallAppMutation = { __typename?: 'Mutation', installApp: { __typename: 'App', id: string, status: AppStatusEnum } };
  218. export type LoginMutationVariables = Exact<{
  219. input: UsernamePasswordInput;
  220. }>;
  221. export type LoginMutation = { __typename?: 'Mutation', login: { __typename?: 'TokenResponse', token: string } };
  222. export type LogoutMutationVariables = Exact<{ [key: string]: never; }>;
  223. export type LogoutMutation = { __typename?: 'Mutation', logout: boolean };
  224. export type RegisterMutationVariables = Exact<{
  225. input: UsernamePasswordInput;
  226. }>;
  227. export type RegisterMutation = { __typename?: 'Mutation', register: { __typename?: 'TokenResponse', token: string } };
  228. export type RestartMutationVariables = Exact<{ [key: string]: never; }>;
  229. export type RestartMutation = { __typename?: 'Mutation', restart: boolean };
  230. export type StartAppMutationVariables = Exact<{
  231. id: Scalars['String'];
  232. }>;
  233. export type StartAppMutation = { __typename?: 'Mutation', startApp: { __typename: 'App', id: string, status: AppStatusEnum } };
  234. export type StopAppMutationVariables = Exact<{
  235. id: Scalars['String'];
  236. }>;
  237. export type StopAppMutation = { __typename?: 'Mutation', stopApp: { __typename: 'App', id: string, status: AppStatusEnum } };
  238. export type UninstallAppMutationVariables = Exact<{
  239. id: Scalars['String'];
  240. }>;
  241. export type UninstallAppMutation = { __typename?: 'Mutation', uninstallApp: { __typename: 'App', id: string, status: AppStatusEnum } };
  242. export type UpdateMutationVariables = Exact<{ [key: string]: never; }>;
  243. export type UpdateMutation = { __typename?: 'Mutation', update: boolean };
  244. export type UpdateAppMutationVariables = Exact<{
  245. id: Scalars['String'];
  246. }>;
  247. export type UpdateAppMutation = { __typename?: 'Mutation', updateApp: { __typename: 'App', id: string, status: AppStatusEnum } };
  248. export type UpdateAppConfigMutationVariables = Exact<{
  249. input: AppInputType;
  250. }>;
  251. export type UpdateAppConfigMutation = { __typename?: 'Mutation', updateAppConfig: { __typename: 'App', id: string, status: AppStatusEnum } };
  252. export type GetAppQueryVariables = Exact<{
  253. appId: Scalars['String'];
  254. }>;
  255. export type GetAppQuery = { __typename?: 'Query', getApp: { __typename?: 'App', id: string, status: AppStatusEnum, config: any, version?: number | null, exposed: boolean, domain?: string | null, updateInfo?: { __typename?: 'UpdateInfo', current: number, latest: number, dockerVersion?: string | null } | null, info?: { __typename?: 'AppInfo', id: string, port: number, name: string, description: string, available: boolean, version?: string | null, tipi_version: number, short_desc: string, author: string, source: string, categories: Array<AppCategoriesEnum>, url_suffix?: string | null, https?: boolean | null, exposable?: boolean | null, no_gui?: boolean | null, form_fields: Array<{ __typename?: 'FormField', type: FieldTypesEnum, label: string, max?: number | null, min?: number | null, hint?: string | null, placeholder?: string | null, required?: boolean | null, env_variable: string }> } | null } };
  256. export type InstalledAppsQueryVariables = Exact<{ [key: string]: never; }>;
  257. export type InstalledAppsQuery = { __typename?: 'Query', installedApps: Array<{ __typename?: 'App', id: string, status: AppStatusEnum, config: any, version?: number | null, updateInfo?: { __typename?: 'UpdateInfo', current: number, latest: number, dockerVersion?: string | null } | null, info?: { __typename?: 'AppInfo', id: string, name: string, description: string, tipi_version: number, short_desc: string, https?: boolean | null } | null }> };
  258. export type ConfiguredQueryVariables = Exact<{ [key: string]: never; }>;
  259. export type ConfiguredQuery = { __typename?: 'Query', isConfigured: boolean };
  260. export type ListAppsQueryVariables = Exact<{ [key: string]: never; }>;
  261. export type ListAppsQuery = { __typename?: 'Query', listAppsInfo: { __typename?: 'ListAppsResonse', total: number, apps: Array<{ __typename?: 'AppInfo', id: string, available: boolean, tipi_version: number, port: number, name: string, version?: string | null, short_desc: string, author: string, categories: Array<AppCategoriesEnum>, https?: boolean | null }> } };
  262. export type MeQueryVariables = Exact<{ [key: string]: never; }>;
  263. export type MeQuery = { __typename?: 'Query', me?: { __typename?: 'User', id: string } | null };
  264. export type RefreshTokenQueryVariables = Exact<{ [key: string]: never; }>;
  265. export type RefreshTokenQuery = { __typename?: 'Query', refreshToken?: { __typename?: 'TokenResponse', token: string } | null };
  266. export type SystemInfoQueryVariables = Exact<{ [key: string]: never; }>;
  267. export type SystemInfoQuery = { __typename?: 'Query', systemInfo?: { __typename?: 'SystemInfoResponse', cpu: { __typename?: 'Cpu', load: number }, disk: { __typename?: 'DiskMemory', available: number, used: number, total: number }, memory: { __typename?: 'DiskMemory', available: number, used: number, total: number } } | null };
  268. export type VersionQueryVariables = Exact<{ [key: string]: never; }>;
  269. export type VersionQuery = { __typename?: 'Query', version: { __typename?: 'VersionResponse', current: string, latest?: string | null } };
  270. export const InstallAppDocument = gql`
  271. mutation InstallApp($input: AppInputType!) {
  272. installApp(input: $input) {
  273. id
  274. status
  275. __typename
  276. }
  277. }
  278. `;
  279. export type InstallAppMutationFn = Apollo.MutationFunction<InstallAppMutation, InstallAppMutationVariables>;
  280. /**
  281. * __useInstallAppMutation__
  282. *
  283. * To run a mutation, you first call `useInstallAppMutation` within a React component and pass it any options that fit your needs.
  284. * When your component renders, `useInstallAppMutation` returns a tuple that includes:
  285. * - A mutate function that you can call at any time to execute the mutation
  286. * - An object with fields that represent the current status of the mutation's execution
  287. *
  288. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  289. *
  290. * @example
  291. * const [installAppMutation, { data, loading, error }] = useInstallAppMutation({
  292. * variables: {
  293. * input: // value for 'input'
  294. * },
  295. * });
  296. */
  297. export function useInstallAppMutation(baseOptions?: Apollo.MutationHookOptions<InstallAppMutation, InstallAppMutationVariables>) {
  298. const options = { ...defaultOptions, ...baseOptions };
  299. return Apollo.useMutation<InstallAppMutation, InstallAppMutationVariables>(InstallAppDocument, options);
  300. }
  301. export type InstallAppMutationHookResult = ReturnType<typeof useInstallAppMutation>;
  302. export type InstallAppMutationResult = Apollo.MutationResult<InstallAppMutation>;
  303. export type InstallAppMutationOptions = Apollo.BaseMutationOptions<InstallAppMutation, InstallAppMutationVariables>;
  304. export const LoginDocument = gql`
  305. mutation Login($input: UsernamePasswordInput!) {
  306. login(input: $input) {
  307. token
  308. }
  309. }
  310. `;
  311. export type LoginMutationFn = Apollo.MutationFunction<LoginMutation, LoginMutationVariables>;
  312. /**
  313. * __useLoginMutation__
  314. *
  315. * To run a mutation, you first call `useLoginMutation` within a React component and pass it any options that fit your needs.
  316. * When your component renders, `useLoginMutation` returns a tuple that includes:
  317. * - A mutate function that you can call at any time to execute the mutation
  318. * - An object with fields that represent the current status of the mutation's execution
  319. *
  320. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  321. *
  322. * @example
  323. * const [loginMutation, { data, loading, error }] = useLoginMutation({
  324. * variables: {
  325. * input: // value for 'input'
  326. * },
  327. * });
  328. */
  329. export function useLoginMutation(baseOptions?: Apollo.MutationHookOptions<LoginMutation, LoginMutationVariables>) {
  330. const options = { ...defaultOptions, ...baseOptions };
  331. return Apollo.useMutation<LoginMutation, LoginMutationVariables>(LoginDocument, options);
  332. }
  333. export type LoginMutationHookResult = ReturnType<typeof useLoginMutation>;
  334. export type LoginMutationResult = Apollo.MutationResult<LoginMutation>;
  335. export type LoginMutationOptions = Apollo.BaseMutationOptions<LoginMutation, LoginMutationVariables>;
  336. export const LogoutDocument = gql`
  337. mutation Logout {
  338. logout
  339. }
  340. `;
  341. export type LogoutMutationFn = Apollo.MutationFunction<LogoutMutation, LogoutMutationVariables>;
  342. /**
  343. * __useLogoutMutation__
  344. *
  345. * To run a mutation, you first call `useLogoutMutation` within a React component and pass it any options that fit your needs.
  346. * When your component renders, `useLogoutMutation` returns a tuple that includes:
  347. * - A mutate function that you can call at any time to execute the mutation
  348. * - An object with fields that represent the current status of the mutation's execution
  349. *
  350. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  351. *
  352. * @example
  353. * const [logoutMutation, { data, loading, error }] = useLogoutMutation({
  354. * variables: {
  355. * },
  356. * });
  357. */
  358. export function useLogoutMutation(baseOptions?: Apollo.MutationHookOptions<LogoutMutation, LogoutMutationVariables>) {
  359. const options = { ...defaultOptions, ...baseOptions };
  360. return Apollo.useMutation<LogoutMutation, LogoutMutationVariables>(LogoutDocument, options);
  361. }
  362. export type LogoutMutationHookResult = ReturnType<typeof useLogoutMutation>;
  363. export type LogoutMutationResult = Apollo.MutationResult<LogoutMutation>;
  364. export type LogoutMutationOptions = Apollo.BaseMutationOptions<LogoutMutation, LogoutMutationVariables>;
  365. export const RegisterDocument = gql`
  366. mutation Register($input: UsernamePasswordInput!) {
  367. register(input: $input) {
  368. token
  369. }
  370. }
  371. `;
  372. export type RegisterMutationFn = Apollo.MutationFunction<RegisterMutation, RegisterMutationVariables>;
  373. /**
  374. * __useRegisterMutation__
  375. *
  376. * To run a mutation, you first call `useRegisterMutation` within a React component and pass it any options that fit your needs.
  377. * When your component renders, `useRegisterMutation` returns a tuple that includes:
  378. * - A mutate function that you can call at any time to execute the mutation
  379. * - An object with fields that represent the current status of the mutation's execution
  380. *
  381. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  382. *
  383. * @example
  384. * const [registerMutation, { data, loading, error }] = useRegisterMutation({
  385. * variables: {
  386. * input: // value for 'input'
  387. * },
  388. * });
  389. */
  390. export function useRegisterMutation(baseOptions?: Apollo.MutationHookOptions<RegisterMutation, RegisterMutationVariables>) {
  391. const options = { ...defaultOptions, ...baseOptions };
  392. return Apollo.useMutation<RegisterMutation, RegisterMutationVariables>(RegisterDocument, options);
  393. }
  394. export type RegisterMutationHookResult = ReturnType<typeof useRegisterMutation>;
  395. export type RegisterMutationResult = Apollo.MutationResult<RegisterMutation>;
  396. export type RegisterMutationOptions = Apollo.BaseMutationOptions<RegisterMutation, RegisterMutationVariables>;
  397. export const RestartDocument = gql`
  398. mutation Restart {
  399. restart
  400. }
  401. `;
  402. export type RestartMutationFn = Apollo.MutationFunction<RestartMutation, RestartMutationVariables>;
  403. /**
  404. * __useRestartMutation__
  405. *
  406. * To run a mutation, you first call `useRestartMutation` within a React component and pass it any options that fit your needs.
  407. * When your component renders, `useRestartMutation` returns a tuple that includes:
  408. * - A mutate function that you can call at any time to execute the mutation
  409. * - An object with fields that represent the current status of the mutation's execution
  410. *
  411. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  412. *
  413. * @example
  414. * const [restartMutation, { data, loading, error }] = useRestartMutation({
  415. * variables: {
  416. * },
  417. * });
  418. */
  419. export function useRestartMutation(baseOptions?: Apollo.MutationHookOptions<RestartMutation, RestartMutationVariables>) {
  420. const options = { ...defaultOptions, ...baseOptions };
  421. return Apollo.useMutation<RestartMutation, RestartMutationVariables>(RestartDocument, options);
  422. }
  423. export type RestartMutationHookResult = ReturnType<typeof useRestartMutation>;
  424. export type RestartMutationResult = Apollo.MutationResult<RestartMutation>;
  425. export type RestartMutationOptions = Apollo.BaseMutationOptions<RestartMutation, RestartMutationVariables>;
  426. export const StartAppDocument = gql`
  427. mutation StartApp($id: String!) {
  428. startApp(id: $id) {
  429. id
  430. status
  431. __typename
  432. }
  433. }
  434. `;
  435. export type StartAppMutationFn = Apollo.MutationFunction<StartAppMutation, StartAppMutationVariables>;
  436. /**
  437. * __useStartAppMutation__
  438. *
  439. * To run a mutation, you first call `useStartAppMutation` within a React component and pass it any options that fit your needs.
  440. * When your component renders, `useStartAppMutation` returns a tuple that includes:
  441. * - A mutate function that you can call at any time to execute the mutation
  442. * - An object with fields that represent the current status of the mutation's execution
  443. *
  444. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  445. *
  446. * @example
  447. * const [startAppMutation, { data, loading, error }] = useStartAppMutation({
  448. * variables: {
  449. * id: // value for 'id'
  450. * },
  451. * });
  452. */
  453. export function useStartAppMutation(baseOptions?: Apollo.MutationHookOptions<StartAppMutation, StartAppMutationVariables>) {
  454. const options = { ...defaultOptions, ...baseOptions };
  455. return Apollo.useMutation<StartAppMutation, StartAppMutationVariables>(StartAppDocument, options);
  456. }
  457. export type StartAppMutationHookResult = ReturnType<typeof useStartAppMutation>;
  458. export type StartAppMutationResult = Apollo.MutationResult<StartAppMutation>;
  459. export type StartAppMutationOptions = Apollo.BaseMutationOptions<StartAppMutation, StartAppMutationVariables>;
  460. export const StopAppDocument = gql`
  461. mutation StopApp($id: String!) {
  462. stopApp(id: $id) {
  463. id
  464. status
  465. __typename
  466. }
  467. }
  468. `;
  469. export type StopAppMutationFn = Apollo.MutationFunction<StopAppMutation, StopAppMutationVariables>;
  470. /**
  471. * __useStopAppMutation__
  472. *
  473. * To run a mutation, you first call `useStopAppMutation` within a React component and pass it any options that fit your needs.
  474. * When your component renders, `useStopAppMutation` returns a tuple that includes:
  475. * - A mutate function that you can call at any time to execute the mutation
  476. * - An object with fields that represent the current status of the mutation's execution
  477. *
  478. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  479. *
  480. * @example
  481. * const [stopAppMutation, { data, loading, error }] = useStopAppMutation({
  482. * variables: {
  483. * id: // value for 'id'
  484. * },
  485. * });
  486. */
  487. export function useStopAppMutation(baseOptions?: Apollo.MutationHookOptions<StopAppMutation, StopAppMutationVariables>) {
  488. const options = { ...defaultOptions, ...baseOptions };
  489. return Apollo.useMutation<StopAppMutation, StopAppMutationVariables>(StopAppDocument, options);
  490. }
  491. export type StopAppMutationHookResult = ReturnType<typeof useStopAppMutation>;
  492. export type StopAppMutationResult = Apollo.MutationResult<StopAppMutation>;
  493. export type StopAppMutationOptions = Apollo.BaseMutationOptions<StopAppMutation, StopAppMutationVariables>;
  494. export const UninstallAppDocument = gql`
  495. mutation UninstallApp($id: String!) {
  496. uninstallApp(id: $id) {
  497. id
  498. status
  499. __typename
  500. }
  501. }
  502. `;
  503. export type UninstallAppMutationFn = Apollo.MutationFunction<UninstallAppMutation, UninstallAppMutationVariables>;
  504. /**
  505. * __useUninstallAppMutation__
  506. *
  507. * To run a mutation, you first call `useUninstallAppMutation` within a React component and pass it any options that fit your needs.
  508. * When your component renders, `useUninstallAppMutation` returns a tuple that includes:
  509. * - A mutate function that you can call at any time to execute the mutation
  510. * - An object with fields that represent the current status of the mutation's execution
  511. *
  512. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  513. *
  514. * @example
  515. * const [uninstallAppMutation, { data, loading, error }] = useUninstallAppMutation({
  516. * variables: {
  517. * id: // value for 'id'
  518. * },
  519. * });
  520. */
  521. export function useUninstallAppMutation(baseOptions?: Apollo.MutationHookOptions<UninstallAppMutation, UninstallAppMutationVariables>) {
  522. const options = { ...defaultOptions, ...baseOptions };
  523. return Apollo.useMutation<UninstallAppMutation, UninstallAppMutationVariables>(UninstallAppDocument, options);
  524. }
  525. export type UninstallAppMutationHookResult = ReturnType<typeof useUninstallAppMutation>;
  526. export type UninstallAppMutationResult = Apollo.MutationResult<UninstallAppMutation>;
  527. export type UninstallAppMutationOptions = Apollo.BaseMutationOptions<UninstallAppMutation, UninstallAppMutationVariables>;
  528. export const UpdateDocument = gql`
  529. mutation Update {
  530. update
  531. }
  532. `;
  533. export type UpdateMutationFn = Apollo.MutationFunction<UpdateMutation, UpdateMutationVariables>;
  534. /**
  535. * __useUpdateMutation__
  536. *
  537. * To run a mutation, you first call `useUpdateMutation` within a React component and pass it any options that fit your needs.
  538. * When your component renders, `useUpdateMutation` returns a tuple that includes:
  539. * - A mutate function that you can call at any time to execute the mutation
  540. * - An object with fields that represent the current status of the mutation's execution
  541. *
  542. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  543. *
  544. * @example
  545. * const [updateMutation, { data, loading, error }] = useUpdateMutation({
  546. * variables: {
  547. * },
  548. * });
  549. */
  550. export function useUpdateMutation(baseOptions?: Apollo.MutationHookOptions<UpdateMutation, UpdateMutationVariables>) {
  551. const options = { ...defaultOptions, ...baseOptions };
  552. return Apollo.useMutation<UpdateMutation, UpdateMutationVariables>(UpdateDocument, options);
  553. }
  554. export type UpdateMutationHookResult = ReturnType<typeof useUpdateMutation>;
  555. export type UpdateMutationResult = Apollo.MutationResult<UpdateMutation>;
  556. export type UpdateMutationOptions = Apollo.BaseMutationOptions<UpdateMutation, UpdateMutationVariables>;
  557. export const UpdateAppDocument = gql`
  558. mutation UpdateApp($id: String!) {
  559. updateApp(id: $id) {
  560. id
  561. status
  562. __typename
  563. }
  564. }
  565. `;
  566. export type UpdateAppMutationFn = Apollo.MutationFunction<UpdateAppMutation, UpdateAppMutationVariables>;
  567. /**
  568. * __useUpdateAppMutation__
  569. *
  570. * To run a mutation, you first call `useUpdateAppMutation` within a React component and pass it any options that fit your needs.
  571. * When your component renders, `useUpdateAppMutation` returns a tuple that includes:
  572. * - A mutate function that you can call at any time to execute the mutation
  573. * - An object with fields that represent the current status of the mutation's execution
  574. *
  575. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  576. *
  577. * @example
  578. * const [updateAppMutation, { data, loading, error }] = useUpdateAppMutation({
  579. * variables: {
  580. * id: // value for 'id'
  581. * },
  582. * });
  583. */
  584. export function useUpdateAppMutation(baseOptions?: Apollo.MutationHookOptions<UpdateAppMutation, UpdateAppMutationVariables>) {
  585. const options = { ...defaultOptions, ...baseOptions };
  586. return Apollo.useMutation<UpdateAppMutation, UpdateAppMutationVariables>(UpdateAppDocument, options);
  587. }
  588. export type UpdateAppMutationHookResult = ReturnType<typeof useUpdateAppMutation>;
  589. export type UpdateAppMutationResult = Apollo.MutationResult<UpdateAppMutation>;
  590. export type UpdateAppMutationOptions = Apollo.BaseMutationOptions<UpdateAppMutation, UpdateAppMutationVariables>;
  591. export const UpdateAppConfigDocument = gql`
  592. mutation UpdateAppConfig($input: AppInputType!) {
  593. updateAppConfig(input: $input) {
  594. id
  595. status
  596. __typename
  597. }
  598. }
  599. `;
  600. export type UpdateAppConfigMutationFn = Apollo.MutationFunction<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>;
  601. /**
  602. * __useUpdateAppConfigMutation__
  603. *
  604. * To run a mutation, you first call `useUpdateAppConfigMutation` within a React component and pass it any options that fit your needs.
  605. * When your component renders, `useUpdateAppConfigMutation` returns a tuple that includes:
  606. * - A mutate function that you can call at any time to execute the mutation
  607. * - An object with fields that represent the current status of the mutation's execution
  608. *
  609. * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
  610. *
  611. * @example
  612. * const [updateAppConfigMutation, { data, loading, error }] = useUpdateAppConfigMutation({
  613. * variables: {
  614. * input: // value for 'input'
  615. * },
  616. * });
  617. */
  618. export function useUpdateAppConfigMutation(baseOptions?: Apollo.MutationHookOptions<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>) {
  619. const options = { ...defaultOptions, ...baseOptions };
  620. return Apollo.useMutation<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>(UpdateAppConfigDocument, options);
  621. }
  622. export type UpdateAppConfigMutationHookResult = ReturnType<typeof useUpdateAppConfigMutation>;
  623. export type UpdateAppConfigMutationResult = Apollo.MutationResult<UpdateAppConfigMutation>;
  624. export type UpdateAppConfigMutationOptions = Apollo.BaseMutationOptions<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>;
  625. export const GetAppDocument = gql`
  626. query GetApp($appId: String!) {
  627. getApp(id: $appId) {
  628. id
  629. status
  630. config
  631. version
  632. exposed
  633. domain
  634. updateInfo {
  635. current
  636. latest
  637. dockerVersion
  638. }
  639. info {
  640. id
  641. port
  642. name
  643. description
  644. available
  645. version
  646. tipi_version
  647. short_desc
  648. author
  649. source
  650. categories
  651. url_suffix
  652. https
  653. exposable
  654. no_gui
  655. form_fields {
  656. type
  657. label
  658. max
  659. min
  660. hint
  661. placeholder
  662. required
  663. env_variable
  664. }
  665. }
  666. }
  667. }
  668. `;
  669. /**
  670. * __useGetAppQuery__
  671. *
  672. * To run a query within a React component, call `useGetAppQuery` and pass it any options that fit your needs.
  673. * When your component renders, `useGetAppQuery` returns an object from Apollo Client that contains loading, error, and data properties
  674. * you can use to render your UI.
  675. *
  676. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  677. *
  678. * @example
  679. * const { data, loading, error } = useGetAppQuery({
  680. * variables: {
  681. * appId: // value for 'appId'
  682. * },
  683. * });
  684. */
  685. export function useGetAppQuery(baseOptions: Apollo.QueryHookOptions<GetAppQuery, GetAppQueryVariables>) {
  686. const options = { ...defaultOptions, ...baseOptions };
  687. return Apollo.useQuery<GetAppQuery, GetAppQueryVariables>(GetAppDocument, options);
  688. }
  689. export function useGetAppLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetAppQuery, GetAppQueryVariables>) {
  690. const options = { ...defaultOptions, ...baseOptions };
  691. return Apollo.useLazyQuery<GetAppQuery, GetAppQueryVariables>(GetAppDocument, options);
  692. }
  693. export type GetAppQueryHookResult = ReturnType<typeof useGetAppQuery>;
  694. export type GetAppLazyQueryHookResult = ReturnType<typeof useGetAppLazyQuery>;
  695. export type GetAppQueryResult = Apollo.QueryResult<GetAppQuery, GetAppQueryVariables>;
  696. export const InstalledAppsDocument = gql`
  697. query InstalledApps {
  698. installedApps {
  699. id
  700. status
  701. config
  702. version
  703. updateInfo {
  704. current
  705. latest
  706. dockerVersion
  707. }
  708. info {
  709. id
  710. name
  711. description
  712. tipi_version
  713. short_desc
  714. https
  715. }
  716. }
  717. }
  718. `;
  719. /**
  720. * __useInstalledAppsQuery__
  721. *
  722. * To run a query within a React component, call `useInstalledAppsQuery` and pass it any options that fit your needs.
  723. * When your component renders, `useInstalledAppsQuery` returns an object from Apollo Client that contains loading, error, and data properties
  724. * you can use to render your UI.
  725. *
  726. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  727. *
  728. * @example
  729. * const { data, loading, error } = useInstalledAppsQuery({
  730. * variables: {
  731. * },
  732. * });
  733. */
  734. export function useInstalledAppsQuery(baseOptions?: Apollo.QueryHookOptions<InstalledAppsQuery, InstalledAppsQueryVariables>) {
  735. const options = { ...defaultOptions, ...baseOptions };
  736. return Apollo.useQuery<InstalledAppsQuery, InstalledAppsQueryVariables>(InstalledAppsDocument, options);
  737. }
  738. export function useInstalledAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<InstalledAppsQuery, InstalledAppsQueryVariables>) {
  739. const options = { ...defaultOptions, ...baseOptions };
  740. return Apollo.useLazyQuery<InstalledAppsQuery, InstalledAppsQueryVariables>(InstalledAppsDocument, options);
  741. }
  742. export type InstalledAppsQueryHookResult = ReturnType<typeof useInstalledAppsQuery>;
  743. export type InstalledAppsLazyQueryHookResult = ReturnType<typeof useInstalledAppsLazyQuery>;
  744. export type InstalledAppsQueryResult = Apollo.QueryResult<InstalledAppsQuery, InstalledAppsQueryVariables>;
  745. export const ConfiguredDocument = gql`
  746. query Configured {
  747. isConfigured
  748. }
  749. `;
  750. /**
  751. * __useConfiguredQuery__
  752. *
  753. * To run a query within a React component, call `useConfiguredQuery` and pass it any options that fit your needs.
  754. * When your component renders, `useConfiguredQuery` returns an object from Apollo Client that contains loading, error, and data properties
  755. * you can use to render your UI.
  756. *
  757. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  758. *
  759. * @example
  760. * const { data, loading, error } = useConfiguredQuery({
  761. * variables: {
  762. * },
  763. * });
  764. */
  765. export function useConfiguredQuery(baseOptions?: Apollo.QueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
  766. const options = { ...defaultOptions, ...baseOptions };
  767. return Apollo.useQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
  768. }
  769. export function useConfiguredLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
  770. const options = { ...defaultOptions, ...baseOptions };
  771. return Apollo.useLazyQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
  772. }
  773. export type ConfiguredQueryHookResult = ReturnType<typeof useConfiguredQuery>;
  774. export type ConfiguredLazyQueryHookResult = ReturnType<typeof useConfiguredLazyQuery>;
  775. export type ConfiguredQueryResult = Apollo.QueryResult<ConfiguredQuery, ConfiguredQueryVariables>;
  776. export const ListAppsDocument = gql`
  777. query ListApps {
  778. listAppsInfo {
  779. apps {
  780. id
  781. available
  782. tipi_version
  783. port
  784. name
  785. version
  786. short_desc
  787. author
  788. categories
  789. https
  790. }
  791. total
  792. }
  793. }
  794. `;
  795. /**
  796. * __useListAppsQuery__
  797. *
  798. * To run a query within a React component, call `useListAppsQuery` and pass it any options that fit your needs.
  799. * When your component renders, `useListAppsQuery` returns an object from Apollo Client that contains loading, error, and data properties
  800. * you can use to render your UI.
  801. *
  802. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  803. *
  804. * @example
  805. * const { data, loading, error } = useListAppsQuery({
  806. * variables: {
  807. * },
  808. * });
  809. */
  810. export function useListAppsQuery(baseOptions?: Apollo.QueryHookOptions<ListAppsQuery, ListAppsQueryVariables>) {
  811. const options = { ...defaultOptions, ...baseOptions };
  812. return Apollo.useQuery<ListAppsQuery, ListAppsQueryVariables>(ListAppsDocument, options);
  813. }
  814. export function useListAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ListAppsQuery, ListAppsQueryVariables>) {
  815. const options = { ...defaultOptions, ...baseOptions };
  816. return Apollo.useLazyQuery<ListAppsQuery, ListAppsQueryVariables>(ListAppsDocument, options);
  817. }
  818. export type ListAppsQueryHookResult = ReturnType<typeof useListAppsQuery>;
  819. export type ListAppsLazyQueryHookResult = ReturnType<typeof useListAppsLazyQuery>;
  820. export type ListAppsQueryResult = Apollo.QueryResult<ListAppsQuery, ListAppsQueryVariables>;
  821. export const MeDocument = gql`
  822. query Me {
  823. me {
  824. id
  825. }
  826. }
  827. `;
  828. /**
  829. * __useMeQuery__
  830. *
  831. * To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs.
  832. * When your component renders, `useMeQuery` returns an object from Apollo Client that contains loading, error, and data properties
  833. * you can use to render your UI.
  834. *
  835. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  836. *
  837. * @example
  838. * const { data, loading, error } = useMeQuery({
  839. * variables: {
  840. * },
  841. * });
  842. */
  843. export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) {
  844. const options = { ...defaultOptions, ...baseOptions };
  845. return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options);
  846. }
  847. export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>) {
  848. const options = { ...defaultOptions, ...baseOptions };
  849. return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, options);
  850. }
  851. export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
  852. export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
  853. export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
  854. export const RefreshTokenDocument = gql`
  855. query RefreshToken {
  856. refreshToken {
  857. token
  858. }
  859. }
  860. `;
  861. /**
  862. * __useRefreshTokenQuery__
  863. *
  864. * To run a query within a React component, call `useRefreshTokenQuery` and pass it any options that fit your needs.
  865. * When your component renders, `useRefreshTokenQuery` returns an object from Apollo Client that contains loading, error, and data properties
  866. * you can use to render your UI.
  867. *
  868. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  869. *
  870. * @example
  871. * const { data, loading, error } = useRefreshTokenQuery({
  872. * variables: {
  873. * },
  874. * });
  875. */
  876. export function useRefreshTokenQuery(baseOptions?: Apollo.QueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
  877. const options = { ...defaultOptions, ...baseOptions };
  878. return Apollo.useQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
  879. }
  880. export function useRefreshTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
  881. const options = { ...defaultOptions, ...baseOptions };
  882. return Apollo.useLazyQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
  883. }
  884. export type RefreshTokenQueryHookResult = ReturnType<typeof useRefreshTokenQuery>;
  885. export type RefreshTokenLazyQueryHookResult = ReturnType<typeof useRefreshTokenLazyQuery>;
  886. export type RefreshTokenQueryResult = Apollo.QueryResult<RefreshTokenQuery, RefreshTokenQueryVariables>;
  887. export const SystemInfoDocument = gql`
  888. query SystemInfo {
  889. systemInfo {
  890. cpu {
  891. load
  892. }
  893. disk {
  894. available
  895. used
  896. total
  897. }
  898. memory {
  899. available
  900. used
  901. total
  902. }
  903. }
  904. }
  905. `;
  906. /**
  907. * __useSystemInfoQuery__
  908. *
  909. * To run a query within a React component, call `useSystemInfoQuery` and pass it any options that fit your needs.
  910. * When your component renders, `useSystemInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
  911. * you can use to render your UI.
  912. *
  913. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  914. *
  915. * @example
  916. * const { data, loading, error } = useSystemInfoQuery({
  917. * variables: {
  918. * },
  919. * });
  920. */
  921. export function useSystemInfoQuery(baseOptions?: Apollo.QueryHookOptions<SystemInfoQuery, SystemInfoQueryVariables>) {
  922. const options = { ...defaultOptions, ...baseOptions };
  923. return Apollo.useQuery<SystemInfoQuery, SystemInfoQueryVariables>(SystemInfoDocument, options);
  924. }
  925. export function useSystemInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SystemInfoQuery, SystemInfoQueryVariables>) {
  926. const options = { ...defaultOptions, ...baseOptions };
  927. return Apollo.useLazyQuery<SystemInfoQuery, SystemInfoQueryVariables>(SystemInfoDocument, options);
  928. }
  929. export type SystemInfoQueryHookResult = ReturnType<typeof useSystemInfoQuery>;
  930. export type SystemInfoLazyQueryHookResult = ReturnType<typeof useSystemInfoLazyQuery>;
  931. export type SystemInfoQueryResult = Apollo.QueryResult<SystemInfoQuery, SystemInfoQueryVariables>;
  932. export const VersionDocument = gql`
  933. query Version {
  934. version {
  935. current
  936. latest
  937. }
  938. }
  939. `;
  940. /**
  941. * __useVersionQuery__
  942. *
  943. * To run a query within a React component, call `useVersionQuery` and pass it any options that fit your needs.
  944. * When your component renders, `useVersionQuery` returns an object from Apollo Client that contains loading, error, and data properties
  945. * you can use to render your UI.
  946. *
  947. * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
  948. *
  949. * @example
  950. * const { data, loading, error } = useVersionQuery({
  951. * variables: {
  952. * },
  953. * });
  954. */
  955. export function useVersionQuery(baseOptions?: Apollo.QueryHookOptions<VersionQuery, VersionQueryVariables>) {
  956. const options = { ...defaultOptions, ...baseOptions };
  957. return Apollo.useQuery<VersionQuery, VersionQueryVariables>(VersionDocument, options);
  958. }
  959. export function useVersionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VersionQuery, VersionQueryVariables>) {
  960. const options = { ...defaultOptions, ...baseOptions };
  961. return Apollo.useLazyQuery<VersionQuery, VersionQueryVariables>(VersionDocument, options);
  962. }
  963. export type VersionQueryHookResult = ReturnType<typeof useVersionQuery>;
  964. export type VersionLazyQueryHookResult = ReturnType<typeof useVersionLazyQuery>;
  965. export type VersionQueryResult = Apollo.QueryResult<VersionQuery, VersionQueryVariables>;