@ourskyai/platform-api 1.3.1734

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.
@@ -0,0 +1,1397 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OurSky Platform
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1734
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI } from './base';
29
+ /**
30
+ * Camera mode
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const CameraMode = {
35
+ VIDEO: 'VIDEO',
36
+ SINGLE: 'SINGLE'
37
+ };
38
+ /**
39
+ *
40
+ * @export
41
+ * @enum {string}
42
+ */
43
+ export const FilterType = {
44
+ NONE: 'NONE',
45
+ RED: 'RED',
46
+ BLUE: 'BLUE',
47
+ GREEN: 'GREEN',
48
+ UV: 'UV',
49
+ IR: 'IR',
50
+ LUMINANCE: 'LUMINANCE',
51
+ ENHANCED_LUMINANCE: 'ENHANCED_LUMINANCE',
52
+ H_ALPHA: 'H_ALPHA',
53
+ H_BETA: 'H_BETA',
54
+ S_II: 'S_II',
55
+ O_III: 'O_III',
56
+ DUAL_BAND: 'DUAL_BAND',
57
+ PHOTO_JOHNSON_U: 'PHOTO_JOHNSON_U',
58
+ PHOTO_JOHNSON_B: 'PHOTO_JOHNSON_B',
59
+ PHOTO_JOHNSON_V: 'PHOTO_JOHNSON_V',
60
+ PHOTO_COUSINS_R: 'PHOTO_COUSINS_R',
61
+ PHOTO_COUSINS_I: 'PHOTO_COUSINS_I'
62
+ };
63
+ /**
64
+ * metric type
65
+ * @export
66
+ * @enum {string}
67
+ */
68
+ export const MetricType = {
69
+ COUNT: 'COUNT',
70
+ DISTRIBUTION: 'DISTRIBUTION'
71
+ };
72
+ /**
73
+ * The type of mount
74
+ * @export
75
+ * @enum {string}
76
+ */
77
+ export const MountType = {
78
+ ALT_AZ: 'ALT_AZ',
79
+ EQUITORIAL: 'EQUITORIAL'
80
+ };
81
+ /**
82
+ * possible states for a node
83
+ * @export
84
+ * @enum {string}
85
+ */
86
+ export const NodeState = {
87
+ READY: 'READY',
88
+ PENDING: 'PENDING',
89
+ OFFLINE: 'OFFLINE',
90
+ UNAVAILABLE: 'UNAVAILABLE',
91
+ UNKNOWN: 'UNKNOWN',
92
+ SUPERSEDED: 'SUPERSEDED'
93
+ };
94
+ /**
95
+ * optical tube types
96
+ * @export
97
+ * @enum {string}
98
+ */
99
+ export const OpticalTubeType = {
100
+ NEWTONIAN: 'NEWTONIAN',
101
+ SCT: 'SCT',
102
+ MCT: 'MCT',
103
+ RC: 'RC',
104
+ REFRACTOR: 'REFRACTOR'
105
+ };
106
+ /**
107
+ * shutter type
108
+ * @export
109
+ * @enum {string}
110
+ */
111
+ export const ShutterType = {
112
+ ROLLING: 'ROLLING',
113
+ GLOBAL: 'GLOBAL'
114
+ };
115
+ /**
116
+ * target tracking type
117
+ * @export
118
+ * @enum {string}
119
+ */
120
+ export const TrackingType = {
121
+ SIDEREAL: 'SIDEREAL',
122
+ TARGET_RATE: 'TARGET_RATE'
123
+ };
124
+ /**
125
+ * DefaultApi - axios parameter creator
126
+ * @export
127
+ */
128
+ export const DefaultApiAxiosParamCreator = function (configuration) {
129
+ return {
130
+ /**
131
+ * match camera
132
+ * @param {string} [model]
133
+ * @param {number} [pixelSizeMicrons]
134
+ * @param {number} [pixelsX]
135
+ * @param {number} [pixelsY]
136
+ * @param {number} [megapixels]
137
+ * @param {boolean} [chilled]
138
+ * @param {number} [adcBitDepth]
139
+ * @param {boolean} [isColor]
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ v1CameraMatch: (model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options = {}) => __awaiter(this, void 0, void 0, function* () {
144
+ const localVarPath = `/v1/camera-match`;
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
152
+ const localVarHeaderParameter = {};
153
+ const localVarQueryParameter = {};
154
+ // authentication Roles required
155
+ // authentication BearerToken required
156
+ // http bearer authentication required
157
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
158
+ if (model !== undefined) {
159
+ localVarQueryParameter['model'] = model;
160
+ }
161
+ if (pixelSizeMicrons !== undefined) {
162
+ localVarQueryParameter['pixelSizeMicrons'] = pixelSizeMicrons;
163
+ }
164
+ if (pixelsX !== undefined) {
165
+ localVarQueryParameter['pixelsX'] = pixelsX;
166
+ }
167
+ if (pixelsY !== undefined) {
168
+ localVarQueryParameter['pixelsY'] = pixelsY;
169
+ }
170
+ if (megapixels !== undefined) {
171
+ localVarQueryParameter['megapixels'] = megapixels;
172
+ }
173
+ if (chilled !== undefined) {
174
+ localVarQueryParameter['chilled'] = chilled;
175
+ }
176
+ if (adcBitDepth !== undefined) {
177
+ localVarQueryParameter['adcBitDepth'] = adcBitDepth;
178
+ }
179
+ if (isColor !== undefined) {
180
+ localVarQueryParameter['isColor'] = isColor;
181
+ }
182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
+ return {
186
+ url: toPathString(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ }),
190
+ /**
191
+ * complete an observation
192
+ * @param {V1CompleteObservation} v1CompleteObservation request to complete an observation
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ v1CompleteObservation: (v1CompleteObservation, options = {}) => __awaiter(this, void 0, void 0, function* () {
197
+ // verify required parameter 'v1CompleteObservation' is not null or undefined
198
+ assertParamExists('v1CompleteObservation', 'v1CompleteObservation', v1CompleteObservation);
199
+ const localVarPath = `/v1/observation-complete`;
200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
202
+ let baseOptions;
203
+ if (configuration) {
204
+ baseOptions = configuration.baseOptions;
205
+ }
206
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
207
+ const localVarHeaderParameter = {};
208
+ const localVarQueryParameter = {};
209
+ // authentication Roles required
210
+ // authentication BearerToken required
211
+ // http bearer authentication required
212
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
213
+ localVarHeaderParameter['Content-Type'] = 'application/json';
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
217
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CompleteObservation, localVarRequestOptions, configuration);
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ }),
223
+ /**
224
+ * create an image set
225
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ v1CreateImageSet: (v1CreateImageSet, options = {}) => __awaiter(this, void 0, void 0, function* () {
230
+ // verify required parameter 'v1CreateImageSet' is not null or undefined
231
+ assertParamExists('v1CreateImageSet', 'v1CreateImageSet', v1CreateImageSet);
232
+ const localVarPath = `/v1/image-set`;
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
240
+ const localVarHeaderParameter = {};
241
+ const localVarQueryParameter = {};
242
+ // authentication Roles required
243
+ // authentication BearerToken required
244
+ // http bearer authentication required
245
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSet, localVarRequestOptions, configuration);
251
+ return {
252
+ url: toPathString(localVarUrlObj),
253
+ options: localVarRequestOptions,
254
+ };
255
+ }),
256
+ /**
257
+ * create an image set image
258
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ v1CreateImageSetImage: (v1CreateImageSetImage, options = {}) => __awaiter(this, void 0, void 0, function* () {
263
+ // verify required parameter 'v1CreateImageSetImage' is not null or undefined
264
+ assertParamExists('v1CreateImageSetImage', 'v1CreateImageSetImage', v1CreateImageSetImage);
265
+ const localVarPath = `/v1/image-set-image`;
266
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
267
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
268
+ let baseOptions;
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ }
272
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
273
+ const localVarHeaderParameter = {};
274
+ const localVarQueryParameter = {};
275
+ // authentication Roles required
276
+ // authentication BearerToken required
277
+ // http bearer authentication required
278
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
279
+ localVarHeaderParameter['Content-Type'] = 'application/json';
280
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
283
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSetImage, localVarRequestOptions, configuration);
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ }),
289
+ /**
290
+ * create metrics
291
+ * @param {Array<V1Metric>} v1Metric request to create metrics
292
+ * @param {*} [options] Override http request option.
293
+ * @throws {RequiredError}
294
+ */
295
+ v1CreateMetrics: (v1Metric, options = {}) => __awaiter(this, void 0, void 0, function* () {
296
+ // verify required parameter 'v1Metric' is not null or undefined
297
+ assertParamExists('v1CreateMetrics', 'v1Metric', v1Metric);
298
+ const localVarPath = `/v1/metrics`;
299
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
300
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
301
+ let baseOptions;
302
+ if (configuration) {
303
+ baseOptions = configuration.baseOptions;
304
+ }
305
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
306
+ const localVarHeaderParameter = {};
307
+ const localVarQueryParameter = {};
308
+ // authentication Roles required
309
+ // authentication BearerToken required
310
+ // http bearer authentication required
311
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
312
+ localVarHeaderParameter['Content-Type'] = 'application/json';
313
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
+ localVarRequestOptions.data = serializeDataIfNeeded(v1Metric, localVarRequestOptions, configuration);
317
+ return {
318
+ url: toPathString(localVarUrlObj),
319
+ options: localVarRequestOptions,
320
+ };
321
+ }),
322
+ /**
323
+ * create a mount
324
+ * @param {V1CreateMount} v1CreateMount request to create a mount
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ v1CreateMount: (v1CreateMount, options = {}) => __awaiter(this, void 0, void 0, function* () {
329
+ // verify required parameter 'v1CreateMount' is not null or undefined
330
+ assertParamExists('v1CreateMount', 'v1CreateMount', v1CreateMount);
331
+ const localVarPath = `/v1/mount`;
332
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
334
+ let baseOptions;
335
+ if (configuration) {
336
+ baseOptions = configuration.baseOptions;
337
+ }
338
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
339
+ const localVarHeaderParameter = {};
340
+ const localVarQueryParameter = {};
341
+ // authentication Roles required
342
+ // authentication BearerToken required
343
+ // http bearer authentication required
344
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
345
+ localVarHeaderParameter['Content-Type'] = 'application/json';
346
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
348
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
349
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateMount, localVarRequestOptions, configuration);
350
+ return {
351
+ url: toPathString(localVarUrlObj),
352
+ options: localVarRequestOptions,
353
+ };
354
+ }),
355
+ /**
356
+ * create an optical tube
357
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ v1CreateOpticalTube: (v1CreateOpticalTube, options = {}) => __awaiter(this, void 0, void 0, function* () {
362
+ // verify required parameter 'v1CreateOpticalTube' is not null or undefined
363
+ assertParamExists('v1CreateOpticalTube', 'v1CreateOpticalTube', v1CreateOpticalTube);
364
+ const localVarPath = `/v1/optical-tube`;
365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
367
+ let baseOptions;
368
+ if (configuration) {
369
+ baseOptions = configuration.baseOptions;
370
+ }
371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
372
+ const localVarHeaderParameter = {};
373
+ const localVarQueryParameter = {};
374
+ // authentication Roles required
375
+ // authentication BearerToken required
376
+ // http bearer authentication required
377
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateOpticalTube, localVarRequestOptions, configuration);
383
+ return {
384
+ url: toPathString(localVarUrlObj),
385
+ options: localVarRequestOptions,
386
+ };
387
+ }),
388
+ /**
389
+ * get all cameras
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ v1GetCameras: (options = {}) => __awaiter(this, void 0, void 0, function* () {
394
+ const localVarPath = `/v1/cameras`;
395
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
396
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
397
+ let baseOptions;
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ }
401
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
402
+ const localVarHeaderParameter = {};
403
+ const localVarQueryParameter = {};
404
+ // authentication Roles required
405
+ // authentication BearerToken required
406
+ // http bearer authentication required
407
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
408
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
411
+ return {
412
+ url: toPathString(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ };
415
+ }),
416
+ /**
417
+ * get an image set
418
+ * @param {string} id
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ v1GetImageSet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
423
+ // verify required parameter 'id' is not null or undefined
424
+ assertParamExists('v1GetImageSet', 'id', id);
425
+ const localVarPath = `/v1/image-set`;
426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
428
+ let baseOptions;
429
+ if (configuration) {
430
+ baseOptions = configuration.baseOptions;
431
+ }
432
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
433
+ const localVarHeaderParameter = {};
434
+ const localVarQueryParameter = {};
435
+ // authentication Roles required
436
+ // authentication BearerToken required
437
+ // http bearer authentication required
438
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
439
+ if (id !== undefined) {
440
+ localVarQueryParameter['id'] = id;
441
+ }
442
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
444
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
445
+ return {
446
+ url: toPathString(localVarUrlObj),
447
+ options: localVarRequestOptions,
448
+ };
449
+ }),
450
+ /**
451
+ * get an image
452
+ * @param {string} imageId
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ v1GetImageSetImage: (imageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
457
+ // verify required parameter 'imageId' is not null or undefined
458
+ assertParamExists('v1GetImageSetImage', 'imageId', imageId);
459
+ const localVarPath = `/v1/image-set-image`;
460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
462
+ let baseOptions;
463
+ if (configuration) {
464
+ baseOptions = configuration.baseOptions;
465
+ }
466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
467
+ const localVarHeaderParameter = {};
468
+ const localVarQueryParameter = {};
469
+ // authentication Roles required
470
+ // authentication BearerToken required
471
+ // http bearer authentication required
472
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
473
+ if (imageId !== undefined) {
474
+ localVarQueryParameter['imageId'] = imageId;
475
+ }
476
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
479
+ return {
480
+ url: toPathString(localVarUrlObj),
481
+ options: localVarRequestOptions,
482
+ };
483
+ }),
484
+ /**
485
+ * get a mount
486
+ * @param {string} id
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ v1GetMount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
491
+ // verify required parameter 'id' is not null or undefined
492
+ assertParamExists('v1GetMount', 'id', id);
493
+ const localVarPath = `/v1/mount`;
494
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
496
+ let baseOptions;
497
+ if (configuration) {
498
+ baseOptions = configuration.baseOptions;
499
+ }
500
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
501
+ const localVarHeaderParameter = {};
502
+ const localVarQueryParameter = {};
503
+ // authentication Roles required
504
+ // authentication BearerToken required
505
+ // http bearer authentication required
506
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
507
+ if (id !== undefined) {
508
+ localVarQueryParameter['id'] = id;
509
+ }
510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
513
+ return {
514
+ url: toPathString(localVarUrlObj),
515
+ options: localVarRequestOptions,
516
+ };
517
+ }),
518
+ /**
519
+ * get the current properties of a node
520
+ * @param {string} nodeId
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ v1GetNodeProperties: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
525
+ // verify required parameter 'nodeId' is not null or undefined
526
+ assertParamExists('v1GetNodeProperties', 'nodeId', nodeId);
527
+ const localVarPath = `/v1/node-properties`;
528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
530
+ let baseOptions;
531
+ if (configuration) {
532
+ baseOptions = configuration.baseOptions;
533
+ }
534
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
535
+ const localVarHeaderParameter = {};
536
+ const localVarQueryParameter = {};
537
+ // authentication Roles required
538
+ // authentication BearerToken required
539
+ // http bearer authentication required
540
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
541
+ if (nodeId !== undefined) {
542
+ localVarQueryParameter['nodeId'] = nodeId;
543
+ }
544
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
545
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
546
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
547
+ return {
548
+ url: toPathString(localVarUrlObj),
549
+ options: localVarRequestOptions,
550
+ };
551
+ }),
552
+ /**
553
+ * get all nodes
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ v1GetNodes: (options = {}) => __awaiter(this, void 0, void 0, function* () {
558
+ const localVarPath = `/v1/nodes`;
559
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
560
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
561
+ let baseOptions;
562
+ if (configuration) {
563
+ baseOptions = configuration.baseOptions;
564
+ }
565
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
566
+ const localVarHeaderParameter = {};
567
+ const localVarQueryParameter = {};
568
+ // authentication Roles required
569
+ // authentication BearerToken required
570
+ // http bearer authentication required
571
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
575
+ return {
576
+ url: toPathString(localVarUrlObj),
577
+ options: localVarRequestOptions,
578
+ };
579
+ }),
580
+ /**
581
+ * get observatories
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ v1GetObservatories: (options = {}) => __awaiter(this, void 0, void 0, function* () {
586
+ const localVarPath = `/v1/observatories`;
587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
589
+ let baseOptions;
590
+ if (configuration) {
591
+ baseOptions = configuration.baseOptions;
592
+ }
593
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
594
+ const localVarHeaderParameter = {};
595
+ const localVarQueryParameter = {};
596
+ // authentication Roles required
597
+ // authentication BearerToken required
598
+ // http bearer authentication required
599
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
602
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
603
+ return {
604
+ url: toPathString(localVarUrlObj),
605
+ options: localVarRequestOptions,
606
+ };
607
+ }),
608
+ /**
609
+ * get an optical tube
610
+ * @param {string} id
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ v1GetOpticalTube: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
615
+ // verify required parameter 'id' is not null or undefined
616
+ assertParamExists('v1GetOpticalTube', 'id', id);
617
+ const localVarPath = `/v1/optical-tube`;
618
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
619
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
620
+ let baseOptions;
621
+ if (configuration) {
622
+ baseOptions = configuration.baseOptions;
623
+ }
624
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
625
+ const localVarHeaderParameter = {};
626
+ const localVarQueryParameter = {};
627
+ // authentication Roles required
628
+ // authentication BearerToken required
629
+ // http bearer authentication required
630
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
631
+ if (id !== undefined) {
632
+ localVarQueryParameter['id'] = id;
633
+ }
634
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
637
+ return {
638
+ url: toPathString(localVarUrlObj),
639
+ options: localVarRequestOptions,
640
+ };
641
+ }),
642
+ /**
643
+ * match mount
644
+ * @param {string} [model]
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ v1MountMatch: (model, options = {}) => __awaiter(this, void 0, void 0, function* () {
649
+ const localVarPath = `/v1/mount-match`;
650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
652
+ let baseOptions;
653
+ if (configuration) {
654
+ baseOptions = configuration.baseOptions;
655
+ }
656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
657
+ const localVarHeaderParameter = {};
658
+ const localVarQueryParameter = {};
659
+ // authentication Roles required
660
+ // authentication BearerToken required
661
+ // http bearer authentication required
662
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
663
+ if (model !== undefined) {
664
+ localVarQueryParameter['model'] = model;
665
+ }
666
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
668
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
669
+ return {
670
+ url: toPathString(localVarUrlObj),
671
+ options: localVarRequestOptions,
672
+ };
673
+ }),
674
+ /**
675
+ * match optical tube
676
+ * @param {string} [model]
677
+ * @param {number} [focalLengthMm]
678
+ * @param {number} [apertureMm]
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ v1OpticalTubeMatch: (model, focalLengthMm, apertureMm, options = {}) => __awaiter(this, void 0, void 0, function* () {
683
+ const localVarPath = `/v1/optical-tube-match`;
684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
686
+ let baseOptions;
687
+ if (configuration) {
688
+ baseOptions = configuration.baseOptions;
689
+ }
690
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
691
+ const localVarHeaderParameter = {};
692
+ const localVarQueryParameter = {};
693
+ // authentication Roles required
694
+ // authentication BearerToken required
695
+ // http bearer authentication required
696
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
697
+ if (model !== undefined) {
698
+ localVarQueryParameter['model'] = model;
699
+ }
700
+ if (focalLengthMm !== undefined) {
701
+ localVarQueryParameter['focalLengthMm'] = focalLengthMm;
702
+ }
703
+ if (apertureMm !== undefined) {
704
+ localVarQueryParameter['apertureMm'] = apertureMm;
705
+ }
706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
708
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
709
+ return {
710
+ url: toPathString(localVarUrlObj),
711
+ options: localVarRequestOptions,
712
+ };
713
+ }),
714
+ /**
715
+ * update node metrics
716
+ * @param {V1UpdateNodeMetrics} v1UpdateNodeMetrics request to update node metrics
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ v1UpdateNodeMetrics: (v1UpdateNodeMetrics, options = {}) => __awaiter(this, void 0, void 0, function* () {
721
+ // verify required parameter 'v1UpdateNodeMetrics' is not null or undefined
722
+ assertParamExists('v1UpdateNodeMetrics', 'v1UpdateNodeMetrics', v1UpdateNodeMetrics);
723
+ const localVarPath = `/v1/node-metrics`;
724
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
725
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
726
+ let baseOptions;
727
+ if (configuration) {
728
+ baseOptions = configuration.baseOptions;
729
+ }
730
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
731
+ const localVarHeaderParameter = {};
732
+ const localVarQueryParameter = {};
733
+ // authentication Roles required
734
+ // authentication BearerToken required
735
+ // http bearer authentication required
736
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
737
+ localVarHeaderParameter['Content-Type'] = 'application/json';
738
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
739
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
740
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
741
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateNodeMetrics, localVarRequestOptions, configuration);
742
+ return {
743
+ url: toPathString(localVarUrlObj),
744
+ options: localVarRequestOptions,
745
+ };
746
+ }),
747
+ /**
748
+ * get next observation
749
+ * @param {string} nodeId
750
+ * @param {*} [options] Override http request option.
751
+ * @throws {RequiredError}
752
+ */
753
+ v2GetObservation: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
754
+ // verify required parameter 'nodeId' is not null or undefined
755
+ assertParamExists('v2GetObservation', 'nodeId', nodeId);
756
+ const localVarPath = `/v2/observation`;
757
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
758
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
759
+ let baseOptions;
760
+ if (configuration) {
761
+ baseOptions = configuration.baseOptions;
762
+ }
763
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
764
+ const localVarHeaderParameter = {};
765
+ const localVarQueryParameter = {};
766
+ // authentication Roles required
767
+ // authentication BearerToken required
768
+ // http bearer authentication required
769
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
770
+ if (nodeId !== undefined) {
771
+ localVarQueryParameter['nodeId'] = nodeId;
772
+ }
773
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
775
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
776
+ return {
777
+ url: toPathString(localVarUrlObj),
778
+ options: localVarRequestOptions,
779
+ };
780
+ }),
781
+ };
782
+ };
783
+ /**
784
+ * DefaultApi - functional programming interface
785
+ * @export
786
+ */
787
+ export const DefaultApiFp = function (configuration) {
788
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
789
+ return {
790
+ /**
791
+ * match camera
792
+ * @param {string} [model]
793
+ * @param {number} [pixelSizeMicrons]
794
+ * @param {number} [pixelsX]
795
+ * @param {number} [pixelsY]
796
+ * @param {number} [megapixels]
797
+ * @param {boolean} [chilled]
798
+ * @param {number} [adcBitDepth]
799
+ * @param {boolean} [isColor]
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ v1CameraMatch(model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options) {
804
+ return __awaiter(this, void 0, void 0, function* () {
805
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CameraMatch(model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options);
806
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
807
+ });
808
+ },
809
+ /**
810
+ * complete an observation
811
+ * @param {V1CompleteObservation} v1CompleteObservation request to complete an observation
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ */
815
+ v1CompleteObservation(v1CompleteObservation, options) {
816
+ return __awaiter(this, void 0, void 0, function* () {
817
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CompleteObservation(v1CompleteObservation, options);
818
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
819
+ });
820
+ },
821
+ /**
822
+ * create an image set
823
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ */
827
+ v1CreateImageSet(v1CreateImageSet, options) {
828
+ return __awaiter(this, void 0, void 0, function* () {
829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSet(v1CreateImageSet, options);
830
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
831
+ });
832
+ },
833
+ /**
834
+ * create an image set image
835
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ v1CreateImageSetImage(v1CreateImageSetImage, options) {
840
+ return __awaiter(this, void 0, void 0, function* () {
841
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSetImage(v1CreateImageSetImage, options);
842
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
843
+ });
844
+ },
845
+ /**
846
+ * create metrics
847
+ * @param {Array<V1Metric>} v1Metric request to create metrics
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ v1CreateMetrics(v1Metric, options) {
852
+ return __awaiter(this, void 0, void 0, function* () {
853
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateMetrics(v1Metric, options);
854
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
855
+ });
856
+ },
857
+ /**
858
+ * create a mount
859
+ * @param {V1CreateMount} v1CreateMount request to create a mount
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
863
+ v1CreateMount(v1CreateMount, options) {
864
+ return __awaiter(this, void 0, void 0, function* () {
865
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateMount(v1CreateMount, options);
866
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
867
+ });
868
+ },
869
+ /**
870
+ * create an optical tube
871
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
872
+ * @param {*} [options] Override http request option.
873
+ * @throws {RequiredError}
874
+ */
875
+ v1CreateOpticalTube(v1CreateOpticalTube, options) {
876
+ return __awaiter(this, void 0, void 0, function* () {
877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateOpticalTube(v1CreateOpticalTube, options);
878
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
879
+ });
880
+ },
881
+ /**
882
+ * get all cameras
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ v1GetCameras(options) {
887
+ return __awaiter(this, void 0, void 0, function* () {
888
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetCameras(options);
889
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
890
+ });
891
+ },
892
+ /**
893
+ * get an image set
894
+ * @param {string} id
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ v1GetImageSet(id, options) {
899
+ return __awaiter(this, void 0, void 0, function* () {
900
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSet(id, options);
901
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
902
+ });
903
+ },
904
+ /**
905
+ * get an image
906
+ * @param {string} imageId
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ */
910
+ v1GetImageSetImage(imageId, options) {
911
+ return __awaiter(this, void 0, void 0, function* () {
912
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSetImage(imageId, options);
913
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
914
+ });
915
+ },
916
+ /**
917
+ * get a mount
918
+ * @param {string} id
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ v1GetMount(id, options) {
923
+ return __awaiter(this, void 0, void 0, function* () {
924
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetMount(id, options);
925
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
926
+ });
927
+ },
928
+ /**
929
+ * get the current properties of a node
930
+ * @param {string} nodeId
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ v1GetNodeProperties(nodeId, options) {
935
+ return __awaiter(this, void 0, void 0, function* () {
936
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetNodeProperties(nodeId, options);
937
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
938
+ });
939
+ },
940
+ /**
941
+ * get all nodes
942
+ * @param {*} [options] Override http request option.
943
+ * @throws {RequiredError}
944
+ */
945
+ v1GetNodes(options) {
946
+ return __awaiter(this, void 0, void 0, function* () {
947
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetNodes(options);
948
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
949
+ });
950
+ },
951
+ /**
952
+ * get observatories
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ v1GetObservatories(options) {
957
+ return __awaiter(this, void 0, void 0, function* () {
958
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetObservatories(options);
959
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
960
+ });
961
+ },
962
+ /**
963
+ * get an optical tube
964
+ * @param {string} id
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ v1GetOpticalTube(id, options) {
969
+ return __awaiter(this, void 0, void 0, function* () {
970
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetOpticalTube(id, options);
971
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
972
+ });
973
+ },
974
+ /**
975
+ * match mount
976
+ * @param {string} [model]
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ v1MountMatch(model, options) {
981
+ return __awaiter(this, void 0, void 0, function* () {
982
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1MountMatch(model, options);
983
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
984
+ });
985
+ },
986
+ /**
987
+ * match optical tube
988
+ * @param {string} [model]
989
+ * @param {number} [focalLengthMm]
990
+ * @param {number} [apertureMm]
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ v1OpticalTubeMatch(model, focalLengthMm, apertureMm, options) {
995
+ return __awaiter(this, void 0, void 0, function* () {
996
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1OpticalTubeMatch(model, focalLengthMm, apertureMm, options);
997
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
998
+ });
999
+ },
1000
+ /**
1001
+ * update node metrics
1002
+ * @param {V1UpdateNodeMetrics} v1UpdateNodeMetrics request to update node metrics
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ v1UpdateNodeMetrics(v1UpdateNodeMetrics, options) {
1007
+ return __awaiter(this, void 0, void 0, function* () {
1008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateNodeMetrics(v1UpdateNodeMetrics, options);
1009
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1010
+ });
1011
+ },
1012
+ /**
1013
+ * get next observation
1014
+ * @param {string} nodeId
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ v2GetObservation(nodeId, options) {
1019
+ return __awaiter(this, void 0, void 0, function* () {
1020
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v2GetObservation(nodeId, options);
1021
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1022
+ });
1023
+ },
1024
+ };
1025
+ };
1026
+ /**
1027
+ * DefaultApi - factory interface
1028
+ * @export
1029
+ */
1030
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
1031
+ const localVarFp = DefaultApiFp(configuration);
1032
+ return {
1033
+ /**
1034
+ * match camera
1035
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ v1CameraMatch(requestParameters = {}, options) {
1040
+ return localVarFp.v1CameraMatch(requestParameters.model, requestParameters.pixelSizeMicrons, requestParameters.pixelsX, requestParameters.pixelsY, requestParameters.megapixels, requestParameters.chilled, requestParameters.adcBitDepth, requestParameters.isColor, options).then((request) => request(axios, basePath));
1041
+ },
1042
+ /**
1043
+ * complete an observation
1044
+ * @param {DefaultApiV1CompleteObservationRequest} requestParameters Request parameters.
1045
+ * @param {*} [options] Override http request option.
1046
+ * @throws {RequiredError}
1047
+ */
1048
+ v1CompleteObservation(requestParameters, options) {
1049
+ return localVarFp.v1CompleteObservation(requestParameters.v1CompleteObservation, options).then((request) => request(axios, basePath));
1050
+ },
1051
+ /**
1052
+ * create an image set
1053
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ */
1057
+ v1CreateImageSet(requestParameters, options) {
1058
+ return localVarFp.v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(axios, basePath));
1059
+ },
1060
+ /**
1061
+ * create an image set image
1062
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ v1CreateImageSetImage(requestParameters, options) {
1067
+ return localVarFp.v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(axios, basePath));
1068
+ },
1069
+ /**
1070
+ * create metrics
1071
+ * @param {DefaultApiV1CreateMetricsRequest} requestParameters Request parameters.
1072
+ * @param {*} [options] Override http request option.
1073
+ * @throws {RequiredError}
1074
+ */
1075
+ v1CreateMetrics(requestParameters, options) {
1076
+ return localVarFp.v1CreateMetrics(requestParameters.v1Metric, options).then((request) => request(axios, basePath));
1077
+ },
1078
+ /**
1079
+ * create a mount
1080
+ * @param {DefaultApiV1CreateMountRequest} requestParameters Request parameters.
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ */
1084
+ v1CreateMount(requestParameters, options) {
1085
+ return localVarFp.v1CreateMount(requestParameters.v1CreateMount, options).then((request) => request(axios, basePath));
1086
+ },
1087
+ /**
1088
+ * create an optical tube
1089
+ * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ v1CreateOpticalTube(requestParameters, options) {
1094
+ return localVarFp.v1CreateOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(axios, basePath));
1095
+ },
1096
+ /**
1097
+ * get all cameras
1098
+ * @param {*} [options] Override http request option.
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ v1GetCameras(options) {
1102
+ return localVarFp.v1GetCameras(options).then((request) => request(axios, basePath));
1103
+ },
1104
+ /**
1105
+ * get an image set
1106
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ v1GetImageSet(requestParameters, options) {
1111
+ return localVarFp.v1GetImageSet(requestParameters.id, options).then((request) => request(axios, basePath));
1112
+ },
1113
+ /**
1114
+ * get an image
1115
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ */
1119
+ v1GetImageSetImage(requestParameters, options) {
1120
+ return localVarFp.v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
1121
+ },
1122
+ /**
1123
+ * get a mount
1124
+ * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
1125
+ * @param {*} [options] Override http request option.
1126
+ * @throws {RequiredError}
1127
+ */
1128
+ v1GetMount(requestParameters, options) {
1129
+ return localVarFp.v1GetMount(requestParameters.id, options).then((request) => request(axios, basePath));
1130
+ },
1131
+ /**
1132
+ * get the current properties of a node
1133
+ * @param {DefaultApiV1GetNodePropertiesRequest} requestParameters Request parameters.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ v1GetNodeProperties(requestParameters, options) {
1138
+ return localVarFp.v1GetNodeProperties(requestParameters.nodeId, options).then((request) => request(axios, basePath));
1139
+ },
1140
+ /**
1141
+ * get all nodes
1142
+ * @param {*} [options] Override http request option.
1143
+ * @throws {RequiredError}
1144
+ */
1145
+ v1GetNodes(options) {
1146
+ return localVarFp.v1GetNodes(options).then((request) => request(axios, basePath));
1147
+ },
1148
+ /**
1149
+ * get observatories
1150
+ * @param {*} [options] Override http request option.
1151
+ * @throws {RequiredError}
1152
+ */
1153
+ v1GetObservatories(options) {
1154
+ return localVarFp.v1GetObservatories(options).then((request) => request(axios, basePath));
1155
+ },
1156
+ /**
1157
+ * get an optical tube
1158
+ * @param {DefaultApiV1GetOpticalTubeRequest} requestParameters Request parameters.
1159
+ * @param {*} [options] Override http request option.
1160
+ * @throws {RequiredError}
1161
+ */
1162
+ v1GetOpticalTube(requestParameters, options) {
1163
+ return localVarFp.v1GetOpticalTube(requestParameters.id, options).then((request) => request(axios, basePath));
1164
+ },
1165
+ /**
1166
+ * match mount
1167
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ v1MountMatch(requestParameters = {}, options) {
1172
+ return localVarFp.v1MountMatch(requestParameters.model, options).then((request) => request(axios, basePath));
1173
+ },
1174
+ /**
1175
+ * match optical tube
1176
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ v1OpticalTubeMatch(requestParameters = {}, options) {
1181
+ return localVarFp.v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(axios, basePath));
1182
+ },
1183
+ /**
1184
+ * update node metrics
1185
+ * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
1186
+ * @param {*} [options] Override http request option.
1187
+ * @throws {RequiredError}
1188
+ */
1189
+ v1UpdateNodeMetrics(requestParameters, options) {
1190
+ return localVarFp.v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetrics, options).then((request) => request(axios, basePath));
1191
+ },
1192
+ /**
1193
+ * get next observation
1194
+ * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ */
1198
+ v2GetObservation(requestParameters, options) {
1199
+ return localVarFp.v2GetObservation(requestParameters.nodeId, options).then((request) => request(axios, basePath));
1200
+ },
1201
+ };
1202
+ };
1203
+ /**
1204
+ * DefaultApi - object-oriented interface
1205
+ * @export
1206
+ * @class DefaultApi
1207
+ * @extends {BaseAPI}
1208
+ */
1209
+ export class DefaultApi extends BaseAPI {
1210
+ /**
1211
+ * match camera
1212
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ * @memberof DefaultApi
1216
+ */
1217
+ v1CameraMatch(requestParameters = {}, options) {
1218
+ return DefaultApiFp(this.configuration).v1CameraMatch(requestParameters.model, requestParameters.pixelSizeMicrons, requestParameters.pixelsX, requestParameters.pixelsY, requestParameters.megapixels, requestParameters.chilled, requestParameters.adcBitDepth, requestParameters.isColor, options).then((request) => request(this.axios, this.basePath));
1219
+ }
1220
+ /**
1221
+ * complete an observation
1222
+ * @param {DefaultApiV1CompleteObservationRequest} requestParameters Request parameters.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ * @memberof DefaultApi
1226
+ */
1227
+ v1CompleteObservation(requestParameters, options) {
1228
+ return DefaultApiFp(this.configuration).v1CompleteObservation(requestParameters.v1CompleteObservation, options).then((request) => request(this.axios, this.basePath));
1229
+ }
1230
+ /**
1231
+ * create an image set
1232
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
1233
+ * @param {*} [options] Override http request option.
1234
+ * @throws {RequiredError}
1235
+ * @memberof DefaultApi
1236
+ */
1237
+ v1CreateImageSet(requestParameters, options) {
1238
+ return DefaultApiFp(this.configuration).v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(this.axios, this.basePath));
1239
+ }
1240
+ /**
1241
+ * create an image set image
1242
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ * @memberof DefaultApi
1246
+ */
1247
+ v1CreateImageSetImage(requestParameters, options) {
1248
+ return DefaultApiFp(this.configuration).v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(this.axios, this.basePath));
1249
+ }
1250
+ /**
1251
+ * create metrics
1252
+ * @param {DefaultApiV1CreateMetricsRequest} requestParameters Request parameters.
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ * @memberof DefaultApi
1256
+ */
1257
+ v1CreateMetrics(requestParameters, options) {
1258
+ return DefaultApiFp(this.configuration).v1CreateMetrics(requestParameters.v1Metric, options).then((request) => request(this.axios, this.basePath));
1259
+ }
1260
+ /**
1261
+ * create a mount
1262
+ * @param {DefaultApiV1CreateMountRequest} requestParameters Request parameters.
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ * @memberof DefaultApi
1266
+ */
1267
+ v1CreateMount(requestParameters, options) {
1268
+ return DefaultApiFp(this.configuration).v1CreateMount(requestParameters.v1CreateMount, options).then((request) => request(this.axios, this.basePath));
1269
+ }
1270
+ /**
1271
+ * create an optical tube
1272
+ * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ * @memberof DefaultApi
1276
+ */
1277
+ v1CreateOpticalTube(requestParameters, options) {
1278
+ return DefaultApiFp(this.configuration).v1CreateOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(this.axios, this.basePath));
1279
+ }
1280
+ /**
1281
+ * get all cameras
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ * @memberof DefaultApi
1285
+ */
1286
+ v1GetCameras(options) {
1287
+ return DefaultApiFp(this.configuration).v1GetCameras(options).then((request) => request(this.axios, this.basePath));
1288
+ }
1289
+ /**
1290
+ * get an image set
1291
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ * @memberof DefaultApi
1295
+ */
1296
+ v1GetImageSet(requestParameters, options) {
1297
+ return DefaultApiFp(this.configuration).v1GetImageSet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1298
+ }
1299
+ /**
1300
+ * get an image
1301
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
1302
+ * @param {*} [options] Override http request option.
1303
+ * @throws {RequiredError}
1304
+ * @memberof DefaultApi
1305
+ */
1306
+ v1GetImageSetImage(requestParameters, options) {
1307
+ return DefaultApiFp(this.configuration).v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
1308
+ }
1309
+ /**
1310
+ * get a mount
1311
+ * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
1312
+ * @param {*} [options] Override http request option.
1313
+ * @throws {RequiredError}
1314
+ * @memberof DefaultApi
1315
+ */
1316
+ v1GetMount(requestParameters, options) {
1317
+ return DefaultApiFp(this.configuration).v1GetMount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1318
+ }
1319
+ /**
1320
+ * get the current properties of a node
1321
+ * @param {DefaultApiV1GetNodePropertiesRequest} requestParameters Request parameters.
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ * @memberof DefaultApi
1325
+ */
1326
+ v1GetNodeProperties(requestParameters, options) {
1327
+ return DefaultApiFp(this.configuration).v1GetNodeProperties(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
1328
+ }
1329
+ /**
1330
+ * get all nodes
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ * @memberof DefaultApi
1334
+ */
1335
+ v1GetNodes(options) {
1336
+ return DefaultApiFp(this.configuration).v1GetNodes(options).then((request) => request(this.axios, this.basePath));
1337
+ }
1338
+ /**
1339
+ * get observatories
1340
+ * @param {*} [options] Override http request option.
1341
+ * @throws {RequiredError}
1342
+ * @memberof DefaultApi
1343
+ */
1344
+ v1GetObservatories(options) {
1345
+ return DefaultApiFp(this.configuration).v1GetObservatories(options).then((request) => request(this.axios, this.basePath));
1346
+ }
1347
+ /**
1348
+ * get an optical tube
1349
+ * @param {DefaultApiV1GetOpticalTubeRequest} requestParameters Request parameters.
1350
+ * @param {*} [options] Override http request option.
1351
+ * @throws {RequiredError}
1352
+ * @memberof DefaultApi
1353
+ */
1354
+ v1GetOpticalTube(requestParameters, options) {
1355
+ return DefaultApiFp(this.configuration).v1GetOpticalTube(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1356
+ }
1357
+ /**
1358
+ * match mount
1359
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
1360
+ * @param {*} [options] Override http request option.
1361
+ * @throws {RequiredError}
1362
+ * @memberof DefaultApi
1363
+ */
1364
+ v1MountMatch(requestParameters = {}, options) {
1365
+ return DefaultApiFp(this.configuration).v1MountMatch(requestParameters.model, options).then((request) => request(this.axios, this.basePath));
1366
+ }
1367
+ /**
1368
+ * match optical tube
1369
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
1370
+ * @param {*} [options] Override http request option.
1371
+ * @throws {RequiredError}
1372
+ * @memberof DefaultApi
1373
+ */
1374
+ v1OpticalTubeMatch(requestParameters = {}, options) {
1375
+ return DefaultApiFp(this.configuration).v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(this.axios, this.basePath));
1376
+ }
1377
+ /**
1378
+ * update node metrics
1379
+ * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ * @memberof DefaultApi
1383
+ */
1384
+ v1UpdateNodeMetrics(requestParameters, options) {
1385
+ return DefaultApiFp(this.configuration).v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetrics, options).then((request) => request(this.axios, this.basePath));
1386
+ }
1387
+ /**
1388
+ * get next observation
1389
+ * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
1390
+ * @param {*} [options] Override http request option.
1391
+ * @throws {RequiredError}
1392
+ * @memberof DefaultApi
1393
+ */
1394
+ v2GetObservation(requestParameters, options) {
1395
+ return DefaultApiFp(this.configuration).v2GetObservation(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
1396
+ }
1397
+ }