Compare commits

..

2 Commits

Author SHA1 Message Date
605adc3293 Merge pull request 'Update get usernames ids' (#90) from kat/update-get-username-ids into master
Reviewed-on: #90
2024-10-25 00:18:19 -06:00
b40554d38d Update get usernames ids
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-25 00:16:59 -06:00
2 changed files with 22 additions and 4 deletions

View File

@ -1886,6 +1886,12 @@ export type FloatShotOrdering = {
startingAt?: InputMaybe<Scalars["Float"]["input"]>; startingAt?: InputMaybe<Scalars["Float"]["input"]>;
}; };
export type FollowingUser = {
__typename?: "FollowingUser";
id: Scalars["Int"]["output"];
username: Scalars["String"]["output"];
};
export type GetProfileUploadLinkErrors = { export type GetProfileUploadLinkErrors = {
__typename?: "GetProfileUploadLinkErrors"; __typename?: "GetProfileUploadLinkErrors";
error: TooManyProfileImageUploadsErr; error: TooManyProfileImageUploadsErr;
@ -2527,7 +2533,7 @@ export type UsernamesAndFollowingResponse = {
__typename?: "UsernamesAndFollowingResponse"; __typename?: "UsernamesAndFollowingResponse";
followers: Array<Scalars["Int"]["output"]>; followers: Array<Scalars["Int"]["output"]>;
following: Array<Scalars["Int"]["output"]>; following: Array<Scalars["Int"]["output"]>;
usernames: Array<Scalars["String"]["output"]>; usernamesAndIds: Array<FollowingUser>;
}; };
export type VideoFilterInput = { export type VideoFilterInput = {
@ -3147,7 +3153,11 @@ export type GetUsernamesAndFollowingQuery = {
__typename?: "UsernamesAndFollowingResponse"; __typename?: "UsernamesAndFollowingResponse";
followers: Array<number>; followers: Array<number>;
following: Array<number>; following: Array<number>;
usernames: Array<string>; usernamesAndIds: Array<{
__typename?: "FollowingUser";
username: string;
id: number;
}>;
}; };
}; };
@ -5139,7 +5149,10 @@ export const GetUsernamesAndFollowingDocument = gql`
) { ) {
followers followers
following following
usernames usernamesAndIds {
username
id
}
} }
} }
`; `;

View File

@ -555,11 +555,16 @@ input CreatedAfter @oneOf {
} }
type UsernamesAndFollowingResponse { type UsernamesAndFollowingResponse {
usernames: [String!]! usernamesAndIds: [FollowingUser!]!
following: [Int!]! following: [Int!]!
followers: [Int!]! followers: [Int!]!
} }
type FollowingUser {
id: Int!
username: String!
}
type UserPlayTimeGQL { type UserPlayTimeGQL {
totalSeconds: Float! totalSeconds: Float!
} }