Compare commits
71 Commits
kat/named-
...
master
Author | SHA1 | Date | |
---|---|---|---|
492178455c | |||
55a2edb042 | |||
31cf492889 | |||
de7dc675a1 | |||
f8f00d9c24 | |||
dc207bce55 | |||
2e5b8d2563 | |||
46bcd08ae1 | |||
bd383b1d55 | |||
2459cb78f8 | |||
8859ad8951 | |||
bdc3961e46 | |||
7c8c932a78 | |||
ae746ccac0 | |||
98266c7775 | |||
|
4918720ae3 | ||
8463ebf0e7 | |||
753179ca58 | |||
9ee5c721c1 | |||
00cca10cb3 | |||
ad704cad75 | |||
e2743abb59 | |||
e109e89a40 | |||
67bad20d24 | |||
0160455b9f | |||
170ff70b7a | |||
8df09b8c93 | |||
644ea66e98 | |||
0a5097c5c0 | |||
f4445f7ecb | |||
b18fedae8e | |||
31baa2b096 | |||
85cd37f70f | |||
b53aa172fa | |||
df2e534745 | |||
|
ea4980947f | ||
65475bca9b | |||
280f5a66bd | |||
84daf2d136 | |||
6558fb60e9 | |||
6462a6a464 | |||
41a5bb7609 | |||
b8aaabea8b | |||
2745521664 | |||
8efa2e067c | |||
919fe5ba24 | |||
7ff60dc9c5 | |||
7e0d8a84ee | |||
9f26b5aa0f | |||
70303b9363 | |||
9ee1422d3e | |||
7a9d2545c4 | |||
c561ea20ab | |||
7ce0c058b7 | |||
c399edd882 | |||
32d8cb0d41 | |||
9d912ed21e | |||
0bcfd32b14 | |||
9b27d288da | |||
b0f94f5ea8 | |||
de653ba54c | |||
2657628a54 | |||
cd20cfcb40 | |||
2657a9baf7 | |||
9bb4b7c513 | |||
a5050ed08d | |||
b9e26243e9 | |||
021cd35278 | |||
8dda81236a | |||
c7ff615fe4 | |||
365cbb5f70 |
@ -1,9 +1,16 @@
|
||||
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||
directive @client on FIELD
|
||||
|
||||
type SegmentInfo {
|
||||
index: Int!
|
||||
time: Float!
|
||||
}
|
||||
|
||||
extend type ShotGQL {
|
||||
startTime: Float!
|
||||
endTime: Float!
|
||||
startSegment: SegmentInfo!
|
||||
endSegment: SegmentInfo!
|
||||
}
|
||||
|
||||
extend type UploadStreamGQL {
|
||||
|
1392
src/index.tsx
1392
src/index.tsx
File diff suppressed because it is too large
Load Diff
19
src/operations/comments.gql
Normal file
19
src/operations/comments.gql
Normal file
@ -0,0 +1,19 @@
|
||||
mutation CommentOnVideo(
|
||||
$videoId: Int!
|
||||
$message: String!
|
||||
$parentCommentId: Int
|
||||
) {
|
||||
commentOnVideo(
|
||||
videoId: $videoId
|
||||
message: $message
|
||||
parentCommentId: $parentCommentId
|
||||
)
|
||||
}
|
||||
|
||||
mutation EditComment($videoId: Int!, $commentId: Int!, $newMessage: String!) {
|
||||
editComment(videoId: $videoId, commentId: $commentId, newMessage: $newMessage)
|
||||
}
|
||||
|
||||
mutation DeleteComment($videoId: Int!, $commentId: Int!) {
|
||||
deleteComment(videoId: $videoId, commentId: $commentId)
|
||||
}
|
@ -5,5 +5,13 @@ query getDeployedConfig {
|
||||
environment
|
||||
firebase
|
||||
minimumAllowedAppVersion
|
||||
bannerMessages {
|
||||
color
|
||||
dismissible
|
||||
id
|
||||
kind
|
||||
message
|
||||
priority
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,17 @@ query GetFeed(
|
||||
}
|
||||
}
|
||||
|
||||
fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
|
||||
fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
owner {
|
||||
@ -27,6 +38,8 @@ fragment VideoCardFields on VideoGQL {
|
||||
totalShotsMade
|
||||
totalShots
|
||||
makePercentage
|
||||
averageTimeBetweenShots
|
||||
averageDifficulty
|
||||
createdAt
|
||||
updatedAt
|
||||
startTime
|
||||
@ -38,6 +51,7 @@ fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
isCompleted
|
||||
streamSegmentType
|
||||
}
|
||||
tableSize
|
||||
tags {
|
||||
@ -56,6 +70,27 @@ fragment VideoCardFields on VideoGQL {
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
reaction
|
||||
}
|
||||
comments {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
replies {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoFeed(
|
||||
|
3
src/operations/reactions.gql
Normal file
3
src/operations/reactions.gql
Normal file
@ -0,0 +1,3 @@
|
||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||
}
|
67
src/operations/runs.gql
Normal file
67
src/operations/runs.gql
Normal file
@ -0,0 +1,67 @@
|
||||
query GetRunsForHighlights(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
$limit: Int! = 500
|
||||
$countRespectsLimit: Boolean! = false
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
limit: $limit
|
||||
countRespectsLimit: $countRespectsLimit
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
id
|
||||
runLength
|
||||
userId
|
||||
videoId
|
||||
shots {
|
||||
videoId
|
||||
id
|
||||
}
|
||||
}
|
||||
runIds
|
||||
}
|
||||
}
|
||||
|
||||
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
||||
make
|
||||
targetPocketDistance
|
||||
targetPocketAngle
|
||||
targetPocketAngleDirection
|
||||
marginOfErrorInDegrees
|
||||
intendedPocketType
|
||||
difficulty
|
||||
}
|
||||
|
||||
query GetRunsWithTimestamps(
|
||||
$filterInput: RunFilterInput!
|
||||
$runIds: [Int!] = null
|
||||
$runsOrdering: GetRunsOrdering
|
||||
) {
|
||||
getRuns(
|
||||
filterInput: $filterInput
|
||||
runIds: $runIds
|
||||
runsOrdering: $runsOrdering
|
||||
) {
|
||||
count
|
||||
runs {
|
||||
id
|
||||
runLength
|
||||
userId
|
||||
videoId
|
||||
shots {
|
||||
videoId
|
||||
id
|
||||
createdAt
|
||||
pocketingIntentionFeatures {
|
||||
...PocketingIntentionFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
runIds
|
||||
}
|
||||
}
|
@ -139,6 +139,14 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
endFrame
|
||||
startTime @client
|
||||
endTime @client
|
||||
startSegment @client {
|
||||
index
|
||||
time
|
||||
}
|
||||
endSegment @client {
|
||||
index
|
||||
time
|
||||
}
|
||||
user {
|
||||
id
|
||||
}
|
||||
@ -177,6 +185,13 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
}
|
||||
notes
|
||||
}
|
||||
video {
|
||||
id
|
||||
stream {
|
||||
id
|
||||
streamSegmentType
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
||||
|
7
src/operations/tags.gql
Normal file
7
src/operations/tags.gql
Normal file
@ -0,0 +1,7 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
||||
|
||||
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||
}
|
@ -79,6 +79,10 @@ query GetUserTags {
|
||||
getUserTags {
|
||||
id
|
||||
name
|
||||
tagClasses {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,6 +82,57 @@ query GetVideoDetails($videoId: Int!) {
|
||||
}
|
||||
}
|
||||
|
||||
fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
name
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
reaction
|
||||
}
|
||||
comments {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
replies {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
...VideoStreamMetadata
|
||||
|
497
src/schema.gql
497
src/schema.gql
@ -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,6 +70,11 @@ 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
|
||||
@ -60,27 +88,9 @@ type Query {
|
||||
after: String = null
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getUserTags: [TagGQL!]!
|
||||
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 {
|
||||
@ -195,6 +205,7 @@ input FilterInput @oneOf {
|
||||
isLeftMiss: [Boolean!]
|
||||
isRightMiss: [Boolean!]
|
||||
isDirect: [Boolean!]
|
||||
isBreakHeuristic: [Boolean!]
|
||||
tableSize: FloatRangeFilter
|
||||
bankAngle: FloatRangeFilter
|
||||
bankDistance: FloatRangeFilter
|
||||
@ -285,72 +296,72 @@ 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
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
videosPrivateByDefault: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
@ -422,21 +433,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!
|
||||
@ -452,31 +448,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
|
||||
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
|
||||
video: VideoGQL!
|
||||
user: UserGQL!
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@ -610,9 +594,122 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
type ReactionGQL {
|
||||
videoId: Int!
|
||||
user: UserGQL!
|
||||
reaction: ReactionEnum!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
BULLSEYE
|
||||
HUNDRED
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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 {
|
||||
@ -647,6 +744,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
|
||||
@ -696,27 +826,16 @@ 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 {
|
||||
name: String!
|
||||
id: Int!
|
||||
group: String
|
||||
name: String!
|
||||
tagClasses: [TagClassGQL!]
|
||||
retired: Boolean!
|
||||
}
|
||||
|
||||
type TagClassGQL {
|
||||
id: Int!
|
||||
name: String!
|
||||
}
|
||||
|
||||
"""
|
||||
@ -727,41 +846,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!
|
||||
@ -771,6 +866,10 @@ type Mutation {
|
||||
shotId: Int!
|
||||
annotations: [UpdateAnnotationInputGQL!]!
|
||||
): UpdateShotAnnotationReturn!
|
||||
editShot(
|
||||
shotId: Int!
|
||||
fieldsToEdit: EditableShotFieldInputGQL!
|
||||
): EditShotReturn!
|
||||
getProfileImageUploadLink(
|
||||
fileExt: String = ".png"
|
||||
): GetProfileUploadLinkReturn!
|
||||
@ -778,6 +877,7 @@ type Mutation {
|
||||
editUser(input: EditUserInputGQL!): UserGQL!
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@ -791,6 +891,7 @@ type Mutation {
|
||||
): Boolean!
|
||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
@ -799,27 +900,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!
|
||||
}
|
||||
@ -840,6 +920,11 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
shotId: Int!
|
||||
msg: String
|
||||
}
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
msg: String
|
||||
}
|
||||
@ -854,6 +939,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!
|
||||
}
|
||||
@ -895,6 +996,12 @@ input VideoMetadataInput {
|
||||
startTime: DateTime = null
|
||||
endTime: DateTime = null
|
||||
gameType: String = null
|
||||
@deprecated(reason: "`game_type` is deprecated. Use `tags` instead.")
|
||||
|
||||
"""
|
||||
A list of tags associated with the video. Replace `game_type`
|
||||
"""
|
||||
tags: [VideoTagInput!] = null
|
||||
tableSize: Float = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user