@mtnmanager/sdk 1.6.0 → 1.7.1
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/apis/MtnManagerApi.d.ts +81 -0
- package/dist/apis/MtnManagerApi.js +88 -0
- package/dist/esm/apis/MtnManagerApi.d.ts +81 -0
- package/dist/esm/apis/MtnManagerApi.js +88 -0
- package/dist/esm/models/FullReport.d.ts +8 -0
- package/dist/esm/models/FullReport.js +3 -0
- package/dist/esm/models/MarkerIcon.d.ts +1 -0
- package/dist/esm/models/MarkerIcon.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/esm/models/TrailMapElementOneOf6.js +5 -8
- package/dist/esm/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/esm/models/TrailMapElementOneOf7.js +76 -0
- package/dist/esm/models/Webcam.d.ts +122 -0
- package/dist/esm/models/Webcam.js +87 -0
- package/dist/esm/models/WebcamHistoryFrame.d.ts +51 -0
- package/dist/esm/models/WebcamHistoryFrame.js +55 -0
- package/dist/esm/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/esm/models/WebcamHistoryQuery.js +43 -0
- package/dist/esm/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/esm/models/WebcamHistoryResponse.js +48 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/FullReport.d.ts +8 -0
- package/dist/models/FullReport.js +3 -0
- package/dist/models/MarkerIcon.d.ts +1 -0
- package/dist/models/MarkerIcon.js +2 -1
- package/dist/models/TrailMapElementOneOf6.d.ts +4 -9
- package/dist/models/TrailMapElementOneOf6.js +5 -8
- package/dist/models/TrailMapElementOneOf7.d.ts +88 -0
- package/dist/models/TrailMapElementOneOf7.js +84 -0
- package/dist/models/Webcam.d.ts +122 -0
- package/dist/models/Webcam.js +94 -0
- package/dist/models/WebcamHistoryFrame.d.ts +51 -0
- package/dist/models/WebcamHistoryFrame.js +62 -0
- package/dist/models/WebcamHistoryQuery.d.ts +38 -0
- package/dist/models/WebcamHistoryQuery.js +50 -0
- package/dist/models/WebcamHistoryResponse.d.ts +39 -0
- package/dist/models/WebcamHistoryResponse.js +55 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MtnManager
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -67,6 +67,8 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
67
67
|
*MtnManagerApi* | [**getTerrainParks**](docs/MtnManagerApi.md#getterrainparks) | **GET** /api/v1/report/terrain-parks | Get terrain parks
|
|
68
68
|
*MtnManagerApi* | [**getTrailMaps**](docs/MtnManagerApi.md#gettrailmaps) | **GET** /api/v1/report/trail-maps | Get trail maps
|
|
69
69
|
*MtnManagerApi* | [**getWeather**](docs/MtnManagerApi.md#getweather) | **GET** /api/v1/report/weather | Get weather
|
|
70
|
+
*MtnManagerApi* | [**getWebcamHistory**](docs/MtnManagerApi.md#getwebcamhistory) | **GET** /api/v1/report/webcam/{uuid}/history | Get webcam history
|
|
71
|
+
*MtnManagerApi* | [**getWebcams**](docs/MtnManagerApi.md#getwebcams) | **GET** /api/v1/report/webcams | Get webcams
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
### Models
|
|
@@ -134,10 +136,15 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
134
136
|
- [TrailMapElementOneOf4](docs/TrailMapElementOneOf4.md)
|
|
135
137
|
- [TrailMapElementOneOf5](docs/TrailMapElementOneOf5.md)
|
|
136
138
|
- [TrailMapElementOneOf6](docs/TrailMapElementOneOf6.md)
|
|
139
|
+
- [TrailMapElementOneOf7](docs/TrailMapElementOneOf7.md)
|
|
137
140
|
- [TrailMapSummary](docs/TrailMapSummary.md)
|
|
138
141
|
- [UnitPreference](docs/UnitPreference.md)
|
|
139
142
|
- [Weather](docs/Weather.md)
|
|
140
143
|
- [WeatherConditionCode](docs/WeatherConditionCode.md)
|
|
144
|
+
- [Webcam](docs/Webcam.md)
|
|
145
|
+
- [WebcamHistoryFrame](docs/WebcamHistoryFrame.md)
|
|
146
|
+
- [WebcamHistoryQuery](docs/WebcamHistoryQuery.md)
|
|
147
|
+
- [WebcamHistoryResponse](docs/WebcamHistoryResponse.md)
|
|
141
148
|
|
|
142
149
|
### Authorization
|
|
143
150
|
|
|
@@ -22,6 +22,8 @@ import { type SummerTrail } from '../models/SummerTrail';
|
|
|
22
22
|
import { type TerrainPark } from '../models/TerrainPark';
|
|
23
23
|
import { type TrailMapSummary } from '../models/TrailMapSummary';
|
|
24
24
|
import { type Weather } from '../models/Weather';
|
|
25
|
+
import { type Webcam } from '../models/Webcam';
|
|
26
|
+
import { type WebcamHistoryResponse } from '../models/WebcamHistoryResponse';
|
|
25
27
|
export interface GetAmenitiesRequest {
|
|
26
28
|
acceptLanguage?: string;
|
|
27
29
|
}
|
|
@@ -58,6 +60,15 @@ export interface GetTrailMapsRequest {
|
|
|
58
60
|
export interface GetWeatherRequest {
|
|
59
61
|
acceptLanguage?: string;
|
|
60
62
|
}
|
|
63
|
+
export interface GetWebcamHistoryRequest {
|
|
64
|
+
uuid: string;
|
|
65
|
+
from?: string | null;
|
|
66
|
+
to?: string | null;
|
|
67
|
+
acceptLanguage?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface GetWebcamsRequest {
|
|
70
|
+
acceptLanguage?: string;
|
|
71
|
+
}
|
|
61
72
|
/**
|
|
62
73
|
* MtnManagerApi - interface
|
|
63
74
|
*
|
|
@@ -305,6 +316,52 @@ export interface MtnManagerApiInterface {
|
|
|
305
316
|
* Get weather
|
|
306
317
|
*/
|
|
307
318
|
getWeather(requestParameters: GetWeatherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weather>>;
|
|
319
|
+
/**
|
|
320
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
321
|
+
* @param {string} uuid Resource UUID
|
|
322
|
+
* @param {string} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
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.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof MtnManagerApiInterface
|
|
327
|
+
*/
|
|
328
|
+
getWebcamHistoryRequestOpts(requestParameters: GetWebcamHistoryRequest): Promise<runtime.RequestOpts>;
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Get webcam history
|
|
332
|
+
* @param {string} uuid Resource UUID
|
|
333
|
+
* @param {string} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
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.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof MtnManagerApiInterface
|
|
339
|
+
*/
|
|
340
|
+
getWebcamHistoryRaw(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebcamHistoryResponse>>;
|
|
341
|
+
/**
|
|
342
|
+
* Get webcam history
|
|
343
|
+
*/
|
|
344
|
+
getWebcamHistory(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebcamHistoryResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* 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.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
* @memberof MtnManagerApiInterface
|
|
350
|
+
*/
|
|
351
|
+
getWebcamsRequestOpts(requestParameters: GetWebcamsRequest): Promise<runtime.RequestOpts>;
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @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.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof MtnManagerApiInterface
|
|
359
|
+
*/
|
|
360
|
+
getWebcamsRaw(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Webcam>>>;
|
|
361
|
+
/**
|
|
362
|
+
* Get webcams
|
|
363
|
+
*/
|
|
364
|
+
getWebcams(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Webcam>>;
|
|
308
365
|
}
|
|
309
366
|
/**
|
|
310
367
|
*
|
|
@@ -454,4 +511,28 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
454
511
|
* Get weather
|
|
455
512
|
*/
|
|
456
513
|
getWeather(requestParameters?: GetWeatherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weather>>;
|
|
514
|
+
/**
|
|
515
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
516
|
+
*/
|
|
517
|
+
getWebcamHistoryRequestOpts(requestParameters: GetWebcamHistoryRequest): Promise<runtime.RequestOpts>;
|
|
518
|
+
/**
|
|
519
|
+
* Get webcam history
|
|
520
|
+
*/
|
|
521
|
+
getWebcamHistoryRaw(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebcamHistoryResponse>>;
|
|
522
|
+
/**
|
|
523
|
+
* Get webcam history
|
|
524
|
+
*/
|
|
525
|
+
getWebcamHistory(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebcamHistoryResponse>;
|
|
526
|
+
/**
|
|
527
|
+
* Creates request options for getWebcams without sending the request
|
|
528
|
+
*/
|
|
529
|
+
getWebcamsRequestOpts(requestParameters: GetWebcamsRequest): Promise<runtime.RequestOpts>;
|
|
530
|
+
/**
|
|
531
|
+
* Get webcams
|
|
532
|
+
*/
|
|
533
|
+
getWebcamsRaw(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Webcam>>>;
|
|
534
|
+
/**
|
|
535
|
+
* Get webcams
|
|
536
|
+
*/
|
|
537
|
+
getWebcams(requestParameters?: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Webcam>>;
|
|
457
538
|
}
|
|
@@ -36,6 +36,8 @@ const SummerTrail_1 = require("../models/SummerTrail");
|
|
|
36
36
|
const TerrainPark_1 = require("../models/TerrainPark");
|
|
37
37
|
const TrailMapSummary_1 = require("../models/TrailMapSummary");
|
|
38
38
|
const Weather_1 = require("../models/Weather");
|
|
39
|
+
const Webcam_1 = require("../models/Webcam");
|
|
40
|
+
const WebcamHistoryResponse_1 = require("../models/WebcamHistoryResponse");
|
|
39
41
|
/**
|
|
40
42
|
*
|
|
41
43
|
*/
|
|
@@ -496,5 +498,91 @@ class MtnManagerApi extends runtime.BaseAPI {
|
|
|
496
498
|
return yield response.value();
|
|
497
499
|
});
|
|
498
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
503
|
+
*/
|
|
504
|
+
getWebcamHistoryRequestOpts(requestParameters) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
506
|
+
if (requestParameters['uuid'] == null) {
|
|
507
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getWebcamHistory().');
|
|
508
|
+
}
|
|
509
|
+
const queryParameters = {};
|
|
510
|
+
if (requestParameters['from'] != null) {
|
|
511
|
+
queryParameters['from'] = requestParameters['from'];
|
|
512
|
+
}
|
|
513
|
+
if (requestParameters['to'] != null) {
|
|
514
|
+
queryParameters['to'] = requestParameters['to'];
|
|
515
|
+
}
|
|
516
|
+
const headerParameters = {};
|
|
517
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
518
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
519
|
+
}
|
|
520
|
+
let urlPath = `/api/v1/report/webcam/{uuid}/history`;
|
|
521
|
+
urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
|
|
522
|
+
return {
|
|
523
|
+
path: urlPath,
|
|
524
|
+
method: 'GET',
|
|
525
|
+
headers: headerParameters,
|
|
526
|
+
query: queryParameters,
|
|
527
|
+
};
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Get webcam history
|
|
532
|
+
*/
|
|
533
|
+
getWebcamHistoryRaw(requestParameters, initOverrides) {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
const requestOptions = yield this.getWebcamHistoryRequestOpts(requestParameters);
|
|
536
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
537
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebcamHistoryResponse_1.WebcamHistoryResponseFromJSON)(jsonValue));
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Get webcam history
|
|
542
|
+
*/
|
|
543
|
+
getWebcamHistory(requestParameters, initOverrides) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
const response = yield this.getWebcamHistoryRaw(requestParameters, initOverrides);
|
|
546
|
+
return yield response.value();
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Creates request options for getWebcams without sending the request
|
|
551
|
+
*/
|
|
552
|
+
getWebcamsRequestOpts(requestParameters) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
const queryParameters = {};
|
|
555
|
+
const headerParameters = {};
|
|
556
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
557
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
558
|
+
}
|
|
559
|
+
let urlPath = `/api/v1/report/webcams`;
|
|
560
|
+
return {
|
|
561
|
+
path: urlPath,
|
|
562
|
+
method: 'GET',
|
|
563
|
+
headers: headerParameters,
|
|
564
|
+
query: queryParameters,
|
|
565
|
+
};
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Get webcams
|
|
570
|
+
*/
|
|
571
|
+
getWebcamsRaw(requestParameters, initOverrides) {
|
|
572
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
573
|
+
const requestOptions = yield this.getWebcamsRequestOpts(requestParameters);
|
|
574
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
575
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Webcam_1.WebcamFromJSON));
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Get webcams
|
|
580
|
+
*/
|
|
581
|
+
getWebcams() {
|
|
582
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
583
|
+
const response = yield this.getWebcamsRaw(requestParameters, initOverrides);
|
|
584
|
+
return yield response.value();
|
|
585
|
+
});
|
|
586
|
+
}
|
|
499
587
|
}
|
|
500
588
|
exports.MtnManagerApi = MtnManagerApi;
|
|
@@ -22,6 +22,8 @@ import { type SummerTrail } from '../models/SummerTrail';
|
|
|
22
22
|
import { type TerrainPark } from '../models/TerrainPark';
|
|
23
23
|
import { type TrailMapSummary } from '../models/TrailMapSummary';
|
|
24
24
|
import { type Weather } from '../models/Weather';
|
|
25
|
+
import { type Webcam } from '../models/Webcam';
|
|
26
|
+
import { type WebcamHistoryResponse } from '../models/WebcamHistoryResponse';
|
|
25
27
|
export interface GetAmenitiesRequest {
|
|
26
28
|
acceptLanguage?: string;
|
|
27
29
|
}
|
|
@@ -58,6 +60,15 @@ export interface GetTrailMapsRequest {
|
|
|
58
60
|
export interface GetWeatherRequest {
|
|
59
61
|
acceptLanguage?: string;
|
|
60
62
|
}
|
|
63
|
+
export interface GetWebcamHistoryRequest {
|
|
64
|
+
uuid: string;
|
|
65
|
+
from?: string | null;
|
|
66
|
+
to?: string | null;
|
|
67
|
+
acceptLanguage?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface GetWebcamsRequest {
|
|
70
|
+
acceptLanguage?: string;
|
|
71
|
+
}
|
|
61
72
|
/**
|
|
62
73
|
* MtnManagerApi - interface
|
|
63
74
|
*
|
|
@@ -305,6 +316,52 @@ export interface MtnManagerApiInterface {
|
|
|
305
316
|
* Get weather
|
|
306
317
|
*/
|
|
307
318
|
getWeather(requestParameters: GetWeatherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weather>>;
|
|
319
|
+
/**
|
|
320
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
321
|
+
* @param {string} uuid Resource UUID
|
|
322
|
+
* @param {string} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
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.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
* @memberof MtnManagerApiInterface
|
|
327
|
+
*/
|
|
328
|
+
getWebcamHistoryRequestOpts(requestParameters: GetWebcamHistoryRequest): Promise<runtime.RequestOpts>;
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Get webcam history
|
|
332
|
+
* @param {string} uuid Resource UUID
|
|
333
|
+
* @param {string} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
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.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof MtnManagerApiInterface
|
|
339
|
+
*/
|
|
340
|
+
getWebcamHistoryRaw(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebcamHistoryResponse>>;
|
|
341
|
+
/**
|
|
342
|
+
* Get webcam history
|
|
343
|
+
*/
|
|
344
|
+
getWebcamHistory(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebcamHistoryResponse>;
|
|
345
|
+
/**
|
|
346
|
+
* 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.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
* @memberof MtnManagerApiInterface
|
|
350
|
+
*/
|
|
351
|
+
getWebcamsRequestOpts(requestParameters: GetWebcamsRequest): Promise<runtime.RequestOpts>;
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @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.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof MtnManagerApiInterface
|
|
359
|
+
*/
|
|
360
|
+
getWebcamsRaw(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Webcam>>>;
|
|
361
|
+
/**
|
|
362
|
+
* Get webcams
|
|
363
|
+
*/
|
|
364
|
+
getWebcams(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Webcam>>;
|
|
308
365
|
}
|
|
309
366
|
/**
|
|
310
367
|
*
|
|
@@ -454,4 +511,28 @@ export declare class MtnManagerApi extends runtime.BaseAPI implements MtnManager
|
|
|
454
511
|
* Get weather
|
|
455
512
|
*/
|
|
456
513
|
getWeather(requestParameters?: GetWeatherRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Weather>>;
|
|
514
|
+
/**
|
|
515
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
516
|
+
*/
|
|
517
|
+
getWebcamHistoryRequestOpts(requestParameters: GetWebcamHistoryRequest): Promise<runtime.RequestOpts>;
|
|
518
|
+
/**
|
|
519
|
+
* Get webcam history
|
|
520
|
+
*/
|
|
521
|
+
getWebcamHistoryRaw(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebcamHistoryResponse>>;
|
|
522
|
+
/**
|
|
523
|
+
* Get webcam history
|
|
524
|
+
*/
|
|
525
|
+
getWebcamHistory(requestParameters: GetWebcamHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebcamHistoryResponse>;
|
|
526
|
+
/**
|
|
527
|
+
* Creates request options for getWebcams without sending the request
|
|
528
|
+
*/
|
|
529
|
+
getWebcamsRequestOpts(requestParameters: GetWebcamsRequest): Promise<runtime.RequestOpts>;
|
|
530
|
+
/**
|
|
531
|
+
* Get webcams
|
|
532
|
+
*/
|
|
533
|
+
getWebcamsRaw(requestParameters: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Webcam>>>;
|
|
534
|
+
/**
|
|
535
|
+
* Get webcams
|
|
536
|
+
*/
|
|
537
|
+
getWebcams(requestParameters?: GetWebcamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Webcam>>;
|
|
457
538
|
}
|
|
@@ -33,6 +33,8 @@ import { SummerTrailFromJSON, } from '../models/SummerTrail';
|
|
|
33
33
|
import { TerrainParkFromJSON, } from '../models/TerrainPark';
|
|
34
34
|
import { TrailMapSummaryFromJSON, } from '../models/TrailMapSummary';
|
|
35
35
|
import { WeatherFromJSON, } from '../models/Weather';
|
|
36
|
+
import { WebcamFromJSON, } from '../models/Webcam';
|
|
37
|
+
import { WebcamHistoryResponseFromJSON, } from '../models/WebcamHistoryResponse';
|
|
36
38
|
/**
|
|
37
39
|
*
|
|
38
40
|
*/
|
|
@@ -493,4 +495,90 @@ export class MtnManagerApi extends runtime.BaseAPI {
|
|
|
493
495
|
return yield response.value();
|
|
494
496
|
});
|
|
495
497
|
}
|
|
498
|
+
/**
|
|
499
|
+
* Creates request options for getWebcamHistory without sending the request
|
|
500
|
+
*/
|
|
501
|
+
getWebcamHistoryRequestOpts(requestParameters) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
if (requestParameters['uuid'] == null) {
|
|
504
|
+
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getWebcamHistory().');
|
|
505
|
+
}
|
|
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
|
+
const headerParameters = {};
|
|
514
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
515
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
516
|
+
}
|
|
517
|
+
let urlPath = `/api/v1/report/webcam/{uuid}/history`;
|
|
518
|
+
urlPath = urlPath.replace('{uuid}', encodeURIComponent(String(requestParameters['uuid'])));
|
|
519
|
+
return {
|
|
520
|
+
path: urlPath,
|
|
521
|
+
method: 'GET',
|
|
522
|
+
headers: headerParameters,
|
|
523
|
+
query: queryParameters,
|
|
524
|
+
};
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Get webcam history
|
|
529
|
+
*/
|
|
530
|
+
getWebcamHistoryRaw(requestParameters, initOverrides) {
|
|
531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
532
|
+
const requestOptions = yield this.getWebcamHistoryRequestOpts(requestParameters);
|
|
533
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
534
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WebcamHistoryResponseFromJSON(jsonValue));
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Get webcam history
|
|
539
|
+
*/
|
|
540
|
+
getWebcamHistory(requestParameters, initOverrides) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
const response = yield this.getWebcamHistoryRaw(requestParameters, initOverrides);
|
|
543
|
+
return yield response.value();
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* Creates request options for getWebcams without sending the request
|
|
548
|
+
*/
|
|
549
|
+
getWebcamsRequestOpts(requestParameters) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
551
|
+
const queryParameters = {};
|
|
552
|
+
const headerParameters = {};
|
|
553
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
554
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
555
|
+
}
|
|
556
|
+
let urlPath = `/api/v1/report/webcams`;
|
|
557
|
+
return {
|
|
558
|
+
path: urlPath,
|
|
559
|
+
method: 'GET',
|
|
560
|
+
headers: headerParameters,
|
|
561
|
+
query: queryParameters,
|
|
562
|
+
};
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Get webcams
|
|
567
|
+
*/
|
|
568
|
+
getWebcamsRaw(requestParameters, initOverrides) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
570
|
+
const requestOptions = yield this.getWebcamsRequestOpts(requestParameters);
|
|
571
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
572
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WebcamFromJSON));
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Get webcams
|
|
577
|
+
*/
|
|
578
|
+
getWebcams() {
|
|
579
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
580
|
+
const response = yield this.getWebcamsRaw(requestParameters, initOverrides);
|
|
581
|
+
return yield response.value();
|
|
582
|
+
});
|
|
583
|
+
}
|
|
496
584
|
}
|
|
@@ -14,6 +14,7 @@ import type { Weather } from './Weather';
|
|
|
14
14
|
import type { ResortInfo } from './ResortInfo';
|
|
15
15
|
import type { ParkingLot } from './ParkingLot';
|
|
16
16
|
import type { SnowReport } from './SnowReport';
|
|
17
|
+
import type { Webcam } from './Webcam';
|
|
17
18
|
import type { Overview } from './Overview';
|
|
18
19
|
import type { Run } from './Run';
|
|
19
20
|
import type { SummerTrail } from './SummerTrail';
|
|
@@ -95,6 +96,13 @@ export interface FullReport {
|
|
|
95
96
|
* @memberof FullReport
|
|
96
97
|
*/
|
|
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>;
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
108
|
* Check if a given object implements the FullReport interface.
|
|
@@ -16,6 +16,7 @@ import { WeatherFromJSON, WeatherToJSON, } from './Weather';
|
|
|
16
16
|
import { ResortInfoFromJSON, ResortInfoToJSON, } from './ResortInfo';
|
|
17
17
|
import { ParkingLotFromJSON, ParkingLotToJSON, } from './ParkingLot';
|
|
18
18
|
import { SnowReportFromJSON, SnowReportToJSON, } from './SnowReport';
|
|
19
|
+
import { WebcamFromJSON, WebcamToJSON, } from './Webcam';
|
|
19
20
|
import { OverviewFromJSON, OverviewToJSON, } from './Overview';
|
|
20
21
|
import { RunFromJSON, RunToJSON, } from './Run';
|
|
21
22
|
import { SummerTrailFromJSON, SummerTrailToJSON, } from './SummerTrail';
|
|
@@ -63,6 +64,7 @@ export function FullReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
64
|
'summerTrails': (json['summer_trails'].map(SummerTrailFromJSON)),
|
|
64
65
|
'hours': OperatingHoursFromJSON(json['hours']),
|
|
65
66
|
'weather': json['weather'] == null ? undefined : (json['weather'].map(WeatherFromJSON)),
|
|
67
|
+
'webcams': json['webcams'] == null ? undefined : (json['webcams'].map(WebcamFromJSON)),
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
70
|
export function FullReportToJSON(json) {
|
|
@@ -83,5 +85,6 @@ export function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
'summer_trails': (value['summerTrails'].map(SummerTrailToJSON)),
|
|
84
86
|
'hours': OperatingHoursToJSON(value['hours']),
|
|
85
87
|
'weather': value['weather'] == null ? undefined : (value['weather'].map(WeatherToJSON)),
|
|
88
|
+
'webcams': value['webcams'] == null ? undefined : (value['webcams'].map(WebcamToJSON)),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -36,6 +36,7 @@ export declare const MarkerIcon: {
|
|
|
36
36
|
readonly Retail: "retail";
|
|
37
37
|
readonly Atm: "atm";
|
|
38
38
|
readonly Star: "star";
|
|
39
|
+
readonly Webcam: "webcam";
|
|
39
40
|
};
|
|
40
41
|
export type MarkerIcon = typeof MarkerIcon[keyof typeof MarkerIcon];
|
|
41
42
|
export declare function instanceOfMarkerIcon(value: any): boolean;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { Webcam } from './Webcam';
|
|
12
13
|
import type { MarkerIcon } from './MarkerIcon';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -54,16 +55,10 @@ export interface TrailMapElementOneOf6 {
|
|
|
54
55
|
color?: string | null;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
|
-
* @type {
|
|
58
|
-
* @memberof TrailMapElementOneOf6
|
|
59
|
-
*/
|
|
60
|
-
label: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
58
|
+
* @type {Webcam}
|
|
64
59
|
* @memberof TrailMapElementOneOf6
|
|
65
60
|
*/
|
|
66
|
-
|
|
61
|
+
webcam?: Webcam | null;
|
|
67
62
|
/**
|
|
68
63
|
*
|
|
69
64
|
* @type {string}
|
|
@@ -75,7 +70,7 @@ export interface TrailMapElementOneOf6 {
|
|
|
75
70
|
* @export
|
|
76
71
|
*/
|
|
77
72
|
export declare const TrailMapElementOneOf6TypeEnum: {
|
|
78
|
-
readonly
|
|
73
|
+
readonly WebcamMarker: "webcam_marker";
|
|
79
74
|
};
|
|
80
75
|
export type TrailMapElementOneOf6TypeEnum = typeof TrailMapElementOneOf6TypeEnum[keyof typeof TrailMapElementOneOf6TypeEnum];
|
|
81
76
|
/**
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { WebcamFromJSON, WebcamToJSON, } from './Webcam';
|
|
14
15
|
import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
18
19
|
export const TrailMapElementOneOf6TypeEnum = {
|
|
19
|
-
|
|
20
|
+
WebcamMarker: 'webcam_marker'
|
|
20
21
|
};
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the TrailMapElementOneOf6 interface.
|
|
@@ -24,7 +25,7 @@ export const TrailMapElementOneOf6TypeEnum = {
|
|
|
24
25
|
export function instanceOfTrailMapElementOneOf6(value) {
|
|
25
26
|
if (!('type' in value) || value['type'] === undefined)
|
|
26
27
|
return false;
|
|
27
|
-
if (value['type'] !== '
|
|
28
|
+
if (value['type'] !== 'webcam_marker')
|
|
28
29
|
return false;
|
|
29
30
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
30
31
|
return false;
|
|
@@ -32,8 +33,6 @@ export function instanceOfTrailMapElementOneOf6(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('y' in value) || value['y'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (!('label' in value) || value['label'] === undefined)
|
|
36
|
-
return false;
|
|
37
36
|
return true;
|
|
38
37
|
}
|
|
39
38
|
export function TrailMapElementOneOf6FromJSON(json) {
|
|
@@ -50,8 +49,7 @@ export function TrailMapElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
49
|
'y': json['y'],
|
|
51
50
|
'icon': json['icon'] == null ? undefined : MarkerIconFromJSON(json['icon']),
|
|
52
51
|
'color': json['color'] == null ? undefined : json['color'],
|
|
53
|
-
'
|
|
54
|
-
'searchable': json['searchable'] == null ? undefined : json['searchable'],
|
|
52
|
+
'webcam': json['webcam'] == null ? undefined : WebcamFromJSON(json['webcam']),
|
|
55
53
|
'groupLabel': json['group_label'] == null ? undefined : json['group_label'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -69,8 +67,7 @@ export function TrailMapElementOneOf6ToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
69
67
|
'y': value['y'],
|
|
70
68
|
'icon': MarkerIconToJSON(value['icon']),
|
|
71
69
|
'color': value['color'],
|
|
72
|
-
'
|
|
73
|
-
'searchable': value['searchable'],
|
|
70
|
+
'webcam': WebcamToJSON(value['webcam']),
|
|
74
71
|
'group_label': value['groupLabel'],
|
|
75
72
|
};
|
|
76
73
|
}
|