(id: string)
| 275 | } |
| 276 | |
| 277 | getTicket(id: string): ServiceTicket | undefined { |
| 278 | return this.serviceQueue.find((t) => t.id === id); |
| 279 | } |
| 280 | |
| 281 | addTicket(ticket: Omit<ServiceTicket, 'id'>): ServiceTicket { |
| 282 | const newId = `TKT-${Math.floor(1000 + Math.random() * 9000)}`; |