-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add previous.txt to gitignore
chore: code clean up and refactor
- Loading branch information
Showing
10 changed files
with
57 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
/* eslint-disable indent */ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class DefaultExceptionDto { | ||
@ApiProperty() | ||
statusCode: number; | ||
|
||
@ApiProperty() | ||
message: string; | ||
|
||
@ApiProperty() | ||
error: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,14 @@ | ||
/* eslint-disable indent */ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
|
||
export class Event { | ||
@ApiProperty() | ||
category: string; | ||
|
||
@ApiProperty() | ||
details: string; | ||
|
||
@ApiProperty() | ||
end_date: string; | ||
|
||
@ApiProperty() | ||
event: string; | ||
|
||
@ApiProperty() | ||
name: string; | ||
|
||
@ApiProperty() | ||
registration: string | null; | ||
|
||
@ApiProperty() | ||
start_date: string; | ||
|
||
} | ||
|
||
export class EventList { | ||
@ApiProperty() | ||
categories: Array<string>; | ||
|
||
|
||
@ApiProperty() | ||
data: Array<Event>; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,20 @@ | ||
/* eslint-disable indent */ | ||
import { ApiProperty } from "@nestjs/swagger"; | ||
|
||
// Fatigue type with key of type string and value of type number | ||
// Fatigue contains past games played by the player with the | ||
// opponent id as the key and the calculated game factor as the value | ||
export type Fatigue = { | ||
[key: string]: number; | ||
} | ||
|
||
export class Player { | ||
@ApiProperty() | ||
id: number; | ||
|
||
@ApiProperty() | ||
name: string; | ||
|
||
@ApiProperty() | ||
rating: number; | ||
|
||
@ApiProperty() | ||
boost: number; | ||
|
||
@ApiProperty() | ||
maxrating: number; | ||
|
||
@ApiProperty() | ||
ratedgames: number; | ||
|
||
@ApiProperty() | ||
isbot: boolean; | ||
|
||
@ApiProperty() | ||
ratingage: number; | ||
|
||
@ApiProperty() | ||
ratingbase: number; | ||
|
||
@ApiProperty() | ||
participation_rating: number; | ||
|
||
@ApiProperty() | ||
fatigue: Fatigue | string | null; | ||
|
||
@ApiProperty() | ||
changed?: boolean; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
/* eslint-disable indent */ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class DefaultResponseDto { | ||
@ApiProperty() | ||
status: number; | ||
|
||
@ApiProperty() | ||
message: string; | ||
} |
Oops, something went wrong.