|
|
|
@@ -217,6 +217,7 @@ export type DeployedConfigGql = {
|
|
|
|
|
environment: Scalars["String"]["output"];
|
|
|
|
|
firebase: Scalars["Boolean"]["output"];
|
|
|
|
|
minimumAllowedAppVersion: Scalars["String"]["output"];
|
|
|
|
|
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type DoesNotOwnShotErr = {
|
|
|
|
@@ -2232,15 +2233,6 @@ export type IntPoint2DInput = {
|
|
|
|
|
y: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type IntRangeFilter = {
|
|
|
|
|
greaterThan?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
greaterThanEqualTo?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
greaterThanInclusive?: Scalars["Boolean"]["input"];
|
|
|
|
|
includeOnNone?: Scalars["Boolean"]["input"];
|
|
|
|
|
lessThan?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
lessThanInclusive?: Scalars["Boolean"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MakePercentageIntervalGql = {
|
|
|
|
|
__typename?: "MakePercentageIntervalGQL";
|
|
|
|
|
elapsedTime: Scalars["Float"]["output"];
|
|
|
|
@@ -2285,6 +2277,9 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|
|
|
|
export type Mutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
addAnnotationToShot: AddShotAnnotationReturn;
|
|
|
|
|
blockContent: Scalars["Boolean"]["output"];
|
|
|
|
|
blockUser: Scalars["Boolean"]["output"];
|
|
|
|
|
cancelSubscription: UserSubscriptionStatusGql;
|
|
|
|
|
commentOnVideo: Scalars["Boolean"]["output"];
|
|
|
|
|
createBucketSet: BucketSetGql;
|
|
|
|
|
createSubscription: CreateSubscriptionResultGql;
|
|
|
|
@@ -2305,6 +2300,7 @@ export type Mutation = {
|
|
|
|
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
|
|
|
|
getUploadLink: GetUploadLinkReturn;
|
|
|
|
|
reactToVideo: Scalars["Boolean"]["output"];
|
|
|
|
|
reportContent: Scalars["Boolean"]["output"];
|
|
|
|
|
retireTags: Scalars["Boolean"]["output"];
|
|
|
|
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
|
|
|
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
|
|
|
@@ -2318,6 +2314,14 @@ export type MutationAddAnnotationToShotArgs = {
|
|
|
|
|
shotId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationBlockContentArgs = {
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationBlockUserArgs = {
|
|
|
|
|
userId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationCommentOnVideoArgs = {
|
|
|
|
|
message: Scalars["String"]["input"];
|
|
|
|
|
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
@@ -2401,6 +2405,12 @@ export type MutationReactToVideoArgs = {
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationReportContentArgs = {
|
|
|
|
|
customReason?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
reason: ReportReasonEnum;
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationRetireTagsArgs = {
|
|
|
|
|
tagIds: Array<Scalars["Int"]["input"]>;
|
|
|
|
|
};
|
|
|
|
@@ -2531,6 +2541,7 @@ export type Query = {
|
|
|
|
|
getTableState: TableStateGql;
|
|
|
|
|
getUser?: Maybe<UserGql>;
|
|
|
|
|
getUserRelationshipsMatching: UserRelationshipsResult;
|
|
|
|
|
getUserSubscriptionStatus: UserSubscriptionStatusGql;
|
|
|
|
|
getUserTags: Array<TagGql>;
|
|
|
|
|
getUserVideos: VideoHistoryGql;
|
|
|
|
|
getUsernames: Array<Scalars["String"]["output"]>;
|
|
|
|
@@ -2697,6 +2708,15 @@ export type ReactionGql = {
|
|
|
|
|
videoId: Scalars["Int"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export enum ReportReasonEnum {
|
|
|
|
|
Copyright = "COPYRIGHT",
|
|
|
|
|
Hate = "HATE",
|
|
|
|
|
Nudity = "NUDITY",
|
|
|
|
|
Other = "OTHER",
|
|
|
|
|
Spam = "SPAM",
|
|
|
|
|
Violence = "VIOLENCE",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type RequestedMedalsGql = {
|
|
|
|
|
__typename?: "RequestedMedalsGQL";
|
|
|
|
|
dailyMakes50?: Maybe<MedalGql>;
|
|
|
|
@@ -2964,6 +2984,17 @@ export type 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 = {
|
|
|
|
|
__typename?: "SuccessfulAdd";
|
|
|
|
|
value: Scalars["Boolean"]["output"];
|
|
|
|
@@ -3122,6 +3153,17 @@ export type UserShotCountEntry = {
|
|
|
|
|
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 =
|
|
|
|
|
| {
|
|
|
|
|
allUsers: Scalars["Boolean"]["input"];
|
|
|
|
@@ -3143,7 +3185,6 @@ export type VideoFilterInput = {
|
|
|
|
|
createdAt?: InputMaybe<DateRangeFilter>;
|
|
|
|
|
excludeVideosWithNoShots?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
reactionCount?: InputMaybe<IntRangeFilter>;
|
|
|
|
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3329,6 +3370,7 @@ export type GetDeployedConfigQuery = {
|
|
|
|
|
environment: string;
|
|
|
|
|
firebase: boolean;
|
|
|
|
|
minimumAllowedAppVersion: string;
|
|
|
|
|
subscriptionGatingEnabled: boolean;
|
|
|
|
|
bannerMessages: Array<{
|
|
|
|
|
__typename?: "BannerGQL";
|
|
|
|
|
color: string;
|
|
|
|
@@ -3906,6 +3948,83 @@ export type EnsureStripeCustomerExistsMutation = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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<{
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
reaction?: InputMaybe<ReactionEnum>;
|
|
|
|
@@ -6081,6 +6200,7 @@ export const GetDeployedConfigDocument = gql`
|
|
|
|
|
environment
|
|
|
|
|
firebase
|
|
|
|
|
minimumAllowedAppVersion
|
|
|
|
|
subscriptionGatingEnabled
|
|
|
|
|
bannerMessages {
|
|
|
|
|
color
|
|
|
|
|
dismissible
|
|
|
|
@@ -6779,6 +6899,276 @@ export type EnsureStripeCustomerExistsMutationOptions =
|
|
|
|
|
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`
|
|
|
|
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
|
|
|
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
|
|
|
|