Compare commits

..

1 Commits

Author SHA1 Message Date
15c0849e4c Add support for video reaction
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2025-03-21 11:15:29 -07:00
7 changed files with 1 additions and 688 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,6 @@ fragment VideoCardFields on VideoGQL {
id id
lastIntendedSegmentBound lastIntendedSegmentBound
isCompleted isCompleted
streamSegmentType
} }
tableSize tableSize
tags { tags {
@@ -59,20 +58,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

@@ -2,45 +2,6 @@ query GetRunsForHighlights(
$filterInput: RunFilterInput! $filterInput: RunFilterInput!
$runIds: [Int!] = null $runIds: [Int!] = null
$runsOrdering: GetRunsOrdering $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( getRuns(
filterInput: $filterInput filterInput: $filterInput
@@ -56,10 +17,6 @@ query GetRunsWithTimestamps(
shots { shots {
videoId videoId
id id
createdAt
pocketingIntentionFeatures {
...PocketingIntentionFragment
}
} }
} }
runIds runIds

View File

@@ -185,13 +185,6 @@ fragment ShotWithAllFeatures on ShotGQL {
} }
notes notes
} }
video {
id
stream {
id
streamSegmentType
}
}
} }
mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) { mutation EditShot($shotId: Int!, $fieldsToEdit: EditableShotFieldInputGQL!) {

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

@@ -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
@@ -480,7 +479,6 @@ type VideoGQL {
homographyHistory: [HomographyInfoGQL!]! homographyHistory: [HomographyInfoGQL!]!
currentProcessing: VideoProcessingGQL currentProcessing: VideoProcessingGQL
reactions: [ReactionGQL!]! reactions: [ReactionGQL!]!
comments: [CommentGQL!]!
} }
type UploadStreamGQL { type UploadStreamGQL {
@@ -629,13 +627,6 @@ enum ReactionEnum {
HUNDRED HUNDRED
} }
type CommentGQL {
id: Int!
user: UserGQL!
message: String!
replies: [CommentGQL!]!
}
type RunFeaturesGQL { type RunFeaturesGQL {
runId: Int! runId: Int!
indexInRun: Int! indexInRun: Int!
@@ -743,7 +734,6 @@ type TagGQL {
id: Int! id: Int!
name: String! name: String!
tagClasses: [TagClassGQL!] tagClasses: [TagClassGQL!]
retired: Boolean!
} }
type TagClassGQL { type TagClassGQL {
@@ -810,7 +800,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!
@@ -824,15 +813,7 @@ 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! reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
commentOnVideo(
videoId: Int!
message: String!
parentCommentId: Int
): Boolean!
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
deleteComment(videoId: Int!, commentId: Int!): Boolean!
} }
input CreateBucketSetInput { input CreateBucketSetInput {