Compare commits
No commits in common. "master" and "kat/named-fragment-mini-video" have entirely different histories.
master
...
kat/named-
@ -1,16 +1,9 @@
|
||||
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||
directive @client on FIELD
|
||||
|
||||
type SegmentInfo {
|
||||
index: Int!
|
||||
time: Float!
|
||||
}
|
||||
|
||||
extend type ShotGQL {
|
||||
startTime: Float!
|
||||
endTime: Float!
|
||||
startSegment: SegmentInfo!
|
||||
endSegment: SegmentInfo!
|
||||
}
|
||||
|
||||
extend type UploadStreamGQL {
|
||||
|
550
src/index.tsx
550
src/index.tsx
File diff suppressed because it is too large
Load Diff
@ -27,8 +27,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
totalShotsMade
|
||||
totalShots
|
||||
makePercentage
|
||||
averageTimeBetweenShots
|
||||
averageDifficulty
|
||||
createdAt
|
||||
updatedAt
|
||||
startTime
|
||||
@ -58,20 +56,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
reaction
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoFeed(
|
||||
|
@ -1,3 +0,0 @@
|
||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
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
|
||||
}
|
||||
}
|
@ -139,14 +139,6 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
endFrame
|
||||
startTime @client
|
||||
endTime @client
|
||||
startSegment @client {
|
||||
index
|
||||
time
|
||||
}
|
||||
endSegment @client {
|
||||
index
|
||||
time
|
||||
}
|
||||
user {
|
||||
id
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
||||
|
||||
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||
}
|
@ -79,10 +79,6 @@ query GetUserTags {
|
||||
getUserTags {
|
||||
id
|
||||
name
|
||||
tagClasses {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ type Query {
|
||||
after: String = null
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||
getUserTags: [TagGQL!]!
|
||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||
getFeedVideos(
|
||||
@ -195,7 +195,6 @@ input FilterInput @oneOf {
|
||||
isLeftMiss: [Boolean!]
|
||||
isRightMiss: [Boolean!]
|
||||
isDirect: [Boolean!]
|
||||
isBreakHeuristic: [Boolean!]
|
||||
tableSize: FloatRangeFilter
|
||||
bankAngle: FloatRangeFilter
|
||||
bankDistance: FloatRangeFilter
|
||||
@ -463,7 +462,6 @@ type VideoGQL {
|
||||
makePercentage: Float!
|
||||
medianRun: Float
|
||||
averageTimeBetweenShots: Float
|
||||
averageDifficulty: Float
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
shots: [ShotGQL!]!
|
||||
@ -479,7 +477,6 @@ type VideoGQL {
|
||||
currentHomography: HomographyInfoGQL
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@ -613,21 +610,6 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type ReactionGQL {
|
||||
videoId: Int!
|
||||
user: UserGQL!
|
||||
reaction: ReactionEnum!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
BULLSEYE
|
||||
HUNDRED
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
@ -732,15 +714,9 @@ type PageInfoGQL {
|
||||
}
|
||||
|
||||
type TagGQL {
|
||||
id: Int!
|
||||
name: String!
|
||||
tagClasses: [TagClassGQL!]
|
||||
retired: Boolean!
|
||||
}
|
||||
|
||||
type TagClassGQL {
|
||||
id: Int!
|
||||
name: String!
|
||||
group: String
|
||||
}
|
||||
|
||||
"""
|
||||
@ -802,7 +778,6 @@ type Mutation {
|
||||
editUser(input: EditUserInputGQL!): UserGQL!
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@ -816,8 +791,6 @@ type Mutation {
|
||||
): Boolean!
|
||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
@ -922,12 +895,6 @@ input VideoMetadataInput {
|
||||
startTime: DateTime = null
|
||||
endTime: DateTime = null
|
||||
gameType: String = null
|
||||
@deprecated(reason: "`game_type` is deprecated. Use `tags` instead.")
|
||||
|
||||
"""
|
||||
A list of tags associated with the video. Replace `game_type`
|
||||
"""
|
||||
tags: [VideoTagInput!] = null
|
||||
tableSize: Float = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user