Compare commits
46 Commits
ivan/remov
...
loewy/add-
Author | SHA1 | Date | |
---|---|---|---|
a7649351b3 | |||
051555f9fc | |||
d7bbe882b7 | |||
e783050a02 | |||
d8ee83c627 | |||
d32cd87a60 | |||
b956cfe0f9 | |||
3f520a0331 | |||
a563834269 | |||
80a5bded47 | |||
16d8510465 | |||
9b21ce1e3a | |||
dde4cfd99b | |||
845fb361b9 | |||
9f5fcc066e | |||
dfb0361e12 | |||
77477d63db | |||
01fb113e1c | |||
c660ed54cd | |||
b5fd2e2183 | |||
ddee57f4c2 | |||
a497abd44d | |||
49d43b2703 | |||
99f8968a36 | |||
76a98aa0c3 | |||
f5177a877c | |||
6685849cc2 | |||
567cbc549c | |||
2b43493a4f | |||
358eee2e16 | |||
a1d3d776aa | |||
82af3a3ce9 | |||
7b51c317ca | |||
04f1bb4d74 | |||
fbd7c2020b | |||
c0636a8863 | |||
7302d6b8b6 | |||
492178455c | |||
55a2edb042 | |||
31cf492889 | |||
de7dc675a1 | |||
f8f00d9c24 | |||
dc207bce55 | |||
2e5b8d2563 | |||
46bcd08ae1 | |||
bd383b1d55 |
@@ -8,7 +8,7 @@ packages = [{include = "rbproto"}]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.10,<=3.13"
|
||||
protobuf = "*"
|
||||
protobuf = "^4.25.3"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
810
src/index.tsx
810
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -5,5 +5,14 @@ query getDeployedConfig {
|
||||
environment
|
||||
firebase
|
||||
minimumAllowedAppVersion
|
||||
subscriptionGatingEnabled
|
||||
bannerMessages {
|
||||
color
|
||||
dismissible
|
||||
id
|
||||
kind
|
||||
message
|
||||
priority
|
||||
}
|
||||
}
|
||||
}
|
||||
|
15
src/operations/content-moderation.gql
Normal file
15
src/operations/content-moderation.gql
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
65
src/operations/payments.gql
Normal file
65
src/operations/payments.gql
Normal file
@@ -0,0 +1,65 @@
|
||||
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
|
||||
}
|
||||
}
|
@@ -140,12 +140,14 @@ mutation editUser(
|
||||
$username: String
|
||||
$fargoRating: Int
|
||||
$videosPrivateByDefault: Boolean
|
||||
$agreesToMarketing: Boolean
|
||||
) {
|
||||
editUser(
|
||||
input: {
|
||||
username: $username
|
||||
fargoRating: $fargoRating
|
||||
videosPrivateByDefault: $videosPrivateByDefault
|
||||
agreesToMarketing: $agreesToMarketing
|
||||
}
|
||||
) {
|
||||
id
|
||||
@@ -154,9 +156,14 @@ mutation editUser(
|
||||
fargoRating
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
agreesToMarketing
|
||||
}
|
||||
}
|
||||
|
||||
mutation deleteUser {
|
||||
deleteUser
|
||||
}
|
||||
|
||||
fragment UserFragment on UserGQL {
|
||||
id
|
||||
firebaseUid
|
||||
@@ -168,4 +175,5 @@ fragment UserFragment on UserGQL {
|
||||
createdAt
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
agreesToMarketing
|
||||
}
|
||||
|
@@ -70,12 +70,19 @@ type Query {
|
||||
limit: Int = null
|
||||
after: String = null
|
||||
): [String!]!
|
||||
getUsersMatching(
|
||||
matchString: String = null
|
||||
limit: Int = null
|
||||
after: String = null
|
||||
): [UserGQL!]!
|
||||
getUserRelationshipsMatching(
|
||||
userId: Int!
|
||||
matchString: String = null
|
||||
limit: Int = 100
|
||||
after: String = null
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -291,6 +298,23 @@ type DeployedConfigGQL {
|
||||
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 {
|
||||
@@ -335,10 +359,12 @@ type UserGQL {
|
||||
isAdmin: Boolean
|
||||
fargoRating: Int
|
||||
activeVideoId: Int
|
||||
stripeCustomerId: String
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
videosPrivateByDefault: Boolean
|
||||
agreesToMarketing: Boolean
|
||||
following: [UserGQL!]
|
||||
followers: [UserGQL!]
|
||||
}
|
||||
@@ -546,6 +572,9 @@ type VideoProcessingGQL {
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
framesProcessed: Int
|
||||
currentSegment: Int
|
||||
progressPercentage: Float
|
||||
}
|
||||
|
||||
type VideoProcessingErrorGQL {
|
||||
@@ -801,6 +830,49 @@ type UserRelationship {
|
||||
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 {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@@ -836,6 +908,13 @@ type Mutation {
|
||||
): Boolean!
|
||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||
blockContent(videoId: Int!): Boolean!
|
||||
blockUser(userId: Int!): Boolean!
|
||||
reportContent(
|
||||
videoId: Int!
|
||||
reason: ReportReasonEnum!
|
||||
customReason: String = null
|
||||
): Boolean!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
@@ -857,6 +936,10 @@ type Mutation {
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
cancelSubscription: UserSubscriptionStatusGQL!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -879,6 +962,15 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
enum ReportReasonEnum {
|
||||
SPAM
|
||||
NUDITY
|
||||
VIOLENCE
|
||||
HATE
|
||||
COPYRIGHT
|
||||
OTHER
|
||||
}
|
||||
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
@@ -964,6 +1056,12 @@ input EditUserInputGQL {
|
||||
username: String = null
|
||||
fargoRating: Int = null
|
||||
videosPrivateByDefault: Boolean = null
|
||||
agreesToMarketing: Boolean = null
|
||||
}
|
||||
|
||||
type CreateSubscriptionResultGQL {
|
||||
checkoutUrl: String!
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
|
Reference in New Issue
Block a user