package flightdata

import "errors"

var (
	ErrRequired                     = errors.New("flight_data required")
	ErrMissionReference             = errors.New("flight_data mission reference invalid")
	ErrCoPilotReference             = errors.New("flight_data co_pilot reference invalid")
	ErrOriginLocationReference      = errors.New("flight_data origin location reference invalid")
	ErrDestinationLocationReference = errors.New("flight_data destination location reference invalid")
	ErrFacilityReference            = errors.New("flight_data facility reference invalid")
	ErrCreateBlocked                = errors.New("flight_data create blocked")
	ErrLocked                       = errors.New("flight_data locked")
	ErrLockedAfterFlightInspection  = errors.New("flight_data locked by after_flight_inspection")
)

const (
	ErrorMessageRequired                     = "flight data is required"
	ErrorMessageMissionReference             = "mission must reference an existing mission"
	ErrorMessageCoPilotReference             = "co_pilot must reference an existing user"
	ErrorMessageOriginLocationReference      = "origin must reference exactly one location type"
	ErrorMessageDestinationLocationReference = "destination must reference exactly one location type"
	ErrorMessageFacilityReference            = "facility reference is invalid"
	ErrorMessageFieldRequired                = "field is required"
	ErrorMessageInvalidUUID                  = "invalid UUID"
	ErrorMessageInvalidRFC3339               = "invalid RFC3339 datetime"
	ErrorMessageInvalidPathUUID              = "uuid is invalid UUID"
	ErrorMessageNotFound                     = "flight data not found"
	ErrorMessageCreateBlocked                = "flight data cannot be created because fm report already exists for this flight"
	ErrorMessageLocked                       = "flight data is locked because fm report is completed"
	ErrorMessageLockedAfterFlightInspection  = "flight data is locked because after flight inspection already exists"
)
