{"version":3,"file":"index.mjs","names":[],"sources":["../../src/Flight/index.ts"],"sourcesContent":["import type { Config } from '../config.js';\nimport {\n  createSoapService,\n  type SoapService,\n} from '../utils/soap-query-definition.js';\n\nimport { queryFlightPlans } from './queryFlightPlans.js';\nimport { queryFlightsByAerodrome } from './queryFlightsByAerodrome.js';\nimport { queryFlightsByAerodromeSet } from './queryFlightsByAerodromeSet.js';\nimport { queryFlightsByAircraftOperator } from './queryFlightsByAircraftOperator.js';\nimport { queryFlightsByAirspace } from './queryFlightsByAirspace.js';\nimport { queryFlightsByMeasure } from './queryFlightsByMeasure.js';\nimport { queryFlightsByTrafficVolume } from './queryFlightsByTrafficVolume.js';\nimport { retrieveFlight } from './retrieveFlight.js';\n\nconst queryDefinitions = {\n  retrieveFlight,\n  queryFlightPlans,\n  queryFlightsByAerodrome,\n  queryFlightsByAerodromeSet,\n  queryFlightsByAircraftOperator,\n  queryFlightsByAirspace,\n  queryFlightsByMeasure,\n  queryFlightsByTrafficVolume,\n};\n\nexport type FlightService = SoapService<typeof queryDefinitions>;\n\nexport async function getFlightClient(config: Config): Promise<FlightService> {\n  const service = await createSoapService({\n    serviceName: 'FlightServices',\n    config,\n    queryDefinitions,\n  });\n\n  return service;\n}\n"],"mappings":";;;;;;;;;;AAeA,MAAM,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAID,eAAsB,gBAAgB,QAAwC;AAO5E,QAAO,MANe,kBAAkB;EACtC,aAAa;EACb;EACA;EACD,CAAC"}