diff --git a/src/index.tsx b/src/index.tsx index afb30a6..1c544b4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2899,6 +2899,10 @@ export type QueryGetDrillRunLeaderboardArgs = { drillTag: Scalars["String"]["input"]; interval?: InputMaybe; limit?: Scalars["Int"]["input"]; + pocketSizeMax?: InputMaybe; + pocketSizeMin?: InputMaybe; + tableSizeMax?: InputMaybe; + tableSizeMin?: InputMaybe; }; export type QueryGetFeedVideosArgs = { @@ -4626,6 +4630,10 @@ export type GetDrillRunLeaderboardQueryVariables = Exact<{ drillTag: Scalars["String"]["input"]; interval?: InputMaybe; limit?: InputMaybe; + tableSizeMin?: InputMaybe; + tableSizeMax?: InputMaybe; + pocketSizeMin?: InputMaybe; + pocketSizeMax?: InputMaybe; }>; export type GetDrillRunLeaderboardQuery = { @@ -4639,6 +4647,11 @@ export type GetDrillRunLeaderboardQuery = { id: number; runLength: number; videoId: number; + video: { + __typename?: "VideoGQL"; + tableSize: number; + pocketSize?: number | null; + }; user: { __typename?: "UserGQL"; id: number; @@ -9650,16 +9663,28 @@ export const GetDrillRunLeaderboardDocument = gql` $drillTag: String! $interval: TimeInterval $limit: Int = 50 + $tableSizeMin: Float + $tableSizeMax: Float + $pocketSizeMin: Float + $pocketSizeMax: Float ) { getDrillRunLeaderboard( drillTag: $drillTag interval: $interval limit: $limit + tableSizeMin: $tableSizeMin + tableSizeMax: $tableSizeMax + pocketSizeMin: $pocketSizeMin + pocketSizeMax: $pocketSizeMax ) { entries { id runLength videoId + video { + tableSize + pocketSize + } user { id username @@ -9692,6 +9717,10 @@ export const GetDrillRunLeaderboardDocument = gql` * drillTag: // value for 'drillTag' * interval: // value for 'interval' * limit: // value for 'limit' + * tableSizeMin: // value for 'tableSizeMin' + * tableSizeMax: // value for 'tableSizeMax' + * pocketSizeMin: // value for 'pocketSizeMin' + * pocketSizeMax: // value for 'pocketSizeMax' * }, * }); */ diff --git a/src/operations/leaderboards.gql b/src/operations/leaderboards.gql index 3bbc5bb..b8d82dc 100644 --- a/src/operations/leaderboards.gql +++ b/src/operations/leaderboards.gql @@ -35,16 +35,28 @@ query GetDrillRunLeaderboard( $drillTag: String! $interval: TimeInterval $limit: Int = 50 + $tableSizeMin: Float + $tableSizeMax: Float + $pocketSizeMin: Float + $pocketSizeMax: Float ) { getDrillRunLeaderboard( drillTag: $drillTag interval: $interval limit: $limit + tableSizeMin: $tableSizeMin + tableSizeMax: $tableSizeMax + pocketSizeMin: $pocketSizeMin + pocketSizeMax: $pocketSizeMax ) { entries { id runLength videoId + video { + tableSize + pocketSize + } user { id username diff --git a/src/schema.gql b/src/schema.gql index 9587430..7f3b1b7 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -35,6 +35,10 @@ type Query { drillTag: String! interval: TimeInterval = null limit: Int! = 50 + tableSizeMin: Float = null + tableSizeMax: Float = null + pocketSizeMin: Float = null + pocketSizeMax: Float = null ): DrillRunLeaderboardGQL! getMyDrillRuns(drillTag: String!, limit: Int! = 50): [RunGQL!]! getMakesLeaderboard(