diff --git a/src/index.tsx b/src/index.tsx index 2595bb7..2795c25 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -122,6 +122,11 @@ export enum ClientUploadStatusEnum { UploadEnabled = "UPLOAD_ENABLED", } +export type CountLeaderboardGql = { + __typename?: "CountLeaderboardGQL"; + entries: Array; +}; + export type CreateBucketSetInput = { buckets: Array; feature: Scalars["String"]["input"]; @@ -2009,6 +2014,12 @@ export type IntPoint2D = { y: Scalars["Int"]["output"]; }; +export type IntUserLeaderboardEntry = { + __typename?: "IntUserLeaderboardEntry"; + user: UserGql; + value: Scalars["Int"]["output"]; +}; + export type MakePercentageIntervalGql = { __typename?: "MakePercentageIntervalGQL"; elapsedTime: Scalars["Float"]["output"]; @@ -2232,6 +2243,7 @@ export type Query = { getDeployedConfig: DeployedConfigGql; getFeedVideos: VideoHistoryGql; getLoggedInUser?: Maybe; + getMakesLeaderboard: CountLeaderboardGql; getMedals: RequestedMedalsGql; getOrderedShots: GetShotsResult; getPlayTime: UserPlayTimeGql; @@ -2272,6 +2284,11 @@ export type QueryGetFeedVideosArgs = { limit?: Scalars["Int"]["input"]; }; +export type QueryGetMakesLeaderboardArgs = { + interval?: InputMaybe; + when?: InputMaybe; +}; + export type QueryGetMedalsArgs = { scope: MedalScope; userId?: InputMaybe; diff --git a/src/schema.gql b/src/schema.gql index dc4f661..c2450e3 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -71,6 +71,10 @@ type Query { filters: VideoFilterInput = null feedInput: VideoFeedInputGQL = null ): VideoHistoryGQL! + getMakesLeaderboard( + interval: TimeInterval = null + when: DateTime = null + ): CountLeaderboardGQL! } type AggregateResultGQL { @@ -719,6 +723,15 @@ input VideoFeedInputGQL @oneOf { allUsers: Boolean } +type CountLeaderboardGQL { + entries: [IntUserLeaderboardEntry!]! +} + +type IntUserLeaderboardEntry { + user: UserGQL! + value: Int! +} + type Mutation { createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! setLoggerLevel(path: String!, level: String!): Boolean!