Compare commits
22 Commits
dean/add-h
...
loewy/add-
| Author | SHA1 | Date | |
|---|---|---|---|
| beeba9207c | |||
| f14e117416 | |||
| 3d86c13291 | |||
| e63f8600aa | |||
| 7e822446da | |||
| 75ecc5894b | |||
| 73c8dd5f57 | |||
|
|
ce8d2aaec8 | ||
| 0f89f97006 | |||
|
|
e4223a1a17 | ||
|
|
83b7f0d0f6 | ||
|
|
a882f98d91 | ||
| cdf438c089 | |||
| 7dbfadf13a | |||
| a74a11e789 | |||
| 3b2f88c0e0 | |||
| a3ac769cd4 | |||
| 00fc2ab44b | |||
| 58ab272289 | |||
| 242afae92b | |||
| 6bf597a2ec | |||
| 5c62d45068 |
753
src/index.tsx
753
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@ query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
||||
targetMetrics {
|
||||
count
|
||||
makePercentage
|
||||
averageDifficulty
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,11 +19,7 @@ fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
|
||||
fragment VideoCardFields on VideoGQL {
|
||||
@@ -116,5 +112,6 @@ query GetVideoFeed(
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
hasFollowing
|
||||
}
|
||||
}
|
||||
|
||||
58
src/operations/notifications.gql
Normal file
58
src/operations/notifications.gql
Normal file
@@ -0,0 +1,58 @@
|
||||
query GetNotifications(
|
||||
$limit: Int! = 20
|
||||
$offset: Int! = 0
|
||||
$filters: NotificationFilters = null
|
||||
) {
|
||||
notifications(limit: $limit, offset: $offset, filters: $filters) {
|
||||
notifications {
|
||||
...Notification
|
||||
}
|
||||
totalCount
|
||||
unreadCount
|
||||
hasMore
|
||||
}
|
||||
}
|
||||
|
||||
query GetUnreadNotificationCount {
|
||||
unreadNotificationCount
|
||||
}
|
||||
|
||||
mutation MarkNotificationAsRead($notificationId: Int!) {
|
||||
markNotificationAsRead(notificationId: $notificationId)
|
||||
}
|
||||
|
||||
mutation MarkNotificationsAsRead($notificationIds: [Int!]!) {
|
||||
markNotificationsAsRead(notificationIds: $notificationIds)
|
||||
}
|
||||
|
||||
mutation MarkAllNotificationsAsRead {
|
||||
markAllNotificationsAsRead
|
||||
}
|
||||
|
||||
mutation DeleteNotification($notificationId: Int!) {
|
||||
deleteNotification(notificationId: $notificationId)
|
||||
}
|
||||
|
||||
fragment Notification on NotificationGQL {
|
||||
id
|
||||
notificationType
|
||||
actor {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
videoId
|
||||
comment {
|
||||
id
|
||||
message
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
reactionType
|
||||
isRead
|
||||
createdAt
|
||||
readAt
|
||||
}
|
||||
@@ -191,6 +191,10 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
id
|
||||
streamSegmentType
|
||||
}
|
||||
playlist {
|
||||
videoId
|
||||
segmentDurations
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -88,31 +88,15 @@ query GetUserTags {
|
||||
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
username
|
||||
}
|
||||
}
|
||||
|
||||
mutation unfollowUser($followedUserId: Int!) {
|
||||
unfollowUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
username
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,11 +107,13 @@ query getUserFollowingFollowers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
||||
makePercentage
|
||||
elapsedTime
|
||||
tableSize
|
||||
pocketSize
|
||||
private
|
||||
tags {
|
||||
tagClasses {
|
||||
@@ -66,6 +67,7 @@ query GetVideoDetails($videoId: Int!) {
|
||||
createdAt
|
||||
updatedAt
|
||||
tableSize
|
||||
pocketSize
|
||||
private
|
||||
owner {
|
||||
id
|
||||
@@ -86,17 +88,16 @@ fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
isFollowedByCurrentUser
|
||||
}
|
||||
|
||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
name
|
||||
screenshotUri
|
||||
makePercentage
|
||||
totalShots
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
|
||||
@@ -28,6 +28,12 @@ type Query {
|
||||
when: DateTime = null
|
||||
): CountLeaderboardGQL!
|
||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||
notifications(
|
||||
limit: Int! = 20
|
||||
offset: Int! = 0
|
||||
filters: NotificationFilters = null
|
||||
): NotificationConnection!
|
||||
unreadNotificationCount: Int!
|
||||
getRuns(
|
||||
filterInput: RunFilterInput!
|
||||
runIds: [Int!] = null
|
||||
@@ -342,6 +348,7 @@ type VideoGQL {
|
||||
elapsedTime: Float
|
||||
framesPerSecond: Float!
|
||||
tableSize: Float!
|
||||
pocketSize: Float
|
||||
private: Boolean!
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
@@ -368,6 +375,7 @@ type UserGQL {
|
||||
agreesToMarketing: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
isFollowedByCurrentUser: Boolean
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
@@ -647,6 +655,7 @@ input VideoFeedInputGQL @oneOf {
|
||||
followedByUserId: Int
|
||||
userId: Int
|
||||
allUsers: Boolean
|
||||
home: Boolean
|
||||
}
|
||||
|
||||
type MakePercentageIntervalGQL {
|
||||
@@ -715,6 +724,37 @@ input MedalScope @oneOf {
|
||||
datetimeRange: DatetimeRangeAggregationInput
|
||||
}
|
||||
|
||||
type NotificationConnection {
|
||||
notifications: [NotificationGQL!]!
|
||||
totalCount: Int!
|
||||
unreadCount: Int!
|
||||
hasMore: Boolean!
|
||||
}
|
||||
|
||||
type NotificationGQL {
|
||||
id: Int!
|
||||
notificationType: NotificationTypeEnum!
|
||||
actor: UserGQL!
|
||||
videoId: Int
|
||||
comment: CommentGQL
|
||||
reactionType: String
|
||||
isRead: Boolean!
|
||||
createdAt: DateTime!
|
||||
readAt: DateTime
|
||||
}
|
||||
|
||||
enum NotificationTypeEnum {
|
||||
COMMENT
|
||||
COMMENT_REPLY
|
||||
REACTION
|
||||
FOLLOW
|
||||
}
|
||||
|
||||
input NotificationFilters {
|
||||
isRead: Boolean = null
|
||||
notificationTypes: [NotificationTypeEnum!] = null
|
||||
}
|
||||
|
||||
type GetRunsResult {
|
||||
runs: [RunGQL!]!
|
||||
count: Int
|
||||
@@ -916,6 +956,10 @@ type Mutation {
|
||||
reason: ReportReasonEnum!
|
||||
customReason: String = null
|
||||
): Boolean!
|
||||
markNotificationAsRead(notificationId: Int!): Boolean!
|
||||
markAllNotificationsAsRead: Boolean!
|
||||
markNotificationsAsRead(notificationIds: [Int!]!): Boolean!
|
||||
deleteNotification(notificationId: Int!): Boolean!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
@@ -1081,6 +1125,7 @@ input VideoMetadataInput {
|
||||
"""
|
||||
tags: [VideoTagInput!] = null
|
||||
tableSize: Float = null
|
||||
pocketSize: Float = null
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
private: Boolean = null
|
||||
|
||||
Reference in New Issue
Block a user