Compare commits
1 Commits
kat/curren
...
kat/update
Author | SHA1 | Date | |
---|---|---|---|
3d476891c3 |
@@ -7,7 +7,7 @@ readme = "README.md"
|
|||||||
packages = [{include = "rbproto"}]
|
packages = [{include = "rbproto"}]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<3.12"
|
||||||
protobuf = "^4.25.3"
|
protobuf = "^4.25.3"
|
||||||
|
|
||||||
|
|
||||||
|
904
src/index.tsx
904
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,3 @@
|
|||||||
# DO NOT USE: use getVideoFeed instead
|
|
||||||
query GetFeed(
|
query GetFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
@@ -39,59 +38,3 @@ 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,17 +40,9 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
## Should be deprecated
|
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
||||||
query GetShotsWithVideoGql(
|
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
||||||
$filterInput: FilterInput!
|
ids
|
||||||
$shotsOrdering: GetShotsOrdering
|
|
||||||
$limit: Int
|
|
||||||
) {
|
|
||||||
getOrderedShots(
|
|
||||||
filterInput: $filterInput
|
|
||||||
shotsOrdering: $shotsOrdering
|
|
||||||
limit: $limit
|
|
||||||
) {
|
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
@@ -62,37 +54,18 @@ query GetShotsWithVideoGql(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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,7 +37,6 @@ query getLoggedInUser {
|
|||||||
username
|
username
|
||||||
isAdmin
|
isAdmin
|
||||||
profileImageUri
|
profileImageUri
|
||||||
fargoRating
|
|
||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
@@ -58,26 +57,20 @@ query getUsernames(
|
|||||||
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
getUsernames(matchString: $matchString, limit: $limit, after: $after)
|
||||||
}
|
}
|
||||||
|
|
||||||
query getUserRelationshipsMatching(
|
query getUsernamesAndFollowing(
|
||||||
$userId: Int!
|
$userId: Int!
|
||||||
$matchString: String!
|
$matchString: String!
|
||||||
$limit: Int = null
|
$limit: Int = null
|
||||||
$after: String = null
|
$after: String = null
|
||||||
) {
|
) {
|
||||||
getUserRelationshipsMatching(
|
getUsernamesAndFollowing(
|
||||||
userId: $userId
|
userId: $userId
|
||||||
matchString: $matchString
|
matchString: $matchString
|
||||||
limit: $limit
|
limit: $limit
|
||||||
after: $after
|
after: $after
|
||||||
) {
|
) {
|
||||||
relationships {
|
followers
|
||||||
toUser {
|
following
|
||||||
username
|
|
||||||
id
|
|
||||||
}
|
|
||||||
toUserFollows
|
|
||||||
toUserIsFollowedBy
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,51 +80,3 @@ 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,43 +9,44 @@ 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!]!
|
||||||
getUserRelationshipsMatching(
|
getUsernamesAndFollowing(
|
||||||
userId: Int!
|
userId: Int!
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
limit: Int = 100
|
limit: Int = 100
|
||||||
after: String = null
|
after: String = null
|
||||||
): UserRelationshipsResult!
|
): UsernamesAndFollowingResponse!
|
||||||
|
getUsernamesAndFollowingOld(
|
||||||
|
userId: Int!
|
||||||
|
matchString: String = null
|
||||||
|
limit: Int = 100
|
||||||
|
after: String = null
|
||||||
|
): UsernamesAndFollowingResponse!
|
||||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -271,52 +272,6 @@ 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
|
||||||
@@ -400,8 +355,8 @@ type UserGQL {
|
|||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
following: [UserGQL!]
|
following: [Int!]
|
||||||
followers: [UserGQL!]
|
followers: [Int!]
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotAnnotationGQL {
|
type ShotAnnotationGQL {
|
||||||
@@ -605,15 +560,10 @@ input CreatedAfter @oneOf {
|
|||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserRelationshipsResult {
|
type UsernamesAndFollowingResponse {
|
||||||
inquiringUser: UserGQL!
|
users: [UserGQL!]!
|
||||||
relationships: [UserRelationship!]!
|
following: [Int!]!
|
||||||
}
|
followers: [Int!]!
|
||||||
|
|
||||||
type UserRelationship {
|
|
||||||
toUser: UserGQL!
|
|
||||||
toUserFollows: Boolean!
|
|
||||||
toUserIsFollowedBy: Boolean!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
@@ -668,7 +618,6 @@ 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