150 lines
2.3 KiB
Plaintext
Raw Normal View History

2024-08-26 15:54:43 -07:00
query GetSerializedShotPaths($filterInput: FilterInput!) {
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
serializedShotPaths {
b64EncodedBuffer
}
}
}
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}
mutation UpdateShotAnnotations(
$shotId: Int!
$annotations: [UpdateAnnotationInputGQL!]!
) {
updateShotAnnotations(shotId: $shotId, annotations: $annotations) {
shot {
id
annotations {
shotId
type {
id
name
}
notes
}
}
error {
shotId
msg
}
}
}
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
ids
shots {
id
videoId
video {
screenshotUri
endTime
}
}
}
}
## Reserved for playlists (which are created from a filter)
query GetShotsWithMetadataFilterResult(
$filterInput: FilterInput!
2024-10-19 21:27:57 -06:00
$shotsOrdering: GetShotsOrdering
$limit: Int
$ids: [Int!]
) {
2024-10-19 21:27:57 -06:00
getOrderedShots(
filterInput: $filterInput
2024-10-19 21:27:57 -06:00
shotsOrdering: $shotsOrdering
limit: $limit
ids: $ids
) {
count
shots {
...ShotWithAllFeatures
}
ids
}
}
# TODO: Delete
query GetShotsWithMetadata(
$filterInput: FilterInput!
$shotsPagination: GetShotsPagination
$limit: Int
$ids: [Int!]
) {
getShotsWithMetadata(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
ids: $ids
) {
count
shots {
2024-10-02 18:15:00 -06:00
...ShotWithAllFeatures
}
ids
}
}
2024-09-29 22:53:24 -06:00
2024-10-02 18:15:00 -06:00
query GetShotsByIds($ids: [Int!]!) {
getShotsByIds(ids: $ids) {
...ShotWithAllFeatures
}
}
fragment ShotWithAllFeatures on ShotGQL {
id
videoId
startFrame
endFrame
2024-10-16 15:24:08 -06:00
startTime @client
endTime @client
user {
2024-09-29 22:53:24 -06:00
id
}
2024-10-02 18:15:00 -06:00
falsePositiveScore
createdAt
updatedAt
cueObjectFeatures {
cueObjectDistance
cueObjectAngle
cueBallSpeed
shotDirection
spinType
}
pocketingIntentionFeatures {
make
targetPocketDistance
targetPocketAngle
targetPocketAngleDirection
marginOfErrorInDegrees
intendedPocketType
}
2024-10-02 18:15:00 -06:00
pocketingIntentionInfo {
ballId
pocketId
pathMetadataIndex
}
serializedShotPaths {
b64EncodedBuffer
2024-09-29 22:53:24 -06:00
}
annotations {
shotId
type {
id
name
}
notes
}
2024-09-29 22:53:24 -06:00
}