Add gql mods for implementing one-of

This commit is contained in:
Mike Kalange 2024-05-22 15:13:18 -06:00
parent 08183ed952
commit 04a30e67d3
2 changed files with 17 additions and 44 deletions

View File

@ -54,10 +54,6 @@ export type AggregationInput = {
enum?: InputMaybe<EnumAggregation>; enum?: InputMaybe<EnumAggregation>;
}; };
export type AndFilter = {
filters: Array<FilterInput>;
};
export type BankFeaturesGql = { export type BankFeaturesGql = {
__typename?: "BankFeaturesGQL"; __typename?: "BankFeaturesGQL";
bankAngle: Scalars["Float"]["output"]; bankAngle: Scalars["Float"]["output"];
@ -134,14 +130,14 @@ export type EnumAggregation = {
}; };
export type FilterInput = { export type FilterInput = {
andFilters?: InputMaybe<AndFilter>; andFilters?: InputMaybe<Array<FilterInput>>;
cueBallSpeed?: InputMaybe<RangeFilter>; cueBallSpeed?: InputMaybe<RangeFilter>;
cueObjectAngle?: InputMaybe<RangeFilter>; cueObjectAngle?: InputMaybe<RangeFilter>;
cueObjectDistance?: InputMaybe<RangeFilter>; cueObjectDistance?: InputMaybe<RangeFilter>;
difficulty?: InputMaybe<RangeFilter>; difficulty?: InputMaybe<RangeFilter>;
intendedPocketType?: InputMaybe<Array<PocketEnum>>; intendedPocketType?: InputMaybe<Array<PocketEnum>>;
make?: InputMaybe<Array<Scalars["Boolean"]["input"]>>; make?: InputMaybe<Array<Scalars["Boolean"]["input"]>>;
orFilters?: InputMaybe<OrFilter>; orFilters?: InputMaybe<Array<FilterInput>>;
shotDirection?: InputMaybe<Array<ShotDirectionEnum>>; shotDirection?: InputMaybe<Array<ShotDirectionEnum>>;
tags?: InputMaybe<Array<VideoTagInput>>; tags?: InputMaybe<Array<VideoTagInput>>;
targetPocketDistance?: InputMaybe<RangeFilter>; targetPocketDistance?: InputMaybe<RangeFilter>;
@ -236,10 +232,6 @@ export type MutationSetLoggerLevelArgs = {
path: Scalars["String"]["input"]; path: Scalars["String"]["input"];
}; };
export type OrFilter = {
filters: Array<FilterInput>;
};
export type PageInfoGql = { export type PageInfoGql = {
__typename?: "PageInfoGQL"; __typename?: "PageInfoGQL";
endCursor?: Maybe<Scalars["String"]["output"]>; endCursor?: Maybe<Scalars["String"]["output"]>;
@ -329,11 +321,6 @@ export type RangeFilter = {
lessThan?: InputMaybe<Scalars["Float"]["input"]>; lessThan?: InputMaybe<Scalars["Float"]["input"]>;
}; };
export type SerializedShotPathsGql = {
__typename?: "SerializedShotPathsGQL";
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
};
export enum ShotDirectionEnum { export enum ShotDirectionEnum {
Left = "LEFT", Left = "LEFT",
Right = "RIGHT", Right = "RIGHT",
@ -348,7 +335,6 @@ export type ShotGql = {
endFrame: Scalars["Int"]["output"]; endFrame: Scalars["Int"]["output"];
id: Scalars["Int"]["output"]; id: Scalars["Int"]["output"];
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>; pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
startFrame: Scalars["Int"]["output"]; startFrame: Scalars["Int"]["output"];
updatedAt?: Maybe<Scalars["DateTime"]["output"]>; updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
user?: Maybe<UserGql>; user?: Maybe<UserGql>;

View File

@ -44,8 +44,8 @@ input AggregateInputGQL {
} }
input AggregationInput { input AggregationInput {
bucketSet: BucketSetInputGQL = null bucketSet: BucketSetInputGQL
enum: EnumAggregation = null enum: EnumAggregation
} }
input BucketSetInputGQL { input BucketSetInputGQL {
@ -63,27 +63,19 @@ input EnumAggregation {
} }
input FilterInput { input FilterInput {
andFilters: AndFilter = null andFilters: [FilterInput!]
orFilters: OrFilter = null orFilters: [FilterInput!]
cueObjectDistance: RangeFilter = null cueObjectDistance: RangeFilter
targetPocketDistance: RangeFilter = null targetPocketDistance: RangeFilter
cueObjectAngle: RangeFilter = null cueObjectAngle: RangeFilter
cueBallSpeed: RangeFilter = null cueBallSpeed: RangeFilter
difficulty: RangeFilter = null difficulty: RangeFilter
intendedPocketType: [PocketEnum!] = null intendedPocketType: [PocketEnum!]
shotDirection: [ShotDirectionEnum!] = null shotDirection: [ShotDirectionEnum!]
videoId: [Int!] = null videoId: [Int!]
userId: [Int!] = null userId: [Int!]
make: [Boolean!] = null make: [Boolean!]
tags: [VideoTagInput!] = null tags: [VideoTagInput!]
}
input AndFilter {
filters: [FilterInput!]!
}
input OrFilter {
filters: [FilterInput!]!
} }
input RangeFilter { input RangeFilter {
@ -144,7 +136,6 @@ type ShotGQL {
cueObjectFeatures: CueObjectFeaturesGQL cueObjectFeatures: CueObjectFeaturesGQL
pocketingIntentionFeatures: PocketingIntentionFeaturesGQL pocketingIntentionFeatures: PocketingIntentionFeaturesGQL
bankFeatures: BankFeaturesGQL bankFeatures: BankFeaturesGQL
serializedShotPaths: SerializedShotPathsGQL
user: UserGQL user: UserGQL
} }
@ -178,10 +169,6 @@ enum WallTypeEnum {
SHORT SHORT
} }
type SerializedShotPathsGQL {
b64EncodedBuffer: String
}
type UserGQL { type UserGQL {
id: Int! id: Int!
firebaseUid: String! firebaseUid: String!