Release version 1.3.1: Updated backend models and endpoints

This commit is contained in:
2026-02-03 13:54:05 -07:00
parent 0d7cdf51ca
commit 2125504831
13 changed files with 1650 additions and 18 deletions

View File

@@ -23,12 +23,13 @@ export interface Ticket {
export interface TicketComment {
id: string;
ticket_id: string;
user_id: string;
user_name: string;
user_role: string;
author_id: string;
author_name: string;
author_role: string;
content: string;
is_internal: boolean;
created_at: string;
updated_at: string;
}
export interface TicketAttachment {
@@ -160,6 +161,17 @@ function createTicketsStore() {
}));
}
},
// Reload only comments silently (for polling)
reloadComments: async (ticketId: string) => {
try {
const comments = await apiCall(`/tickets/${ticketId}/comments`);
update((state: TicketsState) => ({ ...state, comments }));
} catch (error) {
// Silent fail - no mostrar error en polling
console.error('Error reloading comments:', error);
}
},
// Create new ticket
createTicket: async (ticket: CreateTicketRequest) => {