@mtnmanager/sdk 1.8.3 → 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 +4 -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/OverviewRuns.d.ts +1 -1
- package/dist/esm/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/esm/models/Run.d.ts +19 -2
- package/dist/esm/models/Run.js +4 -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 +3 -1
- package/dist/esm/models/index.js +3 -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/OverviewRuns.d.ts +1 -1
- package/dist/models/OverviewTerrainParks.d.ts +2 -1
- package/dist/models/Run.d.ts +19 -2
- package/dist/models/Run.js +4 -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 +3 -1
- package/dist/models/index.js +3 -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,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
|
@@ -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
|
package/dist/models/Run.d.ts
CHANGED
|
@@ -57,17 +57,34 @@ export interface Run {
|
|
|
57
57
|
status: RunStatus;
|
|
58
58
|
/**
|
|
59
59
|
* When the run was last groomed.
|
|
60
|
-
* `null` if
|
|
60
|
+
* `null` if not groomed this season (since the snow year began: Aug 1, or
|
|
61
|
+
* Jan 1 in the southern hemisphere), or if the runs grooming feature is disabled.
|
|
61
62
|
* @type {Date}
|
|
62
63
|
* @memberof Run
|
|
63
64
|
*/
|
|
64
65
|
lastGroomed?: Date | null;
|
|
65
66
|
/**
|
|
66
|
-
* Whether the run
|
|
67
|
+
* Whether the run has been groomed since the resort last closed (or,
|
|
68
|
+
* for a resort with no operating hours set, within the last 24 hours).
|
|
67
69
|
* @type {boolean}
|
|
68
70
|
* @memberof Run
|
|
69
71
|
*/
|
|
70
72
|
groomedToday: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* New snow (cm) reported since `last_groomed` ("groomed with fresh").
|
|
75
|
+
* Absent unless the run was groomed within the last 24 hours and the
|
|
76
|
+
* resort keeps a snow report.
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof Run
|
|
79
|
+
*/
|
|
80
|
+
snowSinceGroomedCm?: number | null;
|
|
81
|
+
/**
|
|
82
|
+
* New snow (inches) reported since `last_groomed`; see
|
|
83
|
+
* `snow_since_groomed_cm`.
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof Run
|
|
86
|
+
*/
|
|
87
|
+
snowSinceGroomedIn?: number | null;
|
|
71
88
|
/**
|
|
72
89
|
* Whether the run has snowmaking capabilities.
|
|
73
90
|
* @type {boolean}
|
package/dist/models/Run.js
CHANGED
|
@@ -63,6 +63,8 @@ function RunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'status': (0, RunStatus_1.RunStatusFromJSON)(json['status']),
|
|
64
64
|
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
65
65
|
'groomedToday': json['groomed_today'],
|
|
66
|
+
'snowSinceGroomedCm': json['snow_since_groomed_cm'] === undefined ? undefined : json['snow_since_groomed_cm'] === null ? null : json['snow_since_groomed_cm'],
|
|
67
|
+
'snowSinceGroomedIn': json['snow_since_groomed_in'] === undefined ? undefined : json['snow_since_groomed_in'] === null ? null : json['snow_since_groomed_in'],
|
|
66
68
|
'snowmaking': json['snowmaking'],
|
|
67
69
|
'nightSkiing': json['night_skiing'],
|
|
68
70
|
'conditionNotes': json['condition_notes'],
|
|
@@ -89,6 +91,8 @@ function RunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
91
|
'status': (0, RunStatus_1.RunStatusToJSON)(value['status']),
|
|
90
92
|
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
91
93
|
'groomed_today': value['groomedToday'],
|
|
94
|
+
'snow_since_groomed_cm': value['snowSinceGroomedCm'],
|
|
95
|
+
'snow_since_groomed_in': value['snowSinceGroomedIn'],
|
|
92
96
|
'snowmaking': value['snowmaking'],
|
|
93
97
|
'night_skiing': value['nightSkiing'],
|
|
94
98
|
'condition_notes': value['conditionNotes'],
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SummerTrailActivity } from './SummerTrailActivity';
|
|
13
|
+
import type { SummerTrailDifficultyType } from './SummerTrailDifficultyType';
|
|
12
14
|
import type { SummerTrailStatus } from './SummerTrailStatus';
|
|
13
|
-
import type { SummerTrailType } from './SummerTrailType';
|
|
14
15
|
import type { EntityImage } from './EntityImage';
|
|
15
16
|
import type { SummerTrailDifficulty } from './SummerTrailDifficulty';
|
|
16
17
|
/**
|
|
17
18
|
* Represents a single summer trail at the resort with its current status,
|
|
18
|
-
*
|
|
19
|
+
* activities (e.g. hiking, mountain biking, dogs), and optional difficulty rating.
|
|
19
20
|
* @export
|
|
20
21
|
* @interface SummerTrail
|
|
21
22
|
*/
|
|
@@ -45,17 +46,25 @@ export interface SummerTrail {
|
|
|
45
46
|
*/
|
|
46
47
|
number?: number | null;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
49
|
+
* Activities the trail is open to (e.g. hiking, mountain_biking,
|
|
50
|
+
* on_leash_dogs). Can have multiple.
|
|
51
|
+
* @type {Array<SummerTrailActivity>}
|
|
50
52
|
* @memberof SummerTrail
|
|
51
53
|
*/
|
|
52
|
-
|
|
54
|
+
activities: Array<SummerTrailActivity>;
|
|
53
55
|
/**
|
|
54
56
|
* Difficulty rating of the trail (optional for summer trails).
|
|
55
57
|
* @type {SummerTrailDifficulty}
|
|
56
58
|
* @memberof SummerTrail
|
|
57
59
|
*/
|
|
58
60
|
difficulty?: SummerTrailDifficulty | null;
|
|
61
|
+
/**
|
|
62
|
+
* The rating system the difficulty is shown in, which picks its icon:
|
|
63
|
+
* `null` for the standard one, or a mountain-bike freeride / technical one.
|
|
64
|
+
* @type {SummerTrailDifficultyType}
|
|
65
|
+
* @memberof SummerTrail
|
|
66
|
+
*/
|
|
67
|
+
difficultyType?: SummerTrailDifficultyType | null;
|
|
59
68
|
/**
|
|
60
69
|
* Current operational status (open, closed, or unknown).
|
|
61
70
|
* @type {SummerTrailStatus}
|
|
@@ -18,8 +18,9 @@ exports.SummerTrailFromJSON = SummerTrailFromJSON;
|
|
|
18
18
|
exports.SummerTrailFromJSONTyped = SummerTrailFromJSONTyped;
|
|
19
19
|
exports.SummerTrailToJSON = SummerTrailToJSON;
|
|
20
20
|
exports.SummerTrailToJSONTyped = SummerTrailToJSONTyped;
|
|
21
|
+
const SummerTrailActivity_1 = require("./SummerTrailActivity");
|
|
22
|
+
const SummerTrailDifficultyType_1 = require("./SummerTrailDifficultyType");
|
|
21
23
|
const SummerTrailStatus_1 = require("./SummerTrailStatus");
|
|
22
|
-
const SummerTrailType_1 = require("./SummerTrailType");
|
|
23
24
|
const EntityImage_1 = require("./EntityImage");
|
|
24
25
|
const SummerTrailDifficulty_1 = require("./SummerTrailDifficulty");
|
|
25
26
|
/**
|
|
@@ -32,7 +33,7 @@ function instanceOfSummerTrail(value) {
|
|
|
32
33
|
return false;
|
|
33
34
|
if (!('slug' in value) || value['slug'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (
|
|
36
|
+
if (!('activities' in value) || value['activities'] === undefined)
|
|
36
37
|
return false;
|
|
37
38
|
if (!('status' in value) || value['status'] === undefined)
|
|
38
39
|
return false;
|
|
@@ -54,8 +55,9 @@ function SummerTrailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
55
|
'name': json['name'],
|
|
55
56
|
'slug': json['slug'],
|
|
56
57
|
'number': json['number'] === undefined ? undefined : json['number'] === null ? null : json['number'],
|
|
57
|
-
'
|
|
58
|
+
'activities': (json['activities'].map(SummerTrailActivity_1.SummerTrailActivityFromJSON)),
|
|
58
59
|
'difficulty': json['difficulty'] === undefined ? undefined : json['difficulty'] === null ? null : (0, SummerTrailDifficulty_1.SummerTrailDifficultyFromJSON)(json['difficulty']),
|
|
60
|
+
'difficultyType': json['difficulty_type'] === undefined ? undefined : json['difficulty_type'] === null ? null : (0, SummerTrailDifficultyType_1.SummerTrailDifficultyTypeFromJSON)(json['difficulty_type']),
|
|
59
61
|
'status': (0, SummerTrailStatus_1.SummerTrailStatusFromJSON)(json['status']),
|
|
60
62
|
'conditionNotes': json['condition_notes'],
|
|
61
63
|
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
@@ -77,8 +79,9 @@ function SummerTrailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
79
|
'name': value['name'],
|
|
78
80
|
'slug': value['slug'],
|
|
79
81
|
'number': value['number'],
|
|
80
|
-
'
|
|
82
|
+
'activities': (value['activities'].map(SummerTrailActivity_1.SummerTrailActivityToJSON)),
|
|
81
83
|
'difficulty': (0, SummerTrailDifficulty_1.SummerTrailDifficultyToJSON)(value['difficulty']),
|
|
84
|
+
'difficulty_type': (0, SummerTrailDifficultyType_1.SummerTrailDifficultyTypeToJSON)(value['difficultyType']),
|
|
82
85
|
'status': (0, SummerTrailStatus_1.SummerTrailStatusToJSON)(value['status']),
|
|
83
86
|
'condition_notes': value['conditionNotes'],
|
|
84
87
|
'area_uuid': value['areaUuid'],
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* An activity (or permission, like dogs) a summer trail is open to.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SummerTrailActivity: {
|
|
17
|
+
readonly Hiking: "hiking";
|
|
18
|
+
readonly MountainBiking: "mountain_biking";
|
|
19
|
+
readonly EBiking: "e_biking";
|
|
20
|
+
readonly GravelBiking: "gravel_biking";
|
|
21
|
+
readonly TrailRunning: "trail_running";
|
|
22
|
+
readonly OnLeashDogs: "on_leash_dogs";
|
|
23
|
+
readonly OffLeashDogs: "off_leash_dogs";
|
|
24
|
+
readonly HorsebackRiding: "horseback_riding";
|
|
25
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
26
|
+
};
|
|
27
|
+
export type SummerTrailActivity = typeof SummerTrailActivity[keyof typeof SummerTrailActivity];
|
|
28
|
+
export declare function instanceOfSummerTrailActivity(value: any): boolean;
|
|
29
|
+
export declare function SummerTrailActivityFromJSON(json: any): SummerTrailActivity;
|
|
30
|
+
export declare function SummerTrailActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailActivity;
|
|
31
|
+
export declare function SummerTrailActivityToJSON(value?: SummerTrailActivity | null): any;
|
|
32
|
+
export declare function SummerTrailActivityToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailActivity;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.SummerTrailActivity = void 0;
|
|
17
|
+
exports.instanceOfSummerTrailActivity = instanceOfSummerTrailActivity;
|
|
18
|
+
exports.SummerTrailActivityFromJSON = SummerTrailActivityFromJSON;
|
|
19
|
+
exports.SummerTrailActivityFromJSONTyped = SummerTrailActivityFromJSONTyped;
|
|
20
|
+
exports.SummerTrailActivityToJSON = SummerTrailActivityToJSON;
|
|
21
|
+
exports.SummerTrailActivityToJSONTyped = SummerTrailActivityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* An activity (or permission, like dogs) a summer trail is open to.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SummerTrailActivity = {
|
|
27
|
+
Hiking: 'hiking',
|
|
28
|
+
MountainBiking: 'mountain_biking',
|
|
29
|
+
EBiking: 'e_biking',
|
|
30
|
+
GravelBiking: 'gravel_biking',
|
|
31
|
+
TrailRunning: 'trail_running',
|
|
32
|
+
OnLeashDogs: 'on_leash_dogs',
|
|
33
|
+
OffLeashDogs: 'off_leash_dogs',
|
|
34
|
+
HorsebackRiding: 'horseback_riding',
|
|
35
|
+
UnknownDefaultOpenApi: '11184809'
|
|
36
|
+
};
|
|
37
|
+
function instanceOfSummerTrailActivity(value) {
|
|
38
|
+
for (const key in exports.SummerTrailActivity) {
|
|
39
|
+
if (Object.prototype.hasOwnProperty.call(exports.SummerTrailActivity, key)) {
|
|
40
|
+
if (exports.SummerTrailActivity[key] === value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
function SummerTrailActivityFromJSON(json) {
|
|
48
|
+
return SummerTrailActivityFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function SummerTrailActivityFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
function SummerTrailActivityToJSON(value) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function SummerTrailActivityToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
@@ -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,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.SummerTrailDifficultyType = void 0;
|
|
17
|
+
exports.instanceOfSummerTrailDifficultyType = instanceOfSummerTrailDifficultyType;
|
|
18
|
+
exports.SummerTrailDifficultyTypeFromJSON = SummerTrailDifficultyTypeFromJSON;
|
|
19
|
+
exports.SummerTrailDifficultyTypeFromJSONTyped = SummerTrailDifficultyTypeFromJSONTyped;
|
|
20
|
+
exports.SummerTrailDifficultyTypeToJSON = SummerTrailDifficultyTypeToJSON;
|
|
21
|
+
exports.SummerTrailDifficultyTypeToJSONTyped = SummerTrailDifficultyTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* The rating system a summer trail's difficulty is shown in, which picks its
|
|
24
|
+
* difficulty icon. `None` (on the trail) is the standard system.
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.SummerTrailDifficultyType = {
|
|
28
|
+
MtbFreeride: 'mtb_freeride',
|
|
29
|
+
MtbTechnical: 'mtb_technical',
|
|
30
|
+
UnknownDefaultOpenApi: '11184809'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfSummerTrailDifficultyType(value) {
|
|
33
|
+
for (const key in exports.SummerTrailDifficultyType) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.SummerTrailDifficultyType, key)) {
|
|
35
|
+
if (exports.SummerTrailDifficultyType[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function SummerTrailDifficultyTypeFromJSON(json) {
|
|
43
|
+
return SummerTrailDifficultyTypeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SummerTrailDifficultyTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function SummerTrailDifficultyTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function SummerTrailDifficultyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -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}
|
|
@@ -58,6 +58,8 @@ function TerrainParkFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'status': (0, TerrainParkStatus_1.TerrainParkStatusFromJSON)(json['status']),
|
|
59
59
|
'lastGroomed': json['last_groomed'] === undefined ? undefined : json['last_groomed'] === null ? null : (new Date(json['last_groomed'])),
|
|
60
60
|
'groomedToday': json['groomed_today'],
|
|
61
|
+
'snowSinceGroomedCm': json['snow_since_groomed_cm'] === undefined ? undefined : json['snow_since_groomed_cm'] === null ? null : json['snow_since_groomed_cm'],
|
|
62
|
+
'snowSinceGroomedIn': json['snow_since_groomed_in'] === undefined ? undefined : json['snow_since_groomed_in'] === null ? null : json['snow_since_groomed_in'],
|
|
61
63
|
'conditionNotes': json['condition_notes'],
|
|
62
64
|
'areaUuid': json['area_uuid'] === undefined ? undefined : json['area_uuid'] === null ? null : json['area_uuid'],
|
|
63
65
|
'areaName': json['area_name'] === undefined ? undefined : json['area_name'] === null ? null : json['area_name'],
|
|
@@ -82,6 +84,8 @@ function TerrainParkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
84
|
'status': (0, TerrainParkStatus_1.TerrainParkStatusToJSON)(value['status']),
|
|
83
85
|
'last_groomed': value['lastGroomed'] == null ? value['lastGroomed'] : value['lastGroomed'].toISOString(),
|
|
84
86
|
'groomed_today': value['groomedToday'],
|
|
87
|
+
'snow_since_groomed_cm': value['snowSinceGroomedCm'],
|
|
88
|
+
'snow_since_groomed_in': value['snowSinceGroomedIn'],
|
|
85
89
|
'condition_notes': value['conditionNotes'],
|
|
86
90
|
'area_uuid': value['areaUuid'],
|
|
87
91
|
'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
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -50,9 +51,10 @@ export * from './SeasonType';
|
|
|
50
51
|
export * from './SnowMetrics';
|
|
51
52
|
export * from './SnowReport';
|
|
52
53
|
export * from './SummerTrail';
|
|
54
|
+
export * from './SummerTrailActivity';
|
|
53
55
|
export * from './SummerTrailDifficulty';
|
|
56
|
+
export * from './SummerTrailDifficultyType';
|
|
54
57
|
export * from './SummerTrailStatus';
|
|
55
|
-
export * from './SummerTrailType';
|
|
56
58
|
export * from './SurfaceCondition';
|
|
57
59
|
export * from './TerrainPark';
|
|
58
60
|
export * from './TerrainParkFeature';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./Amenity"), exports);
|
|
|
20
20
|
__exportStar(require("./AmenityCalendarEntry"), exports);
|
|
21
21
|
__exportStar(require("./AmenityCategory"), exports);
|
|
22
22
|
__exportStar(require("./AmenitySchedule"), exports);
|
|
23
|
+
__exportStar(require("./AmenityStatus"), exports);
|
|
23
24
|
__exportStar(require("./AppConfig"), exports);
|
|
24
25
|
__exportStar(require("./CalendarDay"), exports);
|
|
25
26
|
__exportStar(require("./ClosureReason"), exports);
|
|
@@ -68,9 +69,10 @@ __exportStar(require("./SeasonType"), exports);
|
|
|
68
69
|
__exportStar(require("./SnowMetrics"), exports);
|
|
69
70
|
__exportStar(require("./SnowReport"), exports);
|
|
70
71
|
__exportStar(require("./SummerTrail"), exports);
|
|
72
|
+
__exportStar(require("./SummerTrailActivity"), exports);
|
|
71
73
|
__exportStar(require("./SummerTrailDifficulty"), exports);
|
|
74
|
+
__exportStar(require("./SummerTrailDifficultyType"), exports);
|
|
72
75
|
__exportStar(require("./SummerTrailStatus"), exports);
|
|
73
|
-
__exportStar(require("./SummerTrailType"), exports);
|
|
74
76
|
__exportStar(require("./SurfaceCondition"), exports);
|
|
75
77
|
__exportStar(require("./TerrainPark"), exports);
|
|
76
78
|
__exportStar(require("./TerrainParkFeature"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtnmanager/sdk",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "SDK for interacting with the MtnManager API, providing real-time access to your ski resort's public operational data.",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -1,26 +0,0 @@
|
|
|
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 SummerTrailType: {
|
|
17
|
-
readonly Hiking: "hiking";
|
|
18
|
-
readonly MountainBiking: "mountain_biking";
|
|
19
|
-
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
-
};
|
|
21
|
-
export type SummerTrailType = typeof SummerTrailType[keyof typeof SummerTrailType];
|
|
22
|
-
export declare function instanceOfSummerTrailType(value: any): boolean;
|
|
23
|
-
export declare function SummerTrailTypeFromJSON(json: any): SummerTrailType;
|
|
24
|
-
export declare function SummerTrailTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailType;
|
|
25
|
-
export declare function SummerTrailTypeToJSON(value?: SummerTrailType | null): any;
|
|
26
|
-
export declare function SummerTrailTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailType;
|
|
@@ -1,26 +0,0 @@
|
|
|
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 SummerTrailType: {
|
|
17
|
-
readonly Hiking: "hiking";
|
|
18
|
-
readonly MountainBiking: "mountain_biking";
|
|
19
|
-
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
-
};
|
|
21
|
-
export type SummerTrailType = typeof SummerTrailType[keyof typeof SummerTrailType];
|
|
22
|
-
export declare function instanceOfSummerTrailType(value: any): boolean;
|
|
23
|
-
export declare function SummerTrailTypeFromJSON(json: any): SummerTrailType;
|
|
24
|
-
export declare function SummerTrailTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SummerTrailType;
|
|
25
|
-
export declare function SummerTrailTypeToJSON(value?: SummerTrailType | null): any;
|
|
26
|
-
export declare function SummerTrailTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SummerTrailType;
|