diff --git a/src/index.tsx b/src/index.tsx index 750efc9..f75c7a6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2503,6 +2503,7 @@ export type Query = { __typename?: "Query"; doesUsernameExist: Scalars["Boolean"]["output"]; getAggregatedShotMetrics: Array; + getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql; getBucketSet?: Maybe; getDeployedConfig: DeployedConfigGql; getFeedVideos: VideoHistoryGql; @@ -2928,6 +2929,31 @@ export enum StreamSegmentTypeEnum { RbChunkedMp4 = "RB_CHUNKED_MP4", } +export type StripePriceGql = { + __typename?: "StripePriceGQL"; + active: Scalars["Boolean"]["output"]; + currency: Scalars["String"]["output"]; + id: Scalars["String"]["output"]; + recurringInterval?: Maybe; + recurringIntervalCount?: Maybe; + type: Scalars["String"]["output"]; + unitAmount?: Maybe; +}; + +export type StripeProductGql = { + __typename?: "StripeProductGQL"; + active: Scalars["Boolean"]["output"]; + description?: Maybe; + id: Scalars["String"]["output"]; + name: Scalars["String"]["output"]; + prices: Array; +}; + +export type StripeSubscriptionOptionsGql = { + __typename?: "StripeSubscriptionOptionsGQL"; + products: Array; +}; + export type SuccessfulAdd = { __typename?: "SuccessfulAdd"; value: Scalars["Boolean"]["output"]; @@ -3174,11 +3200,8 @@ export type VideoProcessingErrorGql = { export type VideoProcessingGql = { __typename?: "VideoProcessingGQL"; - currentSegment?: Maybe; errors: Array; - framesProcessed?: Maybe; id: Scalars["Int"]["output"]; - progressPercentage?: Maybe; status: ProcessingStatusEnum; statuses: Array; }; diff --git a/src/schema.gql b/src/schema.gql index 988ff54..a63e08f 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -81,6 +81,7 @@ type Query { limit: Int = 100 after: String = null ): UserRelationshipsResult! + getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL! getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL! getUserVideos( userId: Int = null @@ -568,9 +569,6 @@ type VideoProcessingGQL { errors: [VideoProcessingErrorGQL!]! status: ProcessingStatusEnum! statuses: [VideoProcessingStatusGQL!]! - framesProcessed: Int - currentSegment: Int - progressPercentage: Float } type VideoProcessingErrorGQL { @@ -826,6 +824,28 @@ 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 UserPlayTimeGQL { totalSeconds: Float! }