@mtnmanager/sdk 1.7.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/esm/models/AmenityCategory.d.ts +1 -0
- package/dist/esm/models/AmenityCategory.js +2 -1
- package/dist/esm/models/AppConfig.d.ts +41 -0
- package/dist/esm/models/AppConfig.js +47 -0
- package/dist/esm/models/ClosureReason.d.ts +1 -0
- package/dist/esm/models/ClosureReason.js +2 -1
- package/dist/esm/models/DayOfWeek.d.ts +1 -0
- package/dist/esm/models/DayOfWeek.js +2 -1
- package/dist/esm/models/FeatureSize.d.ts +1 -0
- package/dist/esm/models/FeatureSize.js +2 -1
- package/dist/esm/models/FeatureType.d.ts +1 -0
- package/dist/esm/models/FeatureType.js +2 -1
- package/dist/esm/models/GeometryMode.d.ts +26 -0
- package/dist/esm/models/GeometryMode.js +44 -0
- package/dist/esm/models/LiftStatus.d.ts +1 -0
- package/dist/esm/models/LiftStatus.js +2 -1
- package/dist/esm/models/LiftType.d.ts +1 -0
- package/dist/esm/models/LiftType.js +2 -1
- package/dist/esm/models/MarkerIcon.d.ts +1 -0
- package/dist/esm/models/MarkerIcon.js +2 -1
- 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/ParkingLotStatus.d.ts +1 -0
- package/dist/esm/models/ParkingLotStatus.js +2 -1
- package/dist/esm/models/Region.d.ts +1 -0
- package/dist/esm/models/Region.js +2 -1
- package/dist/esm/models/ResortStatus.d.ts +1 -0
- package/dist/esm/models/ResortStatus.js +2 -1
- package/dist/esm/models/RunDifficulty.d.ts +1 -0
- package/dist/esm/models/RunDifficulty.js +2 -1
- package/dist/esm/models/RunStatus.d.ts +1 -0
- package/dist/esm/models/RunStatus.js +2 -1
- package/dist/esm/models/SeasonType.d.ts +1 -0
- package/dist/esm/models/SeasonType.js +2 -1
- package/dist/esm/models/SnowReport.d.ts +0 -6
- package/dist/esm/models/SnowReport.js +0 -4
- package/dist/esm/models/SummerTrailDifficulty.d.ts +1 -0
- package/dist/esm/models/SummerTrailDifficulty.js +2 -1
- package/dist/esm/models/SummerTrailStatus.d.ts +1 -0
- package/dist/esm/models/SummerTrailStatus.js +2 -1
- package/dist/esm/models/SummerTrailType.d.ts +1 -0
- package/dist/esm/models/SummerTrailType.js +2 -1
- package/dist/esm/models/SurfaceCondition.d.ts +1 -0
- package/dist/esm/models/SurfaceCondition.js +2 -1
- package/dist/esm/models/TerrainParkFeatureStatus.d.ts +1 -0
- package/dist/esm/models/TerrainParkFeatureStatus.js +2 -1
- package/dist/esm/models/TerrainParkStatus.d.ts +1 -0
- package/dist/esm/models/TerrainParkStatus.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf1.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf1.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf2.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf2.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf3.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf3.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf4.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf4.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf5.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf5.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf6.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf6.js +2 -1
- package/dist/esm/models/TrailMapElementOneOf7.d.ts +1 -0
- package/dist/esm/models/TrailMapElementOneOf7.js +2 -1
- 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/UnitPreference.d.ts +1 -0
- package/dist/esm/models/UnitPreference.js +2 -1
- package/dist/esm/models/WeatherConditionCode.d.ts +1 -0
- package/dist/esm/models/WeatherConditionCode.js +2 -1
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/AmenityCategory.d.ts +1 -0
- package/dist/models/AmenityCategory.js +2 -1
- package/dist/models/AppConfig.d.ts +41 -0
- package/dist/models/AppConfig.js +54 -0
- package/dist/models/ClosureReason.d.ts +1 -0
- package/dist/models/ClosureReason.js +2 -1
- package/dist/models/DayOfWeek.d.ts +1 -0
- package/dist/models/DayOfWeek.js +2 -1
- package/dist/models/FeatureSize.d.ts +1 -0
- package/dist/models/FeatureSize.js +2 -1
- package/dist/models/FeatureType.d.ts +1 -0
- package/dist/models/FeatureType.js +2 -1
- package/dist/models/GeometryMode.d.ts +26 -0
- package/dist/models/GeometryMode.js +52 -0
- package/dist/models/LiftStatus.d.ts +1 -0
- package/dist/models/LiftStatus.js +2 -1
- package/dist/models/LiftType.d.ts +1 -0
- package/dist/models/LiftType.js +2 -1
- package/dist/models/MarkerIcon.d.ts +1 -0
- package/dist/models/MarkerIcon.js +2 -1
- 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/ParkingLotStatus.d.ts +1 -0
- package/dist/models/ParkingLotStatus.js +2 -1
- package/dist/models/Region.d.ts +1 -0
- package/dist/models/Region.js +2 -1
- package/dist/models/ResortStatus.d.ts +1 -0
- package/dist/models/ResortStatus.js +2 -1
- package/dist/models/RunDifficulty.d.ts +1 -0
- package/dist/models/RunDifficulty.js +2 -1
- package/dist/models/RunStatus.d.ts +1 -0
- package/dist/models/RunStatus.js +2 -1
- package/dist/models/SeasonType.d.ts +1 -0
- package/dist/models/SeasonType.js +2 -1
- package/dist/models/SnowReport.d.ts +0 -6
- package/dist/models/SnowReport.js +0 -4
- package/dist/models/SummerTrailDifficulty.d.ts +1 -0
- package/dist/models/SummerTrailDifficulty.js +2 -1
- package/dist/models/SummerTrailStatus.d.ts +1 -0
- package/dist/models/SummerTrailStatus.js +2 -1
- package/dist/models/SummerTrailType.d.ts +1 -0
- package/dist/models/SummerTrailType.js +2 -1
- package/dist/models/SurfaceCondition.d.ts +1 -0
- package/dist/models/SurfaceCondition.js +2 -1
- package/dist/models/TerrainParkFeatureStatus.d.ts +1 -0
- package/dist/models/TerrainParkFeatureStatus.js +2 -1
- package/dist/models/TerrainParkStatus.d.ts +1 -0
- package/dist/models/TerrainParkStatus.js +2 -1
- package/dist/models/TrailMapElementOneOf.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf.js +2 -1
- package/dist/models/TrailMapElementOneOf1.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf1.js +2 -1
- package/dist/models/TrailMapElementOneOf2.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf2.js +2 -1
- package/dist/models/TrailMapElementOneOf3.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf3.js +2 -1
- package/dist/models/TrailMapElementOneOf4.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf4.js +2 -1
- package/dist/models/TrailMapElementOneOf5.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf5.js +2 -1
- package/dist/models/TrailMapElementOneOf6.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf6.js +2 -1
- package/dist/models/TrailMapElementOneOf7.d.ts +1 -0
- package/dist/models/TrailMapElementOneOf7.js +2 -1
- 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/UnitPreference.d.ts +1 -0
- package/dist/models/UnitPreference.js +2 -1
- package/dist/models/WeatherConditionCode.d.ts +1 -0
- package/dist/models/WeatherConditionCode.js +2 -1
- 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)
|
|
@@ -27,6 +27,7 @@ export declare const AmenityCategory: {
|
|
|
27
27
|
readonly Lockers: "lockers";
|
|
28
28
|
readonly Retail: "retail";
|
|
29
29
|
readonly Other: "other";
|
|
30
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
30
31
|
};
|
|
31
32
|
export type AmenityCategory = typeof AmenityCategory[keyof typeof AmenityCategory];
|
|
32
33
|
export declare function instanceOfAmenityCategory(value: any): boolean;
|
|
@@ -28,7 +28,8 @@ export const AmenityCategory = {
|
|
|
28
28
|
Hotel: 'hotel',
|
|
29
29
|
Lockers: 'lockers',
|
|
30
30
|
Retail: 'retail',
|
|
31
|
-
Other: 'other'
|
|
31
|
+
Other: 'other',
|
|
32
|
+
UnknownDefaultOpenApi: '11184809'
|
|
32
33
|
};
|
|
33
34
|
export function instanceOfAmenityCategory(value) {
|
|
34
35
|
for (const key in AmenityCategory) {
|
|
@@ -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
|
+
}
|
|
@@ -18,6 +18,7 @@ export declare const ClosureReason: {
|
|
|
18
18
|
readonly HighWinds: "high_winds";
|
|
19
19
|
readonly SnowConditions: "snow_conditions";
|
|
20
20
|
readonly MechanicalIssues: "mechanical_issues";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type ClosureReason = typeof ClosureReason[keyof typeof ClosureReason];
|
|
23
24
|
export declare function instanceOfClosureReason(value: any): boolean;
|
|
@@ -19,7 +19,8 @@ export const ClosureReason = {
|
|
|
19
19
|
ExtremeCold: 'extreme_cold',
|
|
20
20
|
HighWinds: 'high_winds',
|
|
21
21
|
SnowConditions: 'snow_conditions',
|
|
22
|
-
MechanicalIssues: 'mechanical_issues'
|
|
22
|
+
MechanicalIssues: 'mechanical_issues',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
24
|
};
|
|
24
25
|
export function instanceOfClosureReason(value) {
|
|
25
26
|
for (const key in ClosureReason) {
|
|
@@ -21,6 +21,7 @@ export declare const DayOfWeek: {
|
|
|
21
21
|
readonly Thursday: "Thursday";
|
|
22
22
|
readonly Friday: "Friday";
|
|
23
23
|
readonly Saturday: "Saturday";
|
|
24
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
24
25
|
};
|
|
25
26
|
export type DayOfWeek = typeof DayOfWeek[keyof typeof DayOfWeek];
|
|
26
27
|
export declare function instanceOfDayOfWeek(value: any): boolean;
|
|
@@ -22,7 +22,8 @@ export const DayOfWeek = {
|
|
|
22
22
|
Wednesday: 'Wednesday',
|
|
23
23
|
Thursday: 'Thursday',
|
|
24
24
|
Friday: 'Friday',
|
|
25
|
-
Saturday: 'Saturday'
|
|
25
|
+
Saturday: 'Saturday',
|
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
|
26
27
|
};
|
|
27
28
|
export function instanceOfDayOfWeek(value) {
|
|
28
29
|
for (const key in DayOfWeek) {
|
|
@@ -18,6 +18,7 @@ export declare const FeatureSize: {
|
|
|
18
18
|
readonly M: "m";
|
|
19
19
|
readonly L: "l";
|
|
20
20
|
readonly Xl: "xl";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type FeatureSize = typeof FeatureSize[keyof typeof FeatureSize];
|
|
23
24
|
export declare function instanceOfFeatureSize(value: any): boolean;
|
|
@@ -18,6 +18,7 @@ export declare const FeatureType: {
|
|
|
18
18
|
readonly Box: "box";
|
|
19
19
|
readonly Rail: "rail";
|
|
20
20
|
readonly Other: "other";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type FeatureType = typeof FeatureType[keyof typeof FeatureType];
|
|
23
24
|
export declare function instanceOfFeatureType(value: any): boolean;
|
|
@@ -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
|
+
}
|
|
@@ -18,6 +18,7 @@ export declare const LiftStatus: {
|
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly OnHold: "on_hold";
|
|
20
20
|
readonly Unknown: "unknown";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type LiftStatus = typeof LiftStatus[keyof typeof LiftStatus];
|
|
23
24
|
export declare function instanceOfLiftStatus(value: any): boolean;
|
|
@@ -19,7 +19,8 @@ export const LiftStatus = {
|
|
|
19
19
|
Open: 'open',
|
|
20
20
|
Closed: 'closed',
|
|
21
21
|
OnHold: 'on_hold',
|
|
22
|
-
Unknown: 'unknown'
|
|
22
|
+
Unknown: 'unknown',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
24
|
};
|
|
24
25
|
export function instanceOfLiftStatus(value) {
|
|
25
26
|
for (const key in LiftStatus) {
|
|
@@ -27,6 +27,7 @@ export declare const LiftType: {
|
|
|
27
27
|
readonly RopeTow: "rope_tow";
|
|
28
28
|
readonly Funicular: "funicular";
|
|
29
29
|
readonly Other: "other";
|
|
30
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
30
31
|
};
|
|
31
32
|
export type LiftType = typeof LiftType[keyof typeof LiftType];
|
|
32
33
|
export declare function instanceOfLiftType(value: any): boolean;
|
|
@@ -28,7 +28,8 @@ export const LiftType = {
|
|
|
28
28
|
Platter: 'platter',
|
|
29
29
|
RopeTow: 'rope_tow',
|
|
30
30
|
Funicular: 'funicular',
|
|
31
|
-
Other: 'other'
|
|
31
|
+
Other: 'other',
|
|
32
|
+
UnknownDefaultOpenApi: '11184809'
|
|
32
33
|
};
|
|
33
34
|
export function instanceOfLiftType(value) {
|
|
34
35
|
for (const key in LiftType) {
|
|
@@ -37,6 +37,7 @@ export declare const MarkerIcon: {
|
|
|
37
37
|
readonly Atm: "atm";
|
|
38
38
|
readonly Star: "star";
|
|
39
39
|
readonly Webcam: "webcam";
|
|
40
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
40
41
|
};
|
|
41
42
|
export type MarkerIcon = typeof MarkerIcon[keyof typeof MarkerIcon];
|
|
42
43
|
export declare function instanceOfMarkerIcon(value: any): boolean;
|
|
@@ -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(),
|
|
@@ -17,6 +17,7 @@ export declare const ParkingLotStatus: {
|
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly Full: "full";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type ParkingLotStatus = typeof ParkingLotStatus[keyof typeof ParkingLotStatus];
|
|
22
23
|
export declare function instanceOfParkingLotStatus(value: any): boolean;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const ResortStatus: {
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
19
20
|
};
|
|
20
21
|
export type ResortStatus = typeof ResortStatus[keyof typeof ResortStatus];
|
|
21
22
|
export declare function instanceOfResortStatus(value: any): boolean;
|
|
@@ -19,6 +19,7 @@ export declare const RunDifficulty: {
|
|
|
19
19
|
readonly Advanced: "advanced";
|
|
20
20
|
readonly Expert: "expert";
|
|
21
21
|
readonly TerrainPark: "terrain_park";
|
|
22
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
22
23
|
};
|
|
23
24
|
export type RunDifficulty = typeof RunDifficulty[keyof typeof RunDifficulty];
|
|
24
25
|
export declare function instanceOfRunDifficulty(value: any): boolean;
|
|
@@ -20,7 +20,8 @@ export const RunDifficulty = {
|
|
|
20
20
|
Intermediate: 'intermediate',
|
|
21
21
|
Advanced: 'advanced',
|
|
22
22
|
Expert: 'expert',
|
|
23
|
-
TerrainPark: 'terrain_park'
|
|
23
|
+
TerrainPark: 'terrain_park',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
25
|
};
|
|
25
26
|
export function instanceOfRunDifficulty(value) {
|
|
26
27
|
for (const key in RunDifficulty) {
|
|
@@ -17,6 +17,7 @@ export declare const RunStatus: {
|
|
|
17
17
|
readonly Open: "open";
|
|
18
18
|
readonly Closed: "closed";
|
|
19
19
|
readonly Unknown: "unknown";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type RunStatus = typeof RunStatus[keyof typeof RunStatus];
|
|
22
23
|
export declare function instanceOfRunStatus(value: any): boolean;
|
|
@@ -17,6 +17,7 @@ export declare const SeasonType: {
|
|
|
17
17
|
readonly Winter: "winter";
|
|
18
18
|
readonly Summer: "summer";
|
|
19
19
|
readonly Closed: "closed";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
21
|
};
|
|
21
22
|
export type SeasonType = typeof SeasonType[keyof typeof SeasonType];
|
|
22
23
|
export declare function instanceOfSeasonType(value: any): boolean;
|
|
@@ -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(),
|
|
@@ -18,6 +18,7 @@ export declare const SummerTrailDifficulty: {
|
|
|
18
18
|
readonly Intermediate: "intermediate";
|
|
19
19
|
readonly Advanced: "advanced";
|
|
20
20
|
readonly Expert: "expert";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
22
|
};
|
|
22
23
|
export type SummerTrailDifficulty = typeof SummerTrailDifficulty[keyof typeof SummerTrailDifficulty];
|
|
23
24
|
export declare function instanceOfSummerTrailDifficulty(value: any): boolean;
|