Compare commits
1 Commits
master
...
colonelpan
| Author | SHA1 | Date | |
|---|---|---|---|
| e86dd1900f |
20745
src/index.tsx
20745
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -1,21 +1,5 @@
|
|||||||
query GetMakesLeaderboard(
|
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||||
$interval: TimeInterval
|
getMakesLeaderboard(interval: $interval, when: $when) {
|
||||||
$when: DateTime
|
|
||||||
$gameType: String
|
|
||||||
$tableSizeMin: Float
|
|
||||||
$tableSizeMax: Float
|
|
||||||
$pocketSizeMin: Float
|
|
||||||
$pocketSizeMax: Float
|
|
||||||
) {
|
|
||||||
getMakesLeaderboard(
|
|
||||||
interval: $interval
|
|
||||||
when: $when
|
|
||||||
gameType: $gameType
|
|
||||||
tableSizeMin: $tableSizeMin
|
|
||||||
tableSizeMax: $tableSizeMax
|
|
||||||
pocketSizeMin: $pocketSizeMin
|
|
||||||
pocketSizeMax: $pocketSizeMax
|
|
||||||
) {
|
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -29,24 +13,8 @@ query GetMakesLeaderboard(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetRunsLeaderboard(
|
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||||
$interval: TimeInterval
|
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
||||||
$when: DateTime
|
|
||||||
$gameType: String
|
|
||||||
$tableSizeMin: Float
|
|
||||||
$tableSizeMax: Float
|
|
||||||
$pocketSizeMin: Float
|
|
||||||
$pocketSizeMax: Float
|
|
||||||
) {
|
|
||||||
getLongestRunsLeaderboard(
|
|
||||||
interval: $interval
|
|
||||||
when: $when
|
|
||||||
gameType: $gameType
|
|
||||||
tableSizeMin: $tableSizeMin
|
|
||||||
tableSizeMax: $tableSizeMax
|
|
||||||
pocketSizeMin: $pocketSizeMin
|
|
||||||
pocketSizeMax: $pocketSizeMax
|
|
||||||
) {
|
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
|
|||||||
34
src/operations/live_streams.gql
Normal file
34
src/operations/live_streams.gql
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Lightweight listing of live (in-progress) streams for pickers like the
|
||||||
|
# Shot Lab "follow a live stream" flow. Selects only what a picker card
|
||||||
|
# needs; intentionally avoids the heavy VideoCardFields fragment.
|
||||||
|
query GetLiveStreams($limit: Int! = 25) {
|
||||||
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
||||||
|
includePrivate: MINE
|
||||||
|
feedInput: { allUsers: true }
|
||||||
|
) {
|
||||||
|
videos {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
startTime
|
||||||
|
createdAt
|
||||||
|
screenshotUri
|
||||||
|
elapsedTime
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
lastSegmentUploadedAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
# Lightweight two-step picker data for Shot Lab's video-first source: recent
|
# Lightweight two-step picker data for loading a recorded shot into Shot Lab.
|
||||||
# videos (completed or still uploading — no completion gate, so an in-progress
|
query GetRecordedStreams($limit: Int! = 25) {
|
||||||
# recording with no shots yet still appears), then that video's shots. The
|
|
||||||
# stream fields let the client hint at "actively updating" without gating.
|
|
||||||
query GetShotLabVideos($limit: Int! = 25) {
|
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
||||||
includePrivate: MINE
|
includePrivate: MINE
|
||||||
feedInput: { allUsers: true }
|
feedInput: { allUsers: true }
|
||||||
) {
|
) {
|
||||||
@@ -20,11 +18,6 @@ query GetShotLabVideos($limit: Int! = 25) {
|
|||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
}
|
}
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
lastSegmentUploadedAt
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,3 +85,53 @@ 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
3235
src/schema.gql
3235
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user