@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
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Path params for the versioned static endpoint: the map's UUID plus the
|
|
14
|
+
* specific `version` the client is asking for. The version lives in the URL so
|
|
15
|
+
* each version is an immutable resource (see `get_trail_map_static`).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface TrailMapStaticPath
|
|
18
|
+
*/
|
|
19
|
+
export interface TrailMapStaticPath {
|
|
20
|
+
/**
|
|
21
|
+
* Trail map UUID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof TrailMapStaticPath
|
|
24
|
+
*/
|
|
25
|
+
uuid: string;
|
|
26
|
+
/**
|
|
27
|
+
* The map version being requested (from `TrailMapSummary.version`)
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof TrailMapStaticPath
|
|
30
|
+
*/
|
|
31
|
+
version: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the TrailMapStaticPath interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfTrailMapStaticPath(value: object): value is TrailMapStaticPath;
|
|
37
|
+
export declare function TrailMapStaticPathFromJSON(json: any): TrailMapStaticPath;
|
|
38
|
+
export declare function TrailMapStaticPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticPath;
|
|
39
|
+
export declare function TrailMapStaticPathToJSON(json: any): TrailMapStaticPath;
|
|
40
|
+
export declare function TrailMapStaticPathToJSONTyped(value?: TrailMapStaticPath | 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 TrailMapStaticPath interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTrailMapStaticPath(value) {
|
|
18
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function TrailMapStaticPathFromJSON(json) {
|
|
25
|
+
return TrailMapStaticPathFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function TrailMapStaticPathFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'uuid': json['uuid'],
|
|
33
|
+
'version': json['version'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function TrailMapStaticPathToJSON(json) {
|
|
37
|
+
return TrailMapStaticPathToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function TrailMapStaticPathToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'uuid': value['uuid'],
|
|
45
|
+
'version': value['version'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export declare const UnitPreference: {
|
|
17
17
|
readonly Metric: "metric";
|
|
18
18
|
readonly Imperial: "imperial";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
19
20
|
};
|
|
20
21
|
export type UnitPreference = typeof UnitPreference[keyof typeof UnitPreference];
|
|
21
22
|
export declare function instanceOfUnitPreference(value: any): boolean;
|
|
@@ -49,6 +49,7 @@ export declare const WeatherConditionCode: {
|
|
|
49
49
|
readonly Hurricane: "Hurricane";
|
|
50
50
|
readonly TropicalStorm: "TropicalStorm";
|
|
51
51
|
readonly Unknown: "Unknown";
|
|
52
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
52
53
|
};
|
|
53
54
|
export type WeatherConditionCode = typeof WeatherConditionCode[keyof typeof WeatherConditionCode];
|
|
54
55
|
export declare function instanceOfWeatherConditionCode(value: any): boolean;
|
|
@@ -50,7 +50,8 @@ export const WeatherConditionCode = {
|
|
|
50
50
|
HeavySnow: 'HeavySnow',
|
|
51
51
|
Hurricane: 'Hurricane',
|
|
52
52
|
TropicalStorm: 'TropicalStorm',
|
|
53
|
-
Unknown: 'Unknown'
|
|
53
|
+
Unknown: 'Unknown',
|
|
54
|
+
UnknownDefaultOpenApi: '11184809'
|
|
54
55
|
};
|
|
55
56
|
export function instanceOfWeatherConditionCode(value) {
|
|
56
57
|
for (const key in WeatherConditionCode) {
|
|
@@ -2,6 +2,7 @@ export * from './Amenity';
|
|
|
2
2
|
export * from './AmenityCalendarEntry';
|
|
3
3
|
export * from './AmenityCategory';
|
|
4
4
|
export * from './AmenitySchedule';
|
|
5
|
+
export * from './AppConfig';
|
|
5
6
|
export * from './CalendarDay';
|
|
6
7
|
export * from './ClosureReason';
|
|
7
8
|
export * from './CurrentWeather';
|
|
@@ -17,6 +18,7 @@ export * from './FeatureType';
|
|
|
17
18
|
export * from './FullReport';
|
|
18
19
|
export * from './GeoBounds';
|
|
19
20
|
export * from './GeoPoint';
|
|
21
|
+
export * from './GeometryMode';
|
|
20
22
|
export * from './HourlyForecast';
|
|
21
23
|
export * from './HourlyForecastImperial';
|
|
22
24
|
export * from './HourlyForecastMetric';
|
|
@@ -62,6 +64,14 @@ export * from './TrailMapElementOneOf4';
|
|
|
62
64
|
export * from './TrailMapElementOneOf5';
|
|
63
65
|
export * from './TrailMapElementOneOf6';
|
|
64
66
|
export * from './TrailMapElementOneOf7';
|
|
67
|
+
export * from './TrailMapStaticElementOneOf';
|
|
68
|
+
export * from './TrailMapStaticElementOneOf1';
|
|
69
|
+
export * from './TrailMapStaticElementOneOf2';
|
|
70
|
+
export * from './TrailMapStaticElementOneOf3';
|
|
71
|
+
export * from './TrailMapStaticElementOneOf4';
|
|
72
|
+
export * from './TrailMapStaticElementOneOf5';
|
|
73
|
+
export * from './TrailMapStaticElementOneOf6';
|
|
74
|
+
export * from './TrailMapStaticPath';
|
|
65
75
|
export * from './TrailMapSummary';
|
|
66
76
|
export * from './UnitPreference';
|
|
67
77
|
export * from './Weather';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Amenity';
|
|
|
4
4
|
export * from './AmenityCalendarEntry';
|
|
5
5
|
export * from './AmenityCategory';
|
|
6
6
|
export * from './AmenitySchedule';
|
|
7
|
+
export * from './AppConfig';
|
|
7
8
|
export * from './CalendarDay';
|
|
8
9
|
export * from './ClosureReason';
|
|
9
10
|
export * from './CurrentWeather';
|
|
@@ -19,6 +20,7 @@ export * from './FeatureType';
|
|
|
19
20
|
export * from './FullReport';
|
|
20
21
|
export * from './GeoBounds';
|
|
21
22
|
export * from './GeoPoint';
|
|
23
|
+
export * from './GeometryMode';
|
|
22
24
|
export * from './HourlyForecast';
|
|
23
25
|
export * from './HourlyForecastImperial';
|
|
24
26
|
export * from './HourlyForecastMetric';
|
|
@@ -64,6 +66,14 @@ export * from './TrailMapElementOneOf4';
|
|
|
64
66
|
export * from './TrailMapElementOneOf5';
|
|
65
67
|
export * from './TrailMapElementOneOf6';
|
|
66
68
|
export * from './TrailMapElementOneOf7';
|
|
69
|
+
export * from './TrailMapStaticElementOneOf';
|
|
70
|
+
export * from './TrailMapStaticElementOneOf1';
|
|
71
|
+
export * from './TrailMapStaticElementOneOf2';
|
|
72
|
+
export * from './TrailMapStaticElementOneOf3';
|
|
73
|
+
export * from './TrailMapStaticElementOneOf4';
|
|
74
|
+
export * from './TrailMapStaticElementOneOf5';
|
|
75
|
+
export * from './TrailMapStaticElementOneOf6';
|
|
76
|
+
export * from './TrailMapStaticPath';
|
|
67
77
|
export * from './TrailMapSummary';
|
|
68
78
|
export * from './UnitPreference';
|
|
69
79
|
export * from './Weather';
|
|
@@ -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;
|
|
@@ -36,7 +36,8 @@ exports.AmenityCategory = {
|
|
|
36
36
|
Hotel: 'hotel',
|
|
37
37
|
Lockers: 'lockers',
|
|
38
38
|
Retail: 'retail',
|
|
39
|
-
Other: 'other'
|
|
39
|
+
Other: 'other',
|
|
40
|
+
UnknownDefaultOpenApi: '11184809'
|
|
40
41
|
};
|
|
41
42
|
function instanceOfAmenityCategory(value) {
|
|
42
43
|
for (const key in exports.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,54 @@
|
|
|
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.instanceOfAppConfig = instanceOfAppConfig;
|
|
17
|
+
exports.AppConfigFromJSON = AppConfigFromJSON;
|
|
18
|
+
exports.AppConfigFromJSONTyped = AppConfigFromJSONTyped;
|
|
19
|
+
exports.AppConfigToJSON = AppConfigToJSON;
|
|
20
|
+
exports.AppConfigToJSONTyped = AppConfigToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AppConfig interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAppConfig(value) {
|
|
25
|
+
if ((!('hostedBaseUrl' in value) && !('hosted_base_url' in value)) || (value['hostedBaseUrl'] === undefined && value['hosted_base_url'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('trailMapAssetsUpdatedAt' in value) && !('trail_map_assets_updated_at' in value)) || (value['trailMapAssetsUpdatedAt'] === undefined && value['trail_map_assets_updated_at'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AppConfigFromJSON(json) {
|
|
32
|
+
return AppConfigFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AppConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'hostedBaseUrl': json['hosted_base_url'],
|
|
40
|
+
'trailMapAssetsUpdatedAt': json['trail_map_assets_updated_at'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AppConfigToJSON(json) {
|
|
44
|
+
return AppConfigToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AppConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'hosted_base_url': value['hostedBaseUrl'],
|
|
52
|
+
'trail_map_assets_updated_at': value['trailMapAssetsUpdatedAt'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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;
|
|
@@ -27,7 +27,8 @@ exports.ClosureReason = {
|
|
|
27
27
|
ExtremeCold: 'extreme_cold',
|
|
28
28
|
HighWinds: 'high_winds',
|
|
29
29
|
SnowConditions: 'snow_conditions',
|
|
30
|
-
MechanicalIssues: 'mechanical_issues'
|
|
30
|
+
MechanicalIssues: 'mechanical_issues',
|
|
31
|
+
UnknownDefaultOpenApi: '11184809'
|
|
31
32
|
};
|
|
32
33
|
function instanceOfClosureReason(value) {
|
|
33
34
|
for (const key in exports.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;
|
package/dist/models/DayOfWeek.js
CHANGED
|
@@ -30,7 +30,8 @@ exports.DayOfWeek = {
|
|
|
30
30
|
Wednesday: 'Wednesday',
|
|
31
31
|
Thursday: 'Thursday',
|
|
32
32
|
Friday: 'Friday',
|
|
33
|
-
Saturday: 'Saturday'
|
|
33
|
+
Saturday: 'Saturday',
|
|
34
|
+
UnknownDefaultOpenApi: '11184809'
|
|
34
35
|
};
|
|
35
36
|
function instanceOfDayOfWeek(value) {
|
|
36
37
|
for (const key in exports.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,52 @@
|
|
|
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.GeometryMode = void 0;
|
|
17
|
+
exports.instanceOfGeometryMode = instanceOfGeometryMode;
|
|
18
|
+
exports.GeometryModeFromJSON = GeometryModeFromJSON;
|
|
19
|
+
exports.GeometryModeFromJSONTyped = GeometryModeFromJSONTyped;
|
|
20
|
+
exports.GeometryModeToJSON = GeometryModeToJSON;
|
|
21
|
+
exports.GeometryModeToJSONTyped = GeometryModeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.GeometryMode = {
|
|
27
|
+
Path: 'path',
|
|
28
|
+
Polygon: 'polygon',
|
|
29
|
+
UnknownDefaultOpenApi: '11184809'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfGeometryMode(value) {
|
|
32
|
+
for (const key in exports.GeometryMode) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.GeometryMode, key)) {
|
|
34
|
+
if (exports.GeometryMode[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function GeometryModeFromJSON(json) {
|
|
42
|
+
return GeometryModeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function GeometryModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function GeometryModeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function GeometryModeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -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;
|
|
@@ -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;
|
package/dist/models/LiftType.js
CHANGED
|
@@ -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}
|
package/dist/models/Overview.js
CHANGED
|
@@ -57,7 +57,7 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
58
58
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
59
59
|
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
60
|
-
'news': (
|
|
60
|
+
'news': (json['news'].map(OverviewNews_1.OverviewNewsFromJSON)),
|
|
61
61
|
'runs': (0, OverviewRuns_1.OverviewRunsFromJSON)(json['runs']),
|
|
62
62
|
'lifts': (0, OverviewLifts_1.OverviewLiftsFromJSON)(json['lifts']),
|
|
63
63
|
'summerTrails': (0, OverviewSummerTrails_1.OverviewSummerTrailsFromJSON)(json['summer_trails']),
|
|
@@ -76,7 +76,7 @@ function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
76
|
'opens_at': value['opensAt'],
|
|
77
77
|
'closes_at': value['closesAt'],
|
|
78
78
|
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
79
|
-
'news': (
|
|
79
|
+
'news': (value['news'].map(OverviewNews_1.OverviewNewsToJSON)),
|
|
80
80
|
'runs': (0, OverviewRuns_1.OverviewRunsToJSON)(value['runs']),
|
|
81
81
|
'lifts': (0, OverviewLifts_1.OverviewLiftsToJSON)(value['lifts']),
|
|
82
82
|
'summer_trails': (0, OverviewSummerTrails_1.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
|
*/
|
|
@@ -22,6 +22,10 @@ exports.OverviewNewsToJSONTyped = OverviewNewsToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the OverviewNews interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfOverviewNews(value) {
|
|
25
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('isPrimary' in value) && !('is_primary' in value)) || (value['isPrimary'] === undefined && value['is_primary'] === undefined))
|
|
28
|
+
return false;
|
|
25
29
|
if (!('raw' in value) || value['raw'] === undefined)
|
|
26
30
|
return false;
|
|
27
31
|
if (!('html' in value) || value['html'] === undefined)
|
|
@@ -38,6 +42,9 @@ function OverviewNewsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
42
|
return json;
|
|
39
43
|
}
|
|
40
44
|
return {
|
|
45
|
+
'uuid': json['uuid'],
|
|
46
|
+
'name': json['name'] === undefined ? undefined : json['name'] === null ? null : json['name'],
|
|
47
|
+
'isPrimary': json['is_primary'],
|
|
41
48
|
'raw': json['raw'],
|
|
42
49
|
'html': json['html'],
|
|
43
50
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -51,6 +58,9 @@ function OverviewNewsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
58
|
return value;
|
|
52
59
|
}
|
|
53
60
|
return {
|
|
61
|
+
'uuid': value['uuid'],
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
'is_primary': value['isPrimary'],
|
|
54
64
|
'raw': value['raw'],
|
|
55
65
|
'html': value['html'],
|
|
56
66
|
'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;
|