mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-25 18:26:28 -05:00
feat(gui): Display developer responses to feedback (#302)
This commit is contained in:
parent
f1e5cdfbfe
commit
53a994e6dc
19 changed files with 1216 additions and 45 deletions
|
|
@ -26,3 +26,49 @@ export interface Alert {
|
|||
body: string;
|
||||
severity: "info" | "warning" | "error";
|
||||
}
|
||||
|
||||
// Define the correct 9-element tuple type for PrimitiveDateTime
|
||||
export type PrimitiveDateTimeString = [
|
||||
number, // Year
|
||||
number, // Day of Year
|
||||
number, // Hour
|
||||
number, // Minute
|
||||
number, // Second
|
||||
number, // Nanosecond
|
||||
number, // Offset Hour
|
||||
number, // Offset Minute
|
||||
number // Offset Second
|
||||
];
|
||||
|
||||
export interface Feedback {
|
||||
id: string;
|
||||
created_at: PrimitiveDateTimeString;
|
||||
}
|
||||
|
||||
export interface Attachment {
|
||||
id: number;
|
||||
message_id: number;
|
||||
key: string;
|
||||
content: string;
|
||||
created_at: PrimitiveDateTimeString;
|
||||
}
|
||||
|
||||
export interface Message {
|
||||
id: number;
|
||||
feedback_id: string;
|
||||
is_from_staff: boolean;
|
||||
content: string;
|
||||
created_at: PrimitiveDateTimeString;
|
||||
attachments?: Attachment[];
|
||||
}
|
||||
|
||||
export interface MessageWithAttachments {
|
||||
message: Message;
|
||||
attachments: Attachment[];
|
||||
}
|
||||
|
||||
// Define type for Attachment data in request body
|
||||
export interface AttachmentInput {
|
||||
key: string;
|
||||
content: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue