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/
|
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||||
directive @client on FIELD
|
directive @client on FIELD
|
||||||
|
|
||||||
|
type SegmentInfo {
|
||||||
|
index: Int!
|
||||||
|
time: Float!
|
||||||
|
}
|
||||||
|
|
||||||
extend type ShotGQL {
|
extend type ShotGQL {
|
||||||
startTime: Float!
|
startTime: Float!
|
||||||
endTime: Float!
|
endTime: Float!
|
||||||
|
startSegment: SegmentInfo!
|
||||||
|
endSegment: SegmentInfo!
|
||||||
}
|
}
|
||||||
|
|
||||||
extend type UploadStreamGQL {
|
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
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
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 {
|
fragment VideoCardFields on VideoGQL {
|
||||||
id
|
id
|
||||||
owner {
|
owner {
|
||||||
@ -27,6 +38,8 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
totalShotsMade
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
|
averageTimeBetweenShots
|
||||||
|
averageDifficulty
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
@ -38,6 +51,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@ -56,6 +70,27 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
status
|
status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
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
|
endFrame
|
||||||
startTime @client
|
startTime @client
|
||||||
endTime @client
|
endTime @client
|
||||||
|
startSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
|
endSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
@ -177,6 +185,13 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
}
|
}
|
||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
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 {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
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!]!) {
|
query GetVideos($videoIds: [Int!]!) {
|
||||||
getVideos(videoIds: $videoIds) {
|
getVideos(videoIds: $videoIds) {
|
||||||
...VideoStreamMetadata
|
...VideoStreamMetadata
|
||||||
|
497
src/schema.gql
497
src/schema.gql
@ -5,10 +5,28 @@ type Query {
|
|||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
getDeployedConfig: DeployedConfigGQL!
|
getDeployedConfig: DeployedConfigGQL!
|
||||||
waitFor(duration: Float!): Float!
|
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(
|
getVideoMakePercentageIntervals(
|
||||||
videoId: ID!
|
videoId: ID!
|
||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [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!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: RunFilterInput!
|
filterInput: RunFilterInput!
|
||||||
@ -17,6 +35,12 @@ type Query {
|
|||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
countRespectsLimit: Boolean! = false
|
countRespectsLimit: Boolean! = false
|
||||||
): GetRunsResult!
|
): GetRunsResult!
|
||||||
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
|
getTableState(
|
||||||
|
b64Image: String!
|
||||||
|
tableSize: Float = 100
|
||||||
|
useHomography: HomographyInputGQL = null
|
||||||
|
): TableStateGQL!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@ -38,7 +62,6 @@ type Query {
|
|||||||
countRespectsLimit: Boolean! = false
|
countRespectsLimit: Boolean! = false
|
||||||
): [ShotGQL!]!
|
): [ShotGQL!]!
|
||||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
doesUsernameExist(candidateUsername: String!): Boolean!
|
doesUsernameExist(candidateUsername: String!): Boolean!
|
||||||
getLoggedInUser: UserGQL
|
getLoggedInUser: UserGQL
|
||||||
@ -47,6 +70,11 @@ type Query {
|
|||||||
limit: Int = null
|
limit: Int = null
|
||||||
after: String = null
|
after: String = null
|
||||||
): [String!]!
|
): [String!]!
|
||||||
|
getUsersMatching(
|
||||||
|
matchString: String = null
|
||||||
|
limit: Int = null
|
||||||
|
after: String = null
|
||||||
|
): [UserGQL!]!
|
||||||
getUserRelationshipsMatching(
|
getUserRelationshipsMatching(
|
||||||
userId: Int!
|
userId: Int!
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
@ -60,27 +88,9 @@ type Query {
|
|||||||
after: String = null
|
after: String = null
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
getUserTags: [TagGQL!]!
|
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||||
getVideos(videoIds: [Int!]!): [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 {
|
type AggregateResultGQL {
|
||||||
@ -195,6 +205,7 @@ input FilterInput @oneOf {
|
|||||||
isLeftMiss: [Boolean!]
|
isLeftMiss: [Boolean!]
|
||||||
isRightMiss: [Boolean!]
|
isRightMiss: [Boolean!]
|
||||||
isDirect: [Boolean!]
|
isDirect: [Boolean!]
|
||||||
|
isBreakHeuristic: [Boolean!]
|
||||||
tableSize: FloatRangeFilter
|
tableSize: FloatRangeFilter
|
||||||
bankAngle: FloatRangeFilter
|
bankAngle: FloatRangeFilter
|
||||||
bankDistance: FloatRangeFilter
|
bankDistance: FloatRangeFilter
|
||||||
@ -285,72 +296,72 @@ type DeployedConfigGQL {
|
|||||||
devMode: Boolean!
|
devMode: Boolean!
|
||||||
environment: String!
|
environment: String!
|
||||||
minimumAllowedAppVersion: String!
|
minimumAllowedAppVersion: String!
|
||||||
|
bannerMessages: [BannerGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type MakePercentageIntervalGQL {
|
type BannerGQL {
|
||||||
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 {
|
|
||||||
id: Int!
|
id: Int!
|
||||||
runLength: Int!
|
message: String!
|
||||||
videoId: Int!
|
color: String!
|
||||||
userId: Int!
|
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!]!
|
shots: [ShotGQL!]!
|
||||||
video: VideoGQL!
|
startTime: DateTime
|
||||||
user: UserGQL!
|
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 {
|
type ShotGQL {
|
||||||
@ -422,21 +433,6 @@ type SerializedShotPathsGQL {
|
|||||||
b64EncodedBuffer: String
|
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 {
|
type ShotAnnotationGQL {
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
type: ShotAnnotationTypeGQL!
|
type: ShotAnnotationTypeGQL!
|
||||||
@ -452,31 +448,19 @@ type ShotAnnotationTypeGQL {
|
|||||||
name: String!
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type RunGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
owner: UserGQL
|
runLength: Int!
|
||||||
name: String
|
videoId: Int!
|
||||||
screenshotUri: String
|
userId: Int!
|
||||||
totalShotsMade: Int!
|
|
||||||
totalShots: Int!
|
|
||||||
makePercentage: Float!
|
|
||||||
medianRun: Float
|
|
||||||
averageTimeBetweenShots: Float
|
|
||||||
createdAt: DateTime
|
|
||||||
updatedAt: DateTime
|
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
startTime: DateTime
|
video: VideoGQL!
|
||||||
endTime: DateTime
|
user: UserGQL!
|
||||||
elapsedTime: Float
|
}
|
||||||
framesPerSecond: Float!
|
|
||||||
tableSize: Float!
|
type RunFeaturesGQL {
|
||||||
private: Boolean!
|
runId: Int!
|
||||||
stream: UploadStreamGQL
|
indexInRun: Int!
|
||||||
playlist: HLSPlaylistGQL
|
|
||||||
tags: [VideoTag!]!
|
|
||||||
currentHomography: HomographyInfoGQL
|
|
||||||
homographyHistory: [HomographyInfoGQL!]!
|
|
||||||
currentProcessing: VideoProcessingGQL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadStreamGQL {
|
type UploadStreamGQL {
|
||||||
@ -610,9 +594,122 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
type RunFeaturesGQL {
|
type ReactionGQL {
|
||||||
runId: Int!
|
videoId: Int!
|
||||||
indexInRun: 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 {
|
input RunFilterInput {
|
||||||
@ -647,6 +744,39 @@ input DatetimeOrdering {
|
|||||||
startingAt: DateTime = null
|
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 {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@ -696,27 +826,16 @@ type UserPlayTimeGQL {
|
|||||||
totalSeconds: Float!
|
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 {
|
type TagGQL {
|
||||||
name: String!
|
|
||||||
id: Int!
|
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"
|
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 {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
editShot(
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||||
shotId: Int!
|
commentOnVideo(
|
||||||
fieldsToEdit: EditableShotFieldInputGQL!
|
videoId: Int!
|
||||||
): EditShotReturn!
|
message: String!
|
||||||
|
parentCommentId: Int
|
||||||
|
): Boolean!
|
||||||
|
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||||
|
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@ -771,6 +866,10 @@ type Mutation {
|
|||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotations: [UpdateAnnotationInputGQL!]!
|
annotations: [UpdateAnnotationInputGQL!]!
|
||||||
): UpdateShotAnnotationReturn!
|
): UpdateShotAnnotationReturn!
|
||||||
|
editShot(
|
||||||
|
shotId: Int!
|
||||||
|
fieldsToEdit: EditableShotFieldInputGQL!
|
||||||
|
): EditShotReturn!
|
||||||
getProfileImageUploadLink(
|
getProfileImageUploadLink(
|
||||||
fileExt: String = ".png"
|
fileExt: String = ".png"
|
||||||
): GetProfileUploadLinkReturn!
|
): GetProfileUploadLinkReturn!
|
||||||
@ -778,6 +877,7 @@ type Mutation {
|
|||||||
editUser(input: EditUserInputGQL!): UserGQL!
|
editUser(input: EditUserInputGQL!): UserGQL!
|
||||||
followUser(followedUserId: Int!): UserGQL!
|
followUser(followedUserId: Int!): UserGQL!
|
||||||
unfollowUser(followedUserId: Int!): UserGQL!
|
unfollowUser(followedUserId: Int!): UserGQL!
|
||||||
|
retireTags(tagIds: [Int!]!): Boolean!
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
@ -791,6 +891,7 @@ type Mutation {
|
|||||||
): Boolean!
|
): Boolean!
|
||||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||||
deleteVideo(videoId: Int!): Boolean!
|
deleteVideo(videoId: Int!): Boolean!
|
||||||
|
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
input CreateBucketSetInput {
|
input CreateBucketSetInput {
|
||||||
@ -799,27 +900,6 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
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 {
|
type AddShotAnnotationReturn {
|
||||||
value: SuccessfulAddAddShotAnnotationErrors!
|
value: SuccessfulAddAddShotAnnotationErrors!
|
||||||
}
|
}
|
||||||
@ -840,6 +920,11 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
|||||||
DoesNotOwnShotErr
|
DoesNotOwnShotErr
|
||||||
| OtherErrorNeedsNote
|
| OtherErrorNeedsNote
|
||||||
|
|
||||||
|
type DoesNotOwnShotErr {
|
||||||
|
shotId: Int!
|
||||||
|
msg: String
|
||||||
|
}
|
||||||
|
|
||||||
type OtherErrorNeedsNote {
|
type OtherErrorNeedsNote {
|
||||||
msg: String
|
msg: String
|
||||||
}
|
}
|
||||||
@ -854,6 +939,22 @@ input UpdateAnnotationInputGQL {
|
|||||||
notes: String = null
|
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 {
|
type GetProfileUploadLinkReturn {
|
||||||
value: UploadLinkGetProfileUploadLinkErrors!
|
value: UploadLinkGetProfileUploadLinkErrors!
|
||||||
}
|
}
|
||||||
@ -895,6 +996,12 @@ input VideoMetadataInput {
|
|||||||
startTime: DateTime = null
|
startTime: DateTime = null
|
||||||
endTime: DateTime = null
|
endTime: DateTime = null
|
||||||
gameType: String = 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
|
tableSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user