@ourskyai/sda-api 1.3.4907 → 1.3.4971

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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky SDA
6
6
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4907
8
+ * The version of the OpenAPI document: 1.3.4971
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1005,6 +1005,40 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1005
1005
  options: localVarRequestOptions,
1006
1006
  };
1007
1007
  }),
1008
+ /**
1009
+ * Get an existing organization target
1010
+ * @param {string} organizationTargetId
1011
+ * @param {*} [options] Override http request option.
1012
+ * @throws {RequiredError}
1013
+ */
1014
+ v1GetOrganizationTarget: (organizationTargetId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1015
+ // verify required parameter 'organizationTargetId' is not null or undefined
1016
+ (0, common_1.assertParamExists)('v1GetOrganizationTarget', 'organizationTargetId', organizationTargetId);
1017
+ const localVarPath = `/v1/organization-target`;
1018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1019
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1020
+ let baseOptions;
1021
+ if (configuration) {
1022
+ baseOptions = configuration.baseOptions;
1023
+ }
1024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1025
+ const localVarHeaderParameter = {};
1026
+ const localVarQueryParameter = {};
1027
+ // authentication Roles required
1028
+ // authentication BearerToken required
1029
+ // http bearer authentication required
1030
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1031
+ if (organizationTargetId !== undefined) {
1032
+ localVarQueryParameter['organizationTargetId'] = organizationTargetId;
1033
+ }
1034
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1035
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1036
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1037
+ return {
1038
+ url: (0, common_1.toPathString)(localVarUrlObj),
1039
+ options: localVarRequestOptions,
1040
+ };
1041
+ }),
1008
1042
  /**
1009
1043
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
1010
1044
  * @param {*} [options] Override http request option.
@@ -1408,6 +1442,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1408
1442
  options: localVarRequestOptions,
1409
1443
  };
1410
1444
  }),
1445
+ /**
1446
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
1447
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
1448
+ * @param {*} [options] Override http request option.
1449
+ * @throws {RequiredError}
1450
+ */
1451
+ v1UpdateOrganizationTarget: (v1UpdateOrganizationTargetRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1452
+ // verify required parameter 'v1UpdateOrganizationTargetRequest' is not null or undefined
1453
+ (0, common_1.assertParamExists)('v1UpdateOrganizationTarget', 'v1UpdateOrganizationTargetRequest', v1UpdateOrganizationTargetRequest);
1454
+ const localVarPath = `/v1/organization-target`;
1455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1456
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1457
+ let baseOptions;
1458
+ if (configuration) {
1459
+ baseOptions = configuration.baseOptions;
1460
+ }
1461
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1462
+ const localVarHeaderParameter = {};
1463
+ const localVarQueryParameter = {};
1464
+ // authentication Roles required
1465
+ // authentication BearerToken required
1466
+ // http bearer authentication required
1467
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1468
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1469
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1472
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v1UpdateOrganizationTargetRequest, localVarRequestOptions, configuration);
1473
+ return {
1474
+ url: (0, common_1.toPathString)(localVarUrlObj),
1475
+ options: localVarRequestOptions,
1476
+ };
1477
+ }),
1411
1478
  /**
1412
1479
  * Update satellite target.
1413
1480
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -1778,6 +1845,18 @@ const DefaultApiFp = function (configuration) {
1778
1845
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1779
1846
  });
1780
1847
  },
1848
+ /**
1849
+ * Get an existing organization target
1850
+ * @param {string} organizationTargetId
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ */
1854
+ v1GetOrganizationTarget(organizationTargetId, options) {
1855
+ return __awaiter(this, void 0, void 0, function* () {
1856
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetOrganizationTarget(organizationTargetId, options);
1857
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1858
+ });
1859
+ },
1781
1860
  /**
1782
1861
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
1783
1862
  * @param {*} [options] Override http request option.
@@ -1918,6 +1997,18 @@ const DefaultApiFp = function (configuration) {
1918
1997
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1919
1998
  });
1920
1999
  },
2000
+ /**
2001
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2002
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
2003
+ * @param {*} [options] Override http request option.
2004
+ * @throws {RequiredError}
2005
+ */
2006
+ v1UpdateOrganizationTarget(v1UpdateOrganizationTargetRequest, options) {
2007
+ return __awaiter(this, void 0, void 0, function* () {
2008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateOrganizationTarget(v1UpdateOrganizationTargetRequest, options);
2009
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2010
+ });
2011
+ },
1921
2012
  /**
1922
2013
  * Update satellite target.
1923
2014
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -2167,6 +2258,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2167
2258
  v1GetOrganizationSatellitePotentials(requestParameters, options) {
2168
2259
  return localVarFp.v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(axios, basePath));
2169
2260
  },
2261
+ /**
2262
+ * Get an existing organization target
2263
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
2264
+ * @param {*} [options] Override http request option.
2265
+ * @throws {RequiredError}
2266
+ */
2267
+ v1GetOrganizationTarget(requestParameters, options) {
2268
+ return localVarFp.v1GetOrganizationTarget(requestParameters.organizationTargetId, options).then((request) => request(axios, basePath));
2269
+ },
2170
2270
  /**
2171
2271
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2172
2272
  * @param {*} [options] Override http request option.
@@ -2264,6 +2364,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2264
2364
  v1UpdateEmailConfiguration(requestParameters, options) {
2265
2365
  return localVarFp.v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfigurationRequest, options).then((request) => request(axios, basePath));
2266
2366
  },
2367
+ /**
2368
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2369
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
2370
+ * @param {*} [options] Override http request option.
2371
+ * @throws {RequiredError}
2372
+ */
2373
+ v1UpdateOrganizationTarget(requestParameters, options) {
2374
+ return localVarFp.v1UpdateOrganizationTarget(requestParameters.v1UpdateOrganizationTargetRequest, options).then((request) => request(axios, basePath));
2375
+ },
2267
2376
  /**
2268
2377
  * Update satellite target.
2269
2378
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.
@@ -2531,6 +2640,16 @@ class DefaultApi extends base_1.BaseAPI {
2531
2640
  v1GetOrganizationSatellitePotentials(requestParameters, options) {
2532
2641
  return (0, exports.DefaultApiFp)(this.configuration).v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(this.axios, this.basePath));
2533
2642
  }
2643
+ /**
2644
+ * Get an existing organization target
2645
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ * @memberof DefaultApi
2649
+ */
2650
+ v1GetOrganizationTarget(requestParameters, options) {
2651
+ return (0, exports.DefaultApiFp)(this.configuration).v1GetOrganizationTarget(requestParameters.organizationTargetId, options).then((request) => request(this.axios, this.basePath));
2652
+ }
2534
2653
  /**
2535
2654
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2536
2655
  * @param {*} [options] Override http request option.
@@ -2639,6 +2758,16 @@ class DefaultApi extends base_1.BaseAPI {
2639
2758
  v1UpdateEmailConfiguration(requestParameters, options) {
2640
2759
  return (0, exports.DefaultApiFp)(this.configuration).v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfigurationRequest, options).then((request) => request(this.axios, this.basePath));
2641
2760
  }
2761
+ /**
2762
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2763
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ * @memberof DefaultApi
2767
+ */
2768
+ v1UpdateOrganizationTarget(requestParameters, options) {
2769
+ return (0, exports.DefaultApiFp)(this.configuration).v1UpdateOrganizationTarget(requestParameters.v1UpdateOrganizationTargetRequest, options).then((request) => request(this.axios, this.basePath));
2770
+ }
2642
2771
  /**
2643
2772
  * Update satellite target.
2644
2773
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OurSky SDA
3
3
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4907
5
+ * The version of the OpenAPI document: 1.3.4971
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky SDA
6
6
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4907
8
+ * The version of the OpenAPI document: 1.3.4971
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OurSky SDA
3
3
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4907
5
+ * The version of the OpenAPI document: 1.3.4971
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * OurSky SDA
6
6
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4907
8
+ * The version of the OpenAPI document: 1.3.4971
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * OurSky SDA
3
3
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4907
5
+ * The version of the OpenAPI document: 1.3.4971
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * OurSky SDA
6
6
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
7
7
  *
8
- * The version of the OpenAPI document: 1.3.4907
8
+ * The version of the OpenAPI document: 1.3.4971
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OurSky SDA
3
3
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
4
4
  *
5
- * The version of the OpenAPI document: 1.3.4907
5
+ * The version of the OpenAPI document: 1.3.4971
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1734,6 +1734,25 @@ export interface V1UpdateEmailConfigurationRequest {
1734
1734
  */
