From c7b225ff0007721f1c8dcddd3f0d07269ae6dd35 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 8 Jul 2024 13:18:11 -0600 Subject: [PATCH] Add get shot annotations query --- src/index.tsx | 7 +++++++ src/schema.gql | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 5e02db9..6d7e3be 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -652,6 +652,7 @@ export type Query = { getDeployedConfig: DeployedConfigGql; getLoggedInUser?: Maybe; getPlayTime: UserPlayTimeGql; + getShotAnnotationTypes: Array; getShots: Array; getUser?: Maybe; getUserVideos: VideoHistoryGql; @@ -714,6 +715,12 @@ export type ShotAnnotationInput = { name: Scalars["String"]["input"]; }; +export type ShotAnnotationTypeGql = { + __typename?: "ShotAnnotationTypeGQL"; + id: Scalars["Int"]["output"]; + name: Scalars["String"]["output"]; +}; + export enum ShotDirectionEnum { Left = "LEFT", Right = "RIGHT", diff --git a/src/schema.gql b/src/schema.gql index 4bfb34e..67552d4 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -9,6 +9,7 @@ type Query { intervalDuration: Int! = 300 ): [MakePercentageIntervalGQL!]! getShots(filterInput: FilterInput!): [ShotGQL!]! + getShotAnnotationTypes: [ShotAnnotationTypeGQL!]! getUser(userId: Int!): UserGQL getLoggedInUser: UserGQL getPlayTime(userId: Int!): UserPlayTimeGQL! @@ -194,6 +195,11 @@ type UserGQL { updatedAt: DateTime } +type ShotAnnotationTypeGQL { + id: Int! + name: String! +} + type UserPlayTimeGQL { totalSeconds: Float! }