From 8d56883e43b2f483514b0efe7dbcb13d55d930f6 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 | 13 +++++++++---- 2 files changed, 28 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..7932f25 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,15 @@ query GetShotsWithMetadata( make @include(if: $includeMake) intendedPocketType @include(if: $includeIntendedPocketType) } + pocketingIntentionInfo + @include(if: $includePocketingIntentionFeatures) { + ballId + pocketId + pathMetadataIndex + } + serializedShotPaths @include(if: $includePocketingIntentionFeatures) { + b64EncodedBuffer + } } } }