@mtnmanager/sdk 1.7.4 → 1.8.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 +10 -0
- package/dist/esm/models/AppConfig.d.ts +41 -0
- package/dist/esm/models/AppConfig.js +47 -0
- package/dist/esm/models/GeometryMode.d.ts +26 -0
- package/dist/esm/models/GeometryMode.js +44 -0
- package/dist/esm/models/Lift.d.ts +6 -0
- package/dist/esm/models/Lift.js +2 -0
- package/dist/esm/models/Overview.d.ts +6 -3
- package/dist/esm/models/Overview.js +2 -2
- package/dist/esm/models/OverviewNews.d.ts +27 -2
- package/dist/esm/models/OverviewNews.js +10 -0
- package/dist/esm/models/ResortStatus.d.ts +1 -1
- package/dist/esm/models/ResortStatus.js +1 -1
- package/dist/esm/models/RunDifficulty.d.ts +1 -1
- package/dist/esm/models/RunDifficulty.js +1 -1
- package/dist/esm/models/RunStatus.d.ts +1 -1
- package/dist/esm/models/RunStatus.js +1 -1
- package/dist/esm/models/SnowReport.d.ts +0 -6
- package/dist/esm/models/SnowReport.js +0 -4
- package/dist/esm/models/TrailMapStaticElementOneOf.d.ts +64 -0
- package/dist/esm/models/TrailMapStaticElementOneOf.js +66 -0
- package/dist/esm/models/TrailMapStaticElementOneOf1.d.ts +78 -0
- package/dist/esm/models/TrailMapStaticElementOneOf1.js +72 -0
- package/dist/esm/models/TrailMapStaticElementOneOf2.d.ts +78 -0
- package/dist/esm/models/TrailMapStaticElementOneOf2.js +72 -0
- package/dist/esm/models/TrailMapStaticElementOneOf3.d.ts +64 -0
- package/dist/esm/models/TrailMapStaticElementOneOf3.js +66 -0
- package/dist/esm/models/TrailMapStaticElementOneOf4.d.ts +83 -0
- package/dist/esm/models/TrailMapStaticElementOneOf4.js +75 -0
- package/dist/esm/models/TrailMapStaticElementOneOf5.d.ts +83 -0
- package/dist/esm/models/TrailMapStaticElementOneOf5.js +75 -0
- package/dist/esm/models/TrailMapStaticElementOneOf6.d.ts +83 -0
- package/dist/esm/models/TrailMapStaticElementOneOf6.js +75 -0
- package/dist/esm/models/TrailMapStaticPath.d.ts +40 -0
- package/dist/esm/models/TrailMapStaticPath.js +47 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AppConfig.d.ts +41 -0
- package/dist/models/AppConfig.js +54 -0
- package/dist/models/GeometryMode.d.ts +26 -0
- package/dist/models/GeometryMode.js +52 -0
- package/dist/models/Lift.d.ts +6 -0
- package/dist/models/Lift.js +2 -0
- package/dist/models/Overview.d.ts +6 -3
- package/dist/models/Overview.js +2 -2
- package/dist/models/OverviewNews.d.ts +27 -2
- package/dist/models/OverviewNews.js +10 -0
- package/dist/models/ResortStatus.d.ts +1 -1
- package/dist/models/ResortStatus.js +1 -1
- package/dist/models/RunDifficulty.d.ts +1 -1
- package/dist/models/RunDifficulty.js +1 -1
- package/dist/models/RunStatus.d.ts +1 -1
- package/dist/models/RunStatus.js +1 -1
- package/dist/models/SnowReport.d.ts +0 -6
- package/dist/models/SnowReport.js +0 -4
- package/dist/models/TrailMapStaticElementOneOf.d.ts +64 -0
- package/dist/models/TrailMapStaticElementOneOf.js +74 -0
- package/dist/models/TrailMapStaticElementOneOf1.d.ts +78 -0
- package/dist/models/TrailMapStaticElementOneOf1.js +80 -0
- package/dist/models/TrailMapStaticElementOneOf2.d.ts +78 -0
- package/dist/models/TrailMapStaticElementOneOf2.js +80 -0
- package/dist/models/TrailMapStaticElementOneOf3.d.ts +64 -0
- package/dist/models/TrailMapStaticElementOneOf3.js +74 -0
- package/dist/models/TrailMapStaticElementOneOf4.d.ts +83 -0
- package/dist/models/TrailMapStaticElementOneOf4.js +83 -0
- package/dist/models/TrailMapStaticElementOneOf5.d.ts +83 -0
- package/dist/models/TrailMapStaticElementOneOf5.js +83 -0
- package/dist/models/TrailMapStaticElementOneOf6.d.ts +83 -0
- package/dist/models/TrailMapStaticElementOneOf6.js +83 -0
- package/dist/models/TrailMapStaticPath.d.ts +40 -0
- package/dist/models/TrailMapStaticPath.js +54 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
77
77
|
- [AmenityCalendarEntry](docs/AmenityCalendarEntry.md)
|
|
78
78
|
- [AmenityCategory](docs/AmenityCategory.md)
|
|
79
79
|
- [AmenitySchedule](docs/AmenitySchedule.md)
|
|
80
|
+
- [AppConfig](docs/AppConfig.md)
|
|
80
81
|
- [CalendarDay](docs/CalendarDay.md)
|
|
81
82
|
- [ClosureReason](docs/ClosureReason.md)
|
|
82
83
|
- [CurrentWeather](docs/CurrentWeather.md)
|
|
@@ -92,6 +93,7 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
92
93
|
- [FullReport](docs/FullReport.md)
|
|
93
94
|
- [GeoBounds](docs/GeoBounds.md)
|
|
94
95
|
- [GeoPoint](docs/GeoPoint.md)
|
|
96
|
+
- [GeometryMode](docs/GeometryMode.md)
|
|
95
97
|
- [HourlyForecast](docs/HourlyForecast.md)
|
|
96
98
|
- [HourlyForecastImperial](docs/HourlyForecastImperial.md)
|
|
97
99
|
- [HourlyForecastMetric](docs/HourlyForecastMetric.md)
|
|
@@ -137,6 +139,14 @@ All URIs are relative to *https://your-resort.mtnmanager.com*
|
|
|
137
139
|
- [TrailMapElementOneOf5](docs/TrailMapElementOneOf5.md)
|
|
138
140
|
- [TrailMapElementOneOf6](docs/TrailMapElementOneOf6.md)
|
|
139
141
|
- [TrailMapElementOneOf7](docs/TrailMapElementOneOf7.md)
|
|
142
|
+
- [TrailMapStaticElementOneOf](docs/TrailMapStaticElementOneOf.md)
|
|
143
|
+
- [TrailMapStaticElementOneOf1](docs/TrailMapStaticElementOneOf1.md)
|
|
144
|
+
- [TrailMapStaticElementOneOf2](docs/TrailMapStaticElementOneOf2.md)
|
|
145
|
+
- [TrailMapStaticElementOneOf3](docs/TrailMapStaticElementOneOf3.md)
|
|
146
|
+
- [TrailMapStaticElementOneOf4](docs/TrailMapStaticElementOneOf4.md)
|
|
147
|
+
- [TrailMapStaticElementOneOf5](docs/TrailMapStaticElementOneOf5.md)
|
|
148
|
+
- [TrailMapStaticElementOneOf6](docs/TrailMapStaticElementOneOf6.md)
|
|
149
|
+
- [TrailMapStaticPath](docs/TrailMapStaticPath.md)
|
|
140
150
|
- [TrailMapSummary](docs/TrailMapSummary.md)
|
|
141
151
|
- [UnitPreference](docs/UnitPreference.md)
|
|
142
152
|
- [Weather](docs/Weather.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* App-level configuration bundled into the aggregated report.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AppConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface AppConfig {
|
|
18
|
+
/**
|
|
19
|
+
* The resort's hosted base URL — scheme + host with no path, e.g.
|
|
20
|
+
* `https://powder-mountain.mtnmanager.net`, or the resort's own custom
|
|
21
|
+
* domain when one is configured.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AppConfig
|
|
24
|
+
*/
|
|
25
|
+
hostedBaseUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Last time the static trail-map assets were re-published, ISO 8601 UTC.
|
|
28
|
+
* Bumped when those assets change so clients can cache-bust.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof AppConfig
|
|
31
|
+
*/
|
|
32
|
+
trailMapAssetsUpdatedAt: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the AppConfig interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfAppConfig(value: object): value is AppConfig;
|
|
38
|
+
export declare function AppConfigFromJSON(json: any): AppConfig;
|
|
39
|
+
export declare function AppConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppConfig;
|
|
40
|
+
export declare function AppConfigToJSON(json: any): AppConfig;
|
|
41
|
+
export declare function AppConfigToJSONTyped(value?: AppConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 AppConfig interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAppConfig(value) {
|
|
18
|
+
if ((!('hostedBaseUrl' in value) && !('hosted_base_url' in value)) || (value['hostedBaseUrl'] === undefined && value['hosted_base_url'] === undefined))
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('trailMapAssetsUpdatedAt' in value) && !('trail_map_assets_updated_at' in value)) || (value['trailMapAssetsUpdatedAt'] === undefined && value['trail_map_assets_updated_at'] === undefined))
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function AppConfigFromJSON(json) {
|
|
25
|
+
return AppConfigFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AppConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'hostedBaseUrl': json['hosted_base_url'],
|
|
33
|
+
'trailMapAssetsUpdatedAt': json['trail_map_assets_updated_at'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function AppConfigToJSON(json) {
|
|
37
|
+
return AppConfigToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AppConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'hosted_base_url': value['hostedBaseUrl'],
|
|
45
|
+
'trail_map_assets_updated_at': value['trailMapAssetsUpdatedAt'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const GeometryMode: {
|
|
17
|
+
readonly Path: "path";
|
|
18
|
+
readonly Polygon: "polygon";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type GeometryMode = typeof GeometryMode[keyof typeof GeometryMode];
|
|
22
|
+
export declare function instanceOfGeometryMode(value: any): boolean;
|
|
23
|
+
export declare function GeometryModeFromJSON(json: any): GeometryMode;
|
|
24
|
+
export declare function GeometryModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeometryMode;
|
|
25
|
+
export declare function GeometryModeToJSON(value?: GeometryMode | null): any;
|
|
26
|
+
export declare function GeometryModeToJSONTyped(value: any, ignoreDiscriminator: boolean): GeometryMode;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GeometryMode = {
|
|
19
|
+
Path: 'path',
|
|
20
|
+
Polygon: 'polygon',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfGeometryMode(value) {
|
|
24
|
+
for (const key in GeometryMode) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(GeometryMode, key)) {
|
|
26
|
+
if (GeometryMode[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function GeometryModeFromJSON(json) {
|
|
34
|
+
return GeometryModeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GeometryModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function GeometryModeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function GeometryModeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -67,6 +67,12 @@ export interface Lift {
|
|
|
67
67
|
* @memberof Lift
|
|
68
68
|
*/
|
|
69
69
|
heated: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Riders per chair or cabin, if available.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Lift
|
|
74
|
+
*/
|
|
75
|
+
capacity?: number | null;
|
|
70
76
|
/**
|
|
71
77
|
* Estimated travel time in minutes.
|
|
72
78
|
* @type {number}
|
package/dist/esm/models/Lift.js
CHANGED
|
@@ -54,6 +54,7 @@ export function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'highSpeed': json['high_speed'],
|
|
55
55
|
'bubble': json['bubble'],
|
|
56
56
|
'heated': json['heated'],
|
|
57
|
+
'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
|
|
57
58
|
'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
|
|
58
59
|
'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
|
|
59
60
|
'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
|
|
@@ -86,6 +87,7 @@ export function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
87
|
'high_speed': value['highSpeed'],
|
|
87
88
|
'bubble': value['bubble'],
|
|
88
89
|
'heated': value['heated'],
|
|
90
|
+
'capacity': value['capacity'],
|
|
89
91
|
'travel_time': value['travelTime'],
|
|
90
92
|
'length_ft': value['lengthFt'],
|
|
91
93
|
'length_m': value['lengthM'],
|
|
@@ -52,11 +52,14 @@ export interface Overview {
|
|
|
52
52
|
*/
|
|
53
53
|
season: SeasonType;
|
|
54
54
|
/**
|
|
55
|
-
* Written news — daily update, announcements, etc.
|
|
56
|
-
*
|
|
55
|
+
* Written news — daily update, announcements, etc. The resort's primary
|
|
56
|
+
* news comes first, followed by any others it publishes, in the order they
|
|
57
|
+
* were added. News with nothing written is still listed, with empty
|
|
58
|
+
* `raw` and `html`.
|
|
59
|
+
* @type {Array<OverviewNews>}
|
|
57
60
|
* @memberof Overview
|
|
58
61
|
*/
|
|
59
|
-
news: OverviewNews
|
|
62
|
+
news: Array<OverviewNews>;
|
|
60
63
|
/**
|
|
61
64
|
* Run statistics: counts, acres, and last-updated timestamp.
|
|
62
65
|
* @type {OverviewRuns}
|
|
@@ -50,7 +50,7 @@ export function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
51
51
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
52
52
|
'season': SeasonTypeFromJSON(json['season']),
|
|
53
|
-
'news':
|
|
53
|
+
'news': (json['news'].map(OverviewNewsFromJSON)),
|
|
54
54
|
'runs': OverviewRunsFromJSON(json['runs']),
|
|
55
55
|
'lifts': OverviewLiftsFromJSON(json['lifts']),
|
|
56
56
|
'summerTrails': OverviewSummerTrailsFromJSON(json['summer_trails']),
|
|
@@ -69,7 +69,7 @@ export function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
69
69
|
'opens_at': value['opensAt'],
|
|
70
70
|
'closes_at': value['closesAt'],
|
|
71
71
|
'season': SeasonTypeToJSON(value['season']),
|
|
72
|
-
'news':
|
|
72
|
+
'news': (value['news'].map(OverviewNewsToJSON)),
|
|
73
73
|
'runs': OverviewRunsToJSON(value['runs']),
|
|
74
74
|
'lifts': OverviewLiftsToJSON(value['lifts']),
|
|
75
75
|
'summer_trails': OverviewSummerTrailsToJSON(value['summerTrails']),
|
|
@@ -11,18 +11,43 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Written news — daily update, announcements, etc.
|
|
14
|
+
*
|
|
15
|
+
* A resort can publish its news in several languages. The one served is the
|
|
16
|
+
* best match for the request's `Accept-Language` header among them, falling
|
|
17
|
+
* back to the resort's primary language when nothing matches or the match has
|
|
18
|
+
* no news.
|
|
14
19
|
* @export
|
|
15
20
|
* @interface OverviewNews
|
|
16
21
|
*/
|
|
17
22
|
export interface OverviewNews {
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
24
|
+
* Stable identifier of this news feed.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof OverviewNews
|
|
27
|
+
*/
|
|
28
|
+
uuid: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name the resort gave this news feed, for telling several apart.
|
|
31
|
+
* May be `null` on the primary news feed.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OverviewNews
|
|
34
|
+
*/
|
|
35
|
+
name?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this is the resort's primary news feed. Exactly one news is.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof OverviewNews
|
|
40
|
+
*/
|
|
41
|
+
isPrimary: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Markdown source. Images the resort uploaded point at their public URLs,
|
|
44
|
+
* so any Markdown renderer can display them.
|
|
20
45
|
* @type {string}
|
|
21
46
|
* @memberof OverviewNews
|
|
22
47
|
*/
|
|
23
48
|
raw: string;
|
|
24
49
|
/**
|
|
25
|
-
* Rendered HTML (from Markdown)
|
|
50
|
+
* Rendered HTML (from Markdown)
|
|
26
51
|
* @type {string}
|
|
27
52
|
* @memberof OverviewNews
|
|
28
53
|
*/
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
* Check if a given object implements the OverviewNews interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfOverviewNews(value) {
|
|
18
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if ((!('isPrimary' in value) && !('is_primary' in value)) || (value['isPrimary'] === undefined && value['is_primary'] === undefined))
|
|
21
|
+
return false;
|
|
18
22
|
if (!('raw' in value) || value['raw'] === undefined)
|
|
19
23
|
return false;
|
|
20
24
|
if (!('html' in value) || value['html'] === undefined)
|
|
@@ -31,6 +35,9 @@ export function OverviewNewsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
35
|
return json;
|
|
32
36
|
}
|
|
33
37
|
return {
|
|
38
|
+
'uuid': json['uuid'],
|
|
39
|
+
'name': json['name'] === undefined ? undefined : json['name'] === null ? null : json['name'],
|
|
40
|
+
'isPrimary': json['is_primary'],
|
|
34
41
|
'raw': json['raw'],
|
|
35
42
|
'html': json['html'],
|
|
36
43
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -44,6 +51,9 @@ export function OverviewNewsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
51
|
return value;
|
|
45
52
|
}
|
|
46
53
|
return {
|
|
54
|
+
'uuid': value['uuid'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'is_primary': value['isPrimary'],
|
|
47
57
|
'raw': value['raw'],
|
|
48
58
|
'html': value['html'],
|
|
49
59
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -104,12 +104,6 @@ export interface SnowReport {
|
|
|
104
104
|
* @memberof SnowReport
|
|
105
105
|
*/
|
|
106
106
|
secondarySurfaceCondition?: SurfaceCondition | null;
|
|
107
|
-
/**
|
|
108
|
-
* Additional notes about current snow conditions, e.g. groomer's notes
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof SnowReport
|
|
111
|
-
*/
|
|
112
|
-
conditionNotes: string;
|
|
113
107
|
/**
|
|
114
108
|
* Snowfall accumulation metrics in centimeters.
|
|
115
109
|
* @type {SnowMetrics}
|
|
@@ -19,8 +19,6 @@ import { SurfaceConditionFromJSON, SurfaceConditionToJSON, } from './SurfaceCond
|
|
|
19
19
|
export function instanceOfSnowReport(value) {
|
|
20
20
|
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if ((!('conditionNotes' in value) && !('condition_notes' in value)) || (value['conditionNotes'] === undefined && value['condition_notes'] === undefined))
|
|
23
|
-
return false;
|
|
24
22
|
if ((!('snowfallCm' in value) && !('snowfall_cm' in value)) || (value['snowfallCm'] === undefined && value['snowfall_cm'] === undefined))
|
|
25
23
|
return false;
|
|
26
24
|
if ((!('snowfallIn' in value) && !('snowfall_in' in value)) || (value['snowfallIn'] === undefined && value['snowfall_in'] === undefined))
|
|
@@ -45,7 +43,6 @@ export function SnowReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
'baseDepthIn': json['base_depth_in'] === undefined ? undefined : json['base_depth_in'] === null ? null : json['base_depth_in'],
|
|
46
44
|
'surfaceCondition': json['surface_condition'] === undefined ? undefined : json['surface_condition'] === null ? null : SurfaceConditionFromJSON(json['surface_condition']),
|
|
47
45
|
'secondarySurfaceCondition': json['secondary_surface_condition'] === undefined ? undefined : json['secondary_surface_condition'] === null ? null : SurfaceConditionFromJSON(json['secondary_surface_condition']),
|
|
48
|
-
'conditionNotes': json['condition_notes'],
|
|
49
46
|
'snowfallCm': SnowMetricsFromJSON(json['snowfall_cm']),
|
|
50
47
|
'snowfallIn': SnowMetricsFromJSON(json['snowfall_in']),
|
|
51
48
|
'reportedAt': (new Date(json['reported_at'])),
|
|
@@ -67,7 +64,6 @@ export function SnowReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
64
|
'base_depth_in': value['baseDepthIn'],
|
|
68
65
|
'surface_condition': SurfaceConditionToJSON(value['surfaceCondition']),
|
|
69
66
|
'secondary_surface_condition': SurfaceConditionToJSON(value['secondarySurfaceCondition']),
|
|
70
|
-
'condition_notes': value['conditionNotes'],
|
|
71
67
|
'snowfall_cm': SnowMetricsToJSON(value['snowfallCm']),
|
|
72
68
|
'snowfall_in': SnowMetricsToJSON(value['snowfallIn']),
|
|
73
69
|
'reported_at': value['reportedAt'].toISOString(),
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TrailMapStaticElementOneOf
|
|
16
|
+
*/
|
|
17
|
+
export interface TrailMapStaticElementOneOf {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {TrailMapStaticElementOneOfTypeEnum}
|
|
21
|
+
* @memberof TrailMapStaticElementOneOf
|
|
22
|
+
*/
|
|
23
|
+
type: TrailMapStaticElementOneOfTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TrailMapStaticElementOneOf
|
|
28
|
+
*/
|
|
29
|
+
uuid: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<number>}
|
|
33
|
+
* @memberof TrailMapStaticElementOneOf
|
|
34
|
+
*/
|
|
35
|
+
points: Array<number>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof TrailMapStaticElementOneOf
|
|
40
|
+
*/
|
|
41
|
+
tension?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TrailMapStaticElementOneOf
|
|
46
|
+
*/
|
|
47
|
+
liftUuid: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const TrailMapStaticElementOneOfTypeEnum: {
|
|
53
|
+
readonly Lift: "lift";
|
|
54
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
55
|
+
};
|
|
56
|
+
export type TrailMapStaticElementOneOfTypeEnum = typeof TrailMapStaticElementOneOfTypeEnum[keyof typeof TrailMapStaticElementOneOfTypeEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the TrailMapStaticElementOneOf interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfTrailMapStaticElementOneOf(value: object): value is TrailMapStaticElementOneOf;
|
|
61
|
+
export declare function TrailMapStaticElementOneOfFromJSON(json: any): TrailMapStaticElementOneOf;
|
|
62
|
+
export declare function TrailMapStaticElementOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf;
|
|
63
|
+
export declare function TrailMapStaticElementOneOfToJSON(json: any): TrailMapStaticElementOneOf;
|
|
64
|
+
export declare function TrailMapStaticElementOneOfToJSONTyped(value?: TrailMapStaticElementOneOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const TrailMapStaticElementOneOfTypeEnum = {
|
|
18
|
+
Lift: 'lift',
|
|
19
|
+
UnknownDefaultOpenApi: '11184809'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TrailMapStaticElementOneOf interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfTrailMapStaticElementOneOf(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (value['type'] !== 'lift')
|
|
28
|
+
return false;
|
|
29
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('points' in value) || value['points'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('liftUuid' in value) && !('lift_uuid' in value)) || (value['liftUuid'] === undefined && value['lift_uuid'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function TrailMapStaticElementOneOfFromJSON(json) {
|
|
38
|
+
return TrailMapStaticElementOneOfFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function TrailMapStaticElementOneOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': json['type'],
|
|
46
|
+
'uuid': json['uuid'],
|
|
47
|
+
'points': json['points'],
|
|
48
|
+
'tension': json['tension'] === undefined ? undefined : json['tension'] === null ? null : json['tension'],
|
|
49
|
+
'liftUuid': json['lift_uuid'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function TrailMapStaticElementOneOfToJSON(json) {
|
|
53
|
+
return TrailMapStaticElementOneOfToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function TrailMapStaticElementOneOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'type': value['type'],
|
|
61
|
+
'uuid': value['uuid'],
|
|
62
|
+
'points': value['points'],
|
|
63
|
+
'tension': value['tension'],
|
|
64
|
+
'lift_uuid': value['liftUuid'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import type { LabelOffset } from './LabelOffset';
|
|
13
|
+
import type { GeometryMode } from './GeometryMode';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TrailMapStaticElementOneOf1
|
|
18
|
+
*/
|
|
19
|
+
export interface TrailMapStaticElementOneOf1 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {TrailMapStaticElementOneOf1TypeEnum}
|
|
23
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
24
|
+
*/
|
|
25
|
+
type: TrailMapStaticElementOneOf1TypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
30
|
+
*/
|
|
31
|
+
uuid: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<number>}
|
|
35
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
36
|
+
*/
|
|
37
|
+
points: Array<number>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
42
|
+
*/
|
|
43
|
+
tension?: number | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {GeometryMode}
|
|
47
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
48
|
+
*/
|
|
49
|
+
geometry?: GeometryMode | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {LabelOffset}
|
|
53
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
54
|
+
*/
|
|
55
|
+
labelOffset?: LabelOffset | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof TrailMapStaticElementOneOf1
|
|
60
|
+
*/
|
|
61
|
+
runUuid: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const TrailMapStaticElementOneOf1TypeEnum: {
|
|
67
|
+
readonly Run: "run";
|
|
68
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
69
|
+
};
|
|
70
|
+
export type TrailMapStaticElementOneOf1TypeEnum = typeof TrailMapStaticElementOneOf1TypeEnum[keyof typeof TrailMapStaticElementOneOf1TypeEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the TrailMapStaticElementOneOf1 interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfTrailMapStaticElementOneOf1(value: object): value is TrailMapStaticElementOneOf1;
|
|
75
|
+
export declare function TrailMapStaticElementOneOf1FromJSON(json: any): TrailMapStaticElementOneOf1;
|
|
76
|
+
export declare function TrailMapStaticElementOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf1;
|
|
77
|
+
export declare function TrailMapStaticElementOneOf1ToJSON(json: any): TrailMapStaticElementOneOf1;
|
|
78
|
+
export declare function TrailMapStaticElementOneOf1ToJSONTyped(value?: TrailMapStaticElementOneOf1 | null, ignoreDiscriminator?: boolean): any;
|