|
@@ -14,101 +14,21 @@ export type Scalars = {
|
|
DateTime: any,
|
|
DateTime: any,
|
|
};
|
|
};
|
|
|
|
|
|
-export type BaseExercise = Node & {
|
|
|
|
- __typename?: 'BaseExercise',
|
|
|
|
- id: Scalars['ID'],
|
|
|
|
- name: Scalars['String'],
|
|
|
|
- variations?: Maybe<Array<Exercise>>,
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-export type BaseExerciseVariationsArgs = {
|
|
|
|
- where?: Maybe<ExerciseWhereInput>,
|
|
|
|
- orderBy?: Maybe<ExerciseOrderByInput>,
|
|
|
|
- skip?: Maybe<Scalars['Int']>,
|
|
|
|
- after?: Maybe<Scalars['String']>,
|
|
|
|
- before?: Maybe<Scalars['String']>,
|
|
|
|
- first?: Maybe<Scalars['Int']>,
|
|
|
|
- last?: Maybe<Scalars['Int']>
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-export type BaseExerciseWhereInput = {
|
|
|
|
- /** Logical AND on all given filters. */
|
|
|
|
- AND?: Maybe<Array<BaseExerciseWhereInput>>,
|
|
|
|
- /** Logical OR on all given filters. */
|
|
|
|
- OR?: Maybe<Array<BaseExerciseWhereInput>>,
|
|
|
|
- /** Logical NOT on all given filters combined by AND. */
|
|
|
|
- NOT?: Maybe<Array<BaseExerciseWhereInput>>,
|
|
|
|
- id?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values that are not equal to given value. */
|
|
|
|
- id_not?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values that are contained in given list. */
|
|
|
|
- id_in?: Maybe<Array<Scalars['ID']>>,
|
|
|
|
- /** All values that are not contained in given list. */
|
|
|
|
- id_not_in?: Maybe<Array<Scalars['ID']>>,
|
|
|
|
- /** All values less than the given value. */
|
|
|
|
- id_lt?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values less than or equal the given value. */
|
|
|
|
- id_lte?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values greater than the given value. */
|
|
|
|
- id_gt?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values greater than or equal the given value. */
|
|
|
|
- id_gte?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values containing the given string. */
|
|
|
|
- id_contains?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values not containing the given string. */
|
|
|
|
- id_not_contains?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values starting with the given string. */
|
|
|
|
- id_starts_with?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values not starting with the given string. */
|
|
|
|
- id_not_starts_with?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values ending with the given string. */
|
|
|
|
- id_ends_with?: Maybe<Scalars['ID']>,
|
|
|
|
- /** All values not ending with the given string. */
|
|
|
|
- id_not_ends_with?: Maybe<Scalars['ID']>,
|
|
|
|
- name?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values that are not equal to given value. */
|
|
|
|
- name_not?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values that are contained in given list. */
|
|
|
|
- name_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
- /** All values that are not contained in given list. */
|
|
|
|
- name_not_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
- /** All values less than the given value. */
|
|
|
|
- name_lt?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values less than or equal the given value. */
|
|
|
|
- name_lte?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values greater than the given value. */
|
|
|
|
- name_gt?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values greater than or equal the given value. */
|
|
|
|
- name_gte?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values containing the given string. */
|
|
|
|
- name_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not containing the given string. */
|
|
|
|
- name_not_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values starting with the given string. */
|
|
|
|
- name_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not starting with the given string. */
|
|
|
|
- name_not_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values ending with the given string. */
|
|
|
|
- name_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not ending with the given string. */
|
|
|
|
- name_not_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
- variations_every?: Maybe<ExerciseWhereInput>,
|
|
|
|
- variations_some?: Maybe<ExerciseWhereInput>,
|
|
|
|
- variations_none?: Maybe<ExerciseWhereInput>,
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
export type Block = Node & {
|
|
export type Block = Node & {
|
|
__typename?: 'Block',
|
|
__typename?: 'Block',
|
|
id: Scalars['ID'],
|
|
id: Scalars['ID'],
|
|
sequence: Scalars['Int'],
|
|
sequence: Scalars['Int'],
|
|
title: Scalars['String'],
|
|
title: Scalars['String'],
|
|
- duration: Scalars['Int'],
|
|
|
|
- variation?: Maybe<Scalars['String']>,
|
|
|
|
- format?: Maybe<Format>,
|
|
|
|
|
|
+ description?: Maybe<Scalars['String']>,
|
|
|
|
+ videos: Array<Scalars['String']>,
|
|
|
|
+ pictures: Array<Scalars['String']>,
|
|
|
|
+ duration?: Maybe<Scalars['Int']>,
|
|
|
|
+ rounds?: Maybe<Scalars['Int']>,
|
|
|
|
+ format: Format,
|
|
|
|
+ rest?: Maybe<Scalars['Int']>,
|
|
tracks?: Maybe<Array<Track>>,
|
|
tracks?: Maybe<Array<Track>>,
|
|
- exercises?: Maybe<Array<Exercise>>,
|
|
|
|
- description: Scalars['String'],
|
|
|
|
|
|
+ blocks?: Maybe<Array<Block>>,
|
|
|
|
+ exercises?: Maybe<Array<ExerciseInstance>>,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -123,9 +43,20 @@ export type BlockTracksArgs = {
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
+export type BlockBlocksArgs = {
|
|
|
|
+ where?: Maybe<BlockWhereInput>,
|
|
|
|
+ orderBy?: Maybe<BlockOrderByInput>,
|
|
|
|
+ skip?: Maybe<Scalars['Int']>,
|
|
|
|
+ after?: Maybe<Scalars['String']>,
|
|
|
|
+ before?: Maybe<Scalars['String']>,
|
|
|
|
+ first?: Maybe<Scalars['Int']>,
|
|
|
|
+ last?: Maybe<Scalars['Int']>
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
export type BlockExercisesArgs = {
|
|
export type BlockExercisesArgs = {
|
|
- where?: Maybe<ExerciseWhereInput>,
|
|
|
|
- orderBy?: Maybe<ExerciseOrderByInput>,
|
|
|
|
|
|
+ where?: Maybe<ExerciseInstanceWhereInput>,
|
|
|
|
+ orderBy?: Maybe<ExerciseInstanceOrderByInput>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
@@ -140,12 +71,14 @@ export enum BlockOrderByInput {
|
|
SequenceDesc = 'sequence_DESC',
|
|
SequenceDesc = 'sequence_DESC',
|
|
TitleAsc = 'title_ASC',
|
|
TitleAsc = 'title_ASC',
|
|
TitleDesc = 'title_DESC',
|
|
TitleDesc = 'title_DESC',
|
|
|
|
+ DescriptionAsc = 'description_ASC',
|
|
|
|
+ DescriptionDesc = 'description_DESC',
|
|
DurationAsc = 'duration_ASC',
|
|
DurationAsc = 'duration_ASC',
|
|
DurationDesc = 'duration_DESC',
|
|
DurationDesc = 'duration_DESC',
|
|
- VariationAsc = 'variation_ASC',
|
|
|
|
- VariationDesc = 'variation_DESC',
|
|
|
|
- DescriptionAsc = 'description_ASC',
|
|
|
|
- DescriptionDesc = 'description_DESC'
|
|
|
|
|
|
+ RoundsAsc = 'rounds_ASC',
|
|
|
|
+ RoundsDesc = 'rounds_DESC',
|
|
|
|
+ RestAsc = 'rest_ASC',
|
|
|
|
+ RestDesc = 'rest_DESC'
|
|
}
|
|
}
|
|
|
|
|
|
export type BlockWhereInput = {
|
|
export type BlockWhereInput = {
|
|
@@ -224,6 +157,33 @@ export type BlockWhereInput = {
|
|
title_ends_with?: Maybe<Scalars['String']>,
|
|
title_ends_with?: Maybe<Scalars['String']>,
|
|
/** All values not ending with the given string. */
|
|
/** All values not ending with the given string. */
|
|
title_not_ends_with?: Maybe<Scalars['String']>,
|
|
title_not_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
+ description?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values that are not equal to given value. */
|
|
|
|
+ description_not?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values that are contained in given list. */
|
|
|
|
+ description_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
+ /** All values that are not contained in given list. */
|
|
|
|
+ description_not_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
+ /** All values less than the given value. */
|
|
|
|
+ description_lt?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values less than or equal the given value. */
|
|
|
|
+ description_lte?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values greater than the given value. */
|
|
|
|
+ description_gt?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values greater than or equal the given value. */
|
|
|
|
+ description_gte?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values containing the given string. */
|
|
|
|
+ description_contains?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values not containing the given string. */
|
|
|
|
+ description_not_contains?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values starting with the given string. */
|
|
|
|
+ description_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values not starting with the given string. */
|
|
|
|
+ description_not_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values ending with the given string. */
|
|
|
|
+ description_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
+ /** All values not ending with the given string. */
|
|
|
|
+ description_not_ends_with?: Maybe<Scalars['String']>,
|
|
duration?: Maybe<Scalars['Int']>,
|
|
duration?: Maybe<Scalars['Int']>,
|
|
/** All values that are not equal to given value. */
|
|
/** All values that are not equal to given value. */
|
|
duration_not?: Maybe<Scalars['Int']>,
|
|
duration_not?: Maybe<Scalars['Int']>,
|
|
@@ -239,67 +199,46 @@ export type BlockWhereInput = {
|
|
duration_gt?: Maybe<Scalars['Int']>,
|
|
duration_gt?: Maybe<Scalars['Int']>,
|
|
/** All values greater than or equal the given value. */
|
|
/** All values greater than or equal the given value. */
|
|
duration_gte?: Maybe<Scalars['Int']>,
|
|
duration_gte?: Maybe<Scalars['Int']>,
|
|
- variation?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds?: Maybe<Scalars['Int']>,
|
|
/** All values that are not equal to given value. */
|
|
/** All values that are not equal to given value. */
|
|
- variation_not?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds_not?: Maybe<Scalars['Int']>,
|
|
/** All values that are contained in given list. */
|
|
/** All values that are contained in given list. */
|
|
- variation_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
|
|
+ rounds_in?: Maybe<Array<Scalars['Int']>>,
|
|
/** All values that are not contained in given list. */
|
|
/** All values that are not contained in given list. */
|
|
- variation_not_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
|
|
+ rounds_not_in?: Maybe<Array<Scalars['Int']>>,
|
|
/** All values less than the given value. */
|
|
/** All values less than the given value. */
|
|
- variation_lt?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds_lt?: Maybe<Scalars['Int']>,
|
|
/** All values less than or equal the given value. */
|
|
/** All values less than or equal the given value. */
|
|
- variation_lte?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds_lte?: Maybe<Scalars['Int']>,
|
|
/** All values greater than the given value. */
|
|
/** All values greater than the given value. */
|
|
- variation_gt?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds_gt?: Maybe<Scalars['Int']>,
|
|
/** All values greater than or equal the given value. */
|
|
/** All values greater than or equal the given value. */
|
|
- variation_gte?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values containing the given string. */
|
|
|
|
- variation_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not containing the given string. */
|
|
|
|
- variation_not_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values starting with the given string. */
|
|
|
|
- variation_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not starting with the given string. */
|
|
|
|
- variation_not_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values ending with the given string. */
|
|
|
|
- variation_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not ending with the given string. */
|
|
|
|
- variation_not_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
- description?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rounds_gte?: Maybe<Scalars['Int']>,
|
|
|
|
+ rest?: Maybe<Scalars['Int']>,
|
|
/** All values that are not equal to given value. */
|
|
/** All values that are not equal to given value. */
|
|
- description_not?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rest_not?: Maybe<Scalars['Int']>,
|
|
/** All values that are contained in given list. */
|
|
/** All values that are contained in given list. */
|
|
- description_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
|
|
+ rest_in?: Maybe<Array<Scalars['Int']>>,
|
|
/** All values that are not contained in given list. */
|
|
/** All values that are not contained in given list. */
|
|
- description_not_in?: Maybe<Array<Scalars['String']>>,
|
|
|
|
|
|
+ rest_not_in?: Maybe<Array<Scalars['Int']>>,
|
|
/** All values less than the given value. */
|
|
/** All values less than the given value. */
|
|
- description_lt?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rest_lt?: Maybe<Scalars['Int']>,
|
|
/** All values less than or equal the given value. */
|
|
/** All values less than or equal the given value. */
|
|
- description_lte?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rest_lte?: Maybe<Scalars['Int']>,
|
|
/** All values greater than the given value. */
|
|
/** All values greater than the given value. */
|
|
- description_gt?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rest_gt?: Maybe<Scalars['Int']>,
|
|
/** All values greater than or equal the given value. */
|
|
/** All values greater than or equal the given value. */
|
|
- description_gte?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values containing the given string. */
|
|
|
|
- description_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not containing the given string. */
|
|
|
|
- description_not_contains?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values starting with the given string. */
|
|
|
|
- description_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not starting with the given string. */
|
|
|
|
- description_not_starts_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values ending with the given string. */
|
|
|
|
- description_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
- /** All values not ending with the given string. */
|
|
|
|
- description_not_ends_with?: Maybe<Scalars['String']>,
|
|
|
|
|
|
+ rest_gte?: Maybe<Scalars['Int']>,
|
|
format?: Maybe<FormatWhereInput>,
|
|
format?: Maybe<FormatWhereInput>,
|
|
tracks_every?: Maybe<TrackWhereInput>,
|
|
tracks_every?: Maybe<TrackWhereInput>,
|
|
tracks_some?: Maybe<TrackWhereInput>,
|
|
tracks_some?: Maybe<TrackWhereInput>,
|
|
tracks_none?: Maybe<TrackWhereInput>,
|
|
tracks_none?: Maybe<TrackWhereInput>,
|
|
- exercises_every?: Maybe<ExerciseWhereInput>,
|
|
|
|
- exercises_some?: Maybe<ExerciseWhereInput>,
|
|
|
|
- exercises_none?: Maybe<ExerciseWhereInput>,
|
|
|
|
|
|
+ blocks_every?: Maybe<BlockWhereInput>,
|
|
|
|
+ blocks_some?: Maybe<BlockWhereInput>,
|
|
|
|
+ blocks_none?: Maybe<BlockWhereInput>,
|
|
|
|
+ exercises_every?: Maybe<ExerciseInstanceWhereInput>,
|
|
|
|
+ exercises_some?: Maybe<ExerciseInstanceWhereInput>,
|
|
|
|
+ exercises_none?: Maybe<ExerciseInstanceWhereInput>,
|
|
};
|
|
};
|
|
|
|
|
|
export type Comment = Node & {
|
|
export type Comment = Node & {
|
|
@@ -534,20 +473,75 @@ export type Exercise = Node & {
|
|
description: Scalars['String'],
|
|
description: Scalars['String'],
|
|
video: Scalars['String'],
|
|
video: Scalars['String'],
|
|
targets: Array<Scalars['String']>,
|
|
targets: Array<Scalars['String']>,
|
|
- baseExercise: BaseExercise,
|
|
|
|
|
|
+ baseExercise: Array<Scalars['String']>,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export type ExerciseInstance = Node & {
|
|
|
|
+ __typename?: 'ExerciseInstance',
|
|
|
|
+ id: Scalars['ID'],
|
|
|
|
+ exercise: Exercise,
|
|
|
|
+ repetitions?: Maybe<Scalars['Int']>,
|
|
};
|
|
};
|
|
|
|
|
|
-export enum ExerciseOrderByInput {
|
|
|
|
|
|
+export enum ExerciseInstanceOrderByInput {
|
|
IdAsc = 'id_ASC',
|
|
IdAsc = 'id_ASC',
|
|
IdDesc = 'id_DESC',
|
|
IdDesc = 'id_DESC',
|
|
- NameAsc = 'name_ASC',
|
|
|
|
- NameDesc = 'name_DESC',
|
|
|
|
- DescriptionAsc = 'description_ASC',
|
|
|
|
- DescriptionDesc = 'description_DESC',
|
|
|
|
- VideoAsc = 'video_ASC',
|
|
|
|
- VideoDesc = 'video_DESC'
|
|
|
|
|
|
+ RepetitionsAsc = 'repetitions_ASC',
|
|
|
|
+ RepetitionsDesc = 'repetitions_DESC'
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+export type ExerciseInstanceWhereInput = {
|
|
|
|
+ /** Logical AND on all given filters. */
|
|
|
|
+ AND?: Maybe<Array<ExerciseInstanceWhereInput>>,
|
|
|
|
+ /** Logical OR on all given filters. */
|
|
|
|
+ OR?: Maybe<Array<ExerciseInstanceWhereInput>>,
|
|
|
|
+ /** Logical NOT on all given filters combined by AND. */
|
|
|
|
+ NOT?: Maybe<Array<ExerciseInstanceWhereInput>>,
|
|
|
|
+ id?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values that are not equal to given value. */
|
|
|
|
+ id_not?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values that are contained in given list. */
|
|
|
|
+ id_in?: Maybe<Array<Scalars['ID']>>,
|
|
|
|
+ /** All values that are not contained in given list. */
|
|
|
|
+ id_not_in?: Maybe<Array<Scalars['ID']>>,
|
|
|
|
+ /** All values less than the given value. */
|
|
|
|
+ id_lt?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values less than or equal the given value. */
|
|
|
|
+ id_lte?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values greater than the given value. */
|
|
|
|
+ id_gt?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values greater than or equal the given value. */
|
|
|
|
+ id_gte?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values containing the given string. */
|
|
|
|
+ id_contains?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values not containing the given string. */
|
|
|
|
+ id_not_contains?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values starting with the given string. */
|
|
|
|
+ id_starts_with?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values not starting with the given string. */
|
|
|
|
+ id_not_starts_with?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values ending with the given string. */
|
|
|
|
+ id_ends_with?: Maybe<Scalars['ID']>,
|
|
|
|
+ /** All values not ending with the given string. */
|
|
|
|
+ id_not_ends_with?: Maybe<Scalars['ID']>,
|
|
|
|
+ repetitions?: Maybe<Scalars['Int']>,
|
|
|
|
+ /** All values that are not equal to given value. */
|
|
|
|
+ repetitions_not?: Maybe<Scalars['Int']>,
|
|
|
|
+ /** All values that are contained in given list. */
|
|
|
|
+ repetitions_in?: Maybe<Array<Scalars['Int']>>,
|
|
|
|
+ /** All values that are not contained in given list. */
|
|
|
|
+ repetitions_not_in?: Maybe<Array<Scalars['Int']>>,
|
|
|
|
+ /** All values less than the given value. */
|
|
|
|
+ repetitions_lt?: Maybe<Scalars['Int']>,
|
|
|
|
+ /** All values less than or equal the given value. */
|
|
|
|
+ repetitions_lte?: Maybe<Scalars['Int']>,
|
|
|
|
+ /** All values greater than the given value. */
|
|
|
|
+ repetitions_gt?: Maybe<Scalars['Int']>,
|
|
|
|
+ /** All values greater than or equal the given value. */
|
|
|
|
+ repetitions_gte?: Maybe<Scalars['Int']>,
|
|
|
|
+ exercise?: Maybe<ExerciseWhereInput>,
|
|
|
|
+};
|
|
|
|
+
|
|
export type ExerciseWhereInput = {
|
|
export type ExerciseWhereInput = {
|
|
/** Logical AND on all given filters. */
|
|
/** Logical AND on all given filters. */
|
|
AND?: Maybe<Array<ExerciseWhereInput>>,
|
|
AND?: Maybe<Array<ExerciseWhereInput>>,
|
|
@@ -663,7 +657,6 @@ export type ExerciseWhereInput = {
|
|
video_ends_with?: Maybe<Scalars['String']>,
|
|
video_ends_with?: Maybe<Scalars['String']>,
|
|
/** All values not ending with the given string. */
|
|
/** All values not ending with the given string. */
|
|
video_not_ends_with?: Maybe<Scalars['String']>,
|
|
video_not_ends_with?: Maybe<Scalars['String']>,
|
|
- baseExercise?: Maybe<BaseExerciseWhereInput>,
|
|
|
|
};
|
|
};
|
|
|
|
|
|
export type Format = Node & {
|
|
export type Format = Node & {
|
|
@@ -1330,20 +1323,20 @@ export type Training = Node & {
|
|
id: Scalars['ID'],
|
|
id: Scalars['ID'],
|
|
title: Scalars['String'],
|
|
title: Scalars['String'],
|
|
type: TrainingType,
|
|
type: TrainingType,
|
|
- content?: Maybe<Array<Block>>,
|
|
|
|
createdAt: Scalars['DateTime'],
|
|
createdAt: Scalars['DateTime'],
|
|
- trainingDate: Scalars['DateTime'],
|
|
|
|
- location: Scalars['String'],
|
|
|
|
- registration?: Maybe<Array<User>>,
|
|
|
|
- attendance: Scalars['Int'],
|
|
|
|
|
|
+ trainingDate?: Maybe<Scalars['DateTime']>,
|
|
|
|
+ location?: Maybe<Scalars['String']>,
|
|
|
|
+ registrations?: Maybe<Array<User>>,
|
|
|
|
+ attendance?: Maybe<Scalars['Int']>,
|
|
ratings?: Maybe<Array<Rating>>,
|
|
ratings?: Maybe<Array<Rating>>,
|
|
published: Scalars['Boolean'],
|
|
published: Scalars['Boolean'],
|
|
|
|
+ blocks?: Maybe<Array<Block>>,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
-export type TrainingContentArgs = {
|
|
|
|
- where?: Maybe<BlockWhereInput>,
|
|
|
|
- orderBy?: Maybe<BlockOrderByInput>,
|
|
|
|
|
|
+export type TrainingRegistrationsArgs = {
|
|
|
|
+ where?: Maybe<UserWhereInput>,
|
|
|
|
+ orderBy?: Maybe<UserOrderByInput>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
@@ -1352,9 +1345,9 @@ export type TrainingContentArgs = {
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
-export type TrainingRegistrationArgs = {
|
|
|
|
- where?: Maybe<UserWhereInput>,
|
|
|
|
- orderBy?: Maybe<UserOrderByInput>,
|
|
|
|
|
|
+export type TrainingRatingsArgs = {
|
|
|
|
+ where?: Maybe<RatingWhereInput>,
|
|
|
|
+ orderBy?: Maybe<RatingOrderByInput>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
@@ -1363,9 +1356,9 @@ export type TrainingRegistrationArgs = {
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
-export type TrainingRatingsArgs = {
|
|
|
|
- where?: Maybe<RatingWhereInput>,
|
|
|
|
- orderBy?: Maybe<RatingOrderByInput>,
|
|
|
|
|
|
+export type TrainingBlocksArgs = {
|
|
|
|
+ where?: Maybe<BlockWhereInput>,
|
|
|
|
+ orderBy?: Maybe<BlockOrderByInput>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
skip?: Maybe<Scalars['Int']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
after?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
before?: Maybe<Scalars['String']>,
|
|
@@ -1633,15 +1626,15 @@ export type TrainingWhereInput = {
|
|
/** All values that are not equal to given value. */
|
|
/** All values that are not equal to given value. */
|
|
published_not?: Maybe<Scalars['Boolean']>,
|
|
published_not?: Maybe<Scalars['Boolean']>,
|
|
type?: Maybe<TrainingTypeWhereInput>,
|
|
type?: Maybe<TrainingTypeWhereInput>,
|
|
- content_every?: Maybe<BlockWhereInput>,
|
|
|
|
- content_some?: Maybe<BlockWhereInput>,
|
|
|
|
- content_none?: Maybe<BlockWhereInput>,
|
|
|
|
- registration_every?: Maybe<UserWhereInput>,
|
|
|
|
- registration_some?: Maybe<UserWhereInput>,
|
|
|
|
- registration_none?: Maybe<UserWhereInput>,
|
|
|
|
|
|
+ registrations_every?: Maybe<UserWhereInput>,
|
|
|
|
+ registrations_some?: Maybe<UserWhereInput>,
|
|
|
|
+ registrations_none?: Maybe<UserWhereInput>,
|
|
ratings_every?: Maybe<RatingWhereInput>,
|
|
ratings_every?: Maybe<RatingWhereInput>,
|
|
ratings_some?: Maybe<RatingWhereInput>,
|
|
ratings_some?: Maybe<RatingWhereInput>,
|
|
ratings_none?: Maybe<RatingWhereInput>,
|
|
ratings_none?: Maybe<RatingWhereInput>,
|
|
|
|
+ blocks_every?: Maybe<BlockWhereInput>,
|
|
|
|
+ blocks_some?: Maybe<BlockWhereInput>,
|
|
|
|
+ blocks_none?: Maybe<BlockWhereInput>,
|
|
};
|
|
};
|
|
|
|
|
|
export type TrainingWhereUniqueInput = {
|
|
export type TrainingWhereUniqueInput = {
|
|
@@ -1930,41 +1923,23 @@ export type TrainingsQuery = (
|
|
{ __typename?: 'Query' }
|
|
{ __typename?: 'Query' }
|
|
& { trainings: Array<Maybe<(
|
|
& { trainings: Array<Maybe<(
|
|
{ __typename?: 'Training' }
|
|
{ __typename?: 'Training' }
|
|
- & Pick<Training, 'id' | 'published' | 'title' | 'createdAt' | 'trainingDate' | 'location' | 'attendance'>
|
|
|
|
- & { type: (
|
|
|
|
- { __typename?: 'TrainingType' }
|
|
|
|
- & Pick<TrainingType, 'id' | 'name' | 'description'>
|
|
|
|
- ), content: Maybe<Array<(
|
|
|
|
- { __typename?: 'Block' }
|
|
|
|
- & Pick<Block, 'id' | 'sequence' | 'title' | 'duration' | 'variation' | 'description'>
|
|
|
|
- & { format: Maybe<(
|
|
|
|
- { __typename?: 'Format' }
|
|
|
|
- & Pick<Format, 'id' | 'name' | 'description'>
|
|
|
|
- )>, tracks: Maybe<Array<(
|
|
|
|
- { __typename?: 'Track' }
|
|
|
|
- & Pick<Track, 'id' | 'title' | 'artist' | 'duration' | 'link'>
|
|
|
|
- )>>, exercises: Maybe<Array<(
|
|
|
|
- { __typename?: 'Exercise' }
|
|
|
|
- & Pick<Exercise, 'id' | 'name' | 'description' | 'video' | 'targets'>
|
|
|
|
- & { baseExercise: (
|
|
|
|
- { __typename?: 'BaseExercise' }
|
|
|
|
- & Pick<BaseExercise, 'id' | 'name'>
|
|
|
|
- ) }
|
|
|
|
- )>> }
|
|
|
|
- )>>, registration: Maybe<Array<(
|
|
|
|
- { __typename?: 'User' }
|
|
|
|
- & Pick<User, 'id' | 'name'>
|
|
|
|
- )>>, ratings: Maybe<Array<(
|
|
|
|
- { __typename?: 'Rating' }
|
|
|
|
- & Pick<Rating, 'value' | 'comment'>
|
|
|
|
- & { user: (
|
|
|
|
- { __typename?: 'User' }
|
|
|
|
- & Pick<User, 'id' | 'name'>
|
|
|
|
- ) }
|
|
|
|
- )>> }
|
|
|
|
|
|
+ & Pick<Training, 'id' | 'published'>
|
|
)>> }
|
|
)>> }
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+export type CreateTrainingMutationVariables = {
|
|
|
|
+ title: Scalars['String']
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+export type CreateTrainingMutation = (
|
|
|
|
+ { __typename?: 'Mutation' }
|
|
|
|
+ & { createTraining: (
|
|
|
|
+ { __typename?: 'Training' }
|
|
|
|
+ & Pick<Training, 'id'>
|
|
|
|
+ ) }
|
|
|
|
+);
|
|
|
|
+
|
|
export type UsersQueryVariables = {};
|
|
export type UsersQueryVariables = {};
|
|
|
|
|
|
|
|
|
|
@@ -2077,63 +2052,10 @@ export type UserUpdateMutation = (
|
|
|
|
|
|
|
|
|
|
export const TrainingsDocument = gql`
|
|
export const TrainingsDocument = gql`
|
|
- query Trainings {
|
|
|
|
|
|
+ query trainings {
|
|
trainings {
|
|
trainings {
|
|
id
|
|
id
|
|
published
|
|
published
|
|
- title
|
|
|
|
- type {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- description
|
|
|
|
- }
|
|
|
|
- content {
|
|
|
|
- id
|
|
|
|
- sequence
|
|
|
|
- title
|
|
|
|
- duration
|
|
|
|
- variation
|
|
|
|
- format {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- description
|
|
|
|
- }
|
|
|
|
- tracks {
|
|
|
|
- id
|
|
|
|
- title
|
|
|
|
- artist
|
|
|
|
- duration
|
|
|
|
- link
|
|
|
|
- }
|
|
|
|
- exercises {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- description
|
|
|
|
- video
|
|
|
|
- targets
|
|
|
|
- baseExercise {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- description
|
|
|
|
- }
|
|
|
|
- createdAt
|
|
|
|
- trainingDate
|
|
|
|
- location
|
|
|
|
- registration {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- }
|
|
|
|
- attendance
|
|
|
|
- ratings {
|
|
|
|
- user {
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- }
|
|
|
|
- value
|
|
|
|
- comment
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
`;
|
|
@@ -2162,6 +2084,38 @@ export function useTrainingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHo
|
|
export type TrainingsQueryHookResult = ReturnType<typeof useTrainingsQuery>;
|
|
export type TrainingsQueryHookResult = ReturnType<typeof useTrainingsQuery>;
|
|
export type TrainingsLazyQueryHookResult = ReturnType<typeof useTrainingsLazyQuery>;
|
|
export type TrainingsLazyQueryHookResult = ReturnType<typeof useTrainingsLazyQuery>;
|
|
export type TrainingsQueryResult = ApolloReactCommon.QueryResult<TrainingsQuery, TrainingsQueryVariables>;
|
|
export type TrainingsQueryResult = ApolloReactCommon.QueryResult<TrainingsQuery, TrainingsQueryVariables>;
|
|
|
|
+export const CreateTrainingDocument = gql`
|
|
|
|
+ mutation createTraining($title: String!) {
|
|
|
|
+ createTraining(title: $title) {
|
|
|
|
+ id
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+ `;
|
|
|
|
+export type CreateTrainingMutationFn = ApolloReactCommon.MutationFunction<CreateTrainingMutation, CreateTrainingMutationVariables>;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * __useCreateTrainingMutation__
|
|
|
|
+ *
|
|
|
|
+ * To run a mutation, you first call `useCreateTrainingMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
+ * When your component renders, `useCreateTrainingMutation` returns a tuple that includes:
|
|
|
|
+ * - A mutate function that you can call at any time to execute the mutation
|
|
|
|
+ * - An object with fields that represent the current status of the mutation's execution
|
|
|
|
+ *
|
|
|
|
+ * @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;
|
|
|
|
+ *
|
|
|
|
+ * @example
|
|
|
|
+ * const [createTrainingMutation, { data, loading, error }] = useCreateTrainingMutation({
|
|
|
|
+ * variables: {
|
|
|
|
+ * title: // value for 'title'
|
|
|
|
+ * },
|
|
|
|
+ * });
|
|
|
|
+ */
|
|
|
|
+export function useCreateTrainingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<CreateTrainingMutation, CreateTrainingMutationVariables>) {
|
|
|
|
+ return ApolloReactHooks.useMutation<CreateTrainingMutation, CreateTrainingMutationVariables>(CreateTrainingDocument, baseOptions);
|
|
|
|
+ }
|
|
|
|
+export type CreateTrainingMutationHookResult = ReturnType<typeof useCreateTrainingMutation>;
|
|
|
|
+export type CreateTrainingMutationResult = ApolloReactCommon.MutationResult<CreateTrainingMutation>;
|
|
|
|
+export type CreateTrainingMutationOptions = ApolloReactCommon.BaseMutationOptions<CreateTrainingMutation, CreateTrainingMutationVariables>;
|
|
export const UsersDocument = gql`
|
|
export const UsersDocument = gql`
|
|
query Users {
|
|
query Users {
|
|
users {
|
|
users {
|