Skip to content

Commit

Permalink
Update data contracts.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Jun 18, 2024
1 parent 5cfded2 commit 4105226
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/api/data-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,15 @@ export interface Era {

export type Instant = object

/** @format int32 */
export type IsoDayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
export type IsoDayOfWeek =
| 'None'
| 'Monday'
| 'Tuesday'
| 'Wednesday'
| 'Thursday'
| 'Friday'
| 'Saturday'
| 'Sunday'

/** Represents a collection of `Leaderboard` entities. */
export interface LeaderboardViewModel {
Expand Down Expand Up @@ -243,6 +250,8 @@ export interface RunViewModel {
categoryId: number
}

export type UserRole = 'Registered' | 'Confirmed' | 'Administrator' | 'Banned'

export interface UserViewModel {
/**
* The unique identifier of the `User`.<br />
Expand All @@ -259,6 +268,7 @@ export interface UserViewModel {
* @example "J'on-Doe"
*/
username: string
role: UserRole
}

export interface ValidationProblemDetails {
Expand Down

0 comments on commit 4105226

Please sign in to comment.