From b40554d38dc0fac0f1c0cb6f9ff251d543a44542 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Fri, 25 Oct 2024 00:16:59 -0600 Subject: [PATCH] Update get usernames ids --- src/index.tsx | 19 ++++++++++++++++--- src/schema.gql | 7 ++++++- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index d298fe6..9584f08 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1886,6 +1886,12 @@ export type FloatShotOrdering = { startingAt?: InputMaybe; }; +export type FollowingUser = { + __typename?: "FollowingUser"; + id: Scalars["Int"]["output"]; + username: Scalars["String"]["output"]; +}; + export type GetProfileUploadLinkErrors = { __typename?: "GetProfileUploadLinkErrors"; error: TooManyProfileImageUploadsErr; @@ -2527,7 +2533,7 @@ export type UsernamesAndFollowingResponse = { __typename?: "UsernamesAndFollowingResponse"; followers: Array; following: Array; - usernames: Array; + usernamesAndIds: Array; }; export type VideoFilterInput = { @@ -3147,7 +3153,11 @@ export type GetUsernamesAndFollowingQuery = { __typename?: "UsernamesAndFollowingResponse"; followers: Array; following: Array; - usernames: Array; + usernamesAndIds: Array<{ + __typename?: "FollowingUser"; + username: string; + id: number; + }>; }; }; @@ -5139,7 +5149,10 @@ export const GetUsernamesAndFollowingDocument = gql` ) { followers following - usernames + usernamesAndIds { + username + id + } } } `; diff --git a/src/schema.gql b/src/schema.gql index fd59f66..bd8cd99 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -555,11 +555,16 @@ input CreatedAfter @oneOf { } type UsernamesAndFollowingResponse { - usernames: [String!]! + usernamesAndIds: [FollowingUser!]! following: [Int!]! followers: [Int!]! } +type FollowingUser { + id: Int! + username: String! +} + type UserPlayTimeGQL { totalSeconds: Float! }