dean/add-home-feed-option #208
155
src/index.tsx
155
src/index.tsx
@@ -3546,12 +3546,7 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
comments: Array<{
|
comments: Array<{
|
||||||
@@ -3563,12 +3558,7 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
replies: Array<{
|
replies: Array<{
|
||||||
__typename?: "CommentGQL";
|
__typename?: "CommentGQL";
|
||||||
@@ -3579,12 +3569,7 @@ export type GetFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3602,12 +3587,7 @@ export type UserSocialsFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type VideoCardFieldsFragment = {
|
export type VideoCardFieldsFragment = {
|
||||||
@@ -3664,12 +3644,7 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
comments: Array<{
|
comments: Array<{
|
||||||
@@ -3681,12 +3656,7 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
replies: Array<{
|
replies: Array<{
|
||||||
__typename?: "CommentGQL";
|
__typename?: "CommentGQL";
|
||||||
@@ -3697,12 +3667,7 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3721,6 +3686,7 @@ export type GetVideoFeedQuery = {
|
|||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getFeedVideos: {
|
getFeedVideos: {
|
||||||
__typename?: "VideoHistoryGQL";
|
__typename?: "VideoHistoryGQL";
|
||||||
|
hasFollowing: boolean;
|
||||||
videos: Array<{
|
videos: Array<{
|
||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -3778,12 +3744,7 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
comments: Array<{
|
comments: Array<{
|
||||||
@@ -3795,12 +3756,7 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
replies: Array<{
|
replies: Array<{
|
||||||
__typename?: "CommentGQL";
|
__typename?: "CommentGQL";
|
||||||
@@ -3811,12 +3767,7 @@ export type GetVideoFeedQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -4847,21 +4798,7 @@ export type FollowUserMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type FollowUserMutation = {
|
export type FollowUserMutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
followUser: {
|
followUser: { __typename?: "UserGQL"; id: number; username: string };
|
||||||
__typename?: "UserGQL";
|
|
||||||
username: string;
|
|
||||||
id: number;
|
|
||||||
following?: Array<{
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
}> | null;
|
|
||||||
followers?: Array<{
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
}> | null;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UnfollowUserMutationVariables = Exact<{
|
export type UnfollowUserMutationVariables = Exact<{
|
||||||
@@ -4870,21 +4807,7 @@ export type UnfollowUserMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type UnfollowUserMutation = {
|
export type UnfollowUserMutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
unfollowUser: {
|
unfollowUser: { __typename?: "UserGQL"; id: number; username: string };
|
||||||
__typename?: "UserGQL";
|
|
||||||
username: string;
|
|
||||||
id: number;
|
|
||||||
following?: Array<{
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
}> | null;
|
|
||||||
followers?: Array<{
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
}> | null;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
||||||
@@ -4901,12 +4824,14 @@ export type GetUserFollowingFollowersQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
}> | null;
|
}> | null;
|
||||||
followers?: Array<{
|
followers?: Array<{
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
}> | null;
|
}> | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
@@ -5129,12 +5054,7 @@ export type GetVideoSocialDetailsByIdQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
comments: Array<{
|
comments: Array<{
|
||||||
@@ -5146,12 +5066,7 @@ export type GetVideoSocialDetailsByIdQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
replies: Array<{
|
replies: Array<{
|
||||||
__typename?: "CommentGQL";
|
__typename?: "CommentGQL";
|
||||||
@@ -5162,12 +5077,7 @@ export type GetVideoSocialDetailsByIdQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
followers?: Array<{
|
isFollowedByCurrentUser?: boolean | null;
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
}> | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
@@ -5755,11 +5665,7 @@ export const UserSocialsFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
followers {
|
isFollowedByCurrentUser
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const VideoCardFieldsFragmentDoc = gql`
|
export const VideoCardFieldsFragmentDoc = gql`
|
||||||
@@ -6636,6 +6542,7 @@ export const GetVideoFeedDocument = gql`
|
|||||||
hasNextPage
|
hasNextPage
|
||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
|
hasFollowing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
${VideoCardFieldsFragmentDoc}
|
${VideoCardFieldsFragmentDoc}
|
||||||
@@ -9063,16 +8970,8 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
|
|||||||
export const FollowUserDocument = gql`
|
export const FollowUserDocument = gql`
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -9122,16 +9021,8 @@ export type FollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
export const UnfollowUserDocument = gql`
|
export const UnfollowUserDocument = gql`
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -9186,11 +9077,13 @@ export const GetUserFollowingFollowersDocument = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,11 +19,7 @@ fragment UserSocialsFields on UserGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
followers {
|
isFollowedByCurrentUser
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment VideoCardFields on VideoGQL {
|
fragment VideoCardFields on VideoGQL {
|
||||||
@@ -116,5 +112,6 @@ query GetVideoFeed(
|
|||||||
hasNextPage
|
hasNextPage
|
||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
|
hasFollowing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,31 +88,15 @@ query GetUserTags {
|
|||||||
|
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
username
|
|
||||||
id
|
id
|
||||||
following {
|
username
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,11 +107,13 @@ query getUserFollowingFollowers {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
isFollowedByCurrentUser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,11 +86,7 @@ fragment UserSocialsFields on UserGQL {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
followers {
|
isFollowedByCurrentUser
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||||
|
|||||||
Reference in New Issue
Block a user