diff --git a/src/index.tsx b/src/index.tsx index 1ee7e1e..1c782f2 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2492,6 +2492,7 @@ export type Query = { __typename?: "Query"; doesUsernameExist: Scalars["Boolean"]["output"]; getAggregatedShotMetrics: Array; + getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql; getBucketSet?: Maybe; getDeployedConfig: DeployedConfigGql; getFeedVideos: VideoHistoryGql; @@ -2917,6 +2918,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"]; diff --git a/src/schema.gql b/src/schema.gql index b1ac1ad..713bfd2 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 @@ -823,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! }