mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 12:13:10 -05:00
86 lines
1.6 KiB
GraphQL
86 lines
1.6 KiB
GraphQL
### This file was generated by Nexus Schema
|
|
### Do not make changes to this file directly
|
|
|
|
|
|
type Mutation {
|
|
updateUserProfile(profile: UpdateUserProfileInput!): Boolean!
|
|
}
|
|
|
|
type Player {
|
|
name: String!
|
|
placements(after: XRankPlacementWhereUniqueInput, before: XRankPlacementWhereUniqueInput, first: Int, last: Int): [XRankPlacement!]!
|
|
switchAccountId: String!
|
|
user: User
|
|
}
|
|
|
|
type Profile {
|
|
bio: String
|
|
country: String
|
|
customUrlPath: String
|
|
sensMotion: Float
|
|
sensStick: Float
|
|
twitchName: String
|
|
twitterName: String
|
|
weaponPool: [String!]!
|
|
youtubeId: String
|
|
}
|
|
|
|
type Query {
|
|
getPlayersXRankPlacements(switchAccountId: String!): [XRankPlacement!]!
|
|
getUserByIdentifier(identifier: String!): User
|
|
getXRankPlacements(mode: RankedMode!, month: Int!, year: Int!): [XRankPlacement!]!
|
|
}
|
|
|
|
enum RankedMode {
|
|
CB
|
|
RM
|
|
SZ
|
|
TC
|
|
}
|
|
|
|
input SwitchAccountIdModeMonthYearCompoundUniqueInput {
|
|
mode: RankedMode!
|
|
month: Int!
|
|
switchAccountId: String!
|
|
year: Int!
|
|
}
|
|
|
|
input UpdateUserProfileInput {
|
|
bio: String
|
|
country: String
|
|
customUrlPath: String
|
|
sensMotion: Float
|
|
sensStick: Float
|
|
twitchName: String
|
|
twitterName: String
|
|
weaponPool: [String!]!
|
|
youtubeId: String
|
|
}
|
|
|
|
type User {
|
|
avatarUrl: String
|
|
discordId: String!
|
|
fullUsername: String!
|
|
id: Int!
|
|
profile: Profile
|
|
profilePath: String!
|
|
}
|
|
|
|
type XRankPlacement {
|
|
id: Int!
|
|
mode: RankedMode!
|
|
month: Int!
|
|
player: Player!
|
|
playerName: String!
|
|
ranking: Int!
|
|
switchAccountId: String!
|
|
weapon: String!
|
|
xPower: Float!
|
|
year: Int!
|
|
}
|
|
|
|
input XRankPlacementWhereUniqueInput {
|
|
id: Int
|
|
switchAccountId_mode_month_year: SwitchAccountIdModeMonthYearCompoundUniqueInput
|
|
}
|