From 0c1afbcc76e20079b634b6b8440336326ac248a1 Mon Sep 17 00:00:00 2001 From: Dean Wenstrand Date: Tue, 16 Jun 2026 13:39:04 -0700 Subject: [PATCH] Add runLengths to PlayerSummaryFields (per-player run distribution) --- src/index.tsx | 15 +++++++++++++++ src/operations/shooter.gql | 1 + src/schema.gql | 7 +++++++ 3 files changed, 23 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 1c544b4..34f09e0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -79,6 +79,12 @@ export enum AlignedIntervalEnum { Year = "YEAR", } +export type AppleIapSubscriptionOptionsGql = { + __typename?: "AppleIapSubscriptionOptionsGQL"; + enabled: Scalars["Boolean"]["output"]; + proMonthlyProductId?: Maybe; +}; + export type BankFeaturesGql = { __typename?: "BankFeaturesGQL"; bankAngle: Scalars["Float"]["output"]; @@ -2746,6 +2752,7 @@ export type PlayerSummaryGql = { makePercentage: Scalars["Float"]["output"]; profileImageUri?: Maybe; representativeFullFrameUrl?: Maybe; + runLengths: Array; score?: Maybe; totalShots: Scalars["Int"]["output"]; totalShotsMade: Scalars["Int"]["output"]; @@ -3385,6 +3392,7 @@ export type StripeProductGql = { export type StripeSubscriptionOptionsGql = { __typename?: "StripeSubscriptionOptionsGQL"; + appleIap: AppleIapSubscriptionOptionsGql; products: Array; trialPeriodDays?: Maybe; }; @@ -4281,6 +4289,7 @@ export type GetFeedQuery = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }>; @@ -4385,6 +4394,7 @@ export type VideoCardFieldsFragment = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }>; @@ -4521,6 +4531,7 @@ export type GetVideoFeedQuery = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }>; @@ -5164,6 +5175,7 @@ export type PlayerSummaryFieldsFragment = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }; @@ -6289,6 +6301,7 @@ export type GetVideoDetailsQuery = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }>; @@ -6408,6 +6421,7 @@ export type GetVideoCardQuery = { makePercentage: number; score?: number | null; longestRun: number; + runLengths: Array; averageDifficulty?: number | null; averageTimeBetweenShots?: number | null; }>; @@ -7057,6 +7071,7 @@ export const PlayerSummaryFieldsFragmentDoc = gql` makePercentage score longestRun + runLengths averageDifficulty averageTimeBetweenShots } diff --git a/src/operations/shooter.gql b/src/operations/shooter.gql index 1277bf5..3f616c3 100644 --- a/src/operations/shooter.gql +++ b/src/operations/shooter.gql @@ -9,6 +9,7 @@ fragment PlayerSummaryFields on PlayerSummaryGQL { makePercentage score longestRun + runLengths averageDifficulty averageTimeBetweenShots } diff --git a/src/schema.gql b/src/schema.gql index 7f3b1b7..aa555a9 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -688,6 +688,7 @@ type PlayerSummaryGQL { makePercentage: Float! score: Int longestRun: Int! + runLengths: [Int!]! averageDifficulty: Float averageTimeBetweenShots: Float } @@ -1001,6 +1002,7 @@ type UserRelationship { type StripeSubscriptionOptionsGQL { products: [StripeProductGQL!]! trialPeriodDays: Int + appleIap: AppleIapSubscriptionOptionsGQL! } type StripeProductGQL { @@ -1021,6 +1023,11 @@ type StripePriceGQL { active: Boolean! } +type AppleIapSubscriptionOptionsGQL { + enabled: Boolean! + proMonthlyProductId: String +} + type UserSubscriptionStatusGQL { hasActiveSubscription: Boolean! entitlementSource: EntitlementSourceTypeEnum -- 2.49.1