1735
1735
  'emails': Array<string>;
1736
1736
  }
1737
+ /**
1738
+ *
1739
+ * @export
1740
+ * @interface V1UpdateOrganizationTargetRequest
1741
+ */
1742
+ export interface V1UpdateOrganizationTargetRequest {
1743
+ /**
1744
+ *
1745
+ * @type {string}
1746
+ * @memberof V1UpdateOrganizationTargetRequest
1747
+ */
1748
+ 'organizationTargetId': string;
1749
+ /**
1750
+ * Desired minutes between revisits. The platform will do a best effort to observe the target at this rate. This is an enterprise feature only.
1751
+ * @type {number}
1752
+ * @memberof V1UpdateOrganizationTargetRequest
1753
+ */
1754
+ 'revisitRateMinutes'?: number;
1755
+ }
1737
1756
  /**
1738
1757
  *
1739
1758
  * @export
@@ -2129,6 +2148,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2129
2148
  * @throws {RequiredError}
2130
2149
  */
2131
2150
  v1GetOrganizationSatellitePotentials: (until: string, includeWeather?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2151
+ /**
2152
+ * Get an existing organization target
2153
+ * @param {string} organizationTargetId
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ */
2157
+ v1GetOrganizationTarget: (organizationTargetId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2132
2158
  /**
2133
2159
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2134
2160
  * @param {*} [options] Override http request option.
@@ -2214,6 +2240,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2214
2240
  * @throws {RequiredError}
2215
2241
  */
2216
2242
  v1UpdateEmailConfiguration: (v1UpdateEmailConfigurationRequest: V1UpdateEmailConfigurationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2243
+ /**
2244
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2245
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
2246
+ * @param {*} [options] Override http request option.
2247
+ * @throws {RequiredError}
2248
+ */
2249
+ v1UpdateOrganizationTarget: (v1UpdateOrganizationTargetRequest: V1UpdateOrganizationTargetRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2217
2250
  /**
2218
2251
  * Update satellite target.
2219
2252
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -2408,6 +2441,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2408
2441
  * @throws {RequiredError}
2409
2442
  */
2410
2443
  v1GetOrganizationSatellitePotentials(until: string, includeWeather?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1SatellitePotential>>>;
2444
+ /**
2445
+ * Get an existing organization target
2446
+ * @param {string} organizationTargetId
2447
+ * @param {*} [options] Override http request option.
2448
+ * @throws {RequiredError}
2449
+ */
2450
+ v1GetOrganizationTarget(organizationTargetId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1OrganizationTarget>>;
2411
2451
  /**
2412
2452
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2413
2453
  * @param {*} [options] Override http request option.
@@ -2493,6 +2533,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2493
2533
  * @throws {RequiredError}
2494
2534
  */
2495
2535
  v1UpdateEmailConfiguration(v1UpdateEmailConfigurationRequest: V1UpdateEmailConfigurationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>>;
2536
+ /**
2537
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2538
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
2539
+ * @param {*} [options] Override http request option.
2540
+ * @throws {RequiredError}
2541
+ */
2542
+ v1UpdateOrganizationTarget(v1UpdateOrganizationTargetRequest: V1UpdateOrganizationTargetRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1OrganizationTarget>>;
2496
2543
  /**
2497
2544
  * Update satellite target.
2498
2545
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -2680,6 +2727,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2680
2727
  * @throws {RequiredError}
2681
2728
  */
2682
2729
  v1GetOrganizationSatellitePotentials(requestParameters: DefaultApiV1GetOrganizationSatellitePotentialsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<V1SatellitePotential>>;
2730
+ /**
2731
+ * Get an existing organization target
2732
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
2733
+ * @param {*} [options] Override http request option.
2734
+ * @throws {RequiredError}
2735
+ */
2736
+ v1GetOrganizationTarget(requestParameters: DefaultApiV1GetOrganizationTargetRequest, options?: AxiosRequestConfig): AxiosPromise<V1OrganizationTarget>;
2683
2737
  /**
2684
2738
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2685
2739
  * @param {*} [options] Override http request option.
@@ -2755,6 +2809,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2755
2809
  * @throws {RequiredError}
2756
2810
  */
2757
2811
  v1UpdateEmailConfiguration(requestParameters: DefaultApiV1UpdateEmailConfigurationRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess>;
2812
+ /**
2813
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2814
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ */
2818
+ v1UpdateOrganizationTarget(requestParameters: DefaultApiV1UpdateOrganizationTargetRequest, options?: AxiosRequestConfig): AxiosPromise<V1OrganizationTarget>;
2758
2819
  /**
2759
2820
  * Update satellite target.
2760
2821
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.
@@ -3111,6 +3172,19 @@ export interface DefaultApiV1GetOrganizationSatellitePotentialsRequest {
3111
3172
  */
3112
3173
  readonly includeWeather?: boolean;
3113
3174
  }
3175
+ /**
3176
+ * Request parameters for v1GetOrganizationTarget operation in DefaultApi.
3177
+ * @export
3178
+ * @interface DefaultApiV1GetOrganizationTargetRequest
3179
+ */
3180
+ export interface DefaultApiV1GetOrganizationTargetRequest {
3181
+ /**
3182
+ *
3183
+ * @type {string}
3184
+ * @memberof DefaultApiV1GetOrganizationTarget
3185
+ */
3186
+ readonly organizationTargetId: string;
3187
+ }
3114
3188
  /**
3115
3189
  * Request parameters for v1GetSatellitePotentials operation in DefaultApi.
3116
3190
  * @export
@@ -3288,6 +3362,19 @@ export interface DefaultApiV1UpdateEmailConfigurationRequest {
3288
3362
  */
3289
3363
  readonly v1UpdateEmailConfigurationRequest: V1UpdateEmailConfigurationRequest;
3290
3364
  }
3365
+ /**
3366
+ * Request parameters for v1UpdateOrganizationTarget operation in DefaultApi.
3367
+ * @export
3368
+ * @interface DefaultApiV1UpdateOrganizationTargetRequest
3369
+ */
3370
+ export interface DefaultApiV1UpdateOrganizationTargetRequest {
3371
+ /**
3372
+ *
3373
+ * @type {V1UpdateOrganizationTargetRequest}
3374
+ * @memberof DefaultApiV1UpdateOrganizationTarget
3375
+ */
3376
+ readonly v1UpdateOrganizationTargetRequest: V1UpdateOrganizationTargetRequest;
3377
+ }
3291
3378
  /**
3292
3379
  * Request parameters for v1UpdateSatelliteTarget operation in DefaultApi.
3293
3380
  * @export
@@ -3512,6 +3599,14 @@ export declare class DefaultApi extends BaseAPI {
3512
3599
  * @memberof DefaultApi
3513
3600
  */
3514
3601
  v1GetOrganizationSatellitePotentials(requestParameters: DefaultApiV1GetOrganizationSatellitePotentialsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<V1SatellitePotential[], any>>;
3602
+ /**
3603
+ * Get an existing organization target
3604
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
3605
+ * @param {*} [options] Override http request option.
3606
+ * @throws {RequiredError}
3607
+ * @memberof DefaultApi
3608
+ */
3609
+ v1GetOrganizationTarget(requestParameters: DefaultApiV1GetOrganizationTargetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<V1OrganizationTarget, any>>;
3515
3610
  /**
3516
3611
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
3517
3612
  * @param {*} [options] Override http request option.
@@ -3598,6 +3693,14 @@ export declare class DefaultApi extends BaseAPI {
3598
3693
  * @memberof DefaultApi
3599
3694
  */
3600
3695
  v1UpdateEmailConfiguration(requestParameters: DefaultApiV1UpdateEmailConfigurationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmptySuccess, any>>;
3696
+ /**
3697
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
3698
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
3699
+ * @param {*} [options] Override http request option.
3700
+ * @throws {RequiredError}
3701
+ * @memberof DefaultApi
3702
+ */
3703
+ v1UpdateOrganizationTarget(requestParameters: DefaultApiV1UpdateOrganizationTargetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<V1OrganizationTarget, any>>;
3601
3704
  /**
3602
3705
  * Update satellite target.
3603
3706
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky SDA
5
5
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](https://api.prod.oursky.ai/docs/sda#tag/satellite-targets/get/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](https://api.prod.oursky.ai/docs/sda#tag/organization-targets/get/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](https://api.prod.oursky.ai/docs/sda#tag/webhooks/post/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](https://api.prod.oursky.ai/docs/sda#tag/tdms/get/v1/tdms) endpoint to poll for TDMs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
6
6
  *
7
- * The version of the OpenAPI document: 1.3.4907
7
+ * The version of the OpenAPI document: 1.3.4971
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1002,6 +1002,40 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1002
1002
  options: localVarRequestOptions,
1003
1003
  };
1004
1004
  }),
1005
+ /**
1006
+ * Get an existing organization target
1007
+ * @param {string} organizationTargetId
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ v1GetOrganizationTarget: (organizationTargetId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1012
+ // verify required parameter 'organizationTargetId' is not null or undefined
1013
+ assertParamExists('v1GetOrganizationTarget', 'organizationTargetId', organizationTargetId);
1014
+ const localVarPath = `/v1/organization-target`;
1015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1016
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1017
+ let baseOptions;
1018
+ if (configuration) {
1019
+ baseOptions = configuration.baseOptions;
1020
+ }
1021
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1022
+ const localVarHeaderParameter = {};
1023
+ const localVarQueryParameter = {};
1024
+ // authentication Roles required
1025
+ // authentication BearerToken required
1026
+ // http bearer authentication required
1027
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1028
+ if (organizationTargetId !== undefined) {
1029
+ localVarQueryParameter['organizationTargetId'] = organizationTargetId;
1030
+ }
1031
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1033
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1034
+ return {
1035
+ url: toPathString(localVarUrlObj),
1036
+ options: localVarRequestOptions,
1037
+ };
1038
+ }),
1005
1039
  /**
1006
1040
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
1007
1041
  * @param {*} [options] Override http request option.
@@ -1405,6 +1439,39 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1405
1439
  options: localVarRequestOptions,
1406
1440
  };
1407
1441
  }),
1442
+ /**
1443
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
1444
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
1445
+ * @param {*} [options] Override http request option.
1446
+ * @throws {RequiredError}
1447
+ */
1448
+ v1UpdateOrganizationTarget: (v1UpdateOrganizationTargetRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1449
+ // verify required parameter 'v1UpdateOrganizationTargetRequest' is not null or undefined
1450
+ assertParamExists('v1UpdateOrganizationTarget', 'v1UpdateOrganizationTargetRequest', v1UpdateOrganizationTargetRequest);
1451
+ const localVarPath = `/v1/organization-target`;
1452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1454
+ let baseOptions;
1455
+ if (configuration) {
1456
+ baseOptions = configuration.baseOptions;
1457
+ }
1458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1459
+ const localVarHeaderParameter = {};
1460
+ const localVarQueryParameter = {};
1461
+ // authentication Roles required
1462
+ // authentication BearerToken required
1463
+ // http bearer authentication required
1464
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1465
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1468
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1469
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateOrganizationTargetRequest, localVarRequestOptions, configuration);
1470
+ return {
1471
+ url: toPathString(localVarUrlObj),
1472
+ options: localVarRequestOptions,
1473
+ };
1474
+ }),
1408
1475
  /**
1409
1476
  * Update satellite target.
1410
1477
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -1774,6 +1841,18 @@ export const DefaultApiFp = function (configuration) {
1774
1841
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1775
1842
  });
1776
1843
  },
1844
+ /**
1845
+ * Get an existing organization target
1846
+ * @param {string} organizationTargetId
1847
+ * @param {*} [options] Override http request option.
1848
+ * @throws {RequiredError}
1849
+ */
1850
+ v1GetOrganizationTarget(organizationTargetId, options) {
1851
+ return __awaiter(this, void 0, void 0, function* () {
1852
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetOrganizationTarget(organizationTargetId, options);
1853
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1854
+ });
1855
+ },
1777
1856
  /**
1778
1857
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
1779
1858
  * @param {*} [options] Override http request option.
@@ -1914,6 +1993,18 @@ export const DefaultApiFp = function (configuration) {
1914
1993
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1915
1994
  });
1916
1995
  },
1996
+ /**
1997
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
1998
+ * @param {V1UpdateOrganizationTargetRequest} v1UpdateOrganizationTargetRequest
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ v1UpdateOrganizationTarget(v1UpdateOrganizationTargetRequest, options) {
2003
+ return __awaiter(this, void 0, void 0, function* () {
2004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateOrganizationTarget(v1UpdateOrganizationTargetRequest, options);
2005
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2006
+ });
2007
+ },
1917
2008
  /**
1918
2009
  * Update satellite target.
1919
2010
  * @param {V1UpdateSatelliteTargetRequest} v1UpdateSatelliteTargetRequest
@@ -2162,6 +2253,15 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
2162
2253
  v1GetOrganizationSatellitePotentials(requestParameters, options) {
2163
2254
  return localVarFp.v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(axios, basePath));
2164
2255
  },
2256
+ /**
2257
+ * Get an existing organization target
2258
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ v1GetOrganizationTarget(requestParameters, options) {
2263
+ return localVarFp.v1GetOrganizationTarget(requestParameters.organizationTargetId, options).then((request) => request(axios, basePath));
2264
+ },
2165
2265
  /**
2166
2266
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2167
2267
  * @param {*} [options] Override http request option.
@@ -2259,6 +2359,15 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
2259
2359
  v1UpdateEmailConfiguration(requestParameters, options) {
2260
2360
  return localVarFp.v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfigurationRequest, options).then((request) => request(axios, basePath));
2261
2361
  },
2362
+ /**
2363
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2364
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
2365
+ * @param {*} [options] Override http request option.
2366
+ * @throws {RequiredError}
2367
+ */
2368
+ v1UpdateOrganizationTarget(requestParameters, options) {
2369
+ return localVarFp.v1UpdateOrganizationTarget(requestParameters.v1UpdateOrganizationTargetRequest, options).then((request) => request(axios, basePath));
2370
+ },
2262
2371
  /**
2263
2372
  * Update satellite target.
2264
2373
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.
@@ -2525,6 +2634,16 @@ export class DefaultApi extends BaseAPI {
2525
2634
  v1GetOrganizationSatellitePotentials(requestParameters, options) {
2526
2635
  return DefaultApiFp(this.configuration).v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(this.axios, this.basePath));
2527
2636
  }
2637
+ /**
2638
+ * Get an existing organization target
2639
+ * @param {DefaultApiV1GetOrganizationTargetRequest} requestParameters Request parameters.
2640
+ * @param {*} [options] Override http request option.
2641
+ * @throws {RequiredError}
2642
+ * @memberof DefaultApi
2643
+ */
2644
+ v1GetOrganizationTarget(requestParameters, options) {
2645
+ return DefaultApiFp(this.configuration).v1GetOrganizationTarget(requestParameters.organizationTargetId, options).then((request) => request(this.axios, this.basePath));
2646
+ }
2528
2647
  /**
2529
2648
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
2530
2649
  * @param {*} [options] Override http request option.
@@ -2633,6 +2752,16 @@ export class DefaultApi extends BaseAPI {
2633
2752
  v1UpdateEmailConfiguration(requestParameters, options) {
2634
2753
  return DefaultApiFp(this.configuration).v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfigurationRequest, options).then((request) => request(this.axios, this.basePath));
2635
2754
  }
2755
+ /**
2756
+ * Update an existing organization target. The satellite target id cannot be changed. If you need to change the target you must delete the existing target and create a new one.
2757
+ * @param {DefaultApiV1UpdateOrganizationTargetRequest} requestParameters Request parameters.
2758
+ * @param {*} [options] Override http request option.
2759
+ * @throws {RequiredError}
2760
+ * @memberof DefaultApi
2761
+ */
2762
+ v1UpdateOrganizationTarget(requestParameters, options) {
2763
+ return DefaultApiFp(this.configuration).v1UpdateOrganizationTarget(requestParameters.v1UpdateOrganizationTargetRequest, options).then((request) => request(this.axios, this.basePath));
2764
+ }
2636
2765
  /**
2637
2766
  * Update satellite target.
2638
2767
  * @param {DefaultApiV1UpdateSatelliteTargetRequest} requestParameters Request parameters.