Compare commits
19 Commits
01fb113e1c
...
master
Author | SHA1 | Date | |
---|---|---|---|
5c62d45068 | |||
a7649351b3 | |||
051555f9fc | |||
d7bbe882b7 | |||
e783050a02 | |||
d8ee83c627 | |||
d32cd87a60 | |||
b956cfe0f9 | |||
3f520a0331 | |||
a563834269 | |||
80a5bded47 | |||
16d8510465 | |||
9b21ce1e3a | |||
dde4cfd99b | |||
845fb361b9 | |||
9f5fcc066e | |||
dfb0361e12 | |||
77477d63db | |||
a497abd44d |
592
src/index.tsx
592
src/index.tsx
@@ -217,6 +217,7 @@ export type DeployedConfigGql = {
|
|||||||
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 = {
|
||||||
@@ -236,6 +237,7 @@ export type EditShotReturn = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type EditUserInputGql = {
|
export type EditUserInputGql = {
|
||||||
|
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
@@ -2276,6 +2278,9 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|||||||
export type Mutation = {
|
export type Mutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
addAnnotationToShot: AddShotAnnotationReturn;
|
addAnnotationToShot: AddShotAnnotationReturn;
|
||||||
|
blockContent: Scalars["Boolean"]["output"];
|
||||||
|
blockUser: Scalars["Boolean"]["output"];
|
||||||
|
cancelSubscription: UserSubscriptionStatusGql;
|
||||||
commentOnVideo: Scalars["Boolean"]["output"];
|
commentOnVideo: Scalars["Boolean"]["output"];
|
||||||
createBucketSet: BucketSetGql;
|
createBucketSet: BucketSetGql;
|
||||||
createSubscription: CreateSubscriptionResultGql;
|
createSubscription: CreateSubscriptionResultGql;
|
||||||
@@ -2296,6 +2301,7 @@ export type Mutation = {
|
|||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
reactToVideo: Scalars["Boolean"]["output"];
|
reactToVideo: Scalars["Boolean"]["output"];
|
||||||
|
reportContent: Scalars["Boolean"]["output"];
|
||||||
retireTags: Scalars["Boolean"]["output"];
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
@@ -2309,6 +2315,14 @@ export type MutationAddAnnotationToShotArgs = {
|
|||||||
shotId: Scalars["Int"]["input"];
|
shotId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationBlockContentArgs = {
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MutationBlockUserArgs = {
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationCommentOnVideoArgs = {
|
export type MutationCommentOnVideoArgs = {
|
||||||
message: Scalars["String"]["input"];
|
message: Scalars["String"]["input"];
|
||||||
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
@@ -2392,6 +2406,12 @@ export type MutationReactToVideoArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationReportContentArgs = {
|
||||||
|
customReason?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
reason: ReportReasonEnum;
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationRetireTagsArgs = {
|
export type MutationRetireTagsArgs = {
|
||||||
tagIds: Array<Scalars["Int"]["input"]>;
|
tagIds: Array<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
@@ -2522,6 +2542,7 @@ 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"]>;
|
||||||
@@ -2688,6 +2709,15 @@ export type ReactionGql = {
|
|||||||
videoId: Scalars["Int"]["output"];
|
videoId: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum ReportReasonEnum {
|
||||||
|
Copyright = "COPYRIGHT",
|
||||||
|
Hate = "HATE",
|
||||||
|
Nudity = "NUDITY",
|
||||||
|
Other = "OTHER",
|
||||||
|
Spam = "SPAM",
|
||||||
|
Violence = "VIOLENCE",
|
||||||
|
}
|
||||||
|
|
||||||
export type RequestedMedalsGql = {
|
export type RequestedMedalsGql = {
|
||||||
__typename?: "RequestedMedalsGQL";
|
__typename?: "RequestedMedalsGQL";
|
||||||
dailyMakes50?: Maybe<MedalGql>;
|
dailyMakes50?: Maybe<MedalGql>;
|
||||||
@@ -2955,6 +2985,17 @@ export type StripeSubscriptionOptionsGql = {
|
|||||||
products: Array<StripeProductGql>;
|
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"];
|
||||||
@@ -3072,6 +3113,7 @@ export type UploadStreamGql = {
|
|||||||
export type UserGql = {
|
export type UserGql = {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
activeVideoId?: Maybe<Scalars["Int"]["output"]>;
|
activeVideoId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
agreesToMarketing?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
fargoRating?: Maybe<Scalars["Int"]["output"]>;
|
fargoRating?: Maybe<Scalars["Int"]["output"]>;
|
||||||
firebaseUid?: Maybe<Scalars["String"]["output"]>;
|
firebaseUid?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -3113,6 +3155,17 @@ 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"];
|
||||||
@@ -3319,6 +3372,7 @@ export type GetDeployedConfigQuery = {
|
|||||||
environment: string;
|
environment: string;
|
||||||
firebase: boolean;
|
firebase: boolean;
|
||||||
minimumAllowedAppVersion: string;
|
minimumAllowedAppVersion: string;
|
||||||
|
subscriptionGatingEnabled: boolean;
|
||||||
bannerMessages: Array<{
|
bannerMessages: Array<{
|
||||||
__typename?: "BannerGQL";
|
__typename?: "BannerGQL";
|
||||||
color: string;
|
color: string;
|
||||||
@@ -3331,6 +3385,32 @@ export type GetDeployedConfigQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type BlockContentMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type BlockContentMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
blockContent: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type BlockUserMutationVariables = Exact<{
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type BlockUserMutation = { __typename?: "Mutation"; blockUser: boolean };
|
||||||
|
|
||||||
|
export type ReportContentMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
reason: ReportReasonEnum;
|
||||||
|
customReason?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type ReportContentMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
reportContent: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetFeedQueryVariables = Exact<{
|
export type GetFeedQueryVariables = Exact<{
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
@@ -3896,6 +3976,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<{
|
export type ReactToVideoMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
reaction?: InputMaybe<ReactionEnum>;
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
@@ -4508,6 +4665,7 @@ export type EditProfileImageUriMutation = {
|
|||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
|
agreesToMarketing?: boolean | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4527,6 +4685,7 @@ export type GetLoggedInUserQuery = {
|
|||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
|
agreesToMarketing?: boolean | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4548,6 +4707,7 @@ export type GetUserQuery = {
|
|||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
|
agreesToMarketing?: boolean | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4696,6 +4856,7 @@ export type EditUserMutationVariables = Exact<{
|
|||||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
|
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type EditUserMutation = {
|
export type EditUserMutation = {
|
||||||
@@ -4708,6 +4869,7 @@ export type EditUserMutation = {
|
|||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
|
agreesToMarketing?: boolean | null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4730,6 +4892,7 @@ export type UserFragmentFragment = {
|
|||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
|
agreesToMarketing?: boolean | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
||||||
@@ -5692,6 +5855,7 @@ export const UserFragmentFragmentDoc = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const VideoStreamMetadataFragmentDoc = gql`
|
export const VideoStreamMetadataFragmentDoc = gql`
|
||||||
@@ -6071,6 +6235,7 @@ export const GetDeployedConfigDocument = gql`
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
|
subscriptionGatingEnabled
|
||||||
bannerMessages {
|
bannerMessages {
|
||||||
color
|
color
|
||||||
dismissible
|
dismissible
|
||||||
@@ -6147,6 +6312,159 @@ export type GetDeployedConfigQueryResult = Apollo.QueryResult<
|
|||||||
GetDeployedConfigQuery,
|
GetDeployedConfigQuery,
|
||||||
GetDeployedConfigQueryVariables
|
GetDeployedConfigQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const BlockContentDocument = gql`
|
||||||
|
mutation blockContent($videoId: Int!) {
|
||||||
|
blockContent(videoId: $videoId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type BlockContentMutationFn = Apollo.MutationFunction<
|
||||||
|
BlockContentMutation,
|
||||||
|
BlockContentMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useBlockContentMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useBlockContentMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useBlockContentMutation` 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 [blockContentMutation, { data, loading, error }] = useBlockContentMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useBlockContentMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
BlockContentMutation,
|
||||||
|
BlockContentMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
BlockContentMutation,
|
||||||
|
BlockContentMutationVariables
|
||||||
|
>(BlockContentDocument, options);
|
||||||
|
}
|
||||||
|
export type BlockContentMutationHookResult = ReturnType<
|
||||||
|
typeof useBlockContentMutation
|
||||||
|
>;
|
||||||
|
export type BlockContentMutationResult =
|
||||||
|
Apollo.MutationResult<BlockContentMutation>;
|
||||||
|
export type BlockContentMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
BlockContentMutation,
|
||||||
|
BlockContentMutationVariables
|
||||||
|
>;
|
||||||
|
export const BlockUserDocument = gql`
|
||||||
|
mutation blockUser($userId: Int!) {
|
||||||
|
blockUser(userId: $userId)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type BlockUserMutationFn = Apollo.MutationFunction<
|
||||||
|
BlockUserMutation,
|
||||||
|
BlockUserMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useBlockUserMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useBlockUserMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useBlockUserMutation` 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 [blockUserMutation, { data, loading, error }] = useBlockUserMutation({
|
||||||
|
* variables: {
|
||||||
|
* userId: // value for 'userId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useBlockUserMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
BlockUserMutation,
|
||||||
|
BlockUserMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<BlockUserMutation, BlockUserMutationVariables>(
|
||||||
|
BlockUserDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export type BlockUserMutationHookResult = ReturnType<
|
||||||
|
typeof useBlockUserMutation
|
||||||
|
>;
|
||||||
|
export type BlockUserMutationResult = Apollo.MutationResult<BlockUserMutation>;
|
||||||
|
export type BlockUserMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
BlockUserMutation,
|
||||||
|
BlockUserMutationVariables
|
||||||
|
>;
|
||||||
|
export const ReportContentDocument = gql`
|
||||||
|
mutation reportContent(
|
||||||
|
$videoId: Int!
|
||||||
|
$reason: ReportReasonEnum!
|
||||||
|
$customReason: String = null
|
||||||
|
) {
|
||||||
|
reportContent(
|
||||||
|
videoId: $videoId
|
||||||
|
reason: $reason
|
||||||
|
customReason: $customReason
|
||||||
|
)
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type ReportContentMutationFn = Apollo.MutationFunction<
|
||||||
|
ReportContentMutation,
|
||||||
|
ReportContentMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useReportContentMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useReportContentMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useReportContentMutation` 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 [reportContentMutation, { data, loading, error }] = useReportContentMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* reason: // value for 'reason'
|
||||||
|
* customReason: // value for 'customReason'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useReportContentMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
ReportContentMutation,
|
||||||
|
ReportContentMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
ReportContentMutation,
|
||||||
|
ReportContentMutationVariables
|
||||||
|
>(ReportContentDocument, options);
|
||||||
|
}
|
||||||
|
export type ReportContentMutationHookResult = ReturnType<
|
||||||
|
typeof useReportContentMutation
|
||||||
|
>;
|
||||||
|
export type ReportContentMutationResult =
|
||||||
|
Apollo.MutationResult<ReportContentMutation>;
|
||||||
|
export type ReportContentMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
ReportContentMutation,
|
||||||
|
ReportContentMutationVariables
|
||||||
|
>;
|
||||||
export const GetFeedDocument = gql`
|
export const GetFeedDocument = gql`
|
||||||
query GetFeed(
|
query GetFeed(
|
||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
@@ -6769,6 +7087,276 @@ export type EnsureStripeCustomerExistsMutationOptions =
|
|||||||
EnsureStripeCustomerExistsMutation,
|
EnsureStripeCustomerExistsMutation,
|
||||||
EnsureStripeCustomerExistsMutationVariables
|
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)
|
||||||
@@ -8680,12 +9268,14 @@ export const EditUserDocument = gql`
|
|||||||
$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
|
||||||
@@ -8694,6 +9284,7 @@ export const EditUserDocument = gql`
|
|||||||
fargoRating
|
fargoRating
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -8718,6 +9309,7 @@ export type EditUserMutationFn = Apollo.MutationFunction<
|
|||||||
* username: // value for 'username'
|
* username: // value for 'username'
|
||||||
* fargoRating: // value for 'fargoRating'
|
* fargoRating: // value for 'fargoRating'
|
||||||
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
||||||
|
* agreesToMarketing: // value for 'agreesToMarketing'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@@ -5,6 +5,7 @@ query getDeployedConfig {
|
|||||||
environment
|
environment
|
||||||
firebase
|
firebase
|
||||||
minimumAllowedAppVersion
|
minimumAllowedAppVersion
|
||||||
|
subscriptionGatingEnabled
|
||||||
bannerMessages {
|
bannerMessages {
|
||||||
color
|
color
|
||||||
dismissible
|
dismissible
|
||||||
|
15
src/operations/content-moderation.gql
Normal file
15
src/operations/content-moderation.gql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
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)
|
||||||
|
}
|
@@ -12,3 +12,54 @@ mutation EnsureStripeCustomerExists {
|
|||||||
updatedAt
|
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,12 +140,14 @@ 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
|
||||||
@@ -154,6 +156,7 @@ mutation editUser(
|
|||||||
fargoRating
|
fargoRating
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,4 +175,5 @@ fragment UserFragment on UserGQL {
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
|
@@ -82,6 +82,7 @@ type Query {
|
|||||||
after: String = null
|
after: String = null
|
||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
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
|
||||||
@@ -297,6 +298,7 @@ type DeployedConfigGQL {
|
|||||||
devMode: Boolean!
|
devMode: Boolean!
|
||||||
environment: String!
|
environment: String!
|
||||||
minimumAllowedAppVersion: String!
|
minimumAllowedAppVersion: String!
|
||||||
|
subscriptionGatingEnabled: Boolean!
|
||||||
bannerMessages: [BannerGQL!]!
|
bannerMessages: [BannerGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -362,6 +364,7 @@ type UserGQL {
|
|||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
videosPrivateByDefault: Boolean
|
videosPrivateByDefault: Boolean
|
||||||
|
agreesToMarketing: Boolean
|
||||||
following: [UserGQL!]
|
following: [UserGQL!]
|
||||||
followers: [UserGQL!]
|
followers: [UserGQL!]
|
||||||
}
|
}
|
||||||
@@ -849,6 +852,27 @@ type StripePriceGQL {
|
|||||||
active: Boolean!
|
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!
|
||||||
}
|
}
|
||||||
@@ -884,6 +908,13 @@ 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!
|
||||||
@@ -908,6 +939,7 @@ type Mutation {
|
|||||||
ensureStripeCustomerExists: UserGQL!
|
ensureStripeCustomerExists: UserGQL!
|
||||||
deleteUser: Boolean!
|
deleteUser: Boolean!
|
||||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||||
|
cancelSubscription: UserSubscriptionStatusGQL!
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
@@ -930,6 +962,15 @@ input CreateBucketSetInput {
|
|||||||
buckets: [BucketInputGQL!]!
|
buckets: [BucketInputGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ReportReasonEnum {
|
||||||
|
SPAM
|
||||||
|
NUDITY
|
||||||
|
VIOLENCE
|
||||||
|
HATE
|
||||||
|
COPYRIGHT
|
||||||
|
OTHER
|
||||||
|
}
|
||||||
|
|
||||||
type AddShotAnnotationReturn {
|
type AddShotAnnotationReturn {
|
||||||
value: SuccessfulAddAddShotAnnotationErrors!
|
value: SuccessfulAddAddShotAnnotationErrors!
|
||||||
}
|
}
|
||||||
@@ -1015,6 +1056,7 @@ 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 {
|
type CreateSubscriptionResultGQL {
|
||||||
|
Reference in New Issue
Block a user