@ourskyai/sda-api 1.3.3442 → 1.3.3603

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @ourskyai/sda-api@1.3.3442
1
+ ## @ourskyai/sda-api@1.3.3603
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @ourskyai/sda-api@1.3.3442 --save
39
+ npm install @ourskyai/sda-api@1.3.3603 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts 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](#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](#tag/organization-targets/[get]/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/[post]/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](#tag/tdms/[get]/v1/tdms) endpoint to poll for TDMs.
6
6
  *
7
- * The version of the OpenAPI document: 1.3.3442
7
+ * The version of the OpenAPI document: 1.3.3603
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,37 +30,37 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
30
30
  */
31
31
  export interface AstrometricOffsets {
32
32
  /**
33
- *
33
+ * the average offset from the star catalog (NOMAD or GAIA DR3) for right ascension in degrees in EME2000 frame
34
34
  * @type {number}
35
35
  * @memberof AstrometricOffsets
36
36
  */
37
37
  'raPlateSolveOffsetAverage': number;
38
38
  /**
39
- *
39
+ * the standard deviation of offset from the star catalog (NOMAD or GAIA DR3) for right ascension in degrees in EME2000 frame
40
40
  * @type {number}
41
41
  * @memberof AstrometricOffsets
42
42
  */
43
43
  'raPlateSolveOffsetStdDev': number;
44
44
  /**
45
- *
45
+ * the average offset from the star catalog (NOMAD or GAIA DR3) for declination in degrees in EME2000 frame
46
46
  * @type {number}
47
47
  * @memberof AstrometricOffsets
48
48
  */
49
49
  'decPlateSolveOffsetAverage': number;
50
50
  /**
51
- *
51
+ * the standard deviation of offset from the star catalog (NOMAD or GAIA DR3) for declination in degrees in EME2000 frame
52
52
  * @type {number}
53
53
  * @memberof AstrometricOffsets
54
54
  */
55
55
  'decPlateSolveOffsetStdDev': number;
56
56
  /**
57
- *
57
+ * The standard deviation of the full-width-half-max of all stars in the image measured in arcseconds
58
58
  * @type {number}
59
59
  * @memberof AstrometricOffsets
60
60
  */
61
61
  'fwhmStdDev': number;
62
62
  /**
63
- *
63
+ * The average of the full-width-half-max of all stars in the image measured in arcseconds
64
64
  * @type {number}
65
65
  * @memberof AstrometricOffsets
66
66
  */
@@ -241,25 +241,25 @@ export interface ObservationResult {
241
241
  */
242
242
  'jpgUrl'?: string;
243
243
  /**
244
- *
244
+ * The un-corrected apparent right ascension in degrees and EME2000 frame at the ground station
245
245
  * @type {number}
246
246
  * @memberof ObservationResult
247
247
  */
248
248
  'ra': number;
249
249
  /**
250
- *
250
+ * The un-corrected apparent declination in degrees and EME2000 frame at the ground station
251
251
  * @type {number}
252
252
  * @memberof ObservationResult
253
253
  */
254
254
  'dec': number;
255
255
  /**
256
- * The measured right ascension calibrated for stellar aberration in degrees
256
+ * The measured right ascension calibrated for stellar aberration in degrees and EME2000 frame
257
257
  * @type {number}
258
258
  * @memberof ObservationResult
259
259
  */
260
260
  'correctedRa'?: number;
261
261
  /**
262
- * The measured declination calibrated for stellar aberration in degrees
262
+ * The measured declination calibrated for stellar aberration in degrees and EME2000 frame
263
263
  * @type {number}
264
264
  * @memberof ObservationResult
265
265
  */
@@ -276,6 +276,12 @@ export interface ObservationResult {
276
276
  * @memberof ObservationResult
277
277
  */
278
278
  'timestamp': string;
279
+ /**
280
+ * Timestamps for this image are considered to be accurate to within +/- this value in seconds
281
+ * @type {number}
282
+ * @memberof ObservationResult
283
+ */
284
+ 'timingAccuracy': number;
279
285
  /**
280
286
  * BETA: the apparent magnitude of the target at the time of the observation
281
287
  * @type {number}
@@ -283,7 +289,7 @@ export interface ObservationResult {
283
289
  */
284
290
  'apparentMagnitude'?: number;
285
291
  /**
286
- *
292
+ * The distance from the predicted location in arcseconds (using SGP4 propagation)
287
293
  * @type {number}
288
294
  * @memberof ObservationResult
289
295
  */
@@ -885,13 +891,13 @@ export interface V1ImageSetImage {
885
891
  */
886
892
  export interface V1ObservationFeature {
887
893
  /**
888
- *
894
+ * the right ascension in degrees in EME2000 frame
889
895
  * @type {number}
890
896
  * @memberof V1ObservationFeature
891
897
  */
892
898
  'ra': number;
893
899
  /**
894
- *
900
+ * the declination in degrees in EME2000 frame
895
901
  * @type {number}
896
902
  * @memberof V1ObservationFeature
897
903
  */
@@ -915,7 +921,7 @@ export interface V1ObservationFeature {
915
921
  */
916
922
  'apparentMagnitude'?: number;
917
923
  /**
918
- *
924
+ * The distance from the predicted location in arcseconds (using SGP4 propagation)
919
925
  * @type {number}
920
926
  * @memberof V1ObservationFeature
921
927
  */
@@ -1173,6 +1179,18 @@ export interface V1SatellitePotential {
1173
1179
  * @memberof V1SatellitePotential
1174
1180
  */
1175
1181
  'orbitType'?: OrbitType;
1182
+ /**
1183
+ *
1184
+ * @type {WeatherCondition}
1185
+ * @memberof V1SatellitePotential
1186
+ */
1187
+ 'weatherCondition'?: WeatherCondition;
1188
+ /**
1189
+ *
1190
+ * @type {string}
1191
+ * @memberof V1SatellitePotential
1192
+ */
1193
+ 'weatherDescription'?: string;
1176
1194
  }
1177
1195
 
1178
1196
 
@@ -1565,6 +1583,25 @@ export interface V1WebhookConfiguration {
1565
1583
  */
1566
1584
  'createdAt': string;
1567
1585
  }
1586
+ /**
1587
+ *
1588
+ * @export
1589
+ * @enum {string}
1590
+ */
1591
+
1592
+ export const WeatherCondition = {
1593
+ THUNDERSTORM: 'THUNDERSTORM',
1594
+ DRIZZLE: 'DRIZZLE',
1595
+ RAIN: 'RAIN',
1596
+ SNOW: 'SNOW',
1597
+ ATMOSPHERE: 'ATMOSPHERE',
1598
+ CLEAR: 'CLEAR',
1599
+ CLOUDS: 'CLOUDS'
1600
+ } as const;
1601
+
1602
+ export type WeatherCondition = typeof WeatherCondition[keyof typeof WeatherCondition];
1603
+
1604
+
1568
1605
  /**
1569
1606
  * Authorization mechanism required for webhook endpoint, if any. Use `NONE` if not required.
1570
1607
  * @export
@@ -2485,6 +2522,55 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2485
2522
 
2486
2523
 
2487
2524
 
2525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2527
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2528
+
2529
+ return {
2530
+ url: toPathString(localVarUrlObj),
2531
+ options: localVarRequestOptions,
2532
+ };
2533
+ },
2534
+ /**
2535
+ * Get potential observation windows for all satellites of your organization across the network from now until the `until` datetime
2536
+ * @param {string} until
2537
+ * @param {boolean} [includeWeather]
2538
+ * @param {*} [options] Override http request option.
2539
+ * @throws {RequiredError}
2540
+ */
2541
+ v1GetOrganizationSatellitePotentials: async (until: string, includeWeather?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2542
+ // verify required parameter 'until' is not null or undefined
2543
+ assertParamExists('v1GetOrganizationSatellitePotentials', 'until', until)
2544
+ const localVarPath = `/v1/organization-target-potentials`;
2545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2546
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2547
+ let baseOptions;
2548
+ if (configuration) {
2549
+ baseOptions = configuration.baseOptions;
2550
+ }
2551
+
2552
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2553
+ const localVarHeaderParameter = {} as any;
2554
+ const localVarQueryParameter = {} as any;
2555
+
2556
+ // authentication Roles required
2557
+
2558
+ // authentication BearerToken required
2559
+ // http bearer authentication required
2560
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2561
+
2562
+ if (until !== undefined) {
2563
+ localVarQueryParameter['until'] = (until as any instanceof Date) ?
2564
+ (until as any).toISOString() :
2565
+ until;
2566
+ }
2567
+
2568
+ if (includeWeather !== undefined) {
2569
+ localVarQueryParameter['includeWeather'] = includeWeather;
2570
+ }
2571
+
2572
+
2573
+
2488
2574
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2489
2575
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2490
2576
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2533,10 +2619,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2533
2619
  * Get potential observation windows for a satellite across the network from now until the `until` datetime
2534
2620
  * @param {string} satelliteTargetId
2535
2621
  * @param {string} until
2622
+ * @param {boolean} [includeWeather]
2536
2623
  * @param {*} [options] Override http request option.
2537
2624
  * @throws {RequiredError}
2538
2625
  */
2539
- v1GetSatellitePotentials: async (satelliteTargetId: string, until: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2626
+ v1GetSatellitePotentials: async (satelliteTargetId: string, until: string, includeWeather?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2540
2627
  // verify required parameter 'satelliteTargetId' is not null or undefined
2541
2628
  assertParamExists('v1GetSatellitePotentials', 'satelliteTargetId', satelliteTargetId)
2542
2629
  // verify required parameter 'until' is not null or undefined
@@ -2569,6 +2656,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2569
2656
  until;
2570
2657
  }
2571
2658
 
2659
+ if (includeWeather !== undefined) {
2660
+ localVarQueryParameter['includeWeather'] = includeWeather;
2661
+ }
2662
+
2572
2663
 
2573
2664
 
2574
2665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3180,6 +3271,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3180
3271
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetObservationStatuses(targetId, before, searchInstructionId, surveyInstructionId, options);
3181
3272
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3182
3273
  },
3274
+ /**
3275
+ * Get potential observation windows for all satellites of your organization across the network from now until the `until` datetime
3276
+ * @param {string} until
3277
+ * @param {boolean} [includeWeather]
3278
+ * @param {*} [options] Override http request option.
3279
+ * @throws {RequiredError}
3280
+ */
3281
+ async v1GetOrganizationSatellitePotentials(until: string, includeWeather?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1SatellitePotential>>> {
3282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetOrganizationSatellitePotentials(until, includeWeather, options);
3283
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3284
+ },
3183
3285
  /**
3184
3286
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
3185
3287
  * @param {*} [options] Override http request option.
@@ -3193,11 +3295,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3193
3295
  * Get potential observation windows for a satellite across the network from now until the `until` datetime
3194
3296
  * @param {string} satelliteTargetId
3195
3297
  * @param {string} until
3298
+ * @param {boolean} [includeWeather]
3196
3299
  * @param {*} [options] Override http request option.
3197
3300
  * @throws {RequiredError}
3198
3301
  */
3199
- async v1GetSatellitePotentials(satelliteTargetId: string, until: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1SatellitePotential>>> {
3200
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetSatellitePotentials(satelliteTargetId, until, options);
3302
+ async v1GetSatellitePotentials(satelliteTargetId: string, until: string, includeWeather?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1SatellitePotential>>> {
3303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetSatellitePotentials(satelliteTargetId, until, includeWeather, options);
3201
3304
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3202
3305
  },
3203
3306
  /**
@@ -3489,6 +3592,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3489
3592
  v1GetObservationStatuses(requestParameters: DefaultApiV1GetObservationStatusesRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<V1ObservationStatus>> {
3490
3593
  return localVarFp.v1GetObservationStatuses(requestParameters.targetId, requestParameters.before, requestParameters.searchInstructionId, requestParameters.surveyInstructionId, options).then((request) => request(axios, basePath));
3491
3594
  },
3595
+ /**
3596
+ * Get potential observation windows for all satellites of your organization across the network from now until the `until` datetime
3597
+ * @param {DefaultApiV1GetOrganizationSatellitePotentialsRequest} requestParameters Request parameters.
3598
+ * @param {*} [options] Override http request option.
3599
+ * @throws {RequiredError}
3600
+ */
3601
+ v1GetOrganizationSatellitePotentials(requestParameters: DefaultApiV1GetOrganizationSatellitePotentialsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<V1SatellitePotential>> {
3602
+ return localVarFp.v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(axios, basePath));
3603
+ },
3492
3604
  /**
3493
3605
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
3494
3606
  * @param {*} [options] Override http request option.
@@ -3504,7 +3616,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3504
3616
  * @throws {RequiredError}
3505
3617
  */
3506
3618
  v1GetSatellitePotentials(requestParameters: DefaultApiV1GetSatellitePotentialsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<V1SatellitePotential>> {
3507
- return localVarFp.v1GetSatellitePotentials(requestParameters.satelliteTargetId, requestParameters.until, options).then((request) => request(axios, basePath));
3619
+ return localVarFp.v1GetSatellitePotentials(requestParameters.satelliteTargetId, requestParameters.until, requestParameters.includeWeather, options).then((request) => request(axios, basePath));
3508
3620
  },
3509
3621
  /**
3510
3622
  * Get a satellite target that the OurSky platform can currently track by id.
@@ -3897,6 +4009,27 @@ export interface DefaultApiV1GetObservationStatusesRequest {
3897
4009
  readonly surveyInstructionId?: string
3898
4010
  }
3899
4011
 
4012
+ /**
4013
+ * Request parameters for v1GetOrganizationSatellitePotentials operation in DefaultApi.
4014
+ * @export
4015
+ * @interface DefaultApiV1GetOrganizationSatellitePotentialsRequest
4016
+ */
4017
+ export interface DefaultApiV1GetOrganizationSatellitePotentialsRequest {
4018
+ /**
4019
+ *
4020
+ * @type {string}
4021
+ * @memberof DefaultApiV1GetOrganizationSatellitePotentials
4022
+ */
4023
+ readonly until: string
4024
+
4025
+ /**
4026
+ *
4027
+ * @type {boolean}
4028
+ * @memberof DefaultApiV1GetOrganizationSatellitePotentials
4029
+ */
4030
+ readonly includeWeather?: boolean
4031
+ }
4032
+
3900
4033
  /**
3901
4034
  * Request parameters for v1GetSatellitePotentials operation in DefaultApi.
3902
4035
  * @export
@@ -3916,6 +4049,13 @@ export interface DefaultApiV1GetSatellitePotentialsRequest {
3916
4049
  * @memberof DefaultApiV1GetSatellitePotentials
3917
4050
  */
3918
4051
  readonly until: string
4052
+
4053
+ /**
4054
+ *
4055
+ * @type {boolean}
4056
+ * @memberof DefaultApiV1GetSatellitePotentials
4057
+ */
4058
+ readonly includeWeather?: boolean
3919
4059
  }
3920
4060
 
3921
4061
  /**
@@ -4281,6 +4421,17 @@ export class DefaultApi extends BaseAPI {
4281
4421
  return DefaultApiFp(this.configuration).v1GetObservationStatuses(requestParameters.targetId, requestParameters.before, requestParameters.searchInstructionId, requestParameters.surveyInstructionId, options).then((request) => request(this.axios, this.basePath));
4282
4422
  }
4283
4423
 
4424
+ /**
4425
+ * Get potential observation windows for all satellites of your organization across the network from now until the `until` datetime
4426
+ * @param {DefaultApiV1GetOrganizationSatellitePotentialsRequest} requestParameters Request parameters.
4427
+ * @param {*} [options] Override http request option.
4428
+ * @throws {RequiredError}
4429
+ * @memberof DefaultApi
4430
+ */
4431
+ public v1GetOrganizationSatellitePotentials(requestParameters: DefaultApiV1GetOrganizationSatellitePotentialsRequest, options?: AxiosRequestConfig) {
4432
+ return DefaultApiFp(this.configuration).v1GetOrganizationSatellitePotentials(requestParameters.until, requestParameters.includeWeather, options).then((request) => request(this.axios, this.basePath));
4433
+ }
4434
+
4284
4435
  /**
4285
4436
  * Get organization targets see the [create](#operation/v1CreateOrganizationTarget) endpoint for more details.
4286
4437
  * @param {*} [options] Override http request option.
@@ -4299,7 +4450,7 @@ export class DefaultApi extends BaseAPI {
4299
4450
  * @memberof DefaultApi
4300
4451
  */
4301
4452
  public v1GetSatellitePotentials(requestParameters: DefaultApiV1GetSatellitePotentialsRequest, options?: AxiosRequestConfig) {
4302
- return DefaultApiFp(this.configuration).v1GetSatellitePotentials(requestParameters.satelliteTargetId, requestParameters.until, options).then((request) => request(this.axios, this.basePath));
4453
+ return DefaultApiFp(this.configuration).v1GetSatellitePotentials(requestParameters.satelliteTargetId, requestParameters.until, requestParameters.includeWeather, options).then((request) => request(this.axios, this.basePath));
4303
4454
  }
4304
4455
 
4305
4456
  /**
package/base.ts 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](#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](#tag/organization-targets/[get]/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/[post]/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](#tag/tdms/[get]/v1/tdms) endpoint to poll for TDMs.
6
6
  *
7
- * The version of the OpenAPI document: 1.3.3442
7
+ * The version of the OpenAPI document: 1.3.3603
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts 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](#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](#tag/organization-targets/[get]/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/[post]/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](#tag/tdms/[get]/v1/tdms) endpoint to poll for TDMs.
6
6
  *
7
- * The version of the OpenAPI document: 1.3.3442
7
+ * The version of the OpenAPI document: 1.3.3603
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts 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](#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](#tag/organization-targets/[get]/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/[post]/v1/communications/webhook) endpoint to receive TDMs automatically (preferred) or use the [tdms](#tag/tdms/[get]/v1/tdms) endpoint to poll for TDMs.
6
6
  *
7
- * The version of the OpenAPI document: 1.3.3442
7
+ * The version of the OpenAPI document: 1.3.3603
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).