import Lacuna from '../lacuna'; import Endpoint from '../core/endpoint'; import * as map from '../types/map'; class Map extends Endpoint { lacuna: Lacuna; module: string; constructor(lacuna: Lacuna, module: string) { super(); this.lacuna = lacuna; this.module = module; } getStarMap(params: map.GetStarMapParams) { return this.callWithSession('get_star_map', params); } getStars(params: map.GetStarsParams) { return this.callWithSession('get_stars', params); } checkStarForIncomingProbe(params: map.CheckStarForIncomingProbeParams) { return this.callWithSession( 'check_star_for_incoming_probe', params ); } getStar(params: map.GetStarParams) { return this.callWithSession('get_star', params); } getStarByName(params: map.GetStarByNameParams) { return this.callWithSession('get_star_by_name', params); } getStarByXy(params: map.GetStarByXyParams) { return this.callWithSession('get_star_by_xy', params); } searchStars(params: map.SearchStarsParams) { return this.callWithSession('search_stars', params); } probeSummaryFissures(params: map.ProbeSummaryFissuresParams) { return this.callWithSession('probe_summary_fissures', params); } viewLaws(params: map.ViewLawsParams) { return this.callWithSession('view_laws', params); } } export default Map;