@ourskyai/astro-api 1.3.2078 → 1.3.2229

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/astro-api@1.3.2078
1
+ ## @ourskyai/astro-api@1.3.2229
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/astro-api@1.3.2078 --save
39
+ npm install @ourskyai/astro-api@1.3.2229 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Astro
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.2078
7
+ * The version of the OpenAPI document: 1.3.2229
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1140,6 +1140,31 @@ export interface V1CreateOpticalTubeRequest {
1140
1140
  }
1141
1141
 
1142
1142
 
1143
+ /**
1144
+ * Elevation Mask Point
1145
+ * @export
1146
+ * @interface V1ElevationMaskPoint
1147
+ */
1148
+ export interface V1ElevationMaskPoint {
1149
+ /**
1150
+ *
1151
+ * @type {number}
1152
+ * @memberof V1ElevationMaskPoint
1153
+ */
1154
+ 'azimuthDegrees': number;
1155
+ /**
1156
+ *
1157
+ * @type {number}
1158
+ * @memberof V1ElevationMaskPoint
1159
+ */
1160
+ 'minAltitudeDegrees': number;
1161
+ /**
1162
+ *
1163
+ * @type {number}
1164
+ * @memberof V1ElevationMaskPoint
1165
+ */
1166
+ 'maxAltitudeDegrees': number;
1167
+ }
1143
1168
  /**
1144
1169
  * Gain Curve
1145
1170
  * @export
@@ -1510,6 +1535,12 @@ export interface V1ImageSetImage {
1510
1535
  * @memberof V1ImageSetImage
1511
1536
  */
1512
1537
  'imageUrl': string;
1538
+ /**
1539
+ *
1540
+ * @type {string}
1541
+ * @memberof V1ImageSetImage
1542
+ */
1543
+ 'fullJpgUrl'?: string;
1513
1544
  /**
1514
1545
  *
1515
1546
  * @type {string}
@@ -1780,6 +1811,12 @@ export interface V1Node {
1780
1811
  * @memberof V1Node
1781
1812
  */
1782
1813
  'minAltitude': number;
1814
+ /**
1815
+ *
1816
+ * @type {Array<V1ElevationMaskPoint>}
1817
+ * @memberof V1Node
1818
+ */
1819
+ 'elevationMask'?: Array<V1ElevationMaskPoint>;
1783
1820
  /**
1784
1821
  *
1785
1822
  * @type {string}
@@ -2067,6 +2104,12 @@ export interface V1UpdateNodeRequest {
2067
2104
  * @memberof V1UpdateNodeRequest
2068
2105
  */
2069
2106
  'maxAltitude'?: number;
