ServiceOrder
The main interface representing a service order.The
equipment_types field is commented out in the type definition but is used throughout the codebase. This represents a type inconsistency in the source code.Unique identifier for the service order
Service order number displayed to users
Type of service (e.g., “garantía”, “reparación”, “mantenimiento”)
Part number of the equipment being serviced
Serial number of the equipment
Detailed description of the service issue or request
Solution or resolution details for the service order
The company associated with this service order
Conditions under which the equipment was delivered or returned
Array of contact persons for this service order
Array of email addresses associated with the service order
Array of phone numbers for contact
Array of physical addresses related to the service order
Array of cities associated with the service order
The
equipment_types field is defined in the EquipmentType interface but is commented out in the ServiceOrder type definition. However, it’s used throughout the codebase implementation.Company
Represents a company entity.Company name
Location of company headquarters
Contact
Represents a contact person.Contact’s first name
Contact’s last name
Contact’s gender (e.g., “Masculino”, “Femenino”)
Whether the contact is currently active
Contact’s identification number
Contact’s job title or role (e.g., “admin”, “técnico”, “soporte”)
Contact’s birthday in DD/MM/YYYY format
Email address
Phone
Represents a phone number.Phone number (stored as a numeric value)
Address
Represents a physical address.Street address
City
Represents a city.City name
EquipmentType
Represents equipment type information.Name/brand of the equipment type (e.g., “Lenovo”, “HP”, “Dell”)
This interface is defined in the type file but currently commented out in the ServiceOrder interface.
DeliveryConditions
Represents delivery or equipment condition information.Description of delivery conditions (e.g., “con funda protectora”, “sin cargador”)