This commit is contained in:
2024-02-20 19:18:21 -07:00
parent 9a2cae0c70
commit 828140ed2b
3 changed files with 41 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ type Query {
getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(first: Int! = 5, after: String = null): VideoFeedGQL!
}
type AggregateResultGQL {
@@ -65,17 +66,18 @@ scalar Decimal
type VideoGQL {
id: Int!
name: String!
totalShotsMade: Int!
totalShots: Int!
makePercentage: Decimal!
medianRun: Decimal!
averageTimeBetweenShots: Decimal
makePercentage: Float!
medianRun: Float
averageTimeBetweenShots: Float
createdAt: DateTime!
updatedAt: DateTime!
shots: [ShotGQL!]!
startTime: DateTime!
endTime: DateTime!
elapsedTime: Decimal!
elapsedTime: Float!
framesPerSecond: Int!
totalFrames: Int!
stream: UploadStreamGQL
@@ -224,6 +226,16 @@ type BucketSetGQL {
buckets: [BucketGQL!]!
}
type VideoFeedGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL {
hasNextPage: Boolean!
endCursor: String
}
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
@@ -255,6 +267,4 @@ input UploadMetadataInput {
type GetUploadLinkReturn {
uploadUrl: String!
linksRequested: Int!
uploadsCompleted: Int!
}