graphql.tsx 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  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 = {
  256. __typename?: 'Query';
  257. getApp: {
  258. __typename?: 'App';
  259. id: string;
  260. status: AppStatusEnum;
  261. config: any;
  262. version?: number | null;
  263. exposed: boolean;
  264. domain?: string | null;
  265. updateInfo?: { __typename?: 'UpdateInfo'; current: number; latest: number; dockerVersion?: string | null } | null;
  266. info?: {
  267. __typename?: 'AppInfo';
  268. id: string;
  269. port: number;
  270. name: string;
  271. description: string;
  272. available: boolean;
  273. version?: string | null;
  274. tipi_version: number;
  275. short_desc: string;
  276. author: string;
  277. source: string;
  278. categories: Array<AppCategoriesEnum>;
  279. url_suffix?: string | null;
  280. https?: boolean | null;
  281. exposable?: boolean | null;
  282. no_gui?: boolean | null;
  283. form_fields: Array<{
  284. __typename?: 'FormField';
  285. type: FieldTypesEnum;
  286. label: string;
  287. max?: number | null;
  288. min?: number | null;
  289. hint?: string | null;
  290. placeholder?: string | null;
  291. required?: boolean | null;
  292. env_variable: string;
  293. }>;
  294. } | null;
  295. };
  296. };
  297. export type InstalledAppsQueryVariables = Exact<{ [key: string]: never }>;
  298. export type InstalledAppsQuery = {
  299. __typename?: 'Query';
  300. installedApps: Array<{
  301. __typename?: 'App';
  302. id: string;
  303. status: AppStatusEnum;
  304. config: any;
  305. version?: number | null;
  306. updateInfo?: { __typename?: 'UpdateInfo'; current: number; latest: number; dockerVersion?: string | null } | null;
  307. info?: { __typename?: 'AppInfo'; id: string; name: string; description: string; tipi_version: number; short_desc: string; https?: boolean | null } | null;
  308. }>;
  309. };
  310. export type ConfiguredQueryVariables = Exact<{ [key: string]: never }>;
  311. export type ConfiguredQuery = { __typename?: 'Query'; isConfigured: boolean };
  312. export type ListAppsQueryVariables = Exact<{ [key: string]: never }>;
  313. export type ListAppsQuery = {
  314. __typename?: 'Query';
  315. listAppsInfo: {
  316. __typename?: 'ListAppsResonse';
  317. total: number;
  318. apps: Array<{
  319. __typename?: 'AppInfo';
  320. id: string;
  321. available: boolean;
  322. tipi_version: number;
  323. port: number;
  324. name: string;
  325. version?: string | null;
  326. short_desc: string;
  327. author: string;
  328. categories: Array<AppCategoriesEnum>;
  329. https?: boolean | null;
  330. }>;
  331. };
  332. };
  333. export type MeQueryVariables = Exact<{ [key: string]: never }>;
  334. export type MeQuery = { __typename?: 'Query'; me?: { __typename?: 'User'; id: string } | null };
  335. export type RefreshTokenQueryVariables = Exact<{ [key: string]: never }>;
  336. export type RefreshTokenQuery = { __typename?: 'Query'; refreshToken?: { __typename?: 'TokenResponse'; token: string } | null };
  337. export type SystemInfoQueryVariables = Exact<{ [key: string]: never }>;
  338. export type SystemInfoQuery = {
  339. __typename?: 'Query';
  340. systemInfo?: {
  341. __typename?: 'SystemInfoResponse';
  342. cpu: { __typename?: 'Cpu'; load: number };
  343. disk: { __typename?: 'DiskMemory'; available: number; used: number; total: number };
  344. memory: { __typename?: 'DiskMemory'; available: number; used: number; total: number };
  345. } | null;
  346. };
  347. export type VersionQueryVariables = Exact<{ [key: string]: never }>;
  348. export type VersionQuery = { __typename?: 'Query'; version: { __typename?: 'VersionResponse'; current: string; latest?: string | null } };
  349. export const InstallAppDocument = gql`
  350. mutation InstallApp($input: AppInputType!) {
  351. installApp(input: $input) {
  352. id
  353. status
  354. __typename
  355. }
  356. }
  357. `;
  358. export type InstallAppMutationFn = Apollo.MutationFunction<InstallAppMutation, InstallAppMutationVariables>;
  359. /**
  360. * __useInstallAppMutation__
  361. *
  362. * To run a mutation, you first call `useInstallAppMutation` within a React component and pass it any options that fit your needs.
  363. * When your component renders, `useInstallAppMutation` returns a tuple that includes:
  364. * - A mutate function that you can call at any time to execute the mutation
  365. * - An object with fields that represent the current status of the mutation's execution
  366. *
  367. * @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;
  368. *
  369. * @example
  370. * const [installAppMutation, { data, loading, error }] = useInstallAppMutation({
  371. * variables: {
  372. * input: // value for 'input'
  373. * },
  374. * });
  375. */
  376. export function useInstallAppMutation(baseOptions?: Apollo.MutationHookOptions<InstallAppMutation, InstallAppMutationVariables>) {
  377. const options = { ...defaultOptions, ...baseOptions };
  378. return Apollo.useMutation<InstallAppMutation, InstallAppMutationVariables>(InstallAppDocument, options);
  379. }
  380. export type InstallAppMutationHookResult = ReturnType<typeof useInstallAppMutation>;
  381. export type InstallAppMutationResult = Apollo.MutationResult<InstallAppMutation>;
  382. export type InstallAppMutationOptions = Apollo.BaseMutationOptions<InstallAppMutation, InstallAppMutationVariables>;
  383. export const LoginDocument = gql`
  384. mutation Login($input: UsernamePasswordInput!) {
  385. login(input: $input) {
  386. token
  387. }
  388. }
  389. `;
  390. export type LoginMutationFn = Apollo.MutationFunction<LoginMutation, LoginMutationVariables>;
  391. /**
  392. * __useLoginMutation__
  393. *
  394. * To run a mutation, you first call `useLoginMutation` within a React component and pass it any options that fit your needs.
  395. * When your component renders, `useLoginMutation` returns a tuple that includes:
  396. * - A mutate function that you can call at any time to execute the mutation
  397. * - An object with fields that represent the current status of the mutation's execution
  398. *
  399. * @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;
  400. *
  401. * @example
  402. * const [loginMutation, { data, loading, error }] = useLoginMutation({
  403. * variables: {
  404. * input: // value for 'input'
  405. * },
  406. * });
  407. */
  408. export function useLoginMutation(baseOptions?: Apollo.MutationHookOptions<LoginMutation, LoginMutationVariables>) {
  409. const options = { ...defaultOptions, ...baseOptions };
  410. return Apollo.useMutation<LoginMutation, LoginMutationVariables>(LoginDocument, options);
  411. }
  412. export type LoginMutationHookResult = ReturnType<typeof useLoginMutation>;
  413. export type LoginMutationResult = Apollo.MutationResult<LoginMutation>;
  414. export type LoginMutationOptions = Apollo.BaseMutationOptions<LoginMutation, LoginMutationVariables>;
  415. export const LogoutDocument = gql`
  416. mutation Logout {
  417. logout
  418. }
  419. `;
  420. export type LogoutMutationFn = Apollo.MutationFunction<LogoutMutation, LogoutMutationVariables>;
  421. /**
  422. * __useLogoutMutation__
  423. *
  424. * To run a mutation, you first call `useLogoutMutation` within a React component and pass it any options that fit your needs.
  425. * When your component renders, `useLogoutMutation` returns a tuple that includes:
  426. * - A mutate function that you can call at any time to execute the mutation
  427. * - An object with fields that represent the current status of the mutation's execution
  428. *
  429. * @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;
  430. *
  431. * @example
  432. * const [logoutMutation, { data, loading, error }] = useLogoutMutation({
  433. * variables: {
  434. * },
  435. * });
  436. */
  437. export function useLogoutMutation(baseOptions?: Apollo.MutationHookOptions<LogoutMutation, LogoutMutationVariables>) {
  438. const options = { ...defaultOptions, ...baseOptions };
  439. return Apollo.useMutation<LogoutMutation, LogoutMutationVariables>(LogoutDocument, options);
  440. }
  441. export type LogoutMutationHookResult = ReturnType<typeof useLogoutMutation>;
  442. export type LogoutMutationResult = Apollo.MutationResult<LogoutMutation>;
  443. export type LogoutMutationOptions = Apollo.BaseMutationOptions<LogoutMutation, LogoutMutationVariables>;
  444. export const RegisterDocument = gql`
  445. mutation Register($input: UsernamePasswordInput!) {
  446. register(input: $input) {
  447. token
  448. }
  449. }
  450. `;
  451. export type RegisterMutationFn = Apollo.MutationFunction<RegisterMutation, RegisterMutationVariables>;
  452. /**
  453. * __useRegisterMutation__
  454. *
  455. * To run a mutation, you first call `useRegisterMutation` within a React component and pass it any options that fit your needs.
  456. * When your component renders, `useRegisterMutation` returns a tuple that includes:
  457. * - A mutate function that you can call at any time to execute the mutation
  458. * - An object with fields that represent the current status of the mutation's execution
  459. *
  460. * @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;
  461. *
  462. * @example
  463. * const [registerMutation, { data, loading, error }] = useRegisterMutation({
  464. * variables: {
  465. * input: // value for 'input'
  466. * },
  467. * });
  468. */
  469. export function useRegisterMutation(baseOptions?: Apollo.MutationHookOptions<RegisterMutation, RegisterMutationVariables>) {
  470. const options = { ...defaultOptions, ...baseOptions };
  471. return Apollo.useMutation<RegisterMutation, RegisterMutationVariables>(RegisterDocument, options);
  472. }
  473. export type RegisterMutationHookResult = ReturnType<typeof useRegisterMutation>;
  474. export type RegisterMutationResult = Apollo.MutationResult<RegisterMutation>;
  475. export type RegisterMutationOptions = Apollo.BaseMutationOptions<RegisterMutation, RegisterMutationVariables>;
  476. export const RestartDocument = gql`
  477. mutation Restart {
  478. restart
  479. }
  480. `;
  481. export type RestartMutationFn = Apollo.MutationFunction<RestartMutation, RestartMutationVariables>;
  482. /**
  483. * __useRestartMutation__
  484. *
  485. * To run a mutation, you first call `useRestartMutation` within a React component and pass it any options that fit your needs.
  486. * When your component renders, `useRestartMutation` returns a tuple that includes:
  487. * - A mutate function that you can call at any time to execute the mutation
  488. * - An object with fields that represent the current status of the mutation's execution
  489. *
  490. * @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;
  491. *
  492. * @example
  493. * const [restartMutation, { data, loading, error }] = useRestartMutation({
  494. * variables: {
  495. * },
  496. * });
  497. */
  498. export function useRestartMutation(baseOptions?: Apollo.MutationHookOptions<RestartMutation, RestartMutationVariables>) {
  499. const options = { ...defaultOptions, ...baseOptions };
  500. return Apollo.useMutation<RestartMutation, RestartMutationVariables>(RestartDocument, options);
  501. }
  502. export type RestartMutationHookResult = ReturnType<typeof useRestartMutation>;
  503. export type RestartMutationResult = Apollo.MutationResult<RestartMutation>;
  504. export type RestartMutationOptions = Apollo.BaseMutationOptions<RestartMutation, RestartMutationVariables>;
  505. export const StartAppDocument = gql`
  506. mutation StartApp($id: String!) {
  507. startApp(id: $id) {
  508. id
  509. status
  510. __typename
  511. }
  512. }
  513. `;
  514. export type StartAppMutationFn = Apollo.MutationFunction<StartAppMutation, StartAppMutationVariables>;
  515. /**
  516. * __useStartAppMutation__
  517. *
  518. * To run a mutation, you first call `useStartAppMutation` within a React component and pass it any options that fit your needs.
  519. * When your component renders, `useStartAppMutation` returns a tuple that includes:
  520. * - A mutate function that you can call at any time to execute the mutation
  521. * - An object with fields that represent the current status of the mutation's execution
  522. *
  523. * @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;
  524. *
  525. * @example
  526. * const [startAppMutation, { data, loading, error }] = useStartAppMutation({
  527. * variables: {
  528. * id: // value for 'id'
  529. * },
  530. * });
  531. */
  532. export function useStartAppMutation(baseOptions?: Apollo.MutationHookOptions<StartAppMutation, StartAppMutationVariables>) {
  533. const options = { ...defaultOptions, ...baseOptions };
  534. return Apollo.useMutation<StartAppMutation, StartAppMutationVariables>(StartAppDocument, options);
  535. }
  536. export type StartAppMutationHookResult = ReturnType<typeof useStartAppMutation>;
  537. export type StartAppMutationResult = Apollo.MutationResult<StartAppMutation>;
  538. export type StartAppMutationOptions = Apollo.BaseMutationOptions<StartAppMutation, StartAppMutationVariables>;
  539. export const StopAppDocument = gql`
  540. mutation StopApp($id: String!) {
  541. stopApp(id: $id) {
  542. id
  543. status
  544. __typename
  545. }
  546. }
  547. `;
  548. export type StopAppMutationFn = Apollo.MutationFunction<StopAppMutation, StopAppMutationVariables>;
  549. /**
  550. * __useStopAppMutation__
  551. *
  552. * To run a mutation, you first call `useStopAppMutation` within a React component and pass it any options that fit your needs.
  553. * When your component renders, `useStopAppMutation` returns a tuple that includes:
  554. * - A mutate function that you can call at any time to execute the mutation
  555. * - An object with fields that represent the current status of the mutation's execution
  556. *
  557. * @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;
  558. *
  559. * @example
  560. * const [stopAppMutation, { data, loading, error }] = useStopAppMutation({
  561. * variables: {
  562. * id: // value for 'id'
  563. * },
  564. * });
  565. */
  566. export function useStopAppMutation(baseOptions?: Apollo.MutationHookOptions<StopAppMutation, StopAppMutationVariables>) {
  567. const options = { ...defaultOptions, ...baseOptions };
  568. return Apollo.useMutation<StopAppMutation, StopAppMutationVariables>(StopAppDocument, options);
  569. }
  570. export type StopAppMutationHookResult = ReturnType<typeof useStopAppMutation>;
  571. export type StopAppMutationResult = Apollo.MutationResult<StopAppMutation>;
  572. export type StopAppMutationOptions = Apollo.BaseMutationOptions<StopAppMutation, StopAppMutationVariables>;
  573. export const UninstallAppDocument = gql`
  574. mutation UninstallApp($id: String!) {
  575. uninstallApp(id: $id) {
  576. id
  577. status
  578. __typename
  579. }
  580. }
  581. `;
  582. export type UninstallAppMutationFn = Apollo.MutationFunction<UninstallAppMutation, UninstallAppMutationVariables>;
  583. /**
  584. * __useUninstallAppMutation__
  585. *
  586. * To run a mutation, you first call `useUninstallAppMutation` within a React component and pass it any options that fit your needs.
  587. * When your component renders, `useUninstallAppMutation` returns a tuple that includes:
  588. * - A mutate function that you can call at any time to execute the mutation
  589. * - An object with fields that represent the current status of the mutation's execution
  590. *
  591. * @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;
  592. *
  593. * @example
  594. * const [uninstallAppMutation, { data, loading, error }] = useUninstallAppMutation({
  595. * variables: {
  596. * id: // value for 'id'
  597. * },
  598. * });
  599. */
  600. export function useUninstallAppMutation(baseOptions?: Apollo.MutationHookOptions<UninstallAppMutation, UninstallAppMutationVariables>) {
  601. const options = { ...defaultOptions, ...baseOptions };
  602. return Apollo.useMutation<UninstallAppMutation, UninstallAppMutationVariables>(UninstallAppDocument, options);
  603. }
  604. export type UninstallAppMutationHookResult = ReturnType<typeof useUninstallAppMutation>;
  605. export type UninstallAppMutationResult = Apollo.MutationResult<UninstallAppMutation>;
  606. export type UninstallAppMutationOptions = Apollo.BaseMutationOptions<UninstallAppMutation, UninstallAppMutationVariables>;
  607. export const UpdateDocument = gql`
  608. mutation Update {
  609. update
  610. }
  611. `;
  612. export type UpdateMutationFn = Apollo.MutationFunction<UpdateMutation, UpdateMutationVariables>;
  613. /**
  614. * __useUpdateMutation__
  615. *
  616. * To run a mutation, you first call `useUpdateMutation` within a React component and pass it any options that fit your needs.
  617. * When your component renders, `useUpdateMutation` returns a tuple that includes:
  618. * - A mutate function that you can call at any time to execute the mutation
  619. * - An object with fields that represent the current status of the mutation's execution
  620. *
  621. * @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;
  622. *
  623. * @example
  624. * const [updateMutation, { data, loading, error }] = useUpdateMutation({
  625. * variables: {
  626. * },
  627. * });
  628. */
  629. export function useUpdateMutation(baseOptions?: Apollo.MutationHookOptions<UpdateMutation, UpdateMutationVariables>) {
  630. const options = { ...defaultOptions, ...baseOptions };
  631. return Apollo.useMutation<UpdateMutation, UpdateMutationVariables>(UpdateDocument, options);
  632. }
  633. export type UpdateMutationHookResult = ReturnType<typeof useUpdateMutation>;
  634. export type UpdateMutationResult = Apollo.MutationResult<UpdateMutation>;
  635. export type UpdateMutationOptions = Apollo.BaseMutationOptions<UpdateMutation, UpdateMutationVariables>;
  636. export const UpdateAppDocument = gql`
  637. mutation UpdateApp($id: String!) {
  638. updateApp(id: $id) {
  639. id
  640. status
  641. __typename
  642. }
  643. }
  644. `;
  645. export type UpdateAppMutationFn = Apollo.MutationFunction<UpdateAppMutation, UpdateAppMutationVariables>;
  646. /**
  647. * __useUpdateAppMutation__
  648. *
  649. * To run a mutation, you first call `useUpdateAppMutation` within a React component and pass it any options that fit your needs.
  650. * When your component renders, `useUpdateAppMutation` returns a tuple that includes:
  651. * - A mutate function that you can call at any time to execute the mutation
  652. * - An object with fields that represent the current status of the mutation's execution
  653. *
  654. * @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;
  655. *
  656. * @example
  657. * const [updateAppMutation, { data, loading, error }] = useUpdateAppMutation({
  658. * variables: {
  659. * id: // value for 'id'
  660. * },
  661. * });
  662. */
  663. export function useUpdateAppMutation(baseOptions?: Apollo.MutationHookOptions<UpdateAppMutation, UpdateAppMutationVariables>) {
  664. const options = { ...defaultOptions, ...baseOptions };
  665. return Apollo.useMutation<UpdateAppMutation, UpdateAppMutationVariables>(UpdateAppDocument, options);
  666. }
  667. export type UpdateAppMutationHookResult = ReturnType<typeof useUpdateAppMutation>;
  668. export type UpdateAppMutationResult = Apollo.MutationResult<UpdateAppMutation>;
  669. export type UpdateAppMutationOptions = Apollo.BaseMutationOptions<UpdateAppMutation, UpdateAppMutationVariables>;
  670. export const UpdateAppConfigDocument = gql`
  671. mutation UpdateAppConfig($input: AppInputType!) {
  672. updateAppConfig(input: $input) {
  673. id
  674. status
  675. __typename
  676. }
  677. }
  678. `;
  679. export type UpdateAppConfigMutationFn = Apollo.MutationFunction<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>;
  680. /**
  681. * __useUpdateAppConfigMutation__
  682. *
  683. * To run a mutation, you first call `useUpdateAppConfigMutation` within a React component and pass it any options that fit your needs.
  684. * When your component renders, `useUpdateAppConfigMutation` returns a tuple that includes:
  685. * - A mutate function that you can call at any time to execute the mutation
  686. * - An object with fields that represent the current status of the mutation's execution
  687. *
  688. * @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;
  689. *
  690. * @example
  691. * const [updateAppConfigMutation, { data, loading, error }] = useUpdateAppConfigMutation({
  692. * variables: {
  693. * input: // value for 'input'
  694. * },
  695. * });
  696. */
  697. export function useUpdateAppConfigMutation(baseOptions?: Apollo.MutationHookOptions<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>) {
  698. const options = { ...defaultOptions, ...baseOptions };
  699. return Apollo.useMutation<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>(UpdateAppConfigDocument, options);
  700. }
  701. export type UpdateAppConfigMutationHookResult = ReturnType<typeof useUpdateAppConfigMutation>;
  702. export type UpdateAppConfigMutationResult = Apollo.MutationResult<UpdateAppConfigMutation>;
  703. export type UpdateAppConfigMutationOptions = Apollo.BaseMutationOptions<UpdateAppConfigMutation, UpdateAppConfigMutationVariables>;
  704. export const GetAppDocument = gql`
  705. query GetApp($appId: String!) {
  706. getApp(id: $appId) {
  707. id
  708. status
  709. config
  710. version
  711. exposed
  712. domain
  713. updateInfo {
  714. current
  715. latest
  716. dockerVersion
  717. }
  718. info {
  719. id
  720. port
  721. name
  722. description
  723. available
  724. version
  725. tipi_version
  726. short_desc
  727. author
  728. source
  729. categories
  730. url_suffix
  731. https
  732. exposable
  733. no_gui
  734. form_fields {
  735. type
  736. label
  737. max
  738. min
  739. hint
  740. placeholder
  741. required
  742. env_variable
  743. }
  744. }
  745. }
  746. }
  747. `;
  748. /**
  749. * __useGetAppQuery__
  750. *
  751. * To run a query within a React component, call `useGetAppQuery` and pass it any options that fit your needs.
  752. * When your component renders, `useGetAppQuery` returns an object from Apollo Client that contains loading, error, and data properties
  753. * you can use to render your UI.
  754. *
  755. * @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;
  756. *
  757. * @example
  758. * const { data, loading, error } = useGetAppQuery({
  759. * variables: {
  760. * appId: // value for 'appId'
  761. * },
  762. * });
  763. */
  764. export function useGetAppQuery(baseOptions: Apollo.QueryHookOptions<GetAppQuery, GetAppQueryVariables>) {
  765. const options = { ...defaultOptions, ...baseOptions };
  766. return Apollo.useQuery<GetAppQuery, GetAppQueryVariables>(GetAppDocument, options);
  767. }
  768. export function useGetAppLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetAppQuery, GetAppQueryVariables>) {
  769. const options = { ...defaultOptions, ...baseOptions };
  770. return Apollo.useLazyQuery<GetAppQuery, GetAppQueryVariables>(GetAppDocument, options);
  771. }
  772. export type GetAppQueryHookResult = ReturnType<typeof useGetAppQuery>;
  773. export type GetAppLazyQueryHookResult = ReturnType<typeof useGetAppLazyQuery>;
  774. export type GetAppQueryResult = Apollo.QueryResult<GetAppQuery, GetAppQueryVariables>;
  775. export const InstalledAppsDocument = gql`
  776. query InstalledApps {
  777. installedApps {
  778. id
  779. status
  780. config
  781. version
  782. updateInfo {
  783. current
  784. latest
  785. dockerVersion
  786. }
  787. info {
  788. id
  789. name
  790. description
  791. tipi_version
  792. short_desc
  793. https
  794. }
  795. }
  796. }
  797. `;
  798. /**
  799. * __useInstalledAppsQuery__
  800. *
  801. * To run a query within a React component, call `useInstalledAppsQuery` and pass it any options that fit your needs.
  802. * When your component renders, `useInstalledAppsQuery` returns an object from Apollo Client that contains loading, error, and data properties
  803. * you can use to render your UI.
  804. *
  805. * @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;
  806. *
  807. * @example
  808. * const { data, loading, error } = useInstalledAppsQuery({
  809. * variables: {
  810. * },
  811. * });
  812. */
  813. export function useInstalledAppsQuery(baseOptions?: Apollo.QueryHookOptions<InstalledAppsQuery, InstalledAppsQueryVariables>) {
  814. const options = { ...defaultOptions, ...baseOptions };
  815. return Apollo.useQuery<InstalledAppsQuery, InstalledAppsQueryVariables>(InstalledAppsDocument, options);
  816. }
  817. export function useInstalledAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<InstalledAppsQuery, InstalledAppsQueryVariables>) {
  818. const options = { ...defaultOptions, ...baseOptions };
  819. return Apollo.useLazyQuery<InstalledAppsQuery, InstalledAppsQueryVariables>(InstalledAppsDocument, options);
  820. }
  821. export type InstalledAppsQueryHookResult = ReturnType<typeof useInstalledAppsQuery>;
  822. export type InstalledAppsLazyQueryHookResult = ReturnType<typeof useInstalledAppsLazyQuery>;
  823. export type InstalledAppsQueryResult = Apollo.QueryResult<InstalledAppsQuery, InstalledAppsQueryVariables>;
  824. export const ConfiguredDocument = gql`
  825. query Configured {
  826. isConfigured
  827. }
  828. `;
  829. /**
  830. * __useConfiguredQuery__
  831. *
  832. * To run a query within a React component, call `useConfiguredQuery` and pass it any options that fit your needs.
  833. * When your component renders, `useConfiguredQuery` returns an object from Apollo Client that contains loading, error, and data properties
  834. * you can use to render your UI.
  835. *
  836. * @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;
  837. *
  838. * @example
  839. * const { data, loading, error } = useConfiguredQuery({
  840. * variables: {
  841. * },
  842. * });
  843. */
  844. export function useConfiguredQuery(baseOptions?: Apollo.QueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
  845. const options = { ...defaultOptions, ...baseOptions };
  846. return Apollo.useQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
  847. }
  848. export function useConfiguredLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConfiguredQuery, ConfiguredQueryVariables>) {
  849. const options = { ...defaultOptions, ...baseOptions };
  850. return Apollo.useLazyQuery<ConfiguredQuery, ConfiguredQueryVariables>(ConfiguredDocument, options);
  851. }
  852. export type ConfiguredQueryHookResult = ReturnType<typeof useConfiguredQuery>;
  853. export type ConfiguredLazyQueryHookResult = ReturnType<typeof useConfiguredLazyQuery>;
  854. export type ConfiguredQueryResult = Apollo.QueryResult<ConfiguredQuery, ConfiguredQueryVariables>;
  855. export const ListAppsDocument = gql`
  856. query ListApps {
  857. listAppsInfo {
  858. apps {
  859. id
  860. available
  861. tipi_version
  862. port
  863. name
  864. version
  865. short_desc
  866. author
  867. categories
  868. https
  869. }
  870. total
  871. }
  872. }
  873. `;
  874. /**
  875. * __useListAppsQuery__
  876. *
  877. * To run a query within a React component, call `useListAppsQuery` and pass it any options that fit your needs.
  878. * When your component renders, `useListAppsQuery` returns an object from Apollo Client that contains loading, error, and data properties
  879. * you can use to render your UI.
  880. *
  881. * @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;
  882. *
  883. * @example
  884. * const { data, loading, error } = useListAppsQuery({
  885. * variables: {
  886. * },
  887. * });
  888. */
  889. export function useListAppsQuery(baseOptions?: Apollo.QueryHookOptions<ListAppsQuery, ListAppsQueryVariables>) {
  890. const options = { ...defaultOptions, ...baseOptions };
  891. return Apollo.useQuery<ListAppsQuery, ListAppsQueryVariables>(ListAppsDocument, options);
  892. }
  893. export function useListAppsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ListAppsQuery, ListAppsQueryVariables>) {
  894. const options = { ...defaultOptions, ...baseOptions };
  895. return Apollo.useLazyQuery<ListAppsQuery, ListAppsQueryVariables>(ListAppsDocument, options);
  896. }
  897. export type ListAppsQueryHookResult = ReturnType<typeof useListAppsQuery>;
  898. export type ListAppsLazyQueryHookResult = ReturnType<typeof useListAppsLazyQuery>;
  899. export type ListAppsQueryResult = Apollo.QueryResult<ListAppsQuery, ListAppsQueryVariables>;
  900. export const MeDocument = gql`
  901. query Me {
  902. me {
  903. id
  904. }
  905. }
  906. `;
  907. /**
  908. * __useMeQuery__
  909. *
  910. * To run a query within a React component, call `useMeQuery` and pass it any options that fit your needs.
  911. * When your component renders, `useMeQuery` returns an object from Apollo Client that contains loading, error, and data properties
  912. * you can use to render your UI.
  913. *
  914. * @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;
  915. *
  916. * @example
  917. * const { data, loading, error } = useMeQuery({
  918. * variables: {
  919. * },
  920. * });
  921. */
  922. export function useMeQuery(baseOptions?: Apollo.QueryHookOptions<MeQuery, MeQueryVariables>) {
  923. const options = { ...defaultOptions, ...baseOptions };
  924. return Apollo.useQuery<MeQuery, MeQueryVariables>(MeDocument, options);
  925. }
  926. export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<MeQuery, MeQueryVariables>) {
  927. const options = { ...defaultOptions, ...baseOptions };
  928. return Apollo.useLazyQuery<MeQuery, MeQueryVariables>(MeDocument, options);
  929. }
  930. export type MeQueryHookResult = ReturnType<typeof useMeQuery>;
  931. export type MeLazyQueryHookResult = ReturnType<typeof useMeLazyQuery>;
  932. export type MeQueryResult = Apollo.QueryResult<MeQuery, MeQueryVariables>;
  933. export const RefreshTokenDocument = gql`
  934. query RefreshToken {
  935. refreshToken {
  936. token
  937. }
  938. }
  939. `;
  940. /**
  941. * __useRefreshTokenQuery__
  942. *
  943. * To run a query within a React component, call `useRefreshTokenQuery` and pass it any options that fit your needs.
  944. * When your component renders, `useRefreshTokenQuery` 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 } = useRefreshTokenQuery({
  951. * variables: {
  952. * },
  953. * });
  954. */
  955. export function useRefreshTokenQuery(baseOptions?: Apollo.QueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
  956. const options = { ...defaultOptions, ...baseOptions };
  957. return Apollo.useQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
  958. }
  959. export function useRefreshTokenLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<RefreshTokenQuery, RefreshTokenQueryVariables>) {
  960. const options = { ...defaultOptions, ...baseOptions };
  961. return Apollo.useLazyQuery<RefreshTokenQuery, RefreshTokenQueryVariables>(RefreshTokenDocument, options);
  962. }
  963. export type RefreshTokenQueryHookResult = ReturnType<typeof useRefreshTokenQuery>;
  964. export type RefreshTokenLazyQueryHookResult = ReturnType<typeof useRefreshTokenLazyQuery>;
  965. export type RefreshTokenQueryResult = Apollo.QueryResult<RefreshTokenQuery, RefreshTokenQueryVariables>;
  966. export const SystemInfoDocument = gql`
  967. query SystemInfo {
  968. systemInfo {
  969. cpu {
  970. load
  971. }
  972. disk {
  973. available
  974. used
  975. total
  976. }
  977. memory {
  978. available
  979. used
  980. total
  981. }
  982. }
  983. }
  984. `;
  985. /**
  986. * __useSystemInfoQuery__
  987. *
  988. * To run a query within a React component, call `useSystemInfoQuery` and pass it any options that fit your needs.
  989. * When your component renders, `useSystemInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
  990. * you can use to render your UI.
  991. *
  992. * @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;
  993. *
  994. * @example
  995. * const { data, loading, error } = useSystemInfoQuery({
  996. * variables: {
  997. * },
  998. * });
  999. */
  1000. export function useSystemInfoQuery(baseOptions?: Apollo.QueryHookOptions<SystemInfoQuery, SystemInfoQueryVariables>) {
  1001. const options = { ...defaultOptions, ...baseOptions };
  1002. return Apollo.useQuery<SystemInfoQuery, SystemInfoQueryVariables>(SystemInfoDocument, options);
  1003. }
  1004. export function useSystemInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SystemInfoQuery, SystemInfoQueryVariables>) {
  1005. const options = { ...defaultOptions, ...baseOptions };
  1006. return Apollo.useLazyQuery<SystemInfoQuery, SystemInfoQueryVariables>(SystemInfoDocument, options);
  1007. }
  1008. export type SystemInfoQueryHookResult = ReturnType<typeof useSystemInfoQuery>;
  1009. export type SystemInfoLazyQueryHookResult = ReturnType<typeof useSystemInfoLazyQuery>;
  1010. export type SystemInfoQueryResult = Apollo.QueryResult<SystemInfoQuery, SystemInfoQueryVariables>;
  1011. export const VersionDocument = gql`
  1012. query Version {
  1013. version {
  1014. current
  1015. latest
  1016. }
  1017. }
  1018. `;
  1019. /**
  1020. * __useVersionQuery__
  1021. *
  1022. * To run a query within a React component, call `useVersionQuery` and pass it any options that fit your needs.
  1023. * When your component renders, `useVersionQuery` returns an object from Apollo Client that contains loading, error, and data properties
  1024. * you can use to render your UI.
  1025. *
  1026. * @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;
  1027. *
  1028. * @example
  1029. * const { data, loading, error } = useVersionQuery({
  1030. * variables: {
  1031. * },
  1032. * });
  1033. */
  1034. export function useVersionQuery(baseOptions?: Apollo.QueryHookOptions<VersionQuery, VersionQueryVariables>) {
  1035. const options = { ...defaultOptions, ...baseOptions };
  1036. return Apollo.useQuery<VersionQuery, VersionQueryVariables>(VersionDocument, options);
  1037. }
  1038. export function useVersionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<VersionQuery, VersionQueryVariables>) {
  1039. const options = { ...defaultOptions, ...baseOptions };
  1040. return Apollo.useLazyQuery<VersionQuery, VersionQueryVariables>(VersionDocument, options);
  1041. }
  1042. export type VersionQueryHookResult = ReturnType<typeof useVersionQuery>;
  1043. export type VersionLazyQueryHookResult = ReturnType<typeof useVersionLazyQuery>;
  1044. export type VersionQueryResult = Apollo.QueryResult<VersionQuery, VersionQueryVariables>;