Compare commits
67 Commits
kat/add-ge
...
master
Author | SHA1 | Date | |
---|---|---|---|
e137ce8ad1 | |||
bd5bebb747 | |||
034facebf3 | |||
ac1fceb648 | |||
fd87ade629 | |||
1fab007654 | |||
cd2cdb475a | |||
c3c74379fb | |||
da21627f15 | |||
8fabfd67cf | |||
e6960038f2 | |||
b6ec7ed39d | |||
545ba638c2 | |||
94e4e55558 | |||
2536f5db6b | |||
ffd0814a98 | |||
55bfe42484 | |||
dabb0d1d9c | |||
a538c1d81c | |||
872bce3adb | |||
457d375bed | |||
12798e368c | |||
a3d6e6e19e | |||
f7a6e393e7 | |||
ee11e506ed | |||
90ec47848b | |||
21acb5219d | |||
087d511efc | |||
7cc0dca821 | |||
f826121aa3 | |||
2aadb8b49b | |||
5468b7ccda | |||
08dfafe1a3 | |||
36b6804719 | |||
0120c15064 | |||
9cc99d956a | |||
985fa8b8e5 | |||
c4868e7ebe | |||
58e1c18034 | |||
592dea0ca2 | |||
0e00ae9297 | |||
e16812f242 | |||
3e9b7a0d16 | |||
309deb9473 | |||
d5ba9c2ba5 | |||
73771a263a | |||
655e59c43c | |||
056120a68a | |||
bd7ffa7fdb | |||
ec58923c65 | |||
63869cd7ca | |||
08ae9611cf | |||
4e610b7df2 | |||
2d6d3964ad | |||
73a58de36e | |||
dc6f246489 | |||
c0a3aa97dc | |||
f4e43b24f2 | |||
51ab8320d7 | |||
f9a00ad3eb | |||
998b2ffc8c | |||
c7642e6204 | |||
b2ce1c2f96 | |||
d0cf071934 | |||
6b410b3d78 | |||
607504261c | |||
0421be855d |
1112
src/index.tsx
1112
src/index.tsx
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,26 @@
|
||||
# DO NOT USE: use getVideoFeed instead
|
||||
query GetFeed(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
) {
|
||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
videos {
|
||||
...VideoCardFields
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment VideoCardFields on VideoGQL {
|
||||
id
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
name
|
||||
screenshotUri
|
||||
@ -18,6 +31,7 @@ query GetFeed(
|
||||
updatedAt
|
||||
startTime
|
||||
endTime
|
||||
private
|
||||
elapsedTime
|
||||
screenshotUri
|
||||
stream {
|
||||
@ -31,6 +45,32 @@ query GetFeed(
|
||||
}
|
||||
name
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
}
|
||||
status
|
||||
statuses {
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoFeed(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
$includeCallersVideos: Boolean = null
|
||||
) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
after: $after
|
||||
filters: $filters
|
||||
includeCallersVideos: $includeCallersVideos
|
||||
) {
|
||||
videos {
|
||||
...VideoCardFields
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
|
80
src/operations/medals.gql
Normal file
80
src/operations/medals.gql
Normal file
@ -0,0 +1,80 @@
|
||||
fragment MedalFields on MedalGQL {
|
||||
count
|
||||
nickname
|
||||
}
|
||||
|
||||
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||
getMedals(scope: $scope, userId: $userId) {
|
||||
distanceOver66 {
|
||||
...MedalFields
|
||||
}
|
||||
distanceOver78 {
|
||||
...MedalFields
|
||||
}
|
||||
distanceOver90 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength3 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength5 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength8 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength10 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength15 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength20 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength25 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength30 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength40 {
|
||||
...MedalFields
|
||||
}
|
||||
runLength50 {
|
||||
...MedalFields
|
||||
}
|
||||
totalMakes100 {
|
||||
...MedalFields
|
||||
}
|
||||
# missing assets
|
||||
# totalMakes500 {
|
||||
# ...MedalFields
|
||||
# }
|
||||
# totalMakes1000 {
|
||||
# ...MedalFields
|
||||
# }
|
||||
# totalMakes5000 {
|
||||
# ...MedalFields
|
||||
# }
|
||||
# totalMakes10000 {
|
||||
# ...MedalFields
|
||||
# }
|
||||
dailyMakes50 {
|
||||
...MedalFields
|
||||
}
|
||||
dailyMakes100 {
|
||||
...MedalFields
|
||||
}
|
||||
dailyMakes150 {
|
||||
...MedalFields
|
||||
}
|
||||
dailyMakes200 {
|
||||
...MedalFields
|
||||
}
|
||||
# missing asset
|
||||
# dailyMakes250 {
|
||||
# ...MedalFields
|
||||
# }
|
||||
}
|
||||
}
|
@ -40,6 +40,7 @@ mutation UpdateShotAnnotations(
|
||||
}
|
||||
}
|
||||
|
||||
## Should be deprecated
|
||||
query GetShotsWithVideoGql(
|
||||
$filterInput: FilterInput!
|
||||
$shotsOrdering: GetShotsOrdering
|
||||
@ -61,6 +62,26 @@ query GetShotsWithVideoGql(
|
||||
}
|
||||
}
|
||||
|
||||
query GetShotsWithJustIds(
|
||||
$filterInput: FilterInput!
|
||||
$shotsOrdering: GetShotsOrdering
|
||||
$limit: Int
|
||||
$countRespectsLimit: Boolean
|
||||
) {
|
||||
getOrderedShots(
|
||||
filterInput: $filterInput
|
||||
shotsOrdering: $shotsOrdering
|
||||
limit: $limit
|
||||
countRespectsLimit: $countRespectsLimit
|
||||
) {
|
||||
count
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
## Reserved for playlists (which are created from a filter)
|
||||
query GetShotsWithMetadataFilterResult(
|
||||
$filterInput: FilterInput!
|
||||
@ -138,6 +159,7 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
targetPocketAngleDirection
|
||||
marginOfErrorInDegrees
|
||||
intendedPocketType
|
||||
difficulty
|
||||
}
|
||||
pocketingIntentionInfo {
|
||||
ballId
|
||||
|
@ -41,11 +41,12 @@ query getLoggedInUser {
|
||||
activeVideoId
|
||||
createdAt
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
}
|
||||
}
|
||||
|
||||
query GetUserPlayTime($userId: Int!) {
|
||||
getPlayTime(userId: $userId) {
|
||||
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
||||
getPlayTime(userId: $userId, filters: $filters) {
|
||||
totalSeconds
|
||||
}
|
||||
}
|
||||
@ -135,3 +136,24 @@ query getUserFollowingFollowers {
|
||||
query doesUsernameExist($candidateUsername: String!) {
|
||||
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||
}
|
||||
|
||||
mutation editUser(
|
||||
$username: String
|
||||
$fargoRating: Int
|
||||
$videosPrivateByDefault: Boolean
|
||||
) {
|
||||
editUser(
|
||||
input: {
|
||||
username: $username
|
||||
fargoRating: $fargoRating
|
||||
videosPrivateByDefault: $videosPrivateByDefault
|
||||
}
|
||||
) {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
fargoRating
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
}
|
||||
}
|
||||
|
@ -5,44 +5,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
makePercentage
|
||||
elapsedTime
|
||||
currentHomography {
|
||||
crop {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
pockets {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
sourcePoints {
|
||||
topLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
topSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
topRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@ -55,6 +18,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
errors {
|
||||
message
|
||||
startSegmentIndex
|
||||
@ -154,45 +118,7 @@ query GetVideo($videoId: Int!) {
|
||||
segmentDurations
|
||||
}
|
||||
homographyHistory {
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
pockets {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
sourcePoints {
|
||||
topLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
topSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
topRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
}
|
||||
...HomographyInfo
|
||||
}
|
||||
stream {
|
||||
id
|
||||
@ -288,3 +214,52 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
||||
startTime
|
||||
}
|
||||
}
|
||||
|
||||
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||
...HomographyInfo
|
||||
}
|
||||
}
|
||||
|
||||
fragment HomographyInfo on HomographyInfoGQL {
|
||||
id
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
pockets {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
sourcePoints {
|
||||
topLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
topSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
topRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
}
|
||||
}
|
||||
|
143
src/schema.gql
143
src/schema.gql
@ -10,6 +10,13 @@ type Query {
|
||||
intervalDuration: Int! = 300
|
||||
): [MakePercentageIntervalGQL!]!
|
||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||
getRuns(
|
||||
filterInput: RunFilterInput!
|
||||
runIds: [Int!] = null
|
||||
runsOrdering: GetRunsOrdering = null
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
): GetRunsResult!
|
||||
getOrderedShots(
|
||||
filterInput: FilterInput!
|
||||
ids: [Int!] = null
|
||||
@ -46,7 +53,7 @@ type Query {
|
||||
limit: Int = 100
|
||||
after: String = null
|
||||
): UserRelationshipsResult!
|
||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
limit: Int! = 5
|
||||
@ -59,6 +66,7 @@ type Query {
|
||||
getFeedVideos(
|
||||
limit: Int! = 5
|
||||
after: String = null
|
||||
includeCallersVideos: Boolean = true
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
}
|
||||
@ -285,31 +293,28 @@ type RequestedMedalsGQL {
|
||||
runLength30: MedalGQL
|
||||
runLength40: MedalGQL
|
||||
runLength50: MedalGQL
|
||||
totalMakes25: MedalGQL
|
||||
totalMakes50: MedalGQL
|
||||
totalMakes75: 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
|
||||
totalMakes200: MedalGQL
|
||||
totalMakes300: MedalGQL
|
||||
totalMakes400: MedalGQL
|
||||
totalMakes500: MedalGQL
|
||||
totalMakes750: MedalGQL
|
||||
totalMakes1000: MedalGQL
|
||||
dayStreak2: MedalGQL
|
||||
dayStreak3: MedalGQL
|
||||
dayStreak4: MedalGQL
|
||||
dayStreak5: MedalGQL
|
||||
dayStreak6: MedalGQL
|
||||
dayStreak7: MedalGQL
|
||||
dayStreak14: MedalGQL
|
||||
dayStreak21: MedalGQL
|
||||
dayStreak30: MedalGQL
|
||||
dayStreak60: MedalGQL
|
||||
dayStreak90: MedalGQL
|
||||
totalMakes5000: MedalGQL
|
||||
totalMakes10000: MedalGQL
|
||||
dailyMakes50: MedalGQL
|
||||
dailyMakes100: MedalGQL
|
||||
dailyMakes150: MedalGQL
|
||||
dailyMakes200: MedalGQL
|
||||
dailyMakes250: MedalGQL
|
||||
}
|
||||
|
||||
type MedalGQL {
|
||||
count: Int!
|
||||
nickname: String
|
||||
}
|
||||
|
||||
input MedalScope @oneOf {
|
||||
@ -317,10 +322,18 @@ input MedalScope @oneOf {
|
||||
interval: TimeInterval
|
||||
}
|
||||
|
||||
type GetShotsResult {
|
||||
shots: [ShotGQL!]!
|
||||
type GetRunsResult {
|
||||
runs: [RunGQL!]!
|
||||
count: Int
|
||||
ids: [Int!]!
|
||||
runIds: [Int!]!
|
||||
}
|
||||
|
||||
type RunGQL {
|
||||
id: Int!
|
||||
runLength: Int!
|
||||
videoId: Int!
|
||||
userId: Int!
|
||||
shots: [ShotGQL!]!
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
@ -400,6 +413,7 @@ type UserGQL {
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
videosPrivateByDefault: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
}
|
||||
@ -437,6 +451,7 @@ type VideoGQL {
|
||||
elapsedTime: Float
|
||||
framesPerSecond: Float!
|
||||
tableSize: Float!
|
||||
private: Boolean!
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
tags: [VideoTag!]!
|
||||
@ -459,6 +474,7 @@ type UploadStreamGQL {
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
segments: [UploadSegmentGQL!]!
|
||||
clientUploadStatus: ClientUploadStatusEnum
|
||||
resolution: VideoResolutionGQL!
|
||||
streamSegmentType: StreamSegmentTypeEnum!
|
||||
}
|
||||
@ -483,6 +499,11 @@ type UploadSegmentGQL {
|
||||
linksRequested: Int!
|
||||
}
|
||||
|
||||
enum ClientUploadStatusEnum {
|
||||
UPLOAD_ENABLED
|
||||
UPLOAD_DISABLED
|
||||
}
|
||||
|
||||
type VideoResolutionGQL {
|
||||
width: Int
|
||||
height: Int
|
||||
@ -509,6 +530,7 @@ type VideoTagClass {
|
||||
}
|
||||
|
||||
type HomographyInfoGQL {
|
||||
id: Int!
|
||||
frameIndex: Int!
|
||||
crop: BoundingBoxGQL!
|
||||
pockets: [BoundingBoxGQL!]!
|
||||
@ -538,6 +560,7 @@ type IntPoint2D {
|
||||
}
|
||||
|
||||
type VideoProcessingGQL {
|
||||
id: Int!
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
@ -568,33 +591,61 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
input RunFilterInput {
|
||||
videoId: [Int!]
|
||||
userId: [Int!]
|
||||
username: [String!]
|
||||
andFilters: [RunFilterInput!]
|
||||
orFilters: [RunFilterInput!]
|
||||
notFilter: RunFilterInput
|
||||
tableSize: FloatRangeFilter
|
||||
createdAt: DateRangeFilter
|
||||
runLength: FloatRangeFilter
|
||||
}
|
||||
|
||||
input GetRunsOrdering {
|
||||
orderings: [RunsOrderingComponent!]!
|
||||
}
|
||||
|
||||
input RunsOrderingComponent @oneOf {
|
||||
runLength: IntOrdering
|
||||
videoId: IntOrdering
|
||||
videoCreation: DatetimeOrdering
|
||||
}
|
||||
|
||||
input IntOrdering {
|
||||
descending: Boolean! = true
|
||||
startingAt: Int = null
|
||||
}
|
||||
|
||||
input DatetimeOrdering {
|
||||
descending: Boolean! = true
|
||||
startingAt: DateTime = null
|
||||
}
|
||||
|
||||
type GetShotsResult {
|
||||
shots: [ShotGQL!]!
|
||||
count: Int
|
||||
ids: [Int!]!
|
||||
}
|
||||
|
||||
input GetShotsOrdering {
|
||||
orderings: [ShotsOrderingComponent!]!
|
||||
}
|
||||
|
||||
input ShotsOrderingComponent @oneOf {
|
||||
videoCreation: DatetimeShotOrdering
|
||||
marginOfError: FloatShotOrdering
|
||||
videoId: IntShotOrdering
|
||||
startFrame: IntShotOrdering
|
||||
runLength: IntShotOrdering
|
||||
videoCreation: DatetimeOrdering
|
||||
marginOfError: FloatOrdering
|
||||
videoId: IntOrdering
|
||||
startFrame: IntOrdering
|
||||
runLength: IntOrdering
|
||||
}
|
||||
|
||||
input DatetimeShotOrdering {
|
||||
descending: Boolean! = true
|
||||
startingAt: DateTime = null
|
||||
}
|
||||
|
||||
input FloatShotOrdering {
|
||||
input FloatOrdering {
|
||||
descending: Boolean! = true
|
||||
startingAt: Float = null
|
||||
}
|
||||
|
||||
input IntShotOrdering {
|
||||
descending: Boolean! = true
|
||||
startingAt: Int = null
|
||||
}
|
||||
|
||||
input GetShotsPagination {
|
||||
createdAfter: CreatedAfter!
|
||||
startFrameAfter: Int!
|
||||
@ -620,6 +671,13 @@ type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
|
||||
input VideoFilterInput {
|
||||
isStreamCompleted: Boolean = null
|
||||
requireCursorCompletion: Boolean! = true
|
||||
createdAt: DateRangeFilter = null
|
||||
excludeVideosWithNoShots: Boolean = null
|
||||
}
|
||||
|
||||
type VideoHistoryGQL {
|
||||
videos: [VideoGQL!]!
|
||||
pageInfo: PageInfoGQL!
|
||||
@ -630,11 +688,6 @@ type PageInfoGQL {
|
||||
endCursor: String
|
||||
}
|
||||
|
||||
input VideoFilterInput {
|
||||
isStreamCompleted: Boolean = null
|
||||
requireCursorCompletion: Boolean! = true
|
||||
}
|
||||
|
||||
type TagGQL {
|
||||
name: String!
|
||||
id: Int!
|
||||
@ -668,6 +721,7 @@ type Mutation {
|
||||
editUser(input: EditUserInputGQL!): UserGQL!
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
): CreateUploadStreamReturn!
|
||||
@ -756,6 +810,7 @@ type TooManyProfileImageUploadsErr {
|
||||
input EditUserInputGQL {
|
||||
username: String = null
|
||||
fargoRating: Int = null
|
||||
videosPrivateByDefault: Boolean = null
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
@ -770,7 +825,9 @@ input VideoMetadataInput {
|
||||
tableSize: Float = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
private: Boolean = null
|
||||
endStream: Boolean! = false
|
||||
clientUploadStatus: ClientUploadStatusEnum = null
|
||||
resolution: VideoResolution = null
|
||||
framesPerSecond: Float = null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user