Compare commits
1 Commits
colonelpan
...
dean/drill
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb5217e070 |
20746
src/index.tsx
20746
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -55,6 +55,14 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
name
|
name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
drillResult {
|
||||||
|
drillTag
|
||||||
|
longestRun
|
||||||
|
longestRunId
|
||||||
|
prRank
|
||||||
|
isPersonalBest
|
||||||
|
attemptCount
|
||||||
|
}
|
||||||
playerSummaries {
|
playerSummaries {
|
||||||
...PlayerSummaryFields
|
...PlayerSummaryFields
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -85,53 +85,3 @@ query ComputePotAim(
|
|||||||
occludingBallIds
|
occludingBallIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment PositionShotCandidate on PositionShotCandidateGQL {
|
|
||||||
strike {
|
|
||||||
v0
|
|
||||||
phi
|
|
||||||
theta
|
|
||||||
a
|
|
||||||
b
|
|
||||||
}
|
|
||||||
cueFinalPosition
|
|
||||||
inTargetArea
|
|
||||||
distanceToTargetArea
|
|
||||||
robustness
|
|
||||||
potted
|
|
||||||
scratched
|
|
||||||
projection {
|
|
||||||
trajectories {
|
|
||||||
ballId
|
|
||||||
points {
|
|
||||||
time
|
|
||||||
position
|
|
||||||
}
|
|
||||||
}
|
|
||||||
events {
|
|
||||||
eventType
|
|
||||||
time
|
|
||||||
ballIds
|
|
||||||
position
|
|
||||||
}
|
|
||||||
finalState {
|
|
||||||
ballId
|
|
||||||
position
|
|
||||||
}
|
|
||||||
pottedBallIds
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query SuggestPositionShot($suggestionInput: SuggestPositionShotInputGQL!) {
|
|
||||||
suggestPositionShot(suggestionInput: $suggestionInput) {
|
|
||||||
achievable
|
|
||||||
evaluatedCount
|
|
||||||
successfulCount
|
|
||||||
best {
|
|
||||||
...PositionShotCandidate
|
|
||||||
}
|
|
||||||
alternates {
|
|
||||||
...PositionShotCandidate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
133
src/schema.gql
133
src/schema.gql
@@ -65,7 +65,6 @@ type Query {
|
|||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
countRespectsLimit: Boolean! = false
|
countRespectsLimit: Boolean! = false
|
||||||
): GetRunsResult!
|
): GetRunsResult!
|
||||||
getSessionCoach(videoId: Int!): SessionCoachGQL!
|
|
||||||
videoPlayerClusters(videoId: Int!): [PlayerClusterGQL!]!
|
videoPlayerClusters(videoId: Int!): [PlayerClusterGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
getTableState(
|
getTableState(
|
||||||
@@ -81,9 +80,6 @@ type Query {
|
|||||||
targetBallId: Int!
|
targetBallId: Int!
|
||||||
pocket: PocketIdentifier!
|
pocket: PocketIdentifier!
|
||||||
): PotAimGQL!
|
): PotAimGQL!
|
||||||
suggestPositionShot(
|
|
||||||
suggestionInput: SuggestPositionShotInputGQL!
|
|
||||||
): PositionSuggestionGQL!
|
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -442,6 +438,7 @@ type VideoGQL {
|
|||||||
reactions: [ReactionGQL!]!
|
reactions: [ReactionGQL!]!
|
||||||
comments: [CommentGQL!]!
|
comments: [CommentGQL!]!
|
||||||
playerSummaries: [PlayerSummaryGQL!]!
|
playerSummaries: [PlayerSummaryGQL!]!
|
||||||
|
drillResult: DrillResultGQL
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
@@ -725,6 +722,15 @@ type SpinTypeBreakdownGQL {
|
|||||||
follow: Int!
|
follow: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DrillResultGQL {
|
||||||
|
drillTag: String!
|
||||||
|
longestRun: Int!
|
||||||
|
longestRunId: Int
|
||||||
|
prRank: Int!
|
||||||
|
isPersonalBest: Boolean!
|
||||||
|
attemptCount: Int!
|
||||||
|
}
|
||||||
|
|
||||||
type DeployedConfigGQL {
|
type DeployedConfigGQL {
|
||||||
allowNewUsers: Boolean!
|
allowNewUsers: Boolean!
|
||||||
firebase: Boolean!
|
firebase: Boolean!
|
||||||
@@ -999,81 +1005,6 @@ input DatetimeOrdering {
|
|||||||
startingAt: DateTime = null
|
startingAt: DateTime = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type SessionCoachGQL {
|
|
||||||
videoId: Int!
|
|
||||||
processingId: Int
|
|
||||||
analysisVersion: String!
|
|
||||||
state: SessionCoachStateEnum!
|
|
||||||
generatedAt: DateTime!
|
|
||||||
processingStatus: String
|
|
||||||
ineligibilityReason: SessionCoachIneligibilityReasonEnum
|
|
||||||
summary: String
|
|
||||||
shotCount: Int!
|
|
||||||
madeCount: Int!
|
|
||||||
missedCount: Int!
|
|
||||||
unknownOutcomeCount: Int!
|
|
||||||
analyzedShotCount: Int!
|
|
||||||
makePercentage: Float
|
|
||||||
primaryCandidate: SessionCoachCandidateGQL
|
|
||||||
candidates: [SessionCoachCandidateGQL!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SessionCoachStateEnum {
|
|
||||||
PROCESSING
|
|
||||||
READY
|
|
||||||
NO_TRACKED_SHOTS
|
|
||||||
INELIGIBLE
|
|
||||||
FAILED
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SessionCoachIneligibilityReasonEnum {
|
|
||||||
MULTIPLAYER
|
|
||||||
}
|
|
||||||
|
|
||||||
type SessionCoachCandidateGQL {
|
|
||||||
id: ID!
|
|
||||||
rank: Int!
|
|
||||||
family: SessionCoachCandidateFamilyEnum!
|
|
||||||
kind: SessionCoachCandidateKindEnum!
|
|
||||||
title: String!
|
|
||||||
body: String!
|
|
||||||
action: String!
|
|
||||||
supportingShotIds: [Int!]!
|
|
||||||
drillId: String
|
|
||||||
evidence: SessionCoachEvidenceGQL!
|
|
||||||
limitations: [String!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SessionCoachCandidateFamilyEnum {
|
|
||||||
AIMING
|
|
||||||
CUT_ANGLE
|
|
||||||
SPIN
|
|
||||||
OBJECT_TO_POCKET_DISTANCE
|
|
||||||
CUE_TO_OBJECT_DISTANCE
|
|
||||||
BACK_CUT
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SessionCoachCandidateKindEnum {
|
|
||||||
DIRECTIONAL_MISS
|
|
||||||
OUTCOME_PATTERN
|
|
||||||
USAGE_PATTERN
|
|
||||||
}
|
|
||||||
|
|
||||||
type SessionCoachEvidenceGQL {
|
|
||||||
bucketKey: String!
|
|
||||||
bucketLabel: String!
|
|
||||||
attemptCount: Int!
|
|
||||||
madeCount: Int!
|
|
||||||
missedCount: Int!
|
|
||||||
makePercentage: Float!
|
|
||||||
comparisonAttemptCount: Int!
|
|
||||||
comparisonMadeCount: Int!
|
|
||||||
comparisonMakePercentage: Float
|
|
||||||
patternShotCount: Int!
|
|
||||||
score: Float!
|
|
||||||
rankReason: String!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PlayerClusterGQL {
|
type PlayerClusterGQL {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
clusterId: Int!
|
clusterId: Int!
|
||||||
@@ -1222,44 +1153,6 @@ type PotAimGQL {
|
|||||||
occludingBallIds: [Int!]!
|
occludingBallIds: [Int!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type PositionSuggestionGQL {
|
|
||||||
achievable: Boolean!
|
|
||||||
best: PositionShotCandidateGQL
|
|
||||||
alternates: [PositionShotCandidateGQL!]!
|
|
||||||
evaluatedCount: Int!
|
|
||||||
successfulCount: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PositionShotCandidateGQL {
|
|
||||||
strike: CueStrikeGQL!
|
|
||||||
cueFinalPosition: [Float!]!
|
|
||||||
inTargetArea: Boolean!
|
|
||||||
distanceToTargetArea: Float!
|
|
||||||
robustness: Int!
|
|
||||||
potted: Boolean!
|
|
||||||
scratched: Boolean!
|
|
||||||
projection: ShotProjectionGQL
|
|
||||||
}
|
|
||||||
|
|
||||||
type CueStrikeGQL {
|
|
||||||
v0: Float!
|
|
||||||
phi: Float!
|
|
||||||
theta: Float!
|
|
||||||
a: Float!
|
|
||||||
b: Float!
|
|
||||||
}
|
|
||||||
|
|
||||||
input SuggestPositionShotInputGQL {
|
|
||||||
cueBallId: Int!
|
|
||||||
targetBallId: Int!
|
|
||||||
pocket: PocketIdentifier!
|
|
||||||
targetArea: [[Float!]!]!
|
|
||||||
balls: [SimulationBallStateInputGQL!] = null
|
|
||||||
b64Image: String = null
|
|
||||||
useHomography: HomographyInputGQL = null
|
|
||||||
tableSize: Float = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -1942,7 +1835,6 @@ input VideoMetadataInput {
|
|||||||
clientUploadStatus: ClientUploadStatusEnum = null
|
clientUploadStatus: ClientUploadStatusEnum = null
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
homographyBackend: HomographyBackendGQL = null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoResolution {
|
input VideoResolution {
|
||||||
@@ -1950,11 +1842,6 @@ input VideoResolution {
|
|||||||
height: Int!
|
height: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HomographyBackendGQL {
|
|
||||||
CLASSIC
|
|
||||||
TABLENET
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetUploadLinkReturn {
|
type GetUploadLinkReturn {
|
||||||
value: UploadLinkGetUploadLinkErrors!
|
value: UploadLinkGetUploadLinkErrors!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
|
|||||||
Reference in New Issue
Block a user