UNPKG

@thrustcurve/api1

Version:

TypeScript client for the ThrustCurve.org API

31 lines (30 loc) 1.18 kB
import type { MetadataRequest, MetadataResponse, SearchRequest, SearchResponse, DownloadRequest, DownloadResponse, GetRocketsRequest, GetRocketsResponse, SaveRocketsRequest, SaveRocketsResponse, MotorGuideRequest, MotorGuideResponse } from './types.js'; export declare class ThrustCurveAPI { private baseUrl; constructor(baseUrl?: string); private request; /** * Get metadata about motors in the database */ metadata(criteria?: MetadataRequest): Promise<MetadataResponse>; /** * Search for motors by various criteria */ searchMotors(criteria: SearchRequest): Promise<SearchResponse>; /** * Download simulator files for specific motors */ downloadMotorData(request: DownloadRequest): Promise<DownloadResponse>; /** * Get saved rockets for an account */ getRockets(credentials: GetRocketsRequest): Promise<GetRocketsResponse>; /** * Save rockets to an account */ saveRockets(request: SaveRocketsRequest): Promise<SaveRocketsResponse>; /** * Get motor recommendations for a specific rocket */ motorGuide(request: MotorGuideRequest): Promise<MotorGuideResponse>; }