@@ -36,7 +36,7 @@ export type Mutation = {
3636 __typename : 'Mutation' ;
3737 createDeck : Scalars [ 'String' ] [ 'output' ] ;
3838 deleteDeck : Scalars [ 'String' ] [ 'output' ] ;
39- logout : Scalars [ 'String ' ] [ 'output' ] ;
39+ logout : Scalars [ 'Boolean ' ] [ 'output' ] ;
4040 setValid : Scalars [ 'String' ] [ 'output' ] ;
4141 updateDeck : Scalars [ 'String' ] [ 'output' ] ;
4242} ;
@@ -52,12 +52,6 @@ export type MutationDeleteDeckArgs = {
5252 hash : Scalars [ 'String' ] [ 'input' ] ;
5353} ;
5454
55-
56- export type MutationLogoutArgs = {
57- token : Scalars [ 'String' ] [ 'input' ] ;
58- } ;
59-
60-
6155export type MutationSetValidArgs = {
6256 hash : Scalars [ 'String' ] [ 'input' ] ;
6357} ;
@@ -92,11 +86,6 @@ export type QueryDecksArgs = {
9286 year ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
9387} ;
9488
95-
96- export type QueryIsActiveSessionArgs = {
97- token : Scalars [ 'String' ] [ 'input' ] ;
98- } ;
99-
10089export type CreateDeckMutationVariables = Exact < {
10190 meta : NewDeck ;
10291 file : Scalars [ 'Upload' ] [ 'input' ] ;
@@ -127,12 +116,10 @@ export type SetValidMutationVariables = Exact<{
127116
128117export type SetValidMutation = { setValid : string } ;
129118
130- export type LogoutMutationVariables = Exact < {
131- token : Scalars [ 'String' ] [ 'input' ] ;
132- } > ;
119+ export type LogoutMutationVariables = Exact < { [ key : string ] : never ; } > ;
133120
134121
135- export type LogoutMutation = { logout : string } ;
122+ export type LogoutMutation = { logout : boolean } ;
136123
137124export type DecksQueryVariables = Exact < {
138125 search ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
@@ -144,9 +131,7 @@ export type DecksQueryVariables = Exact<{
144131
145132export type DecksQuery = { decks : Array < { __typename : 'Deck' , subject : string , module : string , moduleAlt : string , examiners : string , language : string , semester : string , year : number , hash : string , fileType : string , isValid : boolean } > | null } ;
146133
147- export type IsActiveSessionQueryVariables = Exact < {
148- token : Scalars [ 'String' ] [ 'input' ] ;
149- } > ;
134+ export type IsActiveSessionQueryVariables = Exact < { [ key : string ] : never ; } > ;
150135
151136
152137export type IsActiveSessionQuery = { isActiveSession : boolean } ;
@@ -177,7 +162,7 @@ export type CreateDeckMutationFn = typeof useCreateDeckMutation
177162 * },
178163 * });
179164 */
180- export function useCreateDeckMutation ( baseOptions ?: Apollo . MutationFunctionOptions < CreateDeckMutation , CreateDeckMutationVariables > ) {
165+ export function useCreateDeckMutation ( baseOptions ?: Apollo . MutationHookOptions < CreateDeckMutation , CreateDeckMutationVariables > ) {
181166 const options = { ...defaultOptions , ...baseOptions }
182167 return Apollo . useMutation < CreateDeckMutation , CreateDeckMutationVariables > ( CreateDeckDocument , options ) ;
183168 }
@@ -279,8 +264,8 @@ export type SetValidMutationHookResult = ReturnType<typeof useSetValidMutation>;
279264export type SetValidMutationResult = Apollo . MutationResult < SetValidMutation > ;
280265export type SetValidMutationOptions = Apollo . MutationFunctionOptions < SetValidMutation , SetValidMutationVariables > ;
281266export const LogoutDocument = gql `
282- mutation Logout($token: String!) {
283- logout(token: $token)
267+ mutation Logout {
268+ logout
284269}
285270 ` ;
286271export type LogoutMutationFn = typeof useLogoutMutation
@@ -298,7 +283,6 @@ export type LogoutMutationFn = typeof useLogoutMutation
298283 * @example
299284 * const [logoutMutation, { data, loading, error }] = useLogoutMutation({
300285 * variables: {
301- * token: // value for 'token'
302286 * },
303287 * });
304288 */
@@ -362,8 +346,8 @@ export type DecksLazyQueryHookResult = ReturnType<typeof useDecksLazyQuery>;
362346export type DecksSuspenseQueryHookResult = ReturnType < typeof useDecksSuspenseQuery > ;
363347export type DecksQueryResult = Apollo . QueryResult < DecksQuery , DecksQueryVariables > ;
364348export const IsActiveSessionDocument = gql `
365- query IsActiveSession($token: String!) {
366- isActiveSession(token: $token)
349+ query IsActiveSession {
350+ isActiveSession
367351}
368352 ` ;
369353
@@ -379,11 +363,10 @@ export const IsActiveSessionDocument = gql`
379363 * @example
380364 * const { data, loading, error } = useIsActiveSessionQuery({
381365 * variables: {
382- * token: // value for 'token'
383366 * },
384367 * });
385368 */
386- export function useIsActiveSessionQuery ( baseOptions : Apollo . QueryHookOptions < IsActiveSessionQuery , IsActiveSessionQueryVariables > & ( { variables : IsActiveSessionQueryVariables ; skip ?: boolean ; } | { skip : boolean ; } ) ) {
369+ export function useIsActiveSessionQuery ( baseOptions ? : Apollo . QueryHookOptions < IsActiveSessionQuery , IsActiveSessionQueryVariables > ) {
387370 const options = { ...defaultOptions , ...baseOptions }
388371 return Apollo . useQuery < IsActiveSessionQuery , IsActiveSessionQueryVariables > ( IsActiveSessionDocument , options ) ;
389372 }
0 commit comments