@mtnmanager/sdk 1.8.2 → 1.8.4
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 +6 -2
- package/dist/apis/MtnManagerApi.d.ts +28 -28
- package/dist/esm/apis/MtnManagerApi.d.ts +28 -28
- package/dist/esm/models/Amenity.d.ts +8 -0
- package/dist/esm/models/Amenity.js +5 -0
- package/dist/esm/models/AmenityStatus.d.ts +27 -0
- package/dist/esm/models/{SummerTrailType.js → AmenityStatus.js} +14 -13
- package/dist/esm/models/CurrentWeather.d.ts +1 -1
- package/dist/esm/models/DailyForecast.d.ts +1 -1
- package/dist/esm/models/HourlyForecast.d.ts +1 -1
- package/dist/esm/models/Lift.d.ts +1 -0
- package/dist/esm/models/Overview.d.ts +24 -0
- package/dist/esm/models/Overview.js +10 -0
- package/dist/esm/models/OverviewRuns.d.ts +1 -1
- package/dist/esm/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/esm/models/PowderAlerts.d.ts +40 -0
- package/dist/esm/models/PowderAlerts.js +47 -0
- package/dist/esm/models/Run.d.ts +19 -2
- package/dist/esm/models/Run.js +4 -0
- package/dist/esm/models/SeasonPeriod.d.ts +45 -0
- package/dist/esm/models/SeasonPeriod.js +52 -0
- package/dist/esm/models/SummerTrail.d.ts +14 -5
- package/dist/esm/models/SummerTrail.js +7 -4
- package/dist/esm/models/SummerTrailActivity.d.ts +32 -0
- package/dist/esm/models/SummerTrailActivity.js +50 -0
- package/dist/esm/models/SummerTrailDifficultyType.d.ts +27 -0
- package/dist/esm/models/SummerTrailDifficultyType.js +45 -0
- package/dist/esm/models/TerrainPark.d.ts +19 -2
- package/dist/esm/models/TerrainPark.js +4 -0
- package/dist/esm/models/TerrainParkFeature.d.ts +2 -1
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/models/Amenity.d.ts +8 -0
- package/dist/models/Amenity.js +5 -0
- package/dist/models/AmenityStatus.d.ts +27 -0
- package/dist/models/AmenityStatus.js +53 -0
- package/dist/models/CurrentWeather.d.ts +1 -1
- package/dist/models/DailyForecast.d.ts +1 -1
- package/dist/models/HourlyForecast.d.ts +1 -1
- package/dist/models/Lift.d.ts +1 -0
- package/dist/models/Overview.d.ts +24 -0
- package/dist/models/Overview.js +10 -0
- package/dist/models/OverviewRuns.d.ts +1 -1
- package/dist/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/models/PowderAlerts.d.ts +40 -0
- package/dist/models/PowderAlerts.js +54 -0
- package/dist/models/Run.d.ts +19 -2
- package/dist/models/Run.js +4 -0
- package/dist/models/SeasonPeriod.d.ts +45 -0
- package/dist/models/SeasonPeriod.js +59 -0
- package/dist/models/SummerTrail.d.ts +14 -5
- package/dist/models/SummerTrail.js +7 -4
- package/dist/models/SummerTrailActivity.d.ts +32 -0
- package/dist/models/SummerTrailActivity.js +58 -0
- package/dist/models/SummerTrailDifficultyType.d.ts +27 -0
- package/dist/models/SummerTrailDifficultyType.js +53 -0
- package/dist/models/TerrainPark.d.ts +19 -2
- package/dist/models/TerrainPark.js +4 -0
- package/dist/models/TerrainParkFeature.d.ts +2 -1
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/package.json +1 -1
- package/dist/esm/models/SummerTrailType.d.ts +0 -26
- package/dist/models/SummerTrailType.d.ts +0 -26
- package/dist/models/SummerTrailType.js +0 -52
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* MtnManager API
|
|
5
|
+
* The MtnManager API provides real-time access to your ski resort’s public operational data. Use it to display current conditions on your website, mobile app, or digital signage.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@mtnmanager.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* An activity (or permission, like dogs) a summer trail is open to.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SummerTrailActivity = {
|
|
19
|
+
Hiking: 'hiking',
|
|
20
|
+
MountainBiking: 'mountain_biking',
|
|
21
|
+
EBiking: 'e_biking',
|
|
22
|
+
GravelBiking: 'gravel_biking',
|
|
23
|
+
TrailRunning: 'trail_running',
|
|
24
|
+
OnLeashDogs: 'on_leash_dogs',
|
|
25
|
+
OffLeashDogs: 'off_leash_dogs',
|
|
26
|
+
HorsebackRiding: 'horseback_riding',
|
|
27
|
+
UnknownDefaultOpenApi: '11184809'
|
|
28
|
+
};
|
|
29
|
+
export function instanceOfSummerTrailActivity(value) {
|
|
30
|
+
for (const key in SummerTrailActivity) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailActivity, key)) {
|
|
32
|
+
if (SummerTrailActivity[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
export function SummerTrailActivityFromJSON(json) {
|
|
40
|
+
return SummerTrailActivityFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SummerTrailActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
export function SummerTrailActivityToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
export function SummerTrailActivityToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* The rating system a summer trail's difficulty is shown in, which picks its
|
|
14
|
+
* difficulty icon. `None` (on the trail) is the standard system.
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export declare const SummerTrailDifficultyType: {
|
|
18
|
+
readonly MtbFreeride: "mtb_freeride";
|
|
19
|
+
readonly MtbTechnical: "mtb_technical";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
|
+
};
|
|
22
|
+
export type SummerTrailDifficultyType = typeof SummerTrailDifficultyType[keyof typeof SummerTrailDifficultyType];
|
|
23
|
+
export declare function instanceOfSummerTrailDifficultyType(value: any): boolean;
|
|
24
|
+
export declare function SummerTrailDifficultyTypeFromJSON(json: any): SummerTrailDifficultyType;
|
|
25
|
+
export declare function SummerTrailDifficultyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailDifficultyType;
|
|
26
|
+
export declare function SummerTrailDifficultyTypeToJSON(value?: SummerTrailDifficultyType | null): any;
|
|
27
|
+
export declare function SummerTrailDifficultyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailDifficultyType;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* The rating system a summer trail's difficulty is shown in, which picks its
|
|
16
|
+
* difficulty icon. `None` (on the trail) is the standard system.
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const SummerTrailDifficultyType = {
|
|
20
|
+
MtbFreeride: 'mtb_freeride',
|
|
21
|
+
MtbTechnical: 'mtb_technical',
|
|
22
|
+
UnknownDefaultOpenApi: '11184809'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfSummerTrailDifficultyType(value) {
|
|
25
|
+
for (const key in SummerTrailDifficultyType) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(SummerTrailDifficultyType, key)) {
|
|
27
|
+
if (SummerTrailDifficultyType[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function SummerTrailDifficultyTypeFromJSON(json) {
|
|
35
|
+
return SummerTrailDifficultyTypeFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SummerTrailDifficultyTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function SummerTrailDifficultyTypeToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function SummerTrailDifficultyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -51,17 +51,34 @@ export interface TerrainPark {
|
|
|
51
51
|
status: TerrainParkStatus;
|
|
52
52
|
/**
|
|
53
53
|
* When the terrain park was last groomed.
|
|
54
|
-
* `null` if
|
|
54
|
+
* `null` if not groomed this season (since the snow year began: Aug 1, or
|
|
55
|
+
* Jan 1 in the southern hemisphere), or if the terrain park grooming feature
|
|
56
|
+
* is disabled.
|
|
55
57
|
* @type {Date}
|
|
56
58
|
* @memberof TerrainPark
|
|
57
59
|
*/
|
|
58
60
|
lastGroomed?: Date | null;
|
|
59
61
|
/**
|
|
60
|
-
* Whether the terrain park
|
|
62
|
+
* Whether the terrain park has been groomed since the resort last closed
|
|
63
|
+
* (or, for a resort with no operating hours set, within the last 24 hours).
|
|
61
64
|
* @type {boolean}
|
|
62
65
|
* @memberof TerrainPark
|
|
63
66
|
*/
|
|
64
67
|
groomedToday: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* New snow (cm) reported since `last_groomed`. Absent unless the park
|
|
70
|
+
* was groomed within the last 24 hours and the resort keeps a snow report.
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof TerrainPark
|
|
73
|
+
*/
|
|
74
|
+
snowSinceGroomedCm?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
* New snow (inches) reported since `last_groomed`; see
|
|
77
|
+
* `snow_since_groomed_cm`.
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof TerrainPark
|
|
80
|
+
*/
|
|
81
|
+
snowSinceGroomedIn?: number | null;
|
|
65
82
|
/**
|
|
66
83
|
* Notes about current conditions in this terrain park.
|
|
67
84
|
* @type {string}
|
|
@@ -51,6 +51,8 @@ export function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'status': TerrainParkStatusFromJSON(json['status']),
|
|
52
52
|
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
53
53
|
'groomedToday': json['groomed_today'],
|
|
54
|
+
'snowSinceGroomedCm': json['snow_since_groomed_cm'] === undefined ? undefined : json['snow_since_groomed_cm'] === null ? null : json['snow_since_groomed_cm'],
|
|
55
|
+
'snowSinceGroomedIn': json['snow_since_groomed_in'] === undefined ? undefined : json['snow_since_groomed_in'] === null ? null : json['snow_since_groomed_in'],
|
|
54
56
|
'conditionNotes': json['condition_notes'],
|
|
55
57
|
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
56
58
|
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
@@ -75,6 +77,8 @@ export function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
77
|
'status': TerrainParkStatusToJSON(value['status']),
|
|
76
78
|
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
77
79
|
'groomed_today': value['groomedToday'],
|
|
80
|
+
'snow_since_groomed_cm': value['snowSinceGroomedCm'],
|
|
81
|
+
'snow_since_groomed_in': value['snowSinceGroomedIn'],
|
|
78
82
|
'condition_notes': value['conditionNotes'],
|
|
79
83
|
'area_uuid': value['areaUuid'],
|
|
80
84
|
'area_name': value['areaName'],
|
|
@@ -58,7 +58,8 @@ export interface TerrainParkFeature {
|
|
|
58
58
|
size?: FeatureSize | null;
|
|
59
59
|
/**
|
|
60
60
|
* Current operational status (open, closed, or unknown).
|
|
61
|
-
* `unknown` unless the terrain park feature status is enabled
|
|
61
|
+
* `unknown` unless the terrain park feature status is enabled; `closed`
|
|
62
|
+
* whenever its terrain park is closed.
|
|
62
63
|
* @type {TerrainParkFeatureStatus}
|
|
63
64
|
* @memberof TerrainParkFeature
|
|
64
65
|
*/
|
|
@@ -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 './AmenityStatus';
|
|
5
6
|
export * from './AppConfig';
|
|
6
7
|
export * from './CalendarDay';
|
|
7
8
|
export * from './ClosureReason';
|
|
@@ -37,6 +38,7 @@ export * from './OverviewTerrainParks';
|
|
|
37
38
|
export * from './ParkingLot';
|
|
38
39
|
export * from './ParkingLotStatus';
|
|
39
40
|
export * from './PathUuid';
|
|
41
|
+
export * from './PowderAlerts';
|
|
40
42
|
export * from './Region';
|
|
41
43
|
export * from './ResortInfo';
|
|
42
44
|
export * from './ResortStatus';
|
|
@@ -44,13 +46,15 @@ export * from './Run';
|
|
|
44
46
|
export * from './RunDifficulty';
|
|
45
47
|
export * from './RunStatus';
|
|
46
48
|
export * from './Schedule';
|
|
49
|
+
export * from './SeasonPeriod';
|
|
47
50
|
export * from './SeasonType';
|
|
48
51
|
export * from './SnowMetrics';
|
|
49
52
|
export * from './SnowReport';
|
|
50
53
|
export * from './SummerTrail';
|
|
54
|
+
export * from './SummerTrailActivity';
|
|
51
55
|
export * from './SummerTrailDifficulty';
|
|
56
|
+
export * from './SummerTrailDifficultyType';
|
|
52
57
|
export * from './SummerTrailStatus';
|
|
53
|
-
export * from './SummerTrailType';
|
|
54
58
|
export * from './SurfaceCondition';
|
|
55
59
|
export * from './TerrainPark';
|
|
56
60
|
export * from './TerrainParkFeature';
|
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 './AmenityStatus';
|
|
7
8
|
export * from './AppConfig';
|
|
8
9
|
export * from './CalendarDay';
|
|
9
10
|
export * from './ClosureReason';
|
|
@@ -39,6 +40,7 @@ export * from './OverviewTerrainParks';
|
|
|
39
40
|
export * from './ParkingLot';
|
|
40
41
|
export * from './ParkingLotStatus';
|
|
41
42
|
export * from './PathUuid';
|
|
43
|
+
export * from './PowderAlerts';
|
|
42
44
|
export * from './Region';
|
|
43
45
|
export * from './ResortInfo';
|
|
44
46
|
export * from './ResortStatus';
|
|
@@ -46,13 +48,15 @@ export * from './Run';
|
|
|
46
48
|
export * from './RunDifficulty';
|
|
47
49
|
export * from './RunStatus';
|
|
48
50
|
export * from './Schedule';
|
|
51
|
+
export * from './SeasonPeriod';
|
|
49
52
|
export * from './SeasonType';
|
|
50
53
|
export * from './SnowMetrics';
|
|
51
54
|
export * from './SnowReport';
|
|
52
55
|
export * from './SummerTrail';
|
|
56
|
+
export * from './SummerTrailActivity';
|
|
53
57
|
export * from './SummerTrailDifficulty';
|
|
58
|
+
export * from './SummerTrailDifficultyType';
|
|
54
59
|
export * from './SummerTrailStatus';
|
|
55
|
-
export * from './SummerTrailType';
|
|
56
60
|
export * from './SurfaceCondition';
|
|
57
61
|
export * from './TerrainPark';
|
|
58
62
|
export * from './TerrainParkFeature';
|
package/dist/models/Amenity.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AmenityCategory } from './AmenityCategory';
|
|
13
|
+
import type { AmenityStatus } from './AmenityStatus';
|
|
13
14
|
import type { Schedule } from './Schedule';
|
|
14
15
|
import type { EntityImage } from './EntityImage';
|
|
15
16
|
/**
|
|
@@ -55,6 +56,13 @@ export interface Amenity {
|
|
|
55
56
|
* @memberof Amenity
|
|
56
57
|
*/
|
|
57
58
|
website: string;
|
|
59
|
+
/**
|
|
60
|
+
* Current operational status (open, closed, or unknown). Always `unknown`
|
|
61
|
+
* when the resort doesn't track amenity status.
|
|
62
|
+
* @type {AmenityStatus}
|
|
63
|
+
* @memberof Amenity
|
|
64
|
+
*/
|
|
65
|
+
status: AmenityStatus;
|
|
58
66
|
/**
|
|
59
67
|
* Whether this amenity reports operating hours. When false, clients should
|
|
60
68
|
* not expect `opens_at`, `closes_at`, or `schedules` to ever be populated.
|
package/dist/models/Amenity.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.AmenityFromJSONTyped = AmenityFromJSONTyped;
|
|
|
19
19
|
exports.AmenityToJSON = AmenityToJSON;
|
|
20
20
|
exports.AmenityToJSONTyped = AmenityToJSONTyped;
|
|
21
21
|
const AmenityCategory_1 = require("./AmenityCategory");
|
|
22
|
+
const AmenityStatus_1 = require("./AmenityStatus");
|
|
22
23
|
const Schedule_1 = require("./Schedule");
|
|
23
24
|
const EntityImage_1 = require("./EntityImage");
|
|
24
25
|
/**
|
|
@@ -37,6 +38,8 @@ function instanceOfAmenity(value) {
|
|
|
37
38
|
return false;
|
|
38
39
|
if (!('website' in value) || value['website'] === undefined)
|
|
39
40
|
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
40
43
|
if ((!('hasOperatingHours' in value) && !('has_operating_hours' in value)) || (value['hasOperatingHours'] === undefined && value['has_operating_hours'] === undefined))
|
|
41
44
|
return false;
|
|
42
45
|
if (!('schedules' in value) || value['schedules'] === undefined)
|
|
@@ -57,6 +60,7 @@ function AmenityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
60
|
'slug': json['slug'],
|
|
58
61
|
'category': (0, AmenityCategory_1.AmenityCategoryFromJSON)(json['category']),
|
|
59
62
|
'website': json['website'],
|
|
63
|
+
'status': (0, AmenityStatus_1.AmenityStatusFromJSON)(json['status']),
|
|
60
64
|
'hasOperatingHours': json['has_operating_hours'],
|
|
61
65
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
62
66
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
@@ -78,6 +82,7 @@ function AmenityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
82
|
'slug': value['slug'],
|
|
79
83
|
'category': (0, AmenityCategory_1.AmenityCategoryToJSON)(value['category']),
|
|
80
84
|
'website': value['website'],
|
|
85
|
+
'status': (0, AmenityStatus_1.AmenityStatusToJSON)(value['status']),
|
|
81
86
|
'has_operating_hours': value['hasOperatingHours'],
|
|
82
87
|
'opens_at': value['opensAt'],
|
|
83
88
|
'closes_at': value['closesAt'],
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Operational status of an amenity.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AmenityStatus: {
|
|
17
|
+
readonly Open: "open";
|
|
18
|
+
readonly Closed: "closed";
|
|
19
|
+
readonly Unknown: "unknown";
|
|
20
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
21
|
+
};
|
|
22
|
+
export type AmenityStatus = typeof AmenityStatus[keyof typeof AmenityStatus];
|
|
23
|
+
export declare function instanceOfAmenityStatus(value: any): boolean;
|
|
24
|
+
export declare function AmenityStatusFromJSON(json: any): AmenityStatus;
|
|
25
|
+
export declare function AmenityStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmenityStatus;
|
|
26
|
+
export declare function AmenityStatusToJSON(value?: AmenityStatus | null): any;
|
|
27
|
+
export declare function AmenityStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): AmenityStatus;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.AmenityStatus = void 0;
|
|
17
|
+
exports.instanceOfAmenityStatus = instanceOfAmenityStatus;
|
|
18
|
+
exports.AmenityStatusFromJSON = AmenityStatusFromJSON;
|
|
19
|
+
exports.AmenityStatusFromJSONTyped = AmenityStatusFromJSONTyped;
|
|
20
|
+
exports.AmenityStatusToJSON = AmenityStatusToJSON;
|
|
21
|
+
exports.AmenityStatusToJSONTyped = AmenityStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Operational status of an amenity.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AmenityStatus = {
|
|
27
|
+
Open: 'open',
|
|
28
|
+
Closed: 'closed',
|
|
29
|
+
Unknown: 'unknown',
|
|
30
|
+
UnknownDefaultOpenApi: '11184809'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfAmenityStatus(value) {
|
|
33
|
+
for (const key in exports.AmenityStatus) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.AmenityStatus, key)) {
|
|
35
|
+
if (exports.AmenityStatus[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function AmenityStatusFromJSON(json) {
|
|
43
|
+
return AmenityStatusFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AmenityStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function AmenityStatusToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function AmenityStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
package/dist/models/Lift.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ import type { OverviewLifts } from './OverviewLifts';
|
|
|
14
14
|
import type { SeasonType } from './SeasonType';
|
|
15
15
|
import type { OverviewRuns } from './OverviewRuns';
|
|
16
16
|
import type { ResortStatus } from './ResortStatus';
|
|
17
|
+
import type { PowderAlerts } from './PowderAlerts';
|
|
18
|
+
import type { SeasonPeriod } from './SeasonPeriod';
|
|
17
19
|
import type { OverviewSummerTrails } from './OverviewSummerTrails';
|
|
18
20
|
import type { OverviewNews } from './OverviewNews';
|
|
19
21
|
/**
|
|
@@ -51,6 +53,22 @@ export interface Overview {
|
|
|
51
53
|
* @memberof Overview
|
|
52
54
|
*/
|
|
53
55
|
season: SeasonType;
|
|
56
|
+
/**
|
|
57
|
+
* The last season to end before today, from the resort's operating
|
|
58
|
+
* hours of the past year. `null` if there was none. While `season` is
|
|
59
|
+
* `closed`, this and `next_season` tell an off-season that just ended a
|
|
60
|
+
* winter from one leading up to a summer.
|
|
61
|
+
* @type {SeasonPeriod}
|
|
62
|
+
* @memberof Overview
|
|
63
|
+
*/
|
|
64
|
+
previousSeason?: SeasonPeriod | null;
|
|
65
|
+
/**
|
|
66
|
+
* The next season to start after today, from the resort's scheduled
|
|
67
|
+
* operating hours. `null` if none is scheduled yet.
|
|
68
|
+
* @type {SeasonPeriod}
|
|
69
|
+
* @memberof Overview
|
|
70
|
+
*/
|
|
71
|
+
nextSeason?: SeasonPeriod | null;
|
|
54
72
|
/**
|
|
55
73
|
* Written news — daily update, announcements, etc. The resort's primary
|
|
56
74
|
* news comes first, followed by any others it publishes, in the order they
|
|
@@ -84,6 +102,12 @@ export interface Overview {
|
|
|
84
102
|
* @memberof Overview
|
|
85
103
|
*/
|
|
86
104
|
terrainParks: OverviewTerrainParks;
|
|
105
|
+
/**
|
|
106
|
+
* Guest powder alerts the resort offers, by channel.
|
|
107
|
+
* @type {PowderAlerts}
|
|
108
|
+
* @memberof Overview
|
|
109
|
+
*/
|
|
110
|
+
powderAlerts: PowderAlerts;
|
|
87
111
|
}
|
|
88
112
|
/**
|
|
89
113
|
* Check if a given object implements the Overview interface.
|
package/dist/models/Overview.js
CHANGED
|
@@ -23,6 +23,8 @@ const OverviewLifts_1 = require("./OverviewLifts");
|
|
|
23
23
|
const SeasonType_1 = require("./SeasonType");
|
|
24
24
|
const OverviewRuns_1 = require("./OverviewRuns");
|
|
25
25
|
const ResortStatus_1 = require("./ResortStatus");
|
|
26
|
+
const PowderAlerts_1 = require("./PowderAlerts");
|
|
27
|
+
const SeasonPeriod_1 = require("./SeasonPeriod");
|
|
26
28
|
const OverviewSummerTrails_1 = require("./OverviewSummerTrails");
|
|
27
29
|
const OverviewNews_1 = require("./OverviewNews");
|
|
28
30
|
/**
|
|
@@ -43,6 +45,8 @@ function instanceOfOverview(value) {
|
|
|
43
45
|
return false;
|
|
44
46
|
if ((!('terrainParks' in value) && !('terrain_parks' in value)) || (value['terrainParks'] === undefined && value['terrain_parks'] === undefined))
|
|
45
47
|
return false;
|
|
48
|
+
if ((!('powderAlerts' in value) && !('powder_alerts' in value)) || (value['powderAlerts'] === undefined && value['powder_alerts'] === undefined))
|
|
49
|
+
return false;
|
|
46
50
|
return true;
|
|
47
51
|
}
|
|
48
52
|
function OverviewFromJSON(json) {
|
|
@@ -57,11 +61,14 @@ function OverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
61
|
'opensAt': json['opens_at'] === undefined ? undefined : json['opens_at'] === null ? null : json['opens_at'],
|
|
58
62
|
'closesAt': json['closes_at'] === undefined ? undefined : json['closes_at'] === null ? null : json['closes_at'],
|
|
59
63
|
'season': (0, SeasonType_1.SeasonTypeFromJSON)(json['season']),
|
|
64
|
+
'previousSeason': json['previous_season'] === undefined ? undefined : json['previous_season'] === null ? null : (0, SeasonPeriod_1.SeasonPeriodFromJSON)(json['previous_season']),
|
|
65
|
+
'nextSeason': json['next_season'] === undefined ? undefined : json['next_season'] === null ? null : (0, SeasonPeriod_1.SeasonPeriodFromJSON)(json['next_season']),
|
|
60
66
|
'news': (json['news'].map(OverviewNews_1.OverviewNewsFromJSON)),
|
|
61
67
|
'runs': (0, OverviewRuns_1.OverviewRunsFromJSON)(json['runs']),
|
|
62
68
|
'lifts': (0, OverviewLifts_1.OverviewLiftsFromJSON)(json['lifts']),
|
|
63
69
|
'summerTrails': (0, OverviewSummerTrails_1.OverviewSummerTrailsFromJSON)(json['summer_trails']),
|
|
64
70
|
'terrainParks': (0, OverviewTerrainParks_1.OverviewTerrainParksFromJSON)(json['terrain_parks']),
|
|
71
|
+
'powderAlerts': (0, PowderAlerts_1.PowderAlertsFromJSON)(json['powder_alerts']),
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
function OverviewToJSON(json) {
|
|
@@ -76,10 +83,13 @@ function OverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
83
|
'opens_at': value['opensAt'],
|
|
77
84
|
'closes_at': value['closesAt'],
|
|
78
85
|
'season': (0, SeasonType_1.SeasonTypeToJSON)(value['season']),
|
|
86
|
+
'previous_season': (0, SeasonPeriod_1.SeasonPeriodToJSON)(value['previousSeason']),
|
|
87
|
+
'next_season': (0, SeasonPeriod_1.SeasonPeriodToJSON)(value['nextSeason']),
|
|
79
88
|
'news': (value['news'].map(OverviewNews_1.OverviewNewsToJSON)),
|
|
80
89
|
'runs': (0, OverviewRuns_1.OverviewRunsToJSON)(value['runs']),
|
|
81
90
|
'lifts': (0, OverviewLifts_1.OverviewLiftsToJSON)(value['lifts']),
|
|
82
91
|
'summer_trails': (0, OverviewSummerTrails_1.OverviewSummerTrailsToJSON)(value['summerTrails']),
|
|
83
92
|
'terrain_parks': (0, OverviewTerrainParks_1.OverviewTerrainParksToJSON)(value['terrainParks']),
|
|
93
|
+
'powder_alerts': (0, PowderAlerts_1.PowderAlertsToJSON)(value['powderAlerts']),
|
|
84
94
|
};
|
|
85
95
|
}
|
|
@@ -23,7 +23,7 @@ export interface OverviewRuns {
|
|
|
23
23
|
*/
|
|
24
24
|
open?: number | null;
|
|
25
25
|
/**
|
|
26
|
-
* Number of runs groomed
|
|
26
|
+
* Number of runs groomed since the resort last closed (see `groomed_today`).
|
|
27
27
|
* Not included if the runs grooming feature is disabled.
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof OverviewRuns
|
|
@@ -23,7 +23,8 @@ export interface OverviewTerrainParks {
|
|
|
23
23
|
*/
|
|
24
24
|
open?: number | null;
|
|
25
25
|
/**
|
|
26
|
-
* Number of terrain parks groomed
|
|
26
|
+
* Number of terrain parks groomed since the resort last closed (see
|
|
27
|
+
* `groomed_today`).
|
|
27
28
|
* Not included if the terrain park grooming feature is disabled.
|
|
28
29
|
* @type {number}
|
|
29
30
|
* @memberof OverviewTerrainParks
|
|
@@ -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
|
+
* Guest powder alerts the resort offers. Both are `false` when the resort
|
|
14
|
+
* doesn't offer powder alerts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PowderAlerts
|
|
17
|
+
*/
|
|
18
|
+
export interface PowderAlerts {
|
|
19
|
+
/**
|
|
20
|
+
* Guests can sign up for text alerts via
|
|
21
|
+
* `POST /api/notifications/v1/text/powder/signup` on the resort's host.
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PowderAlerts
|
|
24
|
+
*/
|
|
25
|
+
text: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Guests can subscribe to push alerts in the resort's mobile app.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof PowderAlerts
|
|
30
|
+
*/
|
|
31
|
+
push: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPowderAlerts(value: object): value is PowderAlerts;
|
|
37
|
+
export declare function PowderAlertsFromJSON(json: any): PowderAlerts;
|
|
38
|
+
export declare function PowderAlertsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PowderAlerts;
|
|
39
|
+
export declare function PowderAlertsToJSON(json: any): PowderAlerts;
|
|
40
|
+
export declare function PowderAlertsToJSONTyped(value?: PowderAlerts | 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.instanceOfPowderAlerts = instanceOfPowderAlerts;
|
|
17
|
+
exports.PowderAlertsFromJSON = PowderAlertsFromJSON;
|
|
18
|
+
exports.PowderAlertsFromJSONTyped = PowderAlertsFromJSONTyped;
|
|
19
|
+
exports.PowderAlertsToJSON = PowderAlertsToJSON;
|
|
20
|
+
exports.PowderAlertsToJSONTyped = PowderAlertsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PowderAlerts interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPowderAlerts(value) {
|
|
25
|
+
if (!('text' in value) || value['text'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('push' in value) || value['push'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PowderAlertsFromJSON(json) {
|
|
32
|
+
return PowderAlertsFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PowderAlertsFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'text': json['text'],
|
|
40
|
+
'push': json['push'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PowderAlertsToJSON(json) {
|
|
44
|
+
return PowderAlertsToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PowderAlertsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'text': value['text'],
|
|
52
|
+
'push': value['push'],
|
|
53
|
+
};
|
|
54
|
+
}
|