From f81dd7767ac2f46f18edd27f6971c9aabcc39482 Mon Sep 17 00:00:00 2001 From: Seroxdesign Date: Wed, 9 Aug 2023 12:07:07 -0400 Subject: [PATCH] xp update --- docker/backend/Dockerfile | 2 +- .../down.sql | 1 + .../up.sql | 1 + .../handlers/actions/player/syncBalances.ts | 6 +- .../src/handlers/graphql/queries/token.ts | 6 + .../backend/src/lib/autogen/hasura-sdk.ts | 2975 +++++++---------- packages/web/graphql/autogen/types.ts | 30 + schema.graphql | 32 + 8 files changed, 1283 insertions(+), 1770 deletions(-) create mode 100644 hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/down.sql create mode 100644 hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/up.sql diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 7ff5a4cf..2f6106df 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -16,7 +16,7 @@ COPY packages/backend/*.json ./packages/backend/ COPY packages/utils/*.json ./packages/utils/ COPY packages/discord-bot/*.json ./packages/discord-bot/ -RUN yarn install --pure-lockfile +RUN yarn install --pure-lockfile --network-timeout 1000000000 # Dev environment doesn't run this stage or beyond FROM base as build diff --git a/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/down.sql b/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/down.sql new file mode 100644 index 00000000..ace5131f --- /dev/null +++ b/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/down.sql @@ -0,0 +1 @@ +ALTER TABLE "public"."xp" DROP COLUMN "initial"; diff --git a/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/up.sql b/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/up.sql new file mode 100644 index 00000000..2a294aa3 --- /dev/null +++ b/hasura/migrations/1691585385348_alter_table_public_xp_add_column_initial/up.sql @@ -0,0 +1 @@ +ALTER TABLE "public"."xp" ADD COLUMN "initial" float8 NULL DEFAULT 0; diff --git a/packages/backend/src/handlers/actions/player/syncBalances.ts b/packages/backend/src/handlers/actions/player/syncBalances.ts index 978800fc..a26c517b 100644 --- a/packages/backend/src/handlers/actions/player/syncBalances.ts +++ b/packages/backend/src/handlers/actions/player/syncBalances.ts @@ -76,9 +76,9 @@ export default async (req: Request, res: Response): Promise => { await Promise.all(players.map( async (player) => { const total = await client.GetTotalForPlayer({ tokenAddress: address, playerAddress: player.Player.ethereumAddress }) const balance = total.balance_aggregate.aggregate?.sum?.amount - if (balance != null) { - await client.UpsertXP({ balance: total.balance_aggregate.aggregate?.sum?.amount, playerId: player.Player.id, tokenAddress: address }) - } + const { xp: [{ initial } = { initial: 0 }] } = await client.GetInitialXP({ playerId: player.Player.id }) + console.log({initial}) + await client.UpsertXP({ balance: (balance ?? 0) + initial, playerId: player.Player.id, tokenAddress: address }) })) }), ); diff --git a/packages/backend/src/handlers/graphql/queries/token.ts b/packages/backend/src/handlers/graphql/queries/token.ts index 6741c8fc..f48a72e0 100644 --- a/packages/backend/src/handlers/graphql/queries/token.ts +++ b/packages/backend/src/handlers/graphql/queries/token.ts @@ -25,4 +25,10 @@ export const TokenQueries = /* GraphQL */ ` } } } + + query GetInitialXP($playerId: uuid!) { + xp(where: {playerId: {_eq: $playerId}}) { + initial + } + } `; diff --git a/packages/backend/src/lib/autogen/hasura-sdk.ts b/packages/backend/src/lib/autogen/hasura-sdk.ts index 819d45c0..10d0c7b3 100644 --- a/packages/backend/src/lib/autogen/hasura-sdk.ts +++ b/packages/backend/src/lib/autogen/hasura-sdk.ts @@ -4,15 +4,9 @@ import * as Dom from 'graphql-request/dist/types.dom'; import gql from 'graphql-tag'; export type Maybe = T | null; export type InputMaybe = Maybe; -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 Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; @@ -49,6 +43,7 @@ export type AccountType_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "AccountType" */ export type AccountType_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -79,7 +74,7 @@ export type AccountType_Bool_Exp = { /** unique or primary key constraints on table "AccountType" */ export enum AccountType_Constraint { /** unique or primary key constraint */ - AccountTypePkey = 'AccountType_pkey', + AccountTypePkey = 'AccountType_pkey' } export enum AccountType_Enum { @@ -88,7 +83,7 @@ export enum AccountType_Enum { Ethereum = 'ETHEREUM', Github = 'GITHUB', Meetwithwallet = 'MEETWITHWALLET', - Twitter = 'TWITTER', + Twitter = 'TWITTER' } /** expression to compare columns of type AccountType_enum. All fields are combined with logical 'AND'. */ @@ -162,7 +157,7 @@ export type AccountType_Pk_Columns_Input = { /** select columns of table "AccountType" */ export enum AccountType_Select_Column { /** column name */ - Type = 'type', + Type = 'type' } /** input type for updating data in table "AccountType" */ @@ -173,7 +168,7 @@ export type AccountType_Set_Input = { /** update columns of table "AccountType" */ export enum AccountType_Update_Column { /** column name */ - Type = 'type', + Type = 'type' } /** expression to compare columns of type Boolean. All fields are combined with logical 'AND'. */ @@ -222,6 +217,7 @@ export type ColorAspect = { readonly profiles_aggregate: Profile_Aggregate; }; + /** columns and relationships of "ColorAspect" */ export type ColorAspectProfilesArgs = { distinct_on?: InputMaybe>; @@ -231,6 +227,7 @@ export type ColorAspectProfilesArgs = { where?: InputMaybe; }; + /** columns and relationships of "ColorAspect" */ export type ColorAspectProfiles_AggregateArgs = { distinct_on?: InputMaybe>; @@ -263,6 +260,7 @@ export type ColorAspect_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "ColorAspect" */ export type ColorAspect_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -317,7 +315,7 @@ export enum ColorAspect_Constraint { /** unique or primary key constraint */ ColorAspectNameKey = 'ColorAspect_name_key', /** unique or primary key constraint */ - ColorAspectPkey = 'ColorAspect_pkey', + ColorAspectPkey = 'ColorAspect_pkey' } /** input type for incrementing integer column in table "ColorAspect" */ @@ -405,7 +403,7 @@ export enum ColorAspect_Select_Column { /** column name */ Mask = 'mask', /** column name */ - Name = 'name', + Name = 'name' } /** input type for updating data in table "ColorAspect" */ @@ -466,7 +464,7 @@ export enum ColorAspect_Update_Column { /** column name */ Mask = 'mask', /** column name */ - Name = 'name', + Name = 'name' } /** aggregate var_pop on columns */ @@ -587,6 +585,7 @@ export type ExplorerType = { readonly title: Scalars['String']; }; + /** columns and relationships of "ExplorerType" */ export type ExplorerTypeProfilesArgs = { distinct_on?: InputMaybe>; @@ -596,6 +595,7 @@ export type ExplorerTypeProfilesArgs = { where?: InputMaybe; }; + /** columns and relationships of "ExplorerType" */ export type ExplorerTypeProfiles_AggregateArgs = { distinct_on?: InputMaybe>; @@ -628,6 +628,7 @@ export type ExplorerType_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "ExplorerType" */ export type ExplorerType_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -683,7 +684,7 @@ export enum ExplorerType_Constraint { /** unique or primary key constraint */ PlayerTypePkey = 'PlayerType_pkey', /** unique or primary key constraint */ - PlayerTypeTitleKey = 'PlayerType_title_key', + PlayerTypeTitleKey = 'PlayerType_title_key' } /** input type for incrementing integer column in table "ExplorerType" */ @@ -779,7 +780,7 @@ export enum ExplorerType_Select_Column { /** column name */ ImageUrl = 'imageURL', /** column name */ - Title = 'title', + Title = 'title' } /** input type for updating data in table "ExplorerType" */ @@ -843,7 +844,7 @@ export enum ExplorerType_Update_Column { /** column name */ ImageUrl = 'imageURL', /** column name */ - Title = 'title', + Title = 'title' } /** aggregate var_pop on columns */ @@ -930,6 +931,7 @@ export type GuildStatus_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "GuildStatus" */ export type GuildStatus_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -960,13 +962,13 @@ export type GuildStatus_Bool_Exp = { /** unique or primary key constraints on table "GuildStatus" */ export enum GuildStatus_Constraint { /** unique or primary key constraint */ - GuildStatusPkey = 'GuildStatus_pkey', + GuildStatusPkey = 'GuildStatus_pkey' } export enum GuildStatus_Enum { Active = 'ACTIVE', Inactive = 'INACTIVE', - Pending = 'PENDING', + Pending = 'PENDING' } /** expression to compare columns of type GuildStatus_enum. All fields are combined with logical 'AND'. */ @@ -1040,7 +1042,7 @@ export type GuildStatus_Pk_Columns_Input = { /** select columns of table "GuildStatus" */ export enum GuildStatus_Select_Column { /** column name */ - Status = 'status', + Status = 'status' } /** input type for updating data in table "GuildStatus" */ @@ -1051,7 +1053,7 @@ export type GuildStatus_Set_Input = { /** update columns of table "GuildStatus" */ export enum GuildStatus_Update_Column { /** column name */ - Status = 'status', + Status = 'status' } /** columns and relationships of "GuildType" */ @@ -1064,6 +1066,7 @@ export type GuildType = { readonly name: Scalars['String']; }; + /** columns and relationships of "GuildType" */ export type GuildTypeGuildsArgs = { distinct_on?: InputMaybe>; @@ -1073,6 +1076,7 @@ export type GuildTypeGuildsArgs = { where?: InputMaybe; }; + /** columns and relationships of "GuildType" */ export type GuildTypeGuilds_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1087,7 +1091,7 @@ export enum GuildType_ActionEnum { Project = 'PROJECT', Research = 'RESEARCH', Service = 'SERVICE', - Social = 'SOCIAL', + Social = 'SOCIAL' } /** aggregated selection of "GuildType" */ @@ -1105,6 +1109,7 @@ export type GuildType_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "GuildType" */ export type GuildType_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1136,7 +1141,7 @@ export type GuildType_Bool_Exp = { /** unique or primary key constraints on table "GuildType" */ export enum GuildType_Constraint { /** unique or primary key constraint */ - GuildTypePkey = 'GuildType_pkey', + GuildTypePkey = 'GuildType_pkey' } export enum GuildType_Enum { @@ -1144,7 +1149,7 @@ export enum GuildType_Enum { Project = 'PROJECT', Research = 'RESEARCH', Service = 'SERVICE', - Social = 'SOCIAL', + Social = 'SOCIAL' } /** expression to compare columns of type GuildType_enum. All fields are combined with logical 'AND'. */ @@ -1220,7 +1225,7 @@ export type GuildType_Pk_Columns_Input = { /** select columns of table "GuildType" */ export enum GuildType_Select_Column { /** column name */ - Name = 'name', + Name = 'name' } /** input type for updating data in table "GuildType" */ @@ -1231,7 +1236,7 @@ export type GuildType_Set_Input = { /** update columns of table "GuildType" */ export enum GuildType_Update_Column { /** column name */ - Name = 'name', + Name = 'name' } /** expression to compare columns of type Int. All fields are combined with logical 'AND'. */ @@ -1299,6 +1304,7 @@ export type PlayerRank_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "PlayerRank" */ export type PlayerRank_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1329,7 +1335,7 @@ export type PlayerRank_Bool_Exp = { /** unique or primary key constraints on table "PlayerRank" */ export enum PlayerRank_Constraint { /** unique or primary key constraint */ - PlayerRankPkey = 'Player_Rank_pkey', + PlayerRankPkey = 'Player_Rank_pkey' } export enum PlayerRank_Enum { @@ -1337,7 +1343,7 @@ export enum PlayerRank_Enum { Diamond = 'DIAMOND', Gold = 'GOLD', Platinum = 'PLATINUM', - Silver = 'SILVER', + Silver = 'SILVER' } /** expression to compare columns of type PlayerRank_enum. All fields are combined with logical 'AND'. */ @@ -1411,7 +1417,7 @@ export type PlayerRank_Pk_Columns_Input = { /** select columns of table "PlayerRank" */ export enum PlayerRank_Select_Column { /** column name */ - Rank = 'rank', + Rank = 'rank' } /** input type for updating data in table "PlayerRank" */ @@ -1422,7 +1428,7 @@ export type PlayerRank_Set_Input = { /** update columns of table "PlayerRank" */ export enum PlayerRank_Update_Column { /** column name */ - Rank = 'rank', + Rank = 'rank' } /** columns and relationships of "PlayerRole" */ @@ -1449,6 +1455,7 @@ export type PlayerRole_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "PlayerRole" */ export type PlayerRole_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1482,7 +1489,7 @@ export type PlayerRole_Bool_Exp = { /** unique or primary key constraints on table "PlayerRole" */ export enum PlayerRole_Constraint { /** unique or primary key constraint */ - PlayerRolePkey = 'PlayerRole_pkey', + PlayerRolePkey = 'PlayerRole_pkey' } /** input type for inserting data into table "PlayerRole" */ @@ -1567,7 +1574,7 @@ export enum PlayerRole_Select_Column { /** column name */ Label = 'label', /** column name */ - Role = 'role', + Role = 'role' } /** input type for updating data in table "PlayerRole" */ @@ -1587,7 +1594,7 @@ export enum PlayerRole_Update_Column { /** column name */ Label = 'label', /** column name */ - Role = 'role', + Role = 'role' } export type Query = { @@ -1595,40 +1602,45 @@ export type Query = { readonly getBrightIdStatus?: Maybe; readonly getDaoHausMemberships: ReadonlyArray; readonly getDiscordServerMemberRoles: ReadonlyArray; - readonly getGuildDiscordAnnouncements?: Maybe< - ReadonlyArray - >; + readonly getGuildDiscordAnnouncements?: Maybe>; readonly getGuildDiscordRoles: ReadonlyArray; readonly getPSeedInfo?: Maybe; readonly getTokenBalances?: Maybe; readonly getTopPSeedHolders?: Maybe>; }; + export type QueryGetBrightIdStatusArgs = { contextId?: InputMaybe; }; + export type QueryGetDaoHausMembershipsArgs = { memberAddress?: InputMaybe; }; + export type QueryGetDiscordServerMemberRolesArgs = { guildId: Scalars['uuid']; playerId: Scalars['uuid']; }; + export type QueryGetGuildDiscordAnnouncementsArgs = { guildDiscordId?: InputMaybe; }; + export type QueryGetGuildDiscordRolesArgs = { guildDiscordId?: InputMaybe; }; + export type QueryGetTokenBalancesArgs = { address?: InputMaybe; }; + export type QueryGetTopPSeedHoldersArgs = { limit?: InputMaybe; }; @@ -1643,6 +1655,7 @@ export type QuestCompletionStatus = { readonly status: Scalars['String']; }; + /** columns and relationships of "QuestCompletionStatus" */ export type QuestCompletionStatusQuest_CompletionsArgs = { distinct_on?: InputMaybe>; @@ -1652,6 +1665,7 @@ export type QuestCompletionStatusQuest_CompletionsArgs = { where?: InputMaybe; }; + /** columns and relationships of "QuestCompletionStatus" */ export type QuestCompletionStatusQuest_Completions_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1663,7 +1677,7 @@ export type QuestCompletionStatusQuest_Completions_AggregateArgs = { export enum QuestCompletionStatus_ActionEnum { Accepted = 'ACCEPTED', - Rejected = 'REJECTED', + Rejected = 'REJECTED' } /** aggregated selection of "QuestCompletionStatus" */ @@ -1681,6 +1695,7 @@ export type QuestCompletionStatus_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "QuestCompletionStatus" */ export type QuestCompletionStatus_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1702,13 +1717,9 @@ export type QuestCompletionStatus_Arr_Rel_Insert_Input = { /** Boolean expression to filter rows from the table "QuestCompletionStatus". All fields are combined with a logical 'AND'. */ export type QuestCompletionStatus_Bool_Exp = { - readonly _and?: InputMaybe< - ReadonlyArray> - >; + readonly _and?: InputMaybe>>; readonly _not?: InputMaybe; - readonly _or?: InputMaybe< - ReadonlyArray> - >; + readonly _or?: InputMaybe>>; readonly quest_completions?: InputMaybe; readonly status?: InputMaybe; }; @@ -1716,13 +1727,13 @@ export type QuestCompletionStatus_Bool_Exp = { /** unique or primary key constraints on table "QuestCompletionStatus" */ export enum QuestCompletionStatus_Constraint { /** unique or primary key constraint */ - QuestCompletionStatusPkey = 'QuestCompletionStatus_pkey', + QuestCompletionStatusPkey = 'QuestCompletionStatus_pkey' } export enum QuestCompletionStatus_Enum { Accepted = 'ACCEPTED', Pending = 'PENDING', - Rejected = 'REJECTED', + Rejected = 'REJECTED' } /** expression to compare columns of type QuestCompletionStatus_enum. All fields are combined with logical 'AND'. */ @@ -1798,7 +1809,7 @@ export type QuestCompletionStatus_Pk_Columns_Input = { /** select columns of table "QuestCompletionStatus" */ export enum QuestCompletionStatus_Select_Column { /** column name */ - Status = 'status', + Status = 'status' } /** input type for updating data in table "QuestCompletionStatus" */ @@ -1809,7 +1820,7 @@ export type QuestCompletionStatus_Set_Input = { /** update columns of table "QuestCompletionStatus" */ export enum QuestCompletionStatus_Update_Column { /** column name */ - Status = 'status', + Status = 'status' } /** columns and relationships of "QuestRepetition" */ @@ -1822,6 +1833,7 @@ export type QuestRepetition = { readonly repetition: Scalars['String']; }; + /** columns and relationships of "QuestRepetition" */ export type QuestRepetitionQuestsArgs = { distinct_on?: InputMaybe>; @@ -1831,6 +1843,7 @@ export type QuestRepetitionQuestsArgs = { where?: InputMaybe; }; + /** columns and relationships of "QuestRepetition" */ export type QuestRepetitionQuests_AggregateArgs = { distinct_on?: InputMaybe>; @@ -1843,7 +1856,7 @@ export type QuestRepetitionQuests_AggregateArgs = { export enum QuestRepetition_ActionEnum { Personal = 'PERSONAL', Recurring = 'RECURRING', - Unique = 'UNIQUE', + Unique = 'UNIQUE' } /** aggregated selection of "QuestRepetition" */ @@ -1861,6 +1874,7 @@ export type QuestRepetition_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "QuestRepetition" */ export type QuestRepetition_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -1882,13 +1896,9 @@ export type QuestRepetition_Arr_Rel_Insert_Input = { /** Boolean expression to filter rows from the table "QuestRepetition". All fields are combined with a logical 'AND'. */ export type QuestRepetition_Bool_Exp = { - readonly _and?: InputMaybe< - ReadonlyArray> - >; + readonly _and?: InputMaybe>>; readonly _not?: InputMaybe; - readonly _or?: InputMaybe< - ReadonlyArray> - >; + readonly _or?: InputMaybe>>; readonly quests?: InputMaybe; readonly repetition?: InputMaybe; }; @@ -1896,13 +1906,13 @@ export type QuestRepetition_Bool_Exp = { /** unique or primary key constraints on table "QuestRepetition" */ export enum QuestRepetition_Constraint { /** unique or primary key constraint */ - QuestRepetitionPkey = 'QuestRepetition_pkey', + QuestRepetitionPkey = 'QuestRepetition_pkey' } export enum QuestRepetition_Enum { Personal = 'PERSONAL', Recurring = 'RECURRING', - Unique = 'UNIQUE', + Unique = 'UNIQUE' } /** expression to compare columns of type QuestRepetition_enum. All fields are combined with logical 'AND'. */ @@ -1978,7 +1988,7 @@ export type QuestRepetition_Pk_Columns_Input = { /** select columns of table "QuestRepetition" */ export enum QuestRepetition_Select_Column { /** column name */ - Repetition = 'repetition', + Repetition = 'repetition' } /** input type for updating data in table "QuestRepetition" */ @@ -1989,7 +1999,7 @@ export type QuestRepetition_Set_Input = { /** update columns of table "QuestRepetition" */ export enum QuestRepetition_Update_Column { /** column name */ - Repetition = 'repetition', + Repetition = 'repetition' } /** columns and relationships of "QuestStatus" */ @@ -2002,6 +2012,7 @@ export type QuestStatus = { readonly status: Scalars['String']; }; + /** columns and relationships of "QuestStatus" */ export type QuestStatusQuestsArgs = { distinct_on?: InputMaybe>; @@ -2011,6 +2022,7 @@ export type QuestStatusQuestsArgs = { where?: InputMaybe; }; + /** columns and relationships of "QuestStatus" */ export type QuestStatusQuests_AggregateArgs = { distinct_on?: InputMaybe>; @@ -2035,6 +2047,7 @@ export type QuestStatus_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "QuestStatus" */ export type QuestStatus_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2066,12 +2079,12 @@ export type QuestStatus_Bool_Exp = { /** unique or primary key constraints on table "QuestStatus" */ export enum QuestStatus_Constraint { /** unique or primary key constraint */ - QuestStatusPkey = 'QuestStatus_pkey', + QuestStatusPkey = 'QuestStatus_pkey' } export enum QuestStatus_Enum { Closed = 'CLOSED', - Open = 'OPEN', + Open = 'OPEN' } /** expression to compare columns of type QuestStatus_enum. All fields are combined with logical 'AND'. */ @@ -2147,7 +2160,7 @@ export type QuestStatus_Pk_Columns_Input = { /** select columns of table "QuestStatus" */ export enum QuestStatus_Select_Column { /** column name */ - Status = 'status', + Status = 'status' } /** input type for updating data in table "QuestStatus" */ @@ -2158,7 +2171,7 @@ export type QuestStatus_Set_Input = { /** update columns of table "QuestStatus" */ export enum QuestStatus_Update_Column { /** column name */ - Status = 'status', + Status = 'status' } export type SaveGuildLayoutResponse = { @@ -2194,6 +2207,7 @@ export type SkillCategory_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "SkillCategory" */ export type SkillCategory_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2224,7 +2238,7 @@ export type SkillCategory_Bool_Exp = { /** unique or primary key constraints on table "SkillCategory" */ export enum SkillCategory_Constraint { /** unique or primary key constraint */ - SkillCategoryPkey = 'SkillCategory_pkey', + SkillCategoryPkey = 'SkillCategory_pkey' } export enum SkillCategory_Enum { @@ -2233,7 +2247,7 @@ export enum SkillCategory_Enum { Dev = 'DEV', Engineering = 'ENGINEERING', Strategy = 'STRATEGY', - Technologies = 'TECHNOLOGIES', + Technologies = 'TECHNOLOGIES' } /** expression to compare columns of type SkillCategory_enum. All fields are combined with logical 'AND'. */ @@ -2307,7 +2321,7 @@ export type SkillCategory_Pk_Columns_Input = { /** select columns of table "SkillCategory" */ export enum SkillCategory_Select_Column { /** column name */ - Name = 'name', + Name = 'name' } /** input type for updating data in table "SkillCategory" */ @@ -2318,7 +2332,7 @@ export type SkillCategory_Set_Input = { /** update columns of table "SkillCategory" */ export enum SkillCategory_Update_Column { /** column name */ - Name = 'name', + Name = 'name' } export type SourceCredSyncOutput = { @@ -2413,6 +2427,7 @@ export type Balance_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "balance" */ export type Balance_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2471,7 +2486,7 @@ export enum Balance_Constraint { /** unique or primary key constraint */ BalancePkey = 'balance_pkey', /** unique or primary key constraint */ - BalanceTokenAddressPlayerAddressBlockHeightKey = 'balance_token_address_player_address_block_height_key', + BalanceTokenAddressPlayerAddressBlockHeightKey = 'balance_token_address_player_address_block_height_key' } /** input type for incrementing integer column in table "balance" */ @@ -2576,7 +2591,7 @@ export enum Balance_Select_Column { /** column name */ PlayerAddress = 'playerAddress', /** column name */ - TokenAddress = 'tokenAddress', + TokenAddress = 'tokenAddress' } /** input type for updating data in table "balance" */ @@ -2651,7 +2666,7 @@ export enum Balance_Update_Column { /** column name */ PlayerAddress = 'playerAddress', /** column name */ - TokenAddress = 'tokenAddress', + TokenAddress = 'tokenAddress' } /** aggregate var_pop on columns */ @@ -2710,6 +2725,7 @@ export type Dao = { readonly url?: Maybe; }; + /** columns and relationships of "dao" */ export type DaoPlayersArgs = { distinct_on?: InputMaybe>; @@ -2719,6 +2735,7 @@ export type DaoPlayersArgs = { where?: InputMaybe; }; + /** columns and relationships of "dao" */ export type DaoPlayers_AggregateArgs = { distinct_on?: InputMaybe>; @@ -2743,6 +2760,7 @@ export type Dao_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "dao" */ export type Dao_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2782,7 +2800,7 @@ export enum Dao_Constraint { /** unique or primary key constraint */ DaoContractAddressNetworkKey = 'dao_contract_address_network_key', /** unique or primary key constraint */ - DaoPkey = 'dao_pkey', + DaoPkey = 'dao_pkey' } /** input type for inserting data into table "dao" */ @@ -2905,6 +2923,7 @@ export type Dao_Player_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "dao_player" */ export type Dao_Player_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -2939,7 +2958,7 @@ export type Dao_Player_Bool_Exp = { /** unique or primary key constraints on table "dao_player" */ export enum Dao_Player_Constraint { /** unique or primary key constraint */ - DaoPlayerPkey = 'dao_player_pkey', + DaoPlayerPkey = 'dao_player_pkey' } /** input type for inserting data into table "dao_player" */ @@ -3021,7 +3040,7 @@ export enum Dao_Player_Select_Column { /** column name */ PlayerId = 'playerId', /** column name */ - Visible = 'visible', + Visible = 'visible' } /** input type for updating data in table "dao_player" */ @@ -3038,7 +3057,7 @@ export enum Dao_Player_Update_Column { /** column name */ PlayerId = 'playerId', /** column name */ - Visible = 'visible', + Visible = 'visible' } /** select columns of table "dao" */ @@ -3054,7 +3073,7 @@ export enum Dao_Select_Column { /** column name */ Network = 'network', /** column name */ - Url = 'url', + Url = 'url' } /** input type for updating data in table "dao" */ @@ -3080,7 +3099,7 @@ export enum Dao_Update_Column { /** column name */ Network = 'network', /** column name */ - Url = 'url', + Url = 'url' } /** expression to compare columns of type float8. All fields are combined with logical 'AND'. */ @@ -3138,6 +3157,7 @@ export type Guild = { readonly websiteUrl?: Maybe; }; + /** columns and relationships of "guild" */ export type GuildDaosArgs = { distinct_on?: InputMaybe>; @@ -3147,6 +3167,7 @@ export type GuildDaosArgs = { where?: InputMaybe; }; + /** columns and relationships of "guild" */ export type GuildDaos_AggregateArgs = { distinct_on?: InputMaybe>; @@ -3156,6 +3177,7 @@ export type GuildDaos_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "guild" */ export type GuildGuild_PlayersArgs = { distinct_on?: InputMaybe>; @@ -3165,6 +3187,7 @@ export type GuildGuild_PlayersArgs = { where?: InputMaybe; }; + /** columns and relationships of "guild" */ export type GuildGuild_Players_AggregateArgs = { distinct_on?: InputMaybe>; @@ -3174,6 +3197,7 @@ export type GuildGuild_Players_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "guild" */ export type GuildQuestsArgs = { distinct_on?: InputMaybe>; @@ -3183,6 +3207,7 @@ export type GuildQuestsArgs = { where?: InputMaybe; }; + /** columns and relationships of "guild" */ export type GuildQuests_AggregateArgs = { distinct_on?: InputMaybe>; @@ -3215,6 +3240,7 @@ export type Guild_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "guild" */ export type Guild_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3291,7 +3317,7 @@ export enum Guild_Constraint { /** unique or primary key constraint */ GuildDiscordIdKey = 'guild_discord_id_key', /** unique or primary key constraint */ - GuildSortPositionKey = 'guild_sort_position_key', + GuildSortPositionKey = 'guild_sort_position_key' } /** input type for incrementing integer column in table "guild" */ @@ -3380,6 +3406,7 @@ export type Guild_Metadata = { readonly player?: Maybe; }; + /** * Used to hold private information for guilds * @@ -3405,6 +3432,7 @@ export type Guild_Metadata_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "guild_metadata" */ export type Guild_Metadata_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3431,9 +3459,7 @@ export type Guild_Metadata_Arr_Rel_Insert_Input = { /** Boolean expression to filter rows from the table "guild_metadata". All fields are combined with a logical 'AND'. */ export type Guild_Metadata_Bool_Exp = { - readonly _and?: InputMaybe< - ReadonlyArray> - >; + readonly _and?: InputMaybe>>; readonly _not?: InputMaybe; readonly _or?: InputMaybe>>; readonly creatorId?: InputMaybe; @@ -3447,14 +3473,12 @@ export type Guild_Metadata_Bool_Exp = { /** unique or primary key constraints on table "guild_metadata" */ export enum Guild_Metadata_Constraint { /** unique or primary key constraint */ - GuildMetadataPkey = 'guild_metadata_pkey', + GuildMetadataPkey = 'guild_metadata_pkey' } /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */ export type Guild_Metadata_Delete_At_Path_Input = { - readonly discordMetadata?: InputMaybe< - ReadonlyArray> - >; + readonly discordMetadata?: InputMaybe>>; }; /** @@ -3561,7 +3585,7 @@ export enum Guild_Metadata_Select_Column { /** column name */ DiscordMetadata = 'discordMetadata', /** column name */ - GuildId = 'guildId', + GuildId = 'guildId' } /** input type for updating data in table "guild_metadata" */ @@ -3581,7 +3605,7 @@ export enum Guild_Metadata_Update_Column { /** column name */ DiscordMetadata = 'discordMetadata', /** column name */ - GuildId = 'guildId', + GuildId = 'guildId' } /** aggregate min on columns */ @@ -3700,6 +3724,7 @@ export type Guild_Player_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "guild_player" */ export type Guild_Player_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -3733,7 +3758,7 @@ export type Guild_Player_Bool_Exp = { /** unique or primary key constraints on table "guild_player" */ export enum Guild_Player_Constraint { /** unique or primary key constraint */ - GuildPlayerPkey = 'guild_player_pkey', + GuildPlayerPkey = 'guild_player_pkey' } /** input type for inserting data into table "guild_player" */ @@ -3811,7 +3836,7 @@ export enum Guild_Player_Select_Column { /** column name */ GuildId = 'guildId', /** column name */ - PlayerId = 'playerId', + PlayerId = 'playerId' } /** input type for updating data in table "guild_player" */ @@ -3825,7 +3850,7 @@ export enum Guild_Player_Update_Column { /** column name */ GuildId = 'guildId', /** column name */ - PlayerId = 'playerId', + PlayerId = 'playerId' } /** select columns of table "guild" */ @@ -3863,7 +3888,7 @@ export enum Guild_Select_Column { /** column name */ Type = 'type', /** column name */ - WebsiteUrl = 'websiteUrl', + WebsiteUrl = 'websiteUrl' } /** input type for updating data in table "guild" */ @@ -3966,7 +3991,7 @@ export enum Guild_Update_Column { /** column name */ Type = 'type', /** column name */ - WebsiteUrl = 'websiteUrl', + WebsiteUrl = 'websiteUrl' } /** aggregate var_pop on columns */ @@ -4063,6 +4088,7 @@ export type Me_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "me" */ export type Me_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -4132,7 +4158,7 @@ export enum Me_Select_Column { /** column name */ Id = 'id', /** column name */ - Username = 'username', + Username = 'username' } /** mutation root */ @@ -4379,9 +4405,7 @@ export type Mutation_Root = { /** perform the action: "saveGuildLayout" */ readonly saveGuildLayout?: Maybe; /** perform the action: "syncAllGuildDiscordMembers" */ - readonly syncAllGuildDiscordMembers?: Maybe< - ReadonlyArray> - >; + readonly syncAllGuildDiscordMembers?: Maybe>>; /** perform the action: "syncSourceCredAccounts" */ readonly syncSourceCredAccounts?: Maybe; /** perform the action: "updateExpiredIDXProfiles" */ @@ -4506,691 +4530,816 @@ export type Mutation_Root = { readonly update_xp_by_pk?: Maybe; }; + /** mutation root */ export type Mutation_RootAuthenticateDiscordGuildArgs = { code: Scalars['String']; }; + /** mutation root */ export type Mutation_RootCreateQuestArgs = { quest: CreateQuestInput; }; + /** mutation root */ export type Mutation_RootCreateQuestCompletionArgs = { questCompletion: CreateQuestCompletionInput; }; + /** mutation root */ export type Mutation_RootDelete_AccountTypeArgs = { where: AccountType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_AccountType_By_PkArgs = { type: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_ColorAspectArgs = { where: ColorAspect_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_ColorAspect_By_PkArgs = { mask: Scalars['Int']; }; + /** mutation root */ export type Mutation_RootDelete_ExplorerTypeArgs = { where: ExplorerType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_ExplorerType_By_PkArgs = { id: Scalars['Int']; }; + /** mutation root */ export type Mutation_RootDelete_GuildStatusArgs = { where: GuildStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_GuildStatus_By_PkArgs = { status: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_GuildTypeArgs = { where: GuildType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_GuildType_By_PkArgs = { name: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_PlayerRankArgs = { where: PlayerRank_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_PlayerRank_By_PkArgs = { rank: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_PlayerRoleArgs = { where: PlayerRole_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_PlayerRole_By_PkArgs = { role: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_QuestCompletionStatusArgs = { where: QuestCompletionStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_QuestCompletionStatus_By_PkArgs = { status: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_QuestRepetitionArgs = { where: QuestRepetition_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_QuestRepetition_By_PkArgs = { repetition: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_QuestStatusArgs = { where: QuestStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_QuestStatus_By_PkArgs = { status: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_SkillCategoryArgs = { where: SkillCategory_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_SkillCategory_By_PkArgs = { name: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_BalanceArgs = { where: Balance_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Balance_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_DaoArgs = { where: Dao_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Dao_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Dao_PlayerArgs = { where: Dao_Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Dao_Player_By_PkArgs = { daoId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_GuildArgs = { where: Guild_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Guild_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Guild_MetadataArgs = { where: Guild_Metadata_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Guild_Metadata_By_PkArgs = { guildId: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Guild_PlayerArgs = { where: Guild_Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Guild_Player_By_PkArgs = { guildId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_PlayerArgs = { where: Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Player_AccountArgs = { where: Player_Account_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Player_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Player_RoleArgs = { where: Player_Role_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Player_Role_By_PkArgs = { player_id: Scalars['uuid']; role: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_Player_SkillArgs = { where: Player_Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Player_Skill_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_ProfileArgs = { where: Profile_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Profile_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_QuestArgs = { where: Quest_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Quest_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Quest_CompletionArgs = { where: Quest_Completion_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Quest_Completion_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_Quest_RoleArgs = { where: Quest_Role_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Quest_Role_By_PkArgs = { questId: Scalars['uuid']; role: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_Quest_SkillArgs = { where: Quest_Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Quest_Skill_By_PkArgs = { questId: Scalars['uuid']; skillId: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_SkillArgs = { where: Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Skill_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootDelete_TokenArgs = { where: Token_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Token_By_PkArgs = { address: Scalars['String']; }; + /** mutation root */ export type Mutation_RootDelete_XpArgs = { where: Xp_Bool_Exp; }; + /** mutation root */ export type Mutation_RootDelete_Xp_By_PkArgs = { id: Scalars['uuid']; }; + /** mutation root */ export type Mutation_RootInsert_AccountTypeArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_AccountType_OneArgs = { object: AccountType_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_ColorAspectArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_ColorAspect_OneArgs = { object: ColorAspect_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_ExplorerTypeArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_ExplorerType_OneArgs = { object: ExplorerType_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_GuildStatusArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_GuildStatus_OneArgs = { object: GuildStatus_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_GuildTypeArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_GuildType_OneArgs = { object: GuildType_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_PlayerRankArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_PlayerRank_OneArgs = { object: PlayerRank_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_PlayerRoleArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_PlayerRole_OneArgs = { object: PlayerRole_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestCompletionStatusArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestCompletionStatus_OneArgs = { object: QuestCompletionStatus_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestRepetitionArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestRepetition_OneArgs = { object: QuestRepetition_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestStatusArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestStatus_OneArgs = { object: QuestStatus_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_SkillCategoryArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_SkillCategory_OneArgs = { object: SkillCategory_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_BalanceArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Balance_OneArgs = { object: Balance_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_DaoArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Dao_OneArgs = { object: Dao_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Dao_PlayerArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Dao_Player_OneArgs = { object: Dao_Player_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_GuildArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Guild_MetadataArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Guild_Metadata_OneArgs = { object: Guild_Metadata_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Guild_OneArgs = { object: Guild_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Guild_PlayerArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Guild_Player_OneArgs = { object: Guild_Player_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_PlayerArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_AccountArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_Account_OneArgs = { object: Player_Account_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_OneArgs = { object: Player_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_RoleArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_Role_OneArgs = { object: Player_Role_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_SkillArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Player_Skill_OneArgs = { object: Player_Skill_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_ProfileArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Profile_OneArgs = { object: Profile_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_QuestArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_CompletionArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_Completion_OneArgs = { object: Quest_Completion_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_OneArgs = { object: Quest_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_RoleArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_Role_OneArgs = { object: Quest_Role_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_SkillArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Quest_Skill_OneArgs = { object: Quest_Skill_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_SkillArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Skill_OneArgs = { object: Skill_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_TokenArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Token_OneArgs = { object: Token_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_XpArgs = { objects: ReadonlyArray; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootInsert_Xp_OneArgs = { object: Xp_Insert_Input; on_conflict?: InputMaybe; }; + /** mutation root */ export type Mutation_RootSaveGuildInformationArgs = { guildInformation: GuildInfoInput; }; + /** mutation root */ export type Mutation_RootSaveGuildLayoutArgs = { guildLayoutInfo: GuildLayoutInfoInput; }; + /** mutation root */ export type Mutation_RootUpdateIdxProfileArgs = { playerId?: InputMaybe; }; + /** mutation root */ export type Mutation_RootUpdateQuestCompletionArgs = { updateData: UpdateQuestCompletionInput; }; + /** mutation root */ export type Mutation_RootUpdate_AccountTypeArgs = { _set?: InputMaybe; where: AccountType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_AccountType_By_PkArgs = { _set?: InputMaybe; pk_columns: AccountType_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_ColorAspectArgs = { _inc?: InputMaybe; @@ -5198,6 +5347,7 @@ export type Mutation_RootUpdate_ColorAspectArgs = { where: ColorAspect_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_ColorAspect_By_PkArgs = { _inc?: InputMaybe; @@ -5205,6 +5355,7 @@ export type Mutation_RootUpdate_ColorAspect_By_PkArgs = { pk_columns: ColorAspect_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_ExplorerTypeArgs = { _inc?: InputMaybe; @@ -5212,6 +5363,7 @@ export type Mutation_RootUpdate_ExplorerTypeArgs = { where: ExplorerType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_ExplorerType_By_PkArgs = { _inc?: InputMaybe; @@ -5219,102 +5371,119 @@ export type Mutation_RootUpdate_ExplorerType_By_PkArgs = { pk_columns: ExplorerType_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_GuildStatusArgs = { _set?: InputMaybe; where: GuildStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_GuildStatus_By_PkArgs = { _set?: InputMaybe; pk_columns: GuildStatus_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_GuildTypeArgs = { _set?: InputMaybe; where: GuildType_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_GuildType_By_PkArgs = { _set?: InputMaybe; pk_columns: GuildType_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_PlayerRankArgs = { _set?: InputMaybe; where: PlayerRank_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_PlayerRank_By_PkArgs = { _set?: InputMaybe; pk_columns: PlayerRank_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_PlayerRoleArgs = { _set?: InputMaybe; where: PlayerRole_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_PlayerRole_By_PkArgs = { _set?: InputMaybe; pk_columns: PlayerRole_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_QuestCompletionStatusArgs = { _set?: InputMaybe; where: QuestCompletionStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_QuestCompletionStatus_By_PkArgs = { _set?: InputMaybe; pk_columns: QuestCompletionStatus_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_QuestRepetitionArgs = { _set?: InputMaybe; where: QuestRepetition_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_QuestRepetition_By_PkArgs = { _set?: InputMaybe; pk_columns: QuestRepetition_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_QuestStatusArgs = { _set?: InputMaybe; where: QuestStatus_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_QuestStatus_By_PkArgs = { _set?: InputMaybe; pk_columns: QuestStatus_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_SkillCategoryArgs = { _set?: InputMaybe; where: SkillCategory_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_SkillCategory_By_PkArgs = { _set?: InputMaybe; pk_columns: SkillCategory_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_BalanceArgs = { _inc?: InputMaybe; @@ -5322,6 +5491,7 @@ export type Mutation_RootUpdate_BalanceArgs = { where: Balance_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Balance_By_PkArgs = { _inc?: InputMaybe; @@ -5329,30 +5499,35 @@ export type Mutation_RootUpdate_Balance_By_PkArgs = { pk_columns: Balance_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_DaoArgs = { _set?: InputMaybe; where: Dao_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Dao_By_PkArgs = { _set?: InputMaybe; pk_columns: Dao_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Dao_PlayerArgs = { _set?: InputMaybe; where: Dao_Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Dao_Player_By_PkArgs = { _set?: InputMaybe; pk_columns: Dao_Player_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_GuildArgs = { _inc?: InputMaybe; @@ -5360,6 +5535,7 @@ export type Mutation_RootUpdate_GuildArgs = { where: Guild_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Guild_By_PkArgs = { _inc?: InputMaybe; @@ -5367,6 +5543,7 @@ export type Mutation_RootUpdate_Guild_By_PkArgs = { pk_columns: Guild_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Guild_MetadataArgs = { _append?: InputMaybe; @@ -5378,6 +5555,7 @@ export type Mutation_RootUpdate_Guild_MetadataArgs = { where: Guild_Metadata_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Guild_Metadata_By_PkArgs = { _append?: InputMaybe; @@ -5389,18 +5567,21 @@ export type Mutation_RootUpdate_Guild_Metadata_By_PkArgs = { pk_columns: Guild_Metadata_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Guild_PlayerArgs = { _set?: InputMaybe; where: Guild_Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Guild_Player_By_PkArgs = { _set?: InputMaybe; pk_columns: Guild_Player_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_PlayerArgs = { _inc?: InputMaybe; @@ -5408,12 +5589,14 @@ export type Mutation_RootUpdate_PlayerArgs = { where: Player_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Player_AccountArgs = { _set?: InputMaybe; where: Player_Account_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Player_By_PkArgs = { _inc?: InputMaybe; @@ -5421,6 +5604,7 @@ export type Mutation_RootUpdate_Player_By_PkArgs = { pk_columns: Player_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Player_RoleArgs = { _inc?: InputMaybe; @@ -5428,6 +5612,7 @@ export type Mutation_RootUpdate_Player_RoleArgs = { where: Player_Role_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Player_Role_By_PkArgs = { _inc?: InputMaybe; @@ -5435,6 +5620,7 @@ export type Mutation_RootUpdate_Player_Role_By_PkArgs = { pk_columns: Player_Role_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Player_SkillArgs = { _inc?: InputMaybe; @@ -5442,6 +5628,7 @@ export type Mutation_RootUpdate_Player_SkillArgs = { where: Player_Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Player_Skill_By_PkArgs = { _inc?: InputMaybe; @@ -5449,6 +5636,7 @@ export type Mutation_RootUpdate_Player_Skill_By_PkArgs = { pk_columns: Player_Skill_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_ProfileArgs = { _inc?: InputMaybe; @@ -5456,6 +5644,7 @@ export type Mutation_RootUpdate_ProfileArgs = { where: Profile_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Profile_By_PkArgs = { _inc?: InputMaybe; @@ -5463,6 +5652,7 @@ export type Mutation_RootUpdate_Profile_By_PkArgs = { pk_columns: Profile_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_QuestArgs = { _inc?: InputMaybe; @@ -5470,6 +5660,7 @@ export type Mutation_RootUpdate_QuestArgs = { where: Quest_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_By_PkArgs = { _inc?: InputMaybe; @@ -5477,18 +5668,21 @@ export type Mutation_RootUpdate_Quest_By_PkArgs = { pk_columns: Quest_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_CompletionArgs = { _set?: InputMaybe; where: Quest_Completion_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_Completion_By_PkArgs = { _set?: InputMaybe; pk_columns: Quest_Completion_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_RoleArgs = { _inc?: InputMaybe; @@ -5496,6 +5690,7 @@ export type Mutation_RootUpdate_Quest_RoleArgs = { where: Quest_Role_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_Role_By_PkArgs = { _inc?: InputMaybe; @@ -5503,30 +5698,35 @@ export type Mutation_RootUpdate_Quest_Role_By_PkArgs = { pk_columns: Quest_Role_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_SkillArgs = { _set?: InputMaybe; where: Quest_Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Quest_Skill_By_PkArgs = { _set?: InputMaybe; pk_columns: Quest_Skill_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_SkillArgs = { _set?: InputMaybe; where: Skill_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Skill_By_PkArgs = { _set?: InputMaybe; pk_columns: Skill_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_TokenArgs = { _inc?: InputMaybe; @@ -5534,6 +5734,7 @@ export type Mutation_RootUpdate_TokenArgs = { where: Token_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Token_By_PkArgs = { _inc?: InputMaybe; @@ -5541,6 +5742,7 @@ export type Mutation_RootUpdate_Token_By_PkArgs = { pk_columns: Token_Pk_Columns_Input; }; + /** mutation root */ export type Mutation_RootUpdate_XpArgs = { _inc?: InputMaybe; @@ -5548,6 +5750,7 @@ export type Mutation_RootUpdate_XpArgs = { where: Xp_Bool_Exp; }; + /** mutation root */ export type Mutation_RootUpdate_Xp_By_PkArgs = { _inc?: InputMaybe; @@ -5581,7 +5784,7 @@ export enum Order_By { /** in the descending order, nulls first */ DescNullsFirst = 'desc_nulls_first', /** in the descending order, nulls last */ - DescNullsLast = 'desc_nulls_last', + DescNullsLast = 'desc_nulls_last' } /** columns and relationships of "player" */ @@ -5640,6 +5843,7 @@ export type Player = { readonly xps_aggregate: Xp_Aggregate; }; + /** columns and relationships of "player" */ export type PlayerAccountsArgs = { distinct_on?: InputMaybe>; @@ -5649,6 +5853,7 @@ export type PlayerAccountsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerAccounts_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5658,6 +5863,7 @@ export type PlayerAccounts_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerDaosArgs = { distinct_on?: InputMaybe>; @@ -5667,6 +5873,7 @@ export type PlayerDaosArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerDaos_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5676,6 +5883,7 @@ export type PlayerDaos_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerGuildsArgs = { distinct_on?: InputMaybe>; @@ -5685,6 +5893,7 @@ export type PlayerGuildsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerGuilds_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5694,6 +5903,7 @@ export type PlayerGuilds_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerQuest_CompletionsArgs = { distinct_on?: InputMaybe>; @@ -5703,6 +5913,7 @@ export type PlayerQuest_CompletionsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerQuest_Completions_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5712,6 +5923,7 @@ export type PlayerQuest_Completions_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerQuestsArgs = { distinct_on?: InputMaybe>; @@ -5721,6 +5933,7 @@ export type PlayerQuestsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerQuests_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5730,6 +5943,7 @@ export type PlayerQuests_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerRolesArgs = { distinct_on?: InputMaybe>; @@ -5739,6 +5953,7 @@ export type PlayerRolesArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerRoles_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5748,6 +5963,7 @@ export type PlayerRoles_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerSkillsArgs = { distinct_on?: InputMaybe>; @@ -5757,6 +5973,7 @@ export type PlayerSkillsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerSkills_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5766,6 +5983,7 @@ export type PlayerSkills_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerXpsArgs = { distinct_on?: InputMaybe>; @@ -5775,6 +5993,7 @@ export type PlayerXpsArgs = { where?: InputMaybe; }; + /** columns and relationships of "player" */ export type PlayerXps_AggregateArgs = { distinct_on?: InputMaybe>; @@ -5809,6 +6028,7 @@ export type Player_Account_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "player_account" */ export type Player_Account_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -5831,9 +6051,7 @@ export type Player_Account_Arr_Rel_Insert_Input = { /** Boolean expression to filter rows from the table "player_account". All fields are combined with a logical 'AND'. */ export type Player_Account_Bool_Exp = { readonly Player?: InputMaybe; - readonly _and?: InputMaybe< - ReadonlyArray> - >; + readonly _and?: InputMaybe>>; readonly _not?: InputMaybe; readonly _or?: InputMaybe>>; readonly identifier?: InputMaybe; @@ -5844,7 +6062,7 @@ export type Player_Account_Bool_Exp = { /** unique or primary key constraints on table "player_account" */ export enum Player_Account_Constraint { /** unique or primary key constraint */ - AccountIdentifierTypeKey = 'Account_identifier_type_key', + AccountIdentifierTypeKey = 'Account_identifier_type_key' } /** input type for inserting data into table "player_account" */ @@ -5918,7 +6136,7 @@ export enum Player_Account_Select_Column { /** column name */ PlayerId = 'playerId', /** column name */ - Type = 'type', + Type = 'type' } /** input type for updating data in table "player_account" */ @@ -5935,7 +6153,7 @@ export enum Player_Account_Update_Column { /** column name */ PlayerId = 'playerId', /** column name */ - Type = 'type', + Type = 'type' } /** aggregated selection of "player" */ @@ -5961,6 +6179,7 @@ export type Player_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "player" */ export type Player_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -6035,7 +6254,7 @@ export enum Player_Constraint { /** unique or primary key constraint */ PlayerPkey = 'Player_pkey', /** unique or primary key constraint */ - PlayerDiscordIdKey = 'player_discord_id_key', + PlayerDiscordIdKey = 'player_discord_id_key' } /** input type for incrementing integer column in table "player" */ @@ -6210,6 +6429,7 @@ export type Player_Role_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "player_role" */ export type Player_Role_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -6262,7 +6482,7 @@ export type Player_Role_Bool_Exp = { /** unique or primary key constraints on table "player_role" */ export enum Player_Role_Constraint { /** unique or primary key constraint */ - PlayerRolePkey = 'player_role_pkey', + PlayerRolePkey = 'player_role_pkey' } /** input type for incrementing integer column in table "player_role" */ @@ -6351,7 +6571,7 @@ export enum Player_Role_Select_Column { /** column name */ Rank = 'rank', /** column name */ - Role = 'role', + Role = 'role' } /** input type for updating data in table "player_role" */ @@ -6412,7 +6632,7 @@ export enum Player_Role_Update_Column { /** column name */ Rank = 'rank', /** column name */ - Role = 'role', + Role = 'role' } /** aggregate var_pop on columns */ @@ -6471,7 +6691,7 @@ export enum Player_Select_Column { /** column name */ TotalXp = 'totalXP', /** column name */ - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } /** input type for updating data in table "player" */ @@ -6523,6 +6743,7 @@ export type Player_Skill_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "player_skill" */ export type Player_Skill_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -6578,7 +6799,7 @@ export enum Player_Skill_Constraint { /** unique or primary key constraint */ PlayerSkillPkey = 'player_skill_pkey', /** unique or primary key constraint */ - PlayerSkillPlayerIdSkillIdKey = 'player_skill_player_id_skill_id_key', + PlayerSkillPlayerIdSkillIdKey = 'player_skill_player_id_skill_id_key' } /** input type for incrementing integer column in table "player_skill" */ @@ -6674,7 +6895,7 @@ export enum Player_Skill_Select_Column { /** column name */ Rank = 'rank', /** column name */ - SkillId = 'skill_id', + SkillId = 'skill_id' } /** input type for updating data in table "player_skill" */ @@ -6738,7 +6959,7 @@ export enum Player_Skill_Update_Column { /** column name */ Rank = 'rank', /** column name */ - SkillId = 'skill_id', + SkillId = 'skill_id' } /** aggregate var_pop on columns */ @@ -6849,7 +7070,7 @@ export enum Player_Update_Column { /** column name */ TotalXp = 'totalXP', /** column name */ - UpdatedAt = 'updatedAt', + UpdatedAt = 'updatedAt' } /** aggregate var_pop on columns */ @@ -6944,6 +7165,7 @@ export type Profile_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "profile" */ export type Profile_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -7024,7 +7246,7 @@ export enum Profile_Constraint { /** unique or primary key constraint */ ProfileUsernameKey = 'profile_username_key', /** unique or primary key constraint */ - UsernameInsensitiveUniqueIdx = 'username_insensitive_unique_idx', + UsernameInsensitiveUniqueIdx = 'username_insensitive_unique_idx' } /** input type for incrementing integer column in table "profile" */ @@ -7245,7 +7467,7 @@ export enum Profile_Select_Column { /** column name */ Username = 'username', /** column name */ - Website = 'website', + Website = 'website' } /** input type for updating data in table "profile" */ @@ -7362,7 +7584,7 @@ export enum Profile_Update_Column { /** column name */ Username = 'username', /** column name */ - Website = 'website', + Website = 'website' } /** aggregate var_pop on columns */ @@ -7494,9 +7716,7 @@ export type Query_Root = { readonly getBrightIdStatus?: Maybe; readonly getDaoHausMemberships: ReadonlyArray; readonly getDiscordServerMemberRoles: ReadonlyArray; - readonly getGuildDiscordAnnouncements?: Maybe< - ReadonlyArray - >; + readonly getGuildDiscordAnnouncements?: Maybe>; readonly getGuildDiscordRoles: ReadonlyArray; readonly getPSeedInfo?: Maybe; readonly getTokenBalances?: Maybe; @@ -7597,6 +7817,7 @@ export type Query_Root = { readonly xp_by_pk?: Maybe; }; + /** query root */ export type Query_RootAccountTypeArgs = { distinct_on?: InputMaybe>; @@ -7606,6 +7827,7 @@ export type Query_RootAccountTypeArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootAccountType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7615,11 +7837,13 @@ export type Query_RootAccountType_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootAccountType_By_PkArgs = { type: Scalars['String']; }; + /** query root */ export type Query_RootColorAspectArgs = { distinct_on?: InputMaybe>; @@ -7629,6 +7853,7 @@ export type Query_RootColorAspectArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootColorAspect_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7638,11 +7863,13 @@ export type Query_RootColorAspect_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootColorAspect_By_PkArgs = { mask: Scalars['Int']; }; + /** query root */ export type Query_RootExplorerTypeArgs = { distinct_on?: InputMaybe>; @@ -7652,6 +7879,7 @@ export type Query_RootExplorerTypeArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootExplorerType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7661,11 +7889,13 @@ export type Query_RootExplorerType_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootExplorerType_By_PkArgs = { id: Scalars['Int']; }; + /** query root */ export type Query_RootGuildStatusArgs = { distinct_on?: InputMaybe>; @@ -7675,6 +7905,7 @@ export type Query_RootGuildStatusArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuildStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7684,11 +7915,13 @@ export type Query_RootGuildStatus_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuildStatus_By_PkArgs = { status: Scalars['String']; }; + /** query root */ export type Query_RootGuildTypeArgs = { distinct_on?: InputMaybe>; @@ -7698,6 +7931,7 @@ export type Query_RootGuildTypeArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuildType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7707,11 +7941,13 @@ export type Query_RootGuildType_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuildType_By_PkArgs = { name: Scalars['String']; }; + /** query root */ export type Query_RootPlayerRankArgs = { distinct_on?: InputMaybe>; @@ -7721,6 +7957,7 @@ export type Query_RootPlayerRankArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayerRank_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7730,11 +7967,13 @@ export type Query_RootPlayerRank_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayerRank_By_PkArgs = { rank: Scalars['String']; }; + /** query root */ export type Query_RootPlayerRoleArgs = { distinct_on?: InputMaybe>; @@ -7744,6 +7983,7 @@ export type Query_RootPlayerRoleArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayerRole_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7753,11 +7993,13 @@ export type Query_RootPlayerRole_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayerRole_By_PkArgs = { role: Scalars['String']; }; + /** query root */ export type Query_RootQuestCompletionStatusArgs = { distinct_on?: InputMaybe>; @@ -7767,6 +8009,7 @@ export type Query_RootQuestCompletionStatusArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestCompletionStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7776,11 +8019,13 @@ export type Query_RootQuestCompletionStatus_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestCompletionStatus_By_PkArgs = { status: Scalars['String']; }; + /** query root */ export type Query_RootQuestRepetitionArgs = { distinct_on?: InputMaybe>; @@ -7790,6 +8035,7 @@ export type Query_RootQuestRepetitionArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestRepetition_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7799,11 +8045,13 @@ export type Query_RootQuestRepetition_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestRepetition_By_PkArgs = { repetition: Scalars['String']; }; + /** query root */ export type Query_RootQuestStatusArgs = { distinct_on?: InputMaybe>; @@ -7813,6 +8061,7 @@ export type Query_RootQuestStatusArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7822,11 +8071,13 @@ export type Query_RootQuestStatus_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuestStatus_By_PkArgs = { status: Scalars['String']; }; + /** query root */ export type Query_RootSkillCategoryArgs = { distinct_on?: InputMaybe>; @@ -7836,6 +8087,7 @@ export type Query_RootSkillCategoryArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootSkillCategory_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7845,11 +8097,13 @@ export type Query_RootSkillCategory_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootSkillCategory_By_PkArgs = { name: Scalars['String']; }; + /** query root */ export type Query_RootBalanceArgs = { distinct_on?: InputMaybe>; @@ -7859,6 +8113,7 @@ export type Query_RootBalanceArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootBalance_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7868,11 +8123,13 @@ export type Query_RootBalance_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootBalance_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootDaoArgs = { distinct_on?: InputMaybe>; @@ -7882,6 +8139,7 @@ export type Query_RootDaoArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootDao_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7891,11 +8149,13 @@ export type Query_RootDao_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootDao_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootDao_PlayerArgs = { distinct_on?: InputMaybe>; @@ -7905,6 +8165,7 @@ export type Query_RootDao_PlayerArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootDao_Player_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7914,48 +8175,57 @@ export type Query_RootDao_Player_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootDao_Player_By_PkArgs = { daoId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** query root */ export type Query_RootGetBrightIdStatusArgs = { contextId?: InputMaybe; }; + /** query root */ export type Query_RootGetDaoHausMembershipsArgs = { memberAddress?: InputMaybe; }; + /** query root */ export type Query_RootGetDiscordServerMemberRolesArgs = { guildId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** query root */ export type Query_RootGetGuildDiscordAnnouncementsArgs = { guildDiscordId?: InputMaybe; }; + /** query root */ export type Query_RootGetGuildDiscordRolesArgs = { guildDiscordId?: InputMaybe; }; + /** query root */ export type Query_RootGetTokenBalancesArgs = { address?: InputMaybe; }; + /** query root */ export type Query_RootGetTopPSeedHoldersArgs = { limit?: InputMaybe; }; + /** query root */ export type Query_RootGuildArgs = { distinct_on?: InputMaybe>; @@ -7965,6 +8235,7 @@ export type Query_RootGuildArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7974,11 +8245,13 @@ export type Query_RootGuild_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootGuild_MetadataArgs = { distinct_on?: InputMaybe>; @@ -7988,6 +8261,7 @@ export type Query_RootGuild_MetadataArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_Metadata_AggregateArgs = { distinct_on?: InputMaybe>; @@ -7997,11 +8271,13 @@ export type Query_RootGuild_Metadata_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_Metadata_By_PkArgs = { guildId: Scalars['uuid']; }; + /** query root */ export type Query_RootGuild_PlayerArgs = { distinct_on?: InputMaybe>; @@ -8011,6 +8287,7 @@ export type Query_RootGuild_PlayerArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_Player_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8020,12 +8297,14 @@ export type Query_RootGuild_Player_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootGuild_Player_By_PkArgs = { guildId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** query root */ export type Query_RootMeArgs = { distinct_on?: InputMaybe>; @@ -8035,6 +8314,7 @@ export type Query_RootMeArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootMe_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8044,6 +8324,7 @@ export type Query_RootMe_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayerArgs = { distinct_on?: InputMaybe>; @@ -8053,6 +8334,7 @@ export type Query_RootPlayerArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_AccountArgs = { distinct_on?: InputMaybe>; @@ -8062,6 +8344,7 @@ export type Query_RootPlayer_AccountArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_Account_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8071,6 +8354,7 @@ export type Query_RootPlayer_Account_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8080,11 +8364,13 @@ export type Query_RootPlayer_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootPlayer_RoleArgs = { distinct_on?: InputMaybe>; @@ -8094,6 +8380,7 @@ export type Query_RootPlayer_RoleArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_Role_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8103,12 +8390,14 @@ export type Query_RootPlayer_Role_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_Role_By_PkArgs = { player_id: Scalars['uuid']; role: Scalars['String']; }; + /** query root */ export type Query_RootPlayer_SkillArgs = { distinct_on?: InputMaybe>; @@ -8118,6 +8407,7 @@ export type Query_RootPlayer_SkillArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_Skill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8127,11 +8417,13 @@ export type Query_RootPlayer_Skill_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootPlayer_Skill_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootProfileArgs = { distinct_on?: InputMaybe>; @@ -8141,6 +8433,7 @@ export type Query_RootProfileArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootProfile_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8150,11 +8443,13 @@ export type Query_RootProfile_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootProfile_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootQuestArgs = { distinct_on?: InputMaybe>; @@ -8164,6 +8459,7 @@ export type Query_RootQuestArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8173,11 +8469,13 @@ export type Query_RootQuest_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootQuest_CompletionArgs = { distinct_on?: InputMaybe>; @@ -8187,6 +8485,7 @@ export type Query_RootQuest_CompletionArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Completion_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8196,11 +8495,13 @@ export type Query_RootQuest_Completion_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Completion_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootQuest_RoleArgs = { distinct_on?: InputMaybe>; @@ -8210,6 +8511,7 @@ export type Query_RootQuest_RoleArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Role_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8219,12 +8521,14 @@ export type Query_RootQuest_Role_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Role_By_PkArgs = { questId: Scalars['uuid']; role: Scalars['String']; }; + /** query root */ export type Query_RootQuest_SkillArgs = { distinct_on?: InputMaybe>; @@ -8234,6 +8538,7 @@ export type Query_RootQuest_SkillArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Skill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8243,12 +8548,14 @@ export type Query_RootQuest_Skill_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootQuest_Skill_By_PkArgs = { questId: Scalars['uuid']; skillId: Scalars['uuid']; }; + /** query root */ export type Query_RootSkillArgs = { distinct_on?: InputMaybe>; @@ -8258,6 +8565,7 @@ export type Query_RootSkillArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootSkill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8267,11 +8575,13 @@ export type Query_RootSkill_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootSkill_By_PkArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootTokenArgs = { distinct_on?: InputMaybe>; @@ -8281,6 +8591,7 @@ export type Query_RootTokenArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootToken_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8290,16 +8601,19 @@ export type Query_RootToken_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootToken_By_PkArgs = { address: Scalars['String']; }; + /** query root */ export type Query_RootUpdateIdxProfileArgs = { id: Scalars['uuid']; }; + /** query root */ export type Query_RootXpArgs = { distinct_on?: InputMaybe>; @@ -8309,6 +8623,7 @@ export type Query_RootXpArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootXp_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8318,6 +8633,7 @@ export type Query_RootXp_AggregateArgs = { where?: InputMaybe; }; + /** query root */ export type Query_RootXp_By_PkArgs = { id: Scalars['uuid']; @@ -8359,6 +8675,7 @@ export type Quest = { readonly title: Scalars['String']; }; + /** columns and relationships of "quest" */ export type QuestQuest_CompletionsArgs = { distinct_on?: InputMaybe>; @@ -8368,6 +8685,7 @@ export type QuestQuest_CompletionsArgs = { where?: InputMaybe; }; + /** columns and relationships of "quest" */ export type QuestQuest_Completions_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8377,6 +8695,7 @@ export type QuestQuest_Completions_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "quest" */ export type QuestQuest_RolesArgs = { distinct_on?: InputMaybe>; @@ -8386,6 +8705,7 @@ export type QuestQuest_RolesArgs = { where?: InputMaybe; }; + /** columns and relationships of "quest" */ export type QuestQuest_Roles_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8395,6 +8715,7 @@ export type QuestQuest_Roles_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "quest" */ export type QuestQuest_SkillsArgs = { distinct_on?: InputMaybe>; @@ -8404,6 +8725,7 @@ export type QuestQuest_SkillsArgs = { where?: InputMaybe; }; + /** columns and relationships of "quest" */ export type QuestQuest_Skills_AggregateArgs = { distinct_on?: InputMaybe>; @@ -8436,6 +8758,7 @@ export type Quest_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "quest" */ export type Quest_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -8534,6 +8857,7 @@ export type Quest_Completion_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "quest_completion" */ export type Quest_Completion_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -8556,13 +8880,9 @@ export type Quest_Completion_Arr_Rel_Insert_Input = { /** Boolean expression to filter rows from the table "quest_completion". All fields are combined with a logical 'AND'. */ export type Quest_Completion_Bool_Exp = { readonly QuestCompletionStatus?: InputMaybe; - readonly _and?: InputMaybe< - ReadonlyArray> - >; + readonly _and?: InputMaybe>>; readonly _not?: InputMaybe; - readonly _or?: InputMaybe< - ReadonlyArray> - >; + readonly _or?: InputMaybe>>; readonly completed?: InputMaybe; readonly completedByPlayerId?: InputMaybe; readonly id?: InputMaybe; @@ -8578,7 +8898,7 @@ export type Quest_Completion_Bool_Exp = { /** unique or primary key constraints on table "quest_completion" */ export enum Quest_Completion_Constraint { /** unique or primary key constraint */ - QuestCompletionPkey = 'quest_completion_pkey', + QuestCompletionPkey = 'quest_completion_pkey' } /** input type for inserting data into table "quest_completion" */ @@ -8695,7 +9015,7 @@ export enum Quest_Completion_Select_Column { /** column name */ SubmissionText = 'submissionText', /** column name */ - SubmittedAt = 'submittedAt', + SubmittedAt = 'submittedAt' } /** input type for updating data in table "quest_completion" */ @@ -8724,13 +9044,13 @@ export enum Quest_Completion_Update_Column { /** column name */ SubmissionText = 'submissionText', /** column name */ - SubmittedAt = 'submittedAt', + SubmittedAt = 'submittedAt' } /** unique or primary key constraints on table "quest" */ export enum Quest_Constraint { /** unique or primary key constraint */ - QuestPkey = 'quest_pkey', + QuestPkey = 'quest_pkey' } /** input type for incrementing integer column in table "quest" */ @@ -8898,6 +9218,7 @@ export type Quest_Role_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "quest_role" */ export type Quest_Role_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -8951,7 +9272,7 @@ export type Quest_Role_Bool_Exp = { /** unique or primary key constraints on table "quest_role" */ export enum Quest_Role_Constraint { /** unique or primary key constraint */ - QuestRolePkey = 'quest_role_pkey', + QuestRolePkey = 'quest_role_pkey' } /** input type for incrementing integer column in table "quest_role" */ @@ -9042,7 +9363,7 @@ export enum Quest_Role_Select_Column { /** column name */ Rank = 'rank', /** column name */ - Role = 'role', + Role = 'role' } /** input type for updating data in table "quest_role" */ @@ -9103,7 +9424,7 @@ export enum Quest_Role_Update_Column { /** column name */ Rank = 'rank', /** column name */ - Role = 'role', + Role = 'role' } /** aggregate var_pop on columns */ @@ -9162,7 +9483,7 @@ export enum Quest_Select_Column { /** column name */ Status = 'status', /** column name */ - Title = 'title', + Title = 'title' } /** input type for updating data in table "quest" */ @@ -9206,6 +9527,7 @@ export type Quest_Skill_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "quest_skill" */ export type Quest_Skill_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9239,7 +9561,7 @@ export type Quest_Skill_Bool_Exp = { /** unique or primary key constraints on table "quest_skill" */ export enum Quest_Skill_Constraint { /** unique or primary key constraint */ - QuestSkillPkey = 'quest_skill_pkey', + QuestSkillPkey = 'quest_skill_pkey' } /** input type for inserting data into table "quest_skill" */ @@ -9317,7 +9639,7 @@ export enum Quest_Skill_Select_Column { /** column name */ QuestId = 'questId', /** column name */ - SkillId = 'skillId', + SkillId = 'skillId' } /** input type for updating data in table "quest_skill" */ @@ -9331,7 +9653,7 @@ export enum Quest_Skill_Update_Column { /** column name */ QuestId = 'questId', /** column name */ - SkillId = 'skillId', + SkillId = 'skillId' } /** aggregate stddev on columns */ @@ -9401,7 +9723,7 @@ export enum Quest_Update_Column { /** column name */ Status = 'status', /** column name */ - Title = 'title', + Title = 'title' } /** aggregate var_pop on columns */ @@ -9453,6 +9775,7 @@ export type Skill = { readonly quest_skills_aggregate: Quest_Skill_Aggregate; }; + /** columns and relationships of "skill" */ export type SkillPlayer_SkillsArgs = { distinct_on?: InputMaybe>; @@ -9462,6 +9785,7 @@ export type SkillPlayer_SkillsArgs = { where?: InputMaybe; }; + /** columns and relationships of "skill" */ export type SkillPlayer_Skills_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9471,6 +9795,7 @@ export type SkillPlayer_Skills_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "skill" */ export type SkillQuest_SkillsArgs = { distinct_on?: InputMaybe>; @@ -9480,6 +9805,7 @@ export type SkillQuest_SkillsArgs = { where?: InputMaybe; }; + /** columns and relationships of "skill" */ export type SkillQuest_Skills_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9504,6 +9830,7 @@ export type Skill_Aggregate_Fields = { readonly min?: Maybe; }; + /** aggregate fields of "skill" */ export type Skill_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -9538,7 +9865,7 @@ export type Skill_Bool_Exp = { /** unique or primary key constraints on table "skill" */ export enum Skill_Constraint { /** unique or primary key constraint */ - SkillPkey = 'Skill_pkey', + SkillPkey = 'Skill_pkey' } /** input type for inserting data into table "skill" */ @@ -9619,7 +9946,7 @@ export enum Skill_Select_Column { /** column name */ Id = 'id', /** column name */ - Name = 'name', + Name = 'name' } /** input type for updating data in table "skill" */ @@ -9636,7 +9963,7 @@ export enum Skill_Update_Column { /** column name */ Id = 'id', /** column name */ - Name = 'name', + Name = 'name' } /** subscription root */ @@ -9822,6 +10149,7 @@ export type Subscription_Root = { readonly xp_by_pk?: Maybe; }; + /** subscription root */ export type Subscription_RootAccountTypeArgs = { distinct_on?: InputMaybe>; @@ -9831,6 +10159,7 @@ export type Subscription_RootAccountTypeArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootAccountType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9840,11 +10169,13 @@ export type Subscription_RootAccountType_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootAccountType_By_PkArgs = { type: Scalars['String']; }; + /** subscription root */ export type Subscription_RootColorAspectArgs = { distinct_on?: InputMaybe>; @@ -9854,6 +10185,7 @@ export type Subscription_RootColorAspectArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootColorAspect_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9863,11 +10195,13 @@ export type Subscription_RootColorAspect_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootColorAspect_By_PkArgs = { mask: Scalars['Int']; }; + /** subscription root */ export type Subscription_RootExplorerTypeArgs = { distinct_on?: InputMaybe>; @@ -9877,6 +10211,7 @@ export type Subscription_RootExplorerTypeArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootExplorerType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9886,11 +10221,13 @@ export type Subscription_RootExplorerType_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootExplorerType_By_PkArgs = { id: Scalars['Int']; }; + /** subscription root */ export type Subscription_RootGuildStatusArgs = { distinct_on?: InputMaybe>; @@ -9900,6 +10237,7 @@ export type Subscription_RootGuildStatusArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuildStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9909,11 +10247,13 @@ export type Subscription_RootGuildStatus_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuildStatus_By_PkArgs = { status: Scalars['String']; }; + /** subscription root */ export type Subscription_RootGuildTypeArgs = { distinct_on?: InputMaybe>; @@ -9923,6 +10263,7 @@ export type Subscription_RootGuildTypeArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuildType_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9932,11 +10273,13 @@ export type Subscription_RootGuildType_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuildType_By_PkArgs = { name: Scalars['String']; }; + /** subscription root */ export type Subscription_RootPlayerRankArgs = { distinct_on?: InputMaybe>; @@ -9946,6 +10289,7 @@ export type Subscription_RootPlayerRankArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayerRank_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9955,11 +10299,13 @@ export type Subscription_RootPlayerRank_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayerRank_By_PkArgs = { rank: Scalars['String']; }; + /** subscription root */ export type Subscription_RootPlayerRoleArgs = { distinct_on?: InputMaybe>; @@ -9969,6 +10315,7 @@ export type Subscription_RootPlayerRoleArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayerRole_AggregateArgs = { distinct_on?: InputMaybe>; @@ -9978,11 +10325,13 @@ export type Subscription_RootPlayerRole_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayerRole_By_PkArgs = { role: Scalars['String']; }; + /** subscription root */ export type Subscription_RootQuestCompletionStatusArgs = { distinct_on?: InputMaybe>; @@ -9992,6 +10341,7 @@ export type Subscription_RootQuestCompletionStatusArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestCompletionStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10001,11 +10351,13 @@ export type Subscription_RootQuestCompletionStatus_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestCompletionStatus_By_PkArgs = { status: Scalars['String']; }; + /** subscription root */ export type Subscription_RootQuestRepetitionArgs = { distinct_on?: InputMaybe>; @@ -10015,6 +10367,7 @@ export type Subscription_RootQuestRepetitionArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestRepetition_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10024,11 +10377,13 @@ export type Subscription_RootQuestRepetition_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestRepetition_By_PkArgs = { repetition: Scalars['String']; }; + /** subscription root */ export type Subscription_RootQuestStatusArgs = { distinct_on?: InputMaybe>; @@ -10038,6 +10393,7 @@ export type Subscription_RootQuestStatusArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestStatus_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10047,11 +10403,13 @@ export type Subscription_RootQuestStatus_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuestStatus_By_PkArgs = { status: Scalars['String']; }; + /** subscription root */ export type Subscription_RootSkillCategoryArgs = { distinct_on?: InputMaybe>; @@ -10061,6 +10419,7 @@ export type Subscription_RootSkillCategoryArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootSkillCategory_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10070,11 +10429,13 @@ export type Subscription_RootSkillCategory_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootSkillCategory_By_PkArgs = { name: Scalars['String']; }; + /** subscription root */ export type Subscription_RootBalanceArgs = { distinct_on?: InputMaybe>; @@ -10084,6 +10445,7 @@ export type Subscription_RootBalanceArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootBalance_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10093,11 +10455,13 @@ export type Subscription_RootBalance_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootBalance_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootDaoArgs = { distinct_on?: InputMaybe>; @@ -10107,6 +10471,7 @@ export type Subscription_RootDaoArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootDao_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10116,11 +10481,13 @@ export type Subscription_RootDao_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootDao_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootDao_PlayerArgs = { distinct_on?: InputMaybe>; @@ -10130,6 +10497,7 @@ export type Subscription_RootDao_PlayerArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootDao_Player_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10139,12 +10507,14 @@ export type Subscription_RootDao_Player_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootDao_Player_By_PkArgs = { daoId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootGuildArgs = { distinct_on?: InputMaybe>; @@ -10154,6 +10524,7 @@ export type Subscription_RootGuildArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10163,11 +10534,13 @@ export type Subscription_RootGuild_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootGuild_MetadataArgs = { distinct_on?: InputMaybe>; @@ -10177,6 +10550,7 @@ export type Subscription_RootGuild_MetadataArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_Metadata_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10186,11 +10560,13 @@ export type Subscription_RootGuild_Metadata_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_Metadata_By_PkArgs = { guildId: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootGuild_PlayerArgs = { distinct_on?: InputMaybe>; @@ -10200,6 +10576,7 @@ export type Subscription_RootGuild_PlayerArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_Player_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10209,12 +10586,14 @@ export type Subscription_RootGuild_Player_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootGuild_Player_By_PkArgs = { guildId: Scalars['uuid']; playerId: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootMeArgs = { distinct_on?: InputMaybe>; @@ -10224,6 +10603,7 @@ export type Subscription_RootMeArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootMe_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10233,6 +10613,7 @@ export type Subscription_RootMe_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayerArgs = { distinct_on?: InputMaybe>; @@ -10242,6 +10623,7 @@ export type Subscription_RootPlayerArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_AccountArgs = { distinct_on?: InputMaybe>; @@ -10251,6 +10633,7 @@ export type Subscription_RootPlayer_AccountArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_Account_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10260,6 +10643,7 @@ export type Subscription_RootPlayer_Account_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10269,11 +10653,13 @@ export type Subscription_RootPlayer_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootPlayer_RoleArgs = { distinct_on?: InputMaybe>; @@ -10283,6 +10669,7 @@ export type Subscription_RootPlayer_RoleArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_Role_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10292,12 +10679,14 @@ export type Subscription_RootPlayer_Role_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_Role_By_PkArgs = { player_id: Scalars['uuid']; role: Scalars['String']; }; + /** subscription root */ export type Subscription_RootPlayer_SkillArgs = { distinct_on?: InputMaybe>; @@ -10307,6 +10696,7 @@ export type Subscription_RootPlayer_SkillArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_Skill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10316,11 +10706,13 @@ export type Subscription_RootPlayer_Skill_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootPlayer_Skill_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootProfileArgs = { distinct_on?: InputMaybe>; @@ -10330,6 +10722,7 @@ export type Subscription_RootProfileArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootProfile_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10339,11 +10732,13 @@ export type Subscription_RootProfile_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootProfile_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootQuestArgs = { distinct_on?: InputMaybe>; @@ -10353,6 +10748,7 @@ export type Subscription_RootQuestArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10362,11 +10758,13 @@ export type Subscription_RootQuest_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootQuest_CompletionArgs = { distinct_on?: InputMaybe>; @@ -10376,6 +10774,7 @@ export type Subscription_RootQuest_CompletionArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Completion_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10385,11 +10784,13 @@ export type Subscription_RootQuest_Completion_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Completion_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootQuest_RoleArgs = { distinct_on?: InputMaybe>; @@ -10399,6 +10800,7 @@ export type Subscription_RootQuest_RoleArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Role_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10408,12 +10810,14 @@ export type Subscription_RootQuest_Role_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Role_By_PkArgs = { questId: Scalars['uuid']; role: Scalars['String']; }; + /** subscription root */ export type Subscription_RootQuest_SkillArgs = { distinct_on?: InputMaybe>; @@ -10423,6 +10827,7 @@ export type Subscription_RootQuest_SkillArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Skill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10432,12 +10837,14 @@ export type Subscription_RootQuest_Skill_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootQuest_Skill_By_PkArgs = { questId: Scalars['uuid']; skillId: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootSkillArgs = { distinct_on?: InputMaybe>; @@ -10447,6 +10854,7 @@ export type Subscription_RootSkillArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootSkill_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10456,11 +10864,13 @@ export type Subscription_RootSkill_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootSkill_By_PkArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootTokenArgs = { distinct_on?: InputMaybe>; @@ -10470,6 +10880,7 @@ export type Subscription_RootTokenArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootToken_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10479,16 +10890,19 @@ export type Subscription_RootToken_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootToken_By_PkArgs = { address: Scalars['String']; }; + /** subscription root */ export type Subscription_RootUpdateIdxProfileArgs = { id: Scalars['uuid']; }; + /** subscription root */ export type Subscription_RootXpArgs = { distinct_on?: InputMaybe>; @@ -10498,6 +10912,7 @@ export type Subscription_RootXpArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootXp_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10507,6 +10922,7 @@ export type Subscription_RootXp_AggregateArgs = { where?: InputMaybe; }; + /** subscription root */ export type Subscription_RootXp_By_PkArgs = { id: Scalars['uuid']; @@ -10545,6 +10961,7 @@ export type Token = { readonly xps_aggregate: Xp_Aggregate; }; + /** columns and relationships of "token" */ export type TokenBalancesArgs = { distinct_on?: InputMaybe>; @@ -10554,6 +10971,7 @@ export type TokenBalancesArgs = { where?: InputMaybe; }; + /** columns and relationships of "token" */ export type TokenBalances_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10563,6 +10981,7 @@ export type TokenBalances_AggregateArgs = { where?: InputMaybe; }; + /** columns and relationships of "token" */ export type TokenXpsArgs = { distinct_on?: InputMaybe>; @@ -10572,6 +10991,7 @@ export type TokenXpsArgs = { where?: InputMaybe; }; + /** columns and relationships of "token" */ export type TokenXps_AggregateArgs = { distinct_on?: InputMaybe>; @@ -10604,6 +11024,7 @@ export type Token_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "token" */ export type Token_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -10668,7 +11089,7 @@ export enum Token_Constraint { /** unique or primary key constraint */ TokenPkey = 'token_pkey', /** unique or primary key constraint */ - TokenSafeAddressKey = 'token_safe_address_key', + TokenSafeAddressKey = 'token_safe_address_key' } /** input type for incrementing integer column in table "token" */ @@ -10777,7 +11198,7 @@ export enum Token_Select_Column { /** column name */ LastOffset = 'lastOffset', /** column name */ - SafeAddress = 'safeAddress', + SafeAddress = 'safeAddress' } /** input type for updating data in table "token" */ @@ -10852,7 +11273,7 @@ export enum Token_Update_Column { /** column name */ LastOffset = 'lastOffset', /** column name */ - SafeAddress = 'safeAddress', + SafeAddress = 'safeAddress' } /** aggregate var_pop on columns */ @@ -10925,6 +11346,7 @@ export type Xp = { readonly __typename?: 'xp'; readonly balance: Scalars['float8']; readonly id: Scalars['uuid']; + readonly initial?: Maybe; /** An object relationship */ readonly player: Player; readonly playerId: Scalars['uuid']; @@ -10956,6 +11378,7 @@ export type Xp_Aggregate_Fields = { readonly variance?: Maybe; }; + /** aggregate fields of "xp" */ export type Xp_Aggregate_FieldsCountArgs = { columns?: InputMaybe>; @@ -10987,11 +11410,13 @@ export type Xp_Arr_Rel_Insert_Input = { export type Xp_Avg_Fields = { readonly __typename?: 'xp_avg_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by avg() on columns of table "xp" */ export type Xp_Avg_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** Boolean expression to filter rows from the table "xp". All fields are combined with a logical 'AND'. */ @@ -11001,6 +11426,7 @@ export type Xp_Bool_Exp = { readonly _or?: InputMaybe>>; readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly player?: InputMaybe; readonly playerId?: InputMaybe; readonly token?: InputMaybe; @@ -11012,18 +11438,20 @@ export enum Xp_Constraint { /** unique or primary key constraint */ XpPkey = 'xp_pkey', /** unique or primary key constraint */ - XpPlayerIdTokenAddressKey = 'xp_player_id_token_address_key', + XpPlayerIdTokenAddressKey = 'xp_player_id_token_address_key' } /** input type for incrementing integer column in table "xp" */ export type Xp_Inc_Input = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** input type for inserting data into table "xp" */ export type Xp_Insert_Input = { readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly player?: InputMaybe; readonly playerId?: InputMaybe; readonly token?: InputMaybe; @@ -11035,6 +11463,7 @@ export type Xp_Max_Fields = { readonly __typename?: 'xp_max_fields'; readonly balance?: Maybe; readonly id?: Maybe; + readonly initial?: Maybe; readonly playerId?: Maybe; readonly tokenAddress?: Maybe; }; @@ -11043,6 +11472,7 @@ export type Xp_Max_Fields = { export type Xp_Max_Order_By = { readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly playerId?: InputMaybe; readonly tokenAddress?: InputMaybe; }; @@ -11052,6 +11482,7 @@ export type Xp_Min_Fields = { readonly __typename?: 'xp_min_fields'; readonly balance?: Maybe; readonly id?: Maybe; + readonly initial?: Maybe; readonly playerId?: Maybe; readonly tokenAddress?: Maybe; }; @@ -11060,6 +11491,7 @@ export type Xp_Min_Fields = { export type Xp_Min_Order_By = { readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly playerId?: InputMaybe; readonly tokenAddress?: InputMaybe; }; @@ -11090,6 +11522,7 @@ export type Xp_On_Conflict = { export type Xp_Order_By = { readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly player?: InputMaybe; readonly playerId?: InputMaybe; readonly token?: InputMaybe; @@ -11108,15 +11541,18 @@ export enum Xp_Select_Column { /** column name */ Id = 'id', /** column name */ + Initial = 'initial', + /** column name */ PlayerId = 'playerId', /** column name */ - TokenAddress = 'tokenAddress', + TokenAddress = 'tokenAddress' } /** input type for updating data in table "xp" */ export type Xp_Set_Input = { readonly balance?: InputMaybe; readonly id?: InputMaybe; + readonly initial?: InputMaybe; readonly playerId?: InputMaybe; readonly tokenAddress?: InputMaybe; }; @@ -11125,44 +11561,52 @@ export type Xp_Set_Input = { export type Xp_Stddev_Fields = { readonly __typename?: 'xp_stddev_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by stddev() on columns of table "xp" */ export type Xp_Stddev_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** aggregate stddev_pop on columns */ export type Xp_Stddev_Pop_Fields = { readonly __typename?: 'xp_stddev_pop_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by stddev_pop() on columns of table "xp" */ export type Xp_Stddev_Pop_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** aggregate stddev_samp on columns */ export type Xp_Stddev_Samp_Fields = { readonly __typename?: 'xp_stddev_samp_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by stddev_samp() on columns of table "xp" */ export type Xp_Stddev_Samp_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** aggregate sum on columns */ export type Xp_Sum_Fields = { readonly __typename?: 'xp_sum_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by sum() on columns of table "xp" */ export type Xp_Sum_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** update columns of table "xp" */ @@ -11172,42 +11616,50 @@ export enum Xp_Update_Column { /** column name */ Id = 'id', /** column name */ + Initial = 'initial', + /** column name */ PlayerId = 'playerId', /** column name */ - TokenAddress = 'tokenAddress', + TokenAddress = 'tokenAddress' } /** aggregate var_pop on columns */ export type Xp_Var_Pop_Fields = { readonly __typename?: 'xp_var_pop_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by var_pop() on columns of table "xp" */ export type Xp_Var_Pop_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** aggregate var_samp on columns */ export type Xp_Var_Samp_Fields = { readonly __typename?: 'xp_var_samp_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by var_samp() on columns of table "xp" */ export type Xp_Var_Samp_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; /** aggregate variance on columns */ export type Xp_Variance_Fields = { readonly __typename?: 'xp_variance_fields'; readonly balance?: Maybe; + readonly initial?: Maybe; }; /** order by variance() on columns of table "xp" */ export type Xp_Variance_Order_By = { readonly balance?: InputMaybe; + readonly initial?: InputMaybe; }; export type UpdateDaoMutationVariables = Exact<{ @@ -11215,244 +11667,125 @@ export type UpdateDaoMutationVariables = Exact<{ object: Dao_Set_Input; }>; -export type UpdateDaoMutation = { - readonly __typename?: 'mutation_root'; - readonly update_dao_by_pk?: { - readonly __typename?: 'dao'; - readonly id: any; - } | null; -}; + +export type UpdateDaoMutation = { readonly __typename?: 'mutation_root', readonly update_dao_by_pk?: { readonly __typename?: 'dao', readonly id: any } | null }; export type DetachDaosFromGuildMutationVariables = Exact<{ ids: ReadonlyArray | Scalars['uuid']; }>; -export type DetachDaosFromGuildMutation = { - readonly __typename?: 'mutation_root'; - readonly update_dao?: { - readonly __typename?: 'dao_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type DetachDaosFromGuildMutation = { readonly __typename?: 'mutation_root', readonly update_dao?: { readonly __typename?: 'dao_mutation_response', readonly affected_rows: number } | null }; export type DeleteDaosMutationVariables = Exact<{ ids: ReadonlyArray | Scalars['uuid']; }>; -export type DeleteDaosMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_dao?: { - readonly __typename?: 'dao_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type DeleteDaosMutation = { readonly __typename?: 'mutation_root', readonly delete_dao?: { readonly __typename?: 'dao_mutation_response', readonly affected_rows: number } | null }; export type InsertDaosMutationVariables = Exact<{ objects: ReadonlyArray | Dao_Insert_Input; }>; -export type InsertDaosMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_dao?: { - readonly __typename?: 'dao_mutation_response'; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'dao'; - readonly id: any; - }>; - } | null; -}; + +export type InsertDaosMutation = { readonly __typename?: 'mutation_root', readonly insert_dao?: { readonly __typename?: 'dao_mutation_response', readonly returning: ReadonlyArray<{ readonly __typename?: 'dao', readonly id: any }> } | null }; export type SyncDaoMembersMutationVariables = Exact<{ memberEthIdsToRemove: ReadonlyArray | Scalars['String']; - membersToAdd: - | ReadonlyArray - | Dao_Player_Insert_Input; + membersToAdd: ReadonlyArray | Dao_Player_Insert_Input; }>; -export type SyncDaoMembersMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_dao_player?: { - readonly __typename?: 'dao_player_mutation_response'; - readonly affected_rows: number; - } | null; - readonly insert_dao_player?: { - readonly __typename?: 'dao_player_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type SyncDaoMembersMutation = { readonly __typename?: 'mutation_root', readonly delete_dao_player?: { readonly __typename?: 'dao_player_mutation_response', readonly affected_rows: number } | null, readonly insert_dao_player?: { readonly __typename?: 'dao_player_mutation_response', readonly affected_rows: number } | null }; export type RemovePlayerFromDaosMutationVariables = Exact<{ playerEthAdress: Scalars['String']; daoIds: ReadonlyArray | Scalars['uuid']; }>; -export type RemovePlayerFromDaosMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_dao_player?: { - readonly __typename?: 'dao_player_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type RemovePlayerFromDaosMutation = { readonly __typename?: 'mutation_root', readonly delete_dao_player?: { readonly __typename?: 'dao_player_mutation_response', readonly affected_rows: number } | null }; export type UpsertDaoMembersMutationVariables = Exact<{ objects: ReadonlyArray | Dao_Player_Insert_Input; }>; -export type UpsertDaoMembersMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_dao_player?: { - readonly __typename?: 'dao_player_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type UpsertDaoMembersMutation = { readonly __typename?: 'mutation_root', readonly insert_dao_player?: { readonly __typename?: 'dao_player_mutation_response', readonly affected_rows: number } | null }; export type CreateGuildMutationVariables = Exact<{ object: Guild_Insert_Input; }>; -export type CreateGuildMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_guild_one?: { - readonly __typename?: 'guild'; - readonly guildname: string; - readonly id: any; - } | null; -}; + +export type CreateGuildMutation = { readonly __typename?: 'mutation_root', readonly insert_guild_one?: { readonly __typename?: 'guild', readonly guildname: string, readonly id: any } | null }; export type UpdateGuildMutationVariables = Exact<{ guildId: Scalars['uuid']; object: Guild_Set_Input; }>; -export type UpdateGuildMutation = { - readonly __typename?: 'mutation_root'; - readonly update_guild_by_pk?: { - readonly __typename?: 'guild'; - readonly id: any; - } | null; -}; + +export type UpdateGuildMutation = { readonly __typename?: 'mutation_root', readonly update_guild_by_pk?: { readonly __typename?: 'guild', readonly id: any } | null }; export type CreateGuildMetadataMutationVariables = Exact<{ object: Guild_Metadata_Insert_Input; }>; -export type CreateGuildMetadataMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_guild_metadata_one?: { - readonly __typename?: 'guild_metadata'; - readonly creatorId?: any | null; - readonly discordId: string; - readonly guildId: any; - readonly discordMetadata?: any | null; - } | null; -}; + +export type CreateGuildMetadataMutation = { readonly __typename?: 'mutation_root', readonly insert_guild_metadata_one?: { readonly __typename?: 'guild_metadata', readonly creatorId?: any | null, readonly discordId: string, readonly guildId: any, readonly discordMetadata?: any | null } | null }; export type UpdateGuildDiscordMetadataMutationVariables = Exact<{ guildId: Scalars['uuid']; discordMetadata?: InputMaybe; }>; -export type UpdateGuildDiscordMetadataMutation = { - readonly __typename?: 'mutation_root'; - readonly update_guild_metadata_by_pk?: { - readonly __typename?: 'guild_metadata'; - readonly guildId: any; - } | null; -}; + +export type UpdateGuildDiscordMetadataMutation = { readonly __typename?: 'mutation_root', readonly update_guild_metadata_by_pk?: { readonly __typename?: 'guild_metadata', readonly guildId: any } | null }; export type SyncGuildMembersMutationVariables = Exact<{ - memberDiscordIdsToRemove: - | ReadonlyArray - | Scalars['String']; - membersToAdd: - | ReadonlyArray - | Guild_Player_Insert_Input; + memberDiscordIdsToRemove: ReadonlyArray | Scalars['String']; + membersToAdd: ReadonlyArray | Guild_Player_Insert_Input; }>; -export type SyncGuildMembersMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_guild_player?: { - readonly __typename?: 'guild_player_mutation_response'; - readonly affected_rows: number; - } | null; - readonly insert_guild_player?: { - readonly __typename?: 'guild_player_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type SyncGuildMembersMutation = { readonly __typename?: 'mutation_root', readonly delete_guild_player?: { readonly __typename?: 'guild_player_mutation_response', readonly affected_rows: number } | null, readonly insert_guild_player?: { readonly __typename?: 'guild_player_mutation_response', readonly affected_rows: number } | null }; export type RemoveAllGuildMembersMutationVariables = Exact<{ guildId: Scalars['uuid']; }>; -export type RemoveAllGuildMembersMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_guild_player?: { - readonly __typename?: 'guild_player_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type RemoveAllGuildMembersMutation = { readonly __typename?: 'mutation_root', readonly delete_guild_player?: { readonly __typename?: 'guild_player_mutation_response', readonly affected_rows: number } | null }; export type CreatePlayerFromEthMutationVariables = Exact<{ ethereumAddress: Scalars['String']; }>; -export type CreatePlayerFromEthMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_profile?: { - readonly __typename?: 'profile_mutation_response'; - readonly affected_rows: number; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'profile'; - readonly id: any; - readonly player: { - readonly __typename?: 'player'; - readonly id: any; - readonly ethereumAddress: string; - }; - }>; - } | null; -}; + +export type CreatePlayerFromEthMutation = { readonly __typename?: 'mutation_root', readonly insert_profile?: { readonly __typename?: 'profile_mutation_response', readonly affected_rows: number, readonly returning: ReadonlyArray<{ readonly __typename?: 'profile', readonly id: any, readonly player: { readonly __typename?: 'player', readonly id: any, readonly ethereumAddress: string } }> } | null }; export type UpsertAccountMutationVariables = Exact<{ - objects: - | ReadonlyArray - | Player_Account_Insert_Input; + objects: ReadonlyArray | Player_Account_Insert_Input; on_conflict?: InputMaybe; }>; -export type UpsertAccountMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_player_account?: { - readonly __typename?: 'player_account_mutation_response'; - readonly affected_rows: number; - } | null; -}; -export type ResetAllPlayersXpMutationVariables = Exact<{ - [key: string]: never; -}>; +export type UpsertAccountMutation = { readonly __typename?: 'mutation_root', readonly insert_player_account?: { readonly __typename?: 'player_account_mutation_response', readonly affected_rows: number } | null }; -export type ResetAllPlayersXpMutation = { - readonly __typename?: 'mutation_root'; - readonly update_player?: { - readonly __typename?: 'player_mutation_response'; - readonly affected_rows: number; - } | null; -}; +export type ResetAllPlayersXpMutationVariables = Exact<{ [key: string]: never; }>; + + +export type ResetAllPlayersXpMutation = { readonly __typename?: 'mutation_root', readonly update_player?: { readonly __typename?: 'player_mutation_response', readonly affected_rows: number } | null }; export type UpsertProfileMutationVariables = Exact<{ objects: ReadonlyArray | Profile_Insert_Input; updateColumns: ReadonlyArray | Profile_Update_Column; }>; -export type UpsertProfileMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_profile?: { - readonly __typename?: 'profile_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type UpsertProfileMutation = { readonly __typename?: 'mutation_root', readonly insert_profile?: { readonly __typename?: 'profile_mutation_response', readonly affected_rows: number } | null }; export type UpdatePlayerMutationVariables = Exact<{ ethereumAddress: Scalars['String']; @@ -11462,126 +11795,61 @@ export type UpdatePlayerMutationVariables = Exact<{ discordId?: InputMaybe; }>; -export type UpdatePlayerMutation = { - readonly __typename?: 'mutation_root'; - readonly update_player?: { - readonly __typename?: 'player_mutation_response'; - readonly affected_rows: number; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'player'; - readonly id: any; - readonly ethereumAddress: string; - readonly profile?: { - readonly __typename?: 'profile'; - readonly username?: string | null; - } | null; - }>; - } | null; -}; + +export type UpdatePlayerMutation = { readonly __typename?: 'mutation_root', readonly update_player?: { readonly __typename?: 'player_mutation_response', readonly affected_rows: number, readonly returning: ReadonlyArray<{ readonly __typename?: 'player', readonly id: any, readonly ethereumAddress: string, readonly profile?: { readonly __typename?: 'profile', readonly username?: string | null } | null }> } | null }; export type InsertPlayersMutationVariables = Exact<{ objects: ReadonlyArray | Player_Insert_Input; }>; -export type InsertPlayersMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_player?: { - readonly __typename?: 'player_mutation_response'; - readonly affected_rows: number; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'player'; - readonly id: any; - }>; - } | null; -}; + +export type InsertPlayersMutation = { readonly __typename?: 'mutation_root', readonly insert_player?: { readonly __typename?: 'player_mutation_response', readonly affected_rows: number, readonly returning: ReadonlyArray<{ readonly __typename?: 'player', readonly id: any }> } | null }; export type RemovePlayerAccountMutationVariables = Exact<{ playerId: Scalars['uuid']; accountType?: InputMaybe; }>; -export type RemovePlayerAccountMutation = { - readonly __typename?: 'mutation_root'; - readonly delete_player_account?: { - readonly __typename?: 'player_account_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type RemovePlayerAccountMutation = { readonly __typename?: 'mutation_root', readonly delete_player_account?: { readonly __typename?: 'player_account_mutation_response', readonly affected_rows: number } | null }; export type CreateQuestMutationVariables = Exact<{ objects: ReadonlyArray | Quest_Insert_Input; }>; -export type CreateQuestMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_quest?: { - readonly __typename?: 'quest_mutation_response'; - readonly affected_rows: number; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'quest'; - readonly id: any; - }>; - } | null; -}; + +export type CreateQuestMutation = { readonly __typename?: 'mutation_root', readonly insert_quest?: { readonly __typename?: 'quest_mutation_response', readonly affected_rows: number, readonly returning: ReadonlyArray<{ readonly __typename?: 'quest', readonly id: any }> } | null }; export type CreateQuestCompletionMutationVariables = Exact<{ - objects: - | ReadonlyArray - | Quest_Completion_Insert_Input; + objects: ReadonlyArray | Quest_Completion_Insert_Input; }>; -export type CreateQuestCompletionMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_quest_completion?: { - readonly __typename?: 'quest_completion_mutation_response'; - readonly affected_rows: number; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'quest_completion'; - readonly id: any; - readonly questId: any; - readonly completedByPlayerId: any; - }>; - } | null; -}; + +export type CreateQuestCompletionMutation = { readonly __typename?: 'mutation_root', readonly insert_quest_completion?: { readonly __typename?: 'quest_completion_mutation_response', readonly affected_rows: number, readonly returning: ReadonlyArray<{ readonly __typename?: 'quest_completion', readonly id: any, readonly questId: any, readonly completedByPlayerId: any }> } | null }; export type UpdateQuestStatusMutationVariables = Exact<{ quest_id: Scalars['uuid']; status: QuestStatus_Enum; }>; -export type UpdateQuestStatusMutation = { - readonly __typename?: 'mutation_root'; - readonly update_quest_by_pk?: { - readonly __typename?: 'quest'; - readonly id: any; - } | null; -}; + +export type UpdateQuestStatusMutation = { readonly __typename?: 'mutation_root', readonly update_quest_by_pk?: { readonly __typename?: 'quest', readonly id: any } | null }; export type UpdateQuestCompletionStatusMutationVariables = Exact<{ quest_completion_id: Scalars['uuid']; status: QuestCompletionStatus_Enum; }>; -export type UpdateQuestCompletionStatusMutation = { - readonly __typename?: 'mutation_root'; - readonly update_quest_completion_by_pk?: { - readonly __typename?: 'quest_completion'; - readonly id: any; - } | null; -}; + +export type UpdateQuestCompletionStatusMutation = { readonly __typename?: 'mutation_root', readonly update_quest_completion_by_pk?: { readonly __typename?: 'quest_completion', readonly id: any } | null }; export type RejectOtherQuestCompletionsMutationVariables = Exact<{ accepted_quest_completion_id: Scalars['uuid']; questId: Scalars['uuid']; }>; -export type RejectOtherQuestCompletionsMutation = { - readonly __typename?: 'mutation_root'; - readonly update_quest_completion?: { - readonly __typename?: 'quest_completion_mutation_response'; - readonly affected_rows: number; - } | null; -}; + +export type RejectOtherQuestCompletionsMutation = { readonly __typename?: 'mutation_root', readonly update_quest_completion?: { readonly __typename?: 'quest_completion_mutation_response', readonly affected_rows: number } | null }; export type AddBalanceMutationVariables = Exact<{ amount: Scalars['float8']; @@ -11590,29 +11858,16 @@ export type AddBalanceMutationVariables = Exact<{ tokenAddress: Scalars['String']; }>; -export type AddBalanceMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_balance_one?: { - readonly __typename?: 'balance'; - readonly id: any; - } | null; -}; + +export type AddBalanceMutation = { readonly __typename?: 'mutation_root', readonly insert_balance_one?: { readonly __typename?: 'balance', readonly id: any } | null }; export type UpdateLastOffsetMutationVariables = Exact<{ tokenAddress: Scalars['String']; offset: Scalars['Int']; }>; -export type UpdateLastOffsetMutation = { - readonly __typename?: 'mutation_root'; - readonly update_token?: { - readonly __typename?: 'token_mutation_response'; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'token'; - readonly lastOffset: number; - }>; - } | null; -}; + +export type UpdateLastOffsetMutation = { readonly __typename?: 'mutation_root', readonly update_token?: { readonly __typename?: 'token_mutation_response', readonly returning: ReadonlyArray<{ readonly __typename?: 'token', readonly lastOffset: number }> } | null }; export type UpsertXpMutationVariables = Exact<{ balance: Scalars['float8']; @@ -11620,1632 +11875,820 @@ export type UpsertXpMutationVariables = Exact<{ tokenAddress: Scalars['String']; }>; -export type UpsertXpMutation = { - readonly __typename?: 'mutation_root'; - readonly insert_xp?: { - readonly __typename?: 'xp_mutation_response'; - readonly returning: ReadonlyArray<{ - readonly __typename?: 'xp'; - readonly balance: any; - readonly tokenAddress: string; - readonly playerId: any; - readonly id: any; - }>; - } | null; -}; + +export type UpsertXpMutation = { readonly __typename?: 'mutation_root', readonly insert_xp?: { readonly __typename?: 'xp_mutation_response', readonly returning: ReadonlyArray<{ readonly __typename?: 'xp', readonly balance: any, readonly tokenAddress: string, readonly playerId: any, readonly id: any }> } | null }; export type GetPlayerDaosQueryVariables = Exact<{ ethereumAddress?: InputMaybe; }>; -export type GetPlayerDaosQuery = { - readonly __typename?: 'query_root'; - readonly dao_player: ReadonlyArray<{ - readonly __typename?: 'dao_player'; - readonly daoId: any; - readonly playerId: any; - readonly Dao: { - readonly __typename?: 'dao'; - readonly contractAddress: string; - readonly network: string; - }; - }>; -}; + +export type GetPlayerDaosQuery = { readonly __typename?: 'query_root', readonly dao_player: ReadonlyArray<{ readonly __typename?: 'dao_player', readonly daoId: any, readonly playerId: any, readonly Dao: { readonly __typename?: 'dao', readonly contractAddress: string, readonly network: string } }> }; export type GetDaosByAddressQueryVariables = Exact<{ - contractAddress?: InputMaybe< - ReadonlyArray | Scalars['String'] - >; + contractAddress?: InputMaybe | Scalars['String']>; }>; -export type GetDaosByAddressQuery = { - readonly __typename?: 'query_root'; - readonly dao: ReadonlyArray<{ - readonly __typename?: 'dao'; - readonly id: any; - readonly contractAddress: string; - readonly network: string; - }>; -}; -export type GuildFragment = { - readonly __typename?: 'guild'; - readonly id: any; - readonly guildname: string; - readonly description?: string | null; - readonly joinButtonUrl?: string | null; - readonly logo?: string | null; - readonly name: string; - readonly type: GuildType_Enum; - readonly websiteUrl?: string | null; - readonly discordId?: string | null; - readonly status: GuildStatus_Enum; - readonly membershipThroughDiscord: boolean; -}; +export type GetDaosByAddressQuery = { readonly __typename?: 'query_root', readonly dao: ReadonlyArray<{ readonly __typename?: 'dao', readonly id: any, readonly contractAddress: string, readonly network: string }> }; + +export type GuildFragment = { readonly __typename?: 'guild', readonly id: any, readonly guildname: string, readonly description?: string | null, readonly joinButtonUrl?: string | null, readonly logo?: string | null, readonly name: string, readonly type: GuildType_Enum, readonly websiteUrl?: string | null, readonly discordId?: string | null, readonly status: GuildStatus_Enum, readonly membershipThroughDiscord: boolean }; export type GetGuildQueryVariables = Exact<{ id: Scalars['uuid']; }>; -export type GetGuildQuery = { - readonly __typename?: 'query_root'; - readonly guild: ReadonlyArray<{ - readonly __typename?: 'guild'; - readonly id: any; - readonly guildname: string; - readonly description?: string | null; - readonly joinButtonUrl?: string | null; - readonly logo?: string | null; - readonly name: string; - readonly type: GuildType_Enum; - readonly websiteUrl?: string | null; - readonly discordId?: string | null; - readonly status: GuildStatus_Enum; - readonly membershipThroughDiscord: boolean; - readonly daos: ReadonlyArray<{ - readonly __typename?: 'dao'; - readonly id: any; - readonly guildId?: any | null; - readonly contractAddress: string; - readonly network: string; - readonly label?: string | null; - readonly url?: string | null; - readonly players: ReadonlyArray<{ - readonly __typename?: 'dao_player'; - readonly playerId: any; - readonly visible?: boolean | null; - }>; - }>; - }>; -}; + +export type GetGuildQuery = { readonly __typename?: 'query_root', readonly guild: ReadonlyArray<{ readonly __typename?: 'guild', readonly id: any, readonly guildname: string, readonly description?: string | null, readonly joinButtonUrl?: string | null, readonly logo?: string | null, readonly name: string, readonly type: GuildType_Enum, readonly websiteUrl?: string | null, readonly discordId?: string | null, readonly status: GuildStatus_Enum, readonly membershipThroughDiscord: boolean, readonly daos: ReadonlyArray<{ readonly __typename?: 'dao', readonly id: any, readonly guildId?: any | null, readonly contractAddress: string, readonly network: string, readonly label?: string | null, readonly url?: string | null, readonly players: ReadonlyArray<{ readonly __typename?: 'dao_player', readonly playerId: any, readonly visible?: boolean | null }> }> }> }; export type GetGuildMetadataByDiscordIdQueryVariables = Exact<{ discordId: Scalars['String']; }>; -export type GetGuildMetadataByDiscordIdQuery = { - readonly __typename?: 'query_root'; - readonly guild: ReadonlyArray<{ - readonly __typename?: 'guild'; - readonly id: any; - readonly discordId?: string | null; - readonly guildname: string; - readonly metadata?: { - readonly __typename?: 'guild_metadata'; - readonly guildId: any; - readonly creatorId?: any | null; - readonly discordMetadata?: any | null; - } | null; - }>; -}; + +export type GetGuildMetadataByDiscordIdQuery = { readonly __typename?: 'query_root', readonly guild: ReadonlyArray<{ readonly __typename?: 'guild', readonly id: any, readonly discordId?: string | null, readonly guildname: string, readonly metadata?: { readonly __typename?: 'guild_metadata', readonly guildId: any, readonly creatorId?: any | null, readonly discordMetadata?: any | null } | null }> }; export type GetGuildsQueryVariables = Exact<{ status?: InputMaybe; }>; -export type GetGuildsQuery = { - readonly __typename?: 'query_root'; - readonly guild: ReadonlyArray<{ - readonly __typename?: 'guild'; - readonly id: any; - readonly guildname: string; - readonly description?: string | null; - readonly joinButtonUrl?: string | null; - readonly logo?: string | null; - readonly name: string; - readonly type: GuildType_Enum; - readonly websiteUrl?: string | null; - readonly discordId?: string | null; - readonly status: GuildStatus_Enum; - readonly membershipThroughDiscord: boolean; - }>; -}; + +export type GetGuildsQuery = { readonly __typename?: 'query_root', readonly guild: ReadonlyArray<{ readonly __typename?: 'guild', readonly id: any, readonly guildname: string, readonly description?: string | null, readonly joinButtonUrl?: string | null, readonly logo?: string | null, readonly name: string, readonly type: GuildType_Enum, readonly websiteUrl?: string | null, readonly discordId?: string | null, readonly status: GuildStatus_Enum, readonly membershipThroughDiscord: boolean }> }; export type GetGuildMetadataByIdQueryVariables = Exact<{ id: Scalars['uuid']; }>; -export type GetGuildMetadataByIdQuery = { - readonly __typename?: 'query_root'; - readonly guild_metadata: ReadonlyArray<{ - readonly __typename?: 'guild_metadata'; - readonly guildId: any; - readonly creatorId?: any | null; - readonly discordId: string; - readonly discordMetadata?: any | null; - }>; -}; + +export type GetGuildMetadataByIdQuery = { readonly __typename?: 'query_root', readonly guild_metadata: ReadonlyArray<{ readonly __typename?: 'guild_metadata', readonly guildId: any, readonly creatorId?: any | null, readonly discordId: string, readonly discordMetadata?: any | null }> }; export type GetGuildMembersQueryVariables = Exact<{ id: Scalars['uuid']; }>; -export type GetGuildMembersQuery = { - readonly __typename?: 'query_root'; - readonly guild: ReadonlyArray<{ - readonly __typename?: 'guild'; - readonly id: any; - readonly guild_players: ReadonlyArray<{ - readonly __typename?: 'guild_player'; - readonly Player: { - readonly __typename?: 'player'; - readonly id: any; - readonly discordId?: string | null; - readonly ethereumAddress: string; - }; - }>; - }>; -}; + +export type GetGuildMembersQuery = { readonly __typename?: 'query_root', readonly guild: ReadonlyArray<{ readonly __typename?: 'guild', readonly id: any, readonly guild_players: ReadonlyArray<{ readonly __typename?: 'guild_player', readonly Player: { readonly __typename?: 'player', readonly id: any, readonly discordId?: string | null, readonly ethereumAddress: string } }> }> }; export type GetGuildPlayerDiscordIdsQueryVariables = Exact<{ guildId: Scalars['uuid']; playerId: Scalars['uuid']; }>; -export type GetGuildPlayerDiscordIdsQuery = { - readonly __typename?: 'query_root'; - readonly guild_player: ReadonlyArray<{ - readonly __typename?: 'guild_player'; - readonly Player: { - readonly __typename?: 'player'; - readonly id: any; - readonly discordId?: string | null; - }; - readonly Guild: { - readonly __typename?: 'guild'; - readonly id: any; - readonly discordId?: string | null; - }; - }>; -}; + +export type GetGuildPlayerDiscordIdsQuery = { readonly __typename?: 'query_root', readonly guild_player: ReadonlyArray<{ readonly __typename?: 'guild_player', readonly Player: { readonly __typename?: 'player', readonly id: any, readonly discordId?: string | null }, readonly Guild: { readonly __typename?: 'guild', readonly id: any, readonly discordId?: string | null } }> }; export type GetPlayerQueryVariables = Exact<{ playerId: Scalars['uuid']; }>; -export type GetPlayerQuery = { - readonly __typename?: 'query_root'; - readonly player_by_pk?: { - readonly __typename?: 'player'; - readonly id: any; - readonly ethereumAddress: string; - readonly discordId?: string | null; - readonly profile?: { - readonly __typename?: 'profile'; - readonly username?: string | null; - } | null; - readonly accounts: ReadonlyArray<{ - readonly __typename?: 'player_account'; - readonly identifier: string; - readonly type: AccountType_Enum; - }>; - } | null; -}; + +export type GetPlayerQuery = { readonly __typename?: 'query_root', readonly player_by_pk?: { readonly __typename?: 'player', readonly id: any, readonly ethereumAddress: string, readonly discordId?: string | null, readonly profile?: { readonly __typename?: 'profile', readonly username?: string | null } | null, readonly accounts: ReadonlyArray<{ readonly __typename?: 'player_account', readonly identifier: string, readonly type: AccountType_Enum }> } | null }; export type GetPlayerFromEthQueryVariables = Exact<{ ethereumAddress?: InputMaybe; }>; -export type GetPlayerFromEthQuery = { - readonly __typename?: 'query_root'; - readonly player: ReadonlyArray<{ - readonly __typename?: 'player'; - readonly id: any; - }>; -}; + +export type GetPlayerFromEthQuery = { readonly __typename?: 'query_root', readonly player: ReadonlyArray<{ readonly __typename?: 'player', readonly id: any }> }; export type GetPlayersByDiscordIdQueryVariables = Exact<{ discordIds: ReadonlyArray | Scalars['String']; }>; -export type GetPlayersByDiscordIdQuery = { - readonly __typename?: 'query_root'; - readonly player: ReadonlyArray<{ - readonly __typename?: 'player'; - readonly id: any; - }>; -}; + +export type GetPlayersByDiscordIdQuery = { readonly __typename?: 'query_root', readonly player: ReadonlyArray<{ readonly __typename?: 'player', readonly id: any }> }; export type GetCacheEntriesQueryVariables = Exact<{ updatedBefore: Scalars['timestamptz']; }>; -export type GetCacheEntriesQuery = { - readonly __typename?: 'query_root'; - readonly profile: ReadonlyArray<{ - readonly __typename?: 'profile'; - readonly playerId: any; - }>; -}; + +export type GetCacheEntriesQuery = { readonly __typename?: 'query_root', readonly profile: ReadonlyArray<{ readonly __typename?: 'profile', readonly playerId: any }> }; export type GetQuestByIdQueryVariables = Exact<{ questId: Scalars['uuid']; }>; -export type GetQuestByIdQuery = { - readonly __typename?: 'query_root'; - readonly quest_by_pk?: { - readonly __typename?: 'quest'; - readonly id: any; - readonly cooldown?: number | null; - readonly status: QuestStatus_Enum; - readonly repetition: QuestRepetition_Enum; - readonly createdByPlayerId: any; - readonly title: string; - } | null; -}; + +export type GetQuestByIdQuery = { readonly __typename?: 'query_root', readonly quest_by_pk?: { readonly __typename?: 'quest', readonly id: any, readonly cooldown?: number | null, readonly status: QuestStatus_Enum, readonly repetition: QuestRepetition_Enum, readonly createdByPlayerId: any, readonly title: string } | null }; export type GetQuestCompletionsQueryVariables = Exact<{ questId: Scalars['uuid']; playerId: Scalars['uuid']; }>; -export type GetQuestCompletionsQuery = { - readonly __typename?: 'query_root'; - readonly quest_completion: ReadonlyArray<{ - readonly __typename?: 'quest_completion'; - readonly id: any; - readonly questId: any; - readonly completedByPlayerId: any; - }>; -}; + +export type GetQuestCompletionsQuery = { readonly __typename?: 'query_root', readonly quest_completion: ReadonlyArray<{ readonly __typename?: 'quest_completion', readonly id: any, readonly questId: any, readonly completedByPlayerId: any }> }; export type GetQuestCompletionByIdQueryVariables = Exact<{ quest_completion_id: Scalars['uuid']; }>; -export type GetQuestCompletionByIdQuery = { - readonly __typename?: 'query_root'; - readonly quest_completion_by_pk?: { - readonly __typename?: 'quest_completion'; - readonly id: any; - readonly questId: any; - readonly completedByPlayerId: any; - readonly status: QuestCompletionStatus_Enum; - } | null; -}; + +export type GetQuestCompletionByIdQuery = { readonly __typename?: 'query_root', readonly quest_completion_by_pk?: { readonly __typename?: 'quest_completion', readonly id: any, readonly questId: any, readonly completedByPlayerId: any, readonly status: QuestCompletionStatus_Enum } | null }; export type GetLastQuestCompletionForPlayerQueryVariables = Exact<{ questId: Scalars['uuid']; playerId: Scalars['uuid']; }>; -export type GetLastQuestCompletionForPlayerQuery = { - readonly __typename?: 'query_root'; - readonly quest_completion: ReadonlyArray<{ - readonly __typename?: 'quest_completion'; - readonly id: any; - readonly questId: any; - readonly completedByPlayerId: any; - readonly submittedAt: any; - }>; -}; + +export type GetLastQuestCompletionForPlayerQuery = { readonly __typename?: 'query_root', readonly quest_completion: ReadonlyArray<{ readonly __typename?: 'quest_completion', readonly id: any, readonly questId: any, readonly completedByPlayerId: any, readonly submittedAt: any }> }; export type GetGuildTokenQueryVariables = Exact<{ guildId: Scalars['uuid']; }>; -export type GetGuildTokenQuery = { - readonly __typename?: 'query_root'; - readonly token: ReadonlyArray<{ - readonly __typename?: 'token'; - readonly address: string; - readonly chainId: number; - }>; -}; -export type GetTokensQueryVariables = Exact<{ [key: string]: never }>; +export type GetGuildTokenQuery = { readonly __typename?: 'query_root', readonly token: ReadonlyArray<{ readonly __typename?: 'token', readonly address: string, readonly chainId: number }> }; -export type GetTokensQuery = { - readonly __typename?: 'query_root'; - readonly token: ReadonlyArray<{ - readonly __typename?: 'token'; - readonly address: string; - readonly chainId: number; - readonly safeAddress: string; - readonly lastOffset: number; - readonly guildId: any; - }>; -}; +export type GetTokensQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetTokensQuery = { readonly __typename?: 'query_root', readonly token: ReadonlyArray<{ readonly __typename?: 'token', readonly address: string, readonly chainId: number, readonly safeAddress: string, readonly lastOffset: number, readonly guildId: any }> }; export type GetTotalForPlayerQueryVariables = Exact<{ playerAddress: Scalars['String']; tokenAddress: Scalars['String']; }>; -export type GetTotalForPlayerQuery = { - readonly __typename?: 'query_root'; - readonly balance_aggregate: { - readonly __typename?: 'balance_aggregate'; - readonly aggregate?: { - readonly __typename?: 'balance_aggregate_fields'; - readonly sum?: { - readonly __typename?: 'balance_sum_fields'; - readonly amount?: any | null; - } | null; - } | null; - }; -}; + +export type GetTotalForPlayerQuery = { readonly __typename?: 'query_root', readonly balance_aggregate: { readonly __typename?: 'balance_aggregate', readonly aggregate?: { readonly __typename?: 'balance_aggregate_fields', readonly sum?: { readonly __typename?: 'balance_sum_fields', readonly amount?: any | null } | null } | null } }; + +export type GetInitialXpQueryVariables = Exact<{ + playerId: Scalars['uuid']; +}>; + + +export type GetInitialXpQuery = { readonly __typename?: 'query_root', readonly xp: ReadonlyArray<{ readonly __typename?: 'xp', readonly initial?: any | null }> }; export const GuildFragmentDoc = gql` - fragment GuildFragment on guild { - id - guildname - description - joinButtonUrl - logo - name - type - websiteUrl - discordId - status - membershipThroughDiscord - } -`; + fragment GuildFragment on guild { + id + guildname + description + joinButtonUrl + logo + name + type + websiteUrl + discordId + status + membershipThroughDiscord +} + `; export const UpdateDaoDocument = gql` - mutation UpdateDao($daoId: uuid!, $object: dao_set_input!) { - update_dao_by_pk(pk_columns: { id: $daoId }, _set: $object) { - id - } + mutation UpdateDao($daoId: uuid!, $object: dao_set_input!) { + update_dao_by_pk(pk_columns: {id: $daoId}, _set: $object) { + id } -`; +} + `; export const DetachDaosFromGuildDocument = gql` - mutation DetachDaosFromGuild($ids: [uuid!]!) { - update_dao(where: { id: { _in: $ids } }, _set: { guildId: null }) { - affected_rows - } + mutation DetachDaosFromGuild($ids: [uuid!]!) { + update_dao(where: {id: {_in: $ids}}, _set: {guildId: null}) { + affected_rows } -`; +} + `; export const DeleteDaosDocument = gql` - mutation DeleteDaos($ids: [uuid!]!) { - delete_dao(where: { id: { _in: $ids } }) { - affected_rows - } + mutation DeleteDaos($ids: [uuid!]!) { + delete_dao(where: {id: {_in: $ids}}) { + affected_rows } -`; +} + `; export const InsertDaosDocument = gql` - mutation InsertDaos($objects: [dao_insert_input!]!) { - insert_dao(objects: $objects) { - returning { - id - } + mutation InsertDaos($objects: [dao_insert_input!]!) { + insert_dao(objects: $objects) { + returning { + id } } -`; +} + `; export const SyncDaoMembersDocument = gql` - mutation SyncDaoMembers( - $memberEthIdsToRemove: [String!]! - $membersToAdd: [dao_player_insert_input!]! + mutation SyncDaoMembers($memberEthIdsToRemove: [String!]!, $membersToAdd: [dao_player_insert_input!]!) { + delete_dao_player( + where: {Player: {ethereumAddress: {_in: $memberEthIdsToRemove}}} ) { - delete_dao_player( - where: { Player: { ethereumAddress: { _in: $memberEthIdsToRemove } } } - ) { - affected_rows - } - insert_dao_player(objects: $membersToAdd) { - affected_rows - } + affected_rows } -`; + insert_dao_player(objects: $membersToAdd) { + affected_rows + } +} + `; export const RemovePlayerFromDaosDocument = gql` - mutation RemovePlayerFromDaos($playerEthAdress: String!, $daoIds: [uuid!]!) { - delete_dao_player( - where: { - Player: { ethereumAddress: { _eq: $playerEthAdress } } - _and: { daoId: { _in: $daoIds } } - } - ) { - affected_rows - } + mutation RemovePlayerFromDaos($playerEthAdress: String!, $daoIds: [uuid!]!) { + delete_dao_player( + where: {Player: {ethereumAddress: {_eq: $playerEthAdress}}, _and: {daoId: {_in: $daoIds}}} + ) { + affected_rows } -`; +} + `; export const UpsertDaoMembersDocument = gql` - mutation UpsertDaoMembers($objects: [dao_player_insert_input!]!) { - insert_dao_player( - objects: $objects - on_conflict: { constraint: dao_player_pkey, update_columns: [] } - ) { - affected_rows - } + mutation UpsertDaoMembers($objects: [dao_player_insert_input!]!) { + insert_dao_player( + objects: $objects + on_conflict: {constraint: dao_player_pkey, update_columns: []} + ) { + affected_rows } -`; +} + `; export const CreateGuildDocument = gql` - mutation CreateGuild($object: guild_insert_input!) { - insert_guild_one(object: $object) { - guildname - id - } + mutation CreateGuild($object: guild_insert_input!) { + insert_guild_one(object: $object) { + guildname + id } -`; +} + `; export const UpdateGuildDocument = gql` - mutation UpdateGuild($guildId: uuid!, $object: guild_set_input!) { - update_guild_by_pk(pk_columns: { id: $guildId }, _set: $object) { - id - } + mutation UpdateGuild($guildId: uuid!, $object: guild_set_input!) { + update_guild_by_pk(pk_columns: {id: $guildId}, _set: $object) { + id } -`; +} + `; export const CreateGuildMetadataDocument = gql` - mutation CreateGuildMetadata($object: guild_metadata_insert_input!) { - insert_guild_metadata_one(object: $object) { - creatorId - discordId - guildId - discordMetadata - } + mutation CreateGuildMetadata($object: guild_metadata_insert_input!) { + insert_guild_metadata_one(object: $object) { + creatorId + discordId + guildId + discordMetadata } -`; +} + `; export const UpdateGuildDiscordMetadataDocument = gql` - mutation UpdateGuildDiscordMetadata( - $guildId: uuid! - $discordMetadata: jsonb + mutation UpdateGuildDiscordMetadata($guildId: uuid!, $discordMetadata: jsonb) { + update_guild_metadata_by_pk( + pk_columns: {guildId: $guildId} + _set: {discordMetadata: $discordMetadata} ) { - update_guild_metadata_by_pk( - pk_columns: { guildId: $guildId } - _set: { discordMetadata: $discordMetadata } - ) { - guildId - } + guildId } -`; +} + `; export const SyncGuildMembersDocument = gql` - mutation SyncGuildMembers( - $memberDiscordIdsToRemove: [String!]! - $membersToAdd: [guild_player_insert_input!]! + mutation SyncGuildMembers($memberDiscordIdsToRemove: [String!]!, $membersToAdd: [guild_player_insert_input!]!) { + delete_guild_player( + where: {Player: {discordId: {_in: $memberDiscordIdsToRemove}}} ) { - delete_guild_player( - where: { Player: { discordId: { _in: $memberDiscordIdsToRemove } } } - ) { - affected_rows - } - insert_guild_player(objects: $membersToAdd) { - affected_rows - } + affected_rows } -`; + insert_guild_player(objects: $membersToAdd) { + affected_rows + } +} + `; export const RemoveAllGuildMembersDocument = gql` - mutation RemoveAllGuildMembers($guildId: uuid!) { - delete_guild_player(where: { guildId: { _eq: $guildId } }) { - affected_rows - } + mutation RemoveAllGuildMembers($guildId: uuid!) { + delete_guild_player(where: {guildId: {_eq: $guildId}}) { + affected_rows } -`; +} + `; export const CreatePlayerFromEthDocument = gql` - mutation CreatePlayerFromETH($ethereumAddress: String!) { - insert_profile( - objects: [{ player: { data: { ethereumAddress: $ethereumAddress } } }] - ) { - affected_rows - returning { - id - player { - id - ethereumAddress - } - } - } - } -`; -export const UpsertAccountDocument = gql` - mutation UpsertAccount( - $objects: [player_account_insert_input!]! - $on_conflict: player_account_on_conflict = { - constraint: Account_identifier_type_key - update_columns: [playerId] - } - ) { - insert_player_account(objects: $objects, on_conflict: $on_conflict) { - affected_rows - } - } -`; -export const ResetAllPlayersXpDocument = gql` - mutation ResetAllPlayersXP { - update_player(where: {}, _set: { seasonXP: 0, totalXP: 0, rank: null }) { - affected_rows - } - } -`; -export const UpsertProfileDocument = gql` - mutation UpsertProfile( - $objects: [profile_insert_input!]! - $updateColumns: [profile_update_column!]! - ) { - insert_profile( - objects: $objects - on_conflict: { - constraint: profile_player_id_key - update_columns: $updateColumns - } - ) { - affected_rows - } - } -`; -export const UpdatePlayerDocument = gql` - mutation UpdatePlayer( - $ethereumAddress: String! - $rank: PlayerRank_enum - $totalXP: numeric - $seasonXP: numeric - $discordId: String - ) { - update_player( - where: { ethereumAddress: { _ilike: $ethereumAddress } } - _set: { - rank: $rank - totalXP: $totalXP - seasonXP: $seasonXP - discordId: $discordId - } - ) { - affected_rows - returning { + mutation CreatePlayerFromETH($ethereumAddress: String!) { + insert_profile(objects: [{player: {data: {ethereumAddress: $ethereumAddress}}}]) { + affected_rows + returning { + id + player { id ethereumAddress - profile { - username - } } } } -`; +} + `; +export const UpsertAccountDocument = gql` + mutation UpsertAccount($objects: [player_account_insert_input!]!, $on_conflict: player_account_on_conflict = {constraint: Account_identifier_type_key, update_columns: [playerId]}) { + insert_player_account(objects: $objects, on_conflict: $on_conflict) { + affected_rows + } +} + `; +export const ResetAllPlayersXpDocument = gql` + mutation ResetAllPlayersXP { + update_player(where: {}, _set: {seasonXP: 0, totalXP: 0, rank: null}) { + affected_rows + } +} + `; +export const UpsertProfileDocument = gql` + mutation UpsertProfile($objects: [profile_insert_input!]!, $updateColumns: [profile_update_column!]!) { + insert_profile( + objects: $objects + on_conflict: {constraint: profile_player_id_key, update_columns: $updateColumns} + ) { + affected_rows + } +} + `; +export const UpdatePlayerDocument = gql` + mutation UpdatePlayer($ethereumAddress: String!, $rank: PlayerRank_enum, $totalXP: numeric, $seasonXP: numeric, $discordId: String) { + update_player( + where: {ethereumAddress: {_ilike: $ethereumAddress}} + _set: {rank: $rank, totalXP: $totalXP, seasonXP: $seasonXP, discordId: $discordId} + ) { + affected_rows + returning { + id + ethereumAddress + profile { + username + } + } + } +} + `; export const InsertPlayersDocument = gql` - mutation InsertPlayers($objects: [player_insert_input!]!) { - insert_player(objects: $objects) { - affected_rows - returning { - id - } + mutation InsertPlayers($objects: [player_insert_input!]!) { + insert_player(objects: $objects) { + affected_rows + returning { + id } } -`; +} + `; export const RemovePlayerAccountDocument = gql` - mutation RemovePlayerAccount( - $playerId: uuid! - $accountType: AccountType_enum + mutation RemovePlayerAccount($playerId: uuid!, $accountType: AccountType_enum) { + delete_player_account( + where: {playerId: {_eq: $playerId}, type: {_eq: $accountType}} ) { - delete_player_account( - where: { playerId: { _eq: $playerId }, type: { _eq: $accountType } } - ) { - affected_rows - } + affected_rows } -`; +} + `; export const CreateQuestDocument = gql` - mutation CreateQuest($objects: [quest_insert_input!]!) { - insert_quest(objects: $objects) { - affected_rows - returning { - id - } + mutation CreateQuest($objects: [quest_insert_input!]!) { + insert_quest(objects: $objects) { + affected_rows + returning { + id } } -`; +} + `; export const CreateQuestCompletionDocument = gql` - mutation CreateQuestCompletion($objects: [quest_completion_insert_input!]!) { - insert_quest_completion(objects: $objects) { - affected_rows - returning { - id - questId - completedByPlayerId - } + mutation CreateQuestCompletion($objects: [quest_completion_insert_input!]!) { + insert_quest_completion(objects: $objects) { + affected_rows + returning { + id + questId + completedByPlayerId } } -`; +} + `; export const UpdateQuestStatusDocument = gql` - mutation UpdateQuestStatus($quest_id: uuid!, $status: QuestStatus_enum!) { - update_quest_by_pk( - pk_columns: { id: $quest_id } - _set: { status: $status } - ) { - id - } + mutation UpdateQuestStatus($quest_id: uuid!, $status: QuestStatus_enum!) { + update_quest_by_pk(pk_columns: {id: $quest_id}, _set: {status: $status}) { + id } -`; +} + `; export const UpdateQuestCompletionStatusDocument = gql` - mutation UpdateQuestCompletionStatus( - $quest_completion_id: uuid! - $status: QuestCompletionStatus_enum! + mutation UpdateQuestCompletionStatus($quest_completion_id: uuid!, $status: QuestCompletionStatus_enum!) { + update_quest_completion_by_pk( + pk_columns: {id: $quest_completion_id} + _set: {status: $status} ) { - update_quest_completion_by_pk( - pk_columns: { id: $quest_completion_id } - _set: { status: $status } - ) { - id - } + id } -`; +} + `; export const RejectOtherQuestCompletionsDocument = gql` - mutation RejectOtherQuestCompletions( - $accepted_quest_completion_id: uuid! - $questId: uuid! + mutation RejectOtherQuestCompletions($accepted_quest_completion_id: uuid!, $questId: uuid!) { + update_quest_completion( + where: {_and: [{id: {_neq: $accepted_quest_completion_id}}, {questId: {_eq: $questId}}]} + _set: {status: REJECTED} ) { - update_quest_completion( - where: { - _and: [ - { id: { _neq: $accepted_quest_completion_id } } - { questId: { _eq: $questId } } - ] - } - _set: { status: REJECTED } - ) { - affected_rows - } + affected_rows } -`; +} + `; export const AddBalanceDocument = gql` - mutation AddBalance( - $amount: float8! - $blockHeight: Int! - $playerAddress: String! - $tokenAddress: String! + mutation AddBalance($amount: float8!, $blockHeight: Int!, $playerAddress: String!, $tokenAddress: String!) { + insert_balance_one( + object: {amount: $amount, blockHeight: $blockHeight, playerAddress: $playerAddress, tokenAddress: $tokenAddress} ) { - insert_balance_one( - object: { - amount: $amount - blockHeight: $blockHeight - playerAddress: $playerAddress - tokenAddress: $tokenAddress - } - ) { - id - } + id } -`; +} + `; export const UpdateLastOffsetDocument = gql` - mutation UpdateLastOffset($tokenAddress: String!, $offset: Int!) { - update_token( - where: { address: { _eq: $tokenAddress } } - _set: { lastOffset: $offset } - ) { - returning { - lastOffset - } - } - } -`; -export const UpsertXpDocument = gql` - mutation UpsertXP( - $balance: float8! - $playerId: uuid! - $tokenAddress: String! + mutation UpdateLastOffset($tokenAddress: String!, $offset: Int!) { + update_token( + where: {address: {_eq: $tokenAddress}} + _set: {lastOffset: $offset} ) { - insert_xp( - objects: { - balance: $balance - playerId: $playerId - tokenAddress: $tokenAddress - } - on_conflict: { - update_columns: balance - constraint: xp_player_id_token_address_key - } - ) { - returning { - balance - tokenAddress - playerId - id - } + returning { + lastOffset } } -`; -export const GetPlayerDaosDocument = gql` - query GetPlayerDaos($ethereumAddress: String) { - dao_player( - where: { Player: { ethereumAddress: { _eq: $ethereumAddress } } } - ) { - daoId +} + `; +export const UpsertXpDocument = gql` + mutation UpsertXP($balance: float8!, $playerId: uuid!, $tokenAddress: String!) { + insert_xp( + objects: {balance: $balance, playerId: $playerId, tokenAddress: $tokenAddress} + on_conflict: {update_columns: balance, constraint: xp_player_id_token_address_key} + ) { + returning { + balance + tokenAddress playerId - Dao { - contractAddress - network - } + id } } -`; -export const GetDaosByAddressDocument = gql` - query GetDaosByAddress($contractAddress: [String!]) { - dao(where: { contractAddress: { _in: $contractAddress } }) { - id +} + `; +export const GetPlayerDaosDocument = gql` + query GetPlayerDaos($ethereumAddress: String) { + dao_player(where: {Player: {ethereumAddress: {_eq: $ethereumAddress}}}) { + daoId + playerId + Dao { contractAddress network } } -`; +} + `; +export const GetDaosByAddressDocument = gql` + query GetDaosByAddress($contractAddress: [String!]) { + dao(where: {contractAddress: {_in: $contractAddress}}) { + id + contractAddress + network + } +} + `; export const GetGuildDocument = gql` - query GetGuild($id: uuid!) { - guild(where: { id: { _eq: $id } }) { - ...GuildFragment - daos { - id - guildId - contractAddress - network - label - url - players { - playerId - visible - } - } - } - } - ${GuildFragmentDoc} -`; -export const GetGuildMetadataByDiscordIdDocument = gql` - query GetGuildMetadataByDiscordId($discordId: String!) { - guild(where: { discordId: { _eq: $discordId } }) { + query GetGuild($id: uuid!) { + guild(where: {id: {_eq: $id}}) { + ...GuildFragment + daos { id - discordId - guildname - metadata { - guildId - creatorId - discordMetadata + guildId + contractAddress + network + label + url + players { + playerId + visible } } } -`; -export const GetGuildsDocument = gql` - query GetGuilds($status: GuildStatus_enum) { - guild(where: { status: { _eq: $status } }) { - ...GuildFragment - } - } - ${GuildFragmentDoc} -`; -export const GetGuildMetadataByIdDocument = gql` - query GetGuildMetadataById($id: uuid!) { - guild_metadata(where: { guildId: { _eq: $id } }) { +} + ${GuildFragmentDoc}`; +export const GetGuildMetadataByDiscordIdDocument = gql` + query GetGuildMetadataByDiscordId($discordId: String!) { + guild(where: {discordId: {_eq: $discordId}}) { + id + discordId + guildname + metadata { guildId creatorId - discordId discordMetadata } } -`; -export const GetGuildMembersDocument = gql` - query GetGuildMembers($id: uuid!) { - guild(where: { id: { _eq: $id } }) { - id - guild_players { - Player { - id - discordId - ethereumAddress - } - } - } +} + `; +export const GetGuildsDocument = gql` + query GetGuilds($status: GuildStatus_enum) { + guild(where: {status: {_eq: $status}}) { + ...GuildFragment } -`; -export const GetGuildPlayerDiscordIdsDocument = gql` - query GetGuildPlayerDiscordIds($guildId: uuid!, $playerId: uuid!) { - guild_player( - where: { - _and: { guildId: { _eq: $guildId }, playerId: { _eq: $playerId } } - } - ) { +} + ${GuildFragmentDoc}`; +export const GetGuildMetadataByIdDocument = gql` + query GetGuildMetadataById($id: uuid!) { + guild_metadata(where: {guildId: {_eq: $id}}) { + guildId + creatorId + discordId + discordMetadata + } +} + `; +export const GetGuildMembersDocument = gql` + query GetGuildMembers($id: uuid!) { + guild(where: {id: {_eq: $id}}) { + id + guild_players { Player { id discordId - } - Guild { - id - discordId + ethereumAddress } } } -`; -export const GetPlayerDocument = gql` - query GetPlayer($playerId: uuid!) { - player_by_pk(id: $playerId) { +} + `; +export const GetGuildPlayerDiscordIdsDocument = gql` + query GetGuildPlayerDiscordIds($guildId: uuid!, $playerId: uuid!) { + guild_player( + where: {_and: {guildId: {_eq: $guildId}, playerId: {_eq: $playerId}}} + ) { + Player { + id + discordId + } + Guild { id - ethereumAddress discordId - profile { - username - } - accounts { - identifier - type - } } } -`; +} + `; +export const GetPlayerDocument = gql` + query GetPlayer($playerId: uuid!) { + player_by_pk(id: $playerId) { + id + ethereumAddress + discordId + profile { + username + } + accounts { + identifier + type + } + } +} + `; export const GetPlayerFromEthDocument = gql` - query GetPlayerFromETH($ethereumAddress: String) { - player(where: { ethereumAddress: { _eq: $ethereumAddress } }) { - id - } + query GetPlayerFromETH($ethereumAddress: String) { + player(where: {ethereumAddress: {_eq: $ethereumAddress}}) { + id } -`; +} + `; export const GetPlayersByDiscordIdDocument = gql` - query GetPlayersByDiscordId($discordIds: [String!]!) { - player(where: { discordId: { _in: $discordIds } }) { - id - } + query GetPlayersByDiscordId($discordIds: [String!]!) { + player(where: {discordId: {_in: $discordIds}}) { + id } -`; +} + `; export const GetCacheEntriesDocument = gql` - query GetCacheEntries($updatedBefore: timestamptz!) { - profile( - where: { - _or: [ - { lastCheckedAt: { _lt: $updatedBefore } } - { lastCheckedAt: { _is_null: true } } - ] - } - ) { - playerId - } + query GetCacheEntries($updatedBefore: timestamptz!) { + profile( + where: {_or: [{lastCheckedAt: {_lt: $updatedBefore}}, {lastCheckedAt: {_is_null: true}}]} + ) { + playerId } -`; +} + `; export const GetQuestByIdDocument = gql` - query GetQuestById($questId: uuid!) { - quest_by_pk(id: $questId) { - id - cooldown - status - repetition - createdByPlayerId - title - } + query GetQuestById($questId: uuid!) { + quest_by_pk(id: $questId) { + id + cooldown + status + repetition + createdByPlayerId + title } -`; +} + `; export const GetQuestCompletionsDocument = gql` - query GetQuestCompletions($questId: uuid!, $playerId: uuid!) { - quest_completion( - where: { - questId: { _eq: $questId } - completedByPlayerId: { _eq: $playerId } - } - ) { - id - questId - completedByPlayerId - } + query GetQuestCompletions($questId: uuid!, $playerId: uuid!) { + quest_completion( + where: {questId: {_eq: $questId}, completedByPlayerId: {_eq: $playerId}} + ) { + id + questId + completedByPlayerId } -`; +} + `; export const GetQuestCompletionByIdDocument = gql` - query GetQuestCompletionById($quest_completion_id: uuid!) { - quest_completion_by_pk(id: $quest_completion_id) { - id - questId - completedByPlayerId - status - } + query GetQuestCompletionById($quest_completion_id: uuid!) { + quest_completion_by_pk(id: $quest_completion_id) { + id + questId + completedByPlayerId + status } -`; +} + `; export const GetLastQuestCompletionForPlayerDocument = gql` - query GetLastQuestCompletionForPlayer($questId: uuid!, $playerId: uuid!) { - quest_completion( - limit: 1 - order_by: { submittedAt: desc } - where: { - questId: { _eq: $questId } - completedByPlayerId: { _eq: $playerId } - } - ) { - id - questId - completedByPlayerId - submittedAt - } + query GetLastQuestCompletionForPlayer($questId: uuid!, $playerId: uuid!) { + quest_completion( + limit: 1 + order_by: {submittedAt: desc} + where: {questId: {_eq: $questId}, completedByPlayerId: {_eq: $playerId}} + ) { + id + questId + completedByPlayerId + submittedAt } -`; +} + `; export const GetGuildTokenDocument = gql` - query GetGuildToken($guildId: uuid!) { - token(where: { guildId: { _eq: $guildId } }) { - address - chainId - } + query GetGuildToken($guildId: uuid!) { + token(where: {guildId: {_eq: $guildId}}) { + address + chainId } -`; +} + `; export const GetTokensDocument = gql` - query GetTokens { - token { - address - chainId - safeAddress - lastOffset - guildId - } + query GetTokens { + token { + address + chainId + safeAddress + lastOffset + guildId } -`; +} + `; export const GetTotalForPlayerDocument = gql` - query GetTotalForPlayer($playerAddress: String!, $tokenAddress: String!) { - balance_aggregate( - where: { - tokenAddress: { _ilike: $tokenAddress } - playerAddress: { _ilike: $playerAddress } - } - ) { - aggregate { - sum { - amount - } + query GetTotalForPlayer($playerAddress: String!, $tokenAddress: String!) { + balance_aggregate( + where: {tokenAddress: {_ilike: $tokenAddress}, playerAddress: {_ilike: $playerAddress}} + ) { + aggregate { + sum { + amount } } } -`; +} + `; +export const GetInitialXpDocument = gql` + query GetInitialXP($playerId: uuid!) { + xp(where: {playerId: {_eq: $playerId}}) { + initial + } +} + `; + +export type SdkFunctionWrapper = (action: (requestHeaders?:Record) => Promise, operationName: string) => Promise; -export type SdkFunctionWrapper = ( - action: (requestHeaders?: Record) => Promise, - operationName: string, -) => Promise; const defaultWrapper: SdkFunctionWrapper = (action, _operationName) => action(); -export function getSdk( - client: GraphQLClient, - withWrapper: SdkFunctionWrapper = defaultWrapper, -) { +export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) { return { - UpdateDao( - variables: UpdateDaoMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(UpdateDaoDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'UpdateDao', - ); + UpdateDao(variables: UpdateDaoMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateDaoDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDao'); }, - DetachDaosFromGuild( - variables: DetachDaosFromGuildMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - DetachDaosFromGuildDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'DetachDaosFromGuild', - ); + DetachDaosFromGuild(variables: DetachDaosFromGuildMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(DetachDaosFromGuildDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DetachDaosFromGuild'); }, - DeleteDaos( - variables: DeleteDaosMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(DeleteDaosDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'DeleteDaos', - ); + DeleteDaos(variables: DeleteDaosMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(DeleteDaosDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteDaos'); }, - InsertDaos( - variables: InsertDaosMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(InsertDaosDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'InsertDaos', - ); + InsertDaos(variables: InsertDaosMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(InsertDaosDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertDaos'); }, - SyncDaoMembers( - variables: SyncDaoMembersMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - SyncDaoMembersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'SyncDaoMembers', - ); + SyncDaoMembers(variables: SyncDaoMembersMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(SyncDaoMembersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SyncDaoMembers'); }, - RemovePlayerFromDaos( - variables: RemovePlayerFromDaosMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - RemovePlayerFromDaosDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'RemovePlayerFromDaos', - ); + RemovePlayerFromDaos(variables: RemovePlayerFromDaosMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(RemovePlayerFromDaosDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RemovePlayerFromDaos'); }, - UpsertDaoMembers( - variables: UpsertDaoMembersMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpsertDaoMembersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpsertDaoMembers', - ); + UpsertDaoMembers(variables: UpsertDaoMembersMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpsertDaoMembersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpsertDaoMembers'); }, - CreateGuild( - variables: CreateGuildMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(CreateGuildDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'CreateGuild', - ); + CreateGuild(variables: CreateGuildMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(CreateGuildDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateGuild'); }, - UpdateGuild( - variables: UpdateGuildMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(UpdateGuildDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'UpdateGuild', - ); + UpdateGuild(variables: UpdateGuildMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateGuildDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateGuild'); }, - CreateGuildMetadata( - variables: CreateGuildMetadataMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - CreateGuildMetadataDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'CreateGuildMetadata', - ); + CreateGuildMetadata(variables: CreateGuildMetadataMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(CreateGuildMetadataDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateGuildMetadata'); }, - UpdateGuildDiscordMetadata( - variables: UpdateGuildDiscordMetadataMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpdateGuildDiscordMetadataDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpdateGuildDiscordMetadata', - ); + UpdateGuildDiscordMetadata(variables: UpdateGuildDiscordMetadataMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateGuildDiscordMetadataDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateGuildDiscordMetadata'); }, - SyncGuildMembers( - variables: SyncGuildMembersMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - SyncGuildMembersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'SyncGuildMembers', - ); + SyncGuildMembers(variables: SyncGuildMembersMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(SyncGuildMembersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SyncGuildMembers'); }, - RemoveAllGuildMembers( - variables: RemoveAllGuildMembersMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - RemoveAllGuildMembersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'RemoveAllGuildMembers', - ); + RemoveAllGuildMembers(variables: RemoveAllGuildMembersMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(RemoveAllGuildMembersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RemoveAllGuildMembers'); }, - CreatePlayerFromETH( - variables: CreatePlayerFromEthMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - CreatePlayerFromEthDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'CreatePlayerFromETH', - ); + CreatePlayerFromETH(variables: CreatePlayerFromEthMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(CreatePlayerFromEthDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreatePlayerFromETH'); }, - UpsertAccount( - variables: UpsertAccountMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpsertAccountDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpsertAccount', - ); + UpsertAccount(variables: UpsertAccountMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpsertAccountDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpsertAccount'); }, - ResetAllPlayersXP( - variables?: ResetAllPlayersXpMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - ResetAllPlayersXpDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'ResetAllPlayersXP', - ); + ResetAllPlayersXP(variables?: ResetAllPlayersXpMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(ResetAllPlayersXpDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ResetAllPlayersXP'); }, - UpsertProfile( - variables: UpsertProfileMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpsertProfileDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpsertProfile', - ); + UpsertProfile(variables: UpsertProfileMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpsertProfileDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpsertProfile'); }, - UpdatePlayer( - variables: UpdatePlayerMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpdatePlayerDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpdatePlayer', - ); + UpdatePlayer(variables: UpdatePlayerMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdatePlayerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdatePlayer'); }, - InsertPlayers( - variables: InsertPlayersMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - InsertPlayersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'InsertPlayers', - ); + InsertPlayers(variables: InsertPlayersMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(InsertPlayersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertPlayers'); }, - RemovePlayerAccount( - variables: RemovePlayerAccountMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - RemovePlayerAccountDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'RemovePlayerAccount', - ); + RemovePlayerAccount(variables: RemovePlayerAccountMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(RemovePlayerAccountDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RemovePlayerAccount'); }, - CreateQuest( - variables: CreateQuestMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(CreateQuestDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'CreateQuest', - ); + CreateQuest(variables: CreateQuestMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(CreateQuestDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateQuest'); }, - CreateQuestCompletion( - variables: CreateQuestCompletionMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - CreateQuestCompletionDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'CreateQuestCompletion', - ); + CreateQuestCompletion(variables: CreateQuestCompletionMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(CreateQuestCompletionDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateQuestCompletion'); }, - UpdateQuestStatus( - variables: UpdateQuestStatusMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpdateQuestStatusDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpdateQuestStatus', - ); + UpdateQuestStatus(variables: UpdateQuestStatusMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateQuestStatusDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateQuestStatus'); }, - UpdateQuestCompletionStatus( - variables: UpdateQuestCompletionStatusMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpdateQuestCompletionStatusDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpdateQuestCompletionStatus', - ); + UpdateQuestCompletionStatus(variables: UpdateQuestCompletionStatusMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateQuestCompletionStatusDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateQuestCompletionStatus'); }, - RejectOtherQuestCompletions( - variables: RejectOtherQuestCompletionsMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - RejectOtherQuestCompletionsDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'RejectOtherQuestCompletions', - ); + RejectOtherQuestCompletions(variables: RejectOtherQuestCompletionsMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(RejectOtherQuestCompletionsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RejectOtherQuestCompletions'); }, - AddBalance( - variables: AddBalanceMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(AddBalanceDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'AddBalance', - ); + AddBalance(variables: AddBalanceMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(AddBalanceDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBalance'); }, - UpdateLastOffset( - variables: UpdateLastOffsetMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - UpdateLastOffsetDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'UpdateLastOffset', - ); + UpdateLastOffset(variables: UpdateLastOffsetMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpdateLastOffsetDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateLastOffset'); }, - UpsertXP( - variables: UpsertXpMutationVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(UpsertXpDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'UpsertXP', - ); + UpsertXP(variables: UpsertXpMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(UpsertXpDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpsertXP'); }, - GetPlayerDaos( - variables?: GetPlayerDaosQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetPlayerDaosDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetPlayerDaos', - ); + GetPlayerDaos(variables?: GetPlayerDaosQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetPlayerDaosDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetPlayerDaos'); }, - GetDaosByAddress( - variables?: GetDaosByAddressQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetDaosByAddressDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetDaosByAddress', - ); + GetDaosByAddress(variables?: GetDaosByAddressQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetDaosByAddressDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetDaosByAddress'); }, - GetGuild( - variables: GetGuildQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetGuildDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetGuild', - ); + GetGuild(variables: GetGuildQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuild'); }, - GetGuildMetadataByDiscordId( - variables: GetGuildMetadataByDiscordIdQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetGuildMetadataByDiscordIdDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetGuildMetadataByDiscordId', - ); + GetGuildMetadataByDiscordId(variables: GetGuildMetadataByDiscordIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildMetadataByDiscordIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuildMetadataByDiscordId'); }, - GetGuilds( - variables?: GetGuildsQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetGuildsDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetGuilds', - ); + GetGuilds(variables?: GetGuildsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuilds'); }, - GetGuildMetadataById( - variables: GetGuildMetadataByIdQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetGuildMetadataByIdDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetGuildMetadataById', - ); + GetGuildMetadataById(variables: GetGuildMetadataByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildMetadataByIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuildMetadataById'); }, - GetGuildMembers( - variables: GetGuildMembersQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetGuildMembersDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetGuildMembers', - ); + GetGuildMembers(variables: GetGuildMembersQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildMembersDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuildMembers'); }, - GetGuildPlayerDiscordIds( - variables: GetGuildPlayerDiscordIdsQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetGuildPlayerDiscordIdsDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetGuildPlayerDiscordIds', - ); + GetGuildPlayerDiscordIds(variables: GetGuildPlayerDiscordIdsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildPlayerDiscordIdsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuildPlayerDiscordIds'); }, - GetPlayer( - variables: GetPlayerQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetPlayerDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetPlayer', - ); + GetPlayer(variables: GetPlayerQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetPlayerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetPlayer'); }, - GetPlayerFromETH( - variables?: GetPlayerFromEthQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetPlayerFromEthDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetPlayerFromETH', - ); + GetPlayerFromETH(variables?: GetPlayerFromEthQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetPlayerFromEthDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetPlayerFromETH'); }, - GetPlayersByDiscordId( - variables: GetPlayersByDiscordIdQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetPlayersByDiscordIdDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetPlayersByDiscordId', - ); + GetPlayersByDiscordId(variables: GetPlayersByDiscordIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetPlayersByDiscordIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetPlayersByDiscordId'); }, - GetCacheEntries( - variables: GetCacheEntriesQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetCacheEntriesDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetCacheEntries', - ); + GetCacheEntries(variables: GetCacheEntriesQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetCacheEntriesDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetCacheEntries'); }, - GetQuestById( - variables: GetQuestByIdQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetQuestByIdDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetQuestById', - ); + GetQuestById(variables: GetQuestByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetQuestByIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetQuestById'); }, - GetQuestCompletions( - variables: GetQuestCompletionsQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetQuestCompletionsDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetQuestCompletions', - ); + GetQuestCompletions(variables: GetQuestCompletionsQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetQuestCompletionsDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetQuestCompletions'); }, - GetQuestCompletionById( - variables: GetQuestCompletionByIdQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetQuestCompletionByIdDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetQuestCompletionById', - ); + GetQuestCompletionById(variables: GetQuestCompletionByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetQuestCompletionByIdDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetQuestCompletionById'); }, - GetLastQuestCompletionForPlayer( - variables: GetLastQuestCompletionForPlayerQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetLastQuestCompletionForPlayerDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetLastQuestCompletionForPlayer', - ); + GetLastQuestCompletionForPlayer(variables: GetLastQuestCompletionForPlayerQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetLastQuestCompletionForPlayerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetLastQuestCompletionForPlayer'); }, - GetGuildToken( - variables: GetGuildTokenQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetGuildTokenDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetGuildToken', - ); + GetGuildToken(variables: GetGuildTokenQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetGuildTokenDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetGuildToken'); }, - GetTokens( - variables?: GetTokensQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(GetTokensDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'GetTokens', - ); + GetTokens(variables?: GetTokensQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetTokensDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetTokens'); }, - GetTotalForPlayer( - variables: GetTotalForPlayerQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request( - GetTotalForPlayerDocument, - variables, - { ...requestHeaders, ...wrappedRequestHeaders }, - ), - 'GetTotalForPlayer', - ); + GetTotalForPlayer(variables: GetTotalForPlayerQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetTotalForPlayerDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetTotalForPlayer'); }, + GetInitialXP(variables: GetInitialXpQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise { + return withWrapper((wrappedRequestHeaders) => client.request(GetInitialXpDocument, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GetInitialXP'); + } }; } -export type Sdk = ReturnType; +export type Sdk = ReturnType; \ No newline at end of file diff --git a/packages/web/graphql/autogen/types.ts b/packages/web/graphql/autogen/types.ts index f5a9df8d..26235392 100644 --- a/packages/web/graphql/autogen/types.ts +++ b/packages/web/graphql/autogen/types.ts @@ -10615,6 +10615,7 @@ export type Uuid_Comparison_Exp = { export type Xp = { balance: Scalars['float8']; id: Scalars['uuid']; + initial?: Maybe; /** An object relationship */ player: Player; playerId: Scalars['uuid']; @@ -10674,11 +10675,13 @@ export type Xp_Arr_Rel_Insert_Input = { /** aggregate avg on columns */ export type Xp_Avg_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by avg() on columns of table "xp" */ export type Xp_Avg_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** Boolean expression to filter rows from the table "xp". All fields are combined with a logical 'AND'. */ @@ -10688,6 +10691,7 @@ export type Xp_Bool_Exp = { _or?: InputMaybe>>; balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; player?: InputMaybe; playerId?: InputMaybe; token?: InputMaybe; @@ -10705,12 +10709,14 @@ export enum Xp_Constraint { /** input type for incrementing integer column in table "xp" */ export type Xp_Inc_Input = { balance?: InputMaybe; + initial?: InputMaybe; }; /** input type for inserting data into table "xp" */ export type Xp_Insert_Input = { balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; player?: InputMaybe; playerId?: InputMaybe; token?: InputMaybe; @@ -10721,6 +10727,7 @@ export type Xp_Insert_Input = { export type Xp_Max_Fields = { balance?: Maybe; id?: Maybe; + initial?: Maybe; playerId?: Maybe; tokenAddress?: Maybe; }; @@ -10729,6 +10736,7 @@ export type Xp_Max_Fields = { export type Xp_Max_Order_By = { balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; playerId?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -10737,6 +10745,7 @@ export type Xp_Max_Order_By = { export type Xp_Min_Fields = { balance?: Maybe; id?: Maybe; + initial?: Maybe; playerId?: Maybe; tokenAddress?: Maybe; }; @@ -10745,6 +10754,7 @@ export type Xp_Min_Fields = { export type Xp_Min_Order_By = { balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; playerId?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -10774,6 +10784,7 @@ export type Xp_On_Conflict = { export type Xp_Order_By = { balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; player?: InputMaybe; playerId?: InputMaybe; token?: InputMaybe; @@ -10792,6 +10803,8 @@ export enum Xp_Select_Column { /** column name */ Id = 'id', /** column name */ + Initial = 'initial', + /** column name */ PlayerId = 'playerId', /** column name */ TokenAddress = 'tokenAddress', @@ -10801,6 +10814,7 @@ export enum Xp_Select_Column { export type Xp_Set_Input = { balance?: InputMaybe; id?: InputMaybe; + initial?: InputMaybe; playerId?: InputMaybe; tokenAddress?: InputMaybe; }; @@ -10808,41 +10822,49 @@ export type Xp_Set_Input = { /** aggregate stddev on columns */ export type Xp_Stddev_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by stddev() on columns of table "xp" */ export type Xp_Stddev_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** aggregate stddev_pop on columns */ export type Xp_Stddev_Pop_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by stddev_pop() on columns of table "xp" */ export type Xp_Stddev_Pop_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** aggregate stddev_samp on columns */ export type Xp_Stddev_Samp_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by stddev_samp() on columns of table "xp" */ export type Xp_Stddev_Samp_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** aggregate sum on columns */ export type Xp_Sum_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by sum() on columns of table "xp" */ export type Xp_Sum_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** update columns of table "xp" */ @@ -10852,6 +10874,8 @@ export enum Xp_Update_Column { /** column name */ Id = 'id', /** column name */ + Initial = 'initial', + /** column name */ PlayerId = 'playerId', /** column name */ TokenAddress = 'tokenAddress', @@ -10860,31 +10884,37 @@ export enum Xp_Update_Column { /** aggregate var_pop on columns */ export type Xp_Var_Pop_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by var_pop() on columns of table "xp" */ export type Xp_Var_Pop_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** aggregate var_samp on columns */ export type Xp_Var_Samp_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by var_samp() on columns of table "xp" */ export type Xp_Var_Samp_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; /** aggregate variance on columns */ export type Xp_Variance_Fields = { balance?: Maybe; + initial?: Maybe; }; /** order by variance() on columns of table "xp" */ export type Xp_Variance_Order_By = { balance?: InputMaybe; + initial?: InputMaybe; }; export type PlayerFragment = { diff --git a/schema.graphql b/schema.graphql index 47c9c736..a49af1c5 100644 --- a/schema.graphql +++ b/schema.graphql @@ -13441,6 +13441,7 @@ columns and relationships of "xp" type xp { balance: float8! id: uuid! + initial: float8 """An object relationship""" player: player! @@ -13504,6 +13505,7 @@ input xp_arr_rel_insert_input { """aggregate avg on columns""" type xp_avg_fields { balance: Float + initial: Float } """ @@ -13511,6 +13513,7 @@ order by avg() on columns of table "xp" """ input xp_avg_order_by { balance: order_by + initial: order_by } """ @@ -13522,6 +13525,7 @@ input xp_bool_exp { _or: [xp_bool_exp] balance: float8_comparison_exp id: uuid_comparison_exp + initial: float8_comparison_exp player: player_bool_exp playerId: uuid_comparison_exp token: token_bool_exp @@ -13544,6 +13548,7 @@ input type for incrementing integer column in table "xp" """ input xp_inc_input { balance: float8 + initial: float8 } """ @@ -13552,6 +13557,7 @@ input type for inserting data into table "xp" input xp_insert_input { balance: float8 id: uuid + initial: float8 player: player_obj_rel_insert_input playerId: uuid token: token_obj_rel_insert_input @@ -13562,6 +13568,7 @@ input xp_insert_input { type xp_max_fields { balance: float8 id: uuid + initial: float8 playerId: uuid tokenAddress: String } @@ -13572,6 +13579,7 @@ order by max() on columns of table "xp" input xp_max_order_by { balance: order_by id: order_by + initial: order_by playerId: order_by tokenAddress: order_by } @@ -13580,6 +13588,7 @@ input xp_max_order_by { type xp_min_fields { balance: float8 id: uuid + initial: float8 playerId: uuid tokenAddress: String } @@ -13590,6 +13599,7 @@ order by min() on columns of table "xp" input xp_min_order_by { balance: order_by id: order_by + initial: order_by playerId: order_by tokenAddress: order_by } @@ -13628,6 +13638,7 @@ ordering options when selecting data from "xp" input xp_order_by { balance: order_by id: order_by + initial: order_by player: player_order_by playerId: order_by token: token_order_by @@ -13651,6 +13662,9 @@ enum xp_select_column { """column name""" id + """column name""" + initial + """column name""" playerId @@ -13664,6 +13678,7 @@ input type for updating data in table "xp" input xp_set_input { balance: float8 id: uuid + initial: float8 playerId: uuid tokenAddress: String } @@ -13671,6 +13686,7 @@ input xp_set_input { """aggregate stddev on columns""" type xp_stddev_fields { balance: Float + initial: Float } """ @@ -13678,11 +13694,13 @@ order by stddev() on columns of table "xp" """ input xp_stddev_order_by { balance: order_by + initial: order_by } """aggregate stddev_pop on columns""" type xp_stddev_pop_fields { balance: Float + initial: Float } """ @@ -13690,11 +13708,13 @@ order by stddev_pop() on columns of table "xp" """ input xp_stddev_pop_order_by { balance: order_by + initial: order_by } """aggregate stddev_samp on columns""" type xp_stddev_samp_fields { balance: Float + initial: Float } """ @@ -13702,11 +13722,13 @@ order by stddev_samp() on columns of table "xp" """ input xp_stddev_samp_order_by { balance: order_by + initial: order_by } """aggregate sum on columns""" type xp_sum_fields { balance: float8 + initial: float8 } """ @@ -13714,6 +13736,7 @@ order by sum() on columns of table "xp" """ input xp_sum_order_by { balance: order_by + initial: order_by } """ @@ -13726,6 +13749,9 @@ enum xp_update_column { """column name""" id + """column name""" + initial + """column name""" playerId @@ -13736,6 +13762,7 @@ enum xp_update_column { """aggregate var_pop on columns""" type xp_var_pop_fields { balance: Float + initial: Float } """ @@ -13743,11 +13770,13 @@ order by var_pop() on columns of table "xp" """ input xp_var_pop_order_by { balance: order_by + initial: order_by } """aggregate var_samp on columns""" type xp_var_samp_fields { balance: Float + initial: Float } """ @@ -13755,11 +13784,13 @@ order by var_samp() on columns of table "xp" """ input xp_var_samp_order_by { balance: order_by + initial: order_by } """aggregate variance on columns""" type xp_variance_fields { balance: Float + initial: Float } """ @@ -13767,5 +13798,6 @@ order by variance() on columns of table "xp" """ input xp_variance_order_by { balance: order_by + initial: order_by }