Compare commits
31 Commits
dean/add-h
...
dean/feed-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21ae448d27 | ||
|
|
9f735b61bb | ||
|
|
fda8e4eb9d | ||
|
|
338c45d59b | ||
|
|
e879c5008f | ||
|
|
2d67e076f7 | ||
|
|
ec534769f3 | ||
|
|
f8e8c7b7d4 | ||
|
|
372fd6e26b | ||
|
|
d9ef5ed79a | ||
| f14e117416 | |||
| 3d86c13291 | |||
| e63f8600aa | |||
| 7e822446da | |||
| 75ecc5894b | |||
| 73c8dd5f57 | |||
|
|
ce8d2aaec8 | ||
| 0f89f97006 | |||
|
|
e4223a1a17 | ||
|
|
83b7f0d0f6 | ||
|
|
a882f98d91 | ||
| cdf438c089 | |||
| 7dbfadf13a | |||
| a74a11e789 | |||
| 3b2f88c0e0 | |||
| a3ac769cd4 | |||
| 00fc2ab44b | |||
| 58ab272289 | |||
| 242afae92b | |||
| 6bf597a2ec | |||
| 5c62d45068 |
5423
package-lock.json
generated
Normal file
5423
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
|||||||
"@apollo/client": "^3.11.10",
|
"@apollo/client": "^3.11.10",
|
||||||
"@graphql-codegen/cli": "^5.0.0",
|
"@graphql-codegen/cli": "^5.0.0",
|
||||||
"@graphql-codegen/typescript": "^4.0.1",
|
"@graphql-codegen/typescript": "^4.0.1",
|
||||||
"@graphql-codegen/typescript-operations": "^4.0.1",
|
"@graphql-codegen/typescript-operations": "^5.0.4",
|
||||||
"@graphql-codegen/typescript-react-apollo": "^4.2.0",
|
"@graphql-codegen/typescript-react-apollo": "^4.2.0",
|
||||||
"graphql": "^16.8.1",
|
"graphql": "^16.8.1",
|
||||||
"pbjs": "^0.0.14",
|
"pbjs": "^0.0.14",
|
||||||
|
|||||||
2601
src/index.tsx
2601
src/index.tsx
File diff suppressed because it is too large
Load Diff
282
src/operations/challenges.gql
Normal file
282
src/operations/challenges.gql
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
query GetChallenges {
|
||||||
|
challenges {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyDismissedChallenges {
|
||||||
|
myDismissedChallenges {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetChallenge($id: ID!) {
|
||||||
|
challenge(id: $id) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
minimumShots
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
participantCount
|
||||||
|
ruleSet {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
invitations {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
invitee {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetRuleSets {
|
||||||
|
ruleSets {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetChallengeLeaderboard($challengeId: ID!, $limit: Int) {
|
||||||
|
challengeLeaderboard(challengeId: $challengeId, limit: $limit) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
makeRate
|
||||||
|
qualified
|
||||||
|
createdAt
|
||||||
|
attemptCount
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyChallengeInvitations {
|
||||||
|
myChallengeInvitations {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
startDate
|
||||||
|
endDate
|
||||||
|
createdBy {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetMyChallengeEntries {
|
||||||
|
myChallengeEntries {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
makeRate
|
||||||
|
qualified
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CreateRuleSet($name: String!, $description: String) {
|
||||||
|
createRuleSet(name: $name, description: $description) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation CreateChallenge(
|
||||||
|
$name: String!
|
||||||
|
$ruleSetId: ID!
|
||||||
|
$minimumShots: Int!
|
||||||
|
$startDate: DateTime!
|
||||||
|
$endDate: DateTime!
|
||||||
|
$description: String
|
||||||
|
$requiredTableSize: Float
|
||||||
|
$requiredPocketSize: Float
|
||||||
|
$isPublic: Boolean! = false
|
||||||
|
$maxAttempts: Int
|
||||||
|
) {
|
||||||
|
createChallenge(
|
||||||
|
name: $name
|
||||||
|
ruleSetId: $ruleSetId
|
||||||
|
minimumShots: $minimumShots
|
||||||
|
startDate: $startDate
|
||||||
|
endDate: $endDate
|
||||||
|
description: $description
|
||||||
|
requiredTableSize: $requiredTableSize
|
||||||
|
requiredPocketSize: $requiredPocketSize
|
||||||
|
isPublic: $isPublic
|
||||||
|
maxAttempts: $maxAttempts
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
description
|
||||||
|
requiredTableSize
|
||||||
|
requiredPocketSize
|
||||||
|
isPublic
|
||||||
|
maxAttempts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation InviteUsersToChallenge($challengeId: ID!, $userIds: [ID!]!) {
|
||||||
|
inviteUsersToChallenge(challengeId: $challengeId, userIds: $userIds) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
inviter {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RespondToChallengeInvitation($invitationId: ID!, $accept: Boolean!) {
|
||||||
|
respondToChallengeInvitation(invitationId: $invitationId, accept: $accept) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation StartChallenge($challengeId: ID!) {
|
||||||
|
startChallenge(challengeId: $challengeId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
createdAt
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation SubmitChallengeEntry($entryId: ID!, $videoId: ID!) {
|
||||||
|
submitChallengeEntry(entryId: $entryId, videoId: $videoId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
qualified
|
||||||
|
makeRate
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
video {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RecalculateChallengeEntry($entryId: ID!) {
|
||||||
|
recalculateChallengeEntry(entryId: $entryId) {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
qualified
|
||||||
|
makeRate
|
||||||
|
shotsCount
|
||||||
|
makesCount
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query IsChallengeDismissed($challengeId: ID!) {
|
||||||
|
isChallengeDismissed(challengeId: $challengeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation DismissChallenge($challengeId: ID!) {
|
||||||
|
dismissChallenge(challengeId: $challengeId)
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation UndismissChallenge($challengeId: ID!) {
|
||||||
|
undismissChallenge(challengeId: $challengeId)
|
||||||
|
}
|
||||||
@@ -19,11 +19,7 @@ fragment UserSocialsFields on UserGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
followers {
|
isFollowedByCurrentUser
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment VideoCardFields on VideoGQL {
|
fragment VideoCardFields on VideoGQL {
|
||||||
@@ -54,6 +50,7 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
name
|
name
|
||||||
@@ -116,5 +113,6 @@ query GetVideoFeed(
|
|||||||
hasNextPage
|
hasNextPage
|
||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
|
hasFollowing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
63
src/operations/notifications.gql
Normal file
63
src/operations/notifications.gql
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
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
|
||||||
|
challengeId
|
||||||
|
challenge {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
comment {
|
||||||
|
id
|
||||||
|
message
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reactionType
|
||||||
|
isRead
|
||||||
|
createdAt
|
||||||
|
readAt
|
||||||
|
}
|
||||||
@@ -191,6 +191,10 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
id
|
id
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
|
playlist {
|
||||||
|
videoId
|
||||||
|
segmentDurations
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,31 +88,15 @@ query GetUserTags {
|
|||||||
|
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,11 +107,13 @@ query getUserFollowingFollowers {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -177,3 +163,13 @@ fragment UserFragment on UserGQL {
|
|||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetUsersMatching(
|
||||||
|
$matchString: String = null
|
||||||
|
$limit: Int = null
|
||||||
|
$after: String = null
|
||||||
|
) {
|
||||||
|
getUsersMatching(matchString: $matchString, limit: $limit, after: $after) {
|
||||||
|
...UserFragment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
@@ -66,6 +67,7 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
|
pocketSize
|
||||||
private
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
@@ -86,17 +88,16 @@ fragment UserSocialsFields on UserGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
followers {
|
isFollowedByCurrentUser
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
screenshotUri
|
||||||
|
makePercentage
|
||||||
|
totalShots
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
|||||||
218
src/schema.gql
218
src/schema.gql
@@ -3,6 +3,14 @@ type Query {
|
|||||||
aggregateInput: AggregateInputGQL!
|
aggregateInput: AggregateInputGQL!
|
||||||
): [AggregateResultGQL!]!
|
): [AggregateResultGQL!]!
|
||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
|
challenges(includeDismissed: Boolean! = false): [Challenge!]!
|
||||||
|
myDismissedChallenges: [Challenge!]!
|
||||||
|
isChallengeDismissed(challengeId: ID!): Boolean!
|
||||||
|
challenge(id: ID!): Challenge
|
||||||
|
challengeLeaderboard(challengeId: ID!, limit: Int! = 50): [ChallengeEntry!]!
|
||||||
|
myChallengeInvitations: [ChallengeInvitation!]!
|
||||||
|
ruleSets: [RuleSet!]!
|
||||||
|
myChallengeEntries: [ChallengeEntry!]!
|
||||||
getDeployedConfig: DeployedConfigGQL!
|
getDeployedConfig: DeployedConfigGQL!
|
||||||
waitFor(duration: Float!): Float!
|
waitFor(duration: Float!): Float!
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
@@ -28,6 +36,12 @@ type Query {
|
|||||||
when: DateTime = null
|
when: DateTime = null
|
||||||
): CountLeaderboardGQL!
|
): CountLeaderboardGQL!
|
||||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
|
notifications(
|
||||||
|
limit: Int! = 20
|
||||||
|
offset: Int! = 0
|
||||||
|
filters: NotificationFilters = null
|
||||||
|
): NotificationConnection!
|
||||||
|
unreadNotificationCount: Int!
|
||||||
getRuns(
|
getRuns(
|
||||||
filterInput: RunFilterInput!
|
filterInput: RunFilterInput!
|
||||||
runIds: [Int!] = null
|
runIds: [Int!] = null
|
||||||
@@ -292,35 +306,72 @@ type BucketGQL {
|
|||||||
lowerBound: Float!
|
lowerBound: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeployedConfigGQL {
|
type Challenge {
|
||||||
allowNewUsers: Boolean!
|
id: ID!
|
||||||
firebase: Boolean!
|
name: String!
|
||||||
devMode: Boolean!
|
description: String
|
||||||
environment: String!
|
minimumShots: Int!
|
||||||
minimumAllowedAppVersion: String!
|
requiredTableSize: Float
|
||||||
subscriptionGatingEnabled: Boolean!
|
requiredPocketSize: Float
|
||||||
bannerMessages: [BannerGQL!]!
|
isPublic: Boolean!
|
||||||
|
maxAttempts: Int
|
||||||
|
startDate: DateTime!
|
||||||
|
endDate: DateTime!
|
||||||
|
createdAt: DateTime!
|
||||||
|
updatedAt: DateTime!
|
||||||
|
ruleSet: RuleSet!
|
||||||
|
createdBy: UserGQL!
|
||||||
|
invitations: [ChallengeInvitation!]!
|
||||||
|
participantCount: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
type BannerGQL {
|
type RuleSet {
|
||||||
|
id: ID!
|
||||||
|
name: String!
|
||||||
|
description: String
|
||||||
|
createdAt: DateTime!
|
||||||
|
updatedAt: DateTime!
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
message: String!
|
firebaseUid: String
|
||||||
color: String!
|
username: String!
|
||||||
kind: BannerKindEnum!
|
isAdmin: Boolean
|
||||||
dismissible: Boolean!
|
fargoRating: Int
|
||||||
priority: Int!
|
activeVideoId: Int
|
||||||
|
stripeCustomerId: String
|
||||||
|
profileImageUri: String
|
||||||
|
createdAt: DateTime
|
||||||
|
updatedAt: DateTime
|
||||||
|
videosPrivateByDefault: Boolean
|
||||||
|
agreesToMarketing: Boolean
|
||||||
|
following: [UserGQL!]
|
||||||
|
followers: [UserGQL!]
|
||||||
|
isFollowedByCurrentUser: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
enum BannerKindEnum {
|
type ChallengeInvitation {
|
||||||
INFO
|
id: ID!
|
||||||
WARNING
|
status: String!
|
||||||
ERROR
|
createdAt: DateTime!
|
||||||
|
challenge: Challenge!
|
||||||
|
inviter: UserGQL!
|
||||||
|
invitee: UserGQL!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
type ChallengeEntry {
|
||||||
videos: [VideoGQL!]!
|
id: ID!
|
||||||
pageInfo: PageInfoGQL!
|
status: String!
|
||||||
hasFollowing: Boolean!
|
shotsCount: Int
|
||||||
|
makesCount: Int
|
||||||
|
makeRate: Float
|
||||||
|
qualified: Boolean
|
||||||
|
createdAt: DateTime!
|
||||||
|
attemptCount: Int
|
||||||
|
challenge: Challenge!
|
||||||
|
video: VideoGQL
|
||||||
|
user: UserGQL!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type VideoGQL {
|
||||||
@@ -342,6 +393,7 @@ type VideoGQL {
|
|||||||
elapsedTime: Float
|
elapsedTime: Float
|
||||||
framesPerSecond: Float!
|
framesPerSecond: Float!
|
||||||
tableSize: Float!
|
tableSize: Float!
|
||||||
|
pocketSize: Float
|
||||||
private: Boolean!
|
private: Boolean!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
playlist: HLSPlaylistGQL
|
playlist: HLSPlaylistGQL
|
||||||
@@ -353,23 +405,6 @@ type VideoGQL {
|
|||||||
comments: [CommentGQL!]!
|
comments: [CommentGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserGQL {
|
|
||||||
id: Int!
|
|
||||||
firebaseUid: String
|
|
||||||
username: String!
|
|
||||||
isAdmin: Boolean
|
|
||||||
fargoRating: Int
|
|
||||||
activeVideoId: Int
|
|
||||||
stripeCustomerId: String
|
|
||||||
profileImageUri: String
|
|
||||||
createdAt: DateTime
|
|
||||||
updatedAt: DateTime
|
|
||||||
videosPrivateByDefault: Boolean
|
|
||||||
agreesToMarketing: Boolean
|
|
||||||
following: [UserGQL!]
|
|
||||||
followers: [UserGQL!]
|
|
||||||
}
|
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
@@ -625,6 +660,37 @@ type CommentGQL {
|
|||||||
replies: [CommentGQL!]!
|
replies: [CommentGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DeployedConfigGQL {
|
||||||
|
allowNewUsers: Boolean!
|
||||||
|
firebase: Boolean!
|
||||||
|
devMode: Boolean!
|
||||||
|
environment: String!
|
||||||
|
minimumAllowedAppVersion: String!
|
||||||
|
subscriptionGatingEnabled: Boolean!
|
||||||
|
bannerMessages: [BannerGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type BannerGQL {
|
||||||
|
id: Int!
|
||||||
|
message: String!
|
||||||
|
color: String!
|
||||||
|
kind: BannerKindEnum!
|
||||||
|
dismissible: Boolean!
|
||||||
|
priority: Int!
|
||||||
|
}
|
||||||
|
|
||||||
|
enum BannerKindEnum {
|
||||||
|
INFO
|
||||||
|
WARNING
|
||||||
|
ERROR
|
||||||
|
}
|
||||||
|
|
||||||
|
type VideoHistoryGQL {
|
||||||
|
videos: [VideoGQL!]!
|
||||||
|
pageInfo: PageInfoGQL!
|
||||||
|
hasFollowing: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
type PageInfoGQL {
|
type PageInfoGQL {
|
||||||
hasNextPage: Boolean!
|
hasNextPage: Boolean!
|
||||||
endCursor: String
|
endCursor: String
|
||||||
@@ -647,6 +713,7 @@ input VideoFeedInputGQL @oneOf {
|
|||||||
followedByUserId: Int
|
followedByUserId: Int
|
||||||
userId: Int
|
userId: Int
|
||||||
allUsers: Boolean
|
allUsers: Boolean
|
||||||
|
home: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type MakePercentageIntervalGQL {
|
type MakePercentageIntervalGQL {
|
||||||
@@ -715,6 +782,40 @@ input MedalScope @oneOf {
|
|||||||
datetimeRange: DatetimeRangeAggregationInput
|
datetimeRange: DatetimeRangeAggregationInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type NotificationConnection {
|
||||||
|
notifications: [NotificationGQL!]!
|
||||||
|
totalCount: Int!
|
||||||
|
unreadCount: Int!
|
||||||
|
hasMore: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
|
type NotificationGQL {
|
||||||
|
id: Int!
|
||||||
|
notificationType: NotificationTypeEnum!
|
||||||
|
actor: UserGQL!
|
||||||
|
videoId: Int
|
||||||
|
challengeId: Int
|
||||||
|
challenge: Challenge
|
||||||
|
comment: CommentGQL
|
||||||
|
reactionType: String
|
||||||
|
isRead: Boolean!
|
||||||
|
createdAt: DateTime!
|
||||||
|
readAt: DateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
enum NotificationTypeEnum {
|
||||||
|
COMMENT
|
||||||
|
COMMENT_REPLY
|
||||||
|
REACTION
|
||||||
|
FOLLOW
|
||||||
|
CHALLENGE_INVITE
|
||||||
|
}
|
||||||
|
|
||||||
|
input NotificationFilters {
|
||||||
|
isRead: Boolean = null
|
||||||
|
notificationTypes: [NotificationTypeEnum!] = null
|
||||||
|
}
|
||||||
|
|
||||||
type GetRunsResult {
|
type GetRunsResult {
|
||||||
runs: [RunGQL!]!
|
runs: [RunGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -900,6 +1001,32 @@ scalar JSON
|
|||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
|
createRuleSet(name: String!, description: String = null): RuleSet!
|
||||||
|
createChallenge(
|
||||||
|
name: String!
|
||||||
|
ruleSetId: ID!
|
||||||
|
minimumShots: Int!
|
||||||
|
startDate: DateTime!
|
||||||
|
endDate: DateTime!
|
||||||
|
description: String = null
|
||||||
|
requiredTableSize: Float = null
|
||||||
|
requiredPocketSize: Float = null
|
||||||
|
isPublic: Boolean! = false
|
||||||
|
maxAttempts: Int = null
|
||||||
|
): Challenge!
|
||||||
|
inviteUsersToChallenge(
|
||||||
|
challengeId: ID!
|
||||||
|
userIds: [ID!]!
|
||||||
|
): [ChallengeInvitation!]!
|
||||||
|
respondToChallengeInvitation(
|
||||||
|
invitationId: ID!
|
||||||
|
accept: Boolean!
|
||||||
|
): ChallengeInvitation!
|
||||||
|
startChallenge(challengeId: ID!): ChallengeEntry!
|
||||||
|
recalculateChallengeEntry(entryId: ID!): ChallengeEntry!
|
||||||
|
submitChallengeEntry(entryId: ID!, videoId: ID!): ChallengeEntry!
|
||||||
|
dismissChallenge(challengeId: ID!): Boolean!
|
||||||
|
undismissChallenge(challengeId: ID!): Boolean!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||||
commentOnVideo(
|
commentOnVideo(
|
||||||
@@ -916,6 +1043,10 @@ type Mutation {
|
|||||||
reason: ReportReasonEnum!
|
reason: ReportReasonEnum!
|
||||||
customReason: String = null
|
customReason: String = null
|
||||||
): Boolean!
|
): Boolean!
|
||||||
|
markNotificationAsRead(notificationId: Int!): Boolean!
|
||||||
|
markAllNotificationsAsRead: Boolean!
|
||||||
|
markNotificationsAsRead(notificationIds: [Int!]!): Boolean!
|
||||||
|
deleteNotification(notificationId: Int!): Boolean!
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@@ -977,7 +1108,7 @@ type AddShotAnnotationReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
union SuccessfulAddAddShotAnnotationErrors =
|
union SuccessfulAddAddShotAnnotationErrors =
|
||||||
SuccessfulAdd
|
| SuccessfulAdd
|
||||||
| AddShotAnnotationErrors
|
| AddShotAnnotationErrors
|
||||||
|
|
||||||
type SuccessfulAdd {
|
type SuccessfulAdd {
|
||||||
@@ -989,7 +1120,7 @@ type AddShotAnnotationErrors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||||
DoesNotOwnShotErr
|
| DoesNotOwnShotErr
|
||||||
| OtherErrorNeedsNote
|
| OtherErrorNeedsNote
|
||||||
|
|
||||||
type DoesNotOwnShotErr {
|
type DoesNotOwnShotErr {
|
||||||
@@ -1032,7 +1163,7 @@ type GetProfileUploadLinkReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
union UploadLinkGetProfileUploadLinkErrors =
|
union UploadLinkGetProfileUploadLinkErrors =
|
||||||
UploadLink
|
| UploadLink
|
||||||
| GetProfileUploadLinkErrors
|
| GetProfileUploadLinkErrors
|
||||||
|
|
||||||
type UploadLink {
|
type UploadLink {
|
||||||
@@ -1081,6 +1212,7 @@ input VideoMetadataInput {
|
|||||||
"""
|
"""
|
||||||
tags: [VideoTagInput!] = null
|
tags: [VideoTagInput!] = null
|
||||||
tableSize: Float = null
|
tableSize: Float = null
|
||||||
|
pocketSize: Float = null
|
||||||
lastIntendedSegmentBound: Int = null
|
lastIntendedSegmentBound: Int = null
|
||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
private: Boolean = null
|
private: Boolean = null
|
||||||
@@ -1107,7 +1239,7 @@ type GetUploadLinkErrors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||||
MustHaveSetForUploadLinkErr
|
| MustHaveSetForUploadLinkErr
|
||||||
| SegmentAlreadyUploadedErr
|
| SegmentAlreadyUploadedErr
|
||||||
| ProcessingFailedErr
|
| ProcessingFailedErr
|
||||||
| NoInitForChunkedUploadErr
|
| NoInitForChunkedUploadErr
|
||||||
|
|||||||
69
yarn.lock
69
yarn.lock
@@ -603,6 +603,18 @@
|
|||||||
lodash "~4.17.0"
|
lodash "~4.17.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/plugin-helpers@^6.0.0":
|
||||||
|
version "6.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-6.0.0.tgz#8a913c82a95b9ff36b2180f7c56611cc56268625"
|
||||||
|
integrity sha512-Z7P89vViJvQakRyMbq/JF2iPLruRFOwOB6IXsuSvV/BptuuEd7fsGPuEf8bdjjDxUY0pJZnFN8oC7jIQ8p9GKA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
|
change-case-all "1.0.15"
|
||||||
|
common-tags "1.8.2"
|
||||||
|
import-from "4.0.0"
|
||||||
|
lodash "~4.17.0"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/schema-ast@^4.0.0":
|
"@graphql-codegen/schema-ast@^4.0.0":
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.0.tgz#5d60996c87b64f81847da8fcb2d8ef50ede89755"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-4.0.0.tgz#5d60996c87b64f81847da8fcb2d8ef50ede89755"
|
||||||
@@ -612,16 +624,25 @@
|
|||||||
"@graphql-tools/utils" "^10.0.0"
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
"@graphql-codegen/typescript-operations@^4.0.1":
|
"@graphql-codegen/schema-ast@^5.0.0":
|
||||||
version "4.0.1"
|
version "5.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-4.0.1.tgz#930af3e2d2ae8ff06de696291be28fe7046a2fef"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/schema-ast/-/schema-ast-5.0.0.tgz#9708d7484a01bb3a502685126708d7b139fd0721"
|
||||||
integrity sha512-GpUWWdBVUec/Zqo23aFLBMrXYxN2irypHqDcKjN78JclDPdreasAEPcIpMfqf4MClvpmvDLy4ql+djVAwmkjbw==
|
integrity sha512-jn7Q3PKQc0FxXjbpo9trxzlz/GSFQWxL042l0iC8iSbM/Ar+M7uyBwMtXPsev/3Razk+osQyreghIz0d2+6F7Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@graphql-codegen/plugin-helpers" "^5.0.0"
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
"@graphql-codegen/typescript" "^4.0.1"
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
"@graphql-codegen/visitor-plugin-common" "4.0.1"
|
tslib "~2.6.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/typescript-operations@^5.0.4":
|
||||||
|
version "5.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-5.0.4.tgz#052680d41f4bab3bb85af8e906c43bde29239e7b"
|
||||||
|
integrity sha512-5Bu/BTmyNjdSfSLLBKjC0+4XWcY01uotVcnVIWIxxRdIHoRxnTW6PUkT5CoPHP5r/Uoo3OvIJxh+0LYSH5suwA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-codegen/typescript" "^5.0.4"
|
||||||
|
"@graphql-codegen/visitor-plugin-common" "6.1.2"
|
||||||
auto-bind "~4.0.0"
|
auto-bind "~4.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/typescript-react-apollo@^4.2.0":
|
"@graphql-codegen/typescript-react-apollo@^4.2.0":
|
||||||
version "4.2.0"
|
version "4.2.0"
|
||||||
@@ -645,6 +666,17 @@
|
|||||||
auto-bind "~4.0.0"
|
auto-bind "~4.0.0"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/typescript@^5.0.4":
|
||||||
|
version "5.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-5.0.4.tgz#a7f51505445568fd737b01ce7fad515c2b89897f"
|
||||||
|
integrity sha512-q6S8hX+aR4BzeGgolac4gp22rBnXbLhedmOwT1UBT9e3lGNmNpYC7WJUEzAPjWf6z1lRSNmojLlwEjTnffhKNA==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-codegen/schema-ast" "^5.0.0"
|
||||||
|
"@graphql-codegen/visitor-plugin-common" "6.1.2"
|
||||||
|
auto-bind "~4.0.0"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-codegen/visitor-plugin-common@2.13.1":
|
"@graphql-codegen/visitor-plugin-common@2.13.1":
|
||||||
version "2.13.1"
|
version "2.13.1"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b"
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.13.1.tgz#2228660f6692bcdb96b1f6d91a0661624266b76b"
|
||||||
@@ -677,6 +709,22 @@
|
|||||||
parse-filepath "^1.0.2"
|
parse-filepath "^1.0.2"
|
||||||
tslib "~2.5.0"
|
tslib "~2.5.0"
|
||||||
|
|
||||||
|
"@graphql-codegen/visitor-plugin-common@6.1.2":
|
||||||
|
version "6.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-6.1.2.tgz#e614d6606402a152686d6f90e6363150a7a55bde"
|
||||||
|
integrity sha512-zYdrhJKgk8kqE1Xz5/m/Ua42zk+rIvYB/FHh3dE1AhZ6b1IDqgKjF3LnkT+K2qenf9EfT4yNjXd5CEKMeXfHyg==
|
||||||
|
dependencies:
|
||||||
|
"@graphql-codegen/plugin-helpers" "^6.0.0"
|
||||||
|
"@graphql-tools/optimize" "^2.0.0"
|
||||||
|
"@graphql-tools/relay-operation-optimizer" "^7.0.0"
|
||||||
|
"@graphql-tools/utils" "^10.0.0"
|
||||||
|
auto-bind "~4.0.0"
|
||||||
|
change-case-all "1.0.15"
|
||||||
|
dependency-graph "^1.0.0"
|
||||||
|
graphql-tag "^2.11.0"
|
||||||
|
parse-filepath "^1.0.2"
|
||||||
|
tslib "~2.6.0"
|
||||||
|
|
||||||
"@graphql-tools/apollo-engine-loader@^8.0.0":
|
"@graphql-tools/apollo-engine-loader@^8.0.0":
|
||||||
version "8.0.0"
|
version "8.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.0.tgz#ac1f351cbe41508411784f25757f5557b0f27489"
|
resolved "https://registry.yarnpkg.com/@graphql-tools/apollo-engine-loader/-/apollo-engine-loader-8.0.0.tgz#ac1f351cbe41508411784f25757f5557b0f27489"
|
||||||
@@ -1649,6 +1697,11 @@ dependency-graph@^0.11.0:
|
|||||||
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
|
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.11.0.tgz#ac0ce7ed68a54da22165a85e97a01d53f5eb2e27"
|
||||||
integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==
|
integrity sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==
|
||||||
|
|
||||||
|
dependency-graph@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-1.0.0.tgz#bb5e85aec1310bc13b22dbd76e3196c4ee4c10d2"
|
||||||
|
integrity sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==
|
||||||
|
|
||||||
detect-indent@^6.0.0:
|
detect-indent@^6.0.0:
|
||||||
version "6.1.0"
|
version "6.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6"
|
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.1.0.tgz#592485ebbbf6b3b1ab2be175c8393d04ca0d57e6"
|
||||||
|
|||||||
Reference in New Issue
Block a user