-
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.
- Loading branch information
Showing
2 changed files
with
224 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
export type UploadRequest = { | ||
/** | ||
* The API key to use | ||
*/ | ||
key: string; | ||
|
||
/** | ||
* The name of the demo file | ||
*/ | ||
name: string; | ||
|
||
/** | ||
* The name of RED team | ||
*/ | ||
red: string; | ||
|
||
/** | ||
* The name of BLU team | ||
*/ | ||
blu: string; | ||
|
||
/** | ||
* The demo file to be uploaded | ||
*/ | ||
demo: Blob; | ||
}; | ||
|
||
/** | ||
* The request object for searching demos | ||
*/ | ||
export type DemoSearchRequest = { | ||
/** | ||
* The name of the map | ||
*/ | ||
map: string; | ||
|
||
/** | ||
* The type of gamemode | ||
*/ | ||
type: "4v4" | "6v6" | "hl"; | ||
|
||
/** | ||
* The list of players that have played in the demo | ||
*/ | ||
players: string[]; | ||
/** | ||
* The max date the demo was uploaded on | ||
*/ | ||
before: string; | ||
/** | ||
* The min date the demo was uploaded on | ||
*/ | ||
after: string; | ||
|
||
/** | ||
* The min demo id | ||
*/ | ||
before_id: string; | ||
/** | ||
* The max demo id | ||
*/ | ||
after_id: string; | ||
}; | ||
|
||
export type SortType = "ASC" | "DESC"; |