From 768d29f93e227bd27bda5c66dc25cf3e3e6b2bc3 Mon Sep 17 00:00:00 2001 From: mike kalange Date: Thu, 19 Sep 2024 22:59:36 -0600 Subject: [PATCH] Pocketing Intention Info Schema Changes --- src/index.tsx | 17 +++++++++++++++++ src/schema.gql | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 766cfad..fada181 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1573,6 +1573,15 @@ export enum PocketEnum { Side = "SIDE", } +export enum PocketIdentifier { + BottomLeft = "BOTTOM_LEFT", + BottomRight = "BOTTOM_RIGHT", + BottomSide = "BOTTOM_SIDE", + TopLeft = "TOP_LEFT", + TopRight = "TOP_RIGHT", + TopSide = "TOP_SIDE", +} + export type PocketPointsGql = { __typename?: "PocketPointsGQL"; bottomLeft: IntPoint2D; @@ -1594,6 +1603,13 @@ export type PocketingIntentionFeaturesGql = { targetPocketDistance?: Maybe; }; +export type PocketingIntentionInfoGql = { + __typename?: "PocketingIntentionInfoGQL"; + ballId: Scalars["Int"]["output"]; + pathMetadataIndex: Scalars["Int"]["output"]; + pocketId: PocketIdentifier; +}; + export type ProcessingFailedErr = { __typename?: "ProcessingFailedErr"; processing: VideoProcessingGql; @@ -1756,6 +1772,7 @@ export type ShotGql = { falsePositiveScore?: Maybe; id: Scalars["Int"]["output"]; pocketingIntentionFeatures?: Maybe; + pocketingIntentionInfo?: Maybe; serializedShotPaths?: Maybe; startFrame: Scalars["Int"]["output"]; updatedAt?: Maybe; diff --git a/src/schema.gql b/src/schema.gql index 2e15860..310c284 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -242,6 +242,7 @@ type ShotGQL { updatedAt: DateTime cueObjectFeatures: CueObjectFeaturesGQL pocketingIntentionFeatures: PocketingIntentionFeaturesGQL + pocketingIntentionInfo: PocketingIntentionInfoGQL bankFeatures: BankFeaturesGQL serializedShotPaths: SerializedShotPathsGQL user: UserGQL @@ -268,6 +269,21 @@ type PocketingIntentionFeaturesGQL { backcut: Boolean } +type PocketingIntentionInfoGQL { + ballId: Int! + pocketId: PocketIdentifier! + pathMetadataIndex: Int! +} + +enum PocketIdentifier { + TOP_LEFT + TOP_SIDE + TOP_RIGHT + BOTTOM_LEFT + BOTTOM_SIDE + BOTTOM_RIGHT +} + type BankFeaturesGQL { wallsHit: [WallTypeEnum!]! bankAngle: Float! -- 2.46.1