Add run filter and run fields

This commit is contained in:
Ivan Malison 2025-01-16 15:43:53 -07:00
parent 881350619a
commit bfdda67d1a
2 changed files with 99 additions and 0 deletions

View File

@ -248,6 +248,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -290,6 +291,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -332,6 +334,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -374,6 +377,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -416,6 +420,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -458,6 +463,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -500,6 +506,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -542,6 +549,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -584,6 +592,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -626,6 +635,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -668,6 +678,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -710,6 +721,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -752,6 +764,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -794,6 +807,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -836,6 +850,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -878,6 +893,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -920,6 +936,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -962,6 +979,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1004,6 +1022,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1046,6 +1065,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1088,6 +1108,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1130,6 +1151,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1172,6 +1194,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1214,6 +1237,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1256,6 +1280,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1298,6 +1323,7 @@ export type FilterInput =
missAngleInDegrees: FloatRangeFilter; missAngleInDegrees: FloatRangeFilter;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1340,6 +1366,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter: FilterInput; notFilter: FilterInput;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1382,6 +1409,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters: Array<FilterInput>; orFilters: Array<FilterInput>;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1424,6 +1452,50 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId: Array<Scalars["Int"]["input"]>;
runLength?: never;
shotDirection?: never;
spinType?: never;
tableSize?: never;
tags?: never;
targetPocketAngle?: never;
targetPocketAngleDirection?: never;
targetPocketDistance?: never;
totalDistance?: never;
userId?: never;
username?: never;
videoId?: never;
}
| {
andFilters?: never;
annotations?: never;
backcut?: never;
bankAngle?: never;
bankDistance?: never;
createdAt?: never;
cueAngleAfterObject?: never;
cueBallSpeed?: never;
cueObjectAngle?: never;
cueObjectDistance?: never;
cueSpeedAfterObject?: never;
difficulty?: never;
falsePositiveScore?: never;
fargoRating?: never;
intendedPocketType?: never;
isDirect?: never;
isLeft?: never;
isLeftMiss?: never;
isRight?: never;
isRightMiss?: never;
isStraight?: never;
kickAngle?: never;
kickDistance?: never;
make?: never;
marginOfErrorInDegrees?: never;
missAngleInDegrees?: never;
notFilter?: never;
orFilters?: never;
runId?: never;
runLength: FloatRangeFilter; runLength: FloatRangeFilter;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1466,6 +1538,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection: Array<ShotDirectionEnum>; shotDirection: Array<ShotDirectionEnum>;
spinType?: never; spinType?: never;
@ -1508,6 +1581,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType: Array<SpinTypeEnum>; spinType: Array<SpinTypeEnum>;
@ -1550,6 +1624,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1592,6 +1667,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1634,6 +1710,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1676,6 +1753,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1718,6 +1796,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1760,6 +1839,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1802,6 +1882,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1844,6 +1925,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -1886,6 +1968,7 @@ export type FilterInput =
missAngleInDegrees?: never; missAngleInDegrees?: never;
notFilter?: never; notFilter?: never;
orFilters?: never; orFilters?: never;
runId?: never;
runLength?: never; runLength?: never;
shotDirection?: never; shotDirection?: never;
spinType?: never; spinType?: never;
@ -2422,6 +2505,12 @@ export type RequestedMedalsGql = {
totalMakes10000?: Maybe<MedalGql>; totalMakes10000?: Maybe<MedalGql>;
}; };
export type RunFeaturesGql = {
__typename?: "RunFeaturesGQL";
indexInRun: Scalars["Int"]["output"];
runId: Scalars["Int"]["output"];
};
export type RunFilterInput = { export type RunFilterInput = {
andFilters?: InputMaybe<Array<RunFilterInput>>; andFilters?: InputMaybe<Array<RunFilterInput>>;
createdAt?: InputMaybe<DateRangeFilter>; createdAt?: InputMaybe<DateRangeFilter>;
@ -2523,6 +2612,8 @@ export type ShotGql = {
id: Scalars["Int"]["output"]; id: Scalars["Int"]["output"];
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>; pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
pocketingIntentionInfo?: Maybe<PocketingIntentionInfoGql>; pocketingIntentionInfo?: Maybe<PocketingIntentionInfoGql>;
run?: Maybe<RunGql>;
runFeatures?: Maybe<RunFeaturesGql>;
serializedShotPaths?: Maybe<SerializedShotPathsGql>; serializedShotPaths?: Maybe<SerializedShotPathsGql>;
startFrame: Scalars["Int"]["output"]; startFrame: Scalars["Int"]["output"];
startTime: Scalars["Float"]["output"]; startTime: Scalars["Float"]["output"];

View File

@ -182,6 +182,7 @@ input FilterInput @oneOf {
shotDirection: [ShotDirectionEnum!] shotDirection: [ShotDirectionEnum!]
videoId: [Int!] videoId: [Int!]
userId: [Int!] userId: [Int!]
runId: [Int!]
username: [String!] username: [String!]
fargoRating: FloatRangeFilter fargoRating: FloatRangeFilter
make: [Boolean!] make: [Boolean!]
@ -367,6 +368,8 @@ type ShotGQL {
annotations: [ShotAnnotationGQL!]! annotations: [ShotAnnotationGQL!]!
falsePositiveScore: Float falsePositiveScore: Float
video: VideoGQL video: VideoGQL
run: RunGQL
runFeatures: RunFeaturesGQL
} }
type CueObjectFeaturesGQL { type CueObjectFeaturesGQL {
@ -606,6 +609,11 @@ type VideoProcessingStatusGQL {
updatedAt: DateTime updatedAt: DateTime
} }
type RunFeaturesGQL {
runId: Int!
indexInRun: Int!
}
input RunFilterInput { input RunFilterInput {
videoId: [Int!] videoId: [Int!]
userId: [Int!] userId: [Int!]