@mtnmanager/sdk 1.8.3 → 1.9.0
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 +5 -3
- package/dist/apis/MtnManagerApi.d.ts +28 -34
- package/dist/apis/MtnManagerApi.js +0 -6
- package/dist/esm/apis/MtnManagerApi.d.ts +28 -34
- package/dist/esm/apis/MtnManagerApi.js +0 -6
- package/dist/esm/models/Amenity.d.ts +8 -0
- package/dist/esm/models/Amenity.js +5 -0
- package/dist/esm/models/AmenityStatus.d.ts +27 -0
- package/dist/esm/models/{SummerTrailType.js → AmenityStatus.js} +14 -13
- package/dist/esm/models/CurrentWeather.d.ts +1 -1
- package/dist/esm/models/DailyForecast.d.ts +1 -1
- package/dist/esm/models/FullReport.d.ts +2 -18
- package/dist/esm/models/FullReport.js +0 -6
- package/dist/esm/models/HourlyForecast.d.ts +1 -1
- package/dist/esm/models/Language.d.ts +32 -0
- package/dist/esm/models/Language.js +50 -0
- package/dist/esm/models/Lift.d.ts +1 -0
- package/dist/esm/models/OverviewRuns.d.ts +1 -1
- package/dist/esm/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/esm/models/ResortInfo.d.ts +8 -0
- package/dist/esm/models/ResortInfo.js +5 -0
- package/dist/esm/models/Run.d.ts +19 -2
- package/dist/esm/models/Run.js +4 -0
- package/dist/esm/models/SummerTrail.d.ts +14 -5
- package/dist/esm/models/SummerTrail.js +7 -4
- package/dist/esm/models/SummerTrailActivity.d.ts +32 -0
- package/dist/esm/models/SummerTrailActivity.js +50 -0
- package/dist/esm/models/SummerTrailDifficultyType.d.ts +27 -0
- package/dist/esm/models/SummerTrailDifficultyType.js +45 -0
- package/dist/esm/models/TerrainPark.d.ts +19 -2
- package/dist/esm/models/TerrainPark.js +4 -0
- package/dist/esm/models/TerrainParkFeature.d.ts +2 -1
- package/dist/esm/models/index.d.ts +4 -2
- package/dist/esm/models/index.js +4 -2
- package/dist/models/Amenity.d.ts +8 -0
- package/dist/models/Amenity.js +5 -0
- package/dist/models/AmenityStatus.d.ts +27 -0
- package/dist/models/AmenityStatus.js +53 -0
- package/dist/models/CurrentWeather.d.ts +1 -1
- package/dist/models/DailyForecast.d.ts +1 -1
- package/dist/models/FullReport.d.ts +2 -18
- package/dist/models/FullReport.js +0 -6
- package/dist/models/HourlyForecast.d.ts +1 -1
- package/dist/models/Language.d.ts +32 -0
- package/dist/models/Language.js +58 -0
- package/dist/models/Lift.d.ts +1 -0
- package/dist/models/OverviewRuns.d.ts +1 -1
- package/dist/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/models/ResortInfo.d.ts +8 -0
- package/dist/models/ResortInfo.js +5 -0
- package/dist/models/Run.d.ts +19 -2
- package/dist/models/Run.js +4 -0
- package/dist/models/SummerTrail.d.ts +14 -5
- package/dist/models/SummerTrail.js +7 -4
- package/dist/models/SummerTrailActivity.d.ts +32 -0
- package/dist/models/SummerTrailActivity.js +58 -0
- package/dist/models/SummerTrailDifficultyType.d.ts +27 -0
- package/dist/models/SummerTrailDifficultyType.js +53 -0
- package/dist/models/TerrainPark.d.ts +19 -2
- package/dist/models/TerrainPark.js +4 -0
- package/dist/models/TerrainParkFeature.d.ts +2 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/dist/esm/models/SummerTrailType.d.ts +0 -26
- package/dist/esm/models/WebcamHistoryQuery.d.ts +0 -38
- package/dist/esm/models/WebcamHistoryQuery.js +0 -43
- package/dist/models/SummerTrailType.d.ts +0 -26
- package/dist/models/SummerTrailType.js +0 -52
- package/dist/models/WebcamHistoryQuery.d.ts +0 -38
- package/dist/models/WebcamHistoryQuery.js +0 -50
|
@@ -62,8 +62,6 @@ export interface GetWeatherRequest {
|
|
|
62
62
|
}
|
|
63
63
|
export interface GetWebcamHistoryRequest {
|
|
64
64
|
uuid: string;
|
|
65
|
-
from?: string | null;
|
|
66
|
-
to?: string | null;
|
|
67
65
|
acceptLanguage?: string;
|
|
68
66
|
}
|
|
69
67
|
export interface GetWebcamsRequest {
|
|
@@ -78,7 +76,7 @@ export interface GetWebcamsRequest {
|
|
|
78
76
|
export interface MtnManagerApiInterface {
|
|
79
77
|
/**
|
|
80
78
|
* Creates request options for getAmenities without sending the request
|
|
81
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
79
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
82
80
|
* @throws {RequiredError}
|
|
83
81
|
* @memberof MtnManagerApiInterface
|
|
84
82
|
*/
|
|
@@ -86,7 +84,7 @@ export interface MtnManagerApiInterface {
|
|
|
86
84
|
/**
|
|
87
85
|
*
|
|
88
86
|
* @summary Get amenities
|
|
89
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
87
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
90
88
|
* @param {*} [options] Override http request option.
|
|
91
89
|
* @throws {RequiredError}
|
|
92
90
|
* @memberof MtnManagerApiInterface
|
|
@@ -98,7 +96,7 @@ export interface MtnManagerApiInterface {
|
|
|
98
96
|
getAmenities(requestParameters: GetAmenitiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Amenity>>;
|
|
99
97
|
/**
|
|
100
98
|
* Creates request options for getFullReport without sending the request
|
|
101
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
99
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
102
100
|
* @throws {RequiredError}
|
|
103
101
|
* @memberof MtnManagerApiInterface
|
|
104
102
|
*/
|
|
@@ -106,7 +104,7 @@ export interface MtnManagerApiInterface {
|
|
|
106
104
|
/**
|
|
107
105
|
*
|
|
108
106
|
* @summary Get full report
|
|
109
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
107
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
110
108
|
* @param {*} [options] Override http request option.
|
|
111
109
|
* @throws {RequiredError}
|
|
112
110
|
* @memberof MtnManagerApiInterface
|
|
@@ -118,7 +116,7 @@ export interface MtnManagerApiInterface {
|
|
|
118
116
|
getFullReport(requestParameters: GetFullReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FullReport>;
|
|
119
117
|
/**
|
|
120
118
|
* Creates request options for getHours without sending the request
|
|
121
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
119
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
122
120
|
* @throws {RequiredError}
|
|
123
121
|
* @memberof MtnManagerApiInterface
|
|
124
122
|
*/
|
|
@@ -126,7 +124,7 @@ export interface MtnManagerApiInterface {
|
|
|
126
124
|
/**
|
|
127
125
|
*
|
|
128
126
|
* @summary Get operating hours
|
|
129
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
127
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
130
128
|
* @param {*} [options] Override http request option.
|
|
131
129
|
* @throws {RequiredError}
|
|
132
130
|
* @memberof MtnManagerApiInterface
|
|
@@ -138,7 +136,7 @@ export interface MtnManagerApiInterface {
|
|
|
138
136
|
getHours(requestParameters: GetHoursRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OperatingHours>;
|
|
139
137
|
/**
|
|
140
138
|
* Creates request options for getLifts without sending the request
|
|
141
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
139
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
142
140
|
* @throws {RequiredError}
|
|
143
141
|
* @memberof MtnManagerApiInterface
|
|
144
142
|
*/
|
|
@@ -146,7 +144,7 @@ export interface MtnManagerApiInterface {
|
|
|
146
144
|
/**
|
|
147
145
|
*
|
|
148
146
|
* @summary Get lifts
|
|
149
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
147
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
150
148
|
* @param {*} [options] Override http request option.
|
|
151
149
|
* @throws {RequiredError}
|
|
152
150
|
* @memberof MtnManagerApiInterface
|
|
@@ -158,7 +156,7 @@ export interface MtnManagerApiInterface {
|
|
|
158
156
|
getLifts(requestParameters: GetLiftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Lift>>;
|
|
159
157
|
/**
|
|
160
158
|
* Creates request options for getOverview without sending the request
|
|
161
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
159
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
162
160
|
* @throws {RequiredError}
|
|
163
161
|
* @memberof MtnManagerApiInterface
|
|
164
162
|
*/
|
|
@@ -166,7 +164,7 @@ export interface MtnManagerApiInterface {
|
|
|
166
164
|
/**
|
|
167
165
|
*
|
|
168
166
|
* @summary Get overview
|
|
169
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
167
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
170
168
|
* @param {*} [options] Override http request option.
|
|
171
169
|
* @throws {RequiredError}
|
|
172
170
|
* @memberof MtnManagerApiInterface
|
|
@@ -178,7 +176,7 @@ export interface MtnManagerApiInterface {
|
|
|
178
176
|
getOverview(requestParameters: GetOverviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Overview>;
|
|
179
177
|
/**
|
|
180
178
|
* Creates request options for getParkingLots without sending the request
|
|
181
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
179
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
182
180
|
* @throws {RequiredError}
|
|
183
181
|
* @memberof MtnManagerApiInterface
|
|
184
182
|
*/
|
|
@@ -186,7 +184,7 @@ export interface MtnManagerApiInterface {
|
|
|
186
184
|
/**
|
|
187
185
|
*
|
|
188
186
|
* @summary Get parking lots
|
|
189
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
187
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
190
188
|
* @param {*} [options] Override http request option.
|
|
191
189
|
* @throws {RequiredError}
|
|
192
190
|
* @memberof MtnManagerApiInterface
|
|
@@ -198,7 +196,7 @@ export interface MtnManagerApiInterface {
|
|
|
198
196
|
getParkingLots(requestParameters: GetParkingLotsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ParkingLot>>;
|
|
199
197
|
/**
|
|
200
198
|
* Creates request options for getRuns without sending the request
|
|
201
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
199
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
202
200
|
* @throws {RequiredError}
|
|
203
201
|
* @memberof MtnManagerApiInterface
|
|
204
202
|
*/
|
|
@@ -206,7 +204,7 @@ export interface MtnManagerApiInterface {
|
|
|
206
204
|
/**
|
|
207
205
|
*
|
|
208
206
|
* @summary Get runs
|
|
209
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
207
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
210
208
|
* @param {*} [options] Override http request option.
|
|
211
209
|
* @throws {RequiredError}
|
|
212
210
|
* @memberof MtnManagerApiInterface
|
|
@@ -218,7 +216,7 @@ export interface MtnManagerApiInterface {
|
|
|
218
216
|
getRuns(requestParameters: GetRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Run>>;
|
|
219
217
|
/**
|
|
220
218
|
* Creates request options for getSnow without sending the request
|
|
221
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
219
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
222
220
|
* @throws {RequiredError}
|
|
223
221
|
* @memberof MtnManagerApiInterface
|
|
224
222
|
*/
|
|
@@ -226,7 +224,7 @@ export interface MtnManagerApiInterface {
|
|
|
226
224
|
/**
|
|
227
225
|
*
|
|
228
226
|
* @summary Get snow conditions
|
|
229
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
227
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
230
228
|
* @param {*} [options] Override http request option.
|
|
231
229
|
* @throws {RequiredError}
|
|
232
230
|
* @memberof MtnManagerApiInterface
|
|
@@ -238,7 +236,7 @@ export interface MtnManagerApiInterface {
|
|
|
238
236
|
getSnow(requestParameters: GetSnowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SnowReport>>;
|
|
239
237
|
/**
|
|
240
238
|
* Creates request options for getSummerTrails without sending the request
|
|
241
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
239
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
242
240
|
* @throws {RequiredError}
|
|
243
241
|
* @memberof MtnManagerApiInterface
|
|
244
242
|
*/
|
|
@@ -246,7 +244,7 @@ export interface MtnManagerApiInterface {
|
|
|
246
244
|
/**
|
|
247
245
|
*
|
|
248
246
|
* @summary Get summer trails
|
|
249
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
247
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
250
248
|
* @param {*} [options] Override http request option.
|
|
251
249
|
* @throws {RequiredError}
|
|
252
250
|
* @memberof MtnManagerApiInterface
|
|
@@ -258,7 +256,7 @@ export interface MtnManagerApiInterface {
|
|
|
258
256
|
getSummerTrails(requestParameters: GetSummerTrailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SummerTrail>>;
|
|
259
257
|
/**
|
|
260
258
|
* Creates request options for getTerrainParks without sending the request
|
|
261
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
259
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
262
260
|
* @throws {RequiredError}
|
|
263
261
|
* @memberof MtnManagerApiInterface
|
|
264
262
|
*/
|
|
@@ -266,7 +264,7 @@ export interface MtnManagerApiInterface {
|
|
|
266
264
|
/**
|
|
267
265
|
*
|
|
268
266
|
* @summary Get terrain parks
|
|
269
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
267
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
270
268
|
* @param {*} [options] Override http request option.
|
|
271
269
|
* @throws {RequiredError}
|
|
272
270
|
* @memberof MtnManagerApiInterface
|
|
@@ -278,7 +276,7 @@ export interface MtnManagerApiInterface {
|
|
|
278
276
|
getTerrainParks(requestParameters: GetTerrainParksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TerrainPark>>;
|
|
279
277
|
/**
|
|
280
278
|
* Creates request options for getTrailMaps without sending the request
|
|
281
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
279
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
282
280
|
* @throws {RequiredError}
|
|
283
281
|
* @memberof MtnManagerApiInterface
|
|
284
282
|
*/
|
|
@@ -286,7 +284,7 @@ export interface MtnManagerApiInterface {
|
|
|
286
284
|
/**
|
|
287
285
|
*
|
|
288
286
|
* @summary Get trail maps
|
|
289
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
287
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
290
288
|
* @param {*} [options] Override http request option.
|
|
291
289
|
* @throws {RequiredError}
|
|
292
290
|
* @memberof MtnManagerApiInterface
|
|
@@ -298,7 +296,7 @@ export interface MtnManagerApiInterface {
|
|
|
298
296
|
getTrailMaps(requestParameters: GetTrailMapsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TrailMapSummary>>;
|
|
299
297
|
/**
|
|
300
298
|
* Creates request options for getWeather without sending the request
|
|
301
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
299
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
302
300
|
* @throws {RequiredError}
|
|
303
301
|
* @memberof MtnManagerApiInterface
|
|
304
302
|
*/
|
|
@@ -306,7 +304,7 @@ export interface MtnManagerApiInterface {
|
|
|
306
304
|
/**
|
|
307
305
|
*
|
|
308
306
|
* @summary Get weather
|
|
309
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
307
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
310
308
|
* @param {*} [options] Override http request option.
|
|
311
309
|
* @throws {RequiredError}
|
|
312
310
|
* @memberof MtnManagerApiInterface
|
|
@@ -319,9 +317,7 @@ export interface MtnManagerApiInterface {
|
|
|
319
317
|
/**
|
|
320
318
|
* Creates request options for getWebcamHistory without sending the request
|
|
321
319
|
* @param {string} uuid Resource UUID
|
|
322
|
-
* @param {string} [
|
|
323
|
-
* @param {string} [to] Inclusive upper bound on `captured_at` (RFC 3339).
|
|
324
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
320
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
325
321
|
* @throws {RequiredError}
|
|
326
322
|
* @memberof MtnManagerApiInterface
|
|
327
323
|
*/
|
|
@@ -330,9 +326,7 @@ export interface MtnManagerApiInterface {
|
|
|
330
326
|
*
|
|
331
327
|
* @summary Get webcam history
|
|
332
328
|
* @param {string} uuid Resource UUID
|
|
333
|
-
* @param {string} [
|
|
334
|
-
* @param {string} [to] Inclusive upper bound on `captured_at` (RFC 3339).
|
|
335
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
329
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
336
330
|
* @param {*} [options] Override http request option.
|
|
337
331
|
* @throws {RequiredError}
|
|
338
332
|
* @memberof MtnManagerApiInterface
|
|
@@ -344,7 +338,7 @@ export interface MtnManagerApiInterface {
|
|
|
344
338
|
getWebcamHistory(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebcamHistoryResponse>;
|
|
345
339
|
/**
|
|
346
340
|
* Creates request options for getWebcams without sending the request
|
|
347
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
341
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
348
342
|
* @throws {RequiredError}
|
|
349
343
|
* @memberof MtnManagerApiInterface
|
|
350
344
|
*/
|
|
@@ -352,7 +346,7 @@ export interface MtnManagerApiInterface {
|
|
|
352
346
|
/**
|
|
353
347
|
*
|
|
354
348
|
* @summary Get webcams
|
|
355
|
-
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
349
|
+
* @param {string} [acceptLanguage] Preferred language and optional region for human-readable strings in the response (e.g. operating hours summaries, weather conditions). Supports `en`, `fr`, `de`, `it`, and `es`, with optional region tags such as `fr-CA` or `de-CH`. Defaults to English when omitted or unsupported.
|
|
356
350
|
* @param {*} [options] Override http request option.
|
|
357
351
|
* @throws {RequiredError}
|
|
358
352
|
* @memberof MtnManagerApiInterface
|
|
@@ -504,12 +504,6 @@ export class MtnManagerApi extends runtime.BaseAPI {
|
|
|
504
504
|
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getWebcamHistory().');
|
|
505
505
|
}
|
|
506
506
|
const queryParameters = {};
|
|
507
|
-
if (requestParameters['from'] != null) {
|
|
508
|
-
queryParameters['from'] = requestParameters['from'];
|
|
509
|
-
}
|
|
510
|
-
if (requestParameters['to'] != null) {
|
|
511
|
-
queryParameters['to'] = requestParameters['to'];
|
|
512
|
-
}
|
|
513
507
|
const headerParameters = {};
|
|
514
508
|
if (requestParameters['acceptLanguage'] != null) {
|
|
515
509
|
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
import type { AmenityStatus } from './AmenityStatus';
|
|
13
14
|
import type { Schedule } from './Schedule';
|
|
14
15
|
import type { EntityImage } from './EntityImage';
|
|
15
16
|
/**
|
|
@@ -55,6 +56,13 @@ export interface Amenity {
|
|
|
55
56
|
* @memberof Amenity
|
|
56
57
|
*/
|
|
57
58
|
website: string;
|
|
59
|
+
/**
|
|
60
|
+
* Current operational status (open, closed, or unknown). Always `unknown`
|
|
61
|
+
* when the resort doesn't track amenity status.
|
|
62
|
+
* @type {AmenityStatus}
|
|
63
|
+
* @memberof Amenity
|
|
64
|
+
*/
|
|
65
|
+
status: AmenityStatus;
|
|
58
66
|
/**
|
|
59
67
|
* Whether this amenity reports operating hours. When false, clients should
|
|
60
68
|
* not expect `opens_at`, `closes_at`, or `schedules` to ever be populated.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { AmenityCategoryFromJSON, AmenityCategoryToJSON, } from './AmenityCategory';
|
|
15
|
+
import { AmenityStatusFromJSON, AmenityStatusToJSON, } from './AmenityStatus';
|
|
15
16
|
import { ScheduleFromJSON, ScheduleToJSON, } from './Schedule';
|
|
16
17
|
import { EntityImageFromJSON, EntityImageToJSON, } from './EntityImage';
|
|
17
18
|
/**
|
|
@@ -30,6 +31,8 @@ export function instanceOfAmenity(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('website' in value) || value['website'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
33
36
|
if ((!('hasOperatingHours' in value) && !('has_operating_hours' in value)) || (value['hasOperatingHours'] === undefined && value['has_operating_hours'] === undefined))
|
|
34
37
|
return false;
|
|
35
38
|
if (!('schedules' in value) || value['schedules'] === undefined)
|
|
@@ -50,6 +53,7 @@ export function AmenityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
53
|
'slug': json['slug'],
|
|
51
54
|
'category': AmenityCategoryFromJSON(json['category']),
|
|
52
55
|
'website': json['website'],
|
|
56
|
+
'status': AmenityStatusFromJSON(json['status']),
|
|
53
57
|
'hasOperatingHours': json['has_operating_hours'],
|
|
54
58
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
55
59
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
@@ -71,6 +75,7 @@ export function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
75
|
'slug': value['slug'],
|
|
72
76
|
'category': AmenityCategoryToJSON(value['category']),
|
|
73
77
|
'website': value['website'],
|
|
78
|
+
'status': AmenityStatusToJSON(value['status']),
|
|
74
79
|
'has_operating_hours': value['hasOperatingHours'],
|
|
75
80
|
'opens_at': value['opensAt'],
|
|
76
81
|
'closes_at': value['closesAt'],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Operational status of an amenity.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AmenityStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
|
+
};
|
|
22
|
+
export type AmenityStatus = typeof AmenityStatus[keyof typeof AmenityStatus];
|
|
23
|
+
export declare function instanceOfAmenityStatus(value: any): boolean;
|
|
24
|
+
export declare function AmenityStatusFromJSON(json: any): AmenityStatus;
|
|
25
|
+
export declare function AmenityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityStatus;
|
|
26
|
+
export declare function AmenityStatusToJSON(value?: AmenityStatus | null): any;
|
|
27
|
+
export declare function AmenityStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): AmenityStatus;
|
|
@@ -12,33 +12,34 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Operational status of an amenity.
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
export const AmenityStatus = {
|
|
19
|
+
Open: 'open',
|
|
20
|
+
Closed: 'closed',
|
|
21
|
+
Unknown: 'unknown',
|
|
21
22
|
UnknownDefaultOpenApi: '11184809'
|
|
22
23
|
};
|
|
23
|
-
export function
|
|
24
|
-
for (const key in
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
26
|
-
if (
|
|
24
|
+
export function instanceOfAmenityStatus(value) {
|
|
25
|
+
for (const key in AmenityStatus) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(AmenityStatus, key)) {
|
|
27
|
+
if (AmenityStatus[key] === value) {
|
|
27
28
|
return true;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
return false;
|
|
32
33
|
}
|
|
33
|
-
export function
|
|
34
|
-
return
|
|
34
|
+
export function AmenityStatusFromJSON(json) {
|
|
35
|
+
return AmenityStatusFromJSONTyped(json, false);
|
|
35
36
|
}
|
|
36
|
-
export function
|
|
37
|
+
export function AmenityStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
38
|
return json;
|
|
38
39
|
}
|
|
39
|
-
export function
|
|
40
|
+
export function AmenityStatusToJSON(value) {
|
|
40
41
|
return value;
|
|
41
42
|
}
|
|
42
|
-
export function
|
|
43
|
+
export function AmenityStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
43
44
|
return value;
|
|
44
45
|
}
|
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { OperatingHours } from './OperatingHours';
|
|
13
|
-
import type { Weather } from './Weather';
|
|
14
13
|
import type { ResortInfo } from './ResortInfo';
|
|
15
14
|
import type { ParkingLot } from './ParkingLot';
|
|
16
15
|
import type { SnowReport } from './SnowReport';
|
|
17
|
-
import type { Webcam } from './Webcam';
|
|
18
16
|
import type { Overview } from './Overview';
|
|
19
17
|
import type { Run } from './Run';
|
|
20
18
|
import type { SummerTrail } from './SummerTrail';
|
|
@@ -22,7 +20,8 @@ import type { Lift } from './Lift';
|
|
|
22
20
|
import type { TerrainPark } from './TerrainPark';
|
|
23
21
|
/**
|
|
24
22
|
* The all-in-one endpoint containing the full report — resort information, current status,
|
|
25
|
-
* runs, lifts, snow, terrain parks, summer trails, hours
|
|
23
|
+
* runs, lifts, snow, terrain parks, summer trails, and hours. Weather and webcams
|
|
24
|
+
* have their own endpoints.
|
|
26
25
|
* @export
|
|
27
26
|
* @interface FullReport
|
|
28
27
|
*/
|
|
@@ -88,21 +87,6 @@ export interface FullReport {
|
|
|
88
87
|
* @memberof FullReport
|
|
89
88
|
*/
|
|
90
89
|
hours: OperatingHours;
|
|
91
|
-
/**
|
|
92
|
-
* Weather entries: the resort-wide entry first (current + forecast), then
|
|
93
|
-
* any per-area current-conditions entries. Empty when weather is disabled
|
|
94
|
-
* or unavailable.
|
|
95
|
-
* @type {Array<Weather>}
|
|
96
|
-
* @memberof FullReport
|
|
97
|
-
*/
|
|
98
|
-
weather?: Array<Weather>;
|
|
99
|
-
/**
|
|
100
|
-
* Enabled webcams with the URLs of their current and last-daylight frames
|
|
101
|
-
* plus thumbnails. Empty when the resort does not have webcams.
|
|
102
|
-
* @type {Array<Webcam>}
|
|
103
|
-
* @memberof FullReport
|
|
104
|
-
*/
|
|
105
|
-
webcams?: Array<Webcam>;
|
|
106
90
|
}
|
|
107
91
|
/**
|
|
108
92
|
* Check if a given object implements the FullReport interface.
|
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { OperatingHoursFromJSON, OperatingHoursToJSON, } from './OperatingHours';
|
|
15
|
-
import { WeatherFromJSON, WeatherToJSON, } from './Weather';
|
|
16
15
|
import { ResortInfoFromJSON, ResortInfoToJSON, } from './ResortInfo';
|
|
17
16
|
import { ParkingLotFromJSON, ParkingLotToJSON, } from './ParkingLot';
|
|
18
17
|
import { SnowReportFromJSON, SnowReportToJSON, } from './SnowReport';
|
|
19
|
-
import { WebcamFromJSON, WebcamToJSON, } from './Webcam';
|
|
20
18
|
import { OverviewFromJSON, OverviewToJSON, } from './Overview';
|
|
21
19
|
import { RunFromJSON, RunToJSON, } from './Run';
|
|
22
20
|
import { SummerTrailFromJSON, SummerTrailToJSON, } from './SummerTrail';
|
|
@@ -63,8 +61,6 @@ export function FullReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
61
|
'parkingLots': (json['parking_lots'].map(ParkingLotFromJSON)),
|
|
64
62
|
'summerTrails': (json['summer_trails'].map(SummerTrailFromJSON)),
|
|
65
63
|
'hours': OperatingHoursFromJSON(json['hours']),
|
|
66
|
-
'weather': json['weather'] == null ? undefined : (json['weather'].map(WeatherFromJSON)),
|
|
67
|
-
'webcams': json['webcams'] == null ? undefined : (json['webcams'].map(WebcamFromJSON)),
|
|
68
64
|
};
|
|
69
65
|
}
|
|
70
66
|
export function FullReportToJSON(json) {
|
|
@@ -84,7 +80,5 @@ export function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
84
80
|
'parking_lots': (value['parkingLots'].map(ParkingLotToJSON)),
|
|
85
81
|
'summer_trails': (value['summerTrails'].map(SummerTrailToJSON)),
|
|
86
82
|
'hours': OperatingHoursToJSON(value['hours']),
|
|
87
|
-
'weather': value['weather'] == null ? undefined : (value['weather'].map(WeatherToJSON)),
|
|
88
|
-
'webcams': value['webcams'] == null ? undefined : (value['webcams'].map(WebcamToJSON)),
|
|
89
83
|
};
|
|
90
84
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MtnManager API
|
|
3
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@mtnmanager.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A language we localize into. Serializes as its BCP-47 tag (`"en"`, `"fr"`,
|
|
14
|
+
* `"de-CH"`, …), which is also the form a resort's news languages are stored
|
|
15
|
+
* and keyed in, and the label an account's `default_language` is stored as.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare const Language: {
|
|
19
|
+
readonly En: "en";
|
|
20
|
+
readonly Fr: "fr";
|
|
21
|
+
readonly De: "de";
|
|
22
|
+
readonly DeCh: "de-CH";
|
|
23
|
+
readonly It: "it";
|
|
24
|
+
readonly Es: "es";
|
|
25
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
26
|
+
};
|
|
27
|
+
export type Language = typeof Language[keyof typeof Language];
|
|
28
|
+
export declare function instanceOfLanguage(value: any): boolean;
|
|
29
|
+
export declare function LanguageFromJSON(json: any): Language;
|
|
30
|
+
export declare function LanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Language;
|
|
31
|
+
export declare function LanguageToJSON(value?: Language | null): any;
|
|
32
|
+
export declare function LanguageToJSONTyped(value: any, ignoreDiscriminator: boolean): Language;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
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
|
+
/**
|
|
15
|
+
* A language we localize into. Serializes as its BCP-47 tag (`"en"`, `"fr"`,
|
|
16
|
+
* `"de-CH"`, …), which is also the form a resort's news languages are stored
|
|
17
|
+
* and keyed in, and the label an account's `default_language` is stored as.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const Language = {
|
|
21
|
+
En: 'en',
|
|
22
|
+
Fr: 'fr',
|
|
23
|
+
De: 'de',
|
|
24
|
+
DeCh: 'de-CH',
|
|
25
|
+
It: 'it',
|
|
26
|
+
Es: 'es',
|
|
27
|
+
UnknownDefaultOpenApi: '11184809'
|
|
28
|
+
};
|
|
29
|
+
export function instanceOfLanguage(value) {
|
|
30
|
+
for (const key in Language) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(Language, key)) {
|
|
32
|
+
if (Language[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
export function LanguageFromJSON(json) {
|
|
40
|
+
return LanguageFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function LanguageFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
export function LanguageToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
export function LanguageToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -23,7 +23,7 @@ export interface OverviewRuns {
|
|
|
23
23
|
*/
|
|
24
24
|
open?: number | null;
|
|
25
25
|
/**
|
|
26
|
-
* Number of runs groomed
|
|
26
|
+
* Number of runs groomed since the resort last closed (see `groomed_today`).
|
|
27
27
|
* Not included if the runs grooming feature is disabled.
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof OverviewRuns
|