@volant-autonomy/via-sdk 1.4982.1 → 1.5013.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
@@ -65,6 +65,8 @@ export type getCostDataset = paths['/cost_datasets/{cost_dataset_id}']['get'];
65
65
  export type getAllCostDatasets = paths['/cost_datasets/']['get'];
66
66
  export type createCostDataset = paths['/cost_datasets/']['post'];
67
67
  export type deleteCostDataset = paths['/cost_datasets/{cost_dataset_id}']['delete'];
68
+ export type createCostDatasetShare = paths['/cost_datasets/{cost_dataset_id}/shares']['post'];
69
+ export type getCostDatasetShare = paths['/cost_datasets/{cost_dataset_id}/shares/{share_id}']['get'];
68
70
  export declare class Direct {
69
71
  private fetcher;
70
72
  constructor(fetcher: ReturnType<typeof createFetcher<paths>>);
@@ -1076,7 +1078,7 @@ export declare class Direct {
1076
1078
  data: {
1077
1079
  id: string;
1078
1080
  type?: "sora_classification";
1079
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1081
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1080
1082
  };
1081
1083
  error?: never;
1082
1084
  response: Response;
@@ -1106,7 +1108,7 @@ export declare class Direct {
1106
1108
  data: {
1107
1109
  id: string;
1108
1110
  type?: "sora_classification";
1109
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1111
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1110
1112
  };
1111
1113
  error?: never;
1112
1114
  response: Response;
@@ -1136,7 +1138,7 @@ export declare class Direct {
1136
1138
  data: {
1137
1139
  id: string;
1138
1140
  type?: "sora_classification";
1139
- attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification-Output"] | import("./volant-schema").components["schemas"]["UkSoraClassification-Output"];
1141
+ attributes: import("./volant-schema").components["schemas"]["JarusV25SoraClassification"] | import("./volant-schema").components["schemas"]["UkSoraClassification"];
1140
1142
  };
1141
1143
  error?: never;
1142
1144
  response: Response;
@@ -1166,7 +1168,7 @@ export declare class Direct {
1166
1168
  data: {
1167
1169
  id: string;
1168
1170
  type?: "controlled_ground_area";
1169
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1171
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1170
1172
  }[];
1171
1173
  error?: never;
1172
1174
  response: Response;
@@ -1196,7 +1198,7 @@ export declare class Direct {
1196
1198
  data: {
1197
1199
  id: string;
1198
1200
  type?: "controlled_ground_area";
1199
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1201
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1200
1202
  };
1201
1203
  error?: never;
1202
1204
  response: Response;
@@ -1226,7 +1228,7 @@ export declare class Direct {
1226
1228
  data: {
1227
1229
  id: string;
1228
1230
  type?: "controlled_ground_area";
1229
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1231
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1230
1232
  };
1231
1233
  error?: never;
1232
1234
  response: Response;
@@ -1258,7 +1260,7 @@ export declare class Direct {
1258
1260
  data: {
1259
1261
  id: string;
1260
1262
  type?: "controlled_ground_area";
1261
- attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea-Output"];
1263
+ attributes: import("./volant-schema").components["schemas"]["ControlledGroundArea"];
1262
1264
  };
1263
1265
  error?: never;
1264
1266
  response: Response;
@@ -1466,7 +1468,7 @@ export declare class Direct {
1466
1468
  data: {
1467
1469
  id: string;
1468
1470
  type?: "geocage";
1469
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1471
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1470
1472
  };
1471
1473
  error?: never;
1472
1474
  response: Response;
@@ -1496,7 +1498,7 @@ export declare class Direct {
1496
1498
  data: {
1497
1499
  id: string;
1498
1500
  type?: "geocage";
1499
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1501
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1500
1502
  };
1501
1503
  error?: never;
1502
1504
  response: Response;
@@ -1555,7 +1557,7 @@ export declare class Direct {
1555
1557
  data: {
1556
1558
  id: string;
1557
1559
  type?: "geocage";
1558
- attributes: import("./volant-schema").components["schemas"]["Geocage-Output"];
1560
+ attributes: import("./volant-schema").components["schemas"]["Geocage"];
1559
1561
  };
1560
1562
  error?: never;
1561
1563
  response: Response;
@@ -1715,6 +1717,66 @@ export declare class Direct {
1715
1717
  response: Response;
1716
1718
  aborted: false;
1717
1719
  }>;
1720
+ /**
1721
+ * Share a Cost Dataset
1722
+ * @description Share a Cost Dataset.
1723
+ */
1724
+ createCostDatasetShare<Opts extends requestOptions = {}>(id: pathOf<createCostDatasetShare>['cost_dataset_id'], args: bodyOf<createCostDatasetShare>, opts?: Opts | requestOptions): Promise<{
1725
+ data?: never;
1726
+ error: {
1727
+ errors: {
1728
+ detail: string;
1729
+ status: "401" | "400" | "422" | "403" | "404";
1730
+ }[];
1731
+ status: "401" | "400" | "422" | "403" | "404";
1732
+ };
1733
+ response: Response;
1734
+ aborted: false;
1735
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
1736
+ data?: never;
1737
+ error?: never;
1738
+ response?: never;
1739
+ aborted: true;
1740
+ } : never) | {
1741
+ data: {
1742
+ id: string;
1743
+ type?: "share";
1744
+ attributes: import("./volant-schema").components["schemas"]["ShareAttributes"];
1745
+ };
1746
+ error?: never;
1747
+ response: Response;
1748
+ aborted: false;
1749
+ }>;
1750
+ /**
1751
+ * Get a Share for a Cost Dataset
1752
+ * @description Get a share for a Cost Dataset.
1753
+ */
1754
+ getCostDatasetShare<Opts extends requestOptions = {}>(cost_dataset_id: pathOf<getCostDatasetShare>['cost_dataset_id'], share_id: pathOf<getCostDatasetShare>['share_id'], opts?: Opts | requestOptions): Promise<{
1755
+ data?: never;
1756
+ error: {
1757
+ errors: {
1758
+ detail: string;
1759
+ status: "401" | "400" | "422" | "404";
1760
+ }[];
1761
+ status: "401" | "400" | "422" | "404";
1762
+ };
1763
+ response: Response;
1764
+ aborted: false;
1765
+ } | (keyof Opts extends never ? never : Opts["abortKey"] extends undefined ? never : Opts["abortKey"] extends string | undefined ? {
1766
+ data?: never;
1767
+ error?: never;
1768
+ response?: never;
1769
+ aborted: true;
1770
+ } : never) | {
1771
+ data: {
1772
+ id: string;
1773
+ type?: "share";
1774
+ attributes: import("./volant-schema").components["schemas"]["ShareAttributes"];
1775
+ };
1776
+ error?: never;
1777
+ response: Response;
1778
+ aborted: false;
1779
+ }>;
1718
1780
  /**
1719
1781
  * Generate a raster pattern
1720
1782
  * @description Generate a raster pattern that covers a specified search polygon.
package/dist/index.cjs.js CHANGED
@@ -586,6 +586,20 @@ class Direct {
586
586
  }
587
587
  return resp;
588
588
  }
589
+ async createCostDatasetShare(id, args, opts) {
590
+ const resp = await this.fetcher.POST('/cost_datasets/{cost_dataset_id}/shares', { body: args, path: { cost_dataset_id: id } }, opts);
591
+ if (resp.error === undefined && !resp.aborted) {
592
+ return { ...resp, data: resp.data.data };
593
+ }
594
+ return resp;
595
+ }
596
+ async getCostDatasetShare(cost_dataset_id, share_id, opts) {
597
+ const resp = await this.fetcher.GET('/cost_datasets/{cost_dataset_id}/shares/{share_id}', { path: { cost_dataset_id: cost_dataset_id, share_id: share_id } }, opts);
598
+ if (resp.error === undefined && !resp.aborted) {
599
+ return { ...resp, data: resp.data.data };
600
+ }
601
+ return resp;
602
+ }
589
603
  /// flight patterns
590
604
  async createRasterPattern(args, opts) {
591
605
  const resp = await this.fetcher.POST('/flight_patterns/raster', { body: args }, opts);
@@ -758,7 +772,7 @@ function defaultPathSerializer(pathname, pathParams) {
758
772
  return nextURL;
759
773
  }
760
774
 
761
- var version = "1.4982.1";
775
+ var version = "1.5013.1";
762
776
 
763
777
  const querySerializer = createQuerySerializer();
764
778
  class Fetcher {