Compare commits
1 Commits
loewy/add-
...
ivan/remov
Author | SHA1 | Date | |
---|---|---|---|
cfffa3f640 |
@@ -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]
|
||||||
|
810
src/index.tsx
810
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -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,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
|
|
||||||
}
|
|
||||||
}
|
|
@@ -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,5 +168,4 @@ fragment UserFragment on UserGQL {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
|
||||||
}
|
}
|
||||||
|
@@ -70,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
|
||||||
@@ -298,23 +291,6 @@ type DeployedConfigGQL {
|
|||||||
devMode: Boolean!
|
devMode: Boolean!
|
||||||
environment: String!
|
environment: String!
|
||||||
minimumAllowedAppVersion: 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 {
|
type VideoHistoryGQL {
|
||||||
@@ -359,12 +335,10 @@ type UserGQL {
|
|||||||
isAdmin: Boolean
|
isAdmin: Boolean
|
||||||
fargoRating: Int
|
fargoRating: Int
|
||||||
activeVideoId: Int
|
activeVideoId: Int
|
||||||
stripeCustomerId: String
|
|
||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
videosPrivateByDefault: Boolean
|
videosPrivateByDefault: Boolean
|
||||||
agreesToMarketing: Boolean
|
|
||||||
following: [UserGQL!]
|
following: [UserGQL!]
|
||||||
followers: [UserGQL!]
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
@@ -572,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 {
|
||||||
@@ -830,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!
|
||||||
}
|
}
|
||||||
@@ -908,13 +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!
|
|
||||||
addAnnotationToShot(
|
addAnnotationToShot(
|
||||||
shotId: Int!
|
shotId: Int!
|
||||||
annotationName: String!
|
annotationName: String!
|
||||||
@@ -936,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!
|
||||||
@@ -962,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!
|
||||||
}
|
}
|
||||||
@@ -1056,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 {
|
||||||
|
Reference in New Issue
Block a user