Skip to main content

Overview

The MaintenanceAircraft type represents aircraft within the SIGEAC maintenance system. It includes comprehensive aircraft information, flight tracking data, and hierarchical parts management.

Type Definition

export type MaintenanceAircraft = {
  id: number;
  client: MaintenanceClient;
  manufacturer: Manufacturer;
  serial: string;
  model: string;
  acronym: string;
  flight_hours: number | string;
  flight_cycles: number | string;
  fabricant_date: string;
  aircraft_parts: MaintenanceAircraftPart[];
  location: Location;
  comments: string;
};

Fields

id
number
required
Unique identifier for the aircraft
client
MaintenanceClient
required
The client who owns or operates the aircraft
manufacturer
Manufacturer
required
Aircraft manufacturer information
serial
string
required
Aircraft serial number (unique identifier from manufacturer)
model
string
required
Aircraft model designation (e.g., “737-800”, “A320-200”)
acronym
string
required
Aircraft registration or tail number
flight_hours
number | string
required
Total accumulated flight hours. May be formatted as string (e.g., “4,324.00”)
flight_cycles
number | string
required
Total accumulated flight cycles (takeoff/landing pairs). May be formatted as string (e.g., “324.00”)
fabricant_date
string
required
Manufacturing date in ISO 8601 format
aircraft_parts
MaintenanceAircraftPart[]
required
Array of aircraft parts with hierarchical structure. See Aircraft Parts section below.
location
Location
required
Current physical location of the aircraft
comments
string
Additional notes or comments about the aircraft

Aircraft Parts

Each aircraft contains a hierarchical structure of parts tracked through the MaintenanceAircraftPart type:
export type MaintenanceAircraftPart = {
  id?: number;
  part_number: string;
  part_name: string;
  serial?: string;
  condition_type: string;
  time_since_new?: number | string;
  time_since_overhaul?: number | string;
  cycles_since_new?: number | string;
  cycles_since_overhaul?: number | string;
  part_hours?: number;
  part_cycles?: number;
  is_father?: boolean;
  aircraft_id?: string;
  aircraft_part_id?: string | null;
  sub_parts?: MaintenanceAircraftPart[];
  aircraft?: MaintenanceAircraft;
};

Part Fields

part_number
string
required
Manufacturer part number
part_name
string
required
Descriptive name of the part
serial
string
Part serial number (if serialized)
condition_type
string
required
Current condition status of the part
time_since_new
number | string
Operating time since part was new
time_since_overhaul
number | string
Operating time since last overhaul
cycles_since_new
number | string
Cycles accumulated since part was new
cycles_since_overhaul
number | string
Cycles since last overhaul
is_father
boolean
Indicates if this part has sub-components (parent part)
aircraft_part_id
string | null
Reference to parent part ID. Null if this is a root-level part.
sub_parts
MaintenanceAircraftPart[]
Array of child parts in the hierarchical structure

Example Usage

const aircraft: MaintenanceAircraft = {
  id: 1,
  serial: "MSN-12345",
  model: "737-800",
  acronym: "YV-1234",
  flight_hours: "24,567.50",
  flight_cycles: "18,234.00",
  fabricant_date: "2015-06-15T00:00:00Z",
  client: {
    id: 1,
    name: "Airline Operations Inc.",
    email: "[email protected]",
    phone_number: "+1-555-0100",
    address: "123 Airport Road",
    authorizing: "PROPIETARIO"
  },
  manufacturer: {
    id: 1,
    name: "Boeing",
    type: "AIRCRAFT",
    description: "Leading aircraft manufacturer"
  },
  location: {
    id: 1,
    name: "Main Hangar",
    address: "Maiquetía Airport",
    type: "MAINTENANCE_BASE",
    cod_iata: "CCS",
    isMainBase: true,
    companies: []
  },
  aircraft_parts: [
    {
      id: 1,
      part_number: "CFM56-7B26",
      part_name: "Engine #1",
      serial: "ENG-789456",
      condition_type: "SERVICEABLE",
      time_since_new: "12,345.00",
      time_since_overhaul: "2,456.00",
      cycles_since_new: "9,876.00",
      cycles_since_overhaul: "1,234.00",
      is_father: true,
      aircraft_part_id: null,
      sub_parts: []
    }
  ],
  comments: "Recent C-check completed"
};

Build docs developers (and LLMs) love