Generalize getFeed

This commit is contained in:
2024-12-17 17:35:38 -07:00
parent 7b4880a990
commit 9d0ba908dc
2 changed files with 39 additions and 2 deletions

View File

@@ -1981,6 +1981,12 @@ export type HomographyInfoGql = {
sourcePoints: PocketPointsGql;
};
export enum IncludePrivateEnum {
All = "ALL",
Mine = "MINE",
None = "NONE",
}
export enum InitPlaylistUploadStatusEnum {
NotApplicable = "NOT_APPLICABLE",
NotUploaded = "NOT_UPLOADED",
@@ -2259,9 +2265,10 @@ export type QueryGetBucketSetArgs = {
export type QueryGetFeedVideosArgs = {
after?: InputMaybe<Scalars["String"]["input"]>;
allVideos?: Scalars["Boolean"]["input"];
feedInput?: InputMaybe<VideoFeedInputGql>;
filters?: InputMaybe<VideoFilterInput>;
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
includePrivate?: IncludePrivateEnum;
limit?: Scalars["Int"]["input"];
};
@@ -2710,6 +2717,23 @@ export type UserRelationshipsResult = {
relationships: Array<UserRelationship>;
};
export type VideoFeedInputGql =
| {
allUsers: Scalars["Boolean"]["input"];
followedByUserId?: never;
userId?: never;
}
| {
allUsers?: never;
followedByUserId: Scalars["Int"]["input"];
userId?: never;
}
| {
allUsers?: never;
followedByUserId?: never;
userId: Scalars["Int"]["input"];
};
export type VideoFilterInput = {
createdAt?: InputMaybe<DateRangeFilter>;
excludeVideosWithNoShots?: InputMaybe<Scalars["Boolean"]["input"]>;