From 0c9eb4945a9fc1307f42de7a757d82bd0c5be635 Mon Sep 17 00:00:00 2001 From: Dean Wenstrand Date: Mon, 11 May 2026 10:22:58 -0700 Subject: [PATCH] Add score to PlayerSummaryFields + PlayerClusterFields fragments Picks up the BE additions in railbird PR dean/video-match-score: new `score` field on PlayerClusterGQL and PlayerSummaryGQL, and a new `score` input field on ClusterAssignmentInput. Generated by `just gql`. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/index.tsx | 13 +++++++++++++ src/operations/shooter.gql | 2 ++ src/schema.gql | 3 +++ 3 files changed, 18 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index b04875a..86ed770 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -207,6 +207,7 @@ export enum ClientUploadStatusEnum { export type ClusterAssignmentInput = { clusterId: Scalars["Int"]["input"]; + score?: InputMaybe; userId?: InputMaybe; }; @@ -2700,6 +2701,7 @@ export type PlayerClusterGql = { clusterId: Scalars["Int"]["output"]; confirmed: Scalars["Boolean"]["output"]; nShots: Scalars["Int"]["output"]; + score?: Maybe; shots: Array; userId?: Maybe; videoId: Scalars["Int"]["output"]; @@ -2724,6 +2726,7 @@ export type PlayerSummaryGql = { makePercentage: Scalars["Float"]["output"]; profileImageUri?: Maybe; representativeFullFrameUrl?: Maybe; + score?: Maybe; totalShots: Scalars["Int"]["output"]; totalShotsMade: Scalars["Int"]["output"]; userId?: Maybe; @@ -4202,6 +4205,7 @@ export type GetFeedQuery = { totalShots: number; totalShotsMade: number; makePercentage: number; + score?: number | null; }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; @@ -4302,6 +4306,7 @@ export type VideoCardFieldsFragment = { totalShots: number; totalShotsMade: number; makePercentage: number; + score?: number | null; }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; @@ -4416,6 +4421,7 @@ export type GetVideoFeedQuery = { totalShots: number; totalShotsMade: number; makePercentage: number; + score?: number | null; }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; @@ -4997,6 +5003,7 @@ export type PlayerSummaryFieldsFragment = { totalShots: number; totalShotsMade: number; makePercentage: number; + score?: number | null; }; export type PlayerClusterShotFieldsFragment = { @@ -5019,6 +5026,7 @@ export type PlayerClusterFieldsFragment = { nShots: number; userId?: number | null; confirmed: boolean; + score?: number | null; shots: Array<{ __typename?: "PlayerClusterShotGQL"; shotId: number; @@ -5046,6 +5054,7 @@ export type VideoPlayerClustersQuery = { nShots: number; userId?: number | null; confirmed: boolean; + score?: number | null; shots: Array<{ __typename?: "PlayerClusterShotGQL"; shotId: number; @@ -5074,6 +5083,7 @@ export type FinalizePlayerAssignmentsMutation = { nShots: number; userId?: number | null; confirmed: boolean; + score?: number | null; shots: Array<{ __typename?: "PlayerClusterShotGQL"; shotId: number; @@ -6035,6 +6045,7 @@ export type GetVideoDetailsQuery = { totalShots: number; totalShotsMade: number; makePercentage: number; + score?: number | null; }>; }; }; @@ -6703,6 +6714,7 @@ export const PlayerSummaryFieldsFragmentDoc = gql` totalShots totalShotsMade makePercentage + score } `; export const UserSocialsFieldsFragmentDoc = gql` @@ -6842,6 +6854,7 @@ export const PlayerClusterFieldsFragmentDoc = gql` nShots userId confirmed + score shots { ...PlayerClusterShotFields } diff --git a/src/operations/shooter.gql b/src/operations/shooter.gql index e855563..85da20e 100644 --- a/src/operations/shooter.gql +++ b/src/operations/shooter.gql @@ -7,6 +7,7 @@ fragment PlayerSummaryFields on PlayerSummaryGQL { totalShots totalShotsMade makePercentage + score } fragment PlayerClusterShotFields on PlayerClusterShotGQL { @@ -27,6 +28,7 @@ fragment PlayerClusterFields on PlayerClusterGQL { nShots userId confirmed + score shots { ...PlayerClusterShotFields } diff --git a/src/schema.gql b/src/schema.gql index e802033..1af0a08 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -675,6 +675,7 @@ type PlayerSummaryGQL { totalShots: Int! totalShotsMade: Int! makePercentage: Float! + score: Int } type DeployedConfigGQL { @@ -879,6 +880,7 @@ type PlayerClusterGQL { nShots: Int! userId: Int confirmed: Boolean! + score: Int shots: [PlayerClusterShotGQL!]! } @@ -1211,6 +1213,7 @@ input FinalizePlayerAssignmentsInput { input ClusterAssignmentInput { clusterId: Int! userId: Int = null + score: Int = null } input ShotMoveInput { -- 2.49.1