Compare commits
56 Commits
kat/update
...
volodymyr/
Author | SHA1 | Date | |
---|---|---|---|
5e2fe35427 | |||
4e610b7df2 | |||
2d6d3964ad | |||
73a58de36e | |||
dc6f246489 | |||
c0a3aa97dc | |||
f4e43b24f2 | |||
51ab8320d7 | |||
f9a00ad3eb | |||
998b2ffc8c | |||
c7642e6204 | |||
b2ce1c2f96 | |||
d0cf071934 | |||
6b410b3d78 | |||
607504261c | |||
0421be855d | |||
014aab473b | |||
353872401e | |||
433dfdaf74 | |||
a2d9e688e9 | |||
b3259dac1f | |||
0982b9e60c | |||
1710ae451c | |||
de9e7dea6a | |||
cfcf1dbcd2 | |||
05e3182e8b | |||
baf139aab5 | |||
b3b454ef83 | |||
f6e4a1bc0b | |||
9d8155527d | |||
8690e81029 | |||
4ef13a482a | |||
9db95c4e6c | |||
249807c935 | |||
eec79b2dc5 | |||
464c013095 | |||
e2f4995cad | |||
a43b286e39 | |||
148f5362f0 | |||
4d01e9814d | |||
b9e3e1f310 | |||
b0da48c4fb | |||
1e53dc21ee | |||
5c5014339f | |||
84188a6066 | |||
7c7be319d1 | |||
79784faba1 | |||
f3ea44755c | |||
9b6559559c | |||
2398216bf2 | |||
d942b91d17 | |||
24d9b9225e | |||
f6f6404302 | |||
4609af726b | |||
c5919c90d0 | |||
605adc3293 |
@@ -7,7 +7,7 @@ readme = "README.md"
|
|||||||
packages = [{include = "rbproto"}]
|
packages = [{include = "rbproto"}]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<3.12"
|
python = ">=3.10,<=3.13"
|
||||||
protobuf = "^4.25.3"
|
protobuf = "^4.25.3"
|
||||||
|
|
||||||
|
|
||||||
|
1079
src/index.tsx
1079
src/index.tsx
File diff suppressed because it is too large
Load Diff
69
src/operations/check_homography.gql
Normal file
69
src/operations/check_homography.gql
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
mutation checkHomographyIsValid($b64Image: String!, $videoId: Int!) {
|
||||||
|
checkHomographyIsValid(b64Image: $b64Image, videoId: $videoId) {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
destPoints {
|
||||||
|
topLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -1,3 +1,4 @@
|
|||||||
|
# DO NOT USE: use getVideoFeed instead
|
||||||
query GetFeed(
|
query GetFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
@@ -38,3 +39,59 @@ query GetFeed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment VideoCardFields on VideoGQL {
|
||||||
|
id
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
totalShotsMade
|
||||||
|
totalShots
|
||||||
|
makePercentage
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
startTime
|
||||||
|
endTime
|
||||||
|
elapsedTime
|
||||||
|
screenshotUri
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
isCompleted
|
||||||
|
}
|
||||||
|
tableSize
|
||||||
|
tags {
|
||||||
|
tagClasses {
|
||||||
|
name
|
||||||
|
}
|
||||||
|
name
|
||||||
|
}
|
||||||
|
currentProcessing {
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetVideoFeed(
|
||||||
|
$limit: Int! = 5
|
||||||
|
$after: String = null
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
) {
|
||||||
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
|
videos {
|
||||||
|
...VideoCardFields
|
||||||
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -40,9 +40,17 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
## Should be deprecated
|
||||||
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
query GetShotsWithVideoGql(
|
||||||
ids
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
@@ -54,18 +62,37 @@ query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetShotsWithJustIds(
|
||||||
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
|
shots {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
## Reserved for playlists (which are created from a filter)
|
## Reserved for playlists (which are created from a filter)
|
||||||
query GetShotsWithMetadataFilterResult(
|
query GetShotsWithMetadataFilterResult(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$ids: [Int!]
|
$ids: [Int!]
|
||||||
|
$countRespectsLimit: Boolean
|
||||||
) {
|
) {
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsOrdering: $shotsOrdering
|
shotsOrdering: $shotsOrdering
|
||||||
limit: $limit
|
limit: $limit
|
||||||
ids: $ids
|
ids: $ids
|
||||||
|
countRespectsLimit: $countRespectsLimit
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
shots {
|
shots {
|
||||||
|
@@ -37,6 +37,7 @@ query getLoggedInUser {
|
|||||||
username
|
username
|
||||||
isAdmin
|
isAdmin
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
fargoRating
|
||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
@@ -57,23 +58,25 @@ query getUsernames(
|
|||||||
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
||||||
}
|
}
|
||||||
|
|
||||||
query getUsernamesAndFollowing(
|
query getUserRelationshipsMatching(
|
||||||
$userId: Int!
|
$userId: Int!
|
||||||
$matchString: String!
|
$matchString: String!
|
||||||
$limit: Int = null
|
$limit: Int = null
|
||||||
$after: String = null
|
$after: String = null
|
||||||
) {
|
) {
|
||||||
getUsernamesAndFollowing(
|
getUserRelationshipsMatching(
|
||||||
userId: $userId
|
userId: $userId
|
||||||
matchString: $matchString
|
matchString: $matchString
|
||||||
limit: $limit
|
limit: $limit
|
||||||
after: $after
|
after: $after
|
||||||
) {
|
) {
|
||||||
followers
|
relationships {
|
||||||
following
|
toUser {
|
||||||
usernamesAndIds {
|
username
|
||||||
username
|
id
|
||||||
id
|
}
|
||||||
|
toUserFollows
|
||||||
|
toUserIsFollowedBy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -84,3 +87,51 @@ query GetUserTags {
|
|||||||
name
|
name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation followUser($followedUserId: Int!) {
|
||||||
|
followUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query getUserFollowingFollowers {
|
||||||
|
getLoggedInUser {
|
||||||
|
id
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
|
}
|
||||||
|
@@ -9,38 +9,43 @@ type Query {
|
|||||||
videoId: ID!
|
videoId: ID!
|
||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
shotsOrdering: GetShotsOrdering = null
|
shotsOrdering: GetShotsOrdering = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): GetShotsResult!
|
): GetShotsResult!
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
shotsPagination: GetShotsPagination = null
|
shotsPagination: GetShotsPagination = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): GetShotsResult!
|
): GetShotsResult!
|
||||||
getShots(
|
getShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
shotsPagination: GetShotsPagination = null
|
shotsPagination: GetShotsPagination = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
): [ShotGQL!]!
|
): [ShotGQL!]!
|
||||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
|
doesUsernameExist(candidateUsername: String!): Boolean!
|
||||||
getLoggedInUser: UserGQL
|
getLoggedInUser: UserGQL
|
||||||
getUsernames(
|
getUsernames(
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
limit: Int = null
|
limit: Int = null
|
||||||
after: String = null
|
after: String = null
|
||||||
): [String!]!
|
): [String!]!
|
||||||
getUsernamesAndFollowing(
|
getUserRelationshipsMatching(
|
||||||
userId: Int!
|
userId: Int!
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
limit: Int = 100
|
limit: Int = 100
|
||||||
after: String = null
|
after: String = null
|
||||||
): UsernamesAndFollowingResponse!
|
): UserRelationshipsResult!
|
||||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -266,6 +271,52 @@ type MakePercentageIntervalGQL {
|
|||||||
elapsedTime: 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
|
||||||
|
totalMakes50: MedalGQL
|
||||||
|
totalMakes75: MedalGQL
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
type MedalGQL {
|
||||||
|
count: Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
input MedalScope @oneOf {
|
||||||
|
videoId: Int
|
||||||
|
interval: TimeInterval
|
||||||
|
}
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -341,16 +392,16 @@ type SerializedShotPathsGQL {
|
|||||||
|
|
||||||
type UserGQL {
|
type UserGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
firebaseUid: String!
|
firebaseUid: String
|
||||||
username: String!
|
username: String!
|
||||||
isAdmin: Boolean!
|
isAdmin: Boolean
|
||||||
fargoRating: Int
|
fargoRating: Int
|
||||||
activeVideoId: Int
|
activeVideoId: Int
|
||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
following: [Int!]
|
following: [UserGQL!]
|
||||||
followers: [Int!]
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotAnnotationGQL {
|
type ShotAnnotationGQL {
|
||||||
@@ -554,15 +605,15 @@ input CreatedAfter @oneOf {
|
|||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
type UsernamesAndFollowingResponse {
|
type UserRelationshipsResult {
|
||||||
usernamesAndIds: [FollowingUser!]!
|
inquiringUser: UserGQL!
|
||||||
following: [Int!]!
|
relationships: [UserRelationship!]!
|
||||||
followers: [Int!]!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type FollowingUser {
|
type UserRelationship {
|
||||||
id: Int!
|
toUser: UserGQL!
|
||||||
username: String!
|
toUserFollows: Boolean!
|
||||||
|
toUserIsFollowedBy: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
@@ -617,6 +668,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!
|
||||||
|
checkHomographyIsValid(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
|
Reference in New Issue
Block a user