Compare commits

..

No commits in common. "master" and "kat/named-fragment-mini-video" have entirely different histories.

9 changed files with 4 additions and 656 deletions

View File

@ -1,16 +1,9 @@
# 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 {

File diff suppressed because it is too large Load Diff

View File

@ -27,8 +27,6 @@ fragment VideoCardFields on VideoGQL {
totalShotsMade totalShotsMade
totalShots totalShots
makePercentage makePercentage
averageTimeBetweenShots
averageDifficulty
createdAt createdAt
updatedAt updatedAt
startTime startTime
@ -58,20 +56,6 @@ fragment VideoCardFields on VideoGQL {
status status
} }
} }
reactions {
videoId
user {
id
username
profileImageUri
followers {
id
username
profileImageUri
}
}
reaction
}
} }
query GetVideoFeed( query GetVideoFeed(

View File

@ -1,3 +0,0 @@
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
reactToVideo(videoId: $videoId, reaction: $reaction)
}

View File

@ -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
}
}

View File

@ -139,14 +139,6 @@ 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
} }

View File

@ -1,7 +0,0 @@
mutation RetireTags($tagIds: [Int!]!) {
retireTags(tagIds: $tagIds)
}
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
}

View File

@ -79,10 +79,6 @@ query GetUserTags {
getUserTags { getUserTags {
id id
name name
tagClasses {
id
name
}
} }
} }

View File

@ -60,7 +60,7 @@ type Query {
after: String = null after: String = null
filters: VideoFilterInput = null filters: VideoFilterInput = null
): VideoHistoryGQL! ): VideoHistoryGQL!
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]! getUserTags: [TagGQL!]!
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
getVideos(videoIds: [Int!]!): [VideoGQL!]! getVideos(videoIds: [Int!]!): [VideoGQL!]!
getFeedVideos( getFeedVideos(
@ -195,7 +195,6 @@ input FilterInput @oneOf {
isLeftMiss: [Boolean!] isLeftMiss: [Boolean!]
isRightMiss: [Boolean!] isRightMiss: [Boolean!]
isDirect: [Boolean!] isDirect: [Boolean!]
isBreakHeuristic: [Boolean!]
tableSize: FloatRangeFilter tableSize: FloatRangeFilter
bankAngle: FloatRangeFilter bankAngle: FloatRangeFilter
bankDistance: FloatRangeFilter bankDistance: FloatRangeFilter
@ -463,7 +462,6 @@ type VideoGQL {
makePercentage: Float! makePercentage: Float!
medianRun: Float medianRun: Float
averageTimeBetweenShots: Float averageTimeBetweenShots: Float
averageDifficulty: Float
createdAt: DateTime createdAt: DateTime
updatedAt: DateTime updatedAt: DateTime
shots: [ShotGQL!]! shots: [ShotGQL!]!
@ -479,7 +477,6 @@ type VideoGQL {
currentHomography: HomographyInfoGQL currentHomography: HomographyInfoGQL
homographyHistory: [HomographyInfoGQL!]! homographyHistory: [HomographyInfoGQL!]!
currentProcessing: VideoProcessingGQL currentProcessing: VideoProcessingGQL
reactions: [ReactionGQL!]!
} }
type UploadStreamGQL { type UploadStreamGQL {
@ -613,21 +610,6 @@ type VideoProcessingStatusGQL {
updatedAt: DateTime updatedAt: DateTime
} }
type ReactionGQL {
videoId: Int!
user: UserGQL!
reaction: ReactionEnum!
createdAt: DateTime
updatedAt: DateTime
}
enum ReactionEnum {
LIKE
HEART
BULLSEYE
HUNDRED
}
type RunFeaturesGQL { type RunFeaturesGQL {
runId: Int! runId: Int!
indexInRun: Int! indexInRun: Int!
@ -732,15 +714,9 @@ type PageInfoGQL {
} }
type TagGQL { type TagGQL {
id: Int!
name: String! name: String!
tagClasses: [TagClassGQL!]
retired: Boolean!
}
type TagClassGQL {
id: Int! id: Int!
name: String! group: String
} }
""" """
@ -802,7 +778,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!
retireTags(tagIds: [Int!]!): Boolean!
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
createUploadStream( createUploadStream(
videoMetadata: VideoMetadataInput! videoMetadata: VideoMetadataInput!
@ -816,8 +791,6 @@ type Mutation {
): Boolean! ): Boolean!
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean! editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
deleteVideo(videoId: Int!): Boolean! deleteVideo(videoId: Int!): Boolean!
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
} }
input CreateBucketSetInput { input CreateBucketSetInput {
@ -922,12 +895,6 @@ input VideoMetadataInput {
startTime: DateTime = null startTime: DateTime = null
endTime: DateTime = null endTime: DateTime = null
gameType: String = 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 tableSize: Float = null
lastIntendedSegmentBound: Int = null lastIntendedSegmentBound: Int = null
streamSegmentType: StreamSegmentTypeEnum = null streamSegmentType: StreamSegmentTypeEnum = null