From e20b68799f185419454b7f566c974497499ce888 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 28 Jul 2024 02:06:39 -0600 Subject: [PATCH 1/2] Add falsePositiveScore --- src/index.tsx | 62 ++++++++++++++++++++++++++++++++++++++++ src/operations/shots.gql | 1 + src/schema.gql | 2 ++ 3 files changed, 65 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 1f0d765..334ce2a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -140,6 +140,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -170,6 +171,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -200,6 +202,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -230,6 +233,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -260,6 +264,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -290,6 +295,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -320,6 +326,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -350,6 +357,7 @@ export type FilterInput = cueObjectDistance: RangeFilter; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -380,6 +388,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject: RangeFilter; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -410,6 +419,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty: RangeFilter; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -440,6 +450,38 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore: RangeFilter; + 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; + spinType?: never; + tags?: never; + targetPocketDistance?: never; + userId?: never; + videoId?: never; + } + | { + andFilters?: never; + annotations?: never; + bankAngle?: never; + bankDistance?: never; + cueAngleAfterObject?: never; + cueBallSpeed?: never; + cueObjectAngle?: never; + cueObjectDistance?: never; + cueSpeedAfterObject?: never; + difficulty?: never; + falsePositiveScore?: never; intendedPocketType: Array; isDirect?: never; isLeft?: never; @@ -470,6 +512,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect: Array; isLeft?: never; @@ -500,6 +543,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft: Array; @@ -530,6 +574,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -560,6 +605,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -590,6 +636,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -620,6 +667,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -650,6 +698,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -680,6 +729,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -710,6 +760,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -740,6 +791,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -770,6 +822,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -800,6 +853,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -830,6 +884,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -860,6 +915,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -890,6 +946,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -920,6 +977,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -950,6 +1008,7 @@ export type FilterInput = cueObjectDistance?: never; cueSpeedAfterObject?: never; difficulty?: never; + falsePositiveScore?: never; intendedPocketType?: never; isDirect?: never; isLeft?: never; @@ -1211,6 +1270,7 @@ export type ShotGql = { createdAt?: Maybe; cueObjectFeatures?: Maybe; endFrame: Scalars["Int"]["output"]; + falsePositiveScore?: Maybe; id: Scalars["Int"]["output"]; pocketingIntentionFeatures?: Maybe; serializedShotPaths?: Maybe; @@ -1511,6 +1571,7 @@ export type GetShotsQuery = { videoId: number; startFrame: number; endFrame: number; + falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; user?: { __typename?: "UserGQL"; id: number } | null; @@ -2337,6 +2398,7 @@ export const GetShotsDocument = gql` user { id } + falsePositiveScore createdAt @include(if: $includeCreatedAt) updatedAt @include(if: $includeUpdatedAt) cueObjectFeatures @include(if: $includeCueObjectFeatures) { diff --git a/src/operations/shots.gql b/src/operations/shots.gql index f52f0aa..1f35e88 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -20,6 +20,7 @@ query GetShots( user { id } + falsePositiveScore createdAt @include(if: $includeCreatedAt) updatedAt @include(if: $includeUpdatedAt) cueObjectFeatures @include(if: $includeCueObjectFeatures) { diff --git a/src/schema.gql b/src/schema.gql index 110e2c2..9429d37 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -98,6 +98,7 @@ input FilterInput @oneOf { cueAngleAfterObject: RangeFilter cueSpeedAfterObject: RangeFilter spinType: [String!] + falsePositiveScore: RangeFilter } input RangeFilter { @@ -165,6 +166,7 @@ type ShotGQL { serializedShotPaths: SerializedShotPathsGQL user: UserGQL annotations: [ShotAnnotationGQL!]! + falsePositiveScore: Float } """ From 64593f09b7604654ef3e690f7dd65bd8d80de489 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 29 Jul 2024 17:21:09 -0600 Subject: [PATCH 2/2] Add include_on_none in range filter --- src/index.tsx | 1 + src/schema.gql | 1 + 2 files changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 334ce2a..0fe6be7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1229,6 +1229,7 @@ export type QueryGetVideosArgs = { export type RangeFilter = { greaterThanEqualTo?: InputMaybe; + includeOnNone?: Scalars["Boolean"]["input"]; lessThan?: InputMaybe; }; diff --git a/src/schema.gql b/src/schema.gql index 9429d37..22dc1ba 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -104,6 +104,7 @@ input FilterInput @oneOf { input RangeFilter { lessThan: Float = null greaterThanEqualTo: Float = null + includeOnNone: Boolean! = false } enum PocketEnum {