OBJECT
Query
Represents all root fields exposed by Leon API
link GraphQL Schema definition
- type Query {
- # Outputs given string, can be used for testing API connection and credentials
- #
- # Arguments
- # text: Text to output
- (: String!): String!
- # Requires access to resource GRAPHQL_FLIGHT.
- # Requires access to given flight
- #
- # Arguments
- # flightNid: [Not documented]
- (: FlightNid!): Flight!
- # Requires access to resource GRAPHQL_FLIGHT.
- # Requires access to given flight
- #
- # Arguments
- # flightNidList: [Not documented]
- (: [FlightNid!]!): [Flight!]!
- # Returns flights data for given period using specified filter settings. Period
- # cannot be greater that 3 months..
- # Requires access to resource GRAPHQL_FLIGHT.
- # Requires access to given flight
- #
- # Arguments
- # filter: [Not documented]
- (: FlightFilter!): [Flight!]!
- # Requires access to given flight
- #
- # Arguments
- # flightNid: [Not documented]
- (: FlightNid!): [DocumentElement!]!
- # Requires access to resource GRAPHQL_POSITIONING_SEE.
- # Requires access to given positioning
- #
- # Arguments
- # positioningNid: [Not documented]
- (
- : PositioningNid!
- ): Positioning! @deprecated( reason: "Please use positioningSection > positioning field instead" )
- # Requires access to resource GRAPHQL_POSITIONING_SEE.
- # Requires access to given positioning.
- # time interval has to be shorter than 3 months
- #
- # Arguments
- # timeInterval: [Not documented]
- (
- : TimeIntervalInput!
- ): [Positioning!]! @deprecated( reason: "Please use positioningSection > listByTimeInterval field instead" )
- : ApiPositioningSection!
- : HotelReservationSection!
- # Requires access to resource GRAPHQL_SIMULATOR_SEE.
- # Requires access to given simulator
- #
- # Arguments
- # simulatorNid:
- # Possible violation list: IS_NOT_SOME_ERROR
- (: SimulatorNid!): Simulator!
- # Allowed time interval length depends on loginNidList count.
- # For count of up to 9 elements, time interval has to be shorter than 3 months.
- # For count of up to 19 elements, time interval has to be shorter than 2 months.
- # Otherwise, time interval has to be shorter than 1 month.
- # .
- # Returns only duties accessible for logged user considering aircraft and operator
- # privileges
- #
- # Arguments
- # timeInterval:
- # loginNidList:
- # isRequest: If passed node will return either only requests or
- # only actual duties.
- #
- # If not passed all duties will be returned.
- # dutyDefinitionNidList:
- (
- : TimeIntervalInput!,
- : [ApiLoginNidScalar!],
- : Boolean,
- : [ApiDutyDefinitionNidRequiredScalar!]
- ): [Duty!]! @deprecated( reason: "Please, use query->duty->dutyList instead" )
- # Requires access to resource GRAPHQL_DUTY_SEE
- : DutySection!
- : DutyDefinitionQuerySection!
- # Requires access to resource GRAPHQL_ACFT
- #
- # Arguments
- # filterSpecialAircraft: [Not documented]
- # onlyActive: [Not documented]
- # easaType: [Not documented]
- (
- : Boolean,
- : Boolean,
- : String
- ): [Aircraft!]!
- # Requires access to given aircraft.
- # Requires access to resource GRAPHQL_ACFT
- #
- # Arguments
- # acftNid: Aircraft numeric identifier
- (: Int!): Aircraft!
- # Requires access to given aircraft.
- # Requires access to resource GRAPHQL_ACFT
- #
- # Arguments
- # registration: Aircraft registration
- (
- : AircraftRegistrationActive!
- ): Aircraft!
- # List of all aircraft types with aircraft types
- #
- # already belonging to operator sorted on top
- #
- # Arguments
- # wildcard: If no wildcard is provided, all aircraft types will
- # be returned
- # onlyForOperator: If true is provided, only aircraft types
- # belonging to operator will be returned
- (
- : String,
- : Boolean
- ): [AircraftType!]! @deprecated( reason: "Use one of the following fields instead: operatorAircraftTypeList, allAircraftTypeList" )
- # List of all operator virtual aircraft types.
- : [AircraftType!]!
- # List of all operator aircraft types.
- #
- # Arguments
- # wildcard: If no wildcard is provided, all aircraft types will
- # be returned
- (: String): [AircraftType!]!
- # Arguments
- # aircraftTypeId: [Not documented]
- (: String!): AircraftType!
- # List of all rest facilities.
- #
- # Arguments
- # acftNid: If no aircraft is given as an argument, the default
- # value for operator is provided.
- (: Int): [RestFacility!]!
- # Find aircraft location by day
- #
- # Arguments
- # timeInterval: [Not documented]
- # aircraftList: [Not documented]
- (
- : TimeIntervalInput!,
- : [AircraftNid!]
- ): [AircraftLocation!]!
- # Get aircraft category list
- : [AircraftCategory!]!
- # List of all aircraft types.
- #
- # Arguments
- # wildcard: If no wildcard is provided, all aircraft types will
- # be returned
- # onlyActive:
- (: String, : Boolean): [AircraftType!]!
- # Requires access to resource GRAPHQL_ACFT
- : [AcftVirtual!]!
- : AircraftAvailabilitySection!
- : CrewAvailabilitySection!
- : AircraftActivitiesSection!
- : CrewPanel!
- # Requires access to resource GRAPHQL_AIRPORT
- #
- # Arguments
- # wildcard: [Not documented]
- # countryCode: [Not documented]
- # maxResults: [Not documented]
- (
- : String!,
- : String,
- : Int
- ): [Airport!]!
- # Requires access to resource GRAPHQL_AIRPORT
- #
- # Arguments
- # locationNid: [Not documented]
- (: Int!): Airport
- # Requires access to resource GRAPHQL_AIRPORT
- #
- # Arguments
- # airport: [Not documented]
- (: AirportQueryInput!): Airport!
- # Get airports with handlers by wildcard. Will search by airport code or handler
- # name. You can search both by pattern: "airport_code - handler_name"
- #
- # Arguments
- # wildcard: [Not documented]
- (
- : String!
- ): [AirportHandler!]!
- # Requires access to resource PRICE_LIST.
- # Requires access to resource GRAPHQL_ACFT
- : [AptPriceList!]!
- # Requires access to resource PRICE_LIST.
- # Requires access to resource GRAPHQL_ACFT
- : [AcftPriceList!]!
- : [ApiResource!]!
- # Requires access to resource GRAPHQL_API_KEYS
- : [ApiKey!]!
- # Requires access to resource GRAPHQL_API_KEYS
- #
- # Arguments
- # apiKeyNid: [Not documented]
- (: Int!): ApiKey!
- # Requires access to resource GRAPHQL_CREW_MEMBER
- #
- # Arguments
- # crewMemberNid: [Not documented]
- (
- : CrewMemberNid!
- ): CrewMember! @deprecated( reason: "use crewList->crewMember instead" )
- : crewList!
- : EndorsementQuerySection!
- # Requires access to resource GRAPHQL_FEASIBILITY_CHECK
- #
- # Arguments
- # schedule: List of flights
- # validations: List of validations
- # addPositioningLegs: [Not documented]
- (
- : [FeasibilityCheckFlight!]!,
- : [FeasibilityCheckValidation!]!,
- : Boolean
- ): [[FeasibilityCheckInfo]!]!
- # Arguments
- # aircraft: [Not documented]
- # startAirport: [Not documented]
- # endAirport: [Not documented]
- # paxNumber: [Not documented]
- # airportCategories: [Not documented]
- (
- : AircraftQueryInput!,
- : AirportQueryInput!,
- : AirportQueryInput!,
- : Int!,
- : [String!]
- ): AirportsNearAircraftRange!
- # Requires access to resource GRAPHQL_CONTACT
- #
- # Arguments
- # wildcard: Minimum 1 characters length
- # limit: [Not documented]
- # account: [Not documented]
- (
- : String!,
- : Int,
- : AccountNid
- ): [Contact!]!
- # Will return all types of contacts.
- #
- # Arguments
- # phonebookFilter: [Not documented]
- # limit: [Not documented]
- # offset: [Not documented]
- # sortBy: [Not documented]
- # sortByDirection: [Not documented]
- (
- : PhonebookFilter!,
- : Int!,
- : Int!,
- : PhonebookSortByEnumType,
- : SortDirectionEnum
- ): [PhonebookContactList!]!
- # Arguments
- # filter:
- (
- : ContactDuplicationFilter!
- ): [DuplicationContact!]!
- # Requires access to resource GRAPHQL_CONTACT
- #
- # Arguments
- # wildcard: Minimum 1 characters length
- # limit: [Not documented]
- (: String!, : Int): [Contact!]!
- # Requires access to resource GRAPHQL_CONTACT
- #
- # Arguments
- # wildcard: Minimum 1 characters length
- # limit: [Not documented]
- (: String!, : Int): [Contact!]!
- : ContactQuery!
- # Requires access to resource GRAPHQL_CONTACT
- #
- # Arguments
- # wildcard: Minimum 1 characters length
- # limit: [Not documented]
- (: String!, : Int): [Contact!]!
- : ContractQuery!
- # Requires access to resource GRAPHQL_HANDLING_AGENT
- #
- # Arguments
- # wildcard: [Not documented]
- (
- : String!
- ): [AptdirHandler!]! @deprecated( reason: "Use airportDirectory->handlingAgentByWildcard instead" )
- # Requires access to resource GRAPHQL_HANDLING_AGENT
- #
- # Arguments
- # locationNid: [Not documented]
- (
- : Int!
- ): [AptdirHandler!]! @deprecated( reason: "Use airportDirectory->handlingAgentByLocation instead" )
- # Requires access to resource GRAPHQL_HANDLING_AGENT
- #
- # Arguments
- # airportCode: [Not documented]
- (
- : String!
- ): [FuelSupplier!]! @deprecated( reason: "Use airportDirectory->fuelSupplierByLocation instead" )
- # Requires access to resource GRAPHQL_MAINTENANCE_SEE
- : MaintenanceQuery!
- # Requires access to resource GRAPHQL_RESERVATION_SEE
- : ReservationQuery!
- # Arguments
- # wildcard: [Not documented]
- (: String): [Country!]!
- : CountryGroupQuery!
- # Requires access to resource GRAPHQL_SALES_QUOTE_INVOICE_EDIT
- #
- # Arguments
- # quoteRequestNid: [Not documented]
- (
- : QuoteRequestNid!
- ): QuoteRealizationInvoice
- # Requires access to resource GRAPHQL_SALES_QUOTE_INVOICE_EDIT
- #
- # Arguments
- # quoteNid: [Not documented]
- (: QuoteRealizationNid!): QuoteRealizationInvoice
- : ApiQuoteOperatorSettings!
- : QuoteRequestSection!
- # Requires access to resource GRAPHQL_LOGIN
- #
- # Arguments
- # deletedCode: [Not documented]
- (: String!): UserPermanentlyDeleted
- # Arguments
- # place: [Not documented]
- (
- : PrivilegePlaceScalar!
- ): PrivilegeLevelEnum! @deprecated( reason: "Use `permissionLevel` field instead of this." )
- # Arguments
- # place: [Not documented]
- (: PrivilegePlaceScalar!): PermissionLevel!
- # Requires access to resource GRAPHQL_SALES_QUOTE_INVOICE_EDIT
- #
- # Arguments
- # quoteNid: [Not documented]
- (: QuoteRealizationNid!): QuoteDefaultInvoice!
- : SalesQuery!
- : TripQuery!
- # Requires access to resource GRAPHQL_FTL
- : Ftl!
- # Requires access to resource GRAPHQL_FRM_DATA_SEE
- : FatigueRiskManagement!
- : OwnerAppQuery!
- # Requires access to resource GRAPHQL_AIRCRAFT_FILTER_SEE
- #
- # Arguments
- # operatorBaseNid:
- # place:
- (
- : BaseNid,
- : AircraftFilterPlaceEnum
- ): AcftFilter
- # Requires access to resource GRAPHQL_FLIGHT_WATCH
- : FlightWatchQuery!
- # Requires access to resource GRAPHQL_PASSENGER.
- # Requires access to resource GRAPHQL_CONTACT
- #
- # Arguments
- # wildcard: [Not documented]
- # limit: [Not documented]
- # offset: [Not documented]
- # clientNid: [Not documented]
- (
- : String!,
- : Int,
- : Int,
- : ClientNid
- ): [Contact!]!
- : PassengerQuery!
- # Calculate estimated flight times based on departure/arrival airports and
- # aircraft. Requires either stdLt (scheduled departure time local) or staLt
- # (scheduled arrival time local) to be provided.
- #
- # Arguments
- # stdLt: Scheduled departure time in local timezone (optional if
- # staLt is provided)
- # staLt: Scheduled arrival time in local timezone (optional if
- # stdLt is provided)
- # adep: [Not documented]
- # ades: [Not documented]
- # aircraft: [Not documented]
- (
- : DateTime,
- : DateTime,
- : AirportCodeScalar!,
- : AirportCodeScalar!,
- : AircraftNid!
- ): EstimatedTime!
- # Requires access to resource GRAPHQL_JOURNEY_LOG
- : JourneyLogQuery!
- # Requires access to resource GRAPHQL_AIRPORT_CATEGORY_SEE
- #
- # Arguments
- # airport: [Not documented]
- (: AirportQueryInput!): [ApiAirportCategory]
- # Requires access to resource EMAIL_TEMPLATE_SEE
- : EmailTemplateQuery!
- : PhonebookQuerySection!
- : ChecklistQuery!
- # Requires access to resource GRAPHQL_FLIGHT
- : IataMessagesQuery!
- : DocumentSettingsQuery!
- : GeneralSettingsQuery!
- # Requires access to resource GRAPHQL_FLIGHT
- : FlightsQuery!
- : PrivilegesQuery!
- : HistorySection!
- # Arguments
- # wildcard: [Not documented]
- (: String!): [QuoteRealizationSubcharter!]!
- # Arguments
- # operator: [Not documented]
- (
- : String!
- ): String!
- # Arguments
- # wildcard: [Not documented]
- (
- : String!
- ): [String!]!
- # Requires access to resource MAILBOX_CONFIG_SEE
- : MailboxConfigQuerySection!
- : AirportDirectory!
- : MultiLegQuery!
- : HistoricalFlightsQuery!
- # Arguments
- # wildcard: [Not documented]
- # place: Place resource map
- (
- : String!,
- : String!
- ): [Login!]!
- # Arguments
- # loginNid: If nid not provided, logged user will be used
- (: ApiLoginNidScalar): Login!
- : Logins!
- # List of all service accounts for operator.
- : [Login!]!
- : LanguagesQuery!
- : TimezoneQuery!
- : Newsfeed!
- : AcftModelFlightTimeQuery!
- : LoginPreferencesQuerySection!
- : OwnerBoardQuery!
- # Requires access to resource GRAPHQL_AIRCRAFT_INSURANCE_SEE
- : AircraftInsuranceQuery!
- : CrewTravelSection!
- # Restricted access only for Leon employees
- : PricingManagerQuery!
- : operatorsModulesQuery!
- : OpsQuery!
- # Requires access to resource GRAPHQL_CREW_MEMBER
- : AircraftCrewTemporarySection!
- : DutyAccountQuerySection!
- : WebhookQuerySection!
- # Requires access to resource GRAPHQL_FUEL_SEE
- : FuelQuery!
- : FlightPermitQuery!
- # Requires access to resource GRAPHQL_PAIRING_SEE
- : PairingQuerySection!
- : DocumentManagerSection!
- : LeonAccountSettingsQuerySection!
- : CountryDirectoryQuery!
- : FeatureTogglesQuery!
- : TravelDocumentSection!
- : MvtSection!
- # Requires access to resource GRAPHQL_FLIGHT_CUSTOMER_SEE
- : FlightCustomer!
- # Requires access to resource GRAPHQL_SECURITY_SEE
- : SecurityQuery!
- : RecurrenceRuleQuery!
- : FleetQuerySection!
- # Requires access to resource INTERACTIVE_API_SEE
- : InteractiveAPI!
- : LoggedUser!
- # Requires access to resource REPORT_WIZARD_SEE
- : ReportWizardQuery!
- : IntegrationWingmanAiQuery!
- : IntegrationQueries!
- # Requires access to resource GRAPHQL_OPERATOR
- : Operator!
- : [OperatorBase!]!
- # Requires to be authenticated by OAuth..
- # Requires access to resource GRAPHQL_EXTERNAL_MARKETPLACE_SEE
- : ExternalMarketplaceQuery!
- : TagQuery!
- # Requires access to resource GRAPHQL_FLEET_PLANNING_SEE
- : FleetPlanningQuery!
- : AiQuery!
- # Requires access to resource GRAPHQL_SCHEDULE_ORDER_SEE
- : ScheduleQuery!
- # Requires access to resource MANAGED_OPERATOR_SEE
- : LeonAsFlightSupportQuery!
- }
link Require by
This element is not required by anyone