From 235f4a58e95e22ff579a00b6692293cd2d5afe77 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 13 Jul 2024 23:42:12 -0600 Subject: [PATCH] Add getUsernames --- src/index.tsx | 7 +++++++ src/schema.gql | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 4d80ae5..7abcbaa 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -944,6 +944,7 @@ export type Query = { getShots: Array; getUser?: Maybe; getUserVideos: VideoHistoryGql; + getUsernames: Array; getVideo: VideoGql; getVideoMakePercentageIntervals: Array; getVideos: Array; @@ -976,6 +977,12 @@ export type QueryGetUserVideosArgs = { userId?: InputMaybe; }; +export type QueryGetUsernamesArgs = { + after?: InputMaybe; + limit?: InputMaybe; + matchString?: InputMaybe; +}; + export type QueryGetVideoArgs = { videoId: Scalars["Int"]["input"]; }; diff --git a/src/schema.gql b/src/schema.gql index aed271c..59c83c3 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -12,6 +12,11 @@ type Query { getShotAnnotationTypes: [ShotAnnotationTypeGQL!]! getUser(userId: Int!): UserGQL getLoggedInUser: UserGQL + getUsernames( + matchString: String = null + limit: Int = null + after: String = null + ): [String!]! getPlayTime(userId: Int!): UserPlayTimeGQL! getUserVideos( userId: Int = null