From cd2cdb475ae689095051a9e02da85f51fc3030e1 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 19 Nov 2024 15:29:21 -0800 Subject: [PATCH] Change FilterInput to RunFilterInput --- src/index.tsx | 14 +++++++++++++- src/schema.gql | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 349b07f..708a8c6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2252,7 +2252,7 @@ export type QueryGetPlayTimeArgs = { export type QueryGetRunsArgs = { countRespectsLimit?: Scalars["Boolean"]["input"]; - filterInput: FilterInput; + filterInput: RunFilterInput; limit?: Scalars["Int"]["input"]; runIds?: InputMaybe>; runsOrdering?: InputMaybe; @@ -2350,6 +2350,18 @@ export type RequestedMedalsGql = { totalMakes1000?: Maybe; }; +export type RunFilterInput = { + andFilters?: InputMaybe>; + createdAt?: InputMaybe; + notFilter?: InputMaybe; + orFilters?: InputMaybe>; + runLength?: InputMaybe; + tableSize?: InputMaybe; + userId?: InputMaybe>; + username?: InputMaybe>; + videoId?: InputMaybe>; +}; + export type RunGql = { __typename?: "RunGQL"; id: Scalars["Int"]["output"]; diff --git a/src/schema.gql b/src/schema.gql index 0942fc7..025551c 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -11,7 +11,7 @@ type Query { ): [MakePercentageIntervalGQL!]! getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL! getRuns( - filterInput: FilterInput! + filterInput: RunFilterInput! runIds: [Int!] = null runsOrdering: GetRunsOrdering = null limit: Int! = 500 @@ -584,6 +584,18 @@ type VideoProcessingStatusGQL { updatedAt: DateTime } +input RunFilterInput { + videoId: [Int!] + userId: [Int!] + username: [String!] + andFilters: [RunFilterInput!] + orFilters: [RunFilterInput!] + notFilter: RunFilterInput + tableSize: FloatRangeFilter + createdAt: DateRangeFilter + runLength: FloatRangeFilter +} + input GetRunsOrdering { orderings: [RunsOrderingComponent!]! } -- 2.46.1