38 lines
833 B
TypeScript
38 lines
833 B
TypeScript
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",
|
|
};
|
|
|
|
export interface TicketWithCorporate extends Ticket {
|
|
corporate?: string;
|
|
} |