@mtnmanager/sdk 1.4.9 → 1.5.2
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 +0 -7
- package/dist/apis/MtnManagerApi.d.ts +0 -75
- package/dist/apis/MtnManagerApi.js +0 -82
- package/dist/esm/apis/MtnManagerApi.d.ts +0 -75
- package/dist/esm/apis/MtnManagerApi.js +0 -82
- package/dist/esm/models/WeatherConditionCode.d.ts +19 -25
- package/dist/esm/models/WeatherConditionCode.js +19 -25
- package/dist/esm/models/index.d.ts +0 -5
- package/dist/esm/models/index.js +0 -5
- package/dist/models/WeatherConditionCode.d.ts +19 -25
- package/dist/models/WeatherConditionCode.js +19 -25
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/package.json +1 -1
- package/dist/esm/models/GeoControlPoint.d.ts +0 -50
- package/dist/esm/models/GeoControlPoint.js +0 -55
- package/dist/esm/models/MobileAppBanner.d.ts +0 -56
- package/dist/esm/models/MobileAppBanner.js +0 -59
- package/dist/esm/models/MobileAppResponse.d.ts +0 -34
- package/dist/esm/models/MobileAppResponse.js +0 -44
- package/dist/esm/models/TrailMap.d.ts +0 -91
- package/dist/esm/models/TrailMap.js +0 -81
- package/dist/esm/models/TrailMapElement.d.ts +0 -28
- package/dist/esm/models/TrailMapElement.js +0 -86
- package/dist/models/GeoControlPoint.d.ts +0 -50
- package/dist/models/GeoControlPoint.js +0 -62
- package/dist/models/MobileAppBanner.d.ts +0 -56
- package/dist/models/MobileAppBanner.js +0 -66
- package/dist/models/MobileAppResponse.d.ts +0 -34
- package/dist/models/MobileAppResponse.js +0 -51
- package/dist/models/TrailMap.d.ts +0 -91
- package/dist/models/TrailMap.js +0 -88
- package/dist/models/TrailMapElement.d.ts +0 -28
- package/dist/models/TrailMapElement.js +0 -92
package/README.md
CHANGED
|
@@ -59,14 +59,12 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
59
59
|
*MtnManagerApi* | [**getFullReport**](docs/MtnManagerApi.md#getfullreport) | **GET** /api/v1/report | Get full report
|
|
60
60
|
*MtnManagerApi* | [**getHours**](docs/MtnManagerApi.md#gethours) | **GET** /api/v1/report/hours | Get operating hours
|
|
61
61
|
*MtnManagerApi* | [**getLifts**](docs/MtnManagerApi.md#getlifts) | **GET** /api/v1/report/lifts | Get lifts
|
|
62
|
-
*MtnManagerApi* | [**getMobileApp**](docs/MtnManagerApi.md#getmobileapp) | **GET** /api/v1/report/mobile-app | Get mobile app data
|
|
63
62
|
*MtnManagerApi* | [**getOverview**](docs/MtnManagerApi.md#getoverview) | **GET** /api/v1/report/overview | Get overview
|
|
64
63
|
*MtnManagerApi* | [**getParkingLots**](docs/MtnManagerApi.md#getparkinglots) | **GET** /api/v1/report/parking-lots | Get parking lots
|
|
65
64
|
*MtnManagerApi* | [**getRuns**](docs/MtnManagerApi.md#getruns) | **GET** /api/v1/report/runs | Get runs
|
|
66
65
|
*MtnManagerApi* | [**getSnow**](docs/MtnManagerApi.md#getsnow) | **GET** /api/v1/report/snow | Get snow conditions
|
|
67
66
|
*MtnManagerApi* | [**getSummerTrails**](docs/MtnManagerApi.md#getsummertrails) | **GET** /api/v1/report/summer-trails | Get summer trails
|
|
68
67
|
*MtnManagerApi* | [**getTerrainParks**](docs/MtnManagerApi.md#getterrainparks) | **GET** /api/v1/report/terrain-parks | Get terrain parks
|
|
69
|
-
*MtnManagerApi* | [**getTrailMap**](docs/MtnManagerApi.md#gettrailmap) | **GET** /api/v1/report/trail-map/{uuid} | Get trail map
|
|
70
68
|
*MtnManagerApi* | [**getTrailMaps**](docs/MtnManagerApi.md#gettrailmaps) | **GET** /api/v1/report/trail-maps | Get trail maps
|
|
71
69
|
*MtnManagerApi* | [**getWeather**](docs/MtnManagerApi.md#getweather) | **GET** /api/v1/report/weather | Get weather
|
|
72
70
|
|
|
@@ -90,7 +88,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
90
88
|
- [FeatureType](docs/FeatureType.md)
|
|
91
89
|
- [FullReport](docs/FullReport.md)
|
|
92
90
|
- [GeoBounds](docs/GeoBounds.md)
|
|
93
|
-
- [GeoControlPoint](docs/GeoControlPoint.md)
|
|
94
91
|
- [GeoPoint](docs/GeoPoint.md)
|
|
95
92
|
- [HourlyForecast](docs/HourlyForecast.md)
|
|
96
93
|
- [HourlyForecastImperial](docs/HourlyForecastImperial.md)
|
|
@@ -100,8 +97,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
100
97
|
- [LiftStatus](docs/LiftStatus.md)
|
|
101
98
|
- [LiftType](docs/LiftType.md)
|
|
102
99
|
- [MarkerIcon](docs/MarkerIcon.md)
|
|
103
|
-
- [MobileAppBanner](docs/MobileAppBanner.md)
|
|
104
|
-
- [MobileAppResponse](docs/MobileAppResponse.md)
|
|
105
100
|
- [OperatingHours](docs/OperatingHours.md)
|
|
106
101
|
- [Overview](docs/Overview.md)
|
|
107
102
|
- [OverviewLifts](docs/OverviewLifts.md)
|
|
@@ -131,8 +126,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
131
126
|
- [TerrainParkFeature](docs/TerrainParkFeature.md)
|
|
132
127
|
- [TerrainParkFeatureStatus](docs/TerrainParkFeatureStatus.md)
|
|
133
128
|
- [TerrainParkStatus](docs/TerrainParkStatus.md)
|
|
134
|
-
- [TrailMap](docs/TrailMap.md)
|
|
135
|
-
- [TrailMapElement](docs/TrailMapElement.md)
|
|
136
129
|
- [TrailMapElementOneOf](docs/TrailMapElementOneOf.md)
|
|
137
130
|
- [TrailMapElementOneOf1](docs/TrailMapElementOneOf1.md)
|
|
138
131
|
- [TrailMapElementOneOf2](docs/TrailMapElementOneOf2.md)
|
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import { type Amenity } from '../models/Amenity';
|
|
14
14
|
import { type FullReport } from '../models/FullReport';
|
|
15
15
|
import { type Lift } from '../models/Lift';
|
|
16
|
-
import { type MobileAppResponse } from '../models/MobileAppResponse';
|
|
17
16
|
import { type OperatingHours } from '../models/OperatingHours';
|
|
18
17
|
import { type Overview } from '../models/Overview';
|
|
19
18
|
import { type ParkingLot } from '../models/ParkingLot';
|
|
@@ -21,7 +20,6 @@ import { type Run } from '../models/Run';
|
|
|
21
20
|
import { type SnowReport } from '../models/SnowReport';
|
|
22
21
|
import { type SummerTrail } from '../models/SummerTrail';
|
|
23
22
|
import { type TerrainPark } from '../models/TerrainPark';
|
|
24
|
-
import { type TrailMap } from '../models/TrailMap';
|
|
25
23
|
import { type TrailMapSummary } from '../models/TrailMapSummary';
|
|
26
24
|
import { type Weather } from '../models/Weather';
|
|
27
25
|
export interface GetAmenitiesRequest {
|
|
@@ -36,9 +34,6 @@ export interface GetHoursRequest {
|
|
|
36
34
|
export interface GetLiftsRequest {
|
|
37
35
|
acceptLanguage?: string;
|
|
38
36
|
}
|
|
39
|
-
export interface GetMobileAppRequest {
|
|
40
|
-
acceptLanguage?: string;
|
|
41
|
-
}
|
|
42
37
|
export interface GetOverviewRequest {
|
|
43
38
|
acceptLanguage?: string;
|
|
44
39
|
}
|
|
@@ -57,10 +52,6 @@ export interface GetSummerTrailsRequest {
|
|
|
57
52
|
export interface GetTerrainParksRequest {
|
|
58
53
|
acceptLanguage?: string;
|
|
59
54
|
}
|
|
60
|
-
export interface GetTrailMapRequest {
|
|
61
|
-
uuid: string;
|
|
62
|
-
acceptLanguage?: string;
|
|
63
|
-
}
|
|
64
55
|
export interface GetTrailMapsRequest {
|
|
65
56
|
acceptLanguage?: string;
|
|
66
57
|
}
|
|
@@ -154,26 +145,6 @@ export interface MtnManagerApiInterface {
|
|
|
154
145
|
* Get lifts
|
|
155
146
|
*/
|
|
156
147
|
getLifts(requestParameters: GetLiftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Lift>>;
|
|
157
|
-
/**
|
|
158
|
-
* Creates request options for getMobileApp without sending the request
|
|
159
|
-
* @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.
|
|
160
|
-
* @throws {RequiredError}
|
|
161
|
-
* @memberof MtnManagerApiInterface
|
|
162
|
-
*/
|
|
163
|
-
getMobileAppRequestOpts(requestParameters: GetMobileAppRequest): Promise<runtime.RequestOpts>;
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @summary Get mobile app data
|
|
167
|
-
* @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.
|
|
168
|
-
* @param {*} [options] Override http request option.
|
|
169
|
-
* @throws {RequiredError}
|
|
170
|
-
* @memberof MtnManagerApiInterface
|
|
171
|
-
*/
|
|
172
|
-
getMobileAppRaw(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppResponse>>;
|
|
173
|
-
/**
|
|
174
|
-
* Get mobile app data
|
|
175
|
-
*/
|
|
176
|
-
getMobileApp(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppResponse>;
|
|
177
148
|
/**
|
|
178
149
|
* Creates request options for getOverview without sending the request
|
|
179
150
|
* @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.
|
|
@@ -294,28 +265,6 @@ export interface MtnManagerApiInterface {
|
|
|
294
265
|
* Get terrain parks
|
|
295
266
|
*/
|
|
296
267
|
getTerrainParks(requestParameters: GetTerrainParksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TerrainPark>>;
|
|
297
|
-
/**
|
|
298
|
-
* Creates request options for getTrailMap without sending the request
|
|
299
|
-
* @param {string} uuid Resource UUID
|
|
300
|
-
* @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.
|
|
301
|
-
* @throws {RequiredError}
|
|
302
|
-
* @memberof MtnManagerApiInterface
|
|
303
|
-
*/
|
|
304
|
-
getTrailMapRequestOpts(requestParameters: GetTrailMapRequest): Promise<runtime.RequestOpts>;
|
|
305
|
-
/**
|
|
306
|
-
*
|
|
307
|
-
* @summary Get trail map
|
|
308
|
-
* @param {string} uuid Resource UUID
|
|
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.
|
|
310
|
-
* @param {*} [options] Override http request option.
|
|
311
|
-
* @throws {RequiredError}
|
|
312
|
-
* @memberof MtnManagerApiInterface
|
|
313
|
-
*/
|
|
314
|
-
getTrailMapRaw(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrailMap>>;
|
|
315
|
-
/**
|
|
316
|
-
* Get trail map
|
|
317
|
-
*/
|
|
318
|
-
getTrailMap(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrailMap>;
|
|
319
268
|
/**
|
|
320
269
|
* Creates request options for getTrailMaps without sending the request
|
|
321
270
|
* @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.
|
|
@@ -409,18 +358,6 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
409
358
|
* Get lifts
|
|
410
359
|
*/
|
|
411
360
|
getLifts(requestParameters?: GetLiftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Lift>>;
|
|
412
|
-
/**
|
|
413
|
-
* Creates request options for getMobileApp without sending the request
|
|
414
|
-
*/
|
|
415
|
-
getMobileAppRequestOpts(requestParameters: GetMobileAppRequest): Promise<runtime.RequestOpts>;
|
|
416
|
-
/**
|
|
417
|
-
* Get mobile app data
|
|
418
|
-
*/
|
|
419
|
-
getMobileAppRaw(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppResponse>>;
|
|
420
|
-
/**
|
|
421
|
-
* Get mobile app data
|
|
422
|
-
*/
|
|
423
|
-
getMobileApp(requestParameters?: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppResponse>;
|
|
424
361
|
/**
|
|
425
362
|
* Creates request options for getOverview without sending the request
|
|
426
363
|
*/
|
|
@@ -493,18 +430,6 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
493
430
|
* Get terrain parks
|
|
494
431
|
*/
|
|
495
432
|
getTerrainParks(requestParameters?: GetTerrainParksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TerrainPark>>;
|
|
496
|
-
/**
|
|
497
|
-
* Creates request options for getTrailMap without sending the request
|
|
498
|
-
*/
|
|
499
|
-
getTrailMapRequestOpts(requestParameters: GetTrailMapRequest): Promise<runtime.RequestOpts>;
|
|
500
|
-
/**
|
|
501
|
-
* Get trail map
|
|
502
|
-
*/
|
|
503
|
-
getTrailMapRaw(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrailMap>>;
|
|
504
|
-
/**
|
|
505
|
-
* Get trail map
|
|
506
|
-
*/
|
|
507
|
-
getTrailMap(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrailMap>;
|
|
508
433
|
/**
|
|
509
434
|
* Creates request options for getTrailMaps without sending the request
|
|
510
435
|
*/
|
|
@@ -27,7 +27,6 @@ const runtime = require("../runtime");
|
|
|
27
27
|
const Amenity_1 = require("../models/Amenity");
|
|
28
28
|
const FullReport_1 = require("../models/FullReport");
|
|
29
29
|
const Lift_1 = require("../models/Lift");
|
|
30
|
-
const MobileAppResponse_1 = require("../models/MobileAppResponse");
|
|
31
30
|
const OperatingHours_1 = require("../models/OperatingHours");
|
|
32
31
|
const Overview_1 = require("../models/Overview");
|
|
33
32
|
const ParkingLot_1 = require("../models/ParkingLot");
|
|
@@ -35,7 +34,6 @@ const Run_1 = require("../models/Run");
|
|
|
35
34
|
const SnowReport_1 = require("../models/SnowReport");
|
|
36
35
|
const SummerTrail_1 = require("../models/SummerTrail");
|
|
37
36
|
const TerrainPark_1 = require("../models/TerrainPark");
|
|
38
|
-
const TrailMap_1 = require("../models/TrailMap");
|
|
39
37
|
const TrailMapSummary_1 = require("../models/TrailMapSummary");
|
|
40
38
|
const Weather_1 = require("../models/Weather");
|
|
41
39
|
/**
|
|
@@ -194,44 +192,6 @@ class MtnManagerApi extends runtime.BaseAPI {
|
|
|
194
192
|
return yield response.value();
|
|
195
193
|
});
|
|
196
194
|
}
|
|
197
|
-
/**
|
|
198
|
-
* Creates request options for getMobileApp without sending the request
|
|
199
|
-
*/
|
|
200
|
-
getMobileAppRequestOpts(requestParameters) {
|
|
201
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
const queryParameters = {};
|
|
203
|
-
const headerParameters = {};
|
|
204
|
-
if (requestParameters['acceptLanguage'] != null) {
|
|
205
|
-
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
206
|
-
}
|
|
207
|
-
let urlPath = `/api/v1/report/mobile-app`;
|
|
208
|
-
return {
|
|
209
|
-
path: urlPath,
|
|
210
|
-
method: 'GET',
|
|
211
|
-
headers: headerParameters,
|
|
212
|
-
query: queryParameters,
|
|
213
|
-
};
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Get mobile app data
|
|
218
|
-
*/
|
|
219
|
-
getMobileAppRaw(requestParameters, initOverrides) {
|
|
220
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
-
const requestOptions = yield this.getMobileAppRequestOpts(requestParameters);
|
|
222
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
223
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MobileAppResponse_1.MobileAppResponseFromJSON)(jsonValue));
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Get mobile app data
|
|
228
|
-
*/
|
|
229
|
-
getMobileApp() {
|
|
230
|
-
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
231
|
-
const response = yield this.getMobileAppRaw(requestParameters, initOverrides);
|
|
232
|
-
return yield response.value();
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
195
|
/**
|
|
236
196
|
* Creates request options for getOverview without sending the request
|
|
237
197
|
*/
|
|
@@ -460,48 +420,6 @@ class MtnManagerApi extends runtime.BaseAPI {
|
|
|
460
420
|
return yield response.value();
|
|
461
421
|
});
|
|
462
422
|
}
|
|
463
|
-
/**
|
|
464
|
-
* Creates request options for getTrailMap without sending the request
|
|
465
|
-
*/
|
|
466
|
-
getTrailMapRequestOpts(requestParameters) {
|
|
467
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
-
if (requestParameters['uuid'] == null) {
|
|
469
|
-
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getTrailMap().');
|
|
470
|
-
}
|
|
471
|
-
const queryParameters = {};
|
|
472
|
-
const headerParameters = {};
|
|
473
|
-
if (requestParameters['acceptLanguage'] != null) {
|
|
474
|
-
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
475
|
-
}
|
|
476
|
-
let urlPath = `/api/v1/report/trail-map/{uuid}`;
|
|
477
|
-
urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
|
|
478
|
-
return {
|
|
479
|
-
path: urlPath,
|
|
480
|
-
method: 'GET',
|
|
481
|
-
headers: headerParameters,
|
|
482
|
-
query: queryParameters,
|
|
483
|
-
};
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Get trail map
|
|
488
|
-
*/
|
|
489
|
-
getTrailMapRaw(requestParameters, initOverrides) {
|
|
490
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
491
|
-
const requestOptions = yield this.getTrailMapRequestOpts(requestParameters);
|
|
492
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
493
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, TrailMap_1.TrailMapFromJSON)(jsonValue));
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Get trail map
|
|
498
|
-
*/
|
|
499
|
-
getTrailMap(requestParameters, initOverrides) {
|
|
500
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
501
|
-
const response = yield this.getTrailMapRaw(requestParameters, initOverrides);
|
|
502
|
-
return yield response.value();
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
423
|
/**
|
|
506
424
|
* Creates request options for getTrailMaps without sending the request
|
|
507
425
|
*/
|
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import { type Amenity } from '../models/Amenity';
|
|
14
14
|
import { type FullReport } from '../models/FullReport';
|
|
15
15
|
import { type Lift } from '../models/Lift';
|
|
16
|
-
import { type MobileAppResponse } from '../models/MobileAppResponse';
|
|
17
16
|
import { type OperatingHours } from '../models/OperatingHours';
|
|
18
17
|
import { type Overview } from '../models/Overview';
|
|
19
18
|
import { type ParkingLot } from '../models/ParkingLot';
|
|
@@ -21,7 +20,6 @@ import { type Run } from '../models/Run';
|
|
|
21
20
|
import { type SnowReport } from '../models/SnowReport';
|
|
22
21
|
import { type SummerTrail } from '../models/SummerTrail';
|
|
23
22
|
import { type TerrainPark } from '../models/TerrainPark';
|
|
24
|
-
import { type TrailMap } from '../models/TrailMap';
|
|
25
23
|
import { type TrailMapSummary } from '../models/TrailMapSummary';
|
|
26
24
|
import { type Weather } from '../models/Weather';
|
|
27
25
|
export interface GetAmenitiesRequest {
|
|
@@ -36,9 +34,6 @@ export interface GetHoursRequest {
|
|
|
36
34
|
export interface GetLiftsRequest {
|
|
37
35
|
acceptLanguage?: string;
|
|
38
36
|
}
|
|
39
|
-
export interface GetMobileAppRequest {
|
|
40
|
-
acceptLanguage?: string;
|
|
41
|
-
}
|
|
42
37
|
export interface GetOverviewRequest {
|
|
43
38
|
acceptLanguage?: string;
|
|
44
39
|
}
|
|
@@ -57,10 +52,6 @@ export interface GetSummerTrailsRequest {
|
|
|
57
52
|
export interface GetTerrainParksRequest {
|
|
58
53
|
acceptLanguage?: string;
|
|
59
54
|
}
|
|
60
|
-
export interface GetTrailMapRequest {
|
|
61
|
-
uuid: string;
|
|
62
|
-
acceptLanguage?: string;
|
|
63
|
-
}
|
|
64
55
|
export interface GetTrailMapsRequest {
|
|
65
56
|
acceptLanguage?: string;
|
|
66
57
|
}
|
|
@@ -154,26 +145,6 @@ export interface MtnManagerApiInterface {
|
|
|
154
145
|
* Get lifts
|
|
155
146
|
*/
|
|
156
147
|
getLifts(requestParameters: GetLiftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Lift>>;
|
|
157
|
-
/**
|
|
158
|
-
* Creates request options for getMobileApp without sending the request
|
|
159
|
-
* @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.
|
|
160
|
-
* @throws {RequiredError}
|
|
161
|
-
* @memberof MtnManagerApiInterface
|
|
162
|
-
*/
|
|
163
|
-
getMobileAppRequestOpts(requestParameters: GetMobileAppRequest): Promise<runtime.RequestOpts>;
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @summary Get mobile app data
|
|
167
|
-
* @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.
|
|
168
|
-
* @param {*} [options] Override http request option.
|
|
169
|
-
* @throws {RequiredError}
|
|
170
|
-
* @memberof MtnManagerApiInterface
|
|
171
|
-
*/
|
|
172
|
-
getMobileAppRaw(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppResponse>>;
|
|
173
|
-
/**
|
|
174
|
-
* Get mobile app data
|
|
175
|
-
*/
|
|
176
|
-
getMobileApp(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppResponse>;
|
|
177
148
|
/**
|
|
178
149
|
* Creates request options for getOverview without sending the request
|
|
179
150
|
* @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.
|
|
@@ -294,28 +265,6 @@ export interface MtnManagerApiInterface {
|
|
|
294
265
|
* Get terrain parks
|
|
295
266
|
*/
|
|
296
267
|
getTerrainParks(requestParameters: GetTerrainParksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TerrainPark>>;
|
|
297
|
-
/**
|
|
298
|
-
* Creates request options for getTrailMap without sending the request
|
|
299
|
-
* @param {string} uuid Resource UUID
|
|
300
|
-
* @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.
|
|
301
|
-
* @throws {RequiredError}
|
|
302
|
-
* @memberof MtnManagerApiInterface
|
|
303
|
-
*/
|
|
304
|
-
getTrailMapRequestOpts(requestParameters: GetTrailMapRequest): Promise<runtime.RequestOpts>;
|
|
305
|
-
/**
|
|
306
|
-
*
|
|
307
|
-
* @summary Get trail map
|
|
308
|
-
* @param {string} uuid Resource UUID
|
|
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.
|
|
310
|
-
* @param {*} [options] Override http request option.
|
|
311
|
-
* @throws {RequiredError}
|
|
312
|
-
* @memberof MtnManagerApiInterface
|
|
313
|
-
*/
|
|
314
|
-
getTrailMapRaw(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrailMap>>;
|
|
315
|
-
/**
|
|
316
|
-
* Get trail map
|
|
317
|
-
*/
|
|
318
|
-
getTrailMap(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrailMap>;
|
|
319
268
|
/**
|
|
320
269
|
* Creates request options for getTrailMaps without sending the request
|
|
321
270
|
* @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.
|
|
@@ -409,18 +358,6 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
409
358
|
* Get lifts
|
|
410
359
|
*/
|
|
411
360
|
getLifts(requestParameters?: GetLiftsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Lift>>;
|
|
412
|
-
/**
|
|
413
|
-
* Creates request options for getMobileApp without sending the request
|
|
414
|
-
*/
|
|
415
|
-
getMobileAppRequestOpts(requestParameters: GetMobileAppRequest): Promise<runtime.RequestOpts>;
|
|
416
|
-
/**
|
|
417
|
-
* Get mobile app data
|
|
418
|
-
*/
|
|
419
|
-
getMobileAppRaw(requestParameters: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileAppResponse>>;
|
|
420
|
-
/**
|
|
421
|
-
* Get mobile app data
|
|
422
|
-
*/
|
|
423
|
-
getMobileApp(requestParameters?: GetMobileAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileAppResponse>;
|
|
424
361
|
/**
|
|
425
362
|
* Creates request options for getOverview without sending the request
|
|
426
363
|
*/
|
|
@@ -493,18 +430,6 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
493
430
|
* Get terrain parks
|
|
494
431
|
*/
|
|
495
432
|
getTerrainParks(requestParameters?: GetTerrainParksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TerrainPark>>;
|
|
496
|
-
/**
|
|
497
|
-
* Creates request options for getTrailMap without sending the request
|
|
498
|
-
*/
|
|
499
|
-
getTrailMapRequestOpts(requestParameters: GetTrailMapRequest): Promise<runtime.RequestOpts>;
|
|
500
|
-
/**
|
|
501
|
-
* Get trail map
|
|
502
|
-
*/
|
|
503
|
-
getTrailMapRaw(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TrailMap>>;
|
|
504
|
-
/**
|
|
505
|
-
* Get trail map
|
|
506
|
-
*/
|
|
507
|
-
getTrailMap(requestParameters: GetTrailMapRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TrailMap>;
|
|
508
433
|
/**
|
|
509
434
|
* Creates request options for getTrailMaps without sending the request
|
|
510
435
|
*/
|
|
@@ -24,7 +24,6 @@ import * as runtime from '../runtime';
|
|
|
24
24
|
import { AmenityFromJSON, } from '../models/Amenity';
|
|
25
25
|
import { FullReportFromJSON, } from '../models/FullReport';
|
|
26
26
|
import { LiftFromJSON, } from '../models/Lift';
|
|
27
|
-
import { MobileAppResponseFromJSON, } from '../models/MobileAppResponse';
|
|
28
27
|
import { OperatingHoursFromJSON, } from '../models/OperatingHours';
|
|
29
28
|
import { OverviewFromJSON, } from '../models/Overview';
|
|
30
29
|
import { ParkingLotFromJSON, } from '../models/ParkingLot';
|
|
@@ -32,7 +31,6 @@ import { RunFromJSON, } from '../models/Run';
|
|
|
32
31
|
import { SnowReportFromJSON, } from '../models/SnowReport';
|
|
33
32
|
import { SummerTrailFromJSON, } from '../models/SummerTrail';
|
|
34
33
|
import { TerrainParkFromJSON, } from '../models/TerrainPark';
|
|
35
|
-
import { TrailMapFromJSON, } from '../models/TrailMap';
|
|
36
34
|
import { TrailMapSummaryFromJSON, } from '../models/TrailMapSummary';
|
|
37
35
|
import { WeatherFromJSON, } from '../models/Weather';
|
|
38
36
|
/**
|
|
@@ -191,44 +189,6 @@ export class MtnManagerApi extends runtime.BaseAPI {
|
|
|
191
189
|
return yield response.value();
|
|
192
190
|
});
|
|
193
191
|
}
|
|
194
|
-
/**
|
|
195
|
-
* Creates request options for getMobileApp without sending the request
|
|
196
|
-
*/
|
|
197
|
-
getMobileAppRequestOpts(requestParameters) {
|
|
198
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
-
const queryParameters = {};
|
|
200
|
-
const headerParameters = {};
|
|
201
|
-
if (requestParameters['acceptLanguage'] != null) {
|
|
202
|
-
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
203
|
-
}
|
|
204
|
-
let urlPath = `/api/v1/report/mobile-app`;
|
|
205
|
-
return {
|
|
206
|
-
path: urlPath,
|
|
207
|
-
method: 'GET',
|
|
208
|
-
headers: headerParameters,
|
|
209
|
-
query: queryParameters,
|
|
210
|
-
};
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Get mobile app data
|
|
215
|
-
*/
|
|
216
|
-
getMobileAppRaw(requestParameters, initOverrides) {
|
|
217
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
-
const requestOptions = yield this.getMobileAppRequestOpts(requestParameters);
|
|
219
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
220
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => MobileAppResponseFromJSON(jsonValue));
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Get mobile app data
|
|
225
|
-
*/
|
|
226
|
-
getMobileApp() {
|
|
227
|
-
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
228
|
-
const response = yield this.getMobileAppRaw(requestParameters, initOverrides);
|
|
229
|
-
return yield response.value();
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
192
|
/**
|
|
233
193
|
* Creates request options for getOverview without sending the request
|
|
234
194
|
*/
|
|
@@ -457,48 +417,6 @@ export class MtnManagerApi extends runtime.BaseAPI {
|
|
|
457
417
|
return yield response.value();
|
|
458
418
|
});
|
|
459
419
|
}
|
|
460
|
-
/**
|
|
461
|
-
* Creates request options for getTrailMap without sending the request
|
|
462
|
-
*/
|
|
463
|
-
getTrailMapRequestOpts(requestParameters) {
|
|
464
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
-
if (requestParameters['uuid'] == null) {
|
|
466
|
-
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getTrailMap().');
|
|
467
|
-
}
|
|
468
|
-
const queryParameters = {};
|
|
469
|
-
const headerParameters = {};
|
|
470
|
-
if (requestParameters['acceptLanguage'] != null) {
|
|
471
|
-
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
472
|
-
}
|
|
473
|
-
let urlPath = `/api/v1/report/trail-map/{uuid}`;
|
|
474
|
-
urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
|
|
475
|
-
return {
|
|
476
|
-
path: urlPath,
|
|
477
|
-
method: 'GET',
|
|
478
|
-
headers: headerParameters,
|
|
479
|
-
query: queryParameters,
|
|
480
|
-
};
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Get trail map
|
|
485
|
-
*/
|
|
486
|
-
getTrailMapRaw(requestParameters, initOverrides) {
|
|
487
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
488
|
-
const requestOptions = yield this.getTrailMapRequestOpts(requestParameters);
|
|
489
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
490
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => TrailMapFromJSON(jsonValue));
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Get trail map
|
|
495
|
-
*/
|
|
496
|
-
getTrailMap(requestParameters, initOverrides) {
|
|
497
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
498
|
-
const response = yield this.getTrailMapRaw(requestParameters, initOverrides);
|
|
499
|
-
return yield response.value();
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
420
|
/**
|
|
503
421
|
* Creates request options for getTrailMaps without sending the request
|
|
504
422
|
*/
|
|
@@ -15,45 +15,39 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const WeatherConditionCode: {
|
|
17
17
|
readonly Clear: "Clear";
|
|
18
|
-
readonly MostlyClear: "MostlyClear";
|
|
19
|
-
readonly PartlyCloudy: "PartlyCloudy";
|
|
20
|
-
readonly MostlyCloudy: "MostlyCloudy";
|
|
21
18
|
readonly Cloudy: "Cloudy";
|
|
22
|
-
readonly
|
|
23
|
-
readonly Fog: "Fog";
|
|
19
|
+
readonly Foggy: "Foggy";
|
|
24
20
|
readonly Haze: "Haze";
|
|
25
|
-
readonly
|
|
21
|
+
readonly MostlyClear: "MostlyClear";
|
|
22
|
+
readonly MostlyCloudy: "MostlyCloudy";
|
|
23
|
+
readonly PartlyCloudy: "PartlyCloudy";
|
|
24
|
+
readonly Smoky: "Smoky";
|
|
25
|
+
readonly BlowingDust: "BlowingDust";
|
|
26
26
|
readonly Breezy: "Breezy";
|
|
27
27
|
readonly Windy: "Windy";
|
|
28
28
|
readonly Drizzle: "Drizzle";
|
|
29
|
-
readonly Rain: "Rain";
|
|
30
|
-
readonly Showers: "Showers";
|
|
31
|
-
readonly ScatteredShowers: "ScatteredShowers";
|
|
32
29
|
readonly HeavyRain: "HeavyRain";
|
|
30
|
+
readonly IsolatedThunderstorms: "IsolatedThunderstorms";
|
|
31
|
+
readonly Rain: "Rain";
|
|
32
|
+
readonly SunShowers: "SunShowers";
|
|
33
|
+
readonly ScatteredThunderstorms: "ScatteredThunderstorms";
|
|
34
|
+
readonly StrongStorms: "StrongStorms";
|
|
35
|
+
readonly Thunderstorms: "Thunderstorms";
|
|
36
|
+
readonly Frigid: "Frigid";
|
|
37
|
+
readonly Hail: "Hail";
|
|
38
|
+
readonly Hot: "Hot";
|
|
33
39
|
readonly Flurries: "Flurries";
|
|
40
|
+
readonly Sleet: "Sleet";
|
|
34
41
|
readonly Snow: "Snow";
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly HeavySnow: "HeavySnow";
|
|
42
|
+
readonly SunFlurries: "SunFlurries";
|
|
43
|
+
readonly WintryMix: "WintryMix";
|
|
38
44
|
readonly Blizzard: "Blizzard";
|
|
39
45
|
readonly BlowingSnow: "BlowingSnow";
|
|
40
|
-
readonly MixedRainAndSleet: "MixedRainAndSleet";
|
|
41
|
-
readonly MixedRainAndSnow: "MixedRainAndSnow";
|
|
42
|
-
readonly MixedRainfall: "MixedRainfall";
|
|
43
|
-
readonly MixedSnowAndSleet: "MixedSnowAndSleet";
|
|
44
|
-
readonly Sleet: "Sleet";
|
|
45
46
|
readonly FreezingDrizzle: "FreezingDrizzle";
|
|
46
47
|
readonly FreezingRain: "FreezingRain";
|
|
47
|
-
readonly
|
|
48
|
-
readonly Hail: "Hail";
|
|
49
|
-
readonly ScatteredThunderstorms: "ScatteredThunderstorms";
|
|
50
|
-
readonly IsolatedThunderstorms: "IsolatedThunderstorms";
|
|
51
|
-
readonly Thunderstorm: "Thunderstorm";
|
|
52
|
-
readonly SevereThunderstorm: "SevereThunderstorm";
|
|
48
|
+
readonly HeavySnow: "HeavySnow";
|
|
53
49
|
readonly Hurricane: "Hurricane";
|
|
54
|
-
readonly Tornado: "Tornado";
|
|
55
50
|
readonly TropicalStorm: "TropicalStorm";
|
|
56
|
-
readonly Hot: "Hot";
|
|
57
51
|
readonly Unknown: "Unknown";
|
|
58
52
|
};
|
|
59
53
|
export type WeatherConditionCode = typeof WeatherConditionCode[keyof typeof WeatherConditionCode];
|
|
@@ -17,45 +17,39 @@
|
|
|
17
17
|
*/
|
|
18
18
|
export const WeatherConditionCode = {
|
|
19
19
|
Clear: 'Clear',
|
|
20
|
-
MostlyClear: 'MostlyClear',
|
|
21
|
-
PartlyCloudy: 'PartlyCloudy',
|
|
22
|
-
MostlyCloudy: 'MostlyCloudy',
|
|
23
20
|
Cloudy: 'Cloudy',
|
|
24
|
-
|
|
25
|
-
Fog: 'Fog',
|
|
21
|
+
Foggy: 'Foggy',
|
|
26
22
|
Haze: 'Haze',
|
|
27
|
-
|
|
23
|
+
MostlyClear: 'MostlyClear',
|
|
24
|
+
MostlyCloudy: 'MostlyCloudy',
|
|
25
|
+
PartlyCloudy: 'PartlyCloudy',
|
|
26
|
+
Smoky: 'Smoky',
|
|
27
|
+
BlowingDust: 'BlowingDust',
|
|
28
28
|
Breezy: 'Breezy',
|
|
29
29
|
Windy: 'Windy',
|
|
30
30
|
Drizzle: 'Drizzle',
|
|
31
|
-
Rain: 'Rain',
|
|
32
|
-
Showers: 'Showers',
|
|
33
|
-
ScatteredShowers: 'ScatteredShowers',
|
|
34
31
|
HeavyRain: 'HeavyRain',
|
|
32
|
+
IsolatedThunderstorms: 'IsolatedThunderstorms',
|
|
33
|
+
Rain: 'Rain',
|
|
34
|
+
SunShowers: 'SunShowers',
|
|
35
|
+
ScatteredThunderstorms: 'ScatteredThunderstorms',
|
|
36
|
+
StrongStorms: 'StrongStorms',
|
|
37
|
+
Thunderstorms: 'Thunderstorms',
|
|
38
|
+
Frigid: 'Frigid',
|
|
39
|
+
Hail: 'Hail',
|
|
40
|
+
Hot: 'Hot',
|
|
35
41
|
Flurries: 'Flurries',
|
|
42
|
+
Sleet: 'Sleet',
|
|
36
43
|
Snow: 'Snow',
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
HeavySnow: 'HeavySnow',
|
|
44
|
+
SunFlurries: 'SunFlurries',
|
|
45
|
+
WintryMix: 'WintryMix',
|
|
40
46
|
Blizzard: 'Blizzard',
|
|
41
47
|
BlowingSnow: 'BlowingSnow',
|
|
42
|
-
MixedRainAndSleet: 'MixedRainAndSleet',
|
|
43
|
-
MixedRainAndSnow: 'MixedRainAndSnow',
|
|
44
|
-
MixedRainfall: 'MixedRainfall',
|
|
45
|
-
MixedSnowAndSleet: 'MixedSnowAndSleet',
|
|
46
|
-
Sleet: 'Sleet',
|
|
47
48
|
FreezingDrizzle: 'FreezingDrizzle',
|
|
48
49
|
FreezingRain: 'FreezingRain',
|
|
49
|
-
|
|
50
|
-
Hail: 'Hail',
|
|
51
|
-
ScatteredThunderstorms: 'ScatteredThunderstorms',
|
|
52
|
-
IsolatedThunderstorms: 'IsolatedThunderstorms',
|
|
53
|
-
Thunderstorm: 'Thunderstorm',
|
|
54
|
-
SevereThunderstorm: 'SevereThunderstorm',
|
|
50
|
+
HeavySnow: 'HeavySnow',
|
|
55
51
|
Hurricane: 'Hurricane',
|
|
56
|
-
Tornado: 'Tornado',
|
|
57
52
|
TropicalStorm: 'TropicalStorm',
|
|
58
|
-
Hot: 'Hot',
|
|
59
53
|
Unknown: 'Unknown'
|
|
60
54
|
};
|
|
61
55
|
export function instanceOfWeatherConditionCode(value) {
|