Compare commits
1 Commits
dean/add-c
...
ivan/remov
| Author | SHA1 | Date | |
|---|---|---|---|
| cfffa3f640 |
5423
package-lock.json
generated
5423
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ packages = [{include = "rbproto"}]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
protobuf = "^4.25.3"
|
protobuf = "*"
|
||||||
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|||||||
2747
src/index.tsx
2747
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -1,207 +0,0 @@
|
|||||||
query GetChallenges {
|
|
||||||
challenges {
|
|
||||||
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
|
|
||||||
ruleSet {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
description
|
|
||||||
}
|
|
||||||
createdBy {
|
|
||||||
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
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -5,14 +5,5 @@ query getDeployedConfig {
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
|
||||||
bannerMessages {
|
|
||||||
color
|
|
||||||
dismissible
|
|
||||||
id
|
|
||||||
kind
|
|
||||||
message
|
|
||||||
priority
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
mutation blockContent($videoId: Int!) {
|
|
||||||
blockContent(videoId: $videoId)
|
|
||||||
}
|
|
||||||
|
|
||||||
mutation blockUser($userId: Int!) {
|
|
||||||
blockUser(userId: $userId)
|
|
||||||
}
|
|
||||||
|
|
||||||
mutation reportContent(
|
|
||||||
$videoId: Int!
|
|
||||||
$reason: ReportReasonEnum!
|
|
||||||
$customReason: String = null
|
|
||||||
) {
|
|
||||||
reportContent(videoId: $videoId, reason: $reason, customReason: $customReason)
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
mutation EnsureStripeCustomerExists {
|
|
||||||
ensureStripeCustomerExists {
|
|
||||||
id
|
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
stripeCustomerId
|
|
||||||
profileImageUri
|
|
||||||
isAdmin
|
|
||||||
fargoRating
|
|
||||||
videosPrivateByDefault
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mutation CreateSubscription($priceId: String!) {
|
|
||||||
createSubscription(priceId: $priceId) {
|
|
||||||
checkoutUrl
|
|
||||||
sessionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetAvailableSubscriptionOptions {
|
|
||||||
getAvailableSubscriptionOptions {
|
|
||||||
products {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
description
|
|
||||||
active
|
|
||||||
prices {
|
|
||||||
id
|
|
||||||
currency
|
|
||||||
unitAmount
|
|
||||||
recurringInterval
|
|
||||||
recurringIntervalCount
|
|
||||||
type
|
|
||||||
active
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetSubscriptionStatus {
|
|
||||||
getUserSubscriptionStatus {
|
|
||||||
hasActiveSubscription
|
|
||||||
subscriptionStatus
|
|
||||||
currentPeriodStart
|
|
||||||
currentPeriodEnd
|
|
||||||
validUntil
|
|
||||||
stripePriceId
|
|
||||||
stripeSubscriptionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mutation CancelSubscription {
|
|
||||||
cancelSubscription {
|
|
||||||
hasActiveSubscription
|
|
||||||
subscriptionStatus
|
|
||||||
currentPeriodStart
|
|
||||||
currentPeriodEnd
|
|
||||||
validUntil
|
|
||||||
stripePriceId
|
|
||||||
stripeSubscriptionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -191,9 +191,6 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
id
|
id
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
playlist {
|
|
||||||
segmentDurations
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -140,14 +140,12 @@ mutation editUser(
|
|||||||
$username: String
|
$username: String
|
||||||
$fargoRating: Int
|
$fargoRating: Int
|
||||||
$videosPrivateByDefault: Boolean
|
$videosPrivateByDefault: Boolean
|
||||||
$agreesToMarketing: Boolean
|
|
||||||
) {
|
) {
|
||||||
editUser(
|
editUser(
|
||||||
input: {
|
input: {
|
||||||
username: $username
|
username: $username
|
||||||
fargoRating: $fargoRating
|
fargoRating: $fargoRating
|
||||||
videosPrivateByDefault: $videosPrivateByDefault
|
videosPrivateByDefault: $videosPrivateByDefault
|
||||||
agreesToMarketing: $agreesToMarketing
|
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
id
|
id
|
||||||
@@ -156,14 +154,9 @@ mutation editUser(
|
|||||||
fargoRating
|
fargoRating
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation deleteUser {
|
|
||||||
deleteUser
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment UserFragment on UserGQL {
|
fragment UserFragment on UserGQL {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
@@ -175,15 +168,4 @@ fragment UserFragment on UserGQL {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetUsersMatching(
|
|
||||||
$matchString: String = null
|
|
||||||
$limit: Int = null
|
|
||||||
$after: String = null
|
|
||||||
) {
|
|
||||||
getUsersMatching(matchString: $matchString, limit: $limit, after: $after) {
|
|
||||||
...UserFragment
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ query GetVideoUpdatePageDetails($videoId: Int!) {
|
|||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
|
||||||
private
|
private
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
@@ -67,7 +66,6 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
|
||||||
private
|
private
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
@@ -99,9 +97,6 @@ query GetVideoSocialDetailsById($videoId: Int!) {
|
|||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
screenshotUri
|
|
||||||
makePercentage
|
|
||||||
totalShots
|
|
||||||
owner {
|
owner {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
|||||||
268
src/schema.gql
268
src/schema.gql
@@ -3,12 +3,6 @@ type Query {
|
|||||||
aggregateInput: AggregateInputGQL!
|
aggregateInput: AggregateInputGQL!
|
||||||
): [AggregateResultGQL!]!
|
): [AggregateResultGQL!]!
|
||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
challenges: [Challenge!]!
|
|
||||||
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(
|
||||||
@@ -34,12 +28,6 @@ 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
|
||||||
@@ -82,19 +70,12 @@ type Query {
|
|||||||
limit: Int = null
|
limit: Int = null
|
||||||
after: String = null
|
after: String = null
|
||||||
): [String!]!
|
): [String!]!
|
||||||
getUsersMatching(
|
|
||||||
matchString: String = null
|
|
||||||
limit: Int = null
|
|
||||||
after: String = null
|
|
||||||
): [UserGQL!]!
|
|
||||||
getUserRelationshipsMatching(
|
getUserRelationshipsMatching(
|
||||||
userId: Int!
|
userId: Int!
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
limit: Int = 100
|
limit: Int = 100
|
||||||
after: String = null
|
after: String = null
|
||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -304,60 +285,17 @@ type BucketGQL {
|
|||||||
lowerBound: Float!
|
lowerBound: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Challenge {
|
type DeployedConfigGQL {
|
||||||
id: ID!
|
allowNewUsers: Boolean!
|
||||||
name: String!
|
firebase: Boolean!
|
||||||
description: String
|
devMode: Boolean!
|
||||||
minimumShots: Int!
|
environment: String!
|
||||||
requiredTableSize: Float
|
minimumAllowedAppVersion: String!
|
||||||
requiredPocketSize: Float
|
|
||||||
isPublic: Boolean!
|
|
||||||
maxAttempts: Int
|
|
||||||
startDate: DateTime!
|
|
||||||
endDate: DateTime!
|
|
||||||
createdAt: DateTime!
|
|
||||||
updatedAt: DateTime!
|
|
||||||
ruleSet: RuleSet!
|
|
||||||
createdBy: UserGQL!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type RuleSet {
|
type VideoHistoryGQL {
|
||||||
id: ID!
|
videos: [VideoGQL!]!
|
||||||
name: String!
|
pageInfo: PageInfoGQL!
|
||||||
description: String
|
|
||||||
createdAt: DateTime!
|
|
||||||
updatedAt: DateTime!
|
|
||||||
}
|
|
||||||
|
|
||||||
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!]
|
|
||||||
isFollowedByCurrentUser: Boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChallengeEntry {
|
|
||||||
id: ID!
|
|
||||||
status: String!
|
|
||||||
shotsCount: Int
|
|
||||||
makesCount: Int
|
|
||||||
makeRate: Float
|
|
||||||
qualified: Boolean
|
|
||||||
createdAt: DateTime!
|
|
||||||
challenge: Challenge!
|
|
||||||
video: VideoGQL
|
|
||||||
user: UserGQL!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type VideoGQL {
|
||||||
@@ -379,7 +317,6 @@ 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
|
||||||
@@ -391,6 +328,21 @@ type VideoGQL {
|
|||||||
comments: [CommentGQL!]!
|
comments: [CommentGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type UserGQL {
|
||||||
|
id: Int!
|
||||||
|
firebaseUid: String
|
||||||
|
username: String!
|
||||||
|
isAdmin: Boolean
|
||||||
|
fargoRating: Int
|
||||||
|
activeVideoId: Int
|
||||||
|
profileImageUri: String
|
||||||
|
createdAt: DateTime
|
||||||
|
updatedAt: DateTime
|
||||||
|
videosPrivateByDefault: Boolean
|
||||||
|
following: [UserGQL!]
|
||||||
|
followers: [UserGQL!]
|
||||||
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
@@ -594,9 +546,6 @@ type VideoProcessingGQL {
|
|||||||
errors: [VideoProcessingErrorGQL!]!
|
errors: [VideoProcessingErrorGQL!]!
|
||||||
status: ProcessingStatusEnum!
|
status: ProcessingStatusEnum!
|
||||||
statuses: [VideoProcessingStatusGQL!]!
|
statuses: [VideoProcessingStatusGQL!]!
|
||||||
framesProcessed: Int
|
|
||||||
currentSegment: Int
|
|
||||||
progressPercentage: Float
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoProcessingErrorGQL {
|
type VideoProcessingErrorGQL {
|
||||||
@@ -646,45 +595,6 @@ type CommentGQL {
|
|||||||
replies: [CommentGQL!]!
|
replies: [CommentGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ChallengeInvitation {
|
|
||||||
id: ID!
|
|
||||||
status: String!
|
|
||||||
createdAt: DateTime!
|
|
||||||
challenge: Challenge!
|
|
||||||
inviter: UserGQL!
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
||||||
@@ -707,7 +617,6 @@ input VideoFeedInputGQL @oneOf {
|
|||||||
followedByUserId: Int
|
followedByUserId: Int
|
||||||
userId: Int
|
userId: Int
|
||||||
allUsers: Boolean
|
allUsers: Boolean
|
||||||
home: Boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MakePercentageIntervalGQL {
|
type MakePercentageIntervalGQL {
|
||||||
@@ -776,37 +685,6 @@ 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
|
|
||||||
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 {
|
type GetRunsResult {
|
||||||
runs: [RunGQL!]!
|
runs: [RunGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -923,49 +801,6 @@ type UserRelationship {
|
|||||||
toUserIsFollowedBy: Boolean!
|
toUserIsFollowedBy: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
type StripeSubscriptionOptionsGQL {
|
|
||||||
products: [StripeProductGQL!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type StripeProductGQL {
|
|
||||||
id: String!
|
|
||||||
name: String!
|
|
||||||
description: String
|
|
||||||
active: Boolean!
|
|
||||||
prices: [StripePriceGQL!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type StripePriceGQL {
|
|
||||||
id: String!
|
|
||||||
currency: String!
|
|
||||||
unitAmount: Int
|
|
||||||
recurringInterval: String
|
|
||||||
recurringIntervalCount: Int
|
|
||||||
type: String!
|
|
||||||
active: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserSubscriptionStatusGQL {
|
|
||||||
hasActiveSubscription: Boolean!
|
|
||||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
|
||||||
currentPeriodStart: DateTime
|
|
||||||
currentPeriodEnd: DateTime
|
|
||||||
validUntil: DateTime
|
|
||||||
stripePriceId: String
|
|
||||||
stripeSubscriptionId: String
|
|
||||||
}
|
|
||||||
|
|
||||||
enum StripeSubscriptionStatusEnum {
|
|
||||||
INCOMPLETE
|
|
||||||
INCOMPLETE_EXPIRED
|
|
||||||
TRIALING
|
|
||||||
ACTIVE
|
|
||||||
PAST_DUE
|
|
||||||
CANCELED
|
|
||||||
UNPAID
|
|
||||||
PAUSED
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
@@ -992,30 +827,6 @@ 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!
|
|
||||||
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(
|
||||||
@@ -1025,17 +836,6 @@ type Mutation {
|
|||||||
): Boolean!
|
): Boolean!
|
||||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||||
blockContent(videoId: Int!): Boolean!
|
|
||||||
blockUser(userId: Int!): Boolean!
|
|
||||||
reportContent(
|
|
||||||
videoId: Int!
|
|
||||||
reason: ReportReasonEnum!
|
|
||||||
customReason: String = null
|
|
||||||
): 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!
|
||||||
@@ -1057,10 +857,6 @@ type Mutation {
|
|||||||
followUser(followedUserId: Int!): UserGQL!
|
followUser(followedUserId: Int!): UserGQL!
|
||||||
unfollowUser(followedUserId: Int!): UserGQL!
|
unfollowUser(followedUserId: Int!): UserGQL!
|
||||||
retireTags(tagIds: [Int!]!): Boolean!
|
retireTags(tagIds: [Int!]!): Boolean!
|
||||||
ensureStripeCustomerExists: UserGQL!
|
|
||||||
deleteUser: Boolean!
|
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
|
||||||
cancelSubscription: UserSubscriptionStatusGQL!
|
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
@@ -1083,15 +879,6 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
buckets: [BucketInputGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ReportReasonEnum {
|
|
||||||
SPAM
|
|
||||||
NUDITY
|
|
||||||
VIOLENCE
|
|
||||||
HATE
|
|
||||||
COPYRIGHT
|
|
||||||
OTHER
|
|
||||||
}
|
|
||||||
|
|
||||||
type AddShotAnnotationReturn {
|
type AddShotAnnotationReturn {
|
||||||
value: SuccessfulAddAddShotAnnotationErrors!
|
value: SuccessfulAddAddShotAnnotationErrors!
|
||||||
}
|
}
|
||||||
@@ -1177,12 +964,6 @@ input EditUserInputGQL {
|
|||||||
username: String = null
|
username: String = null
|
||||||
fargoRating: Int = null
|
fargoRating: Int = null
|
||||||
videosPrivateByDefault: Boolean = null
|
videosPrivateByDefault: Boolean = null
|
||||||
agreesToMarketing: Boolean = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type CreateSubscriptionResultGQL {
|
|
||||||
checkoutUrl: String!
|
|
||||||
sessionId: String!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
@@ -1201,7 +982,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user