2024-02-03 03:16:55 -07:00
|
|
|
type Query {
|
2024-03-09 10:21:43 -07:00
|
|
|
getAggregatedShotMetrics(
|
|
|
|
aggregateInput: AggregateInputGQL!
|
|
|
|
): [AggregateResultGQL!]!
|
2024-02-03 03:16:55 -07:00
|
|
|
getBucketSet(keyName: String!): BucketSetGQL
|
2024-04-01 20:46:21 -06:00
|
|
|
getDeployedConfig: DeployedConfigGQL!
|
2024-03-14 12:57:31 -06:00
|
|
|
getVideoMakePercentageIntervals(
|
|
|
|
videoId: ID!
|
|
|
|
intervalDuration: Int! = 300
|
|
|
|
): [MakePercentageIntervalGQL!]!
|
2024-04-01 20:46:21 -06:00
|
|
|
getShots(filterInput: FilterInput!): [ShotGQL!]!
|
|
|
|
getUser(userId: Int!): UserGQL
|
|
|
|
getLoggedInUser: UserGQL
|
|
|
|
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
2024-04-05 15:46:16 -06:00
|
|
|
getUserVideos(
|
|
|
|
userId: Int = null
|
|
|
|
limit: Int! = 5
|
|
|
|
after: String = null
|
|
|
|
filters: VideoFilterInput = null
|
|
|
|
): VideoHistoryGQL!
|
2024-04-01 20:46:21 -06:00
|
|
|
getVideo(videoId: Int!): VideoGQL!
|
2024-04-22 16:18:06 -06:00
|
|
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type AggregateResultGQL {
|
2024-03-30 21:49:29 -06:00
|
|
|
aggregationIdentifiers: [AggregationIdentifierGQL!]!
|
|
|
|
targetMetrics: TargetMetricsGQL!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
type AggregationIdentifierGQL {
|
|
|
|
featureName: String!
|
|
|
|
groupName: String!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
type TargetMetricsGQL {
|
|
|
|
count: Int!
|
2024-02-03 03:16:55 -07:00
|
|
|
makePercentage: Float
|
2024-05-01 12:47:50 -06:00
|
|
|
averageDifficulty: Float
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-03-09 10:21:43 -07:00
|
|
|
input AggregateInputGQL {
|
2024-03-30 21:49:29 -06:00
|
|
|
aggregations: [AggregationInput!]!
|
2024-03-09 10:21:43 -07:00
|
|
|
filterInput: FilterInput
|
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
input AggregationInput {
|
|
|
|
bucketSet: BucketSetInputGQL = null
|
|
|
|
enum: EnumAggregation = null
|
|
|
|
}
|
|
|
|
|
2024-02-03 03:16:55 -07:00
|
|
|
input BucketSetInputGQL {
|
|
|
|
feature: String!
|
|
|
|
buckets: [BucketInputGQL!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input BucketInputGQL {
|
|
|
|
rangeKey: String!
|
|
|
|
lowerBound: Float!
|
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
input EnumAggregation {
|
|
|
|
feature: String!
|
|
|
|
}
|
|
|
|
|
2024-03-09 10:21:43 -07:00
|
|
|
input FilterInput {
|
|
|
|
andFilters: AndFilter = null
|
|
|
|
orFilters: OrFilter = null
|
2024-03-30 21:49:29 -06:00
|
|
|
cueObjectDistance: RangeFilter = null
|
|
|
|
targetPocketDistance: RangeFilter = null
|
|
|
|
cueObjectAngle: RangeFilter = null
|
|
|
|
cueBallSpeed: RangeFilter = null
|
2024-05-01 12:47:50 -06:00
|
|
|
difficulty: RangeFilter = null
|
2024-03-30 21:49:29 -06:00
|
|
|
intendedPocketType: [PocketEnum!] = null
|
|
|
|
shotDirection: [ShotDirectionEnum!] = null
|
2024-03-12 11:48:35 -06:00
|
|
|
videoId: [Int!] = null
|
|
|
|
userId: [Int!] = null
|
2024-03-30 21:49:29 -06:00
|
|
|
make: [Boolean!] = null
|
2024-03-28 15:20:39 -06:00
|
|
|
tags: [VideoTagInput!] = null
|
2024-03-09 10:21:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
input AndFilter {
|
|
|
|
filters: [FilterInput!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input OrFilter {
|
|
|
|
filters: [FilterInput!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input RangeFilter {
|
|
|
|
lessThan: Float = null
|
|
|
|
greaterThanEqualTo: Float = null
|
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
enum PocketEnum {
|
|
|
|
CORNER
|
|
|
|
SIDE
|
2024-03-17 22:33:52 -06:00
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
enum ShotDirectionEnum {
|
|
|
|
LEFT
|
|
|
|
RIGHT
|
|
|
|
STRAIGHT
|
2024-03-09 10:21:43 -07:00
|
|
|
}
|
|
|
|
|
2024-03-28 15:20:39 -06:00
|
|
|
input VideoTagInput {
|
2024-04-01 18:04:54 -06:00
|
|
|
tagClasses: [VideoTagClassInput!]! = []
|
2024-03-28 15:20:39 -06:00
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input VideoTagClassInput {
|
|
|
|
name: String!
|
2024-03-19 21:02:49 -06:00
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
type BucketSetGQL {
|
|
|
|
keyName: String!
|
|
|
|
feature: String!
|
|
|
|
buckets: [BucketGQL!]!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
type BucketGQL {
|
|
|
|
rangeKey: String!
|
|
|
|
lowerBound: Float!
|
|
|
|
}
|
2024-02-03 03:16:55 -07:00
|
|
|
|
2024-03-18 16:46:23 -06:00
|
|
|
type DeployedConfigGQL {
|
|
|
|
allowNewUsers: Boolean!
|
2024-04-01 20:46:21 -06:00
|
|
|
firebase: Boolean!
|
|
|
|
devMode: Boolean!
|
2024-04-25 11:41:57 -06:00
|
|
|
environment: String!
|
2024-03-18 16:46:23 -06:00
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
type MakePercentageIntervalGQL {
|
2024-02-20 19:18:21 -07:00
|
|
|
makePercentage: Float!
|
2024-04-01 20:46:21 -06:00
|
|
|
elapsedTime: Float!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type ShotGQL {
|
|
|
|
id: Int
|
|
|
|
videoId: Int
|
|
|
|
startFrame: Int
|
|
|
|
endFrame: Int
|
|
|
|
createdAt: DateTime
|
|
|
|
updatedAt: DateTime
|
|
|
|
cueObjectFeatures: CueObjectFeaturesGQL
|
|
|
|
pocketingIntentionFeatures: PocketingIntentionFeaturesGQL
|
2024-03-30 21:49:29 -06:00
|
|
|
bankFeatures: BankFeaturesGQL
|
2024-04-09 22:34:54 -06:00
|
|
|
user: UserGQL
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
"""
|
|
|
|
Date with time (isoformat)
|
|
|
|
"""
|
|
|
|
scalar DateTime
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
type CueObjectFeaturesGQL {
|
2024-02-03 03:16:55 -07:00
|
|
|
cueObjectDistance: Float
|
2024-03-30 21:49:29 -06:00
|
|
|
cueObjectAngle: Float
|
2024-02-03 03:16:55 -07:00
|
|
|
cueBallSpeed: Float
|
|
|
|
shotDirection: ShotDirectionEnum
|
|
|
|
}
|
|
|
|
|
2024-03-30 21:49:29 -06:00
|
|
|
type PocketingIntentionFeaturesGQL {
|
|
|
|
targetPocketDistance: Float
|
|
|
|
make: Boolean
|
|
|
|
intendedPocketType: PocketEnum
|
2024-05-01 12:47:50 -06:00
|
|
|
difficulty: Float
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type BankFeaturesGQL {
|
|
|
|
wallsHit: [WallTypeEnum!]!
|
|
|
|
bankAngle: Float!
|
|
|
|
distance: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
enum WallTypeEnum {
|
|
|
|
LONG
|
|
|
|
SHORT
|
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
type UserGQL {
|
|
|
|
id: Int!
|
|
|
|
firebaseUid: String!
|
|
|
|
username: String!
|
2024-04-25 11:41:57 -06:00
|
|
|
activeVideoId: Int
|
2024-04-01 20:46:21 -06:00
|
|
|
profileImageUri: String
|
|
|
|
createdAt: DateTime
|
|
|
|
updatedAt: DateTime
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserPlayTimeGQL {
|
|
|
|
totalSeconds: Float!
|
|
|
|
}
|
|
|
|
|
2024-04-05 15:46:16 -06:00
|
|
|
type VideoHistoryGQL {
|
2024-04-01 20:46:21 -06:00
|
|
|
videos: [VideoGQL!]!
|
|
|
|
pageInfo: PageInfoGQL!
|
|
|
|
}
|
|
|
|
|
|
|
|
type VideoGQL {
|
|
|
|
id: Int!
|
|
|
|
owner: UserGQL
|
|
|
|
name: String
|
2024-04-29 14:08:27 -06:00
|
|
|
screenshotUri: String
|
2024-04-01 20:46:21 -06:00
|
|
|
totalShotsMade: Int!
|
|
|
|
totalShots: Int!
|
|
|
|
makePercentage: Float!
|
|
|
|
medianRun: Float
|
|
|
|
averageTimeBetweenShots: Float
|
|
|
|
createdAt: DateTime
|
|
|
|
updatedAt: DateTime
|
|
|
|
shots: [ShotGQL!]!
|
|
|
|
startTime: DateTime
|
|
|
|
endTime: DateTime
|
|
|
|
elapsedTime: Float
|
2024-04-23 20:25:27 -06:00
|
|
|
framesPerSecond: Float!
|
2024-04-01 20:46:21 -06:00
|
|
|
stream: UploadStreamGQL
|
2024-04-22 16:18:06 -06:00
|
|
|
playlist: HLSPlaylistGQL
|
2024-04-01 20:46:21 -06:00
|
|
|
tags: [VideoTag!]!
|
|
|
|
homographyHistory: [HomographyInfoGQL!]!
|
|
|
|
}
|
|
|
|
|
2024-02-03 03:16:55 -07:00
|
|
|
type UploadStreamGQL {
|
|
|
|
id: ID!
|
|
|
|
linksRequested: Int!
|
|
|
|
uploadsCompleted: Int!
|
2024-03-08 17:15:37 -07:00
|
|
|
segmentProcessingCursor: Int!
|
2024-04-25 16:36:32 -06:00
|
|
|
lastIntendedSegmentBound: Int!
|
2024-02-03 03:16:55 -07:00
|
|
|
isCompleted: Boolean!
|
2024-04-16 17:49:50 -06:00
|
|
|
lowestUnuploadedSegmentIndex: Int!
|
2024-03-08 17:15:37 -07:00
|
|
|
errors: [StreamErrorGQL!]!
|
2024-02-03 03:16:55 -07:00
|
|
|
createdAt: DateTime!
|
|
|
|
updatedAt: DateTime!
|
2024-04-30 21:55:48 -06:00
|
|
|
uploadSegments: [UploadSegmentGQL!]!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
2024-03-23 17:03:11 -06:00
|
|
|
type StreamErrorGQL {
|
|
|
|
message: String!
|
|
|
|
}
|
|
|
|
|
2024-04-30 21:55:48 -06:00
|
|
|
type UploadSegmentGQL {
|
|
|
|
segmentIndex: Int!
|
|
|
|
uploaded: Boolean!
|
|
|
|
valid: Boolean!
|
|
|
|
endFrameIndex: Int
|
|
|
|
framesPerSecond: Float
|
|
|
|
durationsInSeconds: Float
|
|
|
|
linksRequested: Int!
|
|
|
|
}
|
|
|
|
|
2024-04-22 16:18:06 -06:00
|
|
|
type HLSPlaylistGQL {
|
|
|
|
videoId: Int!
|
|
|
|
m3u8Text: String!
|
|
|
|
segmentDurations: [Float!]!
|
|
|
|
}
|
|
|
|
|
2024-03-23 17:03:11 -06:00
|
|
|
type VideoTag {
|
|
|
|
tagClasses: [VideoTagClass!]!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type VideoTagClass {
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
2024-03-08 17:15:37 -07:00
|
|
|
type HomographyInfoGQL {
|
2024-03-23 17:03:11 -06:00
|
|
|
frameIndex: Int!
|
2024-03-08 17:15:37 -07:00
|
|
|
crop: BoundingBoxGQL!
|
|
|
|
pockets: [BoundingBoxGQL!]!
|
|
|
|
sourcePoints: PocketPointsGQL!
|
|
|
|
destPoints: PocketPointsGQL!
|
|
|
|
}
|
|
|
|
|
|
|
|
type BoundingBoxGQL {
|
2024-03-23 17:03:11 -06:00
|
|
|
left: Float!
|
|
|
|
top: Float!
|
|
|
|
width: Float!
|
|
|
|
height: Float!
|
2024-03-08 17:15:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type PocketPointsGQL {
|
|
|
|
topLeft: IntPoint2D!
|
|
|
|
topSide: IntPoint2D!
|
|
|
|
topRight: IntPoint2D!
|
|
|
|
bottomLeft: IntPoint2D!
|
|
|
|
bottomSide: IntPoint2D!
|
|
|
|
bottomRight: IntPoint2D!
|
|
|
|
}
|
|
|
|
|
|
|
|
type IntPoint2D {
|
|
|
|
x: Int!
|
|
|
|
y: Int!
|
|
|
|
}
|
|
|
|
|
2024-02-20 19:18:21 -07:00
|
|
|
type PageInfoGQL {
|
|
|
|
hasNextPage: Boolean!
|
|
|
|
endCursor: String
|
|
|
|
}
|
|
|
|
|
2024-04-05 15:46:16 -06:00
|
|
|
input VideoFilterInput {
|
|
|
|
isStreamCompleted: Boolean = null
|
|
|
|
}
|
|
|
|
|
2024-02-03 03:16:55 -07:00
|
|
|
type Mutation {
|
|
|
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
2024-04-01 20:46:21 -06:00
|
|
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
|
|
|
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
|
|
|
editProfileImageUri(profileImageUri: String!): UserGQL!
|
2024-02-22 19:27:29 -07:00
|
|
|
createUploadStream(
|
2024-03-04 22:22:42 -07:00
|
|
|
videoMetadata: VideoMetadataInput!
|
2024-02-22 19:27:29 -07:00
|
|
|
): CreateUploadStreamReturn!
|
2024-02-11 22:42:37 -07:00
|
|
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
2024-03-24 21:01:02 -06:00
|
|
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
2024-03-12 12:50:28 -06:00
|
|
|
deleteVideo(videoId: Int!): Boolean!
|
2024-02-03 03:16:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
input CreateBucketSetInput {
|
|
|
|
keyName: String!
|
|
|
|
feature: String!
|
|
|
|
buckets: [BucketInputGQL!]!
|
|
|
|
}
|
|
|
|
|
2024-04-01 20:46:21 -06:00
|
|
|
type GetUploadLinkReturn {
|
|
|
|
uploadUrl: String!
|
|
|
|
headers: [Header]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Header {
|
|
|
|
key: String!
|
|
|
|
value: String!
|
|
|
|
}
|
|
|
|
|
2024-02-03 03:16:55 -07:00
|
|
|
type CreateUploadStreamReturn {
|
|
|
|
videoId: Int!
|
|
|
|
}
|
|
|
|
|
2024-03-04 20:10:49 -07:00
|
|
|
input VideoMetadataInput {
|
|
|
|
videoName: String = null
|
|
|
|
startTime: DateTime = null
|
|
|
|
endTime: DateTime = null
|
|
|
|
gameType: String = null
|
|
|
|
tableSize: String = null
|
|
|
|
uploadStreamMetadataInput: UploadStreamMetadataInput = null
|
2024-04-25 16:36:32 -06:00
|
|
|
lastIntendedSegmentBound: Int = null
|
2024-03-24 21:01:02 -06:00
|
|
|
endStream: Boolean! = false
|
2024-03-04 20:10:49 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
input UploadStreamMetadataInput {
|
2024-02-03 03:16:55 -07:00
|
|
|
deviceType: DeviceTypeEnum = null
|
|
|
|
osVersion: String = null
|
|
|
|
appVersion: String = null
|
|
|
|
browserName: String = null
|
|
|
|
browserVersion: String = null
|
|
|
|
locale: String = null
|
|
|
|
timezone: String = null
|
|
|
|
networkType: String = null
|
|
|
|
ipAddress: String = null
|
|
|
|
}
|
|
|
|
|
2024-03-04 20:10:49 -07:00
|
|
|
enum DeviceTypeEnum {
|
|
|
|
IOS
|
|
|
|
ANDROID
|
|
|
|
BROWSER
|
|
|
|
}
|