Compare commits
1 Commits
kat/suppor
...
micah/add-
Author | SHA1 | Date | |
---|---|---|---|
0999c88797 |
512
src/index.tsx
512
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,5 @@
|
|||||||
query GetShots(
|
query GetShots(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsPagination: GetShotsPagination = null
|
|
||||||
$limit: Int
|
|
||||||
$includeCreatedAt: Boolean! = false
|
$includeCreatedAt: Boolean! = false
|
||||||
$includeUpdatedAt: Boolean! = false
|
$includeUpdatedAt: Boolean! = false
|
||||||
$includeCueObjectFeatures: Boolean! = false
|
$includeCueObjectFeatures: Boolean! = false
|
||||||
@@ -14,11 +12,7 @@ query GetShots(
|
|||||||
$includeMake: Boolean! = false
|
$includeMake: Boolean! = false
|
||||||
$includeIntendedPocketType: Boolean! = false
|
$includeIntendedPocketType: Boolean! = false
|
||||||
) {
|
) {
|
||||||
getShots(
|
getShots(filterInput: $filterInput) {
|
||||||
filterInput: $filterInput
|
|
||||||
shotsPagination: $shotsPagination
|
|
||||||
limit: $limit
|
|
||||||
) {
|
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
@@ -26,7 +20,6 @@ query GetShots(
|
|||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
falsePositiveScore
|
|
||||||
createdAt @include(if: $includeCreatedAt)
|
createdAt @include(if: $includeCreatedAt)
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
updatedAt @include(if: $includeUpdatedAt)
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
query GetStreamMonitoringDetails($videoId: Int!) {
|
||||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
@@ -138,58 +138,12 @@ query GetVideo($videoId: Int!) {
|
|||||||
playlist {
|
playlist {
|
||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
homographyHistory {
|
|
||||||
frameIndex
|
|
||||||
crop {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
pockets {
|
|
||||||
left
|
|
||||||
top
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
sourcePoints {
|
|
||||||
topLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
topRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomLeft {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomSide {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
bottomRight {
|
|
||||||
x
|
|
||||||
y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stream {
|
stream {
|
||||||
streamSegmentType
|
|
||||||
segments {
|
segments {
|
||||||
segmentIndex
|
segmentIndex
|
||||||
endFrameIndex
|
endFrameIndex
|
||||||
framesPerSecond
|
framesPerSecond
|
||||||
}
|
}
|
||||||
resolution {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -212,24 +166,3 @@ query GetMedianRunForVideo($videoId: Int!) {
|
|||||||
medianRun
|
medianRun
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoForClipTimes($videoId: Int!) {
|
|
||||||
getVideo(videoId: $videoId) {
|
|
||||||
id
|
|
||||||
framesPerSecond
|
|
||||||
playlist {
|
|
||||||
segmentDurations
|
|
||||||
}
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
streamSegmentType
|
|
||||||
segments {
|
|
||||||
uploaded
|
|
||||||
valid
|
|
||||||
segmentIndex
|
|
||||||
endFrameIndex
|
|
||||||
framesPerSecond
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -72,7 +72,6 @@ query GetUploadStreamsWithDetails(
|
|||||||
isCompleted
|
isCompleted
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
|
107
src/schema.gql
107
src/schema.gql
@@ -4,16 +4,11 @@ type Query {
|
|||||||
): [AggregateResultGQL!]!
|
): [AggregateResultGQL!]!
|
||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
getDeployedConfig: DeployedConfigGQL!
|
getDeployedConfig: DeployedConfigGQL!
|
||||||
waitFor(duration: Float!): Float!
|
|
||||||
getVideoMakePercentageIntervals(
|
getVideoMakePercentageIntervals(
|
||||||
videoId: ID!
|
videoId: ID!
|
||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
getShots(
|
getShots(filterInput: FilterInput!): [ShotGQL!]!
|
||||||
filterInput: FilterInput!
|
|
||||||
shotsPagination: GetShotsPagination = null
|
|
||||||
limit: Int! = 500
|
|
||||||
): [ShotGQL!]!
|
|
||||||
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
getLoggedInUser: UserGQL
|
getLoggedInUser: UserGQL
|
||||||
@@ -29,8 +24,7 @@ type Query {
|
|||||||
after: String = null
|
after: String = null
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
getUserTags: [TagGQL!]!
|
getVideo(videoId: Int!): VideoGQL!
|
||||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
|
||||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,16 +94,11 @@ input FilterInput @oneOf {
|
|||||||
bankDistance: RangeFilter
|
bankDistance: RangeFilter
|
||||||
kickAngle: RangeFilter
|
kickAngle: RangeFilter
|
||||||
kickDistance: RangeFilter
|
kickDistance: RangeFilter
|
||||||
cueAngleAfterObject: RangeFilter
|
|
||||||
cueSpeedAfterObject: RangeFilter
|
|
||||||
spinType: [String!]
|
|
||||||
falsePositiveScore: RangeFilter
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input RangeFilter {
|
input RangeFilter {
|
||||||
lessThan: Float = null
|
lessThan: Float = null
|
||||||
greaterThanEqualTo: Float = null
|
greaterThanEqualTo: Float = null
|
||||||
includeOnNone: Boolean! = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PocketEnum {
|
enum PocketEnum {
|
||||||
@@ -172,8 +161,6 @@ type ShotGQL {
|
|||||||
serializedShotPaths: SerializedShotPathsGQL
|
serializedShotPaths: SerializedShotPathsGQL
|
||||||
user: UserGQL
|
user: UserGQL
|
||||||
annotations: [ShotAnnotationGQL!]!
|
annotations: [ShotAnnotationGQL!]!
|
||||||
falsePositiveScore: Float
|
|
||||||
video: VideoGQL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@@ -235,6 +222,15 @@ type ShotAnnotationTypeGQL {
|
|||||||
name: String!
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type UserPlayTimeGQL {
|
||||||
|
totalSeconds: Float!
|
||||||
|
}
|
||||||
|
|
||||||
|
type VideoHistoryGQL {
|
||||||
|
videos: [VideoGQL!]!
|
||||||
|
pageInfo: PageInfoGQL!
|
||||||
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type VideoGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
owner: UserGQL
|
owner: UserGQL
|
||||||
@@ -273,8 +269,6 @@ type UploadStreamGQL {
|
|||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
segments: [UploadSegmentGQL!]!
|
segments: [UploadSegmentGQL!]!
|
||||||
resolution: VideoResolutionGQL!
|
|
||||||
streamSegmentType: StreamSegmentTypeEnum!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum InitPlaylistUploadStatusEnum {
|
enum InitPlaylistUploadStatusEnum {
|
||||||
@@ -297,16 +291,6 @@ type UploadSegmentGQL {
|
|||||||
linksRequested: Int!
|
linksRequested: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoResolutionGQL {
|
|
||||||
width: Int
|
|
||||||
height: Int
|
|
||||||
}
|
|
||||||
|
|
||||||
enum StreamSegmentTypeEnum {
|
|
||||||
FRAGMENTED_MP4
|
|
||||||
RB_CHUNKED_MP4
|
|
||||||
}
|
|
||||||
|
|
||||||
type HLSPlaylistGQL {
|
type HLSPlaylistGQL {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
m3u8Text: String!
|
m3u8Text: String!
|
||||||
@@ -353,8 +337,6 @@ type IntPoint2D {
|
|||||||
|
|
||||||
type VideoProcessingGQL {
|
type VideoProcessingGQL {
|
||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingErrorGQL {
|
type VideoProcessingErrorGQL {
|
||||||
@@ -363,44 +345,6 @@ type VideoProcessingErrorGQL {
|
|||||||
endSegmentIndex: Int
|
endSegmentIndex: Int
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ProcessingStatusEnum {
|
|
||||||
STARTED
|
|
||||||
FAILED
|
|
||||||
SUCCEEDED
|
|
||||||
SUSPENDED
|
|
||||||
CREATED
|
|
||||||
QUEUED
|
|
||||||
RUNNING
|
|
||||||
REEXTRACTING_FEATURES
|
|
||||||
}
|
|
||||||
|
|
||||||
type VideoProcessingStatusGQL {
|
|
||||||
status: ProcessingStatusEnum!
|
|
||||||
appVersion: String!
|
|
||||||
sequenceId: Int!
|
|
||||||
createdAt: DateTime
|
|
||||||
updatedAt: DateTime
|
|
||||||
}
|
|
||||||
|
|
||||||
input GetShotsPagination {
|
|
||||||
createdAfter: CreatedAfter!
|
|
||||||
startFrameAfter: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
input CreatedAfter @oneOf {
|
|
||||||
videoId: Int
|
|
||||||
createdAt: DateTime
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
|
||||||
totalSeconds: Float!
|
|
||||||
}
|
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
|
||||||
videos: [VideoGQL!]!
|
|
||||||
pageInfo: PageInfoGQL!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PageInfoGQL {
|
type PageInfoGQL {
|
||||||
hasNextPage: Boolean!
|
hasNextPage: Boolean!
|
||||||
endCursor: String
|
endCursor: String
|
||||||
@@ -411,24 +355,9 @@ input VideoFilterInput {
|
|||||||
requireCursorCompletion: Boolean! = true
|
requireCursorCompletion: Boolean! = true
|
||||||
}
|
}
|
||||||
|
|
||||||
type TagGQL {
|
|
||||||
name: String!
|
|
||||||
id: Int!
|
|
||||||
group: String
|
|
||||||
}
|
|
||||||
|
|
||||||
"""
|
|
||||||
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
|
||||||
"""
|
|
||||||
scalar JSON
|
|
||||||
@specifiedBy(
|
|
||||||
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
|
|
||||||
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
||||||
editProfileImageUri(profileImageUri: String!): UserGQL!
|
editProfileImageUri(profileImageUri: String!): UserGQL!
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
@@ -454,7 +383,6 @@ input CreateBucketSetInput {
|
|||||||
type GetUploadLinkReturn {
|
type GetUploadLinkReturn {
|
||||||
uploadUrl: String!
|
uploadUrl: String!
|
||||||
headers: [Header]!
|
headers: [Header]!
|
||||||
uploadCompletionCursor: Int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Header {
|
type Header {
|
||||||
@@ -467,6 +395,7 @@ type CreateUploadStreamReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input VideoMetadataInput {
|
input VideoMetadataInput {
|
||||||
|
resolution: VideoResolution!
|
||||||
videoName: String = null
|
videoName: String = null
|
||||||
startTime: DateTime = null
|
startTime: DateTime = null
|
||||||
endTime: DateTime = null
|
endTime: DateTime = null
|
||||||
@@ -476,10 +405,14 @@ input VideoMetadataInput {
|
|||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
endStream: Boolean! = false
|
endStream: Boolean! = false
|
||||||
resolution: VideoResolution = null
|
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input VideoResolution {
|
||||||
|
width: Int!
|
||||||
|
height: Int!
|
||||||
|
}
|
||||||
|
|
||||||
input UploadStreamMetadataInput {
|
input UploadStreamMetadataInput {
|
||||||
deviceType: DeviceTypeEnum = null
|
deviceType: DeviceTypeEnum = null
|
||||||
osVersion: String = null
|
osVersion: String = null
|
||||||
@@ -498,7 +431,7 @@ enum DeviceTypeEnum {
|
|||||||
BROWSER
|
BROWSER
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoResolution {
|
enum StreamSegmentTypeEnum {
|
||||||
width: Int!
|
FRAGMENTED_MP4
|
||||||
height: Int!
|
RB_CHUNKED_MP4
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user