From b16b36588f02144ae9e9da9c2edcf9ca0f5a901b Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Sun, 20 Oct 2024 23:35:52 -0600 Subject: [PATCH] Create feed query --- src/index.tsx | 8 ++++++++ src/schema.gql | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index a668e7a..c0bfec8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2066,6 +2066,7 @@ export type Query = { getAggregatedShotMetrics: Array; getBucketSet?: Maybe; getDeployedConfig: DeployedConfigGql; + getFeedVideos: VideoHistoryGql; getLoggedInUser?: Maybe; getOrderedShots: GetShotsResult; getPlayTime: UserPlayTimeGql; @@ -2091,6 +2092,13 @@ export type QueryGetBucketSetArgs = { keyName: Scalars["String"]["input"]; }; +export type QueryGetFeedVideosArgs = { + after?: InputMaybe; + filters?: InputMaybe; + limit?: Scalars["Int"]["input"]; + userId?: InputMaybe; +}; + export type QueryGetOrderedShotsArgs = { filterInput: FilterInput; ids?: InputMaybe>; diff --git a/src/schema.gql b/src/schema.gql index f09ee14..7a85d41 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -45,6 +45,12 @@ type Query { getUserTags: [TagGQL!]! getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! + getFeedVideos( + userId: Int = null + limit: Int! = 5 + after: String = null + filters: VideoFilterInput = null + ): VideoHistoryGQL! } type AggregateResultGQL {