Created a new page for ticket handling as well as submission
This commit is contained in:
34
src/interfaces/ticket.ts
Normal file
34
src/interfaces/ticket.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { Type } from "./user";
|
||||
|
||||
export interface Ticket {
|
||||
id: string;
|
||||
date: string;
|
||||
status: TicketStatus;
|
||||
type: TicketType;
|
||||
reporter: TicketReporter;
|
||||
reportedFrom: string;
|
||||
description: string;
|
||||
subject: string;
|
||||
assignedTo?: string;
|
||||
}
|
||||
|
||||
export interface TicketReporter {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
type: Type;
|
||||
}
|
||||
|
||||
export type TicketType = "feedback" | "bug" | "help";
|
||||
export const TicketTypeLabel: { [key in TicketType]: string } = {
|
||||
feedback: "Feedback",
|
||||
bug: "Bug",
|
||||
help: "Help",
|
||||
};
|
||||
|
||||
export type TicketStatus = "submitted" | "in-progress" | "completed";
|
||||
export const TicketStatusLabel: { [key in TicketStatus]: string } = {
|
||||
submitted: "Submitted",
|
||||
"in-progress": "In Progress",
|
||||
completed: "Completed",
|
||||
};
|
||||
Reference in New Issue
Block a user