Skip to content

Commit 9de4529

Browse files
chore(develop): sync types to dmgincs/nestjs-api
1 parent f916a6a commit 9de4529

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
export class AddAppealMessageDto {
3+
4+
/** The message content */
5+
message: string;
6+
7+
/** Whether the message is internal or not */
8+
is_internal: boolean;
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { JusticeAppealType } from '~/constants/JusticeAppeal';
2+
3+
export class CreateJusticeAppealDto {
4+
5+
/** The ID of the issued strike that is being appealed */
6+
issued_strike_id: number;
7+
8+
/** The message of the appeal */
9+
message: string;
10+
11+
/** The type of the appeal */
12+
appeal_type: JusticeAppealType;
13+
}

src/constants/JusticeAppeal.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export enum JusticeMessageType {
2+
APPEALER = 'appealer',
3+
JUSTICE = 'justice',
4+
LEADER = 'leader',
5+
}
6+
7+
export enum JusticeAppealType {
8+
STRIKE = 'strike',
9+
BAN = 'ban',
10+
}
11+
12+
export enum JusticeAppealStatus {
13+
UNDER_REVIEW = 'under_review',
14+
UPHELD = 'upheld',
15+
OVERTURNED = 'overturned',
16+
REISSUED = 'reissued',
17+
}

0 commit comments

Comments
 (0)