Compare commits
	
		
			61 Commits
		
	
	
		
			9db95c4e6c
			...
			volodymyr/
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 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 | |||
| 014aab473b | |||
| 353872401e | |||
| 433dfdaf74 | |||
| a2d9e688e9 | |||
| b3259dac1f | |||
| 0982b9e60c | |||
| 1710ae451c | |||
| de9e7dea6a | |||
| cfcf1dbcd2 | |||
| 05e3182e8b | |||
| baf139aab5 | |||
| b3b454ef83 | |||
| f6e4a1bc0b | |||
| 9d8155527d | |||
| 8690e81029 | |||
| 4ef13a482a | 
							
								
								
									
										924
									
								
								src/index.tsx
									
									
									
									
									
								
							
							
						
						
									
										924
									
								
								src/index.tsx
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,3 +1,4 @@ | ||||
| # DO NOT USE: use getVideoFeed instead | ||||
| query GetFeed( | ||||
|   $limit: Int! = 5 | ||||
|   $after: String = null | ||||
| @@ -5,32 +6,71 @@ query GetFeed( | ||||
| ) { | ||||
|   getUserVideos(limit: $limit, after: $after, filters: $filters) { | ||||
|     videos { | ||||
|       id | ||||
|       owner { | ||||
|         username | ||||
|       } | ||||
|       name | ||||
|       screenshotUri | ||||
|       totalShotsMade | ||||
|       totalShots | ||||
|       makePercentage | ||||
|       createdAt | ||||
|       updatedAt | ||||
|       startTime | ||||
|       endTime | ||||
|       elapsedTime | ||||
|       screenshotUri | ||||
|       stream { | ||||
|         id | ||||
|         isCompleted | ||||
|       } | ||||
|       tableSize | ||||
|       tags { | ||||
|         tagClasses { | ||||
|           name | ||||
|         } | ||||
|         name | ||||
|       } | ||||
|       ...VideoCardFields | ||||
|     } | ||||
|     pageInfo { | ||||
|       hasNextPage | ||||
|       endCursor | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
| fragment VideoCardFields on VideoGQL { | ||||
|   id | ||||
|   owner { | ||||
|     id | ||||
|     username | ||||
|     profileImageUri | ||||
|   } | ||||
|   name | ||||
|   screenshotUri | ||||
|   totalShotsMade | ||||
|   totalShots | ||||
|   makePercentage | ||||
|   createdAt | ||||
|   updatedAt | ||||
|   startTime | ||||
|   endTime | ||||
|   private | ||||
|   elapsedTime | ||||
|   screenshotUri | ||||
|   stream { | ||||
|     id | ||||
|     isCompleted | ||||
|   } | ||||
|   tableSize | ||||
|   tags { | ||||
|     tagClasses { | ||||
|       name | ||||
|     } | ||||
|     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 | ||||
|   | ||||
| @@ -40,6 +40,7 @@ mutation UpdateShotAnnotations( | ||||
|   } | ||||
| } | ||||
|  | ||||
| ## Should be deprecated | ||||
| query GetShotsWithVideoGql( | ||||
|   $filterInput: FilterInput! | ||||
|   $shotsOrdering: GetShotsOrdering | ||||
| @@ -61,18 +62,40 @@ 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! | ||||
|   $shotsOrdering: GetShotsOrdering | ||||
|   $limit: Int | ||||
|   $ids: [Int!] | ||||
|   $countRespectsLimit: Boolean | ||||
| ) { | ||||
|   getOrderedShots( | ||||
|     filterInput: $filterInput | ||||
|     shotsOrdering: $shotsOrdering | ||||
|     limit: $limit | ||||
|     ids: $ids | ||||
|     countRespectsLimit: $countRespectsLimit | ||||
|   ) { | ||||
|     count | ||||
|     shots { | ||||
|   | ||||
| @@ -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 | ||||
|   } | ||||
| } | ||||
| @@ -91,11 +92,14 @@ query GetUserTags { | ||||
| mutation followUser($followedUserId: Int!) { | ||||
|   followUser(followedUserId: $followedUserId) { | ||||
|     username | ||||
|     id | ||||
|     following { | ||||
|       id | ||||
|       username | ||||
|     } | ||||
|     followers { | ||||
|       id | ||||
|       username | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @@ -103,11 +107,14 @@ mutation followUser($followedUserId: Int!) { | ||||
| mutation unfollowUser($followedUserId: Int!) { | ||||
|   unfollowUser(followedUserId: $followedUserId) { | ||||
|     username | ||||
|     id | ||||
|     following { | ||||
|       id | ||||
|       username | ||||
|     } | ||||
|     followers { | ||||
|       id | ||||
|       username | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @@ -125,3 +132,28 @@ 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 | ||||
| @@ -154,45 +117,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 +213,51 @@ query GetHeaderInfoByVideoId($videoId: Int!) { | ||||
|     startTime | ||||
|   } | ||||
| } | ||||
|  | ||||
| mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) { | ||||
|   findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) { | ||||
|     ...HomographyInfo | ||||
|   } | ||||
| } | ||||
|  | ||||
| fragment HomographyInfo on HomographyInfoGQL { | ||||
|   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 | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -9,26 +9,31 @@ type Query { | ||||
|     videoId: ID! | ||||
|     intervalDuration: Int! = 300 | ||||
|   ): [MakePercentageIntervalGQL!]! | ||||
|   getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL! | ||||
|   getOrderedShots( | ||||
|     filterInput: FilterInput! | ||||
|     ids: [Int!] = null | ||||
|     shotsOrdering: GetShotsOrdering = null | ||||
|     limit: Int! = 500 | ||||
|     countRespectsLimit: Boolean! = false | ||||
|   ): GetShotsResult! | ||||
|   getShotsWithMetadata( | ||||
|     filterInput: FilterInput! | ||||
|     ids: [Int!] = null | ||||
|     shotsPagination: GetShotsPagination = null | ||||
|     limit: Int! = 500 | ||||
|     countRespectsLimit: Boolean! = false | ||||
|   ): GetShotsResult! | ||||
|   getShots( | ||||
|     filterInput: FilterInput! | ||||
|     shotsPagination: GetShotsPagination = null | ||||
|     limit: Int! = 500 | ||||
|     countRespectsLimit: Boolean! = false | ||||
|   ): [ShotGQL!]! | ||||
|   getShotsByIds(ids: [Int!]!): [ShotGQL!]! | ||||
|   getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]! | ||||
|   getUser(userId: Int!): UserGQL | ||||
|   doesUsernameExist(candidateUsername: String!): Boolean! | ||||
|   getLoggedInUser: UserGQL | ||||
|   getUsernames( | ||||
|     matchString: String = null | ||||
| @@ -41,7 +46,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 | ||||
| @@ -54,6 +59,7 @@ type Query { | ||||
|   getFeedVideos( | ||||
|     limit: Int! = 5 | ||||
|     after: String = null | ||||
|     includeCallersVideos: Boolean = true | ||||
|     filters: VideoFilterInput = null | ||||
|   ): VideoHistoryGQL! | ||||
| } | ||||
| @@ -266,6 +272,52 @@ type MakePercentageIntervalGQL { | ||||
|   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 { | ||||
|   shots: [ShotGQL!]! | ||||
|   count: Int | ||||
| @@ -349,6 +401,7 @@ type UserGQL { | ||||
|   profileImageUri: String | ||||
|   createdAt: DateTime | ||||
|   updatedAt: DateTime | ||||
|   videosPrivateByDefault: Boolean | ||||
|   following: [UserGQL!] | ||||
|   followers: [UserGQL!] | ||||
| } | ||||
| @@ -386,6 +439,7 @@ type VideoGQL { | ||||
|   elapsedTime: Float | ||||
|   framesPerSecond: Float! | ||||
|   tableSize: Float! | ||||
|   private: Boolean! | ||||
|   stream: UploadStreamGQL | ||||
|   playlist: HLSPlaylistGQL | ||||
|   tags: [VideoTag!]! | ||||
| @@ -458,6 +512,7 @@ type VideoTagClass { | ||||
| } | ||||
|  | ||||
| type HomographyInfoGQL { | ||||
|   id: Int! | ||||
|   frameIndex: Int! | ||||
|   crop: BoundingBoxGQL! | ||||
|   pockets: [BoundingBoxGQL!]! | ||||
| @@ -487,6 +542,7 @@ type IntPoint2D { | ||||
| } | ||||
|  | ||||
| type VideoProcessingGQL { | ||||
|   id: Int! | ||||
|   errors: [VideoProcessingErrorGQL!]! | ||||
|   status: ProcessingStatusEnum! | ||||
|   statuses: [VideoProcessingStatusGQL!]! | ||||
| @@ -569,6 +625,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! | ||||
| @@ -579,11 +642,6 @@ type PageInfoGQL { | ||||
|   endCursor: String | ||||
| } | ||||
|  | ||||
| input VideoFilterInput { | ||||
|   isStreamCompleted: Boolean = null | ||||
|   requireCursorCompletion: Boolean! = true | ||||
| } | ||||
|  | ||||
| type TagGQL { | ||||
|   name: String! | ||||
|   id: Int! | ||||
| @@ -617,6 +675,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! | ||||
| @@ -705,6 +764,7 @@ type TooManyProfileImageUploadsErr { | ||||
| input EditUserInputGQL { | ||||
|   username: String = null | ||||
|   fargoRating: Int = null | ||||
|   videosPrivateByDefault: Boolean = null | ||||
| } | ||||
|  | ||||
| type CreateUploadStreamReturn { | ||||
| @@ -719,6 +779,7 @@ input VideoMetadataInput { | ||||
|   tableSize: Float = null | ||||
|   lastIntendedSegmentBound: Int = null | ||||
|   streamSegmentType: StreamSegmentTypeEnum = null | ||||
|   private: Boolean = null | ||||
|   endStream: Boolean! = false | ||||
|   resolution: VideoResolution = null | ||||
|   framesPerSecond: Float = null | ||||
|   | ||||
		Reference in New Issue
	
	Block a user