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
  • echo(text: String!): String!
  • # Requires access to resource GRAPHQL_FLIGHT.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • flight(flightNid: FlightNid!): Flight!
  • # Requires access to resource GRAPHQL_FLIGHT.
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNidList: [Not documented]
  • getFlights(flightNidList: [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]
  • flightList(filter: FlightFilter!): [Flight!]!
  • # Requires access to given flight
  • #
  • # Arguments
  • # flightNid: [Not documented]
  • flightDocuments(flightNid: FlightNid!): [DocumentElement!]!
  • # Requires access to resource GRAPHQL_POSITIONING_SEE.
  • # Requires access to given positioning
  • #
  • # Arguments
  • # positioningNid: [Not documented]
  • positioning(
  • positioningNid: 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]
  • positioningList(
  • timeInterval: TimeIntervalInput!
  • ): [Positioning!]! @deprecated( reason: "Please use positioningSection > listByTimeInterval field instead" )
  • positioningSection: ApiPositioningSection!
  • hotelReservationSection: HotelReservationSection!
  • # Requires access to resource GRAPHQL_SIMULATOR_SEE.
  • # Requires access to given simulator
  • #
  • # Arguments
  • # simulatorNid:
  • # Possible violation list: IS_NOT_SOME_ERROR
  • simulator(simulatorNid: 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.
  • dutyList(
  • timeInterval: TimeIntervalInput!,
  • loginNidList: [ApiLoginNidScalar!],
  • isRequest: Boolean
  • ): [Duty!]! @deprecated( reason: "Please, use query->duty->dutyList instead" )
  • # Requires access to resource GRAPHQL_DUTY_SEE
  • duty: DutySection!
  • dutyDefinition: DutyDefinitionQuerySection!
  • # Requires access to resource GRAPHQL_ACFT
  • #
  • # Arguments
  • # filterSpecialAircraft: [Not documented]
  • # onlyActive: [Not documented]
  • # easaType: [Not documented]
  • aircraftList(
  • filterSpecialAircraft: Boolean,
  • onlyActive: Boolean,
  • easaType: String
  • ): [Aircraft!]!
  • # Requires access to given aircraft.
  • # Requires access to resource GRAPHQL_ACFT
  • #
  • # Arguments
  • # acftNid: Aircraft numeric identifier
  • aircraft(acftNid: Int!): Aircraft!
  • # Requires access to given aircraft.
  • # Requires access to resource GRAPHQL_ACFT
  • #
  • # Arguments
  • # registration: Aircraft registration
  • aircraftByRegistration(
  • 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
  • aircraftTypeList(
  • wildcard: String,
  • onlyForOperator: Boolean
  • ): [AircraftType!]! @deprecated( reason: "Use one of the following fields instead: operatorAircraftTypeList, allAircraftTypeList" )
  • # List of all operator virtual aircraft types.
  • operatorVirtualAircraftTypeList: [AircraftType!]!
  • # List of all operator aircraft types.
  • #
  • # Arguments
  • # wildcard: If no wildcard is provided, all aircraft types will
  • # be returned
  • operatorAircraftTypeList(wildcard: String): [AircraftType!]!
  • # List of all aircraft types.
  • #
  • # Arguments
  • # wildcard: If no wildcard is provided, all aircraft types will
  • # be returned
  • allAircraftTypeList(wildcard: String): [AircraftType!]!
  • # Arguments
  • # aircraftTypeId: [Not documented]
  • aircraftType(aircraftTypeId: String!): AircraftType!
  • # List of all rest facilities.
  • #
  • # Arguments
  • # acftNid: If no aircraft is given as an argument, the default
  • # value for operator is provided.
  • restFacilityList(acftNid: Int): [RestFacility!]!
  • # Find aircraft location by day
  • #
  • # Arguments
  • # timeInterval: [Not documented]
  • # aircraftList: [Not documented]
  • aircraftLocationList(
  • timeInterval: TimeIntervalInput!,
  • aircraftList: [AircraftNid!]
  • ): [AircraftLocation!]!
  • # Get aircraft category list
  • aircraftCategoryList: [AircraftCategory!]!
  • # Requires access to resource GRAPHQL_ACFT
  • aircraftVirtualList: [AcftVirtual!]!
  • aircraftAvailability: AircraftAvailabilitySection!
  • crewAvailability: CrewAvailabilitySection!
  • aircraftActivities: AircraftActivitiesSection!
  • crewPanel: CrewPanel!
  • # Requires access to resource GRAPHQL_AIRPORT
  • #
  • # Arguments
  • # wildcard: [Not documented]
  • # countryCode: [Not documented]
  • # maxResults: [Not documented]
  • airportByWildcard(
  • wildcard: String!,
  • countryCode: String,
  • maxResults: Int
  • ): [Airport!]!
  • # Requires access to resource GRAPHQL_AIRPORT
  • #
  • # Arguments
  • # locationNid: [Not documented]
  • airportByLocation(locationNid: Int!): Airport
  • # Requires access to resource GRAPHQL_AIRPORT
  • #
  • # Arguments
  • # airport: [Not documented]
  • airport(airport: 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]
  • airportsWithHandlersByWildcard(
  • wildcard: String!
  • ): [AirportHandler!]!
  • # Requires access to resource PRICE_LIST.
  • # Requires access to resource GRAPHQL_ACFT
  • airportPriceList: [AptPriceList!]!
  • # Requires access to resource PRICE_LIST.
  • # Requires access to resource GRAPHQL_ACFT
  • aircraftPriceList: [AcftPriceList!]!
  • resourceList: [ApiResource!]!
  • # Requires access to resource GRAPHQL_API_KEYS
  • apiKeyList: [ApiKey!]!
  • # Requires access to resource GRAPHQL_CREW_MEMBER
  • #
  • # Arguments
  • # crewMemberNid: [Not documented]
  • crewMember(
  • crewMemberNid: CrewMemberNid!
  • ): CrewMember! @deprecated( reason: "use crewList->crewMember instead" )
  • crewList: crewList!
  • endorsement: EndorsementQuerySection!
  • # Requires access to resource GRAPHQL_FEASIBILITY_CHECK
  • #
  • # Arguments
  • # schedule: List of flights
  • # validations: List of validations
  • # addPositioningLegs: [Not documented]
  • feasibilityCheck(
  • schedule: [FeasibilityCheckFlight!]!,
  • validations: [FeasibilityCheckValidation!]!,
  • addPositioningLegs: Boolean
  • ): [[FeasibilityCheckInfo]!]!
  • # Arguments
  • # aircraft: [Not documented]
  • # startAirport: [Not documented]
  • # endAirport: [Not documented]
  • # paxNumber: [Not documented]
  • # airportCategories: [Not documented]
  • airportsNearAircraftRange(
  • aircraft: AircraftQueryInput!,
  • startAirport: AirportQueryInput!,
  • endAirport: AirportQueryInput!,
  • paxNumber: Int!,
  • airportCategories: [String!]
  • ): AirportsNearAircraftRange!
  • # Requires access to resource GRAPHQL_CONTACT
  • #
  • # Arguments
  • # wildcard: Minimum 1 characters length
  • # limit: [Not documented]
  • # account: [Not documented]
  • contactByWildcard(
  • wildcard: String!,
  • limit: Int,
  • account: AccountNid
  • ): [Contact!]!
  • # Will return all types of contacts.
  • #
  • # Arguments
  • # phonebookFilter: [Not documented]
  • # limit: [Not documented]
  • # offset: [Not documented]
  • # sortBy: [Not documented]
  • # sortByDirection: [Not documented]
  • contactByWildcardForPhonebook(
  • phonebookFilter: PhonebookFilter!,
  • limit: Int!,
  • offset: Int!,
  • sortBy: PhonebookSortByEnumType,
  • sortByDirection: SortDirectionEnum
  • ): [PhonebookContactList!]!
  • # Arguments
  • # filter:
  • contactByWildcardForDuplicationList(
  • filter: ContactDuplicationFilter!
  • ): [DuplicationContact!]!
  • # Requires access to resource GRAPHQL_CONTACT
  • #
  • # Arguments
  • # wildcard: Minimum 1 characters length
  • # limit: [Not documented]
  • companiesByWildcard(wildcard: String!, limit: Int): [Contact!]!
  • # Requires access to resource GRAPHQL_CONTACT
  • #
  • # Arguments
  • # wildcard: Minimum 1 characters length
  • # limit: [Not documented]
  • clientByWildcard(wildcard: String!, limit: Int): [Contact!]!
  • contact: ContactQuery!
  • # Requires access to resource GRAPHQL_CONTACT
  • #
  • # Arguments
  • # wildcard: Minimum 1 characters length
  • # limit: [Not documented]
  • accountsByWildcard(wildcard: String!, limit: Int): [Contact!]!
  • contract: ContractQuery!
  • # Requires access to resource GRAPHQL_HANDLING_AGENT
  • #
  • # Arguments
  • # wildcard: [Not documented]
  • handlingAgentByWildcard(
  • wildcard: String!
  • ): [AptdirHandler!]! @deprecated( reason: "Use airportDirectory->handlingAgentByWildcard instead" )
  • # Requires access to resource GRAPHQL_HANDLING_AGENT
  • #
  • # Arguments
  • # locationNid: [Not documented]
  • handlingAgentByLocation(
  • locationNid: Int!
  • ): [AptdirHandler!]! @deprecated( reason: "Use airportDirectory->handlingAgentByLocation instead" )
  • # Requires access to resource GRAPHQL_HANDLING_AGENT
  • #
  • # Arguments
  • # airportCode: [Not documented]
  • fuelSupplierByLocation(
  • airportCode: String!
  • ): [FuelSupplier!]! @deprecated( reason: "Use airportDirectory->fuelSupplierByLocation instead" )
  • # Requires access to resource GRAPHQL_SCHEDULE_ORDER_SEE
  • schedule: ScheduleQuery!
  • # Requires access to resource GRAPHQL_MAINTENANCE_SEE
  • opsMaintenance: MaintenanceQuery!
  • # Requires access to resource GRAPHQL_RESERVATION_SEE
  • reservation: ReservationQuery!
  • # Arguments
  • # wildcard: [Not documented]
  • countriesByWildcard(wildcard: String): [Country!]!
  • # Arguments
  • # quoteRequestNid: [Not documented]
  • quoteInvoiceByQuoteRequest(
  • quoteRequestNid: QuoteRequestNid!
  • ): QuoteRealizationInvoice
  • # Arguments
  • # quoteNid: [Not documented]
  • quoteInvoice(quoteNid: QuoteRealizationNid!): QuoteRealizationInvoice
  • quoteOperatorSettings: ApiQuoteOperatorSettings!
  • quoteRequest: QuoteRequestSection!
  • # Requires access to resource GRAPHQL_LOGIN
  • #
  • # Arguments
  • # deletedCode: [Not documented]
  • usersPermanentlyDeleted(deletedCode: String!): UserPermanentlyDeleted
  • # Arguments
  • # place: [Not documented]
  • privilegeLevel(
  • place: PrivilegePlaceScalar!
  • ): PrivilegeLevelEnum! @deprecated( reason: "Use `permissionLevel` field instead of this." )
  • # Arguments
  • # place: [Not documented]
  • permission(place: PrivilegePlaceScalar!): PermissionLevel!
  • # Arguments
  • # quoteNid: [Not documented]
  • quoteInvoiceDefaults(quoteNid: QuoteRealizationNid!): QuoteDefaultInvoice!
  • sales: SalesQuery!
  • trip: TripQuery!
  • # Requires access to resource GRAPHQL_FTL
  • ftl: Ftl!
  • ownerApp: OwnerAppQuery!
  • # Requires access to resource GRAPHQL_SALES_BOOKINGS
  • #
  • # Arguments
  • # operatorBaseNid: [Not documented]
  • aircraftFilter(operatorBaseNid: BaseNid): AcftFilter
  • # Requires access to resource GRAPHQL_FLIGHT_WATCH
  • flightWatch: 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]
  • passengerByWildcard(
  • wildcard: String!,
  • limit: Int,
  • offset: Int,
  • clientNid: ClientNid
  • ): [Contact!]!
  • passenger: PassengerQuery!
  • # Arguments
  • # stdLt: [Not documented]
  • # staLt: [Not documented]
  • # adep: [Not documented]
  • # ades: [Not documented]
  • # aircraft: [Not documented]
  • flightEstimatedTime(
  • stdLt: DateTime,
  • staLt: DateTime,
  • adep: AirportCodeScalar!,
  • ades: AirportCodeScalar!,
  • aircraft: AircraftNid!
  • ): EstimatedTime!
  • # Requires access to resource GRAPHQL_JOURNEY_LOG
  • journeyLog: JourneyLogQuery!
  • # Requires access to resource GRAPHQL_AIRPORT_CATEGORY_SEE
  • #
  • # Arguments
  • # airport: [Not documented]
  • airportCategory(airport: AirportQueryInput!): [ApiAirportCategory]
  • # Requires access to resource EMAIL_TEMPLATE_SEE
  • emailTemplate: EmailTemplateQuery!
  • phonebook: PhonebookQuerySection!
  • checklist: ChecklistQuery!
  • # Requires access to resource GRAPHQL_FLIGHT
  • iataMessages: IataMessagesQuery!
  • documentSettings: DocumentSettingsQuery!
  • generalSettings: GeneralSettingsQuery!
  • # Requires access to resource GRAPHQL_FLIGHT
  • flights: FlightsQuery!
  • privileges: PrivilegesQuery!
  • history: HistorySection!
  • # Arguments
  • # wildcard: [Not documented]
  • subchartersByWildcard(wildcard: String!): [QuoteRealizationSubcharter!]!
  • # Arguments
  • # operator: [Not documented]
  • subcharterLastCancellationPolicy(
  • operator: String!
  • ): String!
  • # Arguments
  • # wildcard: [Not documented]
  • subchartersOperatorsByWildcard(
  • wildcard: String!
  • ): [String!]!
  • # Requires access to resource MAILBOX_CONFIG_SEE
  • mailboxConfig: MailboxConfigQuerySection!
  • airportDirectory: AirportDirectory!
  • multiLeg: MultiLegQuery!
  • historicalFlights: HistoricalFlightsQuery!
  • # Arguments
  • # wildcard: [Not documented]
  • # place: Place resource map
  • loginByWildcardWithAccessToPlace(
  • wildcard: String!,
  • place: String!
  • ): [Login!]!
  • # Arguments
  • # loginNid: If nid not provided, logged user will be used
  • loginByNid(loginNid: ApiLoginNidScalar): Login!
  • logins: Logins!
  • languages: LanguagesQuery!
  • timezones: TimezoneQuery!
  • newsfeed: Newsfeed!
  • acftModelFlights: AcftModelFlightTimeQuery!
  • loginPreferences: LoginPreferencesQuerySection!
  • ownerBoard: OwnerBoardQuery!
  • # Requires access to resource GRAPHQL_AIRCRAFT_INSURANCE_SEE
  • aircraftInsurance: AircraftInsuranceQuery!
  • crewTravel: CrewTravelSection!
  • # Restricted access only for Leon employees
  • pricingManager: PricingManagerQuery!
  • operatorsModules: operatorsModulesQuery!
  • ops: OpsQuery!
  • # Requires access to resource GRAPHQL_CREW_MEMBER
  • aircraftCrewTemporary: AircraftCrewTemporarySection!
  • dutyAccount: DutyAccountQuerySection!
  • webhook: WebhookQuerySection!
  • # Requires access to resource GRAPHQL_FUEL_SEE
  • fuel: FuelQuery!
  • flightPermits: FlightPermitQuery!
  • rosterize: RosterizeQuerySection!
  • documentManager: DocumentManagerSection!
  • leonAccountSettings: LeonAccountSettingsQuerySection!
  • countryDirectory: CountryDirectoryQuery!
  • featureToggles: FeatureTogglesQuery!
  • travelDocument: TravelDocumentSection!
  • mvt: MvtSection!
  • # Requires access to resource GRAPHQL_FLIGHT_CUSTOMER_SEE
  • flightCustomer: FlightCustomer!
  • fleet: FleetQuerySection!
  • # Requires access to resource INTERACTIVE_API_SEE
  • interactiveAPI: InteractiveAPI!
  • loggedUser: LoggedUser!
  • # Requires access to resource REPORT_WIZARD_SEE
  • reportWizard: ReportWizardQuery!
  • integration: IntegrationQueries!
  • # Requires access to resource GRAPHQL_OPERATOR
  • operator: Operator!
  • operatorBases: [OperatorBase!]!
  • # Requires to be authenticated by OAuth..
  • # Requires access to resource GRAPHQL_EXTERNAL_MARKETPLACE_SEE
  • externalMarketplace: ExternalMarketplaceQuery!
  • tag: TagQuery!
  • # Requires access to resource GRAPHQL_FLEET_PLANNING_SEE
  • fleetPlanning: FleetPlanningQuery!
  • }

link Require by

This element is not required by anyone