Merge pull request 'Add new filters' (#15) from dean/add-new-filters into master

Reviewed-on: #15
This commit is contained in:
Ivan Malison 2024-07-12 17:54:42 -06:00
commit e0e1ae1108
2 changed files with 240 additions and 0 deletions

View File

@ -132,16 +132,21 @@ export type FilterInput =
| { | {
andFilters: Array<FilterInput>; andFilters: Array<FilterInput>;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -154,16 +159,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations: Array<ShotAnnotationInput>; annotations: Array<ShotAnnotationInput>;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -176,16 +186,75 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle: RangeFilter;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance: RangeFilter;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed: RangeFilter; cueBallSpeed: RangeFilter;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -198,16 +267,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle: RangeFilter; cueObjectAngle: RangeFilter;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -220,16 +294,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance: RangeFilter; cueObjectDistance: RangeFilter;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -242,16 +321,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty: RangeFilter; difficulty: RangeFilter;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -264,16 +348,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType: Array<PocketEnum>; intendedPocketType: Array<PocketEnum>;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -286,16 +375,48 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect: Array<Scalars["Boolean"]["input"]>;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft: Array<Scalars["Boolean"]["input"]>; isLeft: Array<Scalars["Boolean"]["input"]>;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -308,16 +429,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss: Array<Scalars["Boolean"]["input"]>; isLeftMiss: Array<Scalars["Boolean"]["input"]>;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -330,16 +456,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight: Array<Scalars["Boolean"]["input"]>; isRight: Array<Scalars["Boolean"]["input"]>;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -352,16 +483,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss: Array<Scalars["Boolean"]["input"]>; isRightMiss: Array<Scalars["Boolean"]["input"]>;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -374,16 +510,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight: Array<Scalars["Boolean"]["input"]>; isStraight: Array<Scalars["Boolean"]["input"]>;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -396,16 +537,75 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle: RangeFilter;
kickDistance?: never;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance: RangeFilter;
make?: never;
notFilter?: never;
orFilters?: never;
shotDirection?: never;
tags?: never;
targetPocketDistance?: never;
userId?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
difficulty?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make: Array<Scalars["Boolean"]["input"]>; make: Array<Scalars["Boolean"]["input"]>;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -418,16 +618,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter: FilterInput; notFilter: FilterInput;
orFilters?: never; orFilters?: never;
@ -440,16 +645,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters: Array<FilterInput>; orFilters: Array<FilterInput>;
@ -462,16 +672,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -484,16 +699,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -506,16 +726,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -528,16 +753,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
@ -550,16 +780,21 @@ export type FilterInput =
| { | {
andFilters?: never; andFilters?: never;
annotations?: never; annotations?: never;
bankAngle?: never;
bankDistance?: never;
cueBallSpeed?: never; cueBallSpeed?: never;
cueObjectAngle?: never; cueObjectAngle?: never;
cueObjectDistance?: never; cueObjectDistance?: never;
difficulty?: never; difficulty?: never;
intendedPocketType?: never; intendedPocketType?: never;
isDirect?: never;
isLeft?: never; isLeft?: never;
isLeftMiss?: never; isLeftMiss?: never;
isRight?: never; isRight?: never;
isRightMiss?: never; isRightMiss?: never;
isStraight?: never; isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never; make?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;

View File

@ -84,6 +84,11 @@ input FilterInput @oneOf {
isLeft: [Boolean!] isLeft: [Boolean!]
isLeftMiss: [Boolean!] isLeftMiss: [Boolean!]
isRightMiss: [Boolean!] isRightMiss: [Boolean!]
isDirect: [Boolean!]
bankAngle: RangeFilter
bankDistance: RangeFilter
kickAngle: RangeFilter
kickDistance: RangeFilter
} }
input RangeFilter { input RangeFilter {