-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional general style changes requested in #2
- generalised `as const` where applicable - renamed the base interface for `APIPlayer` to align with `APIPlayerPatreon`
- Loading branch information
Showing
4 changed files
with
96 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
/** | ||
* Information about a current player's ban. | ||
* @see https://truckersmp.com/developers/api#operation/get-bans-id | ||
*/ | ||
export interface APIPlayerBan { | ||
/** | ||
* The time the ban will expire. | ||
*/ | ||
expiration: string | null; | ||
|
||
/** | ||
* The time the ban was issued. | ||
*/ | ||
timeAdded: string; | ||
|
||
/** | ||
* If the ban is still active. | ||
* | ||
* For the user to be banned the `expiration` date has to be passed or `active` has to be false. | ||
*/ | ||
active: boolean; | ||
|
||
/** | ||
* The reason for the ban. | ||
*/ | ||
reason: string; | ||
|
||
/** | ||
* @deprecated - v2.21.1.0 | ||
* Name of the admin that banned the user. This field is no longer provided. | ||
* @see https://forum.truckersmp.com/index.php?/topic/112993-website-v221-release/#comment-1111277 | ||
*/ | ||
adminName: 'Game Moderator'; | ||
|
||
/** | ||
* @deprecated - v2.21.1.0 | ||
* TruckersMP ID for the admin that banned the user. This field is no longer provided. | ||
* @see https://forum.truckersmp.com/index.php?/topic/112993-website-v221-release/#comment-1111277 | ||
*/ | ||
adminID: null; | ||
} | ||
/** | ||
* Information about a current player's ban. | ||
* @see https://truckersmp.com/developers/api#operation/get-bans-id | ||
*/ | ||
export interface APIPlayerBan { | ||
/** | ||
* The time the ban will expire. | ||
*/ | ||
expiration: string | null; | ||
|
||
/** | ||
* The time the ban was issued. | ||
*/ | ||
timeAdded: string; | ||
|
||
/** | ||
* If the ban is still active. | ||
* | ||
* For the user to be banned the `expiration` date has to be passed or `active` has to be false. | ||
*/ | ||
active: boolean; | ||
|
||
/** | ||
* The reason for the ban. | ||
*/ | ||
reason: string; | ||
|
||
/** | ||
* @deprecated - v2.21.1.0 | ||
* Name of the admin that banned the user. This field is no longer provided. | ||
* @see https://forum.truckersmp.com/index.php?/topic/112993-website-v221-release/#comment-1111277 | ||
*/ | ||
adminName: 'Game Moderator'; | ||
|
||
/** | ||
* @deprecated - v2.21.1.0 | ||
* TruckersMP ID for the admin that banned the user. This field is no longer provided. | ||
* @see https://forum.truckersmp.com/index.php?/topic/112993-website-v221-release/#comment-1111277 | ||
*/ | ||
adminID: null; | ||
} |
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