|
@@ -15,7 +15,6 @@ export type Scalars = {
|
|
|
};
|
|
|
|
|
|
export type Block = Node & {
|
|
|
- __typename?: 'Block',
|
|
|
id: Scalars['ID'],
|
|
|
title: Scalars['String'],
|
|
|
description?: Maybe<Scalars['String']>,
|
|
@@ -89,7 +88,6 @@ export type BlockCreateWithoutBlocksInput = {
|
|
|
};
|
|
|
|
|
|
export type BlockInstance = Node & {
|
|
|
- __typename?: 'BlockInstance',
|
|
|
id: Scalars['ID'],
|
|
|
block: Block,
|
|
|
order: Scalars['Int'],
|
|
@@ -379,7 +377,6 @@ export type BlockWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type Comment = Node & {
|
|
|
- __typename?: 'Comment',
|
|
|
id: Scalars['ID'],
|
|
|
text: Scalars['String'],
|
|
|
author: User,
|
|
@@ -604,7 +601,6 @@ export type CommentWhereUniqueInput = {
|
|
|
|
|
|
|
|
|
export type Exercise = Node & {
|
|
|
- __typename?: 'Exercise',
|
|
|
id: Scalars['ID'],
|
|
|
name: Scalars['String'],
|
|
|
description: Scalars['String'],
|
|
@@ -646,7 +642,6 @@ export type ExerciseCreatevideosInput = {
|
|
|
};
|
|
|
|
|
|
export type ExerciseInstance = Node & {
|
|
|
- __typename?: 'ExerciseInstance',
|
|
|
id: Scalars['ID'],
|
|
|
exercise: Exercise,
|
|
|
order: Scalars['Int'],
|
|
@@ -880,7 +875,6 @@ export type ExerciseWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type Format = Node & {
|
|
|
- __typename?: 'Format',
|
|
|
id: Scalars['ID'],
|
|
|
name: Scalars['String'],
|
|
|
description: Scalars['String'],
|
|
@@ -1001,7 +995,6 @@ export type FormatWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type Mutation = {
|
|
|
- __typename?: 'Mutation',
|
|
|
createUser: User,
|
|
|
updateUser?: Maybe<User>,
|
|
|
deleteUser?: Maybe<User>,
|
|
@@ -1105,7 +1098,6 @@ export enum Permission {
|
|
|
}
|
|
|
|
|
|
export type Query = {
|
|
|
- __typename?: 'Query',
|
|
|
currentUser: User,
|
|
|
user?: Maybe<User>,
|
|
|
users: Array<User>,
|
|
@@ -1218,7 +1210,6 @@ export type QueryExercisesArgs = {
|
|
|
};
|
|
|
|
|
|
export type Rating = Node & {
|
|
|
- __typename?: 'Rating',
|
|
|
id: Scalars['ID'],
|
|
|
user: User,
|
|
|
value: Scalars['Int'],
|
|
@@ -1478,7 +1469,6 @@ export type RatingWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type Track = Node & {
|
|
|
- __typename?: 'Track',
|
|
|
id: Scalars['ID'],
|
|
|
title: Scalars['String'],
|
|
|
artist: Scalars['String'],
|
|
@@ -1649,7 +1639,6 @@ export type TrackWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type Training = Node & {
|
|
|
- __typename?: 'Training',
|
|
|
id: Scalars['ID'],
|
|
|
title: Scalars['String'],
|
|
|
type: TrainingType,
|
|
@@ -1714,7 +1703,6 @@ export enum TrainingOrderByInput {
|
|
|
}
|
|
|
|
|
|
export type TrainingType = Node & {
|
|
|
- __typename?: 'TrainingType',
|
|
|
id: Scalars['ID'],
|
|
|
name: Scalars['String'],
|
|
|
description: Scalars['String'],
|
|
@@ -1984,7 +1972,6 @@ export type TrainingWhereInput = {
|
|
|
};
|
|
|
|
|
|
export type User = Node & {
|
|
|
- __typename?: 'User',
|
|
|
id: Scalars['ID'],
|
|
|
email: Scalars['String'],
|
|
|
name: Scalars['String'],
|
|
@@ -2264,64 +2251,31 @@ export type UserWhereUniqueInput = {
|
|
|
};
|
|
|
|
|
|
export type ExerciseContentFragment = (
|
|
|
- { __typename?: 'ExerciseInstance' }
|
|
|
- & Pick<ExerciseInstance, 'id' | 'order' | 'repetitions' | 'variation'>
|
|
|
- & { exercise: (
|
|
|
- { __typename?: 'Exercise' }
|
|
|
- & Pick<Exercise, 'id' | 'name' | 'description' | 'videos' | 'pictures' | 'targets' | 'baseExercise'>
|
|
|
- ) }
|
|
|
+ Pick<ExerciseInstance, 'id' | 'order' | 'repetitions' | 'variation'>
|
|
|
+ & { exercise: Pick<Exercise, 'id' | 'name' | 'description' | 'videos' | 'pictures' | 'targets' | 'baseExercise'> }
|
|
|
);
|
|
|
|
|
|
export type BlockContentFragment = (
|
|
|
- { __typename?: 'Block' }
|
|
|
- & Pick<Block, 'id' | 'title' | 'description' | 'videos' | 'pictures' | 'duration' | 'rest'>
|
|
|
- & { format: (
|
|
|
- { __typename?: 'Format' }
|
|
|
- & Pick<Format, 'id' | 'name' | 'description'>
|
|
|
- ), blocks: Maybe<Array<(
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
- & { block: (
|
|
|
- { __typename?: 'Block' }
|
|
|
- & BlockHintFragment
|
|
|
- ) }
|
|
|
- )>>, exercises: Maybe<Array<(
|
|
|
- { __typename?: 'ExerciseInstance' }
|
|
|
- & ExerciseContentFragment
|
|
|
- )>> }
|
|
|
+ Pick<Block, 'id' | 'title' | 'description' | 'videos' | 'pictures' | 'duration' | 'rest'>
|
|
|
+ & { format: Pick<Format, 'id' | 'name' | 'description'>, blocks: Maybe<Array<(
|
|
|
+ Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
+ & { block: BlockHintFragment }
|
|
|
+ )>>, exercises: Maybe<Array<ExerciseContentFragment>> }
|
|
|
);
|
|
|
|
|
|
export type BlockHintFragment = (
|
|
|
- { __typename?: 'Block' }
|
|
|
- & Pick<Block, 'id' | 'title' | 'description' | 'videos' | 'pictures' | 'duration' | 'rest'>
|
|
|
- & { format: (
|
|
|
- { __typename?: 'Format' }
|
|
|
- & Pick<Format, 'id' | 'name' | 'description'>
|
|
|
- ), blocks: Maybe<Array<(
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & Pick<BlockInstance, 'id'>
|
|
|
- )>>, exercises: Maybe<Array<(
|
|
|
- { __typename?: 'ExerciseInstance' }
|
|
|
- & ExerciseContentFragment
|
|
|
- )>> }
|
|
|
+ Pick<Block, 'id' | 'title' | 'description' | 'videos' | 'pictures' | 'duration' | 'rest'>
|
|
|
+ & { format: Pick<Format, 'id' | 'name' | 'description'>, blocks: Maybe<Array<Pick<BlockInstance, 'id'>>>, exercises: Maybe<Array<ExerciseContentFragment>> }
|
|
|
);
|
|
|
|
|
|
export type SubBlockFragment = (
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
- & { block: (
|
|
|
- { __typename?: 'Block' }
|
|
|
- & BlockContentFragment
|
|
|
- ) }
|
|
|
+ Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
+ & { block: BlockContentFragment }
|
|
|
);
|
|
|
|
|
|
export type SubBlockHintFragment = (
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
- & { block: (
|
|
|
- { __typename?: 'Block' }
|
|
|
- & BlockHintFragment
|
|
|
- ) }
|
|
|
+ Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
+ & { block: BlockHintFragment }
|
|
|
);
|
|
|
|
|
|
export type TrainingQueryVariables = {
|
|
@@ -2329,60 +2283,28 @@ export type TrainingQueryVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type TrainingQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { training: Maybe<(
|
|
|
- { __typename?: 'Training' }
|
|
|
- & Pick<Training, 'id' | 'title' | 'createdAt' | 'trainingDate' | 'location' | 'attendance' | 'published'>
|
|
|
- & { type: (
|
|
|
- { __typename?: 'TrainingType' }
|
|
|
- & Pick<TrainingType, 'id' | 'name' | 'description'>
|
|
|
- ), blocks: Maybe<Array<(
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & SubBlockFragment
|
|
|
- )>> }
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type TrainingQuery = { training: Maybe<(
|
|
|
+ Pick<Training, 'id' | 'title' | 'createdAt' | 'trainingDate' | 'location' | 'attendance' | 'published'>
|
|
|
+ & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<SubBlockFragment>> }
|
|
|
+ )> };
|
|
|
|
|
|
export type TrainingsQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type TrainingsQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { trainings: Array<(
|
|
|
- { __typename?: 'Training' }
|
|
|
- & Pick<Training, 'id' | 'title' | 'trainingDate' | 'location' | 'published'>
|
|
|
- & { type: (
|
|
|
- { __typename?: 'TrainingType' }
|
|
|
- & Pick<TrainingType, 'id' | 'name' | 'description'>
|
|
|
- ), blocks: Maybe<Array<(
|
|
|
- { __typename?: 'BlockInstance' }
|
|
|
- & SubBlockHintFragment
|
|
|
- )>> }
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type TrainingsQuery = { trainings: Array<(
|
|
|
+ Pick<Training, 'id' | 'title' | 'trainingDate' | 'location' | 'published'>
|
|
|
+ & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<SubBlockHintFragment>> }
|
|
|
+ )> };
|
|
|
|
|
|
export type TrainingTypesQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type TrainingTypesQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { trainingTypes: Array<(
|
|
|
- { __typename?: 'TrainingType' }
|
|
|
- & Pick<TrainingType, 'id' | 'name' | 'description'>
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type TrainingTypesQuery = { trainingTypes: Array<Pick<TrainingType, 'id' | 'name' | 'description'>> };
|
|
|
|
|
|
export type FormatsQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type FormatsQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { formats: Array<(
|
|
|
- { __typename?: 'Format' }
|
|
|
- & Pick<Format, 'id' | 'name' | 'description'>
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type FormatsQuery = { formats: Array<Pick<Format, 'id' | 'name' | 'description'>> };
|
|
|
|
|
|
export type CreateTrainingMutationVariables = {
|
|
|
title: Scalars['String'],
|
|
@@ -2395,13 +2317,7 @@ export type CreateTrainingMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type CreateTrainingMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { createTraining: (
|
|
|
- { __typename?: 'Training' }
|
|
|
- & Pick<Training, 'id'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type CreateTrainingMutation = { createTraining: Pick<Training, 'id'> };
|
|
|
|
|
|
export type CreateTrainingTypeMutationVariables = {
|
|
|
name: Scalars['String'],
|
|
@@ -2409,13 +2325,7 @@ export type CreateTrainingTypeMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type CreateTrainingTypeMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { createTrainingType: (
|
|
|
- { __typename?: 'TrainingType' }
|
|
|
- & Pick<TrainingType, 'id'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type CreateTrainingTypeMutation = { createTrainingType: Pick<TrainingType, 'id'> };
|
|
|
|
|
|
export type CreateFormatMutationVariables = {
|
|
|
name: Scalars['String'],
|
|
@@ -2423,24 +2333,12 @@ export type CreateFormatMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type CreateFormatMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { createFormat: (
|
|
|
- { __typename?: 'Format' }
|
|
|
- & Pick<Format, 'id'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type CreateFormatMutation = { createFormat: Pick<Format, 'id'> };
|
|
|
|
|
|
export type UsersQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type UsersQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { users: Array<(
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'email' | 'name' | 'permissions' | 'interests'>
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type UsersQuery = { users: Array<Pick<User, 'id' | 'email' | 'name' | 'permissions' | 'interests'>> };
|
|
|
|
|
|
export type UserSignupMutationVariables = {
|
|
|
email: Scalars['String'],
|
|
@@ -2449,13 +2347,7 @@ export type UserSignupMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type UserSignupMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { userSignup: (
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'email' | 'name'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type UserSignupMutation = { userSignup: Pick<User, 'id' | 'email' | 'name'> };
|
|
|
|
|
|
export type UserLoginMutationVariables = {
|
|
|
email: Scalars['String'],
|
|
@@ -2463,42 +2355,24 @@ export type UserLoginMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type UserLoginMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { userLogin: (
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'email' | 'name'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type UserLoginMutation = { userLogin: Pick<User, 'id' | 'email' | 'name'> };
|
|
|
|
|
|
export type UserLogoutMutationVariables = {};
|
|
|
|
|
|
|
|
|
-export type UserLogoutMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & Pick<Mutation, 'userLogout'>
|
|
|
-);
|
|
|
+export type UserLogoutMutation = Pick<Mutation, 'userLogout'>;
|
|
|
|
|
|
export type CurrentUserQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type CurrentUserQuery = (
|
|
|
- { __typename?: 'Query' }
|
|
|
- & { currentUser: (
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'email' | 'name' | 'permissions' | 'interests'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type CurrentUserQuery = { currentUser: Pick<User, 'id' | 'email' | 'name' | 'permissions' | 'interests'> };
|
|
|
|
|
|
export type RequestResetMutationVariables = {
|
|
|
email: Scalars['String']
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type RequestResetMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & Pick<Mutation, 'requestReset'>
|
|
|
-);
|
|
|
+export type RequestResetMutation = Pick<Mutation, 'requestReset'>;
|
|
|
|
|
|
export type ResetPasswordMutationVariables = {
|
|
|
token: Scalars['String'],
|
|
@@ -2506,26 +2380,14 @@ export type ResetPasswordMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type ResetPasswordMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { resetPassword: (
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'name'>
|
|
|
- ) }
|
|
|
-);
|
|
|
+export type ResetPasswordMutation = { resetPassword: Pick<User, 'id' | 'name'> };
|
|
|
|
|
|
export type UserDeleteMutationVariables = {
|
|
|
email: Scalars['String']
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type UserDeleteMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { deleteUser: Maybe<(
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id'>
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type UserDeleteMutation = { deleteUser: Maybe<Pick<User, 'id'>> };
|
|
|
|
|
|
export type UserUpdateMutationVariables = {
|
|
|
email: Scalars['String'],
|
|
@@ -2533,13 +2395,7 @@ export type UserUpdateMutationVariables = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-export type UserUpdateMutation = (
|
|
|
- { __typename?: 'Mutation' }
|
|
|
- & { updateUser: Maybe<(
|
|
|
- { __typename?: 'User' }
|
|
|
- & Pick<User, 'id' | 'name' | 'email' | 'permissions' | 'interests'>
|
|
|
- )> }
|
|
|
-);
|
|
|
+export type UserUpdateMutation = { updateUser: Maybe<Pick<User, 'id' | 'name' | 'email' | 'permissions' | 'interests'>> };
|
|
|
|
|
|
export const ExerciseContentFragmentDoc = gql`
|
|
|
fragment exerciseContent on ExerciseInstance {
|