Compare commits
1 Commits
d32cd87a60
...
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]
|
||||||
|
592
src/index.tsx
592
src/index.tsx
@@ -86,22 +86,6 @@ export type BankFeaturesGql = {
|
|||||||
wallsHit: Array<WallTypeEnum>;
|
wallsHit: Array<WallTypeEnum>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BannerGql = {
|
|
||||||
__typename?: "BannerGQL";
|
|
||||||
color: Scalars["String"]["output"];
|
|
||||||
dismissible: Scalars["Boolean"]["output"];
|
|
||||||
id: Scalars["Int"]["output"];
|
|
||||||
kind: BannerKindEnum;
|
|
||||||
message: Scalars["String"]["output"];
|
|
||||||
priority: Scalars["Int"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum BannerKindEnum {
|
|
||||||
Error = "ERROR",
|
|
||||||
Info = "INFO",
|
|
||||||
Warning = "WARNING",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type BoundingBoxGql = {
|
export type BoundingBoxGql = {
|
||||||
__typename?: "BoundingBoxGQL";
|
__typename?: "BoundingBoxGQL";
|
||||||
height: Scalars["Float"]["output"];
|
height: Scalars["Float"]["output"];
|
||||||
@@ -164,12 +148,6 @@ export type CreateBucketSetInput = {
|
|||||||
keyName: Scalars["String"]["input"];
|
keyName: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateSubscriptionResultGql = {
|
|
||||||
__typename?: "CreateSubscriptionResultGQL";
|
|
||||||
checkoutUrl: Scalars["String"]["output"];
|
|
||||||
sessionId: Scalars["String"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CreateUploadStreamReturn = {
|
export type CreateUploadStreamReturn = {
|
||||||
__typename?: "CreateUploadStreamReturn";
|
__typename?: "CreateUploadStreamReturn";
|
||||||
videoId: Scalars["Int"]["output"];
|
videoId: Scalars["Int"]["output"];
|
||||||
@@ -212,12 +190,10 @@ export type DatetimeRangeAggregationInput = {
|
|||||||
export type DeployedConfigGql = {
|
export type DeployedConfigGql = {
|
||||||
__typename?: "DeployedConfigGQL";
|
__typename?: "DeployedConfigGQL";
|
||||||
allowNewUsers: Scalars["Boolean"]["output"];
|
allowNewUsers: Scalars["Boolean"]["output"];
|
||||||
bannerMessages: Array<BannerGql>;
|
|
||||||
devMode: Scalars["Boolean"]["output"];
|
devMode: Scalars["Boolean"]["output"];
|
||||||
environment: Scalars["String"]["output"];
|
environment: Scalars["String"]["output"];
|
||||||
firebase: Scalars["Boolean"]["output"];
|
firebase: Scalars["Boolean"]["output"];
|
||||||
minimumAllowedAppVersion: Scalars["String"]["output"];
|
minimumAllowedAppVersion: Scalars["String"]["output"];
|
||||||
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DoesNotOwnShotErr = {
|
export type DoesNotOwnShotErr = {
|
||||||
@@ -2277,21 +2253,17 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|||||||
export type Mutation = {
|
export type Mutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
addAnnotationToShot: AddShotAnnotationReturn;
|
addAnnotationToShot: AddShotAnnotationReturn;
|
||||||
cancelSubscription: UserSubscriptionStatusGql;
|
|
||||||
commentOnVideo: Scalars["Boolean"]["output"];
|
commentOnVideo: Scalars["Boolean"]["output"];
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createSubscription: CreateSubscriptionResultGql;
|
|
||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
deleteComment: Scalars["Boolean"]["output"];
|
deleteComment: Scalars["Boolean"]["output"];
|
||||||
deleteTags: Scalars["Boolean"]["output"];
|
deleteTags: Scalars["Boolean"]["output"];
|
||||||
deleteUser: Scalars["Boolean"]["output"];
|
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
editComment: Scalars["Boolean"]["output"];
|
editComment: Scalars["Boolean"]["output"];
|
||||||
editProfileImageUri: UserGql;
|
editProfileImageUri: UserGql;
|
||||||
editShot: EditShotReturn;
|
editShot: EditShotReturn;
|
||||||
editUploadStream: Scalars["Boolean"]["output"];
|
editUploadStream: Scalars["Boolean"]["output"];
|
||||||
editUser: UserGql;
|
editUser: UserGql;
|
||||||
ensureStripeCustomerExists: UserGql;
|
|
||||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||||
followUser: UserGql;
|
followUser: UserGql;
|
||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
@@ -2321,10 +2293,6 @@ export type MutationCreateBucketSetArgs = {
|
|||||||
params: CreateBucketSetInput;
|
params: CreateBucketSetInput;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCreateSubscriptionArgs = {
|
|
||||||
priceId: Scalars["String"]["input"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MutationCreateUploadStreamArgs = {
|
export type MutationCreateUploadStreamArgs = {
|
||||||
videoMetadata: VideoMetadataInput;
|
videoMetadata: VideoMetadataInput;
|
||||||
};
|
};
|
||||||
@@ -2506,7 +2474,6 @@ export type Query = {
|
|||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
getFeedVideos: VideoHistoryGql;
|
getFeedVideos: VideoHistoryGql;
|
||||||
@@ -2524,11 +2491,9 @@ export type Query = {
|
|||||||
getTableState: TableStateGql;
|
getTableState: TableStateGql;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGql;
|
|
||||||
getUserTags: Array<TagGql>;
|
getUserTags: Array<TagGql>;
|
||||||
getUserVideos: VideoHistoryGql;
|
getUserVideos: VideoHistoryGql;
|
||||||
getUsernames: Array<Scalars["String"]["output"]>;
|
getUsernames: Array<Scalars["String"]["output"]>;
|
||||||
getUsersMatching: Array<UserGql>;
|
|
||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||||
getVideos: Array<VideoGql>;
|
getVideos: Array<VideoGql>;
|
||||||
@@ -2651,12 +2616,6 @@ export type QueryGetUsernamesArgs = {
|
|||||||
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetUsersMatchingArgs = {
|
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type QueryGetVideoArgs = {
|
export type QueryGetVideoArgs = {
|
||||||
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
@@ -2933,42 +2892,6 @@ export enum StreamSegmentTypeEnum {
|
|||||||
RbChunkedMp4 = "RB_CHUNKED_MP4",
|
RbChunkedMp4 = "RB_CHUNKED_MP4",
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StripePriceGql = {
|
|
||||||
__typename?: "StripePriceGQL";
|
|
||||||
active: Scalars["Boolean"]["output"];
|
|
||||||
currency: Scalars["String"]["output"];
|
|
||||||
id: Scalars["String"]["output"];
|
|
||||||
recurringInterval?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
recurringIntervalCount?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
type: Scalars["String"]["output"];
|
|
||||||
unitAmount?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type StripeProductGql = {
|
|
||||||
__typename?: "StripeProductGQL";
|
|
||||||
active: Scalars["Boolean"]["output"];
|
|
||||||
description?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
id: Scalars["String"]["output"];
|
|
||||||
name: Scalars["String"]["output"];
|
|
||||||
prices: Array<StripePriceGql>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type StripeSubscriptionOptionsGql = {
|
|
||||||
__typename?: "StripeSubscriptionOptionsGQL";
|
|
||||||
products: Array<StripeProductGql>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum StripeSubscriptionStatusEnum {
|
|
||||||
Active = "ACTIVE",
|
|
||||||
Canceled = "CANCELED",
|
|
||||||
Incomplete = "INCOMPLETE",
|
|
||||||
IncompleteExpired = "INCOMPLETE_EXPIRED",
|
|
||||||
PastDue = "PAST_DUE",
|
|
||||||
Paused = "PAUSED",
|
|
||||||
Trialing = "TRIALING",
|
|
||||||
Unpaid = "UNPAID",
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SuccessfulAdd = {
|
export type SuccessfulAdd = {
|
||||||
__typename?: "SuccessfulAdd";
|
__typename?: "SuccessfulAdd";
|
||||||
value: Scalars["Boolean"]["output"];
|
value: Scalars["Boolean"]["output"];
|
||||||
@@ -3094,7 +3017,6 @@ export type UserGql = {
|
|||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
isAdmin?: Maybe<Scalars["Boolean"]["output"]>;
|
isAdmin?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
stripeCustomerId?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
username: Scalars["String"]["output"];
|
username: Scalars["String"]["output"];
|
||||||
videosPrivateByDefault?: Maybe<Scalars["Boolean"]["output"]>;
|
videosPrivateByDefault?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
@@ -3127,17 +3049,6 @@ export type UserShotCountEntry = {
|
|||||||
videos: Scalars["Int"]["output"];
|
videos: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserSubscriptionStatusGql = {
|
|
||||||
__typename?: "UserSubscriptionStatusGQL";
|
|
||||||
currentPeriodEnd?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
currentPeriodStart?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
|
||||||
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
stripeSubscriptionId?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
subscriptionStatus?: Maybe<StripeSubscriptionStatusEnum>;
|
|
||||||
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type VideoFeedInputGql =
|
export type VideoFeedInputGql =
|
||||||
| {
|
| {
|
||||||
allUsers: Scalars["Boolean"]["input"];
|
allUsers: Scalars["Boolean"]["input"];
|
||||||
@@ -3226,11 +3137,8 @@ export type VideoProcessingErrorGql = {
|
|||||||
|
|
||||||
export type VideoProcessingGql = {
|
export type VideoProcessingGql = {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
currentSegment?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
errors: Array<VideoProcessingErrorGql>;
|
errors: Array<VideoProcessingErrorGql>;
|
||||||
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
|
||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
statuses: Array<VideoProcessingStatusGql>;
|
statuses: Array<VideoProcessingStatusGql>;
|
||||||
};
|
};
|
||||||
@@ -3344,16 +3252,6 @@ export type GetDeployedConfigQuery = {
|
|||||||
environment: string;
|
environment: string;
|
||||||
firebase: boolean;
|
firebase: boolean;
|
||||||
minimumAllowedAppVersion: string;
|
minimumAllowedAppVersion: string;
|
||||||
subscriptionGatingEnabled: boolean;
|
|
||||||
bannerMessages: Array<{
|
|
||||||
__typename?: "BannerGQL";
|
|
||||||
color: string;
|
|
||||||
dismissible: boolean;
|
|
||||||
id: number;
|
|
||||||
kind: BannerKindEnum;
|
|
||||||
message: string;
|
|
||||||
priority: number;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -3901,104 +3799,6 @@ export type GetMedalsQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EnsureStripeCustomerExistsMutationVariables = Exact<{
|
|
||||||
[key: string]: never;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type EnsureStripeCustomerExistsMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
ensureStripeCustomerExists: {
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
firebaseUid?: string | null;
|
|
||||||
username: string;
|
|
||||||
stripeCustomerId?: string | null;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
isAdmin?: boolean | null;
|
|
||||||
fargoRating?: number | null;
|
|
||||||
videosPrivateByDefault?: boolean | null;
|
|
||||||
createdAt?: any | null;
|
|
||||||
updatedAt?: any | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CreateSubscriptionMutationVariables = Exact<{
|
|
||||||
priceId: Scalars["String"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type CreateSubscriptionMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
createSubscription: {
|
|
||||||
__typename?: "CreateSubscriptionResultGQL";
|
|
||||||
checkoutUrl: string;
|
|
||||||
sessionId: string;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetAvailableSubscriptionOptionsQueryVariables = Exact<{
|
|
||||||
[key: string]: never;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetAvailableSubscriptionOptionsQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getAvailableSubscriptionOptions: {
|
|
||||||
__typename?: "StripeSubscriptionOptionsGQL";
|
|
||||||
products: Array<{
|
|
||||||
__typename?: "StripeProductGQL";
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
description?: string | null;
|
|
||||||
active: boolean;
|
|
||||||
prices: Array<{
|
|
||||||
__typename?: "StripePriceGQL";
|
|
||||||
id: string;
|
|
||||||
currency: string;
|
|
||||||
unitAmount?: number | null;
|
|
||||||
recurringInterval?: string | null;
|
|
||||||
recurringIntervalCount?: number | null;
|
|
||||||
type: string;
|
|
||||||
active: boolean;
|
|
||||||
}>;
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetSubscriptionStatusQueryVariables = Exact<{
|
|
||||||
[key: string]: never;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetSubscriptionStatusQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getUserSubscriptionStatus: {
|
|
||||||
__typename?: "UserSubscriptionStatusGQL";
|
|
||||||
hasActiveSubscription: boolean;
|
|
||||||
subscriptionStatus?: StripeSubscriptionStatusEnum | null;
|
|
||||||
currentPeriodStart?: any | null;
|
|
||||||
currentPeriodEnd?: any | null;
|
|
||||||
validUntil?: any | null;
|
|
||||||
stripePriceId?: string | null;
|
|
||||||
stripeSubscriptionId?: string | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CancelSubscriptionMutationVariables = Exact<{
|
|
||||||
[key: string]: never;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type CancelSubscriptionMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
cancelSubscription: {
|
|
||||||
__typename?: "UserSubscriptionStatusGQL";
|
|
||||||
hasActiveSubscription: boolean;
|
|
||||||
subscriptionStatus?: StripeSubscriptionStatusEnum | null;
|
|
||||||
currentPeriodStart?: any | null;
|
|
||||||
currentPeriodEnd?: any | null;
|
|
||||||
validUntil?: any | null;
|
|
||||||
stripePriceId?: string | null;
|
|
||||||
stripeSubscriptionId?: string | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type ReactToVideoMutationVariables = Exact<{
|
export type ReactToVideoMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
reaction?: InputMaybe<ReactionEnum>;
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
@@ -4814,13 +4614,6 @@ export type EditUserMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DeleteUserMutationVariables = Exact<{ [key: string]: never }>;
|
|
||||||
|
|
||||||
export type DeleteUserMutation = {
|
|
||||||
__typename?: "Mutation";
|
|
||||||
deleteUser: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type UserFragmentFragment = {
|
export type UserFragmentFragment = {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -6174,15 +5967,6 @@ export const GetDeployedConfigDocument = gql`
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
|
||||||
bannerMessages {
|
|
||||||
color
|
|
||||||
dismissible
|
|
||||||
id
|
|
||||||
kind
|
|
||||||
message
|
|
||||||
priority
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -6814,335 +6598,6 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
|||||||
GetMedalsQuery,
|
GetMedalsQuery,
|
||||||
GetMedalsQueryVariables
|
GetMedalsQueryVariables
|
||||||
>;
|
>;
|
||||||
export const EnsureStripeCustomerExistsDocument = gql`
|
|
||||||
mutation EnsureStripeCustomerExists {
|
|
||||||
ensureStripeCustomerExists {
|
|
||||||
id
|
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
stripeCustomerId
|
|
||||||
profileImageUri
|
|
||||||
isAdmin
|
|
||||||
fargoRating
|
|
||||||
videosPrivateByDefault
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type EnsureStripeCustomerExistsMutationFn = Apollo.MutationFunction<
|
|
||||||
EnsureStripeCustomerExistsMutation,
|
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useEnsureStripeCustomerExistsMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useEnsureStripeCustomerExistsMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useEnsureStripeCustomerExistsMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [ensureStripeCustomerExistsMutation, { data, loading, error }] = useEnsureStripeCustomerExistsMutation({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useEnsureStripeCustomerExistsMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
EnsureStripeCustomerExistsMutation,
|
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
EnsureStripeCustomerExistsMutation,
|
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
|
||||||
>(EnsureStripeCustomerExistsDocument, options);
|
|
||||||
}
|
|
||||||
export type EnsureStripeCustomerExistsMutationHookResult = ReturnType<
|
|
||||||
typeof useEnsureStripeCustomerExistsMutation
|
|
||||||
>;
|
|
||||||
export type EnsureStripeCustomerExistsMutationResult =
|
|
||||||
Apollo.MutationResult<EnsureStripeCustomerExistsMutation>;
|
|
||||||
export type EnsureStripeCustomerExistsMutationOptions =
|
|
||||||
Apollo.BaseMutationOptions<
|
|
||||||
EnsureStripeCustomerExistsMutation,
|
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
|
||||||
>;
|
|
||||||
export const CreateSubscriptionDocument = gql`
|
|
||||||
mutation CreateSubscription($priceId: String!) {
|
|
||||||
createSubscription(priceId: $priceId) {
|
|
||||||
checkoutUrl
|
|
||||||
sessionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type CreateSubscriptionMutationFn = Apollo.MutationFunction<
|
|
||||||
CreateSubscriptionMutation,
|
|
||||||
CreateSubscriptionMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useCreateSubscriptionMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useCreateSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useCreateSubscriptionMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [createSubscriptionMutation, { data, loading, error }] = useCreateSubscriptionMutation({
|
|
||||||
* variables: {
|
|
||||||
* priceId: // value for 'priceId'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useCreateSubscriptionMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
CreateSubscriptionMutation,
|
|
||||||
CreateSubscriptionMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
CreateSubscriptionMutation,
|
|
||||||
CreateSubscriptionMutationVariables
|
|
||||||
>(CreateSubscriptionDocument, options);
|
|
||||||
}
|
|
||||||
export type CreateSubscriptionMutationHookResult = ReturnType<
|
|
||||||
typeof useCreateSubscriptionMutation
|
|
||||||
>;
|
|
||||||
export type CreateSubscriptionMutationResult =
|
|
||||||
Apollo.MutationResult<CreateSubscriptionMutation>;
|
|
||||||
export type CreateSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
CreateSubscriptionMutation,
|
|
||||||
CreateSubscriptionMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetAvailableSubscriptionOptionsDocument = gql`
|
|
||||||
query GetAvailableSubscriptionOptions {
|
|
||||||
getAvailableSubscriptionOptions {
|
|
||||||
products {
|
|
||||||
id
|
|
||||||
name
|
|
||||||
description
|
|
||||||
active
|
|
||||||
prices {
|
|
||||||
id
|
|
||||||
currency
|
|
||||||
unitAmount
|
|
||||||
recurringInterval
|
|
||||||
recurringIntervalCount
|
|
||||||
type
|
|
||||||
active
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetAvailableSubscriptionOptionsQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetAvailableSubscriptionOptionsQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetAvailableSubscriptionOptionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
||||||
* you can use to render your UI.
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const { data, loading, error } = useGetAvailableSubscriptionOptionsQuery({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetAvailableSubscriptionOptionsQuery(
|
|
||||||
baseOptions?: Apollo.QueryHookOptions<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>(GetAvailableSubscriptionOptionsDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetAvailableSubscriptionOptionsLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>(GetAvailableSubscriptionOptionsDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetAvailableSubscriptionOptionsSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>(GetAvailableSubscriptionOptionsDocument, options);
|
|
||||||
}
|
|
||||||
export type GetAvailableSubscriptionOptionsQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAvailableSubscriptionOptionsQuery
|
|
||||||
>;
|
|
||||||
export type GetAvailableSubscriptionOptionsLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAvailableSubscriptionOptionsLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetAvailableSubscriptionOptionsSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetAvailableSubscriptionOptionsSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetAvailableSubscriptionOptionsQueryResult = Apollo.QueryResult<
|
|
||||||
GetAvailableSubscriptionOptionsQuery,
|
|
||||||
GetAvailableSubscriptionOptionsQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetSubscriptionStatusDocument = gql`
|
|
||||||
query GetSubscriptionStatus {
|
|
||||||
getUserSubscriptionStatus {
|
|
||||||
hasActiveSubscription
|
|
||||||
subscriptionStatus
|
|
||||||
currentPeriodStart
|
|
||||||
currentPeriodEnd
|
|
||||||
validUntil
|
|
||||||
stripePriceId
|
|
||||||
stripeSubscriptionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetSubscriptionStatusQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetSubscriptionStatusQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetSubscriptionStatusQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
||||||
* you can use to render your UI.
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const { data, loading, error } = useGetSubscriptionStatusQuery({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetSubscriptionStatusQuery(
|
|
||||||
baseOptions?: Apollo.QueryHookOptions<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>(GetSubscriptionStatusDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetSubscriptionStatusLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>(GetSubscriptionStatusDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetSubscriptionStatusSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>(GetSubscriptionStatusDocument, options);
|
|
||||||
}
|
|
||||||
export type GetSubscriptionStatusQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSubscriptionStatusQuery
|
|
||||||
>;
|
|
||||||
export type GetSubscriptionStatusLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSubscriptionStatusLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetSubscriptionStatusSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetSubscriptionStatusSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetSubscriptionStatusQueryResult = Apollo.QueryResult<
|
|
||||||
GetSubscriptionStatusQuery,
|
|
||||||
GetSubscriptionStatusQueryVariables
|
|
||||||
>;
|
|
||||||
export const CancelSubscriptionDocument = gql`
|
|
||||||
mutation CancelSubscription {
|
|
||||||
cancelSubscription {
|
|
||||||
hasActiveSubscription
|
|
||||||
subscriptionStatus
|
|
||||||
currentPeriodStart
|
|
||||||
currentPeriodEnd
|
|
||||||
validUntil
|
|
||||||
stripePriceId
|
|
||||||
stripeSubscriptionId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type CancelSubscriptionMutationFn = Apollo.MutationFunction<
|
|
||||||
CancelSubscriptionMutation,
|
|
||||||
CancelSubscriptionMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useCancelSubscriptionMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useCancelSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useCancelSubscriptionMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [cancelSubscriptionMutation, { data, loading, error }] = useCancelSubscriptionMutation({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useCancelSubscriptionMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
CancelSubscriptionMutation,
|
|
||||||
CancelSubscriptionMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<
|
|
||||||
CancelSubscriptionMutation,
|
|
||||||
CancelSubscriptionMutationVariables
|
|
||||||
>(CancelSubscriptionDocument, options);
|
|
||||||
}
|
|
||||||
export type CancelSubscriptionMutationHookResult = ReturnType<
|
|
||||||
typeof useCancelSubscriptionMutation
|
|
||||||
>;
|
|
||||||
export type CancelSubscriptionMutationResult =
|
|
||||||
Apollo.MutationResult<CancelSubscriptionMutation>;
|
|
||||||
export type CancelSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
CancelSubscriptionMutation,
|
|
||||||
CancelSubscriptionMutationVariables
|
|
||||||
>;
|
|
||||||
export const ReactToVideoDocument = gql`
|
export const ReactToVideoDocument = gql`
|
||||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||||
@@ -9113,53 +8568,6 @@ export type EditUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
EditUserMutation,
|
EditUserMutation,
|
||||||
EditUserMutationVariables
|
EditUserMutationVariables
|
||||||
>;
|
>;
|
||||||
export const DeleteUserDocument = gql`
|
|
||||||
mutation deleteUser {
|
|
||||||
deleteUser
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
export type DeleteUserMutationFn = Apollo.MutationFunction<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useDeleteUserMutation__
|
|
||||||
*
|
|
||||||
* To run a mutation, you first call `useDeleteUserMutation` within a React component and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useDeleteUserMutation` returns a tuple that includes:
|
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
|
||||||
*
|
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const [deleteUserMutation, { data, loading, error }] = useDeleteUserMutation({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useDeleteUserMutation(
|
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useMutation<DeleteUserMutation, DeleteUserMutationVariables>(
|
|
||||||
DeleteUserDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export type DeleteUserMutationHookResult = ReturnType<
|
|
||||||
typeof useDeleteUserMutation
|
|
||||||
>;
|
|
||||||
export type DeleteUserMutationResult =
|
|
||||||
Apollo.MutationResult<DeleteUserMutation>;
|
|
||||||
export type DeleteUserMutationOptions = Apollo.BaseMutationOptions<
|
|
||||||
DeleteUserMutation,
|
|
||||||
DeleteUserMutationVariables
|
|
||||||
>;
|
|
||||||
export const GetStreamMonitoringDetailsDocument = gql`
|
export const GetStreamMonitoringDetailsDocument = gql`
|
||||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||||
|
@@ -5,14 +5,5 @@ query getDeployedConfig {
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
subscriptionGatingEnabled
|
|
||||||
bannerMessages {
|
|
||||||
color
|
|
||||||
dismissible
|
|
||||||
id
|
|
||||||
kind
|
|
||||||
message
|
|
||||||
priority
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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
|
|
||||||
}
|
|
||||||
}
|
|
@@ -157,10 +157,6 @@ mutation editUser(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation deleteUser {
|
|
||||||
deleteUser
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment UserFragment on UserGQL {
|
fragment UserFragment on UserGQL {
|
||||||
id
|
id
|
||||||
firebaseUid
|
firebaseUid
|
||||||
|
@@ -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,7 +335,6 @@ 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
|
||||||
@@ -571,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 {
|
||||||
@@ -829,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!
|
||||||
}
|
}
|
||||||
@@ -928,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!
|
||||||
@@ -1041,11 +966,6 @@ input EditUserInputGQL {
|
|||||||
videosPrivateByDefault: Boolean = null
|
videosPrivateByDefault: Boolean = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateSubscriptionResultGQL {
|
|
||||||
checkoutUrl: String!
|
|
||||||
sessionId: String!
|
|
||||||
}
|
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user