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!]! }