@volant-autonomy/via-sdk 1.3107.1 → 1.3127.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
@@ -35,6 +35,7 @@ export type getAllArcsUk = paths['/risk_assessment/sora/uk/air_risk_classificati
35
35
  export type getArcUk = paths['/risk_assessment/sora/uk/air_risk_classifications/{arc_id}']['get'];
36
36
  export type createSoraSemanticModelVolumesUk = paths['/risk_assessment/sora/uk/semantic_model_volumes']['post'];
37
37
  export type createSoraClassification = paths['/risk_assessment/sora/classifications']['post'];
38
+ export type updateSoraClassification = paths['/risk_assessment/sora/classifications/{classification_id}']['put'];
38
39
  export type getSoraClassification = paths['/risk_assessment/sora/classifications/{classification_id}']['get'];
39
40
  export type getAllControlledGroundAreas = paths['/risk_assessment/sora/controlled_ground_areas/']['get'];
40
41
  export type createControlledGroundArea = paths['/risk_assessment/sora/controlled_ground_areas/']['post'];
@@ -976,11 +977,41 @@ export declare class Direct {
976
977
  response: Response;
977
978
  aborted: false;
978
979
  }>;
980
+ /**
981
+ * Update a SORA Classification
982
+ * @description Update a SORA Classification
983
+ */
984
+ updateSoraClassification<Opts extends requestOptions = {}>(id: pathOf<getSoraClassification>['classification_id'], args: bodyOf<updateSoraClassification>, opts?: Opts | requestOptions): Promise<{
985
+ data?: never;
986
+ error: {
987
+ errors: {
988
+ detail: string;
989
+ status: "401" | "400" | "422" | "404";
990
+ }[];
991
+ status: "401" | "400" | "422" | "404";
992
+ };
993
+ response: Response;
994
+ aborted: false;
995
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
996
+ data?: never;
997
+ error?: never;
998
+ response?: never;
999
+ aborted: true;
1000
+ } : never) | {
1001
+ data: {
1002
+ id: string;
1003
+ type?: "sora_classification";
1004
+ attributes: import("./volant-schema").components["schemas"]["SoraClassification-Output"];
1005
+ };
1006
+ error?: never;
1007
+ response: Response;
1008
+ aborted: false;
1009
+ }>;
979
1010
  /**
980
1011
  * Get a SORA Classification
981
1012
  * @description Get a SORA Classification
982
1013
  */
983
- getSoraClassification<Opts extends requestOptions = {}>(args: pathOf<getSoraClassification>, opts?: Opts | requestOptions): Promise<{
1014
+ getSoraClassification<Opts extends requestOptions = {}>(id: pathOf<getSoraClassification>['classification_id'], opts?: Opts | requestOptions): Promise<{
984
1015
  data?: never;
985
1016
  error: {
986
1017
  errors: {
package/dist/direct.js CHANGED
@@ -296,9 +296,18 @@ class Direct {
296
296
  return resp;
297
297
  });
298
298
  }
299
- getSoraClassification(args, opts) {
299
+ updateSoraClassification(id, args, opts) {
300
300
  return __awaiter(this, void 0, void 0, function* () {
301
- const resp = yield this.fetcher.GET('/risk_assessment/sora/classifications/{classification_id}', { path: args }, opts);
301
+ const resp = yield this.fetcher.PUT('/risk_assessment/sora/classifications/{classification_id}', { body: args, path: { classification_id: id } }, opts);
302
+ if (resp.error === undefined && !resp.aborted) {
303
+ return Object.assign(Object.assign({}, resp), { data: resp.data.data });
304
+ }
305
+ return resp;
306
+ });
307
+ }
308
+ getSoraClassification(id, opts) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ const resp = yield this.fetcher.GET('/risk_assessment/sora/classifications/{classification_id}', { path: { classification_id: id } }, opts);
302
311
  if (resp.error === undefined && !resp.aborted) {
303
312
  return Object.assign(Object.assign({}, resp), { data: resp.data.data });
304
313
  }
@@ -704,7 +704,11 @@ export interface paths {
704
704
  * @description Get a SORA Classification
705
705
  */
706
706
  get: operations["get_sora_classification_v1_risk_assessment_sora_classifications__classification_id__get"];
707
- put?: never;
707
+ /**
708
+ * Update a SORA Classification
709
+ * @description Update a SORA Classification
710
+ */
711
+ put: operations["update_sora_classification_v1_risk_assessment_sora_classifications__classification_id__put"];
708
712
  post?: never;
709
713
  delete?: never;
710
714
  options?: never;
@@ -5100,6 +5104,69 @@ export interface operations {
5100
5104
  };
5101
5105
  };
5102
5106
  };
5107
+ update_sora_classification_v1_risk_assessment_sora_classifications__classification_id__put: {
5108
+ parameters: {
5109
+ query?: never;
5110
+ header?: never;
5111
+ path: {
5112
+ /** @description A unique identifier representing a specific set of SORA parameters */
5113
+ classification_id: string;
5114
+ };
5115
+ cookie?: never;
5116
+ };
5117
+ requestBody: {
5118
+ content: {
5119
+ "application/json": components["schemas"]["SoraClassification-Input"];
5120
+ };
5121
+ };
5122
+ responses: {
5123
+ /** @description Successful Response */
5124
+ 200: {
5125
+ headers: {
5126
+ [name: string]: unknown;
5127
+ };
5128
+ content: {
5129
+ "application/json": components["schemas"]["JsonApiResponse_SoraClassificationResponse_"];
5130
+ };
5131
+ };
5132
+ /** @description One or more input parameters were missing or invalid. */
5133
+ 400: {
5134
+ headers: {
5135
+ [name: string]: unknown;
5136
+ };
5137
+ content: {
5138
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
5139
+ };
5140
+ };
5141
+ /** @description Bearer access token was not provided in Authorization header, token could not be decoded, or token was invalid. */
5142
+ 401: {
5143
+ headers: {
5144
+ [name: string]: unknown;
5145
+ };
5146
+ content: {
5147
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
5148
+ };
5149
+ };
5150
+ /** @description The requested resource could not be found */
5151
+ 404: {
5152
+ headers: {
5153
+ [name: string]: unknown;
5154
+ };
5155
+ content: {
5156
+ "application/json": components["schemas"]["JsonApiExceptionResponse"];
5157
+ };
5158
+ };
5159
+ /** @description Validation Error */
5160
+ 422: {
5161
+ headers: {
5162
+ [name: string]: unknown;
5163
+ };
5164
+ content: {
5165
+ "application/json": components["schemas"]["HTTPValidationError"];
5166
+ };
5167
+ };
5168
+ };
5169
+ };
5103
5170
  generate_raster_v1_flight_patterns_raster_post: {
5104
5171
  parameters: {
5105
5172
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volant-autonomy/via-sdk",
3
- "version": "1.3107.1",
3
+ "version": "1.3127.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "types": "dist/index.d.ts",