From 6fd14d3c496beb43ff6834e0e9aa0c6950596561 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Thu, 28 Mar 2024 15:20:39 -0600 Subject: [PATCH] Use tag input --- src/index.tsx | 15 ++++++++++----- src/schema.gql | 11 ++++++++--- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 42f9132..215814c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -132,20 +132,16 @@ export type FilterInput = { cueBallSpeed?: InputMaybe; cueObjectAngle?: InputMaybe; cueObjectDistance?: InputMaybe; - gameType?: InputMaybe; intendedPocketType?: InputMaybe; make?: InputMaybe; orFilters?: InputMaybe; shotDirection?: InputMaybe; + tags?: InputMaybe>; targetPocketDistance?: InputMaybe; userId?: InputMaybe>; videoId?: InputMaybe>; }; -export type GameTypeInputGql = { - value: ValueFilterString; -}; - export type GetUploadLinkReturn = { __typename?: "GetUploadLinkReturn"; headers: Array>; @@ -457,6 +453,15 @@ export type VideoTagClass = { name: Scalars["String"]["output"]; }; +export type VideoTagClassInput = { + name: Scalars["String"]["input"]; +}; + +export type VideoTagInput = { + name: Scalars["String"]["input"]; + tagClasses: Array; +}; + export enum WallTypeEnum { Long = "LONG", Short = "SHORT", diff --git a/src/schema.gql b/src/schema.gql index fe953d8..0e758c7 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -64,7 +64,7 @@ input FilterInput { videoId: [Int!] = null userId: [Int!] = null make: MakeInputGQL = null - gameType: GameTypeInputGQL = null + tags: [VideoTagInput!] = null } input AndFilter { @@ -116,8 +116,13 @@ input ValueFilterBool { equals: Boolean = null } -input GameTypeInputGQL { - value: ValueFilterString! +input VideoTagInput { + tagClasses: [VideoTagClassInput!]! + name: String! +} + +input VideoTagClassInput { + name: String! } type UserGQL {