|
|
|
@@ -2169,6 +2169,7 @@ export type Query = {
|
|
|
|
|
getUserTags: Array<TagGql>;
|
|
|
|
|
getUserVideos: VideoHistoryGql;
|
|
|
|
|
getUsernames: Array<Scalars["String"]["output"]>;
|
|
|
|
|
getUsernamesAndFollowing: UsernamesAndFollowingResponse;
|
|
|
|
|
getVideo: VideoGql;
|
|
|
|
|
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
|
|
|
|
getVideos: Array<VideoGql>;
|
|
|
|
@@ -2238,6 +2239,13 @@ export type QueryGetUsernamesArgs = {
|
|
|
|
|
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetUsernamesAndFollowingArgs = {
|
|
|
|
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
matchString?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
userId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetVideoArgs = {
|
|
|
|
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
@@ -2528,6 +2536,13 @@ export type UserPlayTimeGql = {
|
|
|
|
|
totalSeconds: Scalars["Float"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type UsernamesAndFollowingResponse = {
|
|
|
|
|
__typename?: "UsernamesAndFollowingResponse";
|
|
|
|
|
followers: Array<Scalars["Int"]["output"]>;
|
|
|
|
|
following: Array<Scalars["Int"]["output"]>;
|
|
|
|
|
usernames: Array<Scalars["String"]["output"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type VideoFilterInput = {
|
|
|
|
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
|
|
|
@@ -3119,6 +3134,23 @@ export type GetUsernamesQuery = {
|
|
|
|
|
getUsernames: Array<string>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetUsernamesAndFollowingQueryVariables = Exact<{
|
|
|
|
|
userId: Scalars["Int"]["input"];
|
|
|
|
|
matchString: Scalars["String"]["input"];
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetUsernamesAndFollowingQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getUsernamesAndFollowing: {
|
|
|
|
|
__typename?: "UsernamesAndFollowingResponse";
|
|
|
|
|
followers: Array<number>;
|
|
|
|
|
following: Array<number>;
|
|
|
|
|
usernames: Array<string>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
|
|
|
|
export type GetUserTagsQuery = {
|
|
|
|
@@ -5085,6 +5117,94 @@ export type GetUsernamesQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUsernamesQuery,
|
|
|
|
|
GetUsernamesQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetUsernamesAndFollowingDocument = gql`
|
|
|
|
|
query getUsernamesAndFollowing(
|
|
|
|
|
$userId: Int!
|
|
|
|
|
$matchString: String!
|
|
|
|
|
$limit: Int = null
|
|
|
|
|
$after: String = null
|
|
|
|
|
) {
|
|
|
|
|
getUsernamesAndFollowing(
|
|
|
|
|
userId: $userId
|
|
|
|
|
matchString: $matchString
|
|
|
|
|
limit: $limit
|
|
|
|
|
after: $after
|
|
|
|
|
) {
|
|
|
|
|
followers
|
|
|
|
|
following
|
|
|
|
|
usernames
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetUsernamesAndFollowingQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetUsernamesAndFollowingQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetUsernamesAndFollowingQuery` 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 } = useGetUsernamesAndFollowingQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* userId: // value for 'userId'
|
|
|
|
|
* matchString: // value for 'matchString'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* after: // value for 'after'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetUsernamesAndFollowingQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetUsernamesAndFollowingLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetUsernamesAndFollowingSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>(GetUsernamesAndFollowingDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetUsernamesAndFollowingQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetUsernamesAndFollowingSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetUsernamesAndFollowingQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUsernamesAndFollowingQuery,
|
|
|
|
|
GetUsernamesAndFollowingQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetUserTagsDocument = gql`
|
|
|
|
|
query GetUserTags {
|
|
|
|
|
getUserTags {
|
|
|
|
|