From 09a3e0e29482647efcf7ba5359e0349f92c73d22 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Thu, 15 Aug 2024 19:42:53 -0700 Subject: [PATCH] Add table size range filter --- src/index.tsx | 5 ++++- src/schema.gql | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 143d819..d6e223b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -961,7 +961,7 @@ export type FilterInput = orFilters?: never; shotDirection?: never; spinType?: never; - tableSize: Scalars["Float"]["input"]; + tableSize: RangeFilter; tags?: never; targetPocketDistance?: never; userId?: never; @@ -1326,9 +1326,12 @@ export type QueryWaitForArgs = { }; export type RangeFilter = { + greaterThan?: InputMaybe; greaterThanEqualTo?: InputMaybe; + greaterThanInclusive?: Scalars["Boolean"]["input"]; includeOnNone?: Scalars["Boolean"]["input"]; lessThan?: InputMaybe; + lessThanInclusive?: Scalars["Boolean"]["input"]; }; export type SerializedShotPathsGql = { diff --git a/src/schema.gql b/src/schema.gql index b5476db..64a6368 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -96,7 +96,7 @@ input FilterInput @oneOf { isLeftMiss: [Boolean!] isRightMiss: [Boolean!] isDirect: [Boolean!] - tableSize: Float + tableSize: RangeFilter bankAngle: RangeFilter bankDistance: RangeFilter kickAngle: RangeFilter @@ -110,7 +110,10 @@ input FilterInput @oneOf { input RangeFilter { lessThan: Float = null greaterThanEqualTo: Float = null + greaterThan: Float = null includeOnNone: Boolean! = false + lessThanInclusive: Boolean! = false + greaterThanInclusive: Boolean! = true } enum PocketEnum {