projects/shared/src/models/ticket.model.ts.
Source
Ticket interface
The base ticket object returned from the API for authenticated admin and agent views.
UUID that uniquely identifies the ticket.
Human-readable ticket reference (e.g.
TK-2024-0001). Use this value when displaying or searching for tickets.Request type. See
TicketTipo for all valid values.Full name of the requester who submitted the ticket.
Requester’s ID document number.
Requester’s email address.
Requester’s phone number.
Company or department the requester belongs to.
Top-level classification category for the ticket.
Sub-classification within the category.
Brief subject line for the ticket.
Full description of the request or issue.
Current lifecycle status of the ticket. See
TicketStatus for all valid values.Assigned priority level. Prefer one of the
TicketPrioridad values (BAJA, MEDIA, ALTA, URGENTE). See TicketPrioridad.Number of hours allowed by the SLA agreement for this ticket.
ISO 8601 date string representing the SLA deadline.
The department area the ticket is assigned to. See area options.
ISO 8601 date string for when the ticket was created.
ISO 8601 date string for when the ticket was last updated.
TicketMDA interface
TicketMDA extends Ticket with computed SLA fields added by the backend for the admin/agent (MDA) view.
Hours remaining before the SLA deadline expires. Negative values indicate the SLA has already been breached.
true when the SLA deadline has passed and the ticket has not been resolved.Display name of the agent currently assigned to the ticket.
null when no agent is assigned.TicketCreatePayload interface
Use this payload when creating a new ticket via the admin API.
Full name of the person submitting the ticket.
Email address of the requester. Used to look up the ticket later.
Request type. Must be one of the
TicketTipo values.Top-level category for the ticket.
Full description of the request or issue.
Priority level assigned to the ticket.
Requester’s ID document number.
Requester’s phone number.
Whether the phone number provided supports WhatsApp.
Company or department the requester belongs to.
Sub-classification within the category.
Brief subject line for the ticket.
Target area to assign the ticket to on creation.
TicketCreateResponse interface
Returned by the API after a ticket is successfully created.
UUID assigned to the newly created ticket.
Human-readable reference label (e.g.
TK-2024-0001).Initial status of the ticket, typically
ABIERTO.Request type as provided in the payload.
Assigned priority level.
Number of SLA hours allocated for this ticket based on its priority.
ISO 8601 date string for when the ticket was created.
ISO 8601 date string for the SLA deadline.
Confirmation message from the server.
TicketConsultaPayload interface
Use this payload to look up a ticket from the public-facing consultation endpoint.
The ticket reference label (e.g.
TK-2024-0001).The email address used when the ticket was submitted. Used to verify ownership.
TicketConsultaPublica interface
The limited ticket view returned to end users from the public consultation endpoint.
UUID of the ticket.
Human-readable ticket reference.
Request type label.
Ticket category.
Ticket sub-category.
Subject line of the ticket.
Description of the request or issue.
Department area the ticket is assigned to.
Current lifecycle status.
Assigned priority level.
Number of SLA hours allocated for the ticket.
ISO 8601 date string for when the ticket was created.
ISO 8601 date string for the SLA deadline.
TicketConsultaResponse interface
Wrapper returned by the public consultation endpoint.
The ticket data if found and the email matches.
null when no matching ticket exists.Array of historical activity entries for the ticket.