@ourskyai/astro-api 1.3.3644 → 1.3.3657
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 +2 -2
- package/api.ts +250 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +199 -1
- package/dist/api.js +73 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +199 -1
- package/dist/esm/api.js +73 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @ourskyai/astro-api@1.3.
|
|
1
|
+
## @ourskyai/astro-api@1.3.3657
|
|
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.
|
|
39
|
+
npm install @ourskyai/astro-api@1.3.3657 --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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -73,6 +73,154 @@ export const CalibrationMasterType = {
|
|
|
73
73
|
export type CalibrationMasterType = typeof CalibrationMasterType[keyof typeof CalibrationMasterType];
|
|
74
74
|
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @interface DailyWeatherForecastItem
|
|
80
|
+
*/
|
|
81
|
+
export interface DailyWeatherForecastItem {
|
|
82
|
+
/**
|
|
83
|
+
* Timestamp of the weather data
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof DailyWeatherForecastItem
|
|
86
|
+
*/
|
|
87
|
+
'dt'?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Sunrise time in UNIX timestamp
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof DailyWeatherForecastItem
|
|
92
|
+
*/
|
|
93
|
+
'sunrise'?: number;
|
|
94
|
+
/**
|
|
95
|
+
* Sunset time in UNIX timestamp
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof DailyWeatherForecastItem
|
|
98
|
+
*/
|
|
99
|
+
'sunset'?: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {DailyWeatherForecastItemTemp}
|
|
103
|
+
* @memberof DailyWeatherForecastItem
|
|
104
|
+
*/
|
|
105
|
+
'temp'?: DailyWeatherForecastItemTemp;
|
|
106
|
+
/**
|
|
107
|
+
* Humidity percentage
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof DailyWeatherForecastItem
|
|
110
|
+
*/
|
|
111
|
+
'humidity'?: number;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {Array<DailyWeatherForecastItemWeatherInner>}
|
|
115
|
+
* @memberof DailyWeatherForecastItem
|
|
116
|
+
*/
|
|
117
|
+
'weather'?: Array<DailyWeatherForecastItemWeatherInner>;
|
|
118
|
+
/**
|
|
119
|
+
* Wind speed
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof DailyWeatherForecastItem
|
|
122
|
+
*/
|
|
123
|
+
'speed'?: number;
|
|
124
|
+
/**
|
|
125
|
+
* Wind direction in degrees
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof DailyWeatherForecastItem
|
|
128
|
+
*/
|
|
129
|
+
'deg'?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Cloudiness percentage
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof DailyWeatherForecastItem
|
|
134
|
+
*/
|
|
135
|
+
'clouds'?: number;
|
|
136
|
+
/**
|
|
137
|
+
* Probability of precipitation
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof DailyWeatherForecastItem
|
|
140
|
+
*/
|
|
141
|
+
'pop'?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Rain volume for the last 3 hours
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof DailyWeatherForecastItem
|
|
146
|
+
*/
|
|
147
|
+
'rain'?: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @export
|
|
152
|
+
* @interface DailyWeatherForecastItemTemp
|
|
153
|
+
*/
|
|
154
|
+
export interface DailyWeatherForecastItemTemp {
|
|
155
|
+
/**
|
|
156
|
+
* Day temperature
|
|
157
|
+
* @type {number}
|
|
158
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
159
|
+
*/
|
|
160
|
+
'day'?: number;
|
|
161
|
+
/**
|
|
162
|
+
* Minimum temperature
|
|
163
|
+
* @type {number}
|
|
164
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
165
|
+
*/
|
|
166
|
+
'min'?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Maximum temperature
|
|
169
|
+
* @type {number}
|
|
170
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
171
|
+
*/
|
|
172
|
+
'max'?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Night temperature
|
|
175
|
+
* @type {number}
|
|
176
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
177
|
+
*/
|
|
178
|
+
'night'?: number;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @export
|
|
183
|
+
* @interface DailyWeatherForecastItemWeatherInner
|
|
184
|
+
*/
|
|
185
|
+
export interface DailyWeatherForecastItemWeatherInner {
|
|
186
|
+
/**
|
|
187
|
+
* Weather condition id
|
|
188
|
+
* @type {number}
|
|
189
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
190
|
+
*/
|
|
191
|
+
'id'?: number;
|
|
192
|
+
/**
|
|
193
|
+
* Group of weather parameters
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
196
|
+
*/
|
|
197
|
+
'main'?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Weather condition description
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
202
|
+
*/
|
|
203
|
+
'description'?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Weather icon id
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
208
|
+
*/
|
|
209
|
+
'icon'?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @export
|
|
214
|
+
* @interface DailyWeatherForecastListResponse
|
|
215
|
+
*/
|
|
216
|
+
export interface DailyWeatherForecastListResponse {
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @type {Array<DailyWeatherForecastItem>}
|
|
220
|
+
* @memberof DailyWeatherForecastListResponse
|
|
221
|
+
*/
|
|
222
|
+
'days'?: Array<DailyWeatherForecastItem>;
|
|
223
|
+
}
|
|
76
224
|
/**
|
|
77
225
|
*
|
|
78
226
|
* @export
|
|
@@ -3731,6 +3879,55 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3731
3879
|
|
|
3732
3880
|
|
|
3733
3881
|
|
|
3882
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3883
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3884
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3885
|
+
|
|
3886
|
+
return {
|
|
3887
|
+
url: toPathString(localVarUrlObj),
|
|
3888
|
+
options: localVarRequestOptions,
|
|
3889
|
+
};
|
|
3890
|
+
},
|
|
3891
|
+
/**
|
|
3892
|
+
* Get weather.
|
|
3893
|
+
* @param {number} latitude
|
|
3894
|
+
* @param {number} longitude
|
|
3895
|
+
* @param {*} [options] Override http request option.
|
|
3896
|
+
* @throws {RequiredError}
|
|
3897
|
+
*/
|
|
3898
|
+
v1GetWeather: async (latitude: number, longitude: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3899
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
3900
|
+
assertParamExists('v1GetWeather', 'latitude', latitude)
|
|
3901
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
3902
|
+
assertParamExists('v1GetWeather', 'longitude', longitude)
|
|
3903
|
+
const localVarPath = `/v1/weather`;
|
|
3904
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3905
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3906
|
+
let baseOptions;
|
|
3907
|
+
if (configuration) {
|
|
3908
|
+
baseOptions = configuration.baseOptions;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3912
|
+
const localVarHeaderParameter = {} as any;
|
|
3913
|
+
const localVarQueryParameter = {} as any;
|
|
3914
|
+
|
|
3915
|
+
// authentication Roles required
|
|
3916
|
+
|
|
3917
|
+
// authentication BearerToken required
|
|
3918
|
+
// http bearer authentication required
|
|
3919
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3920
|
+
|
|
3921
|
+
if (latitude !== undefined) {
|
|
3922
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
if (longitude !== undefined) {
|
|
3926
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3734
3931
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3735
3932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3736
3933
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4334,6 +4531,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4334
4531
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetPlatformCredits(options);
|
|
4335
4532
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4336
4533
|
},
|
|
4534
|
+
/**
|
|
4535
|
+
* Get weather.
|
|
4536
|
+
* @param {number} latitude
|
|
4537
|
+
* @param {number} longitude
|
|
4538
|
+
* @param {*} [options] Override http request option.
|
|
4539
|
+
* @throws {RequiredError}
|
|
4540
|
+
*/
|
|
4541
|
+
async v1GetWeather(latitude: number, longitude: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyWeatherForecastListResponse>> {
|
|
4542
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetWeather(latitude, longitude, options);
|
|
4543
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4544
|
+
},
|
|
4337
4545
|
/**
|
|
4338
4546
|
* Match astro project.
|
|
4339
4547
|
* @param {string} targetId
|
|
@@ -4707,6 +4915,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4707
4915
|
v1GetPlatformCredits(options?: AxiosRequestConfig): AxiosPromise<Array<V1PlatformCredit>> {
|
|
4708
4916
|
return localVarFp.v1GetPlatformCredits(options).then((request) => request(axios, basePath));
|
|
4709
4917
|
},
|
|
4918
|
+
/**
|
|
4919
|
+
* Get weather.
|
|
4920
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
4921
|
+
* @param {*} [options] Override http request option.
|
|
4922
|
+
* @throws {RequiredError}
|
|
4923
|
+
*/
|
|
4924
|
+
v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig): AxiosPromise<DailyWeatherForecastListResponse> {
|
|
4925
|
+
return localVarFp.v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(axios, basePath));
|
|
4926
|
+
},
|
|
4710
4927
|
/**
|
|
4711
4928
|
* Match astro project.
|
|
4712
4929
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
|
@@ -5245,6 +5462,27 @@ export interface DefaultApiV1GetOrCreateOpticalTubeRequest {
|
|
|
5245
5462
|
readonly v1GetOrCreateOpticalTubeRequest: V1GetOrCreateOpticalTubeRequest
|
|
5246
5463
|
}
|
|
5247
5464
|
|
|
5465
|
+
/**
|
|
5466
|
+
* Request parameters for v1GetWeather operation in DefaultApi.
|
|
5467
|
+
* @export
|
|
5468
|
+
* @interface DefaultApiV1GetWeatherRequest
|
|
5469
|
+
*/
|
|
5470
|
+
export interface DefaultApiV1GetWeatherRequest {
|
|
5471
|
+
/**
|
|
5472
|
+
*
|
|
5473
|
+
* @type {number}
|
|
5474
|
+
* @memberof DefaultApiV1GetWeather
|
|
5475
|
+
*/
|
|
5476
|
+
readonly latitude: number
|
|
5477
|
+
|
|
5478
|
+
/**
|
|
5479
|
+
*
|
|
5480
|
+
* @type {number}
|
|
5481
|
+
* @memberof DefaultApiV1GetWeather
|
|
5482
|
+
*/
|
|
5483
|
+
readonly longitude: number
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5248
5486
|
/**
|
|
5249
5487
|
* Request parameters for v1MatchAstroProject operation in DefaultApi.
|
|
5250
5488
|
* @export
|
|
@@ -5729,6 +5967,17 @@ export class DefaultApi extends BaseAPI {
|
|
|
5729
5967
|
return DefaultApiFp(this.configuration).v1GetPlatformCredits(options).then((request) => request(this.axios, this.basePath));
|
|
5730
5968
|
}
|
|
5731
5969
|
|
|
5970
|
+
/**
|
|
5971
|
+
* Get weather.
|
|
5972
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
5973
|
+
* @param {*} [options] Override http request option.
|
|
5974
|
+
* @throws {RequiredError}
|
|
5975
|
+
* @memberof DefaultApi
|
|
5976
|
+
*/
|
|
5977
|
+
public v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig) {
|
|
5978
|
+
return DefaultApiFp(this.configuration).v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(this.axios, this.basePath));
|
|
5979
|
+
}
|
|
5980
|
+
|
|
5732
5981
|
/**
|
|
5733
5982
|
* Match astro project.
|
|
5734
5983
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -51,6 +51,154 @@ export declare const CalibrationMasterType: {
|
|
|
51
51
|
readonly BIAS: "BIAS";
|
|
52
52
|
};
|
|
53
53
|
export type CalibrationMasterType = typeof CalibrationMasterType[keyof typeof CalibrationMasterType];
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @export
|
|
57
|
+
* @interface DailyWeatherForecastItem
|
|
58
|
+
*/
|
|
59
|
+
export interface DailyWeatherForecastItem {
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp of the weather data
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DailyWeatherForecastItem
|
|
64
|
+
*/
|
|
65
|
+
'dt'?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Sunrise time in UNIX timestamp
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof DailyWeatherForecastItem
|
|
70
|
+
*/
|
|
71
|
+
'sunrise'?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Sunset time in UNIX timestamp
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof DailyWeatherForecastItem
|
|
76
|
+
*/
|
|
77
|
+
'sunset'?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {DailyWeatherForecastItemTemp}
|
|
81
|
+
* @memberof DailyWeatherForecastItem
|
|
82
|
+
*/
|
|
83
|
+
'temp'?: DailyWeatherForecastItemTemp;
|
|
84
|
+
/**
|
|
85
|
+
* Humidity percentage
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof DailyWeatherForecastItem
|
|
88
|
+
*/
|
|
89
|
+
'humidity'?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<DailyWeatherForecastItemWeatherInner>}
|
|
93
|
+
* @memberof DailyWeatherForecastItem
|
|
94
|
+
*/
|
|
95
|
+
'weather'?: Array<DailyWeatherForecastItemWeatherInner>;
|
|
96
|
+
/**
|
|
97
|
+
* Wind speed
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof DailyWeatherForecastItem
|
|
100
|
+
*/
|
|
101
|
+
'speed'?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Wind direction in degrees
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof DailyWeatherForecastItem
|
|
106
|
+
*/
|
|
107
|
+
'deg'?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Cloudiness percentage
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof DailyWeatherForecastItem
|
|
112
|
+
*/
|
|
113
|
+
'clouds'?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Probability of precipitation
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof DailyWeatherForecastItem
|
|
118
|
+
*/
|
|
119
|
+
'pop'?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Rain volume for the last 3 hours
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof DailyWeatherForecastItem
|
|
124
|
+
*/
|
|
125
|
+
'rain'?: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @export
|
|
130
|
+
* @interface DailyWeatherForecastItemTemp
|
|
131
|
+
*/
|
|
132
|
+
export interface DailyWeatherForecastItemTemp {
|
|
133
|
+
/**
|
|
134
|
+
* Day temperature
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
137
|
+
*/
|
|
138
|
+
'day'?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Minimum temperature
|
|
141
|
+
* @type {number}
|
|
142
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
143
|
+
*/
|
|
144
|
+
'min'?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Maximum temperature
|
|
147
|
+
* @type {number}
|
|
148
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
149
|
+
*/
|
|
150
|
+
'max'?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Night temperature
|
|
153
|
+
* @type {number}
|
|
154
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
155
|
+
*/
|
|
156
|
+
'night'?: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface DailyWeatherForecastItemWeatherInner
|
|
162
|
+
*/
|
|
163
|
+
export interface DailyWeatherForecastItemWeatherInner {
|
|
164
|
+
/**
|
|
165
|
+
* Weather condition id
|
|
166
|
+
* @type {number}
|
|
167
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
168
|
+
*/
|
|
169
|
+
'id'?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Group of weather parameters
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
174
|
+
*/
|
|
175
|
+
'main'?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Weather condition description
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
180
|
+
*/
|
|
181
|
+
'description'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Weather icon id
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
186
|
+
*/
|
|
187
|
+
'icon'?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @export
|
|
192
|
+
* @interface DailyWeatherForecastListResponse
|
|
193
|
+
*/
|
|
194
|
+
export interface DailyWeatherForecastListResponse {
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {Array<DailyWeatherForecastItem>}
|
|
198
|
+
* @memberof DailyWeatherForecastListResponse
|
|
199
|
+
*/
|
|
200
|
+
'days'?: Array<DailyWeatherForecastItem>;
|
|
201
|
+
}
|
|
54
202
|
/**
|
|
55
203
|
*
|
|
56
204
|
* @export
|
|
@@ -2417,6 +2565,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2417
2565
|
* @throws {RequiredError}
|
|
2418
2566
|
*/
|
|
2419
2567
|
v1GetPlatformCredits: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2568
|
+
/**
|
|
2569
|
+
* Get weather.
|
|
2570
|
+
* @param {number} latitude
|
|
2571
|
+
* @param {number} longitude
|
|
2572
|
+
* @param {*} [options] Override http request option.
|
|
2573
|
+
* @throws {RequiredError}
|
|
2574
|
+
*/
|
|
2575
|
+
v1GetWeather: (latitude: number, longitude: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2420
2576
|
/**
|
|
2421
2577
|
* Match astro project.
|
|
2422
2578
|
* @param {string} targetId
|
|
@@ -2713,6 +2869,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2713
2869
|
* @throws {RequiredError}
|
|
2714
2870
|
*/
|
|
2715
2871
|
v1GetPlatformCredits(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1PlatformCredit>>>;
|
|
2872
|
+
/**
|
|
2873
|
+
* Get weather.
|
|
2874
|
+
* @param {number} latitude
|
|
2875
|
+
* @param {number} longitude
|
|
2876
|
+
* @param {*} [options] Override http request option.
|
|
2877
|
+
* @throws {RequiredError}
|
|
2878
|
+
*/
|
|
2879
|
+
v1GetWeather(latitude: number, longitude: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyWeatherForecastListResponse>>;
|
|
2716
2880
|
/**
|
|
2717
2881
|
* Match astro project.
|
|
2718
2882
|
* @param {string} targetId
|
|
@@ -2997,6 +3161,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2997
3161
|
* @throws {RequiredError}
|
|
2998
3162
|
*/
|
|
2999
3163
|
v1GetPlatformCredits(options?: AxiosRequestConfig): AxiosPromise<Array<V1PlatformCredit>>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Get weather.
|
|
3166
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
3167
|
+
* @param {*} [options] Override http request option.
|
|
3168
|
+
* @throws {RequiredError}
|
|
3169
|
+
*/
|
|
3170
|
+
v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig): AxiosPromise<DailyWeatherForecastListResponse>;
|
|
3000
3171
|
/**
|
|
3001
3172
|
* Match astro project.
|
|
3002
3173
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
|
@@ -3482,6 +3653,25 @@ export interface DefaultApiV1GetOrCreateOpticalTubeRequest {
|
|
|
3482
3653
|
*/
|
|
3483
3654
|
readonly v1GetOrCreateOpticalTubeRequest: V1GetOrCreateOpticalTubeRequest;
|
|
3484
3655
|
}
|
|
3656
|
+
/**
|
|
3657
|
+
* Request parameters for v1GetWeather operation in DefaultApi.
|
|
3658
|
+
* @export
|
|
3659
|
+
* @interface DefaultApiV1GetWeatherRequest
|
|
3660
|
+
*/
|
|
3661
|
+
export interface DefaultApiV1GetWeatherRequest {
|
|
3662
|
+
/**
|
|
3663
|
+
*
|
|
3664
|
+
* @type {number}
|
|
3665
|
+
* @memberof DefaultApiV1GetWeather
|
|
3666
|
+
*/
|
|
3667
|
+
readonly latitude: number;
|
|
3668
|
+
/**
|
|
3669
|
+
*
|
|
3670
|
+
* @type {number}
|
|
3671
|
+
* @memberof DefaultApiV1GetWeather
|
|
3672
|
+
*/
|
|
3673
|
+
readonly longitude: number;
|
|
3674
|
+
}
|
|
3485
3675
|
/**
|
|
3486
3676
|
* Request parameters for v1MatchAstroProject operation in DefaultApi.
|
|
3487
3677
|
* @export
|
|
@@ -3852,6 +4042,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3852
4042
|
* @memberof DefaultApi
|
|
3853
4043
|
*/
|
|
3854
4044
|
v1GetPlatformCredits(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<V1PlatformCredit[], any>>;
|
|
4045
|
+
/**
|
|
4046
|
+
* Get weather.
|
|
4047
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
* @memberof DefaultApi
|
|
4051
|
+
*/
|
|
4052
|
+
v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DailyWeatherForecastListResponse, any>>;
|
|
3855
4053
|
/**
|
|
3856
4054
|
* Match astro project.
|
|
3857
4055
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* OurSky Astro
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.3.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1380,6 +1380,46 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1380
1380
|
options: localVarRequestOptions,
|
|
1381
1381
|
};
|
|
1382
1382
|
}),
|
|
1383
|
+
/**
|
|
1384
|
+
* Get weather.
|
|
1385
|
+
* @param {number} latitude
|
|
1386
|
+
* @param {number} longitude
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
v1GetWeather: (latitude, longitude, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
1392
|
+
(0, common_1.assertParamExists)('v1GetWeather', 'latitude', latitude);
|
|
1393
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
1394
|
+
(0, common_1.assertParamExists)('v1GetWeather', 'longitude', longitude);
|
|
1395
|
+
const localVarPath = `/v1/weather`;
|
|
1396
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1397
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1398
|
+
let baseOptions;
|
|
1399
|
+
if (configuration) {
|
|
1400
|
+
baseOptions = configuration.baseOptions;
|
|
1401
|
+
}
|
|
1402
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1403
|
+
const localVarHeaderParameter = {};
|
|
1404
|
+
const localVarQueryParameter = {};
|
|
1405
|
+
// authentication Roles required
|
|
1406
|
+
// authentication BearerToken required
|
|
1407
|
+
// http bearer authentication required
|
|
1408
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1409
|
+
if (latitude !== undefined) {
|
|
1410
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
1411
|
+
}
|
|
1412
|
+
if (longitude !== undefined) {
|
|
1413
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
1414
|
+
}
|
|
1415
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1418
|
+
return {
|
|
1419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1420
|
+
options: localVarRequestOptions,
|
|
1421
|
+
};
|
|
1422
|
+
}),
|
|
1383
1423
|
/**
|
|
1384
1424
|
* Match astro project.
|
|
1385
1425
|
* @param {string} targetId
|
|
@@ -2000,6 +2040,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
2000
2040
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2001
2041
|
});
|
|
2002
2042
|
},
|
|
2043
|
+
/**
|
|
2044
|
+
* Get weather.
|
|
2045
|
+
* @param {number} latitude
|
|
2046
|
+
* @param {number} longitude
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
*/
|
|
2050
|
+
v1GetWeather(latitude, longitude, options) {
|
|
2051
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2052
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetWeather(latitude, longitude, options);
|
|
2053
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2054
|
+
});
|
|
2055
|
+
},
|
|
2003
2056
|
/**
|
|
2004
2057
|
* Match astro project.
|
|
2005
2058
|
* @param {string} targetId
|
|
@@ -2383,6 +2436,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2383
2436
|
v1GetPlatformCredits(options) {
|
|
2384
2437
|
return localVarFp.v1GetPlatformCredits(options).then((request) => request(axios, basePath));
|
|
2385
2438
|
},
|
|
2439
|
+
/**
|
|
2440
|
+
* Get weather.
|
|
2441
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
2442
|
+
* @param {*} [options] Override http request option.
|
|
2443
|
+
* @throws {RequiredError}
|
|
2444
|
+
*/
|
|
2445
|
+
v1GetWeather(requestParameters, options) {
|
|
2446
|
+
return localVarFp.v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(axios, basePath));
|
|
2447
|
+
},
|
|
2386
2448
|
/**
|
|
2387
2449
|
* Match astro project.
|
|
2388
2450
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
|
@@ -2782,6 +2844,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2782
2844
|
v1GetPlatformCredits(options) {
|
|
2783
2845
|
return (0, exports.DefaultApiFp)(this.configuration).v1GetPlatformCredits(options).then((request) => request(this.axios, this.basePath));
|
|
2784
2846
|
}
|
|
2847
|
+
/**
|
|
2848
|
+
* Get weather.
|
|
2849
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
2850
|
+
* @param {*} [options] Override http request option.
|
|
2851
|
+
* @throws {RequiredError}
|
|
2852
|
+
* @memberof DefaultApi
|
|
2853
|
+
*/
|
|
2854
|
+
v1GetWeather(requestParameters, options) {
|
|
2855
|
+
return (0, exports.DefaultApiFp)(this.configuration).v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(this.axios, this.basePath));
|
|
2856
|
+
}
|
|
2785
2857
|
/**
|
|
2786
2858
|
* Match astro project.
|
|
2787
2859
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* OurSky Astro
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.3.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* OurSky Astro
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.3.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* OurSky Astro
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.3.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -51,6 +51,154 @@ export declare const CalibrationMasterType: {
|
|
|
51
51
|
readonly BIAS: "BIAS";
|
|
52
52
|
};
|
|
53
53
|
export type CalibrationMasterType = typeof CalibrationMasterType[keyof typeof CalibrationMasterType];
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @export
|
|
57
|
+
* @interface DailyWeatherForecastItem
|
|
58
|
+
*/
|
|
59
|
+
export interface DailyWeatherForecastItem {
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp of the weather data
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DailyWeatherForecastItem
|
|
64
|
+
*/
|
|
65
|
+
'dt'?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Sunrise time in UNIX timestamp
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof DailyWeatherForecastItem
|
|
70
|
+
*/
|
|
71
|
+
'sunrise'?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Sunset time in UNIX timestamp
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof DailyWeatherForecastItem
|
|
76
|
+
*/
|
|
77
|
+
'sunset'?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {DailyWeatherForecastItemTemp}
|
|
81
|
+
* @memberof DailyWeatherForecastItem
|
|
82
|
+
*/
|
|
83
|
+
'temp'?: DailyWeatherForecastItemTemp;
|
|
84
|
+
/**
|
|
85
|
+
* Humidity percentage
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof DailyWeatherForecastItem
|
|
88
|
+
*/
|
|
89
|
+
'humidity'?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<DailyWeatherForecastItemWeatherInner>}
|
|
93
|
+
* @memberof DailyWeatherForecastItem
|
|
94
|
+
*/
|
|
95
|
+
'weather'?: Array<DailyWeatherForecastItemWeatherInner>;
|
|
96
|
+
/**
|
|
97
|
+
* Wind speed
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof DailyWeatherForecastItem
|
|
100
|
+
*/
|
|
101
|
+
'speed'?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Wind direction in degrees
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof DailyWeatherForecastItem
|
|
106
|
+
*/
|
|
107
|
+
'deg'?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Cloudiness percentage
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof DailyWeatherForecastItem
|
|
112
|
+
*/
|
|
113
|
+
'clouds'?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Probability of precipitation
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof DailyWeatherForecastItem
|
|
118
|
+
*/
|
|
119
|
+
'pop'?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Rain volume for the last 3 hours
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof DailyWeatherForecastItem
|
|
124
|
+
*/
|
|
125
|
+
'rain'?: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @export
|
|
130
|
+
* @interface DailyWeatherForecastItemTemp
|
|
131
|
+
*/
|
|
132
|
+
export interface DailyWeatherForecastItemTemp {
|
|
133
|
+
/**
|
|
134
|
+
* Day temperature
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
137
|
+
*/
|
|
138
|
+
'day'?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Minimum temperature
|
|
141
|
+
* @type {number}
|
|
142
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
143
|
+
*/
|
|
144
|
+
'min'?: number;
|
|
145
|
+
/**
|
|
146
|
+
* Maximum temperature
|
|
147
|
+
* @type {number}
|
|
148
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
149
|
+
*/
|
|
150
|
+
'max'?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Night temperature
|
|
153
|
+
* @type {number}
|
|
154
|
+
* @memberof DailyWeatherForecastItemTemp
|
|
155
|
+
*/
|
|
156
|
+
'night'?: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @interface DailyWeatherForecastItemWeatherInner
|
|
162
|
+
*/
|
|
163
|
+
export interface DailyWeatherForecastItemWeatherInner {
|
|
164
|
+
/**
|
|
165
|
+
* Weather condition id
|
|
166
|
+
* @type {number}
|
|
167
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
168
|
+
*/
|
|
169
|
+
'id'?: number;
|
|
170
|
+
/**
|
|
171
|
+
* Group of weather parameters
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
174
|
+
*/
|
|
175
|
+
'main'?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Weather condition description
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
180
|
+
*/
|
|
181
|
+
'description'?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Weather icon id
|
|
184
|
+
* @type {string}
|
|
185
|
+
* @memberof DailyWeatherForecastItemWeatherInner
|
|
186
|
+
*/
|
|
187
|
+
'icon'?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @export
|
|
192
|
+
* @interface DailyWeatherForecastListResponse
|
|
193
|
+
*/
|
|
194
|
+
export interface DailyWeatherForecastListResponse {
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {Array<DailyWeatherForecastItem>}
|
|
198
|
+
* @memberof DailyWeatherForecastListResponse
|
|
199
|
+
*/
|
|
200
|
+
'days'?: Array<DailyWeatherForecastItem>;
|
|
201
|
+
}
|
|
54
202
|
/**
|
|
55
203
|
*
|
|
56
204
|
* @export
|
|
@@ -2417,6 +2565,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2417
2565
|
* @throws {RequiredError}
|
|
2418
2566
|
*/
|
|
2419
2567
|
v1GetPlatformCredits: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2568
|
+
/**
|
|
2569
|
+
* Get weather.
|
|
2570
|
+
* @param {number} latitude
|
|
2571
|
+
* @param {number} longitude
|
|
2572
|
+
* @param {*} [options] Override http request option.
|
|
2573
|
+
* @throws {RequiredError}
|
|
2574
|
+
*/
|
|
2575
|
+
v1GetWeather: (latitude: number, longitude: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2420
2576
|
/**
|
|
2421
2577
|
* Match astro project.
|
|
2422
2578
|
* @param {string} targetId
|
|
@@ -2713,6 +2869,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2713
2869
|
* @throws {RequiredError}
|
|
2714
2870
|
*/
|
|
2715
2871
|
v1GetPlatformCredits(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1PlatformCredit>>>;
|
|
2872
|
+
/**
|
|
2873
|
+
* Get weather.
|
|
2874
|
+
* @param {number} latitude
|
|
2875
|
+
* @param {number} longitude
|
|
2876
|
+
* @param {*} [options] Override http request option.
|
|
2877
|
+
* @throws {RequiredError}
|
|
2878
|
+
*/
|
|
2879
|
+
v1GetWeather(latitude: number, longitude: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DailyWeatherForecastListResponse>>;
|
|
2716
2880
|
/**
|
|
2717
2881
|
* Match astro project.
|
|
2718
2882
|
* @param {string} targetId
|
|
@@ -2997,6 +3161,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2997
3161
|
* @throws {RequiredError}
|
|
2998
3162
|
*/
|
|
2999
3163
|
v1GetPlatformCredits(options?: AxiosRequestConfig): AxiosPromise<Array<V1PlatformCredit>>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Get weather.
|
|
3166
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
3167
|
+
* @param {*} [options] Override http request option.
|
|
3168
|
+
* @throws {RequiredError}
|
|
3169
|
+
*/
|
|
3170
|
+
v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig): AxiosPromise<DailyWeatherForecastListResponse>;
|
|
3000
3171
|
/**
|
|
3001
3172
|
* Match astro project.
|
|
3002
3173
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
|
@@ -3482,6 +3653,25 @@ export interface DefaultApiV1GetOrCreateOpticalTubeRequest {
|
|
|
3482
3653
|
*/
|
|
3483
3654
|
readonly v1GetOrCreateOpticalTubeRequest: V1GetOrCreateOpticalTubeRequest;
|
|
3484
3655
|
}
|
|
3656
|
+
/**
|
|
3657
|
+
* Request parameters for v1GetWeather operation in DefaultApi.
|
|
3658
|
+
* @export
|
|
3659
|
+
* @interface DefaultApiV1GetWeatherRequest
|
|
3660
|
+
*/
|
|
3661
|
+
export interface DefaultApiV1GetWeatherRequest {
|
|
3662
|
+
/**
|
|
3663
|
+
*
|
|
3664
|
+
* @type {number}
|
|
3665
|
+
* @memberof DefaultApiV1GetWeather
|
|
3666
|
+
*/
|
|
3667
|
+
readonly latitude: number;
|
|
3668
|
+
/**
|
|
3669
|
+
*
|
|
3670
|
+
* @type {number}
|
|
3671
|
+
* @memberof DefaultApiV1GetWeather
|
|
3672
|
+
*/
|
|
3673
|
+
readonly longitude: number;
|
|
3674
|
+
}
|
|
3485
3675
|
/**
|
|
3486
3676
|
* Request parameters for v1MatchAstroProject operation in DefaultApi.
|
|
3487
3677
|
* @export
|
|
@@ -3852,6 +4042,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3852
4042
|
* @memberof DefaultApi
|
|
3853
4043
|
*/
|
|
3854
4044
|
v1GetPlatformCredits(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<V1PlatformCredit[], any>>;
|
|
4045
|
+
/**
|
|
4046
|
+
* Get weather.
|
|
4047
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
* @memberof DefaultApi
|
|
4051
|
+
*/
|
|
4052
|
+
v1GetWeather(requestParameters: DefaultApiV1GetWeatherRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DailyWeatherForecastListResponse, any>>;
|
|
3855
4053
|
/**
|
|
3856
4054
|
* Match astro project.
|
|
3857
4055
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
package/dist/esm/api.js
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1377,6 +1377,46 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1377
1377
|
options: localVarRequestOptions,
|
|
1378
1378
|
};
|
|
1379
1379
|
}),
|
|
1380
|
+
/**
|
|
1381
|
+
* Get weather.
|
|
1382
|
+
* @param {number} latitude
|
|
1383
|
+
* @param {number} longitude
|
|
1384
|
+
* @param {*} [options] Override http request option.
|
|
1385
|
+
* @throws {RequiredError}
|
|
1386
|
+
*/
|
|
1387
|
+
v1GetWeather: (latitude, longitude, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1388
|
+
// verify required parameter 'latitude' is not null or undefined
|
|
1389
|
+
assertParamExists('v1GetWeather', 'latitude', latitude);
|
|
1390
|
+
// verify required parameter 'longitude' is not null or undefined
|
|
1391
|
+
assertParamExists('v1GetWeather', 'longitude', longitude);
|
|
1392
|
+
const localVarPath = `/v1/weather`;
|
|
1393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1395
|
+
let baseOptions;
|
|
1396
|
+
if (configuration) {
|
|
1397
|
+
baseOptions = configuration.baseOptions;
|
|
1398
|
+
}
|
|
1399
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1400
|
+
const localVarHeaderParameter = {};
|
|
1401
|
+
const localVarQueryParameter = {};
|
|
1402
|
+
// authentication Roles required
|
|
1403
|
+
// authentication BearerToken required
|
|
1404
|
+
// http bearer authentication required
|
|
1405
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1406
|
+
if (latitude !== undefined) {
|
|
1407
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
1408
|
+
}
|
|
1409
|
+
if (longitude !== undefined) {
|
|
1410
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
1411
|
+
}
|
|
1412
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1413
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1414
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1415
|
+
return {
|
|
1416
|
+
url: toPathString(localVarUrlObj),
|
|
1417
|
+
options: localVarRequestOptions,
|
|
1418
|
+
};
|
|
1419
|
+
}),
|
|
1380
1420
|
/**
|
|
1381
1421
|
* Match astro project.
|
|
1382
1422
|
* @param {string} targetId
|
|
@@ -1996,6 +2036,19 @@ export const DefaultApiFp = function (configuration) {
|
|
|
1996
2036
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1997
2037
|
});
|
|
1998
2038
|
},
|
|
2039
|
+
/**
|
|
2040
|
+
* Get weather.
|
|
2041
|
+
* @param {number} latitude
|
|
2042
|
+
* @param {number} longitude
|
|
2043
|
+
* @param {*} [options] Override http request option.
|
|
2044
|
+
* @throws {RequiredError}
|
|
2045
|
+
*/
|
|
2046
|
+
v1GetWeather(latitude, longitude, options) {
|
|
2047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetWeather(latitude, longitude, options);
|
|
2049
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2050
|
+
});
|
|
2051
|
+
},
|
|
1999
2052
|
/**
|
|
2000
2053
|
* Match astro project.
|
|
2001
2054
|
* @param {string} targetId
|
|
@@ -2378,6 +2431,15 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2378
2431
|
v1GetPlatformCredits(options) {
|
|
2379
2432
|
return localVarFp.v1GetPlatformCredits(options).then((request) => request(axios, basePath));
|
|
2380
2433
|
},
|
|
2434
|
+
/**
|
|
2435
|
+
* Get weather.
|
|
2436
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
*/
|
|
2440
|
+
v1GetWeather(requestParameters, options) {
|
|
2441
|
+
return localVarFp.v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(axios, basePath));
|
|
2442
|
+
},
|
|
2381
2443
|
/**
|
|
2382
2444
|
* Match astro project.
|
|
2383
2445
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
|
@@ -2776,6 +2838,16 @@ export class DefaultApi extends BaseAPI {
|
|
|
2776
2838
|
v1GetPlatformCredits(options) {
|
|
2777
2839
|
return DefaultApiFp(this.configuration).v1GetPlatformCredits(options).then((request) => request(this.axios, this.basePath));
|
|
2778
2840
|
}
|
|
2841
|
+
/**
|
|
2842
|
+
* Get weather.
|
|
2843
|
+
* @param {DefaultApiV1GetWeatherRequest} requestParameters Request parameters.
|
|
2844
|
+
* @param {*} [options] Override http request option.
|
|
2845
|
+
* @throws {RequiredError}
|
|
2846
|
+
* @memberof DefaultApi
|
|
2847
|
+
*/
|
|
2848
|
+
v1GetWeather(requestParameters, options) {
|
|
2849
|
+
return DefaultApiFp(this.configuration).v1GetWeather(requestParameters.latitude, requestParameters.longitude, options).then((request) => request(this.axios, this.basePath));
|
|
2850
|
+
}
|
|
2779
2851
|
/**
|
|
2780
2852
|
* Match astro project.
|
|
2781
2853
|
* @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OurSky Astro
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.3.
|
|
5
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* OurSky Astro
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.3.
|
|
8
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.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.
|
|
7
|
+
* The version of the OpenAPI document: 1.3.3657
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|