From 492ae4a22541919e0a3ed7e3544bc6905a6a3e18 Mon Sep 17 00:00:00 2001 From: Volodymyr Smolianinov Date: Mon, 23 Sep 2024 19:31:35 +0200 Subject: [PATCH] Add pocketing intention info --- src/index.tsx | 26 +++++++++++++++++++------- src/operations/shots.gql | 12 ++++++++---- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 2d6c090..b460920 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2343,10 +2343,6 @@ export type GetShotsWithMetadataQuery = { }; } | null; } | null; - serializedShotPaths?: { - __typename?: "SerializedShotPathsGQL"; - b64EncodedBuffer?: string | null; - } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; cueObjectDistance?: number | null; @@ -2361,6 +2357,16 @@ export type GetShotsWithMetadataQuery = { make?: boolean | null; intendedPocketType?: PocketEnum | null; } | null; + pocketingIntentionInfo?: { + __typename?: "PocketingIntentionInfoGQL"; + ballId: number; + pocketId: PocketIdentifier; + pathMetadataIndex: number; + } | null; + serializedShotPaths?: { + __typename?: "SerializedShotPathsGQL"; + b64EncodedBuffer?: string | null; + } | null; }>; }; }; @@ -3572,9 +3578,6 @@ export const GetShotsWithMetadataDocument = gql` } } } - serializedShotPaths { - b64EncodedBuffer - } createdAt @include(if: $includeCreatedAt) updatedAt @include(if: $includeUpdatedAt) cueObjectFeatures @include(if: $includeCueObjectFeatures) { @@ -3590,6 +3593,15 @@ export const GetShotsWithMetadataDocument = gql` make @include(if: $includeMake) intendedPocketType @include(if: $includeIntendedPocketType) } + pocketingIntentionInfo + @include(if: $includePocketingIntentionFeatures) { + ballId + pocketId + pathMetadataIndex + } + serializedShotPaths @include(if: $includePocketingIntentionFeatures) { + b64EncodedBuffer + } } } } diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 7249449..6bc7d28 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -113,10 +113,6 @@ query GetShotsWithMetadata( } } } - serializedShotPaths { - b64EncodedBuffer - } - createdAt @include(if: $includeCreatedAt) updatedAt @include(if: $includeUpdatedAt) cueObjectFeatures @include(if: $includeCueObjectFeatures) { @@ -132,6 +128,14 @@ query GetShotsWithMetadata( make @include(if: $includeMake) intendedPocketType @include(if: $includeIntendedPocketType) } + pocketingIntentionInfo @include(if: $includePocketingIntentionFeatures) { + ballId + pocketId + pathMetadataIndex + } + serializedShotPaths @include(if: $includePocketingIntentionFeatures) { + b64EncodedBuffer + } } } }