railbird-gql/src/operations/shots.gql

61 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-02-05 12:16:58 -07:00
query GetShots(
$filterInput: FilterInput!
2024-08-13 14:49:12 -06:00
$shotsPagination: GetShotsPagination
2024-08-09 15:10:36 -06:00
$limit: Int
$includeCreatedAt: Boolean! = false
$includeUpdatedAt: Boolean! = false
$includeCueObjectFeatures: Boolean! = false
$includePocketingIntentionFeatures: Boolean! = false
2024-02-22 18:36:15 -07:00
$includeCueObjectDistance: Boolean! = false
$includeCueObjectAngle: Boolean! = false
$includeCueBallSpeed: Boolean! = false
$includeShotDirection: Boolean! = false
$includeTargetPocketDistance: Boolean! = false
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
2024-02-05 12:16:58 -07:00
) {
2024-08-09 15:10:36 -06:00
getShots(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
) {
2024-02-22 18:36:15 -07:00
id
videoId
startFrame
endFrame
2024-05-21 14:14:02 -06:00
user {
id
}
2024-07-28 02:06:39 -06:00
falsePositiveScore
2024-08-23 18:29:40 -06:00
video {
stream {
resolution {
width
height
}
}
}
createdAt @include(if: $includeCreatedAt)
updatedAt @include(if: $includeUpdatedAt)
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
2024-02-22 18:36:15 -07:00
cueObjectDistance @include(if: $includeCueObjectDistance)
cueObjectAngle @include(if: $includeCueObjectAngle)
cueBallSpeed @include(if: $includeCueBallSpeed)
shotDirection @include(if: $includeShotDirection)
}
pocketingIntentionFeatures
@include(if: $includePocketingIntentionFeatures) {
2024-02-22 18:36:15 -07:00
targetPocketDistance @include(if: $includeTargetPocketDistance)
make @include(if: $includeMake)
intendedPocketType @include(if: $includeIntendedPocketType)
}
}
2024-02-05 12:16:58 -07:00
}
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}