2107
+ /**
2108
+ *
2109
+ * @type {Array<V1ElevationMaskPoint>}
2110
+ * @memberof V1UpdateNodeRequest
2111
+ */
2112
+ 'elevationMask'?: Array<V1ElevationMaskPoint>;
2070
2113
  /**
2071
2114
  *
2072
2115
  * @type {Location}
@@ -2570,6 +2613,90 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2570
2613
  options: localVarRequestOptions,
2571
2614
  };
2572
2615
  },
2616
+ /**
2617
+ * Delete an image set.
2618
+ * @param {string} id
2619
+ * @param {*} [options] Override http request option.
2620
+ * @throws {RequiredError}
2621
+ */
2622
+ v1DeleteImageSet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2623
+ // verify required parameter 'id' is not null or undefined
2624
+ assertParamExists('v1DeleteImageSet', 'id', id)
2625
+ const localVarPath = `/v1/image-set`;
2626
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2627
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2628
+ let baseOptions;
2629
+ if (configuration) {
2630
+ baseOptions = configuration.baseOptions;
2631
+ }
2632
+
2633
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2634
+ const localVarHeaderParameter = {} as any;
2635
+ const localVarQueryParameter = {} as any;
2636
+
2637
+ // authentication Roles required
2638
+
2639
+ // authentication BearerToken required
2640
+ // http bearer authentication required
2641
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2642
+
2643
+ if (id !== undefined) {
2644
+ localVarQueryParameter['id'] = id;
2645
+ }
2646
+
2647
+
2648
+
2649
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2651
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2652
+
2653
+ return {
2654
+ url: toPathString(localVarUrlObj),
2655
+ options: localVarRequestOptions,
2656
+ };
2657
+ },
2658
+ /**
2659
+ * Delete an image.
2660
+ * @param {string} imageId
2661
+ * @param {*} [options] Override http request option.
2662
+ * @throws {RequiredError}
2663
+ */
2664
+ v1DeleteImageSetImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2665
+ // verify required parameter 'imageId' is not null or undefined
2666
+ assertParamExists('v1DeleteImageSetImage', 'imageId', imageId)
2667
+ const localVarPath = `/v1/image-set-image`;
2668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2670
+ let baseOptions;
2671
+ if (configuration) {
2672
+ baseOptions = configuration.baseOptions;
2673
+ }
2674
+
2675
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2676
+ const localVarHeaderParameter = {} as any;
2677
+ const localVarQueryParameter = {} as any;
2678
+
2679
+ // authentication Roles required
2680
+
2681
+ // authentication BearerToken required
2682
+ // http bearer authentication required
2683
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2684
+
2685
+ if (imageId !== undefined) {
2686
+ localVarQueryParameter['imageId'] = imageId;
2687
+ }
2688
+
2689
+
2690
+
2691
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2693
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2694
+
2695
+ return {
2696
+ url: toPathString(localVarUrlObj),
2697
+ options: localVarRequestOptions,
2698
+ };
2699
+ },
2573
2700
  /**
2574
2701
  * Get an astro camera.
2575
2702
  * @param {string} id
@@ -3226,41 +3353,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3226
3353
 
3227
3354
 
3228
3355
 
3229
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3230
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3231
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3232
-
3233
- return {
3234
- url: toPathString(localVarUrlObj),
3235
- options: localVarRequestOptions,
3236
- };
3237
- },
3238
- /**
3239
- * Get mounts.
3240
- * @param {*} [options] Override http request option.
3241
- * @throws {RequiredError}
3242
- */
3243
- v1GetMounts: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3244
- const localVarPath = `/v1/mounts`;
3245
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3246
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3247
- let baseOptions;
3248
- if (configuration) {
3249
- baseOptions = configuration.baseOptions;
3250
- }
3251
-
3252
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3253
- const localVarHeaderParameter = {} as any;
3254
- const localVarQueryParameter = {} as any;
3255
-
3256
- // authentication Roles required
3257
-
3258
- // authentication BearerToken required
3259
- // http bearer authentication required
3260
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
3261
-
3262
-
3263
-
3264
3356
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3265
3357
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3266
3358
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3808,6 +3900,26 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3808
3900
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateNode(v1CreateNodeRequest, options);
3809
3901
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3810
3902
  },
3903
+ /**
3904
+ * Delete an image set.
3905
+ * @param {string} id
3906
+ * @param {*} [options] Override http request option.
3907
+ * @throws {RequiredError}
3908
+ */
3909
+ async v1DeleteImageSet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
3910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1DeleteImageSet(id, options);
3911
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3912
+ },
3913
+ /**
3914
+ * Delete an image.
3915
+ * @param {string} imageId
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ async v1DeleteImageSetImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
3920
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1DeleteImageSetImage(imageId, options);
3921
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3922
+ },
3811
3923
  /**
3812
3924
  * Get an astro camera.
3813
3925
  * @param {string} id
@@ -3969,15 +4081,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3969
4081
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetJobLogs(astroProjectId, options);
3970
4082
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3971
4083
  },
3972
- /**
3973
- * Get mounts.
3974
- * @param {*} [options] Override http request option.
3975
- * @throws {RequiredError}
3976
- */
3977
- async v1GetMounts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1Mount>>> {
3978
- const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetMounts(options);
3979
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3980
- },
3981
4084
  /**
3982
4085
  * Get nodes.
3983
4086
  * @param {*} [options] Override http request option.
@@ -4066,7 +4169,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4066
4169
  * @param {*} [options] Override http request option.
4067
4170
  * @throws {RequiredError}
4068
4171
  */
