|
@@ -3355,34 +3355,15 @@ export type UserWhereUniqueInput = {
|
|
|
|
|
|
export type ExerciseContentFragment = Pick<Exercise, 'id' | 'name' | 'description' | 'videos' | 'pictures' | 'targets' | 'baseExercise'>;
|
|
|
|
|
|
-export type BlockContentFragment = (
|
|
|
+export type BlockWithoutBlocksFragment = (
|
|
|
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<(
|
|
|
+ & { format: Pick<Format, 'id' | 'name' | 'description'>, exercises: Maybe<Array<(
|
|
|
Pick<ExerciseInstance, 'id' | 'order' | 'repetitions' | 'variation'>
|
|
|
& { exercise: ExerciseContentFragment }
|
|
|
)>> }
|
|
|
);
|
|
|
|
|
|
-export type BlockHintFragment = (
|
|
|
- Pick<Block, 'id' | 'title' | 'description' | 'videos' | 'pictures' | 'duration' | 'rest'>
|
|
|
- & { format: Pick<Format, 'id' | 'name' | 'description'>, blocks: Maybe<Array<Pick<BlockInstance, 'id'>>>, exercises: Maybe<Array<(
|
|
|
- Pick<ExerciseInstance, 'id' | 'order' | 'repetitions' | 'variation'>
|
|
|
- & { exercise: ExerciseContentFragment }
|
|
|
- )>> }
|
|
|
-);
|
|
|
-
|
|
|
-export type SubBlockFragment = (
|
|
|
- Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
- & { block: BlockContentFragment }
|
|
|
-);
|
|
|
-
|
|
|
-export type SubBlockHintFragment = (
|
|
|
- Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>
|
|
|
- & { block: BlockHintFragment }
|
|
|
-);
|
|
|
+export type BlockInstanceWithoutBlockFragment = Pick<BlockInstance, 'id' | 'order' | 'rounds' | 'variation'>;
|
|
|
|
|
|
export type TrainingQueryVariables = {
|
|
|
id: Scalars['ID']
|
|
@@ -3391,7 +3372,22 @@ export type TrainingQueryVariables = {
|
|
|
|
|
|
export type TrainingQuery = { training: Maybe<(
|
|
|
Pick<Training, 'id' | 'title' | 'createdAt' | 'trainingDate' | 'location' | 'attendance' | 'published'>
|
|
|
- & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<SubBlockFragment>>, registrations: Maybe<Array<Pick<User, 'id' | 'name'>>> }
|
|
|
+ & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<(
|
|
|
+ { block: (
|
|
|
+ { blocks: Maybe<Array<(
|
|
|
+ { block: (
|
|
|
+ { blocks: Maybe<Array<(
|
|
|
+ { block: BlockWithoutBlocksFragment }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>> }
|
|
|
+ & BlockWithoutBlocksFragment
|
|
|
+ ) }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>> }
|
|
|
+ & BlockWithoutBlocksFragment
|
|
|
+ ) }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>>, registrations: Maybe<Array<Pick<User, 'id' | 'name'>>> }
|
|
|
)> };
|
|
|
|
|
|
export type DisplayTrainingFragment = (
|
|
@@ -3444,7 +3440,22 @@ export type TrainingsQueryVariables = {};
|
|
|
|
|
|
export type TrainingsQuery = { trainings: Array<(
|
|
|
Pick<Training, 'id' | 'title' | 'trainingDate' | 'location' | 'attendance' | 'published'>
|
|
|
- & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<SubBlockHintFragment>>, registrations: Maybe<Array<Pick<User, 'id' | 'name'>>> }
|
|
|
+ & { type: Pick<TrainingType, 'id' | 'name' | 'description'>, blocks: Maybe<Array<(
|
|
|
+ { block: (
|
|
|
+ { blocks: Maybe<Array<(
|
|
|
+ { block: (
|
|
|
+ { blocks: Maybe<Array<(
|
|
|
+ { block: BlockWithoutBlocksFragment }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>> }
|
|
|
+ & BlockWithoutBlocksFragment
|
|
|
+ ) }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>> }
|
|
|
+ & BlockWithoutBlocksFragment
|
|
|
+ ) }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>>, registrations: Maybe<Array<Pick<User, 'id' | 'name'>>> }
|
|
|
)> };
|
|
|
|
|
|
export type TrainingTypesQueryVariables = {};
|
|
@@ -3460,7 +3471,13 @@ export type FormatsQuery = { formats: Array<Pick<Format, 'id' | 'name' | 'descri
|
|
|
export type BlocksQueryVariables = {};
|
|
|
|
|
|
|
|
|
-export type BlocksQuery = { blocks: Array<BlockContentFragment> };
|
|
|
+export type BlocksQuery = { blocks: Array<(
|
|
|
+ { blocks: Maybe<Array<(
|
|
|
+ { block: BlockWithoutBlocksFragment }
|
|
|
+ & BlockInstanceWithoutBlockFragment
|
|
|
+ )>> }
|
|
|
+ & BlockWithoutBlocksFragment
|
|
|
+ )> };
|
|
|
|
|
|
export type ExercisesQueryVariables = {};
|
|
|
|
|
@@ -3584,8 +3601,8 @@ export const ExerciseContentFragmentDoc = gql`
|
|
|
baseExercise
|
|
|
}
|
|
|
`;
|
|
|
-export const BlockHintFragmentDoc = gql`
|
|
|
- fragment blockHint on Block {
|
|
|
+export const BlockWithoutBlocksFragmentDoc = gql`
|
|
|
+ fragment blockWithoutBlocks on Block {
|
|
|
id
|
|
|
title
|
|
|
description
|
|
@@ -3598,9 +3615,6 @@ export const BlockHintFragmentDoc = gql`
|
|
|
description
|
|
|
}
|
|
|
rest
|
|
|
- blocks {
|
|
|
- id
|
|
|
- }
|
|
|
exercises {
|
|
|
id
|
|
|
exercise {
|
|
@@ -3612,63 +3626,14 @@ export const BlockHintFragmentDoc = gql`
|
|
|
}
|
|
|
}
|
|
|
${ExerciseContentFragmentDoc}`;
|
|
|
-export const BlockContentFragmentDoc = gql`
|
|
|
- fragment blockContent on Block {
|
|
|
+export const BlockInstanceWithoutBlockFragmentDoc = gql`
|
|
|
+ fragment blockInstanceWithoutBlock on BlockInstance {
|
|
|
id
|
|
|
- title
|
|
|
- description
|
|
|
- videos
|
|
|
- pictures
|
|
|
- duration
|
|
|
- format {
|
|
|
- id
|
|
|
- name
|
|
|
- description
|
|
|
- }
|
|
|
- rest
|
|
|
- blocks {
|
|
|
- id
|
|
|
- block {
|
|
|
- ...blockHint
|
|
|
- }
|
|
|
- order
|
|
|
- rounds
|
|
|
- variation
|
|
|
- }
|
|
|
- exercises {
|
|
|
- id
|
|
|
- exercise {
|
|
|
- ...exerciseContent
|
|
|
- }
|
|
|
- order
|
|
|
- repetitions
|
|
|
- variation
|
|
|
- }
|
|
|
-}
|
|
|
- ${BlockHintFragmentDoc}
|
|
|
-${ExerciseContentFragmentDoc}`;
|
|
|
-export const SubBlockFragmentDoc = gql`
|
|
|
- fragment subBlock on BlockInstance {
|
|
|
- id
|
|
|
- block {
|
|
|
- ...blockContent
|
|
|
- }
|
|
|
order
|
|
|
rounds
|
|
|
variation
|
|
|
}
|
|
|
- ${BlockContentFragmentDoc}`;
|
|
|
-export const SubBlockHintFragmentDoc = gql`
|
|
|
- fragment subBlockHint on BlockInstance {
|
|
|
- id
|
|
|
- block {
|
|
|
- ...blockHint
|
|
|
- }
|
|
|
- order
|
|
|
- rounds
|
|
|
- variation
|
|
|
-}
|
|
|
- ${BlockHintFragmentDoc}`;
|
|
|
+ `;
|
|
|
export const DisplayBlockInstanceFragmentDoc = gql`
|
|
|
fragment displayBlockInstance on BlockInstance {
|
|
|
id
|
|
@@ -3777,7 +3742,22 @@ export const TrainingDocument = gql`
|
|
|
attendance
|
|
|
published
|
|
|
blocks {
|
|
|
- ...subBlock
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ blocks {
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ blocks {
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
registrations {
|
|
|
id
|
|
@@ -3785,7 +3765,8 @@ export const TrainingDocument = gql`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- ${SubBlockFragmentDoc}`;
|
|
|
+ ${BlockInstanceWithoutBlockFragmentDoc}
|
|
|
+${BlockWithoutBlocksFragmentDoc}`;
|
|
|
|
|
|
/**
|
|
|
* __useTrainingQuery__
|
|
@@ -3859,7 +3840,22 @@ export const TrainingsDocument = gql`
|
|
|
attendance
|
|
|
published
|
|
|
blocks {
|
|
|
- ...subBlockHint
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ blocks {
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ blocks {
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
registrations {
|
|
|
id
|
|
@@ -3867,7 +3863,8 @@ export const TrainingsDocument = gql`
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- ${SubBlockHintFragmentDoc}`;
|
|
|
+ ${BlockInstanceWithoutBlockFragmentDoc}
|
|
|
+${BlockWithoutBlocksFragmentDoc}`;
|
|
|
|
|
|
/**
|
|
|
* __useTrainingsQuery__
|
|
@@ -3964,10 +3961,17 @@ export type FormatsQueryResult = ApolloReactCommon.QueryResult<FormatsQuery, For
|
|
|
export const BlocksDocument = gql`
|
|
|
query blocks {
|
|
|
blocks {
|
|
|
- ...blockContent
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ blocks {
|
|
|
+ ...blockInstanceWithoutBlock
|
|
|
+ block {
|
|
|
+ ...blockWithoutBlocks
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- ${BlockContentFragmentDoc}`;
|
|
|
+ ${BlockWithoutBlocksFragmentDoc}
|
|
|
+${BlockInstanceWithoutBlockFragmentDoc}`;
|
|
|
|
|
|
/**
|
|
|
* __useBlocksQuery__
|