Use pocketing intention fragment to prevent cache merge issues #180

Merged
loewy merged 1 commits from loewy/update-runs-operations into master 2025-04-30 15:58:47 -06:00
2 changed files with 44 additions and 5 deletions

View File

@ -3614,6 +3614,17 @@ export type GetRunsForHighlightsQuery = {
}; };
}; };
export type PocketingIntentionFragmentFragment = {
__typename?: "PocketingIntentionFeaturesGQL";
make?: boolean | null;
targetPocketDistance?: number | null;
targetPocketAngle?: number | null;
targetPocketAngleDirection?: ShotDirectionEnum | null;
marginOfErrorInDegrees?: number | null;
intendedPocketType?: PocketEnum | null;
difficulty?: number | null;
};
export type GetRunsWithTimestampsQueryVariables = Exact<{ export type GetRunsWithTimestampsQueryVariables = Exact<{
filterInput: RunFilterInput; filterInput: RunFilterInput;
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>; runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
@ -3637,8 +3648,14 @@ export type GetRunsWithTimestampsQuery = {
videoId: number; videoId: number;
id: number; id: number;
createdAt?: any | null; createdAt?: any | null;
shotDifficulty?: { pocketingIntentionFeatures?: {
__typename?: "PocketingIntentionFeaturesGQL"; __typename?: "PocketingIntentionFeaturesGQL";
make?: boolean | null;
targetPocketDistance?: number | null;
targetPocketAngle?: number | null;
targetPocketAngleDirection?: ShotDirectionEnum | null;
marginOfErrorInDegrees?: number | null;
intendedPocketType?: PocketEnum | null;
difficulty?: number | null; difficulty?: number | null;
} | null; } | null;
}>; }>;
@ -5123,6 +5140,17 @@ export const MedalFieldsFragmentDoc = gql`
nickname nickname
} }
`; `;
export const PocketingIntentionFragmentFragmentDoc = gql`
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
make
targetPocketDistance
targetPocketAngle
targetPocketAngleDirection
marginOfErrorInDegrees
intendedPocketType
difficulty
}
`;
export const ShotWithAllFeaturesFragmentDoc = gql` export const ShotWithAllFeaturesFragmentDoc = gql`
fragment ShotWithAllFeatures on ShotGQL { fragment ShotWithAllFeatures on ShotGQL {
id id
@ -6210,14 +6238,15 @@ export const GetRunsWithTimestampsDocument = gql`
videoId videoId
id id
createdAt createdAt
shotDifficulty: pocketingIntentionFeatures { pocketingIntentionFeatures {
difficulty ...PocketingIntentionFragment
} }
} }
} }
runIds runIds
} }
} }
${PocketingIntentionFragmentFragmentDoc}
`; `;
/** /**

View File

@ -27,6 +27,16 @@ query GetRunsForHighlights(
} }
} }
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
make
targetPocketDistance
targetPocketAngle
targetPocketAngleDirection
marginOfErrorInDegrees
intendedPocketType
difficulty
}
query GetRunsWithTimestamps( query GetRunsWithTimestamps(
$filterInput: RunFilterInput! $filterInput: RunFilterInput!
$runIds: [Int!] = null $runIds: [Int!] = null
@ -47,8 +57,8 @@ query GetRunsWithTimestamps(
videoId videoId
id id
createdAt createdAt
shotDifficulty: pocketingIntentionFeatures { pocketingIntentionFeatures {
difficulty ...PocketingIntentionFragment
} }
} }
} }