Compare commits

...

6 Commits

Author SHA1 Message Date
b40554d38d Update get usernames ids
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-25 00:16:59 -06:00
194d7c66a0 Merge pull request 'Add subfields to usernames and following' (#89) from kat/usernames-following-response into master
Reviewed-on: #89
2024-10-24 23:50:28 -06:00
3adc301935 Add subfields to usernames and following
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-24 23:49:47 -06:00
9232c673e8 Merge pull request 'Return usernamesAndIds' (#88) from kat/update-usernames-and-following into master
Reviewed-on: #88
2024-10-24 23:46:27 -06:00
c2cb411469 Return usernamesAndIds
All checks were successful
Tests / Tests (pull_request) Successful in 16s
2024-10-24 23:41:52 -06:00
44ddc732a1 Fix cache merge (#87)
Co-authored-by: Kat Huang <kkathuang@gmail.com>
Reviewed-on: #87
Co-authored-by: Volodymyr Smolianinov <voidozzer@gmail.com>
Co-committed-by: Volodymyr Smolianinov <voidozzer@gmail.com>
2024-10-24 13:50:52 -06:00
4 changed files with 33 additions and 6 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 = {
@@ -2700,7 +2706,11 @@ export type GetFeedQuery = {
elapsedTime?: number | null; elapsedTime?: number | null;
tableSize: number; tableSize: number;
owner?: { __typename?: "UserGQL"; username: string } | null; owner?: { __typename?: "UserGQL"; username: string } | null;
stream?: { __typename?: "UploadStreamGQL"; isCompleted: boolean } | null; stream?: {
__typename?: "UploadStreamGQL";
id: string;
isCompleted: boolean;
} | null;
tags: Array<{ tags: Array<{
__typename?: "VideoTag"; __typename?: "VideoTag";
name: string; name: string;
@@ -3143,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;
}>;
}; };
}; };
@@ -4053,6 +4067,7 @@ export const GetFeedDocument = gql`
elapsedTime elapsedTime
screenshotUri screenshotUri
stream { stream {
id
isCompleted isCompleted
} }
tableSize tableSize
@@ -5134,7 +5149,10 @@ export const GetUsernamesAndFollowingDocument = gql`
) { ) {
followers followers
following following
usernames usernamesAndIds {
username
id
}
} }
} }
`; `;

View File

@@ -21,6 +21,7 @@ query GetFeed(
elapsedTime elapsedTime
screenshotUri screenshotUri
stream { stream {
id
isCompleted isCompleted
} }
tableSize tableSize

View File

@@ -71,7 +71,10 @@ query getUsernamesAndFollowing(
) { ) {
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!
} }