fix types
This commit is contained in:
parent
10f117530f
commit
bd7f2cae98
@ -48,27 +48,34 @@ export type GetTicketsRequest = {
|
|||||||
status: string;
|
status: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetTicketsResponse = {
|
||||||
|
count: number;
|
||||||
|
data: Ticket[];
|
||||||
|
};
|
||||||
|
|
||||||
export type Ticket = {
|
export type Ticket = {
|
||||||
ID: string;
|
id: string;
|
||||||
UserID: string;
|
user: string;
|
||||||
SessionID: string;
|
sess: string;
|
||||||
AnswererID: string;
|
ans: string;
|
||||||
State: string;
|
state: string;
|
||||||
TopMessage: TicketMessage;
|
top_message: TicketMessage;
|
||||||
Title: string;
|
title: string;
|
||||||
CreatedAt: number; // TODO timestamp?
|
created_at: string;
|
||||||
UpdatedAt: number; // TODO timestamp?
|
updated_at: string;
|
||||||
Rate: number;
|
rate: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TicketMessage = {
|
export type TicketMessage = {
|
||||||
id: string;
|
id: string;
|
||||||
ticket_id: string;
|
ticket_id: string;
|
||||||
user_id: string;
|
user_id: string,
|
||||||
session_id: string;
|
session_id: string;
|
||||||
message: string;
|
message: string;
|
||||||
files: string[];
|
files: string[],
|
||||||
shown: { [key: string]: number; };
|
shown: { [key: string]: number; },
|
||||||
created_at: number; // TODO timestamp?
|
request_screenshot: string,
|
||||||
|
created_at: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export class ApiError extends Error { }
|
Loading…
Reference in New Issue
Block a user