Compare commits
229 Commits
51ab8320d7
...
dean/add-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55bbf723ba | ||
|
|
88650706e0 | ||
|
|
8a393e9a42 | ||
|
|
a00b50d985 | ||
|
|
36ed501cd9 | ||
|
|
d17c1a2ecc | ||
|
|
cc9bc98b32 | ||
|
|
eec12c61a3 | ||
|
|
b7b482694e | ||
|
|
ce8d2aaec8 | ||
| 0f89f97006 | |||
| cdf438c089 | |||
| 7dbfadf13a | |||
| a74a11e789 | |||
| 3b2f88c0e0 | |||
| a3ac769cd4 | |||
| 00fc2ab44b | |||
| 58ab272289 | |||
| 242afae92b | |||
| 6bf597a2ec | |||
|
|
aac9879afc | ||
| 5c62d45068 | |||
| a7649351b3 | |||
| 051555f9fc | |||
| d7bbe882b7 | |||
| e783050a02 | |||
| d8ee83c627 | |||
| d32cd87a60 | |||
| b956cfe0f9 | |||
| 3f520a0331 | |||
| a563834269 | |||
| 80a5bded47 | |||
| 16d8510465 | |||
| 9b21ce1e3a | |||
| dde4cfd99b | |||
| 845fb361b9 | |||
| 9f5fcc066e | |||
| dfb0361e12 | |||
| 77477d63db | |||
| 01fb113e1c | |||
| c660ed54cd | |||
| b5fd2e2183 | |||
| ddee57f4c2 | |||
| a497abd44d | |||
| 49d43b2703 | |||
| 99f8968a36 | |||
| 76a98aa0c3 | |||
| f5177a877c | |||
| 6685849cc2 | |||
| 567cbc549c | |||
| 2b43493a4f | |||
| 358eee2e16 | |||
| a1d3d776aa | |||
| 82af3a3ce9 | |||
| 7b51c317ca | |||
| 04f1bb4d74 | |||
| fbd7c2020b | |||
| c0636a8863 | |||
| 7302d6b8b6 | |||
| 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 | |||
| 194d0dcd22 | |||
| 8fcaa1397a | |||
| e8e318b919 | |||
| ff0a11ea0d | |||
| 84192d1387 | |||
| f1ae2b62d6 | |||
| 4f78cd94ab | |||
| bfdda67d1a | |||
| 881350619a | |||
| 8bc67f75b0 | |||
| df8495df77 | |||
| 0c45855f7d | |||
| a2e659dfcb | |||
| 2a36a392ce | |||
| 145c2f9558 | |||
| 3f2e5d331f | |||
| bf8e851139 | |||
| eb15f4f3b8 | |||
| 82ff8546d4 | |||
| 284334606d | |||
| a883bc3e2f | |||
| b50ea5b573 | |||
| de17659dbb | |||
| 33886b4e9e | |||
| 9d0ba908dc | |||
| 7b4880a990 | |||
| 8ed177b0f3 | |||
| 976cc66ccb | |||
| af461fff00 | |||
| 7a39b4ca60 | |||
| 9befbe3833 | |||
| 68a4c064f3 | |||
| 54fd741670 | |||
| 2f9e630de4 | |||
| 5efd8ef8e5 | |||
| 6ad3d449d8 | |||
| 8fe20d1c41 | |||
| e151f39582 | |||
| f136ddb9ca | |||
| 5d05614e07 | |||
| c4c3ccde00 | |||
| 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 |
5423
package-lock.json
generated
Normal file
5423
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -12,10 +12,10 @@
|
|||||||
"author": "Ivan Malison <IvanMalison@gmail.com>",
|
"author": "Ivan Malison <IvanMalison@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.9.2",
|
"@apollo/client": "^3.11.10",
|
||||||
"@graphql-codegen/cli": "^5.0.0",
|
"@graphql-codegen/cli": "^5.0.0",
|
||||||
"@graphql-codegen/typescript": "^4.0.1",
|
"@graphql-codegen/typescript": "^4.0.1",
|
||||||
"@graphql-codegen/typescript-operations": "^4.0.1",
|
"@graphql-codegen/typescript-operations": "^5.0.4",
|
||||||
"@graphql-codegen/typescript-react-apollo": "^4.2.0",
|
"@graphql-codegen/typescript-react-apollo": "^4.2.0",
|
||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"pbjs": "^0.0.14",
|
"pbjs": "^0.0.14",
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
6342
src/index.tsx
6342
src/index.tsx
File diff suppressed because it is too large
Load Diff
282
src/operations/challenges.gql
Normal file
282
src/operations/challenges.gql
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
query GetChallenges {
|
||||||
|
challenges {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyDismissedChallenges {
|
||||||
|
myDismissedChallenges {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetChallenge($id: ID!) {
|
||||||
|
challenge(id: $id) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
participantCount
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
invitations {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
invitee {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetRuleSets {
|
||||||
|
ruleSets {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetChallengeLeaderboard($challengeId: ID!, $limit: Int) {
|
||||||
|
challengeLeaderboard(challengeId: $challengeId, limit: $limit) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
makeRate
|
||||||
|
qualified
|
||||||
|
createdAt
|
||||||
|
attemptCount
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyChallengeInvitations {
|
||||||
|
myChallengeInvitations {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyChallengeEntries {
|
||||||
|
myChallengeEntries {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
makeRate
|
||||||
|
qualified
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CreateRuleSet($name: String!, $description: String) {
|
||||||
|
createRuleSet(name: $name, description: $description) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CreateChallenge(
|
||||||
|
$name: String!
|
||||||
|
$ruleSetId: ID!
|
||||||
|
$minimumShots: Int!
|
||||||
|
$startDate: DateTime!
|
||||||
|
$endDate: DateTime!
|
||||||
|
$description: String
|
||||||
|
$requiredTableSize: Float
|
||||||
|
$requiredPocketSize: Float
|
||||||
|
$isPublic: Boolean! = false
|
||||||
|
$maxAttempts: Int
|
||||||
|
) {
|
||||||
|
createChallenge(
|
||||||
|
name: $name
|
||||||
|
ruleSetId: $ruleSetId
|
||||||
|
minimumShots: $minimumShots
|
||||||
|
startDate: $startDate
|
||||||
|
endDate: $endDate
|
||||||
|
description: $description
|
||||||
|
requiredTableSize: $requiredTableSize
|
||||||
|
requiredPocketSize: $requiredPocketSize
|
||||||
|
isPublic: $isPublic
|
||||||
|
maxAttempts: $maxAttempts
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation InviteUsersToChallenge($challengeId: ID!, $userIds: [ID!]!) {
|
||||||
|
inviteUsersToChallenge(challengeId: $challengeId, userIds: $userIds) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RespondToChallengeInvitation($invitationId: ID!, $accept: Boolean!) {
|
||||||
|
respondToChallengeInvitation(invitationId: $invitationId, accept: $accept) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation StartChallenge($challengeId: ID!) {
|
||||||
|
startChallenge(challengeId: $challengeId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation SubmitChallengeEntry($entryId: ID!, $videoId: ID!) {
|
||||||
|
submitChallengeEntry(entryId: $entryId, videoId: $videoId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
qualified
|
||||||
|
makeRate
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RecalculateChallengeEntry($entryId: ID!) {
|
||||||
|
recalculateChallengeEntry(entryId: $entryId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
qualified
|
||||||
|
makeRate
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query IsChallengeDismissed($challengeId: ID!) {
|
||||||
|
isChallengeDismissed(challengeId: $challengeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation DismissChallenge($challengeId: ID!) {
|
||||||
|
dismissChallenge(challengeId: $challengeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation UndismissChallenge($challengeId: ID!) {
|
||||||
|
undismissChallenge(challengeId: $challengeId)
|
||||||
|
}
|
||||||
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,14 @@ query getDeployedConfig {
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
|
subscriptionGatingEnabled
|
||||||
|
bannerMessages {
|
||||||
|
color
|
||||||
|
dismissible
|
||||||
|
id
|
||||||
|
kind
|
||||||
|
message
|
||||||
|
priority
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
src/operations/content-moderation.gql
Normal file
15
src/operations/content-moderation.gql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
mutation blockContent($videoId: Int!) {
|
||||||
|
blockContent(videoId: $videoId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation blockUser($userId: Int!) {
|
||||||
|
blockUser(userId: $userId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation reportContent(
|
||||||
|
$videoId: Int!
|
||||||
|
$reason: ReportReasonEnum!
|
||||||
|
$customReason: String = null
|
||||||
|
) {
|
||||||
|
reportContent(videoId: $videoId, reason: $reason, customReason: $customReason)
|
||||||
|
}
|
||||||
@@ -6,32 +6,7 @@ query GetFeed(
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -40,6 +15,13 @@ query GetFeed(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment UserSocialsFields on UserGQL {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
|
}
|
||||||
|
|
||||||
fragment VideoCardFields on VideoGQL {
|
fragment VideoCardFields on VideoGQL {
|
||||||
id
|
id
|
||||||
owner {
|
owner {
|
||||||
@@ -52,15 +34,20 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
totalShotsMade
|
totalShotsMade
|
||||||
totalShots
|
totalShots
|
||||||
makePercentage
|
makePercentage
|
||||||
|
averageTimeBetweenShots
|
||||||
|
averageDifficulty
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
startTime
|
startTime
|
||||||
endTime
|
endTime
|
||||||
|
private
|
||||||
elapsedTime
|
elapsedTime
|
||||||
screenshotUri
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
tags {
|
tags {
|
||||||
@@ -69,14 +56,55 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
}
|
}
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
currentProcessing {
|
||||||
|
id
|
||||||
|
errors {
|
||||||
|
message
|
||||||
|
}
|
||||||
|
status
|
||||||
|
statuses {
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
|
comments {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
replies {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
...UserSocialsFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
|
$includeCallersVideos: Boolean = null
|
||||||
|
$includePrivate: IncludePrivateEnum = MINE
|
||||||
|
$feedInput: VideoFeedInputGQL = null
|
||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
after: $after
|
||||||
|
filters: $filters
|
||||||
|
includeCallersVideos: $includeCallersVideos
|
||||||
|
includePrivate: $includePrivate
|
||||||
|
feedInput: $feedInput
|
||||||
|
) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
@@ -84,5 +112,6 @@ query GetVideoFeed(
|
|||||||
hasNextPage
|
hasNextPage
|
||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
|
hasFollowing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
32
src/operations/leaderboards.gql
Normal file
32
src/operations/leaderboards.gql
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||||
|
getMakesLeaderboard(interval: $interval, when: $when) {
|
||||||
|
entries {
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
value
|
||||||
|
proportionMade
|
||||||
|
total
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||||
|
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
||||||
|
entries {
|
||||||
|
id
|
||||||
|
runLength
|
||||||
|
video {
|
||||||
|
name
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
75
src/operations/medals.gql
Normal file
75
src/operations/medals.gql
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
fragment MedalFields on MedalGQL {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
|
||||||
|
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||||
|
getMedals(scope: $scope, userId: $userId) {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
totalMakes500 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes1000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes5000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
totalMakes10000 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes50 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes100 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes150 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes200 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
dailyMakes250 {
|
||||||
|
...MedalFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
63
src/operations/notifications.gql
Normal file
63
src/operations/notifications.gql
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
query GetNotifications(
|
||||||
|
$limit: Int! = 20
|
||||||
|
$offset: Int! = 0
|
||||||
|
$filters: NotificationFilters = null
|
||||||
|
) {
|
||||||
|
notifications(limit: $limit, offset: $offset, filters: $filters) {
|
||||||
|
notifications {
|
||||||
|
...Notification
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
unreadCount
|
||||||
|
hasMore
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUnreadNotificationCount {
|
||||||
|
unreadNotificationCount
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkNotificationAsRead($notificationId: Int!) {
|
||||||
|
markNotificationAsRead(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkNotificationsAsRead($notificationIds: [Int!]!) {
|
||||||
|
markNotificationsAsRead(notificationIds: $notificationIds)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation MarkAllNotificationsAsRead {
|
||||||
|
markAllNotificationsAsRead
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation DeleteNotification($notificationId: Int!) {
|
||||||
|
deleteNotification(notificationId: $notificationId)
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment Notification on NotificationGQL {
|
||||||
|
id
|
||||||
|
notificationType
|
||||||
|
actor {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
videoId
|
||||||
|
challengeId
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
comment {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reactionType
|
||||||
|
isRead
|
||||||
|
createdAt
|
||||||
|
readAt
|
||||||
|
}
|
||||||
65
src/operations/payments.gql
Normal file
65
src/operations/payments.gql
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
mutation EnsureStripeCustomerExists {
|
||||||
|
ensureStripeCustomerExists {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
stripeCustomerId
|
||||||
|
profileImageUri
|
||||||
|
isAdmin
|
||||||
|
fargoRating
|
||||||
|
videosPrivateByDefault
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CreateSubscription($priceId: String!) {
|
||||||
|
createSubscription(priceId: $priceId) {
|
||||||
|
checkoutUrl
|
||||||
|
sessionId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetAvailableSubscriptionOptions {
|
||||||
|
getAvailableSubscriptionOptions {
|
||||||
|
products {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
active
|
||||||
|
prices {
|
||||||
|
id
|
||||||
|
currency
|
||||||
|
unitAmount
|
||||||
|
recurringInterval
|
||||||
|
recurringIntervalCount
|
||||||
|
type
|
||||||
|
active
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetSubscriptionStatus {
|
||||||
|
getUserSubscriptionStatus {
|
||||||
|
hasActiveSubscription
|
||||||
|
subscriptionStatus
|
||||||
|
currentPeriodStart
|
||||||
|
currentPeriodEnd
|
||||||
|
validUntil
|
||||||
|
stripePriceId
|
||||||
|
stripeSubscriptionId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CancelSubscription {
|
||||||
|
cancelSubscription {
|
||||||
|
hasActiveSubscription
|
||||||
|
subscriptionStatus
|
||||||
|
currentPeriodStart
|
||||||
|
currentPeriodEnd
|
||||||
|
validUntil
|
||||||
|
stripePriceId
|
||||||
|
stripeSubscriptionId
|
||||||
|
}
|
||||||
|
}
|
||||||
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
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,6 +40,7 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Should be deprecated
|
||||||
query GetShotsWithVideoGql(
|
query GetShotsWithVideoGql(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$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)
|
## Reserved for playlists (which are created from a filter)
|
||||||
query GetShotsWithMetadataFilterResult(
|
query GetShotsWithMetadataFilterResult(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
@@ -118,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
|
||||||
}
|
}
|
||||||
@@ -138,6 +167,7 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
targetPocketAngleDirection
|
targetPocketAngleDirection
|
||||||
marginOfErrorInDegrees
|
marginOfErrorInDegrees
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
ballId
|
||||||
@@ -155,4 +185,26 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
}
|
}
|
||||||
notes
|
notes
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
streamSegmentType
|
||||||
|
}
|
||||||
|
playlist {
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {
|
||||||
|
editShot(shotId: $shotId, fieldsToEdit: $fieldsToEdit) {
|
||||||
|
error {
|
||||||
|
shotId
|
||||||
|
msg
|
||||||
|
}
|
||||||
|
shot {
|
||||||
|
...ShotWithAllFeatures
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
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)
|
||||||
|
}
|
||||||
@@ -21,31 +21,24 @@ mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
|||||||
|
|
||||||
mutation editProfileImageUri($profileImageUri: String!) {
|
mutation editProfileImageUri($profileImageUri: String!) {
|
||||||
editProfileImageUri(profileImageUri: $profileImageUri) {
|
editProfileImageUri(profileImageUri: $profileImageUri) {
|
||||||
id
|
...UserFragment
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getLoggedInUser {
|
query getLoggedInUser {
|
||||||
getLoggedInUser {
|
getLoggedInUser {
|
||||||
id
|
...UserFragment
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
isAdmin
|
|
||||||
profileImageUri
|
|
||||||
fargoRating
|
|
||||||
activeVideoId
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetUserPlayTime($userId: Int!) {
|
query GetUser($userId: Int!) {
|
||||||
getPlayTime(userId: $userId) {
|
getUser(userId: $userId) {
|
||||||
|
...UserFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
||||||
|
getPlayTime(userId: $userId, filters: $filters) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,6 +66,7 @@ query getUserRelationshipsMatching(
|
|||||||
relationships {
|
relationships {
|
||||||
toUser {
|
toUser {
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
toUserFollows
|
toUserFollows
|
||||||
@@ -85,6 +79,10 @@ query GetUserTags {
|
|||||||
getUserTags {
|
getUserTags {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
tagClasses {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,10 +122,12 @@ query getUserFollowingFollowers {
|
|||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -135,3 +135,55 @@ query getUserFollowingFollowers {
|
|||||||
query doesUsernameExist($candidateUsername: String!) {
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
doesUsernameExist(candidateUsername: $candidateUsername)
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation editUser(
|
||||||
|
$username: String
|
||||||
|
$fargoRating: Int
|
||||||
|
$videosPrivateByDefault: Boolean
|
||||||
|
$agreesToMarketing: Boolean
|
||||||
|
) {
|
||||||
|
editUser(
|
||||||
|
input: {
|
||||||
|
username: $username
|
||||||
|
fargoRating: $fargoRating
|
||||||
|
videosPrivateByDefault: $videosPrivateByDefault
|
||||||
|
agreesToMarketing: $agreesToMarketing
|
||||||
|
}
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
fargoRating
|
||||||
|
updatedAt
|
||||||
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation deleteUser {
|
||||||
|
deleteUser
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment UserFragment on UserGQL {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
isAdmin
|
||||||
|
profileImageUri
|
||||||
|
fargoRating
|
||||||
|
activeVideoId
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUsersMatching(
|
||||||
|
$matchString: String = null
|
||||||
|
$limit: Int = null
|
||||||
|
$after: String = null
|
||||||
|
) {
|
||||||
|
getUsersMatching(matchString: $matchString, limit: $limit, after: $after) {
|
||||||
|
...UserFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,44 +5,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
currentHomography {
|
currentHomography {
|
||||||
crop {
|
...HomographyInfo
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -55,6 +18,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
initPlaylistUploadStatus
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
startSegmentIndex
|
startSegmentIndex
|
||||||
@@ -72,6 +36,8 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
name
|
name
|
||||||
@@ -101,6 +67,8 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
@@ -116,6 +84,56 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment UserSocialsFields on UserGQL {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
screenshotUri
|
||||||
|
makePercentage
|
||||||
|
totalShots
|
||||||
|
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
|
||||||
@@ -154,45 +172,7 @@ query GetVideo($videoId: Int!) {
|
|||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
homographyHistory {
|
homographyHistory {
|
||||||
frameIndex
|
...HomographyInfo
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
@@ -288,3 +268,69 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
|||||||
startTime
|
startTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
query GetBannerInfoByVideoId($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
lastIntendedSegmentBound
|
||||||
|
}
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
currentProcessing {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -101,13 +101,8 @@ query GetUploadStreams(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
query GetUploadStreamsWithDetails(
|
|
||||||
$limit: Int! = 5
|
fragment UploadStreamWithDetails on VideoGQL {
|
||||||
$after: String = null
|
|
||||||
$filters: VideoFilterInput = null
|
|
||||||
) {
|
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
||||||
videos {
|
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
startTime
|
startTime
|
||||||
@@ -117,6 +112,16 @@ query GetUploadStreamsWithDetails(
|
|||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUploadStreamsWithDetails(
|
||||||
|
$limit: Int! = 5
|
||||||
|
$after: String = null
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
) {
|
||||||
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
|
videos {
|
||||||
|
...UploadStreamWithDetails
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
|
|||||||
1746
src/schema.gql
1746
src/schema.gql
File diff suppressed because it is too large
Load Diff
87
yarn.lock
87
yarn.lock
@@ -10,10 +10,10 @@
|
|||||||
"@jridgewell/gen-mapping" "^0.3.0"
|
"@jridgewell/gen-mapping" "^0.3.0"
|
||||||
"@jridgewell/trace-mapping" "^0.3.9"
|
"@jridgewell/trace-mapping" "^0.3.9"
|
||||||
|
|
||||||
"@apollo/client@^3.9.2":
|
"@apollo/client@^3.11.10":
|
||||||
version "3.9.2"
|
version "3.12.3"
|
||||||
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.9.2.tgz#96edf2c212f828bad1ef3d84234fa473c5a27ff8"
|
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.12.3.tgz#0d252749baad8328e06883fe118dc7e73e3bbb1f"
|
||||||
integrity sha512-Zw9WvXjqhpbgkvAvnj52vstOWwM0iedKWtn1hSq1cODQyoe1CF2uFwMYFI7l56BrAY9CzLi6MQA0AhxpgJgvxw==
|
integrity sha512-KZ5zymRdb8bMbGUb1wP2U04ff7qIGgaC1BCdCVC+IPFiXkxEhHBc5fDEQOwAUT+vUo9KbBh3g7QK/JCOswn59w==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@graphql-typed-document-node/core" "^3.1.1"
|
"@graphql-typed-document-node/core" "^3.1.1"
|
||||||
"@wry/caches" "^1.0.0"
|
"@wry/caches" "^1.0.0"
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
hoist-non-react-statics "^3.3.2"
|
hoist-non-react-statics "^3.3.2"
|
||||||
optimism "^0.18.0"
|
optimism "^0.18.0"
|
||||||
prop-types "^15.7.2"
|
prop-types "^15.7.2"
|
||||||
rehackt "0.0.3"
|
rehackt "^0.1.0"
|
||||||
response-iterator "^0.2.6"
|
response-iterator "^0.2.6"
|
||||||
symbol-observable "^4.0.0"
|
symbol-observable "^4.0.0"
|
||||||
ts-invariant "^0.10.3"
|
ts-invariant "^0.10.3"
|
||||||
@@ -603,6 +603,18 @@
|
|||||||
lodash "~4.17.0"
|
lodash "~4.17.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/plugin-helpers@^6.0.0":
|
||||||
|
version "6.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-6.0.0.tgz#8a913c82a95b9ff36b2180f7c56611cc56268625"
|
||||||
|
integrity sha512-Z7P89vViJvQakRyMbq/JF2iPLruRFOwOB6IXsuSvV/BptuuEd7fsGPuEf8bdjjDxUY0pJZnFN8oC7jIQ8p9GKA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
|
change-case-all "1.0.15"
|
||||||
|
common-tags "1.8.2"
|
||||||
|
import-from "4.0.0"
|
||||||
|
lodash "~4.17.0"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/schema-ast@^4.0.0":
|
"@graphql-codegen/schema-ast@^4.0.0":
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.0.tgz#5d60996c87b64f81847da8fcb2d8ef50ede89755"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.0.tgz#5d60996c87b64f81847da8fcb2d8ef50ede89755"
|
||||||
@@ -612,16 +624,25 @@
|
|||||||
"@graphql-tools/utils" "^10.0.0"
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
"@graphql-codegen/typescript-operations@^4.0.1":
|
"@graphql-codegen/schema-ast@^5.0.0":
|
||||||
version "4.0.1"
|
version "5.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-4.0.1.tgz#930af3e2d2ae8ff06de696291be28fe7046a2fef"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-5.0.0.tgz#9708d7484a01bb3a502685126708d7b139fd0721"
|
||||||
integrity sha512-GpUWWdBVUec/Zqo23aFLBMrXYxN2irypHqDcKjN78JclDPdreasAEPcIpMfqf4MClvpmvDLy4ql+djVAwmkjbw==
|
integrity sha512-jn7Q3PKQc0FxXjbpo9trxzlz/GSFQWxL042l0iC8iSbM/Ar+M7uyBwMtXPsev/3Razk+osQyreghIz0d2+6F7Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@graphql-codegen/plugin-helpers" "^5.0.0"
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
"@graphql-codegen/typescript" "^4.0.1"
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
"@graphql-codegen/visitor-plugin-common" "4.0.1"
|
tslib "~2.6.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/typescript-operations@^5.0.4":
|
||||||
|
version "5.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-5.0.4.tgz#052680d41f4bab3bb85af8e906c43bde29239e7b"
|
||||||
|
integrity sha512-5Bu/BTmyNjdSfSLLBKjC0+4XWcY01uotVcnVIWIxxRdIHoRxnTW6PUkT5CoPHP5r/Uoo3OvIJxh+0LYSH5suwA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-codegen/typescript" "^5.0.4"
|
||||||
|
"@graphql-codegen/visitor-plugin-common" "6.1.2"
|
||||||
auto-bind "~4.0.0"
|
auto-bind "~4.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/typescript-react-apollo@^4.2.0":
|
"@graphql-codegen/typescript-react-apollo@^4.2.0":
|
||||||
version "4.2.0"
|
version "4.2.0"
|
||||||
@@ -645,6 +666,17 @@
|
|||||||
auto-bind "~4.0.0"
|
auto-bind "~4.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/typescript@^5.0.4":
|
||||||
|
version "5.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-5.0.4.tgz#a7f51505445568fd737b01ce7fad515c2b89897f"
|
||||||
|
integrity sha512-q6S8hX+aR4BzeGgolac4gp22rBnXbLhedmOwT1UBT9e3lGNmNpYC7WJUEzAPjWf6z1lRSNmojLlwEjTnffhKNA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-codegen/schema-ast" "^5.0.0"
|
||||||
|
"@graphql-codegen/visitor-plugin-common" "6.1.2"
|
||||||
|
auto-bind "~4.0.0"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/visitor-plugin-common@2.13.1":
|
"@graphql-codegen/visitor-plugin-common@2.13.1":
|
||||||
version "2.13.1"
|
version "2.13.1"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b"
|
||||||
@@ -677,6 +709,22 @@
|
|||||||
parse-filepath "^1.0.2"
|
parse-filepath "^1.0.2"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/visitor-plugin-common@6.1.2":
|
||||||
|
version "6.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-6.1.2.tgz#e614d6606402a152686d6f90e6363150a7a55bde"
|
||||||
|
integrity sha512-zYdrhJKgk8kqE1Xz5/m/Ua42zk+rIvYB/FHh3dE1AhZ6b1IDqgKjF3LnkT+K2qenf9EfT4yNjXd5CEKMeXfHyg==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-tools/optimize" "^2.0.0"
|
||||||
|
"@graphql-tools/relay-operation-optimizer" "^7.0.0"
|
||||||
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
|
auto-bind "~4.0.0"
|
||||||
|
change-case-all "1.0.15"
|
||||||
|
dependency-graph "^1.0.0"
|
||||||
|
graphql-tag "^2.11.0"
|
||||||
|
parse-filepath "^1.0.2"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-tools/apollo-engine-loader@^8.0.0":
|
"@graphql-tools/apollo-engine-loader@^8.0.0":
|
||||||
version "8.0.0"
|
version "8.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.0.tgz#ac1f351cbe41508411784f25757f5557b0f27489"
|
resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.0.tgz#ac1f351cbe41508411784f25757f5557b0f27489"
|
||||||
@@ -1649,6 +1697,11 @@ dependency-graph@^0.11.0:
|
|||||||
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
|
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
|
||||||
integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==
|
integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==
|
||||||
|
|
||||||
|
dependency-graph@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-1.0.0.tgz#bb5e85aec1310bc13b22dbd76e3196c4ee4c10d2"
|
||||||
|
integrity sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==
|
||||||
|
|
||||||
detect-indent@^6.0.0:
|
detect-indent@^6.0.0:
|
||||||
version "6.1.0"
|
version "6.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6"
|
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6"
|
||||||
@@ -2633,10 +2686,10 @@ regenerator-runtime@^0.14.0:
|
|||||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
|
||||||
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
|
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
|
||||||
|
|
||||||
rehackt@0.0.3:
|
rehackt@^0.1.0:
|
||||||
version "0.0.3"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/rehackt/-/rehackt-0.0.3.tgz#1ea454620d4641db8342e2db44595cf0e7ac6aa0"
|
resolved "https://registry.yarnpkg.com/rehackt/-/rehackt-0.1.0.tgz#a7c5e289c87345f70da8728a7eb878e5d03c696b"
|
||||||
integrity sha512-aBRHudKhOWwsTvCbSoinzq+Lej/7R8e8UoPvLZo5HirZIIBLGAgdG7SL9QpdcBoQ7+3QYPi3lRLknAzXBlhZ7g==
|
integrity sha512-7kRDOuLHB87D/JESKxQoRwv4DzbIdwkAGQ7p6QKGdVlY1IZheUnVhlk/4UZlNUVxdAXpyxikE3URsG067ybVzw==
|
||||||
|
|
||||||
relay-runtime@12.0.0:
|
relay-runtime@12.0.0:
|
||||||
version "12.0.0"
|
version "12.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user