Compare commits
34 Commits
volodymyr/
...
loewy/incl
Author | SHA1 | Date | |
---|---|---|---|
b34bce6e5f | |||
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 |
7835
src/index.tsx
7835
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(
|
query GetFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
@@ -38,3 +39,60 @@ 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 {
|
||||||
|
id
|
||||||
|
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,6 +40,7 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Should be deprecated
|
||||||
query GetShotsWithVideoGql(
|
query GetShotsWithVideoGql(
|
||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsOrdering: GetShotsOrdering
|
$shotsOrdering: GetShotsOrdering
|
||||||
@@ -61,18 +62,37 @@ 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 {
|
||||||
|
@@ -134,4 +134,4 @@ query getUserFollowingFollowers {
|
|||||||
|
|
||||||
query doesUsernameExist($candidateUsername: String!) {
|
query doesUsernameExist($candidateUsername: String!) {
|
||||||
doesUsernameExist(candidateUsername: $candidateUsername)
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
@@ -154,45 +117,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 +213,52 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
|||||||
startTime
|
startTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||||
|
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||||
|
...HomographyInfo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fragment HomographyInfo on HomographyInfoGQL {
|
||||||
|
id
|
||||||
|
frameIndex
|
||||||
|
crop {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
pockets {
|
||||||
|
left
|
||||||
|
top
|
||||||
|
width
|
||||||
|
height
|
||||||
|
}
|
||||||
|
sourcePoints {
|
||||||
|
topLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
topRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomLeft {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomSide {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
bottomRight {
|
||||||
|
x
|
||||||
|
y
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -15,17 +15,20 @@ type Query {
|
|||||||
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!]!
|
||||||
@@ -397,6 +400,7 @@ type UserGQL {
|
|||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
|
videosPrivateByDefault: Boolean
|
||||||
following: [UserGQL!]
|
following: [UserGQL!]
|
||||||
followers: [UserGQL!]
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
@@ -434,6 +438,7 @@ type VideoGQL {
|
|||||||
elapsedTime: Float
|
elapsedTime: Float
|
||||||
framesPerSecond: Float!
|
framesPerSecond: Float!
|
||||||
tableSize: Float!
|
tableSize: Float!
|
||||||
|
private: Boolean!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
playlist: HLSPlaylistGQL
|
playlist: HLSPlaylistGQL
|
||||||
tags: [VideoTag!]!
|
tags: [VideoTag!]!
|
||||||
@@ -506,6 +511,7 @@ type VideoTagClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HomographyInfoGQL {
|
type HomographyInfoGQL {
|
||||||
|
id: Int!
|
||||||
frameIndex: Int!
|
frameIndex: Int!
|
||||||
crop: BoundingBoxGQL!
|
crop: BoundingBoxGQL!
|
||||||
pockets: [BoundingBoxGQL!]!
|
pockets: [BoundingBoxGQL!]!
|
||||||
@@ -535,6 +541,7 @@ type IntPoint2D {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingGQL {
|
type VideoProcessingGQL {
|
||||||
|
id: Int!
|
||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
@@ -665,6 +672,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!
|
||||||
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
@@ -753,6 +761,7 @@ type TooManyProfileImageUploadsErr {
|
|||||||
input EditUserInputGQL {
|
input EditUserInputGQL {
|
||||||
username: String = null
|
username: String = null
|
||||||
fargoRating: Int = null
|
fargoRating: Int = null
|
||||||
|
videosPrivateByDefault: Boolean = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
@@ -767,6 +776,7 @@ input VideoMetadataInput {
|
|||||||
tableSize: Float = null
|
tableSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
|
private: Boolean = null
|
||||||
endStream: Boolean! = false
|
endStream: Boolean! = false
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
|
Reference in New Issue
Block a user