@volant-autonomy/via-sdk 1.4004.1 → 1.4028.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/direct.d.ts CHANGED
@@ -17,6 +17,7 @@ export type getFlightplanWaypointsDetailed = paths['/flightplans/{flightplan_id}
17
17
  export type getFlightplanStatistics = paths['/flightplans/{flightplan_id}/statistics']['get'];
18
18
  export type getFlightplanVolumes = paths['/flightplans/{flightplan_id}/volumes']['get'];
19
19
  export type getFlightplanDeconflictedStartTime = paths['/flightplans/{flightplan_id}/start_time_deconflict']['get'];
20
+ export type getFlightplanTerrainProfile = paths['/flightplans/{flightplan_id}/terrain_profile']['get'];
20
21
  export type changeFlightplanState = paths['/flightplans/{flightplan_id}/state']['post'];
21
22
  export type getFlightplanAsFile = paths['/flightplans/{flightplan_id}/content']['get'];
22
23
  export type createAirspaceConstraint = paths['/airspace_constraints/']['post'];
@@ -223,6 +224,36 @@ export declare class Direct {
223
224
  response: Response;
224
225
  aborted: false;
225
226
  }>;
227
+ /**
228
+ * Retrieve Terrain Elevation Profile Overflown By Flightplan
229
+ * @description Retrieve data describing the elevation profile of the terrain directly underneath the specified flightplan.
230
+ */
231
+ getFlightplanTerrainProfile<Opts extends requestOptions = {}>(id: pathOf<getFlightplanTerrainProfile>['flightplan_id'], opts?: Opts | requestOptions): Promise<{
232
+ data?: never;
233
+ error: {
234
+ errors: {
235
+ detail: string;
236
+ status: "401" | "400" | "422" | "404";
237
+ }[];
238
+ status: "401" | "400" | "422" | "404";
239
+ };
240
+ response: Response;
241
+ aborted: false;
242
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
243
+ data?: never;
244
+ error?: never;
245
+ response?: never;
246
+ aborted: true;
247
+ } : never) | {
248
+ data: {
249
+ id: string;
250
+ type?: "data_profile";
251
+ attributes: import("./volant-schema").components["schemas"]["TerrainProfileAttributes"];
252
+ };
253
+ error?: never;
254
+ response: Response;
255
+ aborted: false;
256
+ }>;
226
257
  /**
227
258
  * Retrieve Flightplan Statistics
228
259
  * @description Retrieve statistics for the specified flightplan, including the nominal time and cost.
package/dist/index.cjs.js CHANGED
@@ -210,6 +210,13 @@ class Direct {
210
210
  }
211
211
  return resp;
212
212
  }
213
+ async getFlightplanTerrainProfile(id, opts) {
214
+ const resp = await this.fetcher.GET('/flightplans/{flightplan_id}/terrain_profile', { path: { flightplan_id: id } }, opts);
215
+ if (resp.error === undefined && !resp.aborted) {
216
+ return Object.assign(Object.assign({}, resp), { data: resp.data.data });
217
+ }
218
+ return resp;
219
+ }
213
220
  async getFlightplanStatistics(id, args, opts) {
214
221
  const resp = await this.fetcher.GET('/flightplans/{flightplan_id}/statistics', { path: { flightplan_id: id }, query: args }, opts);
215
222
  if (resp.error === undefined && !resp.aborted) {
@@ -786,7 +793,7 @@ function defaultPathSerializer(pathname, pathParams) {
786
793
  return nextURL;
787
794
  }
788
795
 
789
- var version = "1.4004.1";
796
+ var version = "1.4028.1";
790
797
 
791
798
  const querySerializer = createQuerySerializer();
792
799
  class Fetcher {