4069
- async v1PutStackAstroProject(v1PutStackAstroProjectRequest: V1PutStackAstroProjectRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4172
+ async v1PutStackAstroProject(v1PutStackAstroProjectRequest: V1PutStackAstroProjectRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
4070
4173
  const localVarAxiosArgs = await localVarAxiosParamCreator.v1PutStackAstroProject(v1PutStackAstroProjectRequest, options);
4071
4174
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4072
4175
  },
@@ -4180,6 +4283,24 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4180
4283
  v1CreateNode(requestParameters: DefaultApiV1CreateNodeRequest, options?: AxiosRequestConfig): AxiosPromise<SuccessfulCreate> {
4181
4284
  return localVarFp.v1CreateNode(requestParameters.v1CreateNodeRequest, options).then((request) => request(axios, basePath));
4182
4285
  },
4286
+ /**
4287
+ * Delete an image set.
4288
+ * @param {DefaultApiV1DeleteImageSetRequest} requestParameters Request parameters.
4289
+ * @param {*} [options] Override http request option.
4290
+ * @throws {RequiredError}
4291
+ */
4292
+ v1DeleteImageSet(requestParameters: DefaultApiV1DeleteImageSetRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
4293
+ return localVarFp.v1DeleteImageSet(requestParameters.id, options).then((request) => request(axios, basePath));
4294
+ },
4295
+ /**
4296
+ * Delete an image.
4297
+ * @param {DefaultApiV1DeleteImageSetImageRequest} requestParameters Request parameters.
4298
+ * @param {*} [options] Override http request option.
4299
+ * @throws {RequiredError}
4300
+ */
4301
+ v1DeleteImageSetImage(requestParameters: DefaultApiV1DeleteImageSetImageRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
4302
+ return localVarFp.v1DeleteImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
4303
+ },
4183
4304
  /**
4184
4305
  * Get an astro camera.
4185
4306
  * @param {DefaultApiV1GetAstroCameraRequest} requestParameters Request parameters.
@@ -4320,14 +4441,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4320
4441
  v1GetJobLogs(requestParameters: DefaultApiV1GetJobLogsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<V1JobLog>> {
4321
4442
  return localVarFp.v1GetJobLogs(requestParameters.astroProjectId, options).then((request) => request(axios, basePath));
4322
4443
  },
4323
- /**
4324
- * Get mounts.
4325
- * @param {*} [options] Override http request option.
4326
- * @throws {RequiredError}
4327
- */
4328
- v1GetMounts(options?: AxiosRequestConfig): AxiosPromise<Array<V1Mount>> {
4329
- return localVarFp.v1GetMounts(options).then((request) => request(axios, basePath));
4330
- },
4331
4444
  /**
4332
4445
  * Get nodes.
4333
4446
  * @param {*} [options] Override http request option.
@@ -4404,7 +4517,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4404
4517
  * @param {*} [options] Override http request option.
4405
4518
  * @throws {RequiredError}
4406
4519
  */
4407
- v1PutStackAstroProject(requestParameters: DefaultApiV1PutStackAstroProjectRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
4520
+ v1PutStackAstroProject(requestParameters: DefaultApiV1PutStackAstroProjectRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
4408
4521
  return localVarFp.v1PutStackAstroProject(requestParameters.v1PutStackAstroProjectRequest, options).then((request) => request(axios, basePath));
4409
4522
  },
4410
4523
  /**
@@ -4608,6 +4721,34 @@ export interface DefaultApiV1CreateNodeRequest {
4608
4721
  readonly v1CreateNodeRequest: V1CreateNodeRequest
4609
4722
  }
4610
4723
 
4724
+ /**
4725
+ * Request parameters for v1DeleteImageSet operation in DefaultApi.
4726
+ * @export
4727
+ * @interface DefaultApiV1DeleteImageSetRequest
4728
+ */
4729
+ export interface DefaultApiV1DeleteImageSetRequest {
4730
+ /**
4731
+ *
4732
+ * @type {string}
4733
+ * @memberof DefaultApiV1DeleteImageSet
4734
+ */
4735
+ readonly id: string
4736
+ }
4737
+
4738
+ /**
4739
+ * Request parameters for v1DeleteImageSetImage operation in DefaultApi.
4740
+ * @export
4741
+ * @interface DefaultApiV1DeleteImageSetImageRequest
4742
+ */
4743
+ export interface DefaultApiV1DeleteImageSetImageRequest {
4744
+ /**
4745
+ *
4746
+ * @type {string}
4747
+ * @memberof DefaultApiV1DeleteImageSetImage
4748
+ */
4749
+ readonly imageId: string
4750
+ }
4751
+
4611
4752
  /**
4612
4753
  * Request parameters for v1GetAstroCamera operation in DefaultApi.
4613
4754
  * @export
@@ -5068,6 +5209,28 @@ export class DefaultApi extends BaseAPI {
5068
5209
  return DefaultApiFp(this.configuration).v1CreateNode(requestParameters.v1CreateNodeRequest, options).then((request) => request(this.axios, this.basePath));
5069
5210
  }
5070
5211
 
5212
+ /**
5213
+ * Delete an image set.
5214
+ * @param {DefaultApiV1DeleteImageSetRequest} requestParameters Request parameters.
5215
+ * @param {*} [options] Override http request option.
5216
+ * @throws {RequiredError}
5217
+ * @memberof DefaultApi
5218
+ */
5219
+ public v1DeleteImageSet(requestParameters: DefaultApiV1DeleteImageSetRequest, options?: AxiosRequestConfig) {
5220
+ return DefaultApiFp(this.configuration).v1DeleteImageSet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
5221
+ }
5222
+
5223
+ /**
5224
+ * Delete an image.
5225
+ * @param {DefaultApiV1DeleteImageSetImageRequest} requestParameters Request parameters.
5226
+ * @param {*} [options] Override http request option.
5227
+ * @throws {RequiredError}
5228
+ * @memberof DefaultApi
5229
+ */
5230
+ public v1DeleteImageSetImage(requestParameters: DefaultApiV1DeleteImageSetImageRequest, options?: AxiosRequestConfig) {
5231
+ return DefaultApiFp(this.configuration).v1DeleteImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
5232
+ }
5233
+
5071
5234
  /**
5072
5235
  * Get an astro camera.
5073
5236
  * @param {DefaultApiV1GetAstroCameraRequest} requestParameters Request parameters.
@@ -5240,16 +5403,6 @@ export class DefaultApi extends BaseAPI {
5240
5403
  return DefaultApiFp(this.configuration).v1GetJobLogs(requestParameters.astroProjectId, options).then((request) => request(this.axios, this.basePath));
5241
5404
  }
5242
5405
 
5243
- /**
5244
- * Get mounts.
5245
- * @param {*} [options] Override http request option.
5246
- * @throws {RequiredError}
5247
- * @memberof DefaultApi
5248
- */
5249
- public v1GetMounts(options?: AxiosRequestConfig) {
5250
- return DefaultApiFp(this.configuration).v1GetMounts(options).then((request) => request(this.axios, this.basePath));
5251
- }
5252
-
5253
5406
  /**
5254
5407
  * Get nodes.
5255
5408
  * @param {*} [options] Override http request option.
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky Astro
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.2078
7
+ * The version of the OpenAPI document: 1.3.2229
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 Astro
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.2078
7
+ * The version of the OpenAPI document: 1.3.2229
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 Astro
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.3.2078
7
+ * The version of the OpenAPI document: 1.3.2229
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).