Skip to main content

Overview

The Warehouse type represents physical storage facilities in the SIGEAC system. Warehouses store batches of articles and are associated with specific companies and locations.

Type Definition

export type Warehouse = {
  id: string;
  name: string;
  location: {
    address: string;
    type: string;
  };
  company: string;
  type: string;
};

Fields

id
string
required
Unique identifier for the warehouse
name
string
required
Display name of the warehouse
location
object
required
Physical location information for the warehouse
company
string
required
Company name or identifier that owns/operates this warehouse
type
string
required
Classification of the warehouse (e.g., “MAIN”, “SATELLITE”, “TEMPORARY”)

Extended Warehouse Information

Full Location Type

The complete Location type includes additional fields:
export type Location = {
  id: number;
  name: string;
  address: string;
  type: string;
  isMainBase: boolean;
  cod_iata: string;
  companies: Company[];
};
id
number
Unique identifier for the location
name
string
Location name (e.g., “Miami International Airport”)
isMainBase
boolean
Indicates if this is the primary operational base
cod_iata
string
IATA airport/location code (e.g., “MIA”, “JFK”)
companies
Company[]
Array of companies operating at this location

Warehouse Dashboard Metrics

The system provides comprehensive dashboard metrics for warehouse operations:
export interface WarehouseDashboard {
  storedCount: number;
  dispatchCount: number;
  dispatchAircraftCount: number;
  dispatchWorkOrderCount: number;
  tool_need_calibration_count: number;
  returnToolsCount: number;
  restockCount: number;
  tools_need_calibration: {
    tool_id: number;
    batch_name: string;
    article_id: number;
    part_number: string;
    next_calibration: string;
    status: string;
  }[];
  toolsToReturn: any[];
  articlesOutOfStock: {
    id: number;
    description: string;
    part_number: string;
    serial: string | null;
    category: string;
    condition: string;
    zone: string;
  }[];
  expired_tools_count: number;
  expired_tools: {
    tool_id: number;
    article_id: number;
    batch_name: string;
    part_number: string;
    next_calibration: string;
    status: string;
  }[];
  userStats: {
    id: number;
    username: string;
    name: string;
    job_title: string;
    dispatch_count: number;
    incoming_count: number;
    last_used_at: string;
  }[];
}

Dashboard Metrics Fields

storedCount
number
Total number of articles currently stored in the warehouse
dispatchCount
number
Total number of dispatch requests processed
dispatchAircraftCount
number
Number of dispatches specifically for aircraft
dispatchWorkOrderCount
number
Number of dispatches related to work orders
tool_need_calibration_count
number
Count of tools requiring calibration
returnToolsCount
number
Number of tools awaiting return to warehouse
restockCount
number
Number of items below minimum quantity threshold requiring restock
tools_need_calibration
array
Detailed list of tools requiring calibration
articlesOutOfStock
array
List of articles that have fallen below minimum quantity
expired_tools
array
Tools with expired calibration certificates
userStats
array
User activity statistics for warehouse operations

Example Data

Basic Warehouse

{
  "id": "WH-001",
  "name": "Main Warehouse - Miami",
  "location": {
    "address": "2450 NW 21st Street, Miami, FL 33142",
    "type": "WAREHOUSE"
  },
  "company": "SIGEAC Aviation Services",
  "type": "MAIN"
}

Hangar Facility

{
  "id": "HG-MIA-05",
  "name": "Hangar 5 - MIA",
  "location": {
    "address": "Miami International Airport, Hangar 5, Miami, FL 33142",
    "type": "HANGAR"
  },
  "company": "SIGEAC Aviation Services",
  "type": "SATELLITE"
}

Warehouse with Full Location Details

{
  "id": "WH-002",
  "name": "Regional Distribution Center",
  "location": {
    "id": 5,
    "name": "Fort Lauderdale Storage Facility",
    "address": "1500 Airport Road, Fort Lauderdale, FL 33315",
    "type": "WAREHOUSE",
    "isMainBase": false,
    "cod_iata": "FLL",
    "companies": [
      {
        "id": 1,
        "name": "SIGEAC Aviation Services",
        "slug": "sigeac-aviation"
      }
    ]
  },
  "company": "SIGEAC Aviation Services",
  "type": "SATELLITE"
}

Warehouse Relationships

Batch Association

Batches reference their warehouse:
export type Batch = {
  // ... other fields
  warehouse_id: number;
  warehouse_name: string;
};

Company Association

Companies have multiple associated locations:
export type Company = {
  id: number;
  name: string;
  // ... other fields
};

export type Location = {
  id: number;
  name: string;
  address: string;
  companies: Company[];
  // ... other fields
};

Use Cases

Multi-Location Inventory Management

Track inventory across multiple warehouse locations:
  • Main distribution centers
  • Satellite facilities at airports
  • Temporary storage locations
  • Hangar-based inventory

Operational Metrics

Monitor warehouse performance:
  • Storage capacity utilization
  • Dispatch processing times
  • Tool calibration compliance
  • Stock level maintenance
  • User productivity tracking

Maintenance Alerts

Automated notifications for:
  • Tools requiring calibration
  • Expired tool certifications
  • Items below minimum stock levels
  • Pending tool returns
  • Batch - Article groupings stored in warehouses
  • Article - Individual items stored in warehouse batches
  • DispatchRequest - Requests to move articles from warehouses

Build docs developers (and LLMs) love