Compare commits

..

1 Commits

Author SHA1 Message Date
478c04215f GetShotsWithMetadata accepts ids
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-10-03 12:34:36 -06:00
4 changed files with 5 additions and 573 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,42 +17,6 @@ query GetShotAnnotationTypes {
} }
} }
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!
$shotsPagination: GetShotsPagination
$limit: Int
$ids: [Int!]
) {
getShotsWithMetadata(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
ids: $ids
) {
count
shots {
...ShotWithAllFeatures
}
ids
}
}
# TODO: Delete
query GetShotsWithMetadata( query GetShotsWithMetadata(
$filterInput: FilterInput! $filterInput: FilterInput!
$shotsPagination: GetShotsPagination $shotsPagination: GetShotsPagination
@@ -89,7 +53,6 @@ fragment ShotWithAllFeatures on ShotGQL {
} }
falsePositiveScore falsePositiveScore
video { video {
id
stream { stream {
resolution { resolution {
width width
@@ -107,11 +70,8 @@ fragment ShotWithAllFeatures on ShotGQL {
spinType spinType
} }
pocketingIntentionFeatures { pocketingIntentionFeatures {
make
targetPocketDistance targetPocketDistance
targetPocketAngle make
targetPocketAngleDirection
marginOfErrorInDegrees
intendedPocketType intendedPocketType
} }
pocketingIntentionInfo { pocketingIntentionInfo {

View File

@@ -237,11 +237,3 @@ query GetVideoForClipTimes($videoId: Int!) {
} }
} }
} }
query GetHeaderInfoByVideoId($videoId: Int!) {
getVideo(videoId: $videoId) {
id
name
startTime
}
}

View File

@@ -125,7 +125,6 @@ enum AlignedIntervalEnum {
MONTH MONTH
YEAR YEAR
WEEK WEEK
DAY
} }
input FilterInput @oneOf { input FilterInput @oneOf {
@@ -141,7 +140,6 @@ input FilterInput @oneOf {
shotDirection: [ShotDirectionEnum!] shotDirection: [ShotDirectionEnum!]
videoId: [Int!] videoId: [Int!]
userId: [Int!] userId: [Int!]
username: [String!]
make: [Boolean!] make: [Boolean!]
tags: [VideoTagInput!] tags: [VideoTagInput!]
annotations: [ShotAnnotationInput!] annotations: [ShotAnnotationInput!]
@@ -164,7 +162,6 @@ input FilterInput @oneOf {
targetPocketAngleDirection: [ShotDirectionEnum!] targetPocketAngleDirection: [ShotDirectionEnum!]
targetPocketAngle: FloatRangeFilter targetPocketAngle: FloatRangeFilter
missAngleInDegrees: FloatRangeFilter missAngleInDegrees: FloatRangeFilter
marginOfErrorInDegrees: FloatRangeFilter
createdAt: DateRangeFilter createdAt: DateRangeFilter
} }
@@ -285,7 +282,6 @@ type PocketingIntentionFeaturesGQL {
difficulty: Float difficulty: Float
targetPocketAngle: Float targetPocketAngle: Float
targetPocketAngleDirection: ShotDirectionEnum targetPocketAngleDirection: ShotDirectionEnum
marginOfErrorInDegrees: Float
backcut: Boolean backcut: Boolean
} }