@@ -3,6 +3,9 @@ import * as ApolloReactCommon from '@apollo/client';
33import * as ApolloReactHooks from '@apollo/client' ;
44export type Maybe < T > = T | null ;
55export 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 = { }
69/** All built-in and custom scalars, mapped to their actual values */
710export type Scalars = {
811 ID : string ;
@@ -22,7 +25,8 @@ export type Endpoint = {
2225export type Lab = {
2326 __typename ?: 'Lab' ;
2427 id : Scalars [ 'String' ] ;
25- endpoints : Array < Endpoint > ;
28+ wsEndpoints : Array < Endpoint > ;
29+ tcpEndpoints : Array < Endpoint > ;
2630 resources : Array < ResourceWithTranslation > ;
2731} ;
2832
@@ -38,11 +42,12 @@ export type LabInstance = {
3842 lang : Scalars [ 'String' ] ;
3943 name : Scalars [ 'String' ] ;
4044 content : Scalars [ 'String' ] ;
41- endpoints : Array < Endpoint > ;
45+ wsEndpoints : Array < Endpoint > ;
46+ tcpEndpoints : Array < Endpoint > ;
4247} ;
4348
4449export type Practice = {
45- __typename ?: 'nav.practice ' ;
50+ __typename ?: 'Practice ' ;
4651 labCategories : Array < LabCategory > ;
4752} ;
4853
@@ -77,10 +82,13 @@ export type EndpointFragment = (
7782 & Pick < Endpoint , 'host' | 'port' >
7883) ;
7984
80- export type LabWithoutEndpointFragment = (
85+ export type LabWithEndpointFragment = (
8186 { __typename ?: 'Lab' }
8287 & Pick < Lab , 'id' >
83- & { endpoints : Array < (
88+ & { wsEndpoints : Array < (
89+ { __typename ?: 'Endpoint' }
90+ & EndpointFragment
91+ ) > , tcpEndpoints : Array < (
8492 { __typename ?: 'Endpoint' }
8593 & EndpointFragment
8694 ) > , resources : Array < (
@@ -97,12 +105,12 @@ export type LabCategoryFragment = (
97105 & TranslationFragment
98106 ) > , labs : Array < (
99107 { __typename ?: 'Lab' }
100- & LabWithoutEndpointFragment
108+ & LabWithEndpointFragment
101109 ) > }
102110) ;
103111
104112export type PracticeFragment = (
105- { __typename ?: 'nav.practice ' }
113+ { __typename ?: 'Practice ' }
106114 & { labCategories : Array < (
107115 { __typename ?: 'LabCategory' }
108116 & LabCategoryFragment
@@ -112,7 +120,10 @@ export type PracticeFragment = (
112120export type LabInstanceFragment = (
113121 { __typename ?: 'LabInstance' }
114122 & Pick < LabInstance , 'lang' | 'name' | 'content' >
115- & { endpoints : Array < (
123+ & { wsEndpoints : Array < (
124+ { __typename ?: 'Endpoint' }
125+ & EndpointFragment
126+ ) > , tcpEndpoints : Array < (
116127 { __typename ?: 'Endpoint' }
117128 & EndpointFragment
118129 ) > }
@@ -142,7 +153,7 @@ export type PracticesQueryVariables = Exact<{ [key: string]: never; }>;
142153export type PracticesQuery = (
143154 { __typename ?: 'Query' }
144155 & { practice : (
145- { __typename ?: 'nav.practice ' }
156+ { __typename ?: 'Practice ' }
146157 & PracticeFragment
147158 ) }
148159) ;
@@ -180,10 +191,13 @@ export const ResourceWithTranslationFragmentDoc = gql`
180191 name
181192}
182193 ` ;
183- export const LabWithoutEndpointFragmentDoc = gql `
184- fragment LabWithoutEndpoint on Lab {
194+ export const LabWithEndpointFragmentDoc = gql `
195+ fragment LabWithEndpoint on Lab {
185196 id
186- endpoints {
197+ wsEndpoints {
198+ ...Endpoint
199+ }
200+ tcpEndpoints {
187201 ...Endpoint
188202 }
189203 resources {
@@ -199,11 +213,11 @@ export const LabCategoryFragmentDoc = gql`
199213 ...Translation
200214 }
201215 labs {
202- ...LabWithoutEndpoint
216+ ...LabWithEndpoint
203217 }
204218}
205219 ${ TranslationFragmentDoc }
206- ${ LabWithoutEndpointFragmentDoc } `;
220+ ${ LabWithEndpointFragmentDoc } `;
207221export const PracticeFragmentDoc = gql `
208222 fragment Practice on Practice {
209223 labCategories {
@@ -216,7 +230,10 @@ export const LabInstanceFragmentDoc = gql`
216230 lang
217231 name
218232 content
219- endpoints {
233+ wsEndpoints {
234+ ...Endpoint
235+ }
236+ tcpEndpoints {
220237 ...Endpoint
221238 }
222239}
@@ -243,10 +260,12 @@ export const HelloDocument = gql`
243260 * });
244261 */
245262export function useHelloQuery ( baseOptions ?: ApolloReactHooks . QueryHookOptions < HelloQuery , HelloQueryVariables > ) {
246- return ApolloReactHooks . useQuery < HelloQuery , HelloQueryVariables > ( HelloDocument , baseOptions ) ;
263+ const options = { ...defaultOptions , ...baseOptions }
264+ return ApolloReactHooks . useQuery < HelloQuery , HelloQueryVariables > ( HelloDocument , options ) ;
247265 }
248266export function useHelloLazyQuery ( baseOptions ?: ApolloReactHooks . LazyQueryHookOptions < HelloQuery , HelloQueryVariables > ) {
249- return ApolloReactHooks . useLazyQuery < HelloQuery , HelloQueryVariables > ( HelloDocument , baseOptions ) ;
267+ const options = { ...defaultOptions , ...baseOptions }
268+ return ApolloReactHooks . useLazyQuery < HelloQuery , HelloQueryVariables > ( HelloDocument , options ) ;
250269 }
251270export type HelloQueryHookResult = ReturnType < typeof useHelloQuery > ;
252271export type HelloLazyQueryHookResult = ReturnType < typeof useHelloLazyQuery > ;
@@ -275,10 +294,12 @@ export const PracticesDocument = gql`
275294 * });
276295 */
277296export function usePracticesQuery ( baseOptions ?: ApolloReactHooks . QueryHookOptions < PracticesQuery , PracticesQueryVariables > ) {
278- return ApolloReactHooks . useQuery < PracticesQuery , PracticesQueryVariables > ( PracticesDocument , baseOptions ) ;
297+ const options = { ...defaultOptions , ...baseOptions }
298+ return ApolloReactHooks . useQuery < PracticesQuery , PracticesQueryVariables > ( PracticesDocument , options ) ;
279299 }
280300export function usePracticesLazyQuery ( baseOptions ?: ApolloReactHooks . LazyQueryHookOptions < PracticesQuery , PracticesQueryVariables > ) {
281- return ApolloReactHooks . useLazyQuery < PracticesQuery , PracticesQueryVariables > ( PracticesDocument , baseOptions ) ;
301+ const options = { ...defaultOptions , ...baseOptions }
302+ return ApolloReactHooks . useLazyQuery < PracticesQuery , PracticesQueryVariables > ( PracticesDocument , options ) ;
282303 }
283304export type PracticesQueryHookResult = ReturnType < typeof usePracticesQuery > ;
284305export type PracticesLazyQueryHookResult = ReturnType < typeof usePracticesLazyQuery > ;
@@ -309,11 +330,13 @@ export const LabDocument = gql`
309330 * },
310331 * });
311332 */
312- export function useLabQuery ( baseOptions ?: ApolloReactHooks . QueryHookOptions < LabQuery , LabQueryVariables > ) {
313- return ApolloReactHooks . useQuery < LabQuery , LabQueryVariables > ( LabDocument , baseOptions ) ;
333+ export function useLabQuery ( baseOptions : ApolloReactHooks . QueryHookOptions < LabQuery , LabQueryVariables > ) {
334+ const options = { ...defaultOptions , ...baseOptions }
335+ return ApolloReactHooks . useQuery < LabQuery , LabQueryVariables > ( LabDocument , options ) ;
314336 }
315337export function useLabLazyQuery ( baseOptions ?: ApolloReactHooks . LazyQueryHookOptions < LabQuery , LabQueryVariables > ) {
316- return ApolloReactHooks . useLazyQuery < LabQuery , LabQueryVariables > ( LabDocument , baseOptions ) ;
338+ const options = { ...defaultOptions , ...baseOptions }
339+ return ApolloReactHooks . useLazyQuery < LabQuery , LabQueryVariables > ( LabDocument , options ) ;
317340 }
318341export type LabQueryHookResult = ReturnType < typeof useLabQuery > ;
319342export type LabLazyQueryHookResult = ReturnType < typeof useLabLazyQuery > ;
0 commit comments