mk/implement-one-of #9

Merged
colonelpanic merged 2 commits from mk/implement-one-of into master 2024-05-22 16:49:29 -06:00
2 changed files with 216 additions and 52 deletions

View File

@ -49,14 +49,9 @@ export type AggregationIdentifierGql = {
groupName: Scalars["String"]["output"]; groupName: Scalars["String"]["output"];
}; };
export type AggregationInput = { export type AggregationInput =
bucketSet?: InputMaybe<BucketSetInputGql>; | { bucketSet: BucketSetInputGql; enum?: never }
enum?: InputMaybe<EnumAggregation>; | { bucketSet?: never; enum: EnumAggregation };
};
export type AndFilter = {
filters: Array<FilterInput>;
};
export type BankFeaturesGql = { export type BankFeaturesGql = {
__typename?: "BankFeaturesGQL"; __typename?: "BankFeaturesGQL";
@ -133,20 +128,201 @@ export type EnumAggregation = {
feature: Scalars["String"]["input"]; feature: Scalars["String"]["input"];
}; };
export type FilterInput = { export type FilterInput =
andFilters?: InputMaybe<AndFilter>; | {
cueBallSpeed?: InputMaybe<RangeFilter>; andFilters: Array<FilterInput>;
cueObjectAngle?: InputMaybe<RangeFilter>; cueBallSpeed?: never;
cueObjectDistance?: InputMaybe<RangeFilter>; cueObjectAngle?: never;
difficulty?: InputMaybe<RangeFilter>; cueObjectDistance?: never;
intendedPocketType?: InputMaybe<Array<PocketEnum>>; difficulty?: never;
make?: InputMaybe<Array<Scalars["Boolean"]["input"]>>; intendedPocketType?: never;
orFilters?: InputMaybe<OrFilter>; make?: never;
shotDirection?: InputMaybe<Array<ShotDirectionEnum>>; orFilters?: never;
tags?: InputMaybe<Array<VideoTagInput>>; shotDirection?: never;
targetPocketDistance?: InputMaybe<RangeFilter>; tags?: never;
userId?: InputMaybe<Array<Scalars["Int"]["input"]>>; targetPocketDistance?: never;
videoId?: InputMaybe<Array<Scalars["Int"]["input"]>>; userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed: RangeFilter;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle: RangeFilter;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance: RangeFilter;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty: RangeFilter;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType: Array<PocketEnum>;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make: Array<Scalars["Boolean"]["input"]>;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters: Array<FilterInput>;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection: Array<ShotDirectionEnum>;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags: Array<VideoTagInput>;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance: RangeFilter;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId: Array<Scalars["Int"]["input"]>;
videoId?: never;
}
| {
andFilters?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
make?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId: Array<Scalars["Int"]["input"]>;
}; };
export type GetUploadLinkReturn = { export type GetUploadLinkReturn = {
@ -236,10 +412,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"]>;

View File

@ -43,9 +43,9 @@ input AggregateInputGQL {
filterInput: FilterInput filterInput: FilterInput
} }
input AggregationInput { input AggregationInput @oneOf {
bucketSet: BucketSetInputGQL = null bucketSet: BucketSetInputGQL
enum: EnumAggregation = null enum: EnumAggregation
} }
input BucketSetInputGQL { input BucketSetInputGQL {
@ -62,28 +62,20 @@ input EnumAggregation {
feature: String! feature: String!
} }
input FilterInput { input FilterInput @oneOf {
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 {