Add makes leaderboard

This commit is contained in:
Ivan Malison 2024-12-19 17:48:29 -07:00
parent bf8e851139
commit 3f2e5d331f
2 changed files with 30 additions and 0 deletions

View File

@ -122,6 +122,11 @@ export enum ClientUploadStatusEnum {
UploadEnabled = "UPLOAD_ENABLED",
}
export type CountLeaderboardGql = {
__typename?: "CountLeaderboardGQL";
entries: Array<IntUserLeaderboardEntry>;
};
export type CreateBucketSetInput = {
buckets: Array<BucketInputGql>;
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<UserGql>;
getMakesLeaderboard: CountLeaderboardGql;
getMedals: RequestedMedalsGql;
getOrderedShots: GetShotsResult;
getPlayTime: UserPlayTimeGql;
@ -2272,6 +2284,11 @@ export type QueryGetFeedVideosArgs = {
limit?: Scalars["Int"]["input"];
};
export type QueryGetMakesLeaderboardArgs = {
interval?: InputMaybe<TimeInterval>;
when?: InputMaybe<Scalars["DateTime"]["input"]>;
};
export type QueryGetMedalsArgs = {
scope: MedalScope;
userId?: InputMaybe<Scalars["Int"]["input"]>;

View File

@ -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!