Declare taxonomy filter variables on the makes/runs leaderboards
The backend leaderboard resolvers gained game_type, table size and pocket size filters, but GetMakesLeaderboard and GetRunsLeaderboard never declared them — GraphQL silently drops undeclared variables, so anything the client passed was ignored and both boards stayed global. Declare and forward the five filter args on both queries, matching the names the drill run leaderboard already uses.
This commit is contained in:
@@ -5236,6 +5236,11 @@ export type GetVideoFeedQuery = {
|
|||||||
export type GetMakesLeaderboardQueryVariables = Exact<{
|
export type GetMakesLeaderboardQueryVariables = Exact<{
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetMakesLeaderboardQuery = {
|
export type GetMakesLeaderboardQuery = {
|
||||||
@@ -5260,6 +5265,11 @@ export type GetMakesLeaderboardQuery = {
|
|||||||
export type GetRunsLeaderboardQueryVariables = Exact<{
|
export type GetRunsLeaderboardQueryVariables = Exact<{
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetRunsLeaderboardQuery = {
|
export type GetRunsLeaderboardQuery = {
|
||||||
@@ -11785,8 +11795,24 @@ export type GetVideoFeedQueryResult = Apollo.QueryResult<
|
|||||||
GetVideoFeedQueryVariables
|
GetVideoFeedQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetMakesLeaderboardDocument = gql`
|
export const GetMakesLeaderboardDocument = gql`
|
||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -11815,6 +11841,11 @@ export const GetMakesLeaderboardDocument = gql`
|
|||||||
* variables: {
|
* variables: {
|
||||||
* interval: // value for 'interval'
|
* interval: // value for 'interval'
|
||||||
* when: // value for 'when'
|
* when: // value for 'when'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSizeMin: // value for 'tableSizeMin'
|
||||||
|
* tableSizeMax: // value for 'tableSizeMax'
|
||||||
|
* pocketSizeMin: // value for 'pocketSizeMin'
|
||||||
|
* pocketSizeMax: // value for 'pocketSizeMax'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -11868,8 +11899,24 @@ export type GetMakesLeaderboardQueryResult = Apollo.QueryResult<
|
|||||||
GetMakesLeaderboardQueryVariables
|
GetMakesLeaderboardQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetRunsLeaderboardDocument = gql`
|
export const GetRunsLeaderboardDocument = gql`
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
@@ -11901,6 +11948,11 @@ export const GetRunsLeaderboardDocument = gql`
|
|||||||
* variables: {
|
* variables: {
|
||||||
* interval: // value for 'interval'
|
* interval: // value for 'interval'
|
||||||
* when: // value for 'when'
|
* when: // value for 'when'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSizeMin: // value for 'tableSizeMin'
|
||||||
|
* tableSizeMax: // value for 'tableSizeMax'
|
||||||
|
* pocketSizeMin: // value for 'pocketSizeMin'
|
||||||
|
* pocketSizeMax: // value for 'pocketSizeMax'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -13,8 +29,24 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
|
|||||||
Reference in New Issue
Block a user