diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..af94013 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +packages/*/dist +apps/*/dist \ No newline at end of file diff --git a/apps/web/src/components/navbar.jsx b/apps/web/src/components/navbar.jsx index c6a6adb..d4accaf 100644 --- a/apps/web/src/components/navbar.jsx +++ b/apps/web/src/components/navbar.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ import { Link } from "react-router-dom"; import "../styles/navbar.styles.css"; diff --git a/apps/web/src/pages/app.jsx b/apps/web/src/pages/app.jsx index ed66f12..b4123a2 100644 --- a/apps/web/src/pages/app.jsx +++ b/apps/web/src/pages/app.jsx @@ -1,5 +1,4 @@ import "react-toastify/dist/ReactToastify.css"; -import Navbar from "../components/navbar"; import { useEffect, useState } from "react"; import Machines from "../components/machine"; import Challenge from "../components/challenge"; diff --git a/packages/api/.eslintignore b/packages/api/.eslintignore new file mode 100644 index 0000000..53c37a1 --- /dev/null +++ b/packages/api/.eslintignore @@ -0,0 +1 @@ +dist \ No newline at end of file diff --git a/packages/api/extras/cache.ts b/packages/api/extras/cache.ts index cbae951..58f57ba 100644 --- a/packages/api/extras/cache.ts +++ b/packages/api/extras/cache.ts @@ -1,6 +1,6 @@ -import { Redis } from "@upstash/redis" +import { Redis } from "@upstash/redis"; export const cache_client = new Redis({ url: process.env.UPSTASH_REDIS_REST_URL, token: process.env.UPSTASH_REDIS_REST_TOKEN, -}) \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/api/graphql/types.ts b/packages/api/graphql/types.ts index 8a9c108..5c9e124 100644 --- a/packages/api/graphql/types.ts +++ b/packages/api/graphql/types.ts @@ -4,7 +4,7 @@ export type Exact = { [K in keyof T]: T[K] export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Incremental = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: { input: string; output: string; } @@ -17,78 +17,78 @@ export type Scalars = { /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ export type Boolean_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ export type Int_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; /** does the column match the given case-insensitive pattern */ - _ilike?: InputMaybe; - _in?: InputMaybe>; + _ilike?: InputMaybe; + _in?: InputMaybe>; /** does the column match the given POSIX regular expression, case insensitive */ - _iregex?: InputMaybe; - _is_null?: InputMaybe; + _iregex?: InputMaybe; + _is_null?: InputMaybe; /** does the column match the given pattern */ - _like?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; /** does the column NOT match the given case-insensitive pattern */ - _nilike?: InputMaybe; - _nin?: InputMaybe>; + _nilike?: InputMaybe; + _nin?: InputMaybe>; /** does the column NOT match the given POSIX regular expression, case insensitive */ - _niregex?: InputMaybe; + _niregex?: InputMaybe; /** does the column NOT match the given pattern */ - _nlike?: InputMaybe; + _nlike?: InputMaybe; /** does the column NOT match the given POSIX regular expression, case sensitive */ - _nregex?: InputMaybe; + _nregex?: InputMaybe; /** does the column NOT match the given SQL regular expression */ - _nsimilar?: InputMaybe; + _nsimilar?: InputMaybe; /** does the column match the given POSIX regular expression, case sensitive */ - _regex?: InputMaybe; + _regex?: InputMaybe; /** does the column match the given SQL regular expression */ - _similar?: InputMaybe; + _similar?: InputMaybe; }; /** Bans issued to users */ export type Bans = { - __typename?: 'bans'; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; - ip: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + __typename?: "bans"; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; + ip: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "bans" */ export type Bans_Aggregate = { - __typename?: 'bans_aggregate'; + __typename?: "bans_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -99,15 +99,15 @@ export type Bans_Aggregate_Bool_Exp = { export type Bans_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "bans" */ export type Bans_Aggregate_Fields = { - __typename?: 'bans_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "bans_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -116,7 +116,7 @@ export type Bans_Aggregate_Fields = { /** aggregate fields of "bans" */ export type Bans_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "bans" */ @@ -149,27 +149,27 @@ export type Bans_Bool_Exp = { /** unique or primary key constraints on table "bans" */ export enum Bans_Constraint { /** unique or primary key constraint on columns "id" */ - BansPkey = 'bans_pkey' + BansPkey = "bans_pkey" } /** input type for inserting data into table "bans" */ export type Bans_Insert_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Bans_Max_Fields = { - __typename?: 'bans_max_fields'; - created_at?: Maybe; - id?: Maybe; - ip?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "bans_max_fields"; + created_at?: Maybe; + id?: Maybe; + ip?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "bans" */ @@ -183,12 +183,12 @@ export type Bans_Max_Order_By = { /** aggregate min on columns */ export type Bans_Min_Fields = { - __typename?: 'bans_min_fields'; - created_at?: Maybe; - id?: Maybe; - ip?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "bans_min_fields"; + created_at?: Maybe; + id?: Maybe; + ip?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "bans" */ @@ -202,9 +202,9 @@ export type Bans_Min_Order_By = { /** response of any mutation on the table "bans" */ export type Bans_Mutation_Response = { - __typename?: 'bans_mutation_response'; + __typename?: "bans_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -228,30 +228,30 @@ export type Bans_Order_By = { /** primary key columns input for table: bans */ export type Bans_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "bans" */ export enum Bans_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Ip = 'ip', + Ip = "ip", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "bans" */ export type Bans_Set_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "bans" */ @@ -264,25 +264,25 @@ export type Bans_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Bans_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "bans" */ export enum Bans_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Ip = 'ip', + Ip = "ip", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Bans_Updates = { @@ -294,34 +294,34 @@ export type Bans_Updates = { /** Challenges Data */ export type Challenges = { - __typename?: 'challenges'; - created_at: Scalars['timestamptz']['output']; - description: Scalars['String']['output']; - flag: Scalars['String']['output']; - id: Scalars['String']['output']; + __typename?: "challenges"; + created_at: Scalars["timestamptz"]["output"]; + description: Scalars["String"]["output"]; + flag: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ machine: Machines; - machine_id: Scalars['String']['output']; - name: Scalars['String']['output']; - point: Scalars['Int']['output']; + machine_id: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; + point: Scalars["Int"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ scores_aggregate: Scores_Aggregate; - stage: Scalars['Int']['output']; + stage: Scalars["Int"]["output"]; /** An array relationship */ submissions: Array; /** An aggregate relationship */ submissions_aggregate: Submissions_Aggregate; - updated_at: Scalars['timestamptz']['output']; + updated_at: Scalars["timestamptz"]["output"]; }; /** Challenges Data */ export type ChallengesScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -330,8 +330,8 @@ export type ChallengesScoresArgs = { /** Challenges Data */ export type ChallengesScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -340,8 +340,8 @@ export type ChallengesScores_AggregateArgs = { /** Challenges Data */ export type ChallengesSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -350,15 +350,15 @@ export type ChallengesSubmissionsArgs = { /** Challenges Data */ export type ChallengesSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "challenges" */ export type Challenges_Aggregate = { - __typename?: 'challenges_aggregate'; + __typename?: "challenges_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -369,16 +369,16 @@ export type Challenges_Aggregate_Bool_Exp = { export type Challenges_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "challenges" */ export type Challenges_Aggregate_Fields = { - __typename?: 'challenges_aggregate_fields'; + __typename?: "challenges_aggregate_fields"; avg?: Maybe; - count: Scalars['Int']['output']; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; stddev?: Maybe; @@ -394,7 +394,7 @@ export type Challenges_Aggregate_Fields = { /** aggregate fields of "challenges" */ export type Challenges_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "challenges" */ @@ -421,9 +421,9 @@ export type Challenges_Arr_Rel_Insert_Input = { /** aggregate avg on columns */ export type Challenges_Avg_Fields = { - __typename?: 'challenges_avg_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_avg_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by avg() on columns of table "challenges" */ @@ -456,47 +456,47 @@ export type Challenges_Bool_Exp = { /** unique or primary key constraints on table "challenges" */ export enum Challenges_Constraint { /** unique or primary key constraint on columns "flag" */ - ChallengesFlagKey = 'challenges_flag_key', + ChallengesFlagKey = "challenges_flag_key", /** unique or primary key constraint on columns "name" */ - ChallengesNameKey = 'challenges_name_key', + ChallengesNameKey = "challenges_name_key", /** unique or primary key constraint on columns "id" */ - ChallengesPkey = 'challenges_pkey' + ChallengesPkey = "challenges_pkey" } /** input type for incrementing numeric columns in table "challenges" */ export type Challenges_Inc_Input = { - point?: InputMaybe; - stage?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; }; /** input type for inserting data into table "challenges" */ export type Challenges_Insert_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; machine?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; scores?: InputMaybe; - stage?: InputMaybe; + stage?: InputMaybe; submissions?: InputMaybe; - updated_at?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Challenges_Max_Fields = { - __typename?: 'challenges_max_fields'; - created_at?: Maybe; - description?: Maybe; - flag?: Maybe; - id?: Maybe; - machine_id?: Maybe; - name?: Maybe; - point?: Maybe; - stage?: Maybe; - updated_at?: Maybe; + __typename?: "challenges_max_fields"; + created_at?: Maybe; + description?: Maybe; + flag?: Maybe; + id?: Maybe; + machine_id?: Maybe; + name?: Maybe; + point?: Maybe; + stage?: Maybe; + updated_at?: Maybe; }; /** order by max() on columns of table "challenges" */ @@ -514,16 +514,16 @@ export type Challenges_Max_Order_By = { /** aggregate min on columns */ export type Challenges_Min_Fields = { - __typename?: 'challenges_min_fields'; - created_at?: Maybe; - description?: Maybe; - flag?: Maybe; - id?: Maybe; - machine_id?: Maybe; - name?: Maybe; - point?: Maybe; - stage?: Maybe; - updated_at?: Maybe; + __typename?: "challenges_min_fields"; + created_at?: Maybe; + description?: Maybe; + flag?: Maybe; + id?: Maybe; + machine_id?: Maybe; + name?: Maybe; + point?: Maybe; + stage?: Maybe; + updated_at?: Maybe; }; /** order by min() on columns of table "challenges" */ @@ -541,9 +541,9 @@ export type Challenges_Min_Order_By = { /** response of any mutation on the table "challenges" */ export type Challenges_Mutation_Response = { - __typename?: 'challenges_mutation_response'; + __typename?: "challenges_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -580,49 +580,49 @@ export type Challenges_Order_By = { /** primary key columns input for table: challenges */ export type Challenges_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "challenges" */ export enum Challenges_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Flag = 'flag', + Flag = "flag", /** column name */ - Id = 'id', + Id = "id", /** column name */ - MachineId = 'machine_id', + MachineId = "machine_id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - Point = 'point', + Point = "point", /** column name */ - Stage = 'stage', + Stage = "stage", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "challenges" */ export type Challenges_Set_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; - stage?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate stddev on columns */ export type Challenges_Stddev_Fields = { - __typename?: 'challenges_stddev_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev() on columns of table "challenges" */ @@ -633,9 +633,9 @@ export type Challenges_Stddev_Order_By = { /** aggregate stddev_pop on columns */ export type Challenges_Stddev_Pop_Fields = { - __typename?: 'challenges_stddev_pop_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_pop_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev_pop() on columns of table "challenges" */ @@ -646,9 +646,9 @@ export type Challenges_Stddev_Pop_Order_By = { /** aggregate stddev_samp on columns */ export type Challenges_Stddev_Samp_Fields = { - __typename?: 'challenges_stddev_samp_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_samp_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev_samp() on columns of table "challenges" */ @@ -667,22 +667,22 @@ export type Challenges_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Challenges_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; - stage?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate sum on columns */ export type Challenges_Sum_Fields = { - __typename?: 'challenges_sum_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_sum_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by sum() on columns of table "challenges" */ @@ -694,23 +694,23 @@ export type Challenges_Sum_Order_By = { /** update columns of table "challenges" */ export enum Challenges_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Flag = 'flag', + Flag = "flag", /** column name */ - Id = 'id', + Id = "id", /** column name */ - MachineId = 'machine_id', + MachineId = "machine_id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - Point = 'point', + Point = "point", /** column name */ - Stage = 'stage', + Stage = "stage", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Challenges_Updates = { @@ -724,9 +724,9 @@ export type Challenges_Updates = { /** aggregate var_pop on columns */ export type Challenges_Var_Pop_Fields = { - __typename?: 'challenges_var_pop_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_var_pop_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by var_pop() on columns of table "challenges" */ @@ -737,9 +737,9 @@ export type Challenges_Var_Pop_Order_By = { /** aggregate var_samp on columns */ export type Challenges_Var_Samp_Fields = { - __typename?: 'challenges_var_samp_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_var_samp_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by var_samp() on columns of table "challenges" */ @@ -750,9 +750,9 @@ export type Challenges_Var_Samp_Order_By = { /** aggregate variance on columns */ export type Challenges_Variance_Fields = { - __typename?: 'challenges_variance_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_variance_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by variance() on columns of table "challenges" */ @@ -764,35 +764,35 @@ export type Challenges_Variance_Order_By = { /** ordering argument of a cursor */ export enum Cursor_Ordering { /** ascending ordering of the cursor */ - Asc = 'ASC', + Asc = "ASC", /** descending ordering of the cursor */ - Desc = 'DESC' + Desc = "DESC" } /** Machines Data */ export type Machines = { - __typename?: 'machines'; + __typename?: "machines"; /** An array relationship */ challenges: Array; /** An aggregate relationship */ challenges_aggregate: Challenges_Aggregate; - created_at: Scalars['timestamptz']['output']; - created_by: Scalars['String']['output']; - depends_on?: Maybe; - description: Scalars['String']['output']; - id: Scalars['String']['output']; - name: Scalars['String']['output']; - no_of_solves: Scalars['Int']['output']; - tags: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + created_at: Scalars["timestamptz"]["output"]; + created_by: Scalars["String"]["output"]; + depends_on?: Maybe; + description: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; + no_of_solves: Scalars["Int"]["output"]; + tags: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; }; /** Machines Data */ export type MachinesChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -801,24 +801,24 @@ export type MachinesChallengesArgs = { /** Machines Data */ export type MachinesChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "machines" */ export type Machines_Aggregate = { - __typename?: 'machines_aggregate'; + __typename?: "machines_aggregate"; aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "machines" */ export type Machines_Aggregate_Fields = { - __typename?: 'machines_aggregate_fields'; + __typename?: "machines_aggregate_fields"; avg?: Maybe; - count: Scalars['Int']['output']; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; stddev?: Maybe; @@ -834,13 +834,13 @@ export type Machines_Aggregate_Fields = { /** aggregate fields of "machines" */ export type Machines_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** aggregate avg on columns */ export type Machines_Avg_Fields = { - __typename?: 'machines_avg_fields'; - no_of_solves?: Maybe; + __typename?: "machines_avg_fields"; + no_of_solves?: Maybe; }; /** Boolean expression to filter rows from the table "machines". All fields are combined with a logical 'AND'. */ @@ -864,63 +864,63 @@ export type Machines_Bool_Exp = { /** unique or primary key constraints on table "machines" */ export enum Machines_Constraint { /** unique or primary key constraint on columns "name" */ - MachinesNameKey = 'machines_name_key', + MachinesNameKey = "machines_name_key", /** unique or primary key constraint on columns "id" */ - MachinesPkey = 'machines_pkey' + MachinesPkey = "machines_pkey" } /** input type for incrementing numeric columns in table "machines" */ export type Machines_Inc_Input = { - no_of_solves?: InputMaybe; + no_of_solves?: InputMaybe; }; /** input type for inserting data into table "machines" */ export type Machines_Insert_Input = { challenges?: InputMaybe; - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Machines_Max_Fields = { - __typename?: 'machines_max_fields'; - created_at?: Maybe; - created_by?: Maybe; - depends_on?: Maybe; - description?: Maybe; - id?: Maybe; - name?: Maybe; - no_of_solves?: Maybe; - tags?: Maybe; - updated_at?: Maybe; + __typename?: "machines_max_fields"; + created_at?: Maybe; + created_by?: Maybe; + depends_on?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + no_of_solves?: Maybe; + tags?: Maybe; + updated_at?: Maybe; }; /** aggregate min on columns */ export type Machines_Min_Fields = { - __typename?: 'machines_min_fields'; - created_at?: Maybe; - created_by?: Maybe; - depends_on?: Maybe; - description?: Maybe; - id?: Maybe; - name?: Maybe; - no_of_solves?: Maybe; - tags?: Maybe; - updated_at?: Maybe; + __typename?: "machines_min_fields"; + created_at?: Maybe; + created_by?: Maybe; + depends_on?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + no_of_solves?: Maybe; + tags?: Maybe; + updated_at?: Maybe; }; /** response of any mutation on the table "machines" */ export type Machines_Mutation_Response = { - __typename?: 'machines_mutation_response'; + __typename?: "machines_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -955,60 +955,60 @@ export type Machines_Order_By = { /** primary key columns input for table: machines */ export type Machines_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "machines" */ export enum Machines_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - CreatedBy = 'created_by', + CreatedBy = "created_by", /** column name */ - DependsOn = 'depends_on', + DependsOn = "depends_on", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - NoOfSolves = 'no_of_solves', + NoOfSolves = "no_of_solves", /** column name */ - Tags = 'tags', + Tags = "tags", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "machines" */ export type Machines_Set_Input = { - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate stddev on columns */ export type Machines_Stddev_Fields = { - __typename?: 'machines_stddev_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_fields"; + no_of_solves?: Maybe; }; /** aggregate stddev_pop on columns */ export type Machines_Stddev_Pop_Fields = { - __typename?: 'machines_stddev_pop_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_pop_fields"; + no_of_solves?: Maybe; }; /** aggregate stddev_samp on columns */ export type Machines_Stddev_Samp_Fields = { - __typename?: 'machines_stddev_samp_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_samp_fields"; + no_of_solves?: Maybe; }; /** Streaming cursor of the table "machines" */ @@ -1021,43 +1021,43 @@ export type Machines_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Machines_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate sum on columns */ export type Machines_Sum_Fields = { - __typename?: 'machines_sum_fields'; - no_of_solves?: Maybe; + __typename?: "machines_sum_fields"; + no_of_solves?: Maybe; }; /** update columns of table "machines" */ export enum Machines_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - CreatedBy = 'created_by', + CreatedBy = "created_by", /** column name */ - DependsOn = 'depends_on', + DependsOn = "depends_on", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - NoOfSolves = 'no_of_solves', + NoOfSolves = "no_of_solves", /** column name */ - Tags = 'tags', + Tags = "tags", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Machines_Updates = { @@ -1071,25 +1071,25 @@ export type Machines_Updates = { /** aggregate var_pop on columns */ export type Machines_Var_Pop_Fields = { - __typename?: 'machines_var_pop_fields'; - no_of_solves?: Maybe; + __typename?: "machines_var_pop_fields"; + no_of_solves?: Maybe; }; /** aggregate var_samp on columns */ export type Machines_Var_Samp_Fields = { - __typename?: 'machines_var_samp_fields'; - no_of_solves?: Maybe; + __typename?: "machines_var_samp_fields"; + no_of_solves?: Maybe; }; /** aggregate variance on columns */ export type Machines_Variance_Fields = { - __typename?: 'machines_variance_fields'; - no_of_solves?: Maybe; + __typename?: "machines_variance_fields"; + no_of_solves?: Maybe; }; /** mutation root */ export type Mutation_Root = { - __typename?: 'mutation_root'; + __typename?: "mutation_root"; /** delete data from the table: "bans" */ delete_bans?: Maybe; /** delete single row from the table: "bans" */ @@ -1199,7 +1199,7 @@ export type Mutation_RootDelete_BansArgs = { /** mutation root */ export type Mutation_RootDelete_Bans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1211,7 +1211,7 @@ export type Mutation_RootDelete_ChallengesArgs = { /** mutation root */ export type Mutation_RootDelete_Challenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1223,7 +1223,7 @@ export type Mutation_RootDelete_MachinesArgs = { /** mutation root */ export type Mutation_RootDelete_Machines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1235,7 +1235,7 @@ export type Mutation_RootDelete_ScoresArgs = { /** mutation root */ export type Mutation_RootDelete_Scores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1247,7 +1247,7 @@ export type Mutation_RootDelete_SubmissionsArgs = { /** mutation root */ export type Mutation_RootDelete_Submissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1259,7 +1259,7 @@ export type Mutation_RootDelete_TeamsArgs = { /** mutation root */ export type Mutation_RootDelete_Teams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1271,7 +1271,7 @@ export type Mutation_RootDelete_UsersArgs = { /** mutation root */ export type Mutation_RootDelete_Users_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1519,21 +1519,21 @@ export type Mutation_RootUpdate_Users_ManyArgs = { /** column ordering options */ export enum Order_By { /** in ascending order, nulls last */ - Asc = 'asc', + Asc = "asc", /** in ascending order, nulls first */ - AscNullsFirst = 'asc_nulls_first', + AscNullsFirst = "asc_nulls_first", /** in ascending order, nulls last */ - AscNullsLast = 'asc_nulls_last', + AscNullsLast = "asc_nulls_last", /** in descending order, nulls first */ - Desc = 'desc', + Desc = "desc", /** in descending order, nulls first */ - DescNullsFirst = 'desc_nulls_first', + DescNullsFirst = "desc_nulls_first", /** in descending order, nulls last */ - DescNullsLast = 'desc_nulls_last' + DescNullsLast = "desc_nulls_last" } export type Query_Root = { - __typename?: 'query_root'; + __typename?: "query_root"; /** An array relationship */ bans: Array; /** An aggregate relationship */ @@ -1581,8 +1581,8 @@ export type Query_Root = { export type Query_RootBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1590,22 +1590,22 @@ export type Query_RootBansArgs = { export type Query_RootBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootBans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1613,22 +1613,22 @@ export type Query_RootChallengesArgs = { export type Query_RootChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootChallenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootMachinesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1636,22 +1636,22 @@ export type Query_RootMachinesArgs = { export type Query_RootMachines_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootMachines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1659,22 +1659,22 @@ export type Query_RootScoresArgs = { export type Query_RootScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootScores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1682,22 +1682,22 @@ export type Query_RootSubmissionsArgs = { export type Query_RootSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootSubmissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootTeamsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1705,22 +1705,22 @@ export type Query_RootTeamsArgs = { export type Query_RootTeams_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootTeams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1728,40 +1728,40 @@ export type Query_RootUsersArgs = { export type Query_RootUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootUsers_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** Scoreboard Data */ export type Scores = { - __typename?: 'scores'; + __typename?: "scores"; /** An object relationship */ challenge: Challenges; - challenge_id: Scalars['String']['output']; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; + challenge_id: Scalars["String"]["output"]; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ submission: Submissions; - submission_id: Scalars['String']['output']; + submission_id: Scalars["String"]["output"]; /** An object relationship */ team: Teams; - team_id: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + team_id: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "scores" */ export type Scores_Aggregate = { - __typename?: 'scores_aggregate'; + __typename?: "scores_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -1772,15 +1772,15 @@ export type Scores_Aggregate_Bool_Exp = { export type Scores_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "scores" */ export type Scores_Aggregate_Fields = { - __typename?: 'scores_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "scores_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -1789,7 +1789,7 @@ export type Scores_Aggregate_Fields = { /** aggregate fields of "scores" */ export type Scores_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "scores" */ @@ -1827,36 +1827,36 @@ export type Scores_Bool_Exp = { /** unique or primary key constraints on table "scores" */ export enum Scores_Constraint { /** unique or primary key constraint on columns "id" */ - ScoresPkey = 'scores_pkey', + ScoresPkey = "scores_pkey", /** unique or primary key constraint on columns "submission_id" */ - ScoresSubmissionIdKey = 'scores_submission_id_key' + ScoresSubmissionIdKey = "scores_submission_id_key" } /** input type for inserting data into table "scores" */ export type Scores_Insert_Input = { challenge?: InputMaybe; - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; submission?: InputMaybe; - submission_id?: InputMaybe; + submission_id?: InputMaybe; team?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Scores_Max_Fields = { - __typename?: 'scores_max_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submission_id?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "scores_max_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submission_id?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "scores" */ @@ -1872,14 +1872,14 @@ export type Scores_Max_Order_By = { /** aggregate min on columns */ export type Scores_Min_Fields = { - __typename?: 'scores_min_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submission_id?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "scores_min_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submission_id?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "scores" */ @@ -1895,9 +1895,9 @@ export type Scores_Min_Order_By = { /** response of any mutation on the table "scores" */ export type Scores_Mutation_Response = { - __typename?: 'scores_mutation_response'; + __typename?: "scores_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -1933,36 +1933,36 @@ export type Scores_Order_By = { /** primary key columns input for table: scores */ export type Scores_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "scores" */ export enum Scores_Select_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmissionId = 'submission_id', + SubmissionId = "submission_id", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "scores" */ export type Scores_Set_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submission_id?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submission_id?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "scores" */ @@ -1975,31 +1975,31 @@ export type Scores_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Scores_Stream_Cursor_Value_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submission_id?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submission_id?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "scores" */ export enum Scores_Update_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmissionId = 'submission_id', + SubmissionId = "submission_id", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Scores_Updates = { @@ -2011,24 +2011,24 @@ export type Scores_Updates = { /** User flag submissions */ export type Submissions = { - __typename?: 'submissions'; + __typename?: "submissions"; /** An object relationship */ challenge: Challenges; - challenge_id: Scalars['String']['output']; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; + challenge_id: Scalars["String"]["output"]; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ score?: Maybe; - submited_flag: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + submited_flag: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "submissions" */ export type Submissions_Aggregate = { - __typename?: 'submissions_aggregate'; + __typename?: "submissions_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -2039,15 +2039,15 @@ export type Submissions_Aggregate_Bool_Exp = { export type Submissions_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "submissions" */ export type Submissions_Aggregate_Fields = { - __typename?: 'submissions_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "submissions_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2056,7 +2056,7 @@ export type Submissions_Aggregate_Fields = { /** aggregate fields of "submissions" */ export type Submissions_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "submissions" */ @@ -2092,31 +2092,31 @@ export type Submissions_Bool_Exp = { /** unique or primary key constraints on table "submissions" */ export enum Submissions_Constraint { /** unique or primary key constraint on columns "id" */ - SubmissionsPkey = 'submissions_pkey' + SubmissionsPkey = "submissions_pkey" } /** input type for inserting data into table "submissions" */ export type Submissions_Insert_Input = { challenge?: InputMaybe; - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; score?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Submissions_Max_Fields = { - __typename?: 'submissions_max_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submited_flag?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "submissions_max_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submited_flag?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "submissions" */ @@ -2131,13 +2131,13 @@ export type Submissions_Max_Order_By = { /** aggregate min on columns */ export type Submissions_Min_Fields = { - __typename?: 'submissions_min_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submited_flag?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "submissions_min_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submited_flag?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "submissions" */ @@ -2152,9 +2152,9 @@ export type Submissions_Min_Order_By = { /** response of any mutation on the table "submissions" */ export type Submissions_Mutation_Response = { - __typename?: 'submissions_mutation_response'; + __typename?: "submissions_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -2188,33 +2188,33 @@ export type Submissions_Order_By = { /** primary key columns input for table: submissions */ export type Submissions_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "submissions" */ export enum Submissions_Select_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmitedFlag = 'submited_flag', + SubmitedFlag = "submited_flag", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "submissions" */ export type Submissions_Set_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "submissions" */ @@ -2227,28 +2227,28 @@ export type Submissions_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Submissions_Stream_Cursor_Value_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "submissions" */ export enum Submissions_Update_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmitedFlag = 'submited_flag', + SubmitedFlag = "submited_flag", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Submissions_Updates = { @@ -2259,7 +2259,7 @@ export type Submissions_Updates = { }; export type Subscription_Root = { - __typename?: 'subscription_root'; + __typename?: "subscription_root"; /** An array relationship */ bans: Array; /** An aggregate relationship */ @@ -2321,8 +2321,8 @@ export type Subscription_Root = { export type Subscription_RootBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2330,20 +2330,20 @@ export type Subscription_RootBansArgs = { export type Subscription_RootBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootBans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootBans_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2351,8 +2351,8 @@ export type Subscription_RootBans_StreamArgs = { export type Subscription_RootChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2360,20 +2360,20 @@ export type Subscription_RootChallengesArgs = { export type Subscription_RootChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootChallenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootChallenges_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2381,8 +2381,8 @@ export type Subscription_RootChallenges_StreamArgs = { export type Subscription_RootMachinesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2390,20 +2390,20 @@ export type Subscription_RootMachinesArgs = { export type Subscription_RootMachines_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootMachines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootMachines_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2411,8 +2411,8 @@ export type Subscription_RootMachines_StreamArgs = { export type Subscription_RootScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2420,20 +2420,20 @@ export type Subscription_RootScoresArgs = { export type Subscription_RootScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootScores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootScores_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2441,8 +2441,8 @@ export type Subscription_RootScores_StreamArgs = { export type Subscription_RootSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2450,20 +2450,20 @@ export type Subscription_RootSubmissionsArgs = { export type Subscription_RootSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootSubmissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootSubmissions_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2471,8 +2471,8 @@ export type Subscription_RootSubmissions_StreamArgs = { export type Subscription_RootTeamsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2480,20 +2480,20 @@ export type Subscription_RootTeamsArgs = { export type Subscription_RootTeams_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootTeams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootTeams_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2501,8 +2501,8 @@ export type Subscription_RootTeams_StreamArgs = { export type Subscription_RootUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2510,36 +2510,36 @@ export type Subscription_RootUsersArgs = { export type Subscription_RootUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootUsers_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootUsers_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; /** Teams Data */ export type Teams = { - __typename?: 'teams'; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; - join_code: Scalars['String']['output']; - name: Scalars['String']['output']; + __typename?: "teams"; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; + join_code: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ scores_aggregate: Scores_Aggregate; - updated_at: Scalars['timestamptz']['output']; + updated_at: Scalars["timestamptz"]["output"]; /** An array relationship */ users: Array; /** An aggregate relationship */ @@ -2550,8 +2550,8 @@ export type Teams = { /** Teams Data */ export type TeamsScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2560,8 +2560,8 @@ export type TeamsScoresArgs = { /** Teams Data */ export type TeamsScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2570,8 +2570,8 @@ export type TeamsScores_AggregateArgs = { /** Teams Data */ export type TeamsUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2580,23 +2580,23 @@ export type TeamsUsersArgs = { /** Teams Data */ export type TeamsUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "teams" */ export type Teams_Aggregate = { - __typename?: 'teams_aggregate'; + __typename?: "teams_aggregate"; aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "teams" */ export type Teams_Aggregate_Fields = { - __typename?: 'teams_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "teams_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2605,7 +2605,7 @@ export type Teams_Aggregate_Fields = { /** aggregate fields of "teams" */ export type Teams_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** Boolean expression to filter rows from the table "teams". All fields are combined with a logical 'AND'. */ @@ -2627,49 +2627,49 @@ export type Teams_Bool_Exp = { /** unique or primary key constraints on table "teams" */ export enum Teams_Constraint { /** unique or primary key constraint on columns "join_code" */ - TeamsJoinCodeKey = 'teams_join_code_key', + TeamsJoinCodeKey = "teams_join_code_key", /** unique or primary key constraint on columns "name" */ - TeamsNameKey = 'teams_name_key', + TeamsNameKey = "teams_name_key", /** unique or primary key constraint on columns "id" */ - TeamsPkey = 'teams_pkey' + TeamsPkey = "teams_pkey" } /** input type for inserting data into table "teams" */ export type Teams_Insert_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; scores?: InputMaybe; - updated_at?: InputMaybe; + updated_at?: InputMaybe; users?: InputMaybe; }; /** aggregate max on columns */ export type Teams_Max_Fields = { - __typename?: 'teams_max_fields'; - created_at?: Maybe; - id?: Maybe; - join_code?: Maybe; - name?: Maybe; - updated_at?: Maybe; + __typename?: "teams_max_fields"; + created_at?: Maybe; + id?: Maybe; + join_code?: Maybe; + name?: Maybe; + updated_at?: Maybe; }; /** aggregate min on columns */ export type Teams_Min_Fields = { - __typename?: 'teams_min_fields'; - created_at?: Maybe; - id?: Maybe; - join_code?: Maybe; - name?: Maybe; - updated_at?: Maybe; + __typename?: "teams_min_fields"; + created_at?: Maybe; + id?: Maybe; + join_code?: Maybe; + name?: Maybe; + updated_at?: Maybe; }; /** response of any mutation on the table "teams" */ export type Teams_Mutation_Response = { - __typename?: 'teams_mutation_response'; + __typename?: "teams_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -2701,30 +2701,30 @@ export type Teams_Order_By = { /** primary key columns input for table: teams */ export type Teams_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "teams" */ export enum Teams_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - JoinCode = 'join_code', + JoinCode = "join_code", /** column name */ - Name = 'name', + Name = "name", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "teams" */ export type Teams_Set_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; + updated_at?: InputMaybe; }; /** Streaming cursor of the table "teams" */ @@ -2737,25 +2737,25 @@ export type Teams_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Teams_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; + updated_at?: InputMaybe; }; /** update columns of table "teams" */ export enum Teams_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - JoinCode = 'join_code', + JoinCode = "join_code", /** column name */ - Name = 'name', + Name = "name", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Teams_Updates = { @@ -2767,35 +2767,35 @@ export type Teams_Updates = { /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ export type Timestamptz_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Users Data */ export type Users = { - __typename?: 'users'; + __typename?: "users"; /** An array relationship */ bans: Array; /** An aggregate relationship */ bans_aggregate: Bans_Aggregate; - created_at: Scalars['timestamptz']['output']; - email: Scalars['String']['output']; - email_verification_code: Scalars['String']['output']; - first_name: Scalars['String']['output']; - hash: Scalars['String']['output']; - id: Scalars['String']['output']; - is_admin: Scalars['Boolean']['output']; - is_banned: Scalars['Boolean']['output']; - is_email_verified: Scalars['Boolean']['output']; - last_name: Scalars['String']['output']; - salt: Scalars['String']['output']; + created_at: Scalars["timestamptz"]["output"]; + email: Scalars["String"]["output"]; + email_verification_code: Scalars["String"]["output"]; + first_name: Scalars["String"]["output"]; + hash: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; + is_admin: Scalars["Boolean"]["output"]; + is_banned: Scalars["Boolean"]["output"]; + is_email_verified: Scalars["Boolean"]["output"]; + last_name: Scalars["String"]["output"]; + salt: Scalars["String"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ @@ -2806,16 +2806,16 @@ export type Users = { submissions_aggregate: Submissions_Aggregate; /** An object relationship */ team?: Maybe; - team_id?: Maybe; - updated_at: Scalars['timestamptz']['output']; + team_id?: Maybe; + updated_at: Scalars["timestamptz"]["output"]; }; /** Users Data */ export type UsersBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2824,8 +2824,8 @@ export type UsersBansArgs = { /** Users Data */ export type UsersBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2834,8 +2834,8 @@ export type UsersBans_AggregateArgs = { /** Users Data */ export type UsersScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2844,8 +2844,8 @@ export type UsersScoresArgs = { /** Users Data */ export type UsersScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2854,8 +2854,8 @@ export type UsersScores_AggregateArgs = { /** Users Data */ export type UsersSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2864,15 +2864,15 @@ export type UsersSubmissionsArgs = { /** Users Data */ export type UsersSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "users" */ export type Users_Aggregate = { - __typename?: 'users_aggregate'; + __typename?: "users_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -2885,29 +2885,29 @@ export type Users_Aggregate_Bool_Exp = { export type Users_Aggregate_Bool_Exp_Bool_And = { arguments: Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_And_Arguments_Columns; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Boolean_Comparison_Exp; }; export type Users_Aggregate_Bool_Exp_Bool_Or = { arguments: Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Boolean_Comparison_Exp; }; export type Users_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "users" */ export type Users_Aggregate_Fields = { - __typename?: 'users_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "users_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2916,7 +2916,7 @@ export type Users_Aggregate_Fields = { /** aggregate fields of "users" */ export type Users_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "users" */ @@ -2963,49 +2963,49 @@ export type Users_Bool_Exp = { /** unique or primary key constraints on table "users" */ export enum Users_Constraint { /** unique or primary key constraint on columns "email" */ - UsersEmailKey = 'users_email_key', + UsersEmailKey = "users_email_key", /** unique or primary key constraint on columns "hash" */ - UsersHashKey = 'users_hash_key', + UsersHashKey = "users_hash_key", /** unique or primary key constraint on columns "id" */ - UsersPkey = 'users_pkey', + UsersPkey = "users_pkey", /** unique or primary key constraint on columns "salt" */ - UsersSaltKey = 'users_salt_key' + UsersSaltKey = "users_salt_key" } /** input type for inserting data into table "users" */ export type Users_Insert_Input = { bans?: InputMaybe; - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; scores?: InputMaybe; submissions?: InputMaybe; team?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Users_Max_Fields = { - __typename?: 'users_max_fields'; - created_at?: Maybe; - email?: Maybe; - email_verification_code?: Maybe; - first_name?: Maybe; - hash?: Maybe; - id?: Maybe; - last_name?: Maybe; - salt?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; + __typename?: "users_max_fields"; + created_at?: Maybe; + email?: Maybe; + email_verification_code?: Maybe; + first_name?: Maybe; + hash?: Maybe; + id?: Maybe; + last_name?: Maybe; + salt?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; }; /** order by max() on columns of table "users" */ @@ -3024,17 +3024,17 @@ export type Users_Max_Order_By = { /** aggregate min on columns */ export type Users_Min_Fields = { - __typename?: 'users_min_fields'; - created_at?: Maybe; - email?: Maybe; - email_verification_code?: Maybe; - first_name?: Maybe; - hash?: Maybe; - id?: Maybe; - last_name?: Maybe; - salt?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; + __typename?: "users_min_fields"; + created_at?: Maybe; + email?: Maybe; + email_verification_code?: Maybe; + first_name?: Maybe; + hash?: Maybe; + id?: Maybe; + last_name?: Maybe; + salt?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; }; /** order by min() on columns of table "users" */ @@ -3053,9 +3053,9 @@ export type Users_Min_Order_By = { /** response of any mutation on the table "users" */ export type Users_Mutation_Response = { - __typename?: 'users_mutation_response'; + __typename?: "users_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -3097,74 +3097,74 @@ export type Users_Order_By = { /** primary key columns input for table: users */ export type Users_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "users" */ export enum Users_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Email = 'email', + Email = "email", /** column name */ - EmailVerificationCode = 'email_verification_code', + EmailVerificationCode = "email_verification_code", /** column name */ - FirstName = 'first_name', + FirstName = "first_name", /** column name */ - Hash = 'hash', + Hash = "hash", /** column name */ - Id = 'id', + Id = "id", /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified', + IsEmailVerified = "is_email_verified", /** column name */ - LastName = 'last_name', + LastName = "last_name", /** column name */ - Salt = 'salt', + Salt = "salt", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** select "users_aggregate_bool_exp_bool_and_arguments_columns" columns of table "users" */ export enum Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_And_Arguments_Columns { /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified' + IsEmailVerified = "is_email_verified" } /** select "users_aggregate_bool_exp_bool_or_arguments_columns" columns of table "users" */ export enum Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns { /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified' + IsEmailVerified = "is_email_verified" } /** input type for updating data in table "users" */ export type Users_Set_Input = { - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** Streaming cursor of the table "users" */ @@ -3177,49 +3177,49 @@ export type Users_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Users_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** update columns of table "users" */ export enum Users_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Email = 'email', + Email = "email", /** column name */ - EmailVerificationCode = 'email_verification_code', + EmailVerificationCode = "email_verification_code", /** column name */ - FirstName = 'first_name', + FirstName = "first_name", /** column name */ - Hash = 'hash', + Hash = "hash", /** column name */ - Id = 'id', + Id = "id", /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified', + IsEmailVerified = "is_email_verified", /** column name */ - LastName = 'last_name', + LastName = "last_name", /** column name */ - Salt = 'salt', + Salt = "salt", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Users_Updates = { diff --git a/packages/api/services/bans.service.ts b/packages/api/services/bans.service.ts index e5fba32..84b1e5e 100644 --- a/packages/api/services/bans.service.ts +++ b/packages/api/services/bans.service.ts @@ -13,13 +13,13 @@ export class BanService { id: snowflake.generate(), user_id: userId, ip, - } + }; const query = gql` - mutation createBanRecord($object: bans_insert_input!) { - insert_bans_one(object: $object) { - id - } - } + mutation createBanRecord($object: bans_insert_input!) { + insert_bans_one(object: $object) { + id + } + } `; const { insert_bans_one } : Mutation_Root = await client.request(query, { @@ -35,16 +35,16 @@ export class BanService { catch (error: any) { throw new Error(error.message); } - } + }; public checkBanListS = async (userId: string) => { try { const query = gql` - query checkUserForBan($userId: String!) { - users_by_pk(id: $userId) { - is_banned - } - } + query checkUserForBan($userId: String!) { + users_by_pk(id: $userId) { + is_banned + } + } `; const { users_by_pk } : Query_Root = await client.request(query, { @@ -60,5 +60,5 @@ export class BanService { catch (error: any) { throw new Error(error.message); } - } + }; } \ No newline at end of file diff --git a/packages/api/services/challenges.service.ts b/packages/api/services/challenges.service.ts index 390bf50..1974c7d 100644 --- a/packages/api/services/challenges.service.ts +++ b/packages/api/services/challenges.service.ts @@ -361,7 +361,7 @@ export class ChallengeService { description: machine.description, challenges: [], total_challenges: total_machines_progress[machine.id], - depends_on: machine.depends_on ?? '', + depends_on: machine.depends_on ?? "", }; for(const challenge of machine.challenges) { diff --git a/packages/scorefeed/.eslintignore b/packages/scorefeed/.eslintignore new file mode 100644 index 0000000..53c37a1 --- /dev/null +++ b/packages/scorefeed/.eslintignore @@ -0,0 +1 @@ +dist \ No newline at end of file diff --git a/packages/scorefeed/graphql/types.ts b/packages/scorefeed/graphql/types.ts index 8a9c108..5c9e124 100644 --- a/packages/scorefeed/graphql/types.ts +++ b/packages/scorefeed/graphql/types.ts @@ -4,7 +4,7 @@ export type Exact = { [K in keyof T]: T[K] export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Incremental = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: { input: string; output: string; } @@ -17,78 +17,78 @@ export type Scalars = { /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */ export type Boolean_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */ export type Int_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */ export type String_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; /** does the column match the given case-insensitive pattern */ - _ilike?: InputMaybe; - _in?: InputMaybe>; + _ilike?: InputMaybe; + _in?: InputMaybe>; /** does the column match the given POSIX regular expression, case insensitive */ - _iregex?: InputMaybe; - _is_null?: InputMaybe; + _iregex?: InputMaybe; + _is_null?: InputMaybe; /** does the column match the given pattern */ - _like?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; + _like?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; /** does the column NOT match the given case-insensitive pattern */ - _nilike?: InputMaybe; - _nin?: InputMaybe>; + _nilike?: InputMaybe; + _nin?: InputMaybe>; /** does the column NOT match the given POSIX regular expression, case insensitive */ - _niregex?: InputMaybe; + _niregex?: InputMaybe; /** does the column NOT match the given pattern */ - _nlike?: InputMaybe; + _nlike?: InputMaybe; /** does the column NOT match the given POSIX regular expression, case sensitive */ - _nregex?: InputMaybe; + _nregex?: InputMaybe; /** does the column NOT match the given SQL regular expression */ - _nsimilar?: InputMaybe; + _nsimilar?: InputMaybe; /** does the column match the given POSIX regular expression, case sensitive */ - _regex?: InputMaybe; + _regex?: InputMaybe; /** does the column match the given SQL regular expression */ - _similar?: InputMaybe; + _similar?: InputMaybe; }; /** Bans issued to users */ export type Bans = { - __typename?: 'bans'; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; - ip: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + __typename?: "bans"; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; + ip: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "bans" */ export type Bans_Aggregate = { - __typename?: 'bans_aggregate'; + __typename?: "bans_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -99,15 +99,15 @@ export type Bans_Aggregate_Bool_Exp = { export type Bans_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "bans" */ export type Bans_Aggregate_Fields = { - __typename?: 'bans_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "bans_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -116,7 +116,7 @@ export type Bans_Aggregate_Fields = { /** aggregate fields of "bans" */ export type Bans_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "bans" */ @@ -149,27 +149,27 @@ export type Bans_Bool_Exp = { /** unique or primary key constraints on table "bans" */ export enum Bans_Constraint { /** unique or primary key constraint on columns "id" */ - BansPkey = 'bans_pkey' + BansPkey = "bans_pkey" } /** input type for inserting data into table "bans" */ export type Bans_Insert_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Bans_Max_Fields = { - __typename?: 'bans_max_fields'; - created_at?: Maybe; - id?: Maybe; - ip?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "bans_max_fields"; + created_at?: Maybe; + id?: Maybe; + ip?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "bans" */ @@ -183,12 +183,12 @@ export type Bans_Max_Order_By = { /** aggregate min on columns */ export type Bans_Min_Fields = { - __typename?: 'bans_min_fields'; - created_at?: Maybe; - id?: Maybe; - ip?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "bans_min_fields"; + created_at?: Maybe; + id?: Maybe; + ip?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "bans" */ @@ -202,9 +202,9 @@ export type Bans_Min_Order_By = { /** response of any mutation on the table "bans" */ export type Bans_Mutation_Response = { - __typename?: 'bans_mutation_response'; + __typename?: "bans_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -228,30 +228,30 @@ export type Bans_Order_By = { /** primary key columns input for table: bans */ export type Bans_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "bans" */ export enum Bans_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Ip = 'ip', + Ip = "ip", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "bans" */ export type Bans_Set_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "bans" */ @@ -264,25 +264,25 @@ export type Bans_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Bans_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - ip?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + ip?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "bans" */ export enum Bans_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Ip = 'ip', + Ip = "ip", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Bans_Updates = { @@ -294,34 +294,34 @@ export type Bans_Updates = { /** Challenges Data */ export type Challenges = { - __typename?: 'challenges'; - created_at: Scalars['timestamptz']['output']; - description: Scalars['String']['output']; - flag: Scalars['String']['output']; - id: Scalars['String']['output']; + __typename?: "challenges"; + created_at: Scalars["timestamptz"]["output"]; + description: Scalars["String"]["output"]; + flag: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ machine: Machines; - machine_id: Scalars['String']['output']; - name: Scalars['String']['output']; - point: Scalars['Int']['output']; + machine_id: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; + point: Scalars["Int"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ scores_aggregate: Scores_Aggregate; - stage: Scalars['Int']['output']; + stage: Scalars["Int"]["output"]; /** An array relationship */ submissions: Array; /** An aggregate relationship */ submissions_aggregate: Submissions_Aggregate; - updated_at: Scalars['timestamptz']['output']; + updated_at: Scalars["timestamptz"]["output"]; }; /** Challenges Data */ export type ChallengesScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -330,8 +330,8 @@ export type ChallengesScoresArgs = { /** Challenges Data */ export type ChallengesScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -340,8 +340,8 @@ export type ChallengesScores_AggregateArgs = { /** Challenges Data */ export type ChallengesSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -350,15 +350,15 @@ export type ChallengesSubmissionsArgs = { /** Challenges Data */ export type ChallengesSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "challenges" */ export type Challenges_Aggregate = { - __typename?: 'challenges_aggregate'; + __typename?: "challenges_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -369,16 +369,16 @@ export type Challenges_Aggregate_Bool_Exp = { export type Challenges_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "challenges" */ export type Challenges_Aggregate_Fields = { - __typename?: 'challenges_aggregate_fields'; + __typename?: "challenges_aggregate_fields"; avg?: Maybe; - count: Scalars['Int']['output']; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; stddev?: Maybe; @@ -394,7 +394,7 @@ export type Challenges_Aggregate_Fields = { /** aggregate fields of "challenges" */ export type Challenges_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "challenges" */ @@ -421,9 +421,9 @@ export type Challenges_Arr_Rel_Insert_Input = { /** aggregate avg on columns */ export type Challenges_Avg_Fields = { - __typename?: 'challenges_avg_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_avg_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by avg() on columns of table "challenges" */ @@ -456,47 +456,47 @@ export type Challenges_Bool_Exp = { /** unique or primary key constraints on table "challenges" */ export enum Challenges_Constraint { /** unique or primary key constraint on columns "flag" */ - ChallengesFlagKey = 'challenges_flag_key', + ChallengesFlagKey = "challenges_flag_key", /** unique or primary key constraint on columns "name" */ - ChallengesNameKey = 'challenges_name_key', + ChallengesNameKey = "challenges_name_key", /** unique or primary key constraint on columns "id" */ - ChallengesPkey = 'challenges_pkey' + ChallengesPkey = "challenges_pkey" } /** input type for incrementing numeric columns in table "challenges" */ export type Challenges_Inc_Input = { - point?: InputMaybe; - stage?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; }; /** input type for inserting data into table "challenges" */ export type Challenges_Insert_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; machine?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; scores?: InputMaybe; - stage?: InputMaybe; + stage?: InputMaybe; submissions?: InputMaybe; - updated_at?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Challenges_Max_Fields = { - __typename?: 'challenges_max_fields'; - created_at?: Maybe; - description?: Maybe; - flag?: Maybe; - id?: Maybe; - machine_id?: Maybe; - name?: Maybe; - point?: Maybe; - stage?: Maybe; - updated_at?: Maybe; + __typename?: "challenges_max_fields"; + created_at?: Maybe; + description?: Maybe; + flag?: Maybe; + id?: Maybe; + machine_id?: Maybe; + name?: Maybe; + point?: Maybe; + stage?: Maybe; + updated_at?: Maybe; }; /** order by max() on columns of table "challenges" */ @@ -514,16 +514,16 @@ export type Challenges_Max_Order_By = { /** aggregate min on columns */ export type Challenges_Min_Fields = { - __typename?: 'challenges_min_fields'; - created_at?: Maybe; - description?: Maybe; - flag?: Maybe; - id?: Maybe; - machine_id?: Maybe; - name?: Maybe; - point?: Maybe; - stage?: Maybe; - updated_at?: Maybe; + __typename?: "challenges_min_fields"; + created_at?: Maybe; + description?: Maybe; + flag?: Maybe; + id?: Maybe; + machine_id?: Maybe; + name?: Maybe; + point?: Maybe; + stage?: Maybe; + updated_at?: Maybe; }; /** order by min() on columns of table "challenges" */ @@ -541,9 +541,9 @@ export type Challenges_Min_Order_By = { /** response of any mutation on the table "challenges" */ export type Challenges_Mutation_Response = { - __typename?: 'challenges_mutation_response'; + __typename?: "challenges_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -580,49 +580,49 @@ export type Challenges_Order_By = { /** primary key columns input for table: challenges */ export type Challenges_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "challenges" */ export enum Challenges_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Flag = 'flag', + Flag = "flag", /** column name */ - Id = 'id', + Id = "id", /** column name */ - MachineId = 'machine_id', + MachineId = "machine_id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - Point = 'point', + Point = "point", /** column name */ - Stage = 'stage', + Stage = "stage", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "challenges" */ export type Challenges_Set_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; - stage?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate stddev on columns */ export type Challenges_Stddev_Fields = { - __typename?: 'challenges_stddev_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev() on columns of table "challenges" */ @@ -633,9 +633,9 @@ export type Challenges_Stddev_Order_By = { /** aggregate stddev_pop on columns */ export type Challenges_Stddev_Pop_Fields = { - __typename?: 'challenges_stddev_pop_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_pop_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev_pop() on columns of table "challenges" */ @@ -646,9 +646,9 @@ export type Challenges_Stddev_Pop_Order_By = { /** aggregate stddev_samp on columns */ export type Challenges_Stddev_Samp_Fields = { - __typename?: 'challenges_stddev_samp_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_stddev_samp_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by stddev_samp() on columns of table "challenges" */ @@ -667,22 +667,22 @@ export type Challenges_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Challenges_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - description?: InputMaybe; - flag?: InputMaybe; - id?: InputMaybe; - machine_id?: InputMaybe; - name?: InputMaybe; - point?: InputMaybe; - stage?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + description?: InputMaybe; + flag?: InputMaybe; + id?: InputMaybe; + machine_id?: InputMaybe; + name?: InputMaybe; + point?: InputMaybe; + stage?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate sum on columns */ export type Challenges_Sum_Fields = { - __typename?: 'challenges_sum_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_sum_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by sum() on columns of table "challenges" */ @@ -694,23 +694,23 @@ export type Challenges_Sum_Order_By = { /** update columns of table "challenges" */ export enum Challenges_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Flag = 'flag', + Flag = "flag", /** column name */ - Id = 'id', + Id = "id", /** column name */ - MachineId = 'machine_id', + MachineId = "machine_id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - Point = 'point', + Point = "point", /** column name */ - Stage = 'stage', + Stage = "stage", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Challenges_Updates = { @@ -724,9 +724,9 @@ export type Challenges_Updates = { /** aggregate var_pop on columns */ export type Challenges_Var_Pop_Fields = { - __typename?: 'challenges_var_pop_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_var_pop_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by var_pop() on columns of table "challenges" */ @@ -737,9 +737,9 @@ export type Challenges_Var_Pop_Order_By = { /** aggregate var_samp on columns */ export type Challenges_Var_Samp_Fields = { - __typename?: 'challenges_var_samp_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_var_samp_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by var_samp() on columns of table "challenges" */ @@ -750,9 +750,9 @@ export type Challenges_Var_Samp_Order_By = { /** aggregate variance on columns */ export type Challenges_Variance_Fields = { - __typename?: 'challenges_variance_fields'; - point?: Maybe; - stage?: Maybe; + __typename?: "challenges_variance_fields"; + point?: Maybe; + stage?: Maybe; }; /** order by variance() on columns of table "challenges" */ @@ -764,35 +764,35 @@ export type Challenges_Variance_Order_By = { /** ordering argument of a cursor */ export enum Cursor_Ordering { /** ascending ordering of the cursor */ - Asc = 'ASC', + Asc = "ASC", /** descending ordering of the cursor */ - Desc = 'DESC' + Desc = "DESC" } /** Machines Data */ export type Machines = { - __typename?: 'machines'; + __typename?: "machines"; /** An array relationship */ challenges: Array; /** An aggregate relationship */ challenges_aggregate: Challenges_Aggregate; - created_at: Scalars['timestamptz']['output']; - created_by: Scalars['String']['output']; - depends_on?: Maybe; - description: Scalars['String']['output']; - id: Scalars['String']['output']; - name: Scalars['String']['output']; - no_of_solves: Scalars['Int']['output']; - tags: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + created_at: Scalars["timestamptz"]["output"]; + created_by: Scalars["String"]["output"]; + depends_on?: Maybe; + description: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; + no_of_solves: Scalars["Int"]["output"]; + tags: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; }; /** Machines Data */ export type MachinesChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -801,24 +801,24 @@ export type MachinesChallengesArgs = { /** Machines Data */ export type MachinesChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "machines" */ export type Machines_Aggregate = { - __typename?: 'machines_aggregate'; + __typename?: "machines_aggregate"; aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "machines" */ export type Machines_Aggregate_Fields = { - __typename?: 'machines_aggregate_fields'; + __typename?: "machines_aggregate_fields"; avg?: Maybe; - count: Scalars['Int']['output']; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; stddev?: Maybe; @@ -834,13 +834,13 @@ export type Machines_Aggregate_Fields = { /** aggregate fields of "machines" */ export type Machines_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** aggregate avg on columns */ export type Machines_Avg_Fields = { - __typename?: 'machines_avg_fields'; - no_of_solves?: Maybe; + __typename?: "machines_avg_fields"; + no_of_solves?: Maybe; }; /** Boolean expression to filter rows from the table "machines". All fields are combined with a logical 'AND'. */ @@ -864,63 +864,63 @@ export type Machines_Bool_Exp = { /** unique or primary key constraints on table "machines" */ export enum Machines_Constraint { /** unique or primary key constraint on columns "name" */ - MachinesNameKey = 'machines_name_key', + MachinesNameKey = "machines_name_key", /** unique or primary key constraint on columns "id" */ - MachinesPkey = 'machines_pkey' + MachinesPkey = "machines_pkey" } /** input type for incrementing numeric columns in table "machines" */ export type Machines_Inc_Input = { - no_of_solves?: InputMaybe; + no_of_solves?: InputMaybe; }; /** input type for inserting data into table "machines" */ export type Machines_Insert_Input = { challenges?: InputMaybe; - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Machines_Max_Fields = { - __typename?: 'machines_max_fields'; - created_at?: Maybe; - created_by?: Maybe; - depends_on?: Maybe; - description?: Maybe; - id?: Maybe; - name?: Maybe; - no_of_solves?: Maybe; - tags?: Maybe; - updated_at?: Maybe; + __typename?: "machines_max_fields"; + created_at?: Maybe; + created_by?: Maybe; + depends_on?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + no_of_solves?: Maybe; + tags?: Maybe; + updated_at?: Maybe; }; /** aggregate min on columns */ export type Machines_Min_Fields = { - __typename?: 'machines_min_fields'; - created_at?: Maybe; - created_by?: Maybe; - depends_on?: Maybe; - description?: Maybe; - id?: Maybe; - name?: Maybe; - no_of_solves?: Maybe; - tags?: Maybe; - updated_at?: Maybe; + __typename?: "machines_min_fields"; + created_at?: Maybe; + created_by?: Maybe; + depends_on?: Maybe; + description?: Maybe; + id?: Maybe; + name?: Maybe; + no_of_solves?: Maybe; + tags?: Maybe; + updated_at?: Maybe; }; /** response of any mutation on the table "machines" */ export type Machines_Mutation_Response = { - __typename?: 'machines_mutation_response'; + __typename?: "machines_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -955,60 +955,60 @@ export type Machines_Order_By = { /** primary key columns input for table: machines */ export type Machines_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "machines" */ export enum Machines_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - CreatedBy = 'created_by', + CreatedBy = "created_by", /** column name */ - DependsOn = 'depends_on', + DependsOn = "depends_on", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - NoOfSolves = 'no_of_solves', + NoOfSolves = "no_of_solves", /** column name */ - Tags = 'tags', + Tags = "tags", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "machines" */ export type Machines_Set_Input = { - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate stddev on columns */ export type Machines_Stddev_Fields = { - __typename?: 'machines_stddev_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_fields"; + no_of_solves?: Maybe; }; /** aggregate stddev_pop on columns */ export type Machines_Stddev_Pop_Fields = { - __typename?: 'machines_stddev_pop_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_pop_fields"; + no_of_solves?: Maybe; }; /** aggregate stddev_samp on columns */ export type Machines_Stddev_Samp_Fields = { - __typename?: 'machines_stddev_samp_fields'; - no_of_solves?: Maybe; + __typename?: "machines_stddev_samp_fields"; + no_of_solves?: Maybe; }; /** Streaming cursor of the table "machines" */ @@ -1021,43 +1021,43 @@ export type Machines_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Machines_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - created_by?: InputMaybe; - depends_on?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - no_of_solves?: InputMaybe; - tags?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + created_by?: InputMaybe; + depends_on?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + no_of_solves?: InputMaybe; + tags?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate sum on columns */ export type Machines_Sum_Fields = { - __typename?: 'machines_sum_fields'; - no_of_solves?: Maybe; + __typename?: "machines_sum_fields"; + no_of_solves?: Maybe; }; /** update columns of table "machines" */ export enum Machines_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - CreatedBy = 'created_by', + CreatedBy = "created_by", /** column name */ - DependsOn = 'depends_on', + DependsOn = "depends_on", /** column name */ - Description = 'description', + Description = "description", /** column name */ - Id = 'id', + Id = "id", /** column name */ - Name = 'name', + Name = "name", /** column name */ - NoOfSolves = 'no_of_solves', + NoOfSolves = "no_of_solves", /** column name */ - Tags = 'tags', + Tags = "tags", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Machines_Updates = { @@ -1071,25 +1071,25 @@ export type Machines_Updates = { /** aggregate var_pop on columns */ export type Machines_Var_Pop_Fields = { - __typename?: 'machines_var_pop_fields'; - no_of_solves?: Maybe; + __typename?: "machines_var_pop_fields"; + no_of_solves?: Maybe; }; /** aggregate var_samp on columns */ export type Machines_Var_Samp_Fields = { - __typename?: 'machines_var_samp_fields'; - no_of_solves?: Maybe; + __typename?: "machines_var_samp_fields"; + no_of_solves?: Maybe; }; /** aggregate variance on columns */ export type Machines_Variance_Fields = { - __typename?: 'machines_variance_fields'; - no_of_solves?: Maybe; + __typename?: "machines_variance_fields"; + no_of_solves?: Maybe; }; /** mutation root */ export type Mutation_Root = { - __typename?: 'mutation_root'; + __typename?: "mutation_root"; /** delete data from the table: "bans" */ delete_bans?: Maybe; /** delete single row from the table: "bans" */ @@ -1199,7 +1199,7 @@ export type Mutation_RootDelete_BansArgs = { /** mutation root */ export type Mutation_RootDelete_Bans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1211,7 +1211,7 @@ export type Mutation_RootDelete_ChallengesArgs = { /** mutation root */ export type Mutation_RootDelete_Challenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1223,7 +1223,7 @@ export type Mutation_RootDelete_MachinesArgs = { /** mutation root */ export type Mutation_RootDelete_Machines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1235,7 +1235,7 @@ export type Mutation_RootDelete_ScoresArgs = { /** mutation root */ export type Mutation_RootDelete_Scores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1247,7 +1247,7 @@ export type Mutation_RootDelete_SubmissionsArgs = { /** mutation root */ export type Mutation_RootDelete_Submissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1259,7 +1259,7 @@ export type Mutation_RootDelete_TeamsArgs = { /** mutation root */ export type Mutation_RootDelete_Teams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1271,7 +1271,7 @@ export type Mutation_RootDelete_UsersArgs = { /** mutation root */ export type Mutation_RootDelete_Users_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; @@ -1519,21 +1519,21 @@ export type Mutation_RootUpdate_Users_ManyArgs = { /** column ordering options */ export enum Order_By { /** in ascending order, nulls last */ - Asc = 'asc', + Asc = "asc", /** in ascending order, nulls first */ - AscNullsFirst = 'asc_nulls_first', + AscNullsFirst = "asc_nulls_first", /** in ascending order, nulls last */ - AscNullsLast = 'asc_nulls_last', + AscNullsLast = "asc_nulls_last", /** in descending order, nulls first */ - Desc = 'desc', + Desc = "desc", /** in descending order, nulls first */ - DescNullsFirst = 'desc_nulls_first', + DescNullsFirst = "desc_nulls_first", /** in descending order, nulls last */ - DescNullsLast = 'desc_nulls_last' + DescNullsLast = "desc_nulls_last" } export type Query_Root = { - __typename?: 'query_root'; + __typename?: "query_root"; /** An array relationship */ bans: Array; /** An aggregate relationship */ @@ -1581,8 +1581,8 @@ export type Query_Root = { export type Query_RootBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1590,22 +1590,22 @@ export type Query_RootBansArgs = { export type Query_RootBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootBans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1613,22 +1613,22 @@ export type Query_RootChallengesArgs = { export type Query_RootChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootChallenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootMachinesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1636,22 +1636,22 @@ export type Query_RootMachinesArgs = { export type Query_RootMachines_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootMachines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1659,22 +1659,22 @@ export type Query_RootScoresArgs = { export type Query_RootScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootScores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1682,22 +1682,22 @@ export type Query_RootSubmissionsArgs = { export type Query_RootSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootSubmissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootTeamsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1705,22 +1705,22 @@ export type Query_RootTeamsArgs = { export type Query_RootTeams_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootTeams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Query_RootUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -1728,40 +1728,40 @@ export type Query_RootUsersArgs = { export type Query_RootUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Query_RootUsers_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** Scoreboard Data */ export type Scores = { - __typename?: 'scores'; + __typename?: "scores"; /** An object relationship */ challenge: Challenges; - challenge_id: Scalars['String']['output']; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; + challenge_id: Scalars["String"]["output"]; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ submission: Submissions; - submission_id: Scalars['String']['output']; + submission_id: Scalars["String"]["output"]; /** An object relationship */ team: Teams; - team_id: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + team_id: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "scores" */ export type Scores_Aggregate = { - __typename?: 'scores_aggregate'; + __typename?: "scores_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -1772,15 +1772,15 @@ export type Scores_Aggregate_Bool_Exp = { export type Scores_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "scores" */ export type Scores_Aggregate_Fields = { - __typename?: 'scores_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "scores_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -1789,7 +1789,7 @@ export type Scores_Aggregate_Fields = { /** aggregate fields of "scores" */ export type Scores_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "scores" */ @@ -1827,36 +1827,36 @@ export type Scores_Bool_Exp = { /** unique or primary key constraints on table "scores" */ export enum Scores_Constraint { /** unique or primary key constraint on columns "id" */ - ScoresPkey = 'scores_pkey', + ScoresPkey = "scores_pkey", /** unique or primary key constraint on columns "submission_id" */ - ScoresSubmissionIdKey = 'scores_submission_id_key' + ScoresSubmissionIdKey = "scores_submission_id_key" } /** input type for inserting data into table "scores" */ export type Scores_Insert_Input = { challenge?: InputMaybe; - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; submission?: InputMaybe; - submission_id?: InputMaybe; + submission_id?: InputMaybe; team?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Scores_Max_Fields = { - __typename?: 'scores_max_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submission_id?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "scores_max_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submission_id?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "scores" */ @@ -1872,14 +1872,14 @@ export type Scores_Max_Order_By = { /** aggregate min on columns */ export type Scores_Min_Fields = { - __typename?: 'scores_min_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submission_id?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "scores_min_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submission_id?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "scores" */ @@ -1895,9 +1895,9 @@ export type Scores_Min_Order_By = { /** response of any mutation on the table "scores" */ export type Scores_Mutation_Response = { - __typename?: 'scores_mutation_response'; + __typename?: "scores_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -1933,36 +1933,36 @@ export type Scores_Order_By = { /** primary key columns input for table: scores */ export type Scores_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "scores" */ export enum Scores_Select_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmissionId = 'submission_id', + SubmissionId = "submission_id", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "scores" */ export type Scores_Set_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submission_id?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submission_id?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "scores" */ @@ -1975,31 +1975,31 @@ export type Scores_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Scores_Stream_Cursor_Value_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submission_id?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submission_id?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "scores" */ export enum Scores_Update_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmissionId = 'submission_id', + SubmissionId = "submission_id", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Scores_Updates = { @@ -2011,24 +2011,24 @@ export type Scores_Updates = { /** User flag submissions */ export type Submissions = { - __typename?: 'submissions'; + __typename?: "submissions"; /** An object relationship */ challenge: Challenges; - challenge_id: Scalars['String']['output']; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; + challenge_id: Scalars["String"]["output"]; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; /** An object relationship */ score?: Maybe; - submited_flag: Scalars['String']['output']; - updated_at: Scalars['timestamptz']['output']; + submited_flag: Scalars["String"]["output"]; + updated_at: Scalars["timestamptz"]["output"]; /** An object relationship */ user: Users; - user_id: Scalars['String']['output']; + user_id: Scalars["String"]["output"]; }; /** aggregated selection of "submissions" */ export type Submissions_Aggregate = { - __typename?: 'submissions_aggregate'; + __typename?: "submissions_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -2039,15 +2039,15 @@ export type Submissions_Aggregate_Bool_Exp = { export type Submissions_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "submissions" */ export type Submissions_Aggregate_Fields = { - __typename?: 'submissions_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "submissions_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2056,7 +2056,7 @@ export type Submissions_Aggregate_Fields = { /** aggregate fields of "submissions" */ export type Submissions_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "submissions" */ @@ -2092,31 +2092,31 @@ export type Submissions_Bool_Exp = { /** unique or primary key constraints on table "submissions" */ export enum Submissions_Constraint { /** unique or primary key constraint on columns "id" */ - SubmissionsPkey = 'submissions_pkey' + SubmissionsPkey = "submissions_pkey" } /** input type for inserting data into table "submissions" */ export type Submissions_Insert_Input = { challenge?: InputMaybe; - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; score?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; user?: InputMaybe; - user_id?: InputMaybe; + user_id?: InputMaybe; }; /** aggregate max on columns */ export type Submissions_Max_Fields = { - __typename?: 'submissions_max_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submited_flag?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "submissions_max_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submited_flag?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by max() on columns of table "submissions" */ @@ -2131,13 +2131,13 @@ export type Submissions_Max_Order_By = { /** aggregate min on columns */ export type Submissions_Min_Fields = { - __typename?: 'submissions_min_fields'; - challenge_id?: Maybe; - created_at?: Maybe; - id?: Maybe; - submited_flag?: Maybe; - updated_at?: Maybe; - user_id?: Maybe; + __typename?: "submissions_min_fields"; + challenge_id?: Maybe; + created_at?: Maybe; + id?: Maybe; + submited_flag?: Maybe; + updated_at?: Maybe; + user_id?: Maybe; }; /** order by min() on columns of table "submissions" */ @@ -2152,9 +2152,9 @@ export type Submissions_Min_Order_By = { /** response of any mutation on the table "submissions" */ export type Submissions_Mutation_Response = { - __typename?: 'submissions_mutation_response'; + __typename?: "submissions_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -2188,33 +2188,33 @@ export type Submissions_Order_By = { /** primary key columns input for table: submissions */ export type Submissions_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "submissions" */ export enum Submissions_Select_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmitedFlag = 'submited_flag', + SubmitedFlag = "submited_flag", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } /** input type for updating data in table "submissions" */ export type Submissions_Set_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** Streaming cursor of the table "submissions" */ @@ -2227,28 +2227,28 @@ export type Submissions_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Submissions_Stream_Cursor_Value_Input = { - challenge_id?: InputMaybe; - created_at?: InputMaybe; - id?: InputMaybe; - submited_flag?: InputMaybe; - updated_at?: InputMaybe; - user_id?: InputMaybe; + challenge_id?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + submited_flag?: InputMaybe; + updated_at?: InputMaybe; + user_id?: InputMaybe; }; /** update columns of table "submissions" */ export enum Submissions_Update_Column { /** column name */ - ChallengeId = 'challenge_id', + ChallengeId = "challenge_id", /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - SubmitedFlag = 'submited_flag', + SubmitedFlag = "submited_flag", /** column name */ - UpdatedAt = 'updated_at', + UpdatedAt = "updated_at", /** column name */ - UserId = 'user_id' + UserId = "user_id" } export type Submissions_Updates = { @@ -2259,7 +2259,7 @@ export type Submissions_Updates = { }; export type Subscription_Root = { - __typename?: 'subscription_root'; + __typename?: "subscription_root"; /** An array relationship */ bans: Array; /** An aggregate relationship */ @@ -2321,8 +2321,8 @@ export type Subscription_Root = { export type Subscription_RootBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2330,20 +2330,20 @@ export type Subscription_RootBansArgs = { export type Subscription_RootBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootBans_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootBans_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2351,8 +2351,8 @@ export type Subscription_RootBans_StreamArgs = { export type Subscription_RootChallengesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2360,20 +2360,20 @@ export type Subscription_RootChallengesArgs = { export type Subscription_RootChallenges_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootChallenges_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootChallenges_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2381,8 +2381,8 @@ export type Subscription_RootChallenges_StreamArgs = { export type Subscription_RootMachinesArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2390,20 +2390,20 @@ export type Subscription_RootMachinesArgs = { export type Subscription_RootMachines_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootMachines_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootMachines_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2411,8 +2411,8 @@ export type Subscription_RootMachines_StreamArgs = { export type Subscription_RootScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2420,20 +2420,20 @@ export type Subscription_RootScoresArgs = { export type Subscription_RootScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootScores_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootScores_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2441,8 +2441,8 @@ export type Subscription_RootScores_StreamArgs = { export type Subscription_RootSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2450,20 +2450,20 @@ export type Subscription_RootSubmissionsArgs = { export type Subscription_RootSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootSubmissions_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootSubmissions_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2471,8 +2471,8 @@ export type Subscription_RootSubmissions_StreamArgs = { export type Subscription_RootTeamsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2480,20 +2480,20 @@ export type Subscription_RootTeamsArgs = { export type Subscription_RootTeams_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootTeams_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootTeams_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; @@ -2501,8 +2501,8 @@ export type Subscription_RootTeams_StreamArgs = { export type Subscription_RootUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2510,36 +2510,36 @@ export type Subscription_RootUsersArgs = { export type Subscription_RootUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; export type Subscription_RootUsers_By_PkArgs = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; export type Subscription_RootUsers_StreamArgs = { - batch_size: Scalars['Int']['input']; + batch_size: Scalars["Int"]["input"]; cursor: Array>; where?: InputMaybe; }; /** Teams Data */ export type Teams = { - __typename?: 'teams'; - created_at: Scalars['timestamptz']['output']; - id: Scalars['String']['output']; - join_code: Scalars['String']['output']; - name: Scalars['String']['output']; + __typename?: "teams"; + created_at: Scalars["timestamptz"]["output"]; + id: Scalars["String"]["output"]; + join_code: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ scores_aggregate: Scores_Aggregate; - updated_at: Scalars['timestamptz']['output']; + updated_at: Scalars["timestamptz"]["output"]; /** An array relationship */ users: Array; /** An aggregate relationship */ @@ -2550,8 +2550,8 @@ export type Teams = { /** Teams Data */ export type TeamsScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2560,8 +2560,8 @@ export type TeamsScoresArgs = { /** Teams Data */ export type TeamsScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2570,8 +2570,8 @@ export type TeamsScores_AggregateArgs = { /** Teams Data */ export type TeamsUsersArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2580,23 +2580,23 @@ export type TeamsUsersArgs = { /** Teams Data */ export type TeamsUsers_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "teams" */ export type Teams_Aggregate = { - __typename?: 'teams_aggregate'; + __typename?: "teams_aggregate"; aggregate?: Maybe; nodes: Array; }; /** aggregate fields of "teams" */ export type Teams_Aggregate_Fields = { - __typename?: 'teams_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "teams_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2605,7 +2605,7 @@ export type Teams_Aggregate_Fields = { /** aggregate fields of "teams" */ export type Teams_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** Boolean expression to filter rows from the table "teams". All fields are combined with a logical 'AND'. */ @@ -2627,49 +2627,49 @@ export type Teams_Bool_Exp = { /** unique or primary key constraints on table "teams" */ export enum Teams_Constraint { /** unique or primary key constraint on columns "join_code" */ - TeamsJoinCodeKey = 'teams_join_code_key', + TeamsJoinCodeKey = "teams_join_code_key", /** unique or primary key constraint on columns "name" */ - TeamsNameKey = 'teams_name_key', + TeamsNameKey = "teams_name_key", /** unique or primary key constraint on columns "id" */ - TeamsPkey = 'teams_pkey' + TeamsPkey = "teams_pkey" } /** input type for inserting data into table "teams" */ export type Teams_Insert_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; scores?: InputMaybe; - updated_at?: InputMaybe; + updated_at?: InputMaybe; users?: InputMaybe; }; /** aggregate max on columns */ export type Teams_Max_Fields = { - __typename?: 'teams_max_fields'; - created_at?: Maybe; - id?: Maybe; - join_code?: Maybe; - name?: Maybe; - updated_at?: Maybe; + __typename?: "teams_max_fields"; + created_at?: Maybe; + id?: Maybe; + join_code?: Maybe; + name?: Maybe; + updated_at?: Maybe; }; /** aggregate min on columns */ export type Teams_Min_Fields = { - __typename?: 'teams_min_fields'; - created_at?: Maybe; - id?: Maybe; - join_code?: Maybe; - name?: Maybe; - updated_at?: Maybe; + __typename?: "teams_min_fields"; + created_at?: Maybe; + id?: Maybe; + join_code?: Maybe; + name?: Maybe; + updated_at?: Maybe; }; /** response of any mutation on the table "teams" */ export type Teams_Mutation_Response = { - __typename?: 'teams_mutation_response'; + __typename?: "teams_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -2701,30 +2701,30 @@ export type Teams_Order_By = { /** primary key columns input for table: teams */ export type Teams_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "teams" */ export enum Teams_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - JoinCode = 'join_code', + JoinCode = "join_code", /** column name */ - Name = 'name', + Name = "name", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** input type for updating data in table "teams" */ export type Teams_Set_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; + updated_at?: InputMaybe; }; /** Streaming cursor of the table "teams" */ @@ -2737,25 +2737,25 @@ export type Teams_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Teams_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - id?: InputMaybe; - join_code?: InputMaybe; - name?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + id?: InputMaybe; + join_code?: InputMaybe; + name?: InputMaybe; + updated_at?: InputMaybe; }; /** update columns of table "teams" */ export enum Teams_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Id = 'id', + Id = "id", /** column name */ - JoinCode = 'join_code', + JoinCode = "join_code", /** column name */ - Name = 'name', + Name = "name", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Teams_Updates = { @@ -2767,35 +2767,35 @@ export type Teams_Updates = { /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */ export type Timestamptz_Comparison_Exp = { - _eq?: InputMaybe; - _gt?: InputMaybe; - _gte?: InputMaybe; - _in?: InputMaybe>; - _is_null?: InputMaybe; - _lt?: InputMaybe; - _lte?: InputMaybe; - _neq?: InputMaybe; - _nin?: InputMaybe>; + _eq?: InputMaybe; + _gt?: InputMaybe; + _gte?: InputMaybe; + _in?: InputMaybe>; + _is_null?: InputMaybe; + _lt?: InputMaybe; + _lte?: InputMaybe; + _neq?: InputMaybe; + _nin?: InputMaybe>; }; /** Users Data */ export type Users = { - __typename?: 'users'; + __typename?: "users"; /** An array relationship */ bans: Array; /** An aggregate relationship */ bans_aggregate: Bans_Aggregate; - created_at: Scalars['timestamptz']['output']; - email: Scalars['String']['output']; - email_verification_code: Scalars['String']['output']; - first_name: Scalars['String']['output']; - hash: Scalars['String']['output']; - id: Scalars['String']['output']; - is_admin: Scalars['Boolean']['output']; - is_banned: Scalars['Boolean']['output']; - is_email_verified: Scalars['Boolean']['output']; - last_name: Scalars['String']['output']; - salt: Scalars['String']['output']; + created_at: Scalars["timestamptz"]["output"]; + email: Scalars["String"]["output"]; + email_verification_code: Scalars["String"]["output"]; + first_name: Scalars["String"]["output"]; + hash: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; + is_admin: Scalars["Boolean"]["output"]; + is_banned: Scalars["Boolean"]["output"]; + is_email_verified: Scalars["Boolean"]["output"]; + last_name: Scalars["String"]["output"]; + salt: Scalars["String"]["output"]; /** An array relationship */ scores: Array; /** An aggregate relationship */ @@ -2806,16 +2806,16 @@ export type Users = { submissions_aggregate: Submissions_Aggregate; /** An object relationship */ team?: Maybe; - team_id?: Maybe; - updated_at: Scalars['timestamptz']['output']; + team_id?: Maybe; + updated_at: Scalars["timestamptz"]["output"]; }; /** Users Data */ export type UsersBansArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2824,8 +2824,8 @@ export type UsersBansArgs = { /** Users Data */ export type UsersBans_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2834,8 +2834,8 @@ export type UsersBans_AggregateArgs = { /** Users Data */ export type UsersScoresArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2844,8 +2844,8 @@ export type UsersScoresArgs = { /** Users Data */ export type UsersScores_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2854,8 +2854,8 @@ export type UsersScores_AggregateArgs = { /** Users Data */ export type UsersSubmissionsArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; @@ -2864,15 +2864,15 @@ export type UsersSubmissionsArgs = { /** Users Data */ export type UsersSubmissions_AggregateArgs = { distinct_on?: InputMaybe>; - limit?: InputMaybe; - offset?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; order_by?: InputMaybe>; where?: InputMaybe; }; /** aggregated selection of "users" */ export type Users_Aggregate = { - __typename?: 'users_aggregate'; + __typename?: "users_aggregate"; aggregate?: Maybe; nodes: Array; }; @@ -2885,29 +2885,29 @@ export type Users_Aggregate_Bool_Exp = { export type Users_Aggregate_Bool_Exp_Bool_And = { arguments: Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_And_Arguments_Columns; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Boolean_Comparison_Exp; }; export type Users_Aggregate_Bool_Exp_Bool_Or = { arguments: Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Boolean_Comparison_Exp; }; export type Users_Aggregate_Bool_Exp_Count = { arguments?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; filter?: InputMaybe; predicate: Int_Comparison_Exp; }; /** aggregate fields of "users" */ export type Users_Aggregate_Fields = { - __typename?: 'users_aggregate_fields'; - count: Scalars['Int']['output']; + __typename?: "users_aggregate_fields"; + count: Scalars["Int"]["output"]; max?: Maybe; min?: Maybe; }; @@ -2916,7 +2916,7 @@ export type Users_Aggregate_Fields = { /** aggregate fields of "users" */ export type Users_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; - distinct?: InputMaybe; + distinct?: InputMaybe; }; /** order by aggregate values of table "users" */ @@ -2963,49 +2963,49 @@ export type Users_Bool_Exp = { /** unique or primary key constraints on table "users" */ export enum Users_Constraint { /** unique or primary key constraint on columns "email" */ - UsersEmailKey = 'users_email_key', + UsersEmailKey = "users_email_key", /** unique or primary key constraint on columns "hash" */ - UsersHashKey = 'users_hash_key', + UsersHashKey = "users_hash_key", /** unique or primary key constraint on columns "id" */ - UsersPkey = 'users_pkey', + UsersPkey = "users_pkey", /** unique or primary key constraint on columns "salt" */ - UsersSaltKey = 'users_salt_key' + UsersSaltKey = "users_salt_key" } /** input type for inserting data into table "users" */ export type Users_Insert_Input = { bans?: InputMaybe; - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; scores?: InputMaybe; submissions?: InputMaybe; team?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** aggregate max on columns */ export type Users_Max_Fields = { - __typename?: 'users_max_fields'; - created_at?: Maybe; - email?: Maybe; - email_verification_code?: Maybe; - first_name?: Maybe; - hash?: Maybe; - id?: Maybe; - last_name?: Maybe; - salt?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; + __typename?: "users_max_fields"; + created_at?: Maybe; + email?: Maybe; + email_verification_code?: Maybe; + first_name?: Maybe; + hash?: Maybe; + id?: Maybe; + last_name?: Maybe; + salt?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; }; /** order by max() on columns of table "users" */ @@ -3024,17 +3024,17 @@ export type Users_Max_Order_By = { /** aggregate min on columns */ export type Users_Min_Fields = { - __typename?: 'users_min_fields'; - created_at?: Maybe; - email?: Maybe; - email_verification_code?: Maybe; - first_name?: Maybe; - hash?: Maybe; - id?: Maybe; - last_name?: Maybe; - salt?: Maybe; - team_id?: Maybe; - updated_at?: Maybe; + __typename?: "users_min_fields"; + created_at?: Maybe; + email?: Maybe; + email_verification_code?: Maybe; + first_name?: Maybe; + hash?: Maybe; + id?: Maybe; + last_name?: Maybe; + salt?: Maybe; + team_id?: Maybe; + updated_at?: Maybe; }; /** order by min() on columns of table "users" */ @@ -3053,9 +3053,9 @@ export type Users_Min_Order_By = { /** response of any mutation on the table "users" */ export type Users_Mutation_Response = { - __typename?: 'users_mutation_response'; + __typename?: "users_mutation_response"; /** number of rows affected by the mutation */ - affected_rows: Scalars['Int']['output']; + affected_rows: Scalars["Int"]["output"]; /** data from the rows affected by the mutation */ returning: Array; }; @@ -3097,74 +3097,74 @@ export type Users_Order_By = { /** primary key columns input for table: users */ export type Users_Pk_Columns_Input = { - id: Scalars['String']['input']; + id: Scalars["String"]["input"]; }; /** select columns of table "users" */ export enum Users_Select_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Email = 'email', + Email = "email", /** column name */ - EmailVerificationCode = 'email_verification_code', + EmailVerificationCode = "email_verification_code", /** column name */ - FirstName = 'first_name', + FirstName = "first_name", /** column name */ - Hash = 'hash', + Hash = "hash", /** column name */ - Id = 'id', + Id = "id", /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified', + IsEmailVerified = "is_email_verified", /** column name */ - LastName = 'last_name', + LastName = "last_name", /** column name */ - Salt = 'salt', + Salt = "salt", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } /** select "users_aggregate_bool_exp_bool_and_arguments_columns" columns of table "users" */ export enum Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_And_Arguments_Columns { /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified' + IsEmailVerified = "is_email_verified" } /** select "users_aggregate_bool_exp_bool_or_arguments_columns" columns of table "users" */ export enum Users_Select_Column_Users_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns { /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified' + IsEmailVerified = "is_email_verified" } /** input type for updating data in table "users" */ export type Users_Set_Input = { - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** Streaming cursor of the table "users" */ @@ -3177,49 +3177,49 @@ export type Users_Stream_Cursor_Input = { /** Initial value of the column from where the streaming should start */ export type Users_Stream_Cursor_Value_Input = { - created_at?: InputMaybe; - email?: InputMaybe; - email_verification_code?: InputMaybe; - first_name?: InputMaybe; - hash?: InputMaybe; - id?: InputMaybe; - is_admin?: InputMaybe; - is_banned?: InputMaybe; - is_email_verified?: InputMaybe; - last_name?: InputMaybe; - salt?: InputMaybe; - team_id?: InputMaybe; - updated_at?: InputMaybe; + created_at?: InputMaybe; + email?: InputMaybe; + email_verification_code?: InputMaybe; + first_name?: InputMaybe; + hash?: InputMaybe; + id?: InputMaybe; + is_admin?: InputMaybe; + is_banned?: InputMaybe; + is_email_verified?: InputMaybe; + last_name?: InputMaybe; + salt?: InputMaybe; + team_id?: InputMaybe; + updated_at?: InputMaybe; }; /** update columns of table "users" */ export enum Users_Update_Column { /** column name */ - CreatedAt = 'created_at', + CreatedAt = "created_at", /** column name */ - Email = 'email', + Email = "email", /** column name */ - EmailVerificationCode = 'email_verification_code', + EmailVerificationCode = "email_verification_code", /** column name */ - FirstName = 'first_name', + FirstName = "first_name", /** column name */ - Hash = 'hash', + Hash = "hash", /** column name */ - Id = 'id', + Id = "id", /** column name */ - IsAdmin = 'is_admin', + IsAdmin = "is_admin", /** column name */ - IsBanned = 'is_banned', + IsBanned = "is_banned", /** column name */ - IsEmailVerified = 'is_email_verified', + IsEmailVerified = "is_email_verified", /** column name */ - LastName = 'last_name', + LastName = "last_name", /** column name */ - Salt = 'salt', + Salt = "salt", /** column name */ - TeamId = 'team_id', + TeamId = "team_id", /** column name */ - UpdatedAt = 'updated_at' + UpdatedAt = "updated_at" } export type Users_Updates = { diff --git a/packages/scorefeed/helpers/ctftimeClient.ts b/packages/scorefeed/helpers/ctftimeClient.ts index c5ddd7d..8e0394d 100644 --- a/packages/scorefeed/helpers/ctftimeClient.ts +++ b/packages/scorefeed/helpers/ctftimeClient.ts @@ -20,9 +20,7 @@ export class CTFTimeClient { urlparams.append("state", "eeCTF"); return `${this.baseURL}/authorize?${urlparams.toString()}`; } catch (error) { - if(error instanceof Error) { - throw new TypeError(error.message); - } + return error; } } diff --git a/turbo.json b/turbo.json index d958a2c..5f775e6 100644 --- a/turbo.json +++ b/turbo.json @@ -4,6 +4,7 @@ "pipeline": { "build": { "dependsOn": ["^build"], + "cache": false, "outputs": [".next/**", "!.next/cache/**"] }, "build:client": {