Skip to content

Commit 7ac79f1

Browse files
Update API
1 parent e4f22c9 commit 7ac79f1

6 files changed

+22
-4
lines changed

src/lib/api/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type { LeaderboardEntryHistoryEntry } from "./models/LeaderboardEntryHist
1818
export type { LeaderboardEntryResponse } from "./models/LeaderboardEntryResponse"
1919
export { LeaderboardOrder } from "./models/LeaderboardOrder"
2020
export type { LeaderboardResponse } from "./models/LeaderboardResponse"
21+
export { League } from "./models/League"
2122
export type { MatchesResponse } from "./models/MatchesResponse"
2223
export type { MatchParticipantPlayerLeaderboardEntryResponse } from "./models/MatchParticipantPlayerLeaderboardEntryResponse"
2324
export type { MatchParticipantPlayerResponse } from "./models/MatchParticipantPlayerResponse"

src/lib/api/models/LeaderboardEntryResponse.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* tslint:disable */
44
/* eslint-disable */
55
import type { Leaderboard } from "./Leaderboard"
6+
import type { League } from "./League"
67
import type { Race } from "./Race"
78
export type LeaderboardEntryResponse = {
89
leaderboard_entry_id: string
@@ -14,7 +15,7 @@ export type LeaderboardEntryResponse = {
1415
avatar_url?: string | null
1516
rank?: number | null
1617
race: Race
17-
league?: string | null
18+
league?: League | null
1819
tier?: number | null
1920
mmr: number
2021
max_confirmed_mmr?: number | null

src/lib/api/models/League.ts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
export enum League {
6+
ASPIRANT = "aspirant",
7+
BRONZE = "bronze",
8+
SILVER = "silver",
9+
GOLD = "gold",
10+
PLATINUM = "platinum",
11+
DIAMOND = "diamond",
12+
MASTER = "master",
13+
}

src/lib/api/models/MatchParticipantPlayerLeaderboardEntryResponse.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
/* istanbul ignore file */
33
/* tslint:disable */
44
/* eslint-disable */
5+
import type { League } from "./League"
56
export type MatchParticipantPlayerLeaderboardEntryResponse = {
67
leaderboard_entry_id: string
7-
league?: string | null
8+
league?: League | null
89
tier?: number | null
910
rank?: number | null
1011
wins: number

src/lib/api/models/StatsByTime.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
/* istanbul ignore file */
33
/* tslint:disable */
44
/* eslint-disable */
5+
import type { League } from "./League"
56
import type { StatsByTimeEntry } from "./StatsByTimeEntry"
67
import type { StatsByTimeMatchLength } from "./StatsByTimeMatchLength"
78
export type StatsByTime = {
89
cached_at: string
910
updated_at: string
1011
period: string
1112
count: number
12-
league?: string | null
13+
league?: League | null
1314
races: Array<StatsByTimeEntry>
1415
match_length: StatsByTimeMatchLength
1516
}

src/lib/api/services/StatisticsApi.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* tslint:disable */
44
/* eslint-disable */
55
import type { ActivityStatistics } from "../models/ActivityStatistics"
6+
import type { League } from "../models/League"
67
import type { StatsByTime } from "../models/StatsByTime"
78
import type { CancelablePromise } from "../core/CancelablePromise"
89
import { OpenAPI } from "../core/OpenAPI"
@@ -29,7 +30,7 @@ export class StatisticsApi {
2930
league,
3031
count,
3132
}: {
32-
league?: string | null
33+
league?: League | null
3334
count?: number | null
3435
}): CancelablePromise<StatsByTime> {
3536
return __request(OpenAPI, {

0 commit comments

Comments
 (0)