|
|
|
@@ -5,10 +5,28 @@ type Query {
|
|
|
|
|
getBucketSet(keyName: String!): BucketSetGQL
|
|
|
|
|
getDeployedConfig: DeployedConfigGQL!
|
|
|
|
|
waitFor(duration: Float!): Float!
|
|
|
|
|
getFeedVideos(
|
|
|
|
|
limit: Int! = 5
|
|
|
|
|
after: String = null
|
|
|
|
|
includePrivate: IncludePrivateEnum! = MINE
|
|
|
|
|
includeCallersVideos: Boolean = true
|
|
|
|
|
filters: VideoFilterInput = null
|
|
|
|
|
feedInput: VideoFeedInputGQL = null
|
|
|
|
|
): VideoHistoryGQL!
|
|
|
|
|
getVideoMakePercentageIntervals(
|
|
|
|
|
videoId: ID!
|
|
|
|
|
intervalDuration: Int! = 300
|
|
|
|
|
): [MakePercentageIntervalGQL!]!
|
|
|
|
|
getLongestRunsLeaderboard(
|
|
|
|
|
interval: TimeInterval = null
|
|
|
|
|
when: DateTime = null
|
|
|
|
|
limit: Int! = 100
|
|
|
|
|
requiredTags: [String!] = null
|
|
|
|
|
): RunLeaderboardGQL!
|
|
|
|
|
getMakesLeaderboard(
|
|
|
|
|
interval: TimeInterval = null
|
|
|
|
|
when: DateTime = null
|
|
|
|
|
): CountLeaderboardGQL!
|
|
|
|
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
|
|
|
|
getRuns(
|
|
|
|
|
filterInput: RunFilterInput!
|
|
|
|
@@ -17,6 +35,12 @@ type Query {
|
|
|
|
|
limit: Int! = 500
|
|
|
|
|
countRespectsLimit: Boolean! = false
|
|
|
|
|
): GetRunsResult!
|
|
|
|
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
|
|
|
|
getTableState(
|
|
|
|
|
b64Image: String!
|
|
|
|
|
tableSize: Float = 100
|
|
|
|
|
useHomography: HomographyInputGQL = null
|
|
|
|
|
): TableStateGQL!
|
|
|
|
|
getOrderedShots(
|
|
|
|
|
filterInput: FilterInput!
|
|
|
|
|
ids: [Int!] = null
|
|
|
|
@@ -38,7 +62,6 @@ type Query {
|
|
|
|
|
countRespectsLimit: Boolean! = false
|
|
|
|
|
): [ShotGQL!]!
|
|
|
|
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
|
|
|
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
|
|
|
|
getUser(userId: Int!): UserGQL
|
|
|
|
|
doesUsernameExist(candidateUsername: String!): Boolean!
|
|
|
|
|
getLoggedInUser: UserGQL
|
|
|
|
@@ -47,12 +70,18 @@ type Query {
|
|
|
|
|
limit: Int = null
|
|
|
|
|
after: String = null
|
|
|
|
|
): [String!]!
|
|
|
|
|
getUsersMatching(
|
|
|
|
|
matchString: String = null
|
|
|
|
|
limit: Int = null
|
|
|
|
|
after: String = null
|
|
|
|
|
): [UserGQL!]!
|
|
|
|
|
getUserRelationshipsMatching(
|
|
|
|
|
userId: Int!
|
|
|
|
|
matchString: String = null
|
|
|
|
|
limit: Int = 100
|
|
|
|
|
after: String = null
|
|
|
|
|
): UserRelationshipsResult!
|
|
|
|
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
|
|
|
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
|
|
|
|
getUserVideos(
|
|
|
|
|
userId: Int = null
|
|
|
|
@@ -63,24 +92,6 @@ type Query {
|
|
|
|
|
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
|
|
|
|
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
|
|
|
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
|
|
|
|
getFeedVideos(
|
|
|
|
|
limit: Int! = 5
|
|
|
|
|
after: String = null
|
|
|
|
|
includePrivate: IncludePrivateEnum! = MINE
|
|
|
|
|
includeCallersVideos: Boolean = true
|
|
|
|
|
filters: VideoFilterInput = null
|
|
|
|
|
feedInput: VideoFeedInputGQL = null
|
|
|
|
|
): VideoHistoryGQL!
|
|
|
|
|
getLongestRunsLeaderboard(
|
|
|
|
|
interval: TimeInterval = null
|
|
|
|
|
when: DateTime = null
|
|
|
|
|
limit: Int! = 100
|
|
|
|
|
requiredTags: [String!] = null
|
|
|
|
|
): RunLeaderboardGQL!
|
|
|
|
|
getMakesLeaderboard(
|
|
|
|
|
interval: TimeInterval = null
|
|
|
|
|
when: DateTime = null
|
|
|
|
|
): CountLeaderboardGQL!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AggregateResultGQL {
|
|
|
|
@@ -286,72 +297,73 @@ type DeployedConfigGQL {
|
|
|
|
|
devMode: Boolean!
|
|
|
|
|
environment: String!
|
|
|
|
|
minimumAllowedAppVersion: String!
|
|
|
|
|
bannerMessages: [BannerGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MakePercentageIntervalGQL {
|
|
|
|
|
makePercentage: Float!
|
|
|
|
|
elapsedTime: Float!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RequestedMedalsGQL {
|
|
|
|
|
distanceOver66: MedalGQL
|
|
|
|
|
distanceOver78: MedalGQL
|
|
|
|
|
distanceOver90: MedalGQL
|
|
|
|
|
runLength3: MedalGQL
|
|
|
|
|
runLength5: MedalGQL
|
|
|
|
|
runLength8: MedalGQL
|
|
|
|
|
runLength10: MedalGQL
|
|
|
|
|
runLength15: MedalGQL
|
|
|
|
|
runLength20: MedalGQL
|
|
|
|
|
runLength25: MedalGQL
|
|
|
|
|
runLength30: MedalGQL
|
|
|
|
|
runLength40: MedalGQL
|
|
|
|
|
runLength50: MedalGQL
|
|
|
|
|
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes100: MedalGQL
|
|
|
|
|
totalMakes500: MedalGQL
|
|
|
|
|
totalMakes1000: MedalGQL
|
|
|
|
|
totalMakes5000: MedalGQL
|
|
|
|
|
totalMakes10000: MedalGQL
|
|
|
|
|
dailyMakes50: MedalGQL
|
|
|
|
|
dailyMakes100: MedalGQL
|
|
|
|
|
dailyMakes150: MedalGQL
|
|
|
|
|
dailyMakes200: MedalGQL
|
|
|
|
|
dailyMakes250: MedalGQL
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MedalGQL {
|
|
|
|
|
count: Int!
|
|
|
|
|
nickname: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input MedalScope @oneOf {
|
|
|
|
|
videoId: Int
|
|
|
|
|
interval: TimeInterval
|
|
|
|
|
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
|
|
|
|
datetimeRange: DatetimeRangeAggregationInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetRunsResult {
|
|
|
|
|
runs: [RunGQL!]!
|
|
|
|
|
count: Int
|
|
|
|
|
runIds: [Int!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RunGQL {
|
|
|
|
|
type BannerGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
runLength: Int!
|
|
|
|
|
videoId: Int!
|
|
|
|
|
userId: Int!
|
|
|
|
|
message: String!
|
|
|
|
|
color: String!
|
|
|
|
|
kind: BannerKindEnum!
|
|
|
|
|
dismissible: Boolean!
|
|
|
|
|
priority: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum BannerKindEnum {
|
|
|
|
|
INFO
|
|
|
|
|
WARNING
|
|
|
|
|
ERROR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VideoHistoryGQL {
|
|
|
|
|
videos: [VideoGQL!]!
|
|
|
|
|
pageInfo: PageInfoGQL!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VideoGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
owner: UserGQL
|
|
|
|
|
name: String
|
|
|
|
|
screenshotUri: String
|
|
|
|
|
totalShotsMade: Int!
|
|
|
|
|
totalShots: Int!
|
|
|
|
|
makePercentage: Float!
|
|
|
|
|
medianRun: Float
|
|
|
|
|
averageTimeBetweenShots: Float
|
|
|
|
|
averageDifficulty: Float
|
|
|
|
|
createdAt: DateTime
|
|
|
|
|
updatedAt: DateTime
|
|
|
|
|
shots: [ShotGQL!]!
|
|
|
|
|
video: VideoGQL!
|
|
|
|
|
user: UserGQL!
|
|
|
|
|
startTime: DateTime
|
|
|
|
|
endTime: DateTime
|
|
|
|
|
elapsedTime: Float
|
|
|
|
|
framesPerSecond: Float!
|
|
|
|
|
tableSize: Float!
|
|
|
|
|
private: Boolean!
|
|
|
|
|
stream: UploadStreamGQL
|
|
|
|
|
playlist: HLSPlaylistGQL
|
|
|
|
|
tags: [VideoTag!]!
|
|
|
|
|
currentHomography: HomographyInfoGQL
|
|
|
|
|
homographyHistory: [HomographyInfoGQL!]!
|
|
|
|
|
currentProcessing: VideoProcessingGQL
|
|
|
|
|
reactions: [ReactionGQL!]!
|
|
|
|
|
comments: [CommentGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
firebaseUid: String
|
|
|
|
|
username: String!
|
|
|
|
|
isAdmin: Boolean
|
|
|
|
|
fargoRating: Int
|
|
|
|
|
activeVideoId: Int
|
|
|
|
|
stripeCustomerId: String
|
|
|
|
|
profileImageUri: String
|
|
|
|
|
createdAt: DateTime
|
|
|
|
|
updatedAt: DateTime
|
|
|
|
|
videosPrivateByDefault: Boolean
|
|
|
|
|
following: [UserGQL!]
|
|
|
|
|
followers: [UserGQL!]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ShotGQL {
|
|
|
|
@@ -423,21 +435,6 @@ type SerializedShotPathsGQL {
|
|
|
|
|
b64EncodedBuffer: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
firebaseUid: String
|
|
|
|
|
username: String!
|
|
|
|
|
isAdmin: Boolean
|
|
|
|
|
fargoRating: Int
|
|
|
|
|
activeVideoId: Int
|
|
|
|
|
profileImageUri: String
|
|
|
|
|
createdAt: DateTime
|
|
|
|
|
updatedAt: DateTime
|
|
|
|
|
videosPrivateByDefault: Boolean
|
|
|
|
|
following: [UserGQL!]
|
|
|
|
|
followers: [UserGQL!]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ShotAnnotationGQL {
|
|
|
|
|
shotId: Int!
|
|
|
|
|
type: ShotAnnotationTypeGQL!
|
|
|
|
@@ -453,34 +450,19 @@ type ShotAnnotationTypeGQL {
|
|
|
|
|
name: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VideoGQL {
|
|
|
|
|
type RunGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
owner: UserGQL
|
|
|
|
|
name: String
|
|
|
|
|
screenshotUri: String
|
|
|
|
|
totalShotsMade: Int!
|
|
|
|
|
totalShots: Int!
|
|
|
|
|
makePercentage: Float!
|
|
|
|
|
medianRun: Float
|
|
|
|
|
averageTimeBetweenShots: Float
|
|
|
|
|
averageDifficulty: Float
|
|
|
|
|
createdAt: DateTime
|
|
|
|
|
updatedAt: DateTime
|
|
|
|
|
runLength: Int!
|
|
|
|
|
videoId: Int!
|
|
|
|
|
userId: Int!
|
|
|
|
|
shots: [ShotGQL!]!
|
|
|
|
|
startTime: DateTime
|
|
|
|
|
endTime: DateTime
|
|
|
|
|
elapsedTime: Float
|
|
|
|
|
framesPerSecond: Float!
|
|
|
|
|
tableSize: Float!
|
|
|
|
|
private: Boolean!
|
|
|
|
|
stream: UploadStreamGQL
|
|
|
|
|
playlist: HLSPlaylistGQL
|
|
|
|
|
tags: [VideoTag!]!
|
|
|
|
|
currentHomography: HomographyInfoGQL
|
|
|
|
|
homographyHistory: [HomographyInfoGQL!]!
|
|
|
|
|
currentProcessing: VideoProcessingGQL
|
|
|
|
|
reactions: [ReactionGQL!]!
|
|
|
|
|
comments: [CommentGQL!]!
|
|
|
|
|
video: VideoGQL!
|
|
|
|
|
user: UserGQL!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RunFeaturesGQL {
|
|
|
|
|
runId: Int!
|
|
|
|
|
indexInRun: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UploadStreamGQL {
|
|
|
|
@@ -587,6 +569,9 @@ type VideoProcessingGQL {
|
|
|
|
|
errors: [VideoProcessingErrorGQL!]!
|
|
|
|
|
status: ProcessingStatusEnum!
|
|
|
|
|
statuses: [VideoProcessingStatusGQL!]!
|
|
|
|
|
framesProcessed: Int
|
|
|
|
|
currentSegment: Int
|
|
|
|
|
progressPercentage: Float
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VideoProcessingErrorGQL {
|
|
|
|
@@ -636,9 +621,110 @@ type CommentGQL {
|
|
|
|
|
replies: [CommentGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RunFeaturesGQL {
|
|
|
|
|
runId: Int!
|
|
|
|
|
indexInRun: Int!
|
|
|
|
|
type PageInfoGQL {
|
|
|
|
|
hasNextPage: Boolean!
|
|
|
|
|
endCursor: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
enum IncludePrivateEnum {
|
|
|
|
|
ALL
|
|
|
|
|
MINE
|
|
|
|
|
NONE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input VideoFilterInput {
|
|
|
|
|
isStreamCompleted: Boolean = null
|
|
|
|
|
requireCursorCompletion: Boolean! = true
|
|
|
|
|
createdAt: DateRangeFilter = null
|
|
|
|
|
excludeVideosWithNoShots: Boolean = null
|
|
|
|
|
reactionCount: IntRangeFilter = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input IntRangeFilter {
|
|
|
|
|
lessThan: Int = null
|
|
|
|
|
greaterThanEqualTo: Int = null
|
|
|
|
|
greaterThan: Int = null
|
|
|
|
|
includeOnNone: Boolean! = false
|
|
|
|
|
lessThanInclusive: Boolean! = false
|
|
|
|
|
greaterThanInclusive: Boolean! = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input VideoFeedInputGQL @oneOf {
|
|
|
|
|
followedByUserId: Int
|
|
|
|
|
userId: Int
|
|
|
|
|
allUsers: Boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MakePercentageIntervalGQL {
|
|
|
|
|
makePercentage: Float!
|
|
|
|
|
elapsedTime: Float!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RunLeaderboardGQL {
|
|
|
|
|
entries: [RunGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CountLeaderboardGQL {
|
|
|
|
|
entries: [UserShotCountEntry!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserShotCountEntry {
|
|
|
|
|
user: UserGQL!
|
|
|
|
|
value: Int!
|
|
|
|
|
total: Int!
|
|
|
|
|
proportionMade: Float!
|
|
|
|
|
videos: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RequestedMedalsGQL {
|
|
|
|
|
distanceOver66: MedalGQL
|
|
|
|
|
distanceOver78: MedalGQL
|
|
|
|
|
distanceOver90: MedalGQL
|
|
|
|
|
runLength3: MedalGQL
|
|
|
|
|
runLength5: MedalGQL
|
|
|
|
|
runLength8: MedalGQL
|
|
|
|
|
runLength10: MedalGQL
|
|
|
|
|
runLength15: MedalGQL
|
|
|
|
|
runLength20: MedalGQL
|
|
|
|
|
runLength25: MedalGQL
|
|
|
|
|
runLength30: MedalGQL
|
|
|
|
|
runLength40: MedalGQL
|
|
|
|
|
runLength50: MedalGQL
|
|
|
|
|
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
|
|
|
|
totalMakes100: MedalGQL
|
|
|
|
|
totalMakes500: MedalGQL
|
|
|
|
|
totalMakes1000: MedalGQL
|
|
|
|
|
totalMakes5000: MedalGQL
|
|
|
|
|
totalMakes10000: MedalGQL
|
|
|
|
|
dailyMakes50: MedalGQL
|
|
|
|
|
dailyMakes100: MedalGQL
|
|
|
|
|
dailyMakes150: MedalGQL
|
|
|
|
|
dailyMakes200: MedalGQL
|
|
|
|
|
dailyMakes250: MedalGQL
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MedalGQL {
|
|
|
|
|
count: Int!
|
|
|
|
|
nickname: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input MedalScope @oneOf {
|
|
|
|
|
videoId: Int
|
|
|
|
|
interval: TimeInterval
|
|
|
|
|
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
|
|
|
|
datetimeRange: DatetimeRangeAggregationInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetRunsResult {
|
|
|
|
|
runs: [RunGQL!]!
|
|
|
|
|
count: Int
|
|
|
|
|
runIds: [Int!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input RunFilterInput {
|
|
|
|
@@ -673,6 +759,39 @@ input DatetimeOrdering {
|
|
|
|
|
startingAt: DateTime = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TableStateGQL {
|
|
|
|
|
identifierToPosition: [[Float!]!]!
|
|
|
|
|
homography: HomographyInfoGQL
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input HomographyInputGQL {
|
|
|
|
|
crop: BoundingBoxInputGQL!
|
|
|
|
|
pockets: [BoundingBoxInputGQL!]!
|
|
|
|
|
sourcePoints: PocketPointsInputGQL!
|
|
|
|
|
destPoints: PocketPointsInputGQL!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input BoundingBoxInputGQL {
|
|
|
|
|
left: Float!
|
|
|
|
|
top: Float!
|
|
|
|
|
width: Float!
|
|
|
|
|
height: Float!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input PocketPointsInputGQL {
|
|
|
|
|
topLeft: IntPoint2DInput!
|
|
|
|
|
topSide: IntPoint2DInput!
|
|
|
|
|
topRight: IntPoint2DInput!
|
|
|
|
|
bottomLeft: IntPoint2DInput!
|
|
|
|
|
bottomSide: IntPoint2DInput!
|
|
|
|
|
bottomRight: IntPoint2DInput!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input IntPoint2DInput {
|
|
|
|
|
x: Int!
|
|
|
|
|
y: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetShotsResult {
|
|
|
|
|
shots: [ShotGQL!]!
|
|
|
|
|
count: Int
|
|
|
|
@@ -718,27 +837,32 @@ type UserRelationship {
|
|
|
|
|
toUserIsFollowedBy: Boolean!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StripeSubscriptionOptionsGQL {
|
|
|
|
|
products: [StripeProductGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StripeProductGQL {
|
|
|
|
|
id: String!
|
|
|
|
|
name: String!
|
|
|
|
|
description: String
|
|
|
|
|
active: Boolean!
|
|
|
|
|
prices: [StripePriceGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type StripePriceGQL {
|
|
|
|
|
id: String!
|
|
|
|
|
currency: String!
|
|
|
|
|
unitAmount: Int
|
|
|
|
|
recurringInterval: String
|
|
|
|
|
recurringIntervalCount: Int
|
|
|
|
|
type: String!
|
|
|
|
|
active: Boolean!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserPlayTimeGQL {
|
|
|
|
|
totalSeconds: Float!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input VideoFilterInput {
|
|
|
|
|
isStreamCompleted: Boolean = null
|
|
|
|
|
requireCursorCompletion: Boolean! = true
|
|
|
|
|
createdAt: DateRangeFilter = null
|
|
|
|
|
excludeVideosWithNoShots: Boolean = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VideoHistoryGQL {
|
|
|
|
|
videos: [VideoGQL!]!
|
|
|
|
|
pageInfo: PageInfoGQL!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PageInfoGQL {
|
|
|
|
|
hasNextPage: Boolean!
|
|
|
|
|
endCursor: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TagGQL {
|
|
|
|
|
id: Int!
|
|
|
|
|
name: String!
|
|
|
|
@@ -759,41 +883,17 @@ scalar JSON
|
|
|
|
|
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
enum IncludePrivateEnum {
|
|
|
|
|
ALL
|
|
|
|
|
MINE
|
|
|
|
|
NONE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input VideoFeedInputGQL @oneOf {
|
|
|
|
|
followedByUserId: Int
|
|
|
|
|
userId: Int
|
|
|
|
|
allUsers: Boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RunLeaderboardGQL {
|
|
|
|
|
entries: [RunGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CountLeaderboardGQL {
|
|
|
|
|
entries: [UserShotCountEntry!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserShotCountEntry {
|
|
|
|
|
user: UserGQL!
|
|
|
|
|
value: Int!
|
|
|
|
|
total: Int!
|
|
|
|
|
proportionMade: Float!
|
|
|
|
|
videos: Int!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Mutation {
|
|
|
|
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
|
|
|
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
|
|
|
|
editShot(
|
|
|
|
|
shotId: Int!
|
|
|
|
|
fieldsToEdit: EditableShotFieldInputGQL!
|
|
|
|
|
): EditShotReturn!
|
|
|
|
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
|
|
|
|
commentOnVideo(
|
|
|
|
|
videoId: Int!
|
|
|
|
|
message: String!
|
|
|
|
|
parentCommentId: Int
|
|
|
|
|
): Boolean!
|
|
|
|
|
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
|
|
|
|
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
|
|
|
|
addAnnotationToShot(
|
|
|
|
|
shotId: Int!
|
|
|
|
|
annotationName: String!
|
|
|
|
@@ -803,6 +903,10 @@ type Mutation {
|
|
|
|
|
shotId: Int!
|
|
|
|
|
annotations: [UpdateAnnotationInputGQL!]!
|
|
|
|
|
): UpdateShotAnnotationReturn!
|
|
|
|
|
editShot(
|
|
|
|
|
shotId: Int!
|
|
|
|
|
fieldsToEdit: EditableShotFieldInputGQL!
|
|
|
|
|
): EditShotReturn!
|
|
|
|
|
getProfileImageUploadLink(
|
|
|
|
|
fileExt: String = ".png"
|
|
|
|
|
): GetProfileUploadLinkReturn!
|
|
|
|
@@ -811,6 +915,9 @@ type Mutation {
|
|
|
|
|
followUser(followedUserId: Int!): UserGQL!
|
|
|
|
|
unfollowUser(followedUserId: Int!): UserGQL!
|
|
|
|
|
retireTags(tagIds: [Int!]!): Boolean!
|
|
|
|
|
ensureStripeCustomerExists: UserGQL!
|
|
|
|
|
deleteUser: Boolean!
|
|
|
|
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
|
|
|
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
|
|
|
|
createUploadStream(
|
|
|
|
|
videoMetadata: VideoMetadataInput!
|
|
|
|
@@ -825,14 +932,6 @@ type Mutation {
|
|
|
|
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
|
|
|
|
deleteVideo(videoId: Int!): Boolean!
|
|
|
|
|
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
|
|
|
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
|
|
|
|
commentOnVideo(
|
|
|
|
|
videoId: Int!
|
|
|
|
|
message: String!
|
|
|
|
|
parentCommentId: Int
|
|
|
|
|
): Boolean!
|
|
|
|
|
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
|
|
|
|
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input CreateBucketSetInput {
|
|
|
|
@@ -841,27 +940,6 @@ input CreateBucketSetInput {
|
|
|
|
|
buckets: [BucketInputGQL!]!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EditShotReturn {
|
|
|
|
|
shot: ShotGQL
|
|
|
|
|
error: DoesNotOwnShotErr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DoesNotOwnShotErr {
|
|
|
|
|
shotId: Int!
|
|
|
|
|
msg: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input EditableShotFieldInputGQL {
|
|
|
|
|
intendedPocketType: PocketEnum
|
|
|
|
|
shotDirection: ShotDirectionEnum
|
|
|
|
|
spinType: SpinTypeEnum
|
|
|
|
|
targetPocketAngleDirection: ShotDirectionEnum
|
|
|
|
|
make: Boolean
|
|
|
|
|
backcut: Boolean
|
|
|
|
|
excludeFromStats: Boolean
|
|
|
|
|
notes: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AddShotAnnotationReturn {
|
|
|
|
|
value: SuccessfulAddAddShotAnnotationErrors!
|
|
|
|
|
}
|
|
|
|
@@ -882,6 +960,11 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
|
|
|
|
DoesNotOwnShotErr
|
|
|
|
|
| OtherErrorNeedsNote
|
|
|
|
|
|
|
|
|
|
type DoesNotOwnShotErr {
|
|
|
|
|
shotId: Int!
|
|
|
|
|
msg: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type OtherErrorNeedsNote {
|
|
|
|
|
msg: String
|
|
|
|
|
}
|
|
|
|
@@ -896,6 +979,22 @@ input UpdateAnnotationInputGQL {
|
|
|
|
|
notes: String = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EditShotReturn {
|
|
|
|
|
shot: ShotGQL
|
|
|
|
|
error: DoesNotOwnShotErr
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input EditableShotFieldInputGQL {
|
|
|
|
|
intendedPocketType: PocketEnum
|
|
|
|
|
shotDirection: ShotDirectionEnum
|
|
|
|
|
spinType: SpinTypeEnum
|
|
|
|
|
targetPocketAngleDirection: ShotDirectionEnum
|
|
|
|
|
make: Boolean
|
|
|
|
|
backcut: Boolean
|
|
|
|
|
excludeFromStats: Boolean
|
|
|
|
|
notes: String
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetProfileUploadLinkReturn {
|
|
|
|
|
value: UploadLinkGetProfileUploadLinkErrors!
|
|
|
|
|
}
|
|
|
|
@@ -928,6 +1027,11 @@ input EditUserInputGQL {
|
|
|
|
|
videosPrivateByDefault: Boolean = null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateSubscriptionResultGQL {
|
|
|
|
|
checkoutUrl: String!
|
|
|
|
|
sessionId: String!
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateUploadStreamReturn {
|
|
|
|
|
videoId: Int!
|
|
|
|
|
}
|
|
|
|
|