Merge pull request 'Use tag class and tag value input in FilterInput' (#312) from kat/temp into master

Reviewed-on: railbird/railbird-mobile#312
Reviewed-by: loewy <loewymalkov@gmail.com>
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
Ivan Malison 2024-03-28 16:12:54 -06:00
commit 01a580cee5
2 changed files with 18 additions and 8 deletions

View File

@ -132,20 +132,16 @@ export type FilterInput = {
cueBallSpeed?: InputMaybe<CueBallSpeedInput>; cueBallSpeed?: InputMaybe<CueBallSpeedInput>;
cueObjectAngle?: InputMaybe<CueObjectAngleInput>; cueObjectAngle?: InputMaybe<CueObjectAngleInput>;
cueObjectDistance?: InputMaybe<CueObjectDistanceInput>; cueObjectDistance?: InputMaybe<CueObjectDistanceInput>;
gameType?: InputMaybe<GameTypeInputGql>;
intendedPocketType?: InputMaybe<IntendedPocketTypeInput>; intendedPocketType?: InputMaybe<IntendedPocketTypeInput>;
make?: InputMaybe<MakeInputGql>; make?: InputMaybe<MakeInputGql>;
orFilters?: InputMaybe<OrFilter>; orFilters?: InputMaybe<OrFilter>;
shotDirection?: InputMaybe<ShotDirectionInput>; shotDirection?: InputMaybe<ShotDirectionInput>;
tags?: InputMaybe<Array<VideoTagInput>>;
targetPocketDistance?: InputMaybe<TargetPocketDistanceInput>; targetPocketDistance?: InputMaybe<TargetPocketDistanceInput>;
userId?: InputMaybe<Array<Scalars["Int"]["input"]>>; userId?: InputMaybe<Array<Scalars["Int"]["input"]>>;
videoId?: InputMaybe<Array<Scalars["Int"]["input"]>>; videoId?: InputMaybe<Array<Scalars["Int"]["input"]>>;
}; };
export type GameTypeInputGql = {
value: ValueFilterString;
};
export type GetUploadLinkReturn = { export type GetUploadLinkReturn = {
__typename?: "GetUploadLinkReturn"; __typename?: "GetUploadLinkReturn";
headers: Array<Maybe<Header>>; headers: Array<Maybe<Header>>;
@ -458,6 +454,15 @@ export type VideoTagClass = {
name: Scalars["String"]["output"]; name: Scalars["String"]["output"];
}; };
export type VideoTagClassInput = {
name: Scalars["String"]["input"];
};
export type VideoTagInput = {
name: Scalars["String"]["input"];
tagClasses: Array<VideoTagClassInput>;
};
export enum WallTypeEnum { export enum WallTypeEnum {
Long = "LONG", Long = "LONG",
Short = "SHORT", Short = "SHORT",

View File

@ -58,7 +58,7 @@ input FilterInput {
videoId: [Int!] = null videoId: [Int!] = null
userId: [Int!] = null userId: [Int!] = null
make: MakeInputGQL = null make: MakeInputGQL = null
gameType: GameTypeInputGQL = null tags: [VideoTagInput!] = null
} }
input AndFilter { input AndFilter {
@ -110,8 +110,13 @@ input ValueFilterBool {
equals: Boolean = null equals: Boolean = null
} }
input GameTypeInputGQL { input VideoTagInput {
value: ValueFilterString! tagClasses: [VideoTagClassInput!]!
name: String!
}
input VideoTagClassInput {
name: String!
} }
type UserGQL { type UserGQL {