From 85a2da4b5c2bf7ded9ecfd7ede3ac21586f9ba43 Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Thu, 19 Sep 2024 10:46:20 -0700 Subject: [PATCH] Add shot direction counts --- src/index.tsx | 8 ++++++++ src/schema.gql | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index f568eb4..ef8225c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1466,6 +1466,13 @@ export type ShotAnnotationTypeGql = { name: Scalars["String"]["output"]; }; +export type ShotDirectionCountsGql = { + __typename?: "ShotDirectionCountsGQL"; + left: Scalars["Int"]["output"]; + right: Scalars["Int"]["output"]; + straight: Scalars["Int"]["output"]; +}; + export enum ShotDirectionEnum { Left = "LEFT", Right = "RIGHT", @@ -1536,6 +1543,7 @@ export type TargetMetricsGql = { averageDifficulty?: Maybe; count: Scalars["Int"]["output"]; makePercentage?: Maybe; + shotDirectionCounts?: Maybe; spinTypeCounts?: Maybe; }; diff --git a/src/schema.gql b/src/schema.gql index c00f37e..3bd0b48 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -54,6 +54,7 @@ type TargetMetricsGQL { makePercentage: Float averageDifficulty: Float spinTypeCounts: SpinTypeCountsGQL + shotDirectionCounts: ShotDirectionCountsGQL } type SpinTypeCountsGQL { @@ -63,6 +64,12 @@ type SpinTypeCountsGQL { unknown: Int! } +type ShotDirectionCountsGQL { + left: Int! + right: Int! + straight: Int! +} + input AggregateInputGQL { aggregations: [AggregationInput!]! filterInput: FilterInput