@@ -137,6 +137,7 @@ export type Mutation = {
137137 reqPwReset : SuccessResponse
138138 setStar : SuccessResponse
139139 signup ?: Maybe < AuthResponse >
140+ unlinkDiscord ?: Maybe < User >
140141 updateChallenge ?: Maybe < Array < Maybe < Lesson > > >
141142 updateExercise : Exercise
142143 updateLesson : Array < Lesson >
@@ -1059,6 +1060,13 @@ export type SignupMutation = {
10591060 } | null
10601061}
10611062
1063+ export type UnlinkDiscordMutationVariables = Exact < { [ key : string ] : never } >
1064+
1065+ export type UnlinkDiscordMutation = {
1066+ __typename ?: 'Mutation'
1067+ unlinkDiscord ?: { __typename ?: 'User' ; id : number } | null
1068+ }
1069+
10621070export type UpdateChallengeMutationVariables = Exact < {
10631071 lessonId : Scalars [ 'Int' ]
10641072 order : Scalars [ 'Int' ]
@@ -1654,6 +1662,11 @@ export type MutationResolvers<
16541662 'email' | 'firstName' | 'lastName' | 'password' | 'username'
16551663 >
16561664 >
1665+ unlinkDiscord ?: Resolver <
1666+ Maybe < ResolversTypes [ 'User' ] > ,
1667+ ParentType ,
1668+ ContextType
1669+ >
16571670 updateChallenge ?: Resolver <
16581671 Maybe < Array < Maybe < ResolversTypes [ 'Lesson' ] > > > ,
16591672 ParentType ,
@@ -4588,6 +4601,86 @@ export type SignupMutationOptions = Apollo.BaseMutationOptions<
45884601 SignupMutation ,
45894602 SignupMutationVariables
45904603>
4604+ export const UnlinkDiscordDocument = gql `
4605+ mutation unlinkDiscord {
4606+ unlinkDiscord {
4607+ id
4608+ }
4609+ }
4610+ `
4611+ export type UnlinkDiscordMutationFn = Apollo . MutationFunction <
4612+ UnlinkDiscordMutation ,
4613+ UnlinkDiscordMutationVariables
4614+ >
4615+ export type UnlinkDiscordProps <
4616+ TChildProps = { } ,
4617+ TDataName extends string = 'mutate'
4618+ > = {
4619+ [ key in TDataName ] : Apollo . MutationFunction <
4620+ UnlinkDiscordMutation ,
4621+ UnlinkDiscordMutationVariables
4622+ >
4623+ } & TChildProps
4624+ export function withUnlinkDiscord <
4625+ TProps ,
4626+ TChildProps = { } ,
4627+ TDataName extends string = 'mutate'
4628+ > (
4629+ operationOptions ?: ApolloReactHoc . OperationOption <
4630+ TProps ,
4631+ UnlinkDiscordMutation ,
4632+ UnlinkDiscordMutationVariables ,
4633+ UnlinkDiscordProps < TChildProps , TDataName >
4634+ >
4635+ ) {
4636+ return ApolloReactHoc . withMutation <
4637+ TProps ,
4638+ UnlinkDiscordMutation ,
4639+ UnlinkDiscordMutationVariables ,
4640+ UnlinkDiscordProps < TChildProps , TDataName >
4641+ > ( UnlinkDiscordDocument , {
4642+ alias : 'unlinkDiscord' ,
4643+ ...operationOptions
4644+ } )
4645+ }
4646+
4647+ /**
4648+ * __useUnlinkDiscordMutation__
4649+ *
4650+ * To run a mutation, you first call `useUnlinkDiscordMutation` within a React component and pass it any options that fit your needs.
4651+ * When your component renders, `useUnlinkDiscordMutation` returns a tuple that includes:
4652+ * - A mutate function that you can call at any time to execute the mutation
4653+ * - An object with fields that represent the current status of the mutation's execution
4654+ *
4655+ * @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;
4656+ *
4657+ * @example
4658+ * const [unlinkDiscordMutation, { data, loading, error }] = useUnlinkDiscordMutation({
4659+ * variables: {
4660+ * },
4661+ * });
4662+ */
4663+ export function useUnlinkDiscordMutation (
4664+ baseOptions ?: Apollo . MutationHookOptions <
4665+ UnlinkDiscordMutation ,
4666+ UnlinkDiscordMutationVariables
4667+ >
4668+ ) {
4669+ const options = { ...defaultOptions , ...baseOptions }
4670+ return Apollo . useMutation <
4671+ UnlinkDiscordMutation ,
4672+ UnlinkDiscordMutationVariables
4673+ > ( UnlinkDiscordDocument , options )
4674+ }
4675+ export type UnlinkDiscordMutationHookResult = ReturnType <
4676+ typeof useUnlinkDiscordMutation
4677+ >
4678+ export type UnlinkDiscordMutationResult =
4679+ Apollo . MutationResult < UnlinkDiscordMutation >
4680+ export type UnlinkDiscordMutationOptions = Apollo . BaseMutationOptions <
4681+ UnlinkDiscordMutation ,
4682+ UnlinkDiscordMutationVariables
4683+ >
45914684export const UpdateChallengeDocument = gql `
45924685 mutation updateChallenge(
45934686 $lessonId: Int!
@@ -5281,6 +5374,7 @@ export type MutationKeySpecifier = (
52815374 | 'reqPwReset'
52825375 | 'setStar'
52835376 | 'signup'
5377+ | 'unlinkDiscord'
52845378 | 'updateChallenge'
52855379 | 'updateExercise'
52865380 | 'updateLesson'
@@ -5310,6 +5404,7 @@ export type MutationFieldPolicy = {
53105404 reqPwReset ?: FieldPolicy < any > | FieldReadFunction < any >
53115405 setStar ?: FieldPolicy < any > | FieldReadFunction < any >
53125406 signup ?: FieldPolicy < any > | FieldReadFunction < any >
5407+ unlinkDiscord ?: FieldPolicy < any > | FieldReadFunction < any >
53135408 updateChallenge ?: FieldPolicy < any > | FieldReadFunction < any >
53145409 updateExercise ?: FieldPolicy < any > | FieldReadFunction < any >
53155410 updateLesson ?: FieldPolicy < any > | FieldReadFunction < any >
0 commit comments