Compare commits
4 Commits
d7bbe882b7
...
dean/add-h
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aac9879afc | ||
| a7649351b3 | |||
| 051555f9fc | |||
| e783050a02 |
193
src/index.tsx
193
src/index.tsx
@@ -237,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"]>;
|
||||||
@@ -3112,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"]>;
|
||||||
@@ -3221,6 +3223,7 @@ export type VideoGql = {
|
|||||||
|
|
||||||
export type VideoHistoryGql = {
|
export type VideoHistoryGql = {
|
||||||
__typename?: "VideoHistoryGQL";
|
__typename?: "VideoHistoryGQL";
|
||||||
|
hasFollowing: Scalars["Boolean"]["output"];
|
||||||
pageInfo: PageInfoGql;
|
pageInfo: PageInfoGql;
|
||||||
videos: Array<VideoGql>;
|
videos: Array<VideoGql>;
|
||||||
};
|
};
|
||||||
@@ -3383,6 +3386,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"]>;
|
||||||
@@ -4637,6 +4666,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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4656,6 +4686,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;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4677,6 +4708,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;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4825,6 +4857,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 = {
|
||||||
@@ -4837,6 +4870,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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -4859,6 +4893,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<{
|
||||||
@@ -5821,6 +5856,7 @@ export const UserFragmentFragmentDoc = gql`
|
|||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const VideoStreamMetadataFragmentDoc = gql`
|
export const VideoStreamMetadataFragmentDoc = gql`
|
||||||
@@ -6277,6 +6313,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
|
||||||
@@ -9080,12 +9269,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
|
||||||
@@ -9094,6 +9285,7 @@ export const EditUserDocument = gql`
|
|||||||
fargoRating
|
fargoRating
|
||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
|
agreesToMarketing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -9118,6 +9310,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'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
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)
|
||||||
|
}
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ enum BannerKindEnum {
|
|||||||
type VideoHistoryGQL {
|
type VideoHistoryGQL {
|
||||||
videos: [VideoGQL!]!
|
videos: [VideoGQL!]!
|
||||||
pageInfo: PageInfoGQL!
|
pageInfo: PageInfoGQL!
|
||||||
|
hasFollowing: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoGQL {
|
type VideoGQL {
|
||||||
@@ -364,6 +365,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!]
|
||||||
}
|
}
|
||||||
@@ -1055,6 +1057,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