From 2554c1c4f382bf7b8e03d25c5648159f7280857d Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Fri, 25 Oct 2024 01:12:38 -0600 Subject: [PATCH] Return userGQL --- src/index.tsx | 22 +++++++++++++++------- src/schema.gql | 12 +++++++++--- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 368fc29..54c6fce 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2170,6 +2170,7 @@ export type Query = { getUserVideos: VideoHistoryGql; getUsernames: Array; getUsernamesAndFollowing: UsernamesAndFollowingResponse; + getUsernamesAndFollowingOld: UsernamesAndFollowingResponse; getVideo: VideoGql; getVideoMakePercentageIntervals: Array; getVideos: Array; @@ -2246,6 +2247,13 @@ export type QueryGetUsernamesAndFollowingArgs = { userId: Scalars["Int"]["input"]; }; +export type QueryGetUsernamesAndFollowingOldArgs = { + after?: InputMaybe; + limit?: InputMaybe; + matchString?: InputMaybe; + userId: Scalars["Int"]["input"]; +}; + export type QueryGetVideoArgs = { debuggingJson?: InputMaybe; videoId: Scalars["Int"]["input"]; @@ -2508,11 +2516,11 @@ export type UserGql = { activeVideoId?: Maybe; createdAt?: Maybe; fargoRating?: Maybe; - firebaseUid: Scalars["String"]["output"]; + firebaseUid?: Maybe; followers?: Maybe>; following?: Maybe>; id: Scalars["Int"]["output"]; - isAdmin: Scalars["Boolean"]["output"]; + isAdmin?: Maybe; profileImageUri?: Maybe; updatedAt?: Maybe; username: Scalars["String"]["output"]; @@ -2527,7 +2535,7 @@ export type UsernamesAndFollowingResponse = { __typename?: "UsernamesAndFollowingResponse"; followers: Array; following: Array; - usernamesAndIds: Array; + users: Array; }; export type VideoFilterInput = { @@ -3089,7 +3097,7 @@ export type EditProfileImageUriMutation = { editProfileImageUri: { __typename?: "UserGQL"; id: number; - firebaseUid: string; + firebaseUid?: string | null; username: string; profileImageUri?: string | null; createdAt?: any | null; @@ -3104,9 +3112,9 @@ export type GetLoggedInUserQuery = { getLoggedInUser?: { __typename?: "UserGQL"; id: number; - firebaseUid: string; + firebaseUid?: string | null; username: string; - isAdmin: boolean; + isAdmin?: boolean | null; profileImageUri?: string | null; activeVideoId?: number | null; createdAt?: any | null; @@ -3275,7 +3283,7 @@ export type GetVideoDetailsQuery = { owner?: { __typename?: "UserGQL"; id: number; - firebaseUid: string; + firebaseUid?: string | null; username: string; profileImageUri?: string | null; } | null; diff --git a/src/schema.gql b/src/schema.gql index a984b5f..fb82616 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -41,6 +41,12 @@ type Query { limit: Int = 100 after: String = null ): UsernamesAndFollowingResponse! + getUsernamesAndFollowingOld( + userId: Int! + matchString: String = null + limit: Int = 100 + after: String = null + ): UsernamesAndFollowingResponse! getPlayTime(userId: Int!): UserPlayTimeGQL! getUserVideos( userId: Int = null @@ -341,9 +347,9 @@ type SerializedShotPathsGQL { type UserGQL { id: Int! - firebaseUid: String! + firebaseUid: String username: String! - isAdmin: Boolean! + isAdmin: Boolean fargoRating: Int activeVideoId: Int profileImageUri: String @@ -555,7 +561,7 @@ input CreatedAfter @oneOf { } type UsernamesAndFollowingResponse { - usernamesAndIds: [UserGQL!]! + users: [UserGQL!]! following: [Int!]! followers: [Int!]! } -- 2.46.1