@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
|
@@ -0,0 +1,83 @@
|
|
|
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 { MarkerIcon } from './MarkerIcon';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TrailMapStaticElementOneOf6
|
|
17
|
+
*/
|
|
18
|
+
export interface TrailMapStaticElementOneOf6 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {TrailMapStaticElementOneOf6TypeEnum}
|
|
22
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
23
|
+
*/
|
|
24
|
+
type: TrailMapStaticElementOneOf6TypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
29
|
+
*/
|
|
30
|
+
uuid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
35
|
+
*/
|
|
36
|
+
x: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
41
|
+
*/
|
|
42
|
+
y: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {MarkerIcon}
|
|
46
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
47
|
+
*/
|
|
48
|
+
icon?: MarkerIcon | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
53
|
+
*/
|
|
54
|
+
color?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
59
|
+
*/
|
|
60
|
+
webcamUuid: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TrailMapStaticElementOneOf6
|
|
65
|
+
*/
|
|
66
|
+
groupLabel?: string | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const TrailMapStaticElementOneOf6TypeEnum: {
|
|
72
|
+
readonly WebcamMarker: "webcam_marker";
|
|
73
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
74
|
+
};
|
|
75
|
+
export type TrailMapStaticElementOneOf6TypeEnum = typeof TrailMapStaticElementOneOf6TypeEnum[keyof typeof TrailMapStaticElementOneOf6TypeEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the TrailMapStaticElementOneOf6 interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfTrailMapStaticElementOneOf6(value: object): value is TrailMapStaticElementOneOf6;
|
|
80
|
+
export declare function TrailMapStaticElementOneOf6FromJSON(json: any): TrailMapStaticElementOneOf6;
|
|
81
|
+
export declare function TrailMapStaticElementOneOf6FromJSONTyped(json: any, ignoreDiscriminator: boolean): TrailMapStaticElementOneOf6;
|
|
82
|
+
export declare function TrailMapStaticElementOneOf6ToJSON(json: any): TrailMapStaticElementOneOf6;
|
|
83
|
+
export declare function TrailMapStaticElementOneOf6ToJSONTyped(value?: TrailMapStaticElementOneOf6 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { MarkerIconFromJSON, MarkerIconToJSON, } from './MarkerIcon';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const TrailMapStaticElementOneOf6TypeEnum = {
|
|
19
|
+
WebcamMarker: 'webcam_marker',
|
|
20
|
+
UnknownDefaultOpenApi: '11184809'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TrailMapStaticElementOneOf6 interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfTrailMapStaticElementOneOf6(value) {
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (value['type'] !== 'webcam_marker')
|
|
29
|
+
return false;
|
|
30
|
+
if (!('uuid' in value) || value['uuid'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if ((!('webcamUuid' in value) && !('webcam_uuid' in value)) || (value['webcamUuid'] === undefined && value['webcam_uuid'] === undefined))
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function TrailMapStaticElementOneOf6FromJSON(json) {
|
|
41
|
+
return TrailMapStaticElementOneOf6FromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function TrailMapStaticElementOneOf6FromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'type': json['type'],
|
|
49
|
+
'uuid': json['uuid'],
|
|
50
|
+
'x': json['x'],
|
|
51
|
+
'y': json['y'],
|
|
52
|
+
'icon': json['icon'] === undefined ? undefined : json['icon'] === null ? null : MarkerIconFromJSON(json['icon']),
|
|
53
|
+
'color': json['color'] === undefined ? undefined : json['color'] === null ? null : json['color'],
|
|
54
|
+
'webcamUuid': json['webcam_uuid'],
|
|
55
|
+
'groupLabel': json['group_label'] === undefined ? undefined : json['group_label'] === null ? null : json['group_label'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function TrailMapStaticElementOneOf6ToJSON(json) {
|
|
59
|
+
return TrailMapStaticElementOneOf6ToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function TrailMapStaticElementOneOf6ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'uuid': value['uuid'],
|
|
68
|
+
'x': value['x'],
|
|
69
|
+
'y': value['y'],
|
|
70
|
+
'icon': MarkerIconToJSON(value['icon']),
|
|
71
|
+
'color': value['color'],
|
|
72
|
+
'webcam_uuid': value['webcamUuid'],
|
|
73
|
+
'group_label': value['groupLabel'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/models/Lift.d.ts
CHANGED
|
@@ -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/models/Lift.js
CHANGED
|
@@ -61,6 +61,7 @@ function LiftFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'highSpeed': json['high_speed'],
|
|
62
62
|
'bubble': json['bubble'],
|
|
63
63
|
'heated': json['heated'],
|
|
64
|
+
'capacity': json['capacity'] === undefined ? undefined : json['capacity'] === null ? null : json['capacity'],
|
|
64
65
|
'travelTime': json['travel_time'] === undefined ? undefined : json['travel_time'] === null ? null : json['travel_time'],
|
|
65
66
|
'lengthFt': json['length_ft'] === undefined ? undefined : json['length_ft'] === null ? null : json['length_ft'],
|
|
66
67
|
'lengthM': json['length_m'] === undefined ? undefined : json['length_m'] === null ? null : json['length_m'],
|
|
@@ -93,6 +94,7 @@ function LiftToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
93
94
|
'high_speed': value['highSpeed'],
|
|
94
95
|
'bubble': value['bubble'],
|
|
95
96
|
'heated': value['heated'],
|
|
97
|
+
'capacity': value['capacity'],
|
|
96
98
|
'travel_time': value['travelTime'],
|
|
97
99
|
'length_ft': value['lengthFt'],
|
|
98
100
|
'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}
|
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(),
|
|
@@ -20,7 +20,7 @@ exports.ResortStatusFromJSONTyped = ResortStatusFromJSONTyped;
|
|
|
20
20
|
exports.ResortStatusToJSON = ResortStatusToJSON;
|
|
21
21
|
exports.ResortStatusToJSONTyped = ResortStatusToJSONTyped;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Whether the resort is open right now, from today's scheduled hours.
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.ResortStatus = {
|