@mtnmanager/sdk 1.8.4 → 1.9.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/README.md +1 -1
- package/dist/apis/MtnManagerApi.d.ts +0 -6
- package/dist/apis/MtnManagerApi.js +0 -6
- package/dist/esm/apis/MtnManagerApi.d.ts +0 -6
- package/dist/esm/apis/MtnManagerApi.js +0 -6
- package/dist/esm/models/FullReport.d.ts +2 -18
- package/dist/esm/models/FullReport.js +0 -6
- package/dist/esm/models/Language.d.ts +32 -0
- package/dist/esm/models/Language.js +50 -0
- package/dist/esm/models/PowderAlerts.d.ts +9 -2
- package/dist/esm/models/PowderAlerts.js +2 -0
- package/dist/esm/models/ResortInfo.d.ts +8 -0
- package/dist/esm/models/ResortInfo.js +5 -0
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/FullReport.d.ts +2 -18
- package/dist/models/FullReport.js +0 -6
- package/dist/models/Language.d.ts +32 -0
- package/dist/models/Language.js +58 -0
- package/dist/models/PowderAlerts.d.ts +9 -2
- package/dist/models/PowderAlerts.js +2 -0
- package/dist/models/ResortInfo.d.ts +8 -0
- package/dist/models/ResortInfo.js +5 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/dist/esm/models/WebcamHistoryQuery.d.ts +0 -38
- package/dist/esm/models/WebcamHistoryQuery.js +0 -43
- package/dist/models/WebcamHistoryQuery.d.ts +0 -38
- package/dist/models/WebcamHistoryQuery.js +0 -50
package/README.md
CHANGED
|
@@ -99,6 +99,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
99
99
|
- [HourlyForecastImperial](docs/HourlyForecastImperial.md)
|
|
100
100
|
- [HourlyForecastMetric](docs/HourlyForecastMetric.md)
|
|
101
101
|
- [LabelOffset](docs/LabelOffset.md)
|
|
102
|
+
- [Language](docs/Language.md)
|
|
102
103
|
- [Lift](docs/Lift.md)
|
|
103
104
|
- [LiftStatus](docs/LiftStatus.md)
|
|
104
105
|
- [LiftType](docs/LiftType.md)
|
|
@@ -157,7 +158,6 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
157
158
|
- [WeatherConditionCode](docs/WeatherConditionCode.md)
|
|
158
159
|
- [Webcam](docs/Webcam.md)
|
|
159
160
|
- [WebcamHistoryFrame](docs/WebcamHistoryFrame.md)
|
|
160
|
-
- [WebcamHistoryQuery](docs/WebcamHistoryQuery.md)
|
|
161
161
|
- [WebcamHistoryResponse](docs/WebcamHistoryResponse.md)
|
|
162
162
|
|
|
163
163
|
### Authorization
|
|
@@ -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 {
|
|
@@ -319,8 +317,6 @@ 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} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
323
|
-
* @param {string} [to] Inclusive upper bound on `captured_at` (RFC 3339).
|
|
324
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
|
|
@@ -330,8 +326,6 @@ export interface MtnManagerApiInterface {
|
|
|
330
326
|
*
|
|
331
327
|
* @summary Get webcam history
|
|
332
328
|
* @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
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}
|
|
@@ -507,12 +507,6 @@ class MtnManagerApi extends runtime.BaseAPI {
|
|
|
507
507
|
throw new runtime.RequiredError('uuid', 'Required parameter "uuid" was null or undefined when calling getWebcamHistory().');
|
|
508
508
|
}
|
|
509
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
510
|
const headerParameters = {};
|
|
517
511
|
if (requestParameters['acceptLanguage'] != null) {
|
|
518
512
|
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
@@ -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 {
|
|
@@ -319,8 +317,6 @@ 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} [from] Inclusive lower bound on `captured_at` (RFC 3339).
|
|
323
|
-
* @param {string} [to] Inclusive upper bound on `captured_at` (RFC 3339).
|
|
324
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
|
|
@@ -330,8 +326,6 @@ export interface MtnManagerApiInterface {
|
|
|
330
326
|
*
|
|
331
327
|
* @summary Get webcam history
|
|
332
328
|
* @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
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}
|
|
@@ -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,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
|
+
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Guest powder alerts the resort offers. Both are `false`
|
|
14
|
-
* doesn't offer powder alerts.
|
|
13
|
+
* Guest powder alerts the resort offers. Both channels are `false` (and
|
|
14
|
+
* `privacy_policy_url` is `null`) when the resort doesn't offer powder alerts.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface PowderAlerts
|
|
17
17
|
*/
|
|
@@ -29,6 +29,13 @@ export interface PowderAlerts {
|
|
|
29
29
|
* @memberof PowderAlerts
|
|
30
30
|
*/
|
|
31
31
|
push: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Privacy policy to show guests when they sign up for powder alerts.
|
|
34
|
+
* Present whenever at least one channel is offered.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PowderAlerts
|
|
37
|
+
*/
|
|
38
|
+
privacyPolicyUrl?: string | null;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the PowderAlerts interface.
|
|
@@ -31,6 +31,7 @@ export function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
return {
|
|
32
32
|
'text': json['text'],
|
|
33
33
|
'push': json['push'],
|
|
34
|
+
'privacyPolicyUrl': json['privacy_policy_url'] === undefined ? undefined : json['privacy_policy_url'] === null ? null : json['privacy_policy_url'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
export function PowderAlertsToJSON(json) {
|
|
@@ -43,5 +44,6 @@ export function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
44
|
return {
|
|
44
45
|
'text': value['text'],
|
|
45
46
|
'push': value['push'],
|
|
47
|
+
'privacy_policy_url': value['privacyPolicyUrl'],
|
|
46
48
|
};
|
|
47
49
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UnitPreference } from './UnitPreference';
|
|
13
|
+
import type { Language } from './Language';
|
|
13
14
|
import type { Region } from './Region';
|
|
14
15
|
/**
|
|
15
16
|
* Contains general information about the ski resort and its MtnManager account.
|
|
@@ -53,6 +54,13 @@ export interface ResortInfo {
|
|
|
53
54
|
* @memberof ResortInfo
|
|
54
55
|
*/
|
|
55
56
|
unitPreference: UnitPreference;
|
|
57
|
+
/**
|
|
58
|
+
* The language human-readable strings are served in when the request's
|
|
59
|
+
* `Accept-Language` names no supported language.
|
|
60
|
+
* @type {Language}
|
|
61
|
+
* @memberof ResortInfo
|
|
62
|
+
*/
|
|
63
|
+
defaultLanguage: Language;
|
|
56
64
|
/**
|
|
57
65
|
* Full public URL to the resort's logo image. `null` if no logo is set.
|
|
58
66
|
* @type {string}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { UnitPreferenceFromJSON, UnitPreferenceToJSON, } from './UnitPreference';
|
|
15
|
+
import { LanguageFromJSON, LanguageToJSON, } from './Language';
|
|
15
16
|
import { RegionFromJSON, RegionToJSON, } from './Region';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the ResortInfo interface.
|
|
@@ -29,6 +30,8 @@ export function instanceOfResortInfo(value) {
|
|
|
29
30
|
return false;
|
|
30
31
|
if ((!('unitPreference' in value) && !('unit_preference' in value)) || (value['unitPreference'] === undefined && value['unit_preference'] === undefined))
|
|
31
32
|
return false;
|
|
33
|
+
if ((!('defaultLanguage' in value) && !('default_language' in value)) || (value['defaultLanguage'] === undefined && value['default_language'] === undefined))
|
|
34
|
+
return false;
|
|
32
35
|
return true;
|
|
33
36
|
}
|
|
34
37
|
export function ResortInfoFromJSON(json) {
|
|
@@ -45,6 +48,7 @@ export function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
48
|
'timezone': json['timezone'],
|
|
46
49
|
'region': RegionFromJSON(json['region']),
|
|
47
50
|
'unitPreference': UnitPreferenceFromJSON(json['unit_preference']),
|
|
51
|
+
'defaultLanguage': LanguageFromJSON(json['default_language']),
|
|
48
52
|
'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -62,6 +66,7 @@ export function ResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
66
|
'timezone': value['timezone'],
|
|
63
67
|
'region': RegionToJSON(value['region']),
|
|
64
68
|
'unit_preference': UnitPreferenceToJSON(value['unitPreference']),
|
|
69
|
+
'default_language': LanguageToJSON(value['defaultLanguage']),
|
|
65
70
|
'logo_url': value['logoUrl'],
|
|
66
71
|
};
|
|
67
72
|
}
|
|
@@ -24,6 +24,7 @@ export * from './HourlyForecast';
|
|
|
24
24
|
export * from './HourlyForecastImperial';
|
|
25
25
|
export * from './HourlyForecastMetric';
|
|
26
26
|
export * from './LabelOffset';
|
|
27
|
+
export * from './Language';
|
|
27
28
|
export * from './Lift';
|
|
28
29
|
export * from './LiftStatus';
|
|
29
30
|
export * from './LiftType';
|
|
@@ -82,5 +83,4 @@ export * from './Weather';
|
|
|
82
83
|
export * from './WeatherConditionCode';
|
|
83
84
|
export * from './Webcam';
|
|
84
85
|
export * from './WebcamHistoryFrame';
|
|
85
|
-
export * from './WebcamHistoryQuery';
|
|
86
86
|
export * from './WebcamHistoryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from './HourlyForecast';
|
|
|
26
26
|
export * from './HourlyForecastImperial';
|
|
27
27
|
export * from './HourlyForecastMetric';
|
|
28
28
|
export * from './LabelOffset';
|
|
29
|
+
export * from './Language';
|
|
29
30
|
export * from './Lift';
|
|
30
31
|
export * from './LiftStatus';
|
|
31
32
|
export * from './LiftType';
|
|
@@ -84,5 +85,4 @@ export * from './Weather';
|
|
|
84
85
|
export * from './WeatherConditionCode';
|
|
85
86
|
export * from './Webcam';
|
|
86
87
|
export * from './WebcamHistoryFrame';
|
|
87
|
-
export * from './WebcamHistoryQuery';
|
|
88
88
|
export * from './WebcamHistoryResponse';
|
|
@@ -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.
|
|
@@ -19,11 +19,9 @@ exports.FullReportFromJSONTyped = FullReportFromJSONTyped;
|
|
|
19
19
|
exports.FullReportToJSON = FullReportToJSON;
|
|
20
20
|
exports.FullReportToJSONTyped = FullReportToJSONTyped;
|
|
21
21
|
const OperatingHours_1 = require("./OperatingHours");
|
|
22
|
-
const Weather_1 = require("./Weather");
|
|
23
22
|
const ResortInfo_1 = require("./ResortInfo");
|
|
24
23
|
const ParkingLot_1 = require("./ParkingLot");
|
|
25
24
|
const SnowReport_1 = require("./SnowReport");
|
|
26
|
-
const Webcam_1 = require("./Webcam");
|
|
27
25
|
const Overview_1 = require("./Overview");
|
|
28
26
|
const Run_1 = require("./Run");
|
|
29
27
|
const SummerTrail_1 = require("./SummerTrail");
|
|
@@ -70,8 +68,6 @@ function FullReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
68
|
'parkingLots': (json['parking_lots'].map(ParkingLot_1.ParkingLotFromJSON)),
|
|
71
69
|
'summerTrails': (json['summer_trails'].map(SummerTrail_1.SummerTrailFromJSON)),
|
|
72
70
|
'hours': (0, OperatingHours_1.OperatingHoursFromJSON)(json['hours']),
|
|
73
|
-
'weather': json['weather'] == null ? undefined : (json['weather'].map(Weather_1.WeatherFromJSON)),
|
|
74
|
-
'webcams': json['webcams'] == null ? undefined : (json['webcams'].map(Webcam_1.WebcamFromJSON)),
|
|
75
71
|
};
|
|
76
72
|
}
|
|
77
73
|
function FullReportToJSON(json) {
|
|
@@ -91,7 +87,5 @@ function FullReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
87
|
'parking_lots': (value['parkingLots'].map(ParkingLot_1.ParkingLotToJSON)),
|
|
92
88
|
'summer_trails': (value['summerTrails'].map(SummerTrail_1.SummerTrailToJSON)),
|
|
93
89
|
'hours': (0, OperatingHours_1.OperatingHoursToJSON)(value['hours']),
|
|
94
|
-
'weather': value['weather'] == null ? undefined : (value['weather'].map(Weather_1.WeatherToJSON)),
|
|
95
|
-
'webcams': value['webcams'] == null ? undefined : (value['webcams'].map(Webcam_1.WebcamToJSON)),
|
|
96
90
|
};
|
|
97
91
|
}
|
|
@@ -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,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* MtnManager API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@mtnmanager.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Language = void 0;
|
|
17
|
+
exports.instanceOfLanguage = instanceOfLanguage;
|
|
18
|
+
exports.LanguageFromJSON = LanguageFromJSON;
|
|
19
|
+
exports.LanguageFromJSONTyped = LanguageFromJSONTyped;
|
|
20
|
+
exports.LanguageToJSON = LanguageToJSON;
|
|
21
|
+
exports.LanguageToJSONTyped = LanguageToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* A language we localize into. Serializes as its BCP-47 tag (`"en"`, `"fr"`,
|
|
24
|
+
* `"de-CH"`, …), which is also the form a resort's news languages are stored
|
|
25
|
+
* and keyed in, and the label an account's `default_language` is stored as.
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.Language = {
|
|
29
|
+
En: 'en',
|
|
30
|
+
Fr: 'fr',
|
|
31
|
+
De: 'de',
|
|
32
|
+
DeCh: 'de-CH',
|
|
33
|
+
It: 'it',
|
|
34
|
+
Es: 'es',
|
|
35
|
+
UnknownDefaultOpenApi: '11184809'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfLanguage(value) {
|
|
38
|
+
for (const key in exports.Language) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.Language, key)) {
|
|
40
|
+
if (exports.Language[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function LanguageFromJSON(json) {
|
|
48
|
+
return LanguageFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function LanguageFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function LanguageToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function LanguageToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Guest powder alerts the resort offers. Both are `false`
|
|
14
|
-
* doesn't offer powder alerts.
|
|
13
|
+
* Guest powder alerts the resort offers. Both channels are `false` (and
|
|
14
|
+
* `privacy_policy_url` is `null`) when the resort doesn't offer powder alerts.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface PowderAlerts
|
|
17
17
|
*/
|
|
@@ -29,6 +29,13 @@ export interface PowderAlerts {
|
|
|
29
29
|
* @memberof PowderAlerts
|
|
30
30
|
*/
|
|
31
31
|
push: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Privacy policy to show guests when they sign up for powder alerts.
|
|
34
|
+
* Present whenever at least one channel is offered.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PowderAlerts
|
|
37
|
+
*/
|
|
38
|
+
privacyPolicyUrl?: string | null;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the PowderAlerts interface.
|
|
@@ -38,6 +38,7 @@ function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return {
|
|
39
39
|
'text': json['text'],
|
|
40
40
|
'push': json['push'],
|
|
41
|
+
'privacyPolicyUrl': json['privacy_policy_url'] === undefined ? undefined : json['privacy_policy_url'] === null ? null : json['privacy_policy_url'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function PowderAlertsToJSON(json) {
|
|
@@ -50,5 +51,6 @@ function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
51
|
return {
|
|
51
52
|
'text': value['text'],
|
|
52
53
|
'push': value['push'],
|
|
54
|
+
'privacy_policy_url': value['privacyPolicyUrl'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { UnitPreference } from './UnitPreference';
|
|
13
|
+
import type { Language } from './Language';
|
|
13
14
|
import type { Region } from './Region';
|
|
14
15
|
/**
|
|
15
16
|
* Contains general information about the ski resort and its MtnManager account.
|
|
@@ -53,6 +54,13 @@ export interface ResortInfo {
|
|
|
53
54
|
* @memberof ResortInfo
|
|
54
55
|
*/
|
|
55
56
|
unitPreference: UnitPreference;
|
|
57
|
+
/**
|
|
58
|
+
* The language human-readable strings are served in when the request's
|
|
59
|
+
* `Accept-Language` names no supported language.
|
|
60
|
+
* @type {Language}
|
|
61
|
+
* @memberof ResortInfo
|
|
62
|
+
*/
|
|
63
|
+
defaultLanguage: Language;
|
|
56
64
|
/**
|
|
57
65
|
* Full public URL to the resort's logo image. `null` if no logo is set.
|
|
58
66
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ResortInfoFromJSONTyped = ResortInfoFromJSONTyped;
|
|
|
19
19
|
exports.ResortInfoToJSON = ResortInfoToJSON;
|
|
20
20
|
exports.ResortInfoToJSONTyped = ResortInfoToJSONTyped;
|
|
21
21
|
const UnitPreference_1 = require("./UnitPreference");
|
|
22
|
+
const Language_1 = require("./Language");
|
|
22
23
|
const Region_1 = require("./Region");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ResortInfo interface.
|
|
@@ -36,6 +37,8 @@ function instanceOfResortInfo(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if ((!('unitPreference' in value) && !('unit_preference' in value)) || (value['unitPreference'] === undefined && value['unit_preference'] === undefined))
|
|
38
39
|
return false;
|
|
40
|
+
if ((!('defaultLanguage' in value) && !('default_language' in value)) || (value['defaultLanguage'] === undefined && value['default_language'] === undefined))
|
|
41
|
+
return false;
|
|
39
42
|
return true;
|
|
40
43
|
}
|
|
41
44
|
function ResortInfoFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function ResortInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'timezone': json['timezone'],
|
|
53
56
|
'region': (0, Region_1.RegionFromJSON)(json['region']),
|
|
54
57
|
'unitPreference': (0, UnitPreference_1.UnitPreferenceFromJSON)(json['unit_preference']),
|
|
58
|
+
'defaultLanguage': (0, Language_1.LanguageFromJSON)(json['default_language']),
|
|
55
59
|
'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -69,6 +73,7 @@ function ResortInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
73
|
'timezone': value['timezone'],
|
|
70
74
|
'region': (0, Region_1.RegionToJSON)(value['region']),
|
|
71
75
|
'unit_preference': (0, UnitPreference_1.UnitPreferenceToJSON)(value['unitPreference']),
|
|
76
|
+
'default_language': (0, Language_1.LanguageToJSON)(value['defaultLanguage']),
|
|
72
77
|
'logo_url': value['logoUrl'],
|
|
73
78
|
};
|
|
74
79
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './HourlyForecast';
|
|
|
24
24
|
export * from './HourlyForecastImperial';
|
|
25
25
|
export * from './HourlyForecastMetric';
|
|
26
26
|
export * from './LabelOffset';
|
|
27
|
+
export * from './Language';
|
|
27
28
|
export * from './Lift';
|
|
28
29
|
export * from './LiftStatus';
|
|
29
30
|
export * from './LiftType';
|
|
@@ -82,5 +83,4 @@ export * from './Weather';
|
|
|
82
83
|
export * from './WeatherConditionCode';
|
|
83
84
|
export * from './Webcam';
|
|
84
85
|
export * from './WebcamHistoryFrame';
|
|
85
|
-
export * from './WebcamHistoryQuery';
|
|
86
86
|
export * from './WebcamHistoryResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __exportStar(require("./HourlyForecast"), exports);
|
|
|
42
42
|
__exportStar(require("./HourlyForecastImperial"), exports);
|
|
43
43
|
__exportStar(require("./HourlyForecastMetric"), exports);
|
|
44
44
|
__exportStar(require("./LabelOffset"), exports);
|
|
45
|
+
__exportStar(require("./Language"), exports);
|
|
45
46
|
__exportStar(require("./Lift"), exports);
|
|
46
47
|
__exportStar(require("./LiftStatus"), exports);
|
|
47
48
|
__exportStar(require("./LiftType"), exports);
|
|
@@ -100,5 +101,4 @@ __exportStar(require("./Weather"), exports);
|
|
|
100
101
|
__exportStar(require("./WeatherConditionCode"), exports);
|
|
101
102
|
__exportStar(require("./Webcam"), exports);
|
|
102
103
|
__exportStar(require("./WebcamHistoryFrame"), exports);
|
|
103
|
-
__exportStar(require("./WebcamHistoryQuery"), exports);
|
|
104
104
|
__exportStar(require("./WebcamHistoryResponse"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
* Query parameters for the history endpoint.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface WebcamHistoryQuery
|
|
16
|
-
*/
|
|
17
|
-
export interface WebcamHistoryQuery {
|
|
18
|
-
/**
|
|
19
|
-
* Inclusive lower bound on `captured_at` (RFC 3339).
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof WebcamHistoryQuery
|
|
22
|
-
*/
|
|
23
|
-
from?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* Inclusive upper bound on `captured_at` (RFC 3339).
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WebcamHistoryQuery
|
|
28
|
-
*/
|
|
29
|
-
to?: string | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the WebcamHistoryQuery interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfWebcamHistoryQuery(value: object): value is WebcamHistoryQuery;
|
|
35
|
-
export declare function WebcamHistoryQueryFromJSON(json: any): WebcamHistoryQuery;
|
|
36
|
-
export declare function WebcamHistoryQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryQuery;
|
|
37
|
-
export declare function WebcamHistoryQueryToJSON(json: any): WebcamHistoryQuery;
|
|
38
|
-
export declare function WebcamHistoryQueryToJSONTyped(value?: WebcamHistoryQuery | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
* Check if a given object implements the WebcamHistoryQuery interface.
|
|
16
|
-
*/
|
|
17
|
-
export function instanceOfWebcamHistoryQuery(value) {
|
|
18
|
-
return true;
|
|
19
|
-
}
|
|
20
|
-
export function WebcamHistoryQueryFromJSON(json) {
|
|
21
|
-
return WebcamHistoryQueryFromJSONTyped(json, false);
|
|
22
|
-
}
|
|
23
|
-
export function WebcamHistoryQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
return {
|
|
28
|
-
'from': json['from'] === undefined ? undefined : json['from'] === null ? null : json['from'],
|
|
29
|
-
'to': json['to'] === undefined ? undefined : json['to'] === null ? null : json['to'],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export function WebcamHistoryQueryToJSON(json) {
|
|
33
|
-
return WebcamHistoryQueryToJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
export function WebcamHistoryQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
-
if (value == null) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'from': value['from'],
|
|
41
|
-
'to': value['to'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
* Query parameters for the history endpoint.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface WebcamHistoryQuery
|
|
16
|
-
*/
|
|
17
|
-
export interface WebcamHistoryQuery {
|
|
18
|
-
/**
|
|
19
|
-
* Inclusive lower bound on `captured_at` (RFC 3339).
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof WebcamHistoryQuery
|
|
22
|
-
*/
|
|
23
|
-
from?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* Inclusive upper bound on `captured_at` (RFC 3339).
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WebcamHistoryQuery
|
|
28
|
-
*/
|
|
29
|
-
to?: string | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the WebcamHistoryQuery interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfWebcamHistoryQuery(value: object): value is WebcamHistoryQuery;
|
|
35
|
-
export declare function WebcamHistoryQueryFromJSON(json: any): WebcamHistoryQuery;
|
|
36
|
-
export declare function WebcamHistoryQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebcamHistoryQuery;
|
|
37
|
-
export declare function WebcamHistoryQueryToJSON(json: any): WebcamHistoryQuery;
|
|
38
|
-
export declare function WebcamHistoryQueryToJSONTyped(value?: WebcamHistoryQuery | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* MtnManager API
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: support@mtnmanager.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfWebcamHistoryQuery = instanceOfWebcamHistoryQuery;
|
|
17
|
-
exports.WebcamHistoryQueryFromJSON = WebcamHistoryQueryFromJSON;
|
|
18
|
-
exports.WebcamHistoryQueryFromJSONTyped = WebcamHistoryQueryFromJSONTyped;
|
|
19
|
-
exports.WebcamHistoryQueryToJSON = WebcamHistoryQueryToJSON;
|
|
20
|
-
exports.WebcamHistoryQueryToJSONTyped = WebcamHistoryQueryToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the WebcamHistoryQuery interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfWebcamHistoryQuery(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function WebcamHistoryQueryFromJSON(json) {
|
|
28
|
-
return WebcamHistoryQueryFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function WebcamHistoryQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'from': json['from'] === undefined ? undefined : json['from'] === null ? null : json['from'],
|
|
36
|
-
'to': json['to'] === undefined ? undefined : json['to'] === null ? null : json['to'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function WebcamHistoryQueryToJSON(json) {
|
|
40
|
-
return WebcamHistoryQueryToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function WebcamHistoryQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'from': value['from'],
|
|
48
|
-
'to': value['to'],
|
|
49
|
-
};
|
|
50
|
-
}
|