Compare commits
1 Commits
dean/leade
...
3ad12182d8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ad12182d8 |
370
src/index.tsx
370
src/index.tsx
@@ -2404,11 +2404,6 @@ export type Header = {
|
|||||||
value: Scalars["String"]["output"];
|
value: Scalars["String"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export enum HomographyBackendGql {
|
|
||||||
Classic = "CLASSIC",
|
|
||||||
Tablenet = "TABLENET",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type HomographyInfoGql = {
|
export type HomographyInfoGql = {
|
||||||
__typename?: "HomographyInfoGQL";
|
__typename?: "HomographyInfoGQL";
|
||||||
crop: BoundingBoxGql;
|
crop: BoundingBoxGql;
|
||||||
@@ -3093,7 +3088,6 @@ export type Query = {
|
|||||||
getQuotaStatus: QuotaStatusGql;
|
getQuotaStatus: QuotaStatusGql;
|
||||||
getResolvedTier: ResolvedTierGql;
|
getResolvedTier: ResolvedTierGql;
|
||||||
getRuns: GetRunsResult;
|
getRuns: GetRunsResult;
|
||||||
getSessionCoach: SessionCoachGql;
|
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShotTableState: ShotTableStateGql;
|
getShotTableState: ShotTableStateGql;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
@@ -3195,28 +3189,14 @@ export type QueryGetLiveTableStateArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetLongestRunsLeaderboardArgs = {
|
export type QueryGetLongestRunsLeaderboardArgs = {
|
||||||
excludeDrills?: Scalars["Boolean"]["input"];
|
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
rankedOnly?: Scalars["Boolean"]["input"];
|
|
||||||
requiredTags?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
requiredTags?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
||||||
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetMakesLeaderboardArgs = {
|
export type QueryGetMakesLeaderboardArgs = {
|
||||||
excludeDrills?: Scalars["Boolean"]["input"];
|
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
rankedOnly?: Scalars["Boolean"]["input"];
|
|
||||||
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3251,10 +3231,6 @@ export type QueryGetRunsArgs = {
|
|||||||
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetSessionCoachArgs = {
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type QueryGetShotAnnotationTypesArgs = {
|
export type QueryGetShotAnnotationTypesArgs = {
|
||||||
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
};
|
};
|
||||||
@@ -3570,84 +3546,6 @@ export type SerializedShotPathsGql = {
|
|||||||
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
|
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export enum SessionCoachCandidateFamilyEnum {
|
|
||||||
Aiming = "AIMING",
|
|
||||||
BackCut = "BACK_CUT",
|
|
||||||
CueToObjectDistance = "CUE_TO_OBJECT_DISTANCE",
|
|
||||||
CutAngle = "CUT_ANGLE",
|
|
||||||
ObjectToPocketDistance = "OBJECT_TO_POCKET_DISTANCE",
|
|
||||||
Spin = "SPIN",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SessionCoachCandidateGql = {
|
|
||||||
__typename?: "SessionCoachCandidateGQL";
|
|
||||||
action: Scalars["String"]["output"];
|
|
||||||
body: Scalars["String"]["output"];
|
|
||||||
drillId?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
evidence: SessionCoachEvidenceGql;
|
|
||||||
family: SessionCoachCandidateFamilyEnum;
|
|
||||||
id: Scalars["ID"]["output"];
|
|
||||||
kind: SessionCoachCandidateKindEnum;
|
|
||||||
limitations: Array<Scalars["String"]["output"]>;
|
|
||||||
rank: Scalars["Int"]["output"];
|
|
||||||
supportingShotIds: Array<Scalars["Int"]["output"]>;
|
|
||||||
title: Scalars["String"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum SessionCoachCandidateKindEnum {
|
|
||||||
DirectionalMiss = "DIRECTIONAL_MISS",
|
|
||||||
OutcomePattern = "OUTCOME_PATTERN",
|
|
||||||
UsagePattern = "USAGE_PATTERN",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SessionCoachEvidenceGql = {
|
|
||||||
__typename?: "SessionCoachEvidenceGQL";
|
|
||||||
attemptCount: Scalars["Int"]["output"];
|
|
||||||
bucketKey: Scalars["String"]["output"];
|
|
||||||
bucketLabel: Scalars["String"]["output"];
|
|
||||||
comparisonAttemptCount: Scalars["Int"]["output"];
|
|
||||||
comparisonMadeCount: Scalars["Int"]["output"];
|
|
||||||
comparisonMakePercentage?: Maybe<Scalars["Float"]["output"]>;
|
|
||||||
madeCount: Scalars["Int"]["output"];
|
|
||||||
makePercentage: Scalars["Float"]["output"];
|
|
||||||
missedCount: Scalars["Int"]["output"];
|
|
||||||
patternShotCount: Scalars["Int"]["output"];
|
|
||||||
rankReason: Scalars["String"]["output"];
|
|
||||||
score: Scalars["Float"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SessionCoachGql = {
|
|
||||||
__typename?: "SessionCoachGQL";
|
|
||||||
analysisVersion: Scalars["String"]["output"];
|
|
||||||
analyzedShotCount: Scalars["Int"]["output"];
|
|
||||||
candidates: Array<SessionCoachCandidateGql>;
|
|
||||||
generatedAt: Scalars["DateTime"]["output"];
|
|
||||||
ineligibilityReason?: Maybe<SessionCoachIneligibilityReasonEnum>;
|
|
||||||
madeCount: Scalars["Int"]["output"];
|
|
||||||
makePercentage?: Maybe<Scalars["Float"]["output"]>;
|
|
||||||
missedCount: Scalars["Int"]["output"];
|
|
||||||
primaryCandidate?: Maybe<SessionCoachCandidateGql>;
|
|
||||||
processingId?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
processingStatus?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
shotCount: Scalars["Int"]["output"];
|
|
||||||
state: SessionCoachStateEnum;
|
|
||||||
summary?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
unknownOutcomeCount: Scalars["Int"]["output"];
|
|
||||||
videoId: Scalars["Int"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum SessionCoachIneligibilityReasonEnum {
|
|
||||||
Multiplayer = "MULTIPLAYER",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum SessionCoachStateEnum {
|
|
||||||
Failed = "FAILED",
|
|
||||||
Ineligible = "INELIGIBLE",
|
|
||||||
NoTrackedShots = "NO_TRACKED_SHOTS",
|
|
||||||
Processing = "PROCESSING",
|
|
||||||
Ready = "READY",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ShotAnnotationGql = {
|
export type ShotAnnotationGql = {
|
||||||
__typename?: "ShotAnnotationGQL";
|
__typename?: "ShotAnnotationGQL";
|
||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
@@ -4297,7 +4195,6 @@ export type VideoMetadataInput = {
|
|||||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
/** @deprecated `game_type` is deprecated. Use `tags` instead. */
|
/** @deprecated `game_type` is deprecated. Use `tags` instead. */
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
homographyBackend?: InputMaybe<HomographyBackendGql>;
|
|
||||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
pocketSize?: InputMaybe<Scalars["Float"]["input"]>;
|
pocketSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
private?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
@@ -4887,7 +4784,6 @@ export type GetFeedQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
lastSegmentUploadedAt?: any | null;
|
lastSegmentUploadedAt?: any | null;
|
||||||
@@ -5002,7 +4898,6 @@ export type VideoCardFieldsFragment = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
lastSegmentUploadedAt?: any | null;
|
lastSegmentUploadedAt?: any | null;
|
||||||
@@ -5150,7 +5045,6 @@ export type GetVideoFeedQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
lastSegmentUploadedAt?: any | null;
|
lastSegmentUploadedAt?: any | null;
|
||||||
@@ -6869,116 +6763,6 @@ export type GetRunsWithTimestampsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetSessionCoachQueryVariables = Exact<{
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetSessionCoachQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getSessionCoach: {
|
|
||||||
__typename?: "SessionCoachGQL";
|
|
||||||
videoId: number;
|
|
||||||
processingId?: number | null;
|
|
||||||
analysisVersion: string;
|
|
||||||
state: SessionCoachStateEnum;
|
|
||||||
generatedAt: any;
|
|
||||||
processingStatus?: string | null;
|
|
||||||
ineligibilityReason?: SessionCoachIneligibilityReasonEnum | null;
|
|
||||||
summary?: string | null;
|
|
||||||
shotCount: number;
|
|
||||||
madeCount: number;
|
|
||||||
missedCount: number;
|
|
||||||
unknownOutcomeCount: number;
|
|
||||||
analyzedShotCount: number;
|
|
||||||
makePercentage?: number | null;
|
|
||||||
primaryCandidate?: {
|
|
||||||
__typename?: "SessionCoachCandidateGQL";
|
|
||||||
id: string;
|
|
||||||
rank: number;
|
|
||||||
family: SessionCoachCandidateFamilyEnum;
|
|
||||||
kind: SessionCoachCandidateKindEnum;
|
|
||||||
title: string;
|
|
||||||
body: string;
|
|
||||||
action: string;
|
|
||||||
supportingShotIds: Array<number>;
|
|
||||||
drillId?: string | null;
|
|
||||||
limitations: Array<string>;
|
|
||||||
evidence: {
|
|
||||||
__typename?: "SessionCoachEvidenceGQL";
|
|
||||||
bucketKey: string;
|
|
||||||
bucketLabel: string;
|
|
||||||
attemptCount: number;
|
|
||||||
madeCount: number;
|
|
||||||
missedCount: number;
|
|
||||||
makePercentage: number;
|
|
||||||
comparisonAttemptCount: number;
|
|
||||||
comparisonMadeCount: number;
|
|
||||||
comparisonMakePercentage?: number | null;
|
|
||||||
patternShotCount: number;
|
|
||||||
score: number;
|
|
||||||
rankReason: string;
|
|
||||||
};
|
|
||||||
} | null;
|
|
||||||
candidates: Array<{
|
|
||||||
__typename?: "SessionCoachCandidateGQL";
|
|
||||||
id: string;
|
|
||||||
rank: number;
|
|
||||||
family: SessionCoachCandidateFamilyEnum;
|
|
||||||
kind: SessionCoachCandidateKindEnum;
|
|
||||||
title: string;
|
|
||||||
body: string;
|
|
||||||
action: string;
|
|
||||||
supportingShotIds: Array<number>;
|
|
||||||
drillId?: string | null;
|
|
||||||
limitations: Array<string>;
|
|
||||||
evidence: {
|
|
||||||
__typename?: "SessionCoachEvidenceGQL";
|
|
||||||
bucketKey: string;
|
|
||||||
bucketLabel: string;
|
|
||||||
attemptCount: number;
|
|
||||||
madeCount: number;
|
|
||||||
missedCount: number;
|
|
||||||
makePercentage: number;
|
|
||||||
comparisonAttemptCount: number;
|
|
||||||
comparisonMadeCount: number;
|
|
||||||
comparisonMakePercentage?: number | null;
|
|
||||||
patternShotCount: number;
|
|
||||||
score: number;
|
|
||||||
rankReason: string;
|
|
||||||
};
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SessionCoachCandidateFieldsFragment = {
|
|
||||||
__typename?: "SessionCoachCandidateGQL";
|
|
||||||
id: string;
|
|
||||||
rank: number;
|
|
||||||
family: SessionCoachCandidateFamilyEnum;
|
|
||||||
kind: SessionCoachCandidateKindEnum;
|
|
||||||
title: string;
|
|
||||||
body: string;
|
|
||||||
action: string;
|
|
||||||
supportingShotIds: Array<number>;
|
|
||||||
drillId?: string | null;
|
|
||||||
limitations: Array<string>;
|
|
||||||
evidence: {
|
|
||||||
__typename?: "SessionCoachEvidenceGQL";
|
|
||||||
bucketKey: string;
|
|
||||||
bucketLabel: string;
|
|
||||||
attemptCount: number;
|
|
||||||
madeCount: number;
|
|
||||||
missedCount: number;
|
|
||||||
makePercentage: number;
|
|
||||||
comparisonAttemptCount: number;
|
|
||||||
comparisonMadeCount: number;
|
|
||||||
comparisonMakePercentage?: number | null;
|
|
||||||
patternShotCount: number;
|
|
||||||
score: number;
|
|
||||||
rankReason: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type PlayerSummaryFieldsFragment = {
|
export type PlayerSummaryFieldsFragment = {
|
||||||
__typename?: "PlayerSummaryGQL";
|
__typename?: "PlayerSummaryGQL";
|
||||||
clusterId: number;
|
clusterId: number;
|
||||||
@@ -7136,6 +6920,7 @@ export type GetLiveTableStateQuery = {
|
|||||||
__typename?: "RGBColorGQL";
|
__typename?: "RGBColorGQL";
|
||||||
hex: string;
|
hex: string;
|
||||||
} | null>;
|
} | null>;
|
||||||
|
<<<<<<< HEAD
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -7158,6 +6943,36 @@ export type GetShotTableStateQuery = {
|
|||||||
__typename?: "RGBColorGQL";
|
__typename?: "RGBColorGQL";
|
||||||
hex: string;
|
hex: string;
|
||||||
} | null>;
|
} | null>;
|
||||||
|
=======
|
||||||
|
homography?: {
|
||||||
|
__typename?: "HomographyInfoGQL";
|
||||||
|
id?: number | null;
|
||||||
|
frameIndex: number;
|
||||||
|
crop: {
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
};
|
||||||
|
pockets: Array<{
|
||||||
|
__typename?: "BoundingBoxGQL";
|
||||||
|
left: number;
|
||||||
|
top: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
}>;
|
||||||
|
sourcePoints: {
|
||||||
|
__typename?: "PocketPointsGQL";
|
||||||
|
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||||
|
};
|
||||||
|
} | null;
|
||||||
|
>>>>>>> 6d13dc3
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -8409,7 +8224,6 @@ export type GetVideoCardQuery = {
|
|||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
isCompleted: boolean;
|
||||||
lastSegmentUploadedAt?: any | null;
|
lastSegmentUploadedAt?: any | null;
|
||||||
@@ -9237,7 +9051,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
isCompleted
|
||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
@@ -9425,34 +9238,6 @@ export const PocketingIntentionFragmentFragmentDoc = gql`
|
|||||||
difficulty
|
difficulty
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const SessionCoachCandidateFieldsFragmentDoc = gql`
|
|
||||||
fragment SessionCoachCandidateFields on SessionCoachCandidateGQL {
|
|
||||||
id
|
|
||||||
rank
|
|
||||||
family
|
|
||||||
kind
|
|
||||||
title
|
|
||||||
body
|
|
||||||
action
|
|
||||||
supportingShotIds
|
|
||||||
drillId
|
|
||||||
limitations
|
|
||||||
evidence {
|
|
||||||
bucketKey
|
|
||||||
bucketLabel
|
|
||||||
attemptCount
|
|
||||||
madeCount
|
|
||||||
missedCount
|
|
||||||
makePercentage
|
|
||||||
comparisonAttemptCount
|
|
||||||
comparisonMadeCount
|
|
||||||
comparisonMakePercentage
|
|
||||||
patternShotCount
|
|
||||||
score
|
|
||||||
rankReason
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export const PlayerClusterShotFieldsFragmentDoc = gql`
|
export const PlayerClusterShotFieldsFragmentDoc = gql`
|
||||||
fragment PlayerClusterShotFields on PlayerClusterShotGQL {
|
fragment PlayerClusterShotFields on PlayerClusterShotGQL {
|
||||||
shotId
|
shotId
|
||||||
@@ -14941,99 +14726,6 @@ export type GetRunsWithTimestampsQueryResult = Apollo.QueryResult<
|
|||||||
GetRunsWithTimestampsQuery,
|
GetRunsWithTimestampsQuery,
|
||||||
GetRunsWithTimestampsQueryVariables
|
GetRunsWithTimestampsQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetSessionCoachDocument = gql`
|
|
||||||
query GetSessionCoach($videoId: Int!) {
|
|
||||||
getSessionCoach(videoId: $videoId) {
|
|
||||||
videoId
|
|
||||||
processingId
|
|
||||||
analysisVersion
|
|
||||||
state
|
|
||||||
generatedAt
|
|
||||||
processingStatus
|
|
||||||
ineligibilityReason
|
|
||||||
summary
|
|
||||||
shotCount
|
|
||||||
madeCount
|
|
||||||
missedCount
|
|
||||||
unknownOutcomeCount
|
|
||||||
analyzedShotCount
|
|
||||||
makePercentage
|
|
||||||
primaryCandidate {
|
|
||||||
...SessionCoachCandidateFields
|
|
||||||
}
|
|
||||||
candidates {
|
|
||||||
...SessionCoachCandidateFields
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
${SessionCoachCandidateFieldsFragmentDoc}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetSessionCoachQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetSessionCoachQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetSessionCoachQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
||||||
* you can use to render your UI.
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const { data, loading, error } = useGetSessionCoachQuery({
|
|
||||||
* variables: {
|
|
||||||
* videoId: // value for 'videoId'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetSessionCoachQuery(
|
|
||||||
baseOptions: Apollo.QueryHookOptions<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<GetSessionCoachQuery, GetSessionCoachQueryVariables>(
|
|
||||||
GetSessionCoachDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetSessionCoachLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>(GetSessionCoachDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetSessionCoachSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>(GetSessionCoachDocument, options);
|
|
||||||
}
|
|
||||||
export type GetSessionCoachQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSessionCoachQuery
|
|
||||||
>;
|
|
||||||
export type GetSessionCoachLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSessionCoachLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetSessionCoachSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSessionCoachSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetSessionCoachQueryResult = Apollo.QueryResult<
|
|
||||||
GetSessionCoachQuery,
|
|
||||||
GetSessionCoachQueryVariables
|
|
||||||
>;
|
|
||||||
export const VideoPlayerClustersDocument = gql`
|
export const VideoPlayerClustersDocument = gql`
|
||||||
query VideoPlayerClusters($videoId: Int!) {
|
query VideoPlayerClusters($videoId: Int!) {
|
||||||
videoPlayerClusters(videoId: $videoId) {
|
videoPlayerClusters(videoId: $videoId) {
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
isCompleted
|
||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
|
|||||||
@@ -1,51 +0,0 @@
|
|||||||
query GetSessionCoach($videoId: Int!) {
|
|
||||||
getSessionCoach(videoId: $videoId) {
|
|
||||||
videoId
|
|
||||||
processingId
|
|
||||||
analysisVersion
|
|
||||||
state
|
|
||||||
generatedAt
|
|
||||||
processingStatus
|
|
||||||
ineligibilityReason
|
|
||||||
summary
|
|
||||||
shotCount
|
|
||||||
madeCount
|
|
||||||
missedCount
|
|
||||||
unknownOutcomeCount
|
|
||||||
analyzedShotCount
|
|
||||||
makePercentage
|
|
||||||
primaryCandidate {
|
|
||||||
...SessionCoachCandidateFields
|
|
||||||
}
|
|
||||||
candidates {
|
|
||||||
...SessionCoachCandidateFields
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment SessionCoachCandidateFields on SessionCoachCandidateGQL {
|
|
||||||
id
|
|
||||||
rank
|
|
||||||
family
|
|
||||||
kind
|
|
||||||
title
|
|
||||||
body
|
|
||||||
action
|
|
||||||
supportingShotIds
|
|
||||||
drillId
|
|
||||||
limitations
|
|
||||||
evidence {
|
|
||||||
bucketKey
|
|
||||||
bucketLabel
|
|
||||||
attemptCount
|
|
||||||
madeCount
|
|
||||||
missedCount
|
|
||||||
makePercentage
|
|
||||||
comparisonAttemptCount
|
|
||||||
comparisonMadeCount
|
|
||||||
comparisonMakePercentage
|
|
||||||
patternShotCount
|
|
||||||
score
|
|
||||||
rankReason
|
|
||||||
}
|
|
||||||
}
|
|
||||||
2857
src/schema.gql
2857